Python & Perl

Although I tend to do a lot of my work using MATLAB, the cost of a commercial license is extremely high. This makes it unsuitable for a lot of projects, where the product needs to be freely and easily distributable. For these kinds of projects, I tend to turn to Python.

Here, you can find a few useful code snips that I feel are worth sharing. Please feel free to pass comment on anything you see here. Especially if you think that anything can be optimised or made more robust.

Latest



Warning: INSERT command denied to user 'revjbr_dan'@'10.0.0.14' for table 'watchdog' query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>INSERT command denied to user &amp;#039;revjbr_dan&amp;#039;@&amp;#039;10.0.0.14&amp;#039; for table &amp;#039;sessions&amp;#039;\nquery: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES (&amp;#039;ddb0d1b775a514423cffba4a5961468e&amp;#039;, 0, 0, &amp;#039;38.107.179.237&amp;#039;, &amp;#039;&amp;#039;, 1328688730)</em> in <em>/home/www/danpearce.co.uk/includes/database.mysql.inc</em> on line <em>172</em>.', 2, '', 'http://www.danpearce.co.uk/node/6', '', '38.107.179.237', 1328688730) in /home/www/danpearce.co.uk/includes/database.mysql.inc on line 172