Archive for December, 2009

Terrorism Incident Prompts Ineffective New Security Measures.

Sunday, December 27th, 2009

When a flight attendant tells you that you can’t have a pillow on your lap, or must remain seated an hour before landing (Yahoo News), it is time to question the competence of security agencies. Those new rules imply that an explosive device could well be already in the plane, and obviously, it has just happened. Instead of acknowledging their failure by adding new measures that consider all passengers as threats, wouldn’t it be better to ensure that no explosive gets aboard? As Bruce Schneier notes in his security blog, “Only two things have made flying safer [since 9/11]: the reinforcement of cockpit doors, and the fact that passengers know now to resist hijackers.” They are certainly more willing to do so after September 11. I believe that flight-crew training is the best thing TSA could invest in.

We all want to fly safely, but at what price? It is bad enough that we must all go through patting, puffing-sniffing machines, x-rays, shoe removal and dubious looks and questions, it should ensure that once on the plane, we are treated as paying customers again. TSA could lean a few things from El-Al security measures, including racial profiling. Instead, they ask grandmothers to remove their shoes, and ban children from flights because their name match a suspected terrorist. If I had to choose between a fountain pen and a nail file for a weapon, I’ll take the pen any day. Not that bringing explosives on-board or weapons is difficult.. Political correctness should go overboard before safety and privacy.

Airlines should feel the economic pressure of ineffective security policies. They would then lobby for better measures and training, not more of the same nonsense. The only way we can do this is simply take the car, or train when possible for short trips. I wish the United States had not lost it’s railroad industry. You can zip all around Europe at 200mph in total comfort, are we so far behind technologically? It is the responsibility of taxpayers to see that their money is used in a reasonably responsible and effective manner. Keeping me from going to the bathroom at the end of a flight or not giving me a pillow is not going to make a flight safer. If that device on the Northwest/Delta flight had been well made, the plane would have gone down, pillow or not. It only takes a fraction of a second to press a button.

VN:F [1.8.4_1055]
Rating: 0.0/5 (0 votes cast)
  • Share/Bookmark

Pretty Link Wordpress Plugin, Prettyfy Old Links Script.

Thursday, December 24th, 2009

I just discovered the Pretty Link Wordpress plugin, and I think it will help getting more returning visitors to my site, especially using the Pretty Bar feature. Problem is, I have 11,000 posts, with almost as many links. So, I wrote a Python Script to convert all your old post links to Pretty Links. You need to insert your database login on lines 23,24,25,26. Replace ‘planenews’ on line 49 by your site name, without the .com. Replace my domain by yours on line 58. If you leave line 69 as it, the script will set your Pretty Links to show with the Pretty Bar, standard parameter forwarding, group 1, traking on. If it works for you, you better send me a few bucks to buy a Cigar or a Cointreau, because this will save you a lot of time! (Click on the Donate button below), Scroll down to get the code…




Update: You may have to run it a few times until the script returns no result.. No time to figure out why.. Make sure you backup your database before playing with this!

VN:F [1.8.4_1055]
Rating: 0.0/5 (0 votes cast)
  • Share/Bookmark

Sitemap Python Script for Wordpress.

Sunday, December 13th, 2009

I had problems with the Google XML sitemap generator plugin because of my database size, more than 10,000 articles. Here is a Python script that will work no matter how large your database is. Make sure you edit the domain name at the end, for the home page entry, path to the sitemap.xml file, and of course, put in your database login info. Put the script on a cron-job, et voila! See the code below…


VN:F [1.8.4_1055]
Rating: 0.0/5 (0 votes cast)
  • Share/Bookmark

Converting From PHPNuke to Wordpress.

Thursday, December 10th, 2009

Here is a script to convert you PHP-Nuke database to your new Wordpress one. It does not transfer comments, but does users, topics and stories. It is written in Python. You need to edit the database logins and specify your url and PHPNuke admin user id. The MySQLdb Python module must be installed. If it works for you, you better send me a few bucks to buy a Cigar or a Cointreau, because this will save you a lot of time! (Click on the Donate button below), Scroll down to get the code…





And by the way, here are the two lines to put in your .htacesss file to convert the old PHPNuke URLs to the new Wordpress numeric urls. The will turn, for example:

http://planenews.com/modules.php?name=News&file=article&sid=11117

into: http://planenews.com/archives/11117

So your visitors coming from an old link won’t miss a beat.. Here it is:

RewriteCond %{QUERY_STRING} ^name=News&file=article&sid=([0-9]*)
RewriteRule ^modules\.php$ /archives/%1? [R=301,L]

VN:F [1.8.4_1055]
Rating: 5.0/5 (1 vote cast)
  • Share/Bookmark

Gil's Blog is Digg proof thanks to caching by WP Super Cache