Wednesday, September 26, 2012

Clean Windows From Trojan Horse

My laptop was infected with the Trojan:Win32/Weelsof.E, please check on Microsoft for the description:

I was desperate as Windows started up with a blank window that blocked everything else and I really didn't want to format everything and install my Windows/Ubuntu partitions again.

I copied some antivirus software on my usb driver and started windows in safe mode (F8) I've downloaded a copy of Kaspersky Antivirus Removal Tool then I backed up everything and launched the removal tool while in safe mode.

The Kaspersky Removal Tool is not a permanent protection but it will clean up your computer from all virus and malware!
It detected and removed the Trojan:Win32/Weelsof.E sucessfully and now I'm writing you from my IBM T42 with the cleaned Windows XP.

Saturday, September 22, 2012

Watch Out with Recent Post Widget for Blogger

I was just trying to enhance my blog ad wanted to add a plugin to show the latest posts on my site.
As I couldn't find a recent post plugin from the Blogger plugin list i decided to do some search to find out.

I tumbled upon a site that showed a code snippet that I should copy and paste on a simple HTML/Javacript gadget and that would do the trick.

Don't ever copy and paste strange javascript code snippets into your site.

The script tag src looked like this:
<script style="text/javascript" src=""></script> <script style="text/javascript">var numposts = 5;var showpostdate = false;var showpostsummary = false;var numchars = 50;var standardstyling = true;</script><script src=""></script>

And it was simple and easy to copy and paste that into a blogger gadget and then publish it on my site.
The XXX corresponds to another name.

When I published this thing I saw that the padding bottom was too big and I examined the source code to see what was the matter when I saw this:

<a style="font-size: 8px; text-decoration:none; color: white; opacity:0.0;filter:alpha(Opacity=0)" href="">recent-posts widget</a>

So they are injecting your site with an unwanted link that you don't see but it is there, which is invisible because of the style rules in it.

So watch out, just because the snippet's code is hosted in doesn't mean that is fair.
If you want a recent post widget you can do it with feedsburner, through their publicize options.
That will create a Recent Post widget into your blogger website.

And it is better to only install google plugin's, never any other code snippet that you wouln't know what it does to your site.

Thursday, September 13, 2012

Drupal Cron Failed To Run Solved

Drupal Cron should run everyday and I was doing some maintenance in one Drupal site when the message "cron failed to run" appeared and here is how I've solve it:

Delete cron variables from the database

DELETE FROM variable WHERE name="cron_semaphore";
DELETE FROM variable WHERE name="cron_last";

Empty cache

Empty cache from /admin/settings/performance and Flush all caches from the administration menu

Optimize all tables

Go to phpmyadmin and check all the tables in your database, select Optimize tables and execute it, wait till is over.
Optimize table is something you should do every now and then to keep the database healthy, it helps to rebuild all the indexes of the Myisam tables.

Then launch cron: cron run successfully.