<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.5.1" -->
<rss version="0.92">
<channel>
	<title>Timblog</title>
	<link>http://timjoh.com</link>
	<description>Code, games, chess and everything but the kitchen sink</description>
	<lastBuildDate>Tue, 08 Jul 2008 23:52:25 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>How to Use CHMOD in Kasablanca</title>
		<description>Kasablanca is a GUI FTP client, which I regularly use. Today, I needed to change the permissions on a folder to allow writing by the web server. After trying for a long time to do it in kasablanca, I found the solution: At the command-line, write:


$ lftp -u tim ftp.example.com
Password:
lftp ...</description>
		<link>http://timjoh.com/how-to-use-chmod-in-kasablanca/</link>
			</item>
	<item>
		<title>How to Drop All Tables in SQL Dump File</title>
		<description>I am currently moving a WordPress blog from one server to another. In the process, I messed up the MySQL database transportation, resulting in some tables being created, and some rows being inserted. It would not be possible to simply run the SQL dump files again, since that would result ...</description>
		<link>http://timjoh.com/how-to-drop-all-tables-in-sql-dump-file/</link>
			</item>
	<item>
		<title>Project Euler 10: Sum of First Primes</title>
		<description>In the post about Project Euler 7, I described how to obtain a list of primes. These are not enough: the last one is 1,299,827, and we need all up to 2,000,000. The first 1,000,000 prime numbers can be found at the same site. Here is a ZIP file of ...</description>
		<link>http://timjoh.com/project-euler-10-sum-of-first-primes/</link>
			</item>
	<item>
		<title>Project Euler 7: The 10001st Prime Number</title>
		<description>This mission can be solved by calculating lots of prime numbers. However, we do not want to put extra effort into our solutions, do we? After a bit of searching, I found a list of the 100000 first prime numbers (100008, actually). I saved this file. Unfortunately, it is not ...</description>
		<link>http://timjoh.com/project-euler-7-the-10001st-prime-number/</link>
			</item>
	<item>
		<title>Project Euler 9: Pythagorean Triplets, Sum=1000</title>
		<description>There is exactly one Pythagorean triplet (a^2+b^2=c^2) in which a+b+c=1000. Since all terms are positive, we can try all alternatives for 0 &#60; a,b &#60; 1000, which is less than 1000^2. This Perl script does it all:


# first, generate pairs of a and b
for ( my $a = 1; $a ...</description>
		<link>http://timjoh.com/project-euler-9-pythagorean-triplets-sum1000/</link>
			</item>
	<item>
		<title>HBH Basic Web 7: Encrypt ASCII Cookie</title>
		<description>Basic web hacking mission 7 of the Hellbound Hacker series is a prime example of why I dislike their "hacking challenges". Some of them are not about hacking!



This time Mr. Deitry decided to make a cookie login script and he said he decrypted it from ASCII encryption, and for you ...</description>
		<link>http://timjoh.com/hbh-basic-web-7-encrypt-ascii-cookie/</link>
			</item>
	<item>
		<title>Reading AdSense CSV in Perl (UTF-16 Problems)</title>
		<description>I was trying to write a Perl script for analyzing a CSV file. It was generated by Google AdSense and contained lots of statistics. Naturally, I started by reading the file:


open( CSV, ' </description>
		<link>http://timjoh.com/adsense-csv-in-perl/</link>
			</item>
	<item>
		<title>Scrabble Analysis with Perl</title>
		<description>A while ago, I started playing lots of scrabble. The scrabble game in the Ubuntu repository (by Brian White) records all games in the file ~/.scrabble-games. The following perl script analyzes the file and creates statistics for your games.


#!/usr/bin/perl

use strict;

my $mode = shift @ARGV;
unless ( $mode ) {
   ...</description>
		<link>http://timjoh.com/scrabble-analysis-with-perl/</link>
			</item>
	<item>
		<title>Waking Up with Perl</title>
		<description>While being in the Alps skiing (Argentiere), my cellphone broke due to a 55kg-weight dropping on it. Since I used to set my cellphone's alarm clock to make me wake up, I had to come up with a better solution. I wrote this perl script:


use strict;

my ( $t, $f );
if ...</description>
		<link>http://timjoh.com/waking-up-with-perl/</link>
			</item>
	<item>
		<title>&#8220;No module named _dbus&#8221; in Deluge Torrent</title>
		<description>I decided to upgrade from my current deluge-torrent (a BitTorrent client) to the latest version 0.5.7.1, as I just got a what.cd invite. Unfortunately, the .deb package from the Deluge site didn't work instantly.


tim@royalgala:~/Desktop$ sudo dpkg -i deluge-torrent_0.5.7-1_i386.feisty.deb 
Selecting previously deselected package deluge-torrent.
(Reading database ... 158322 files and directories currently ...</description>
		<link>http://timjoh.com/no-module-named-_dbus-in-deluge-torrent/</link>
			</item>
</channel>
</rss>
