Sunday, 26 April 2009
'Upgrade' Killed my ADSL
Friday, 24 April 2009
E61 Mercurial Solution
Engineering Compromise
So, I'm not going to be able to have a command-line like experience of mercurial on my E61. What about the next best thing? My next idea was to use putty to: (1) ssh into a directory on my linux server (2) Update the mercurial repos there (3) Grab all the files from the linux server to the phone (4) Make edits on the phone (5) Upload the modified files back to the linux server (6) From putty on the linux server commit the changes into mercurial I've got this working. The tricky bit was to decide what to use to move the files about. I've ended up with MobyExplorer doing FTP to my local linux box. Inside the firewall I felt the FTP was safe enough. I'm a little nervous at opening up an FTP server on my public facing boxes. I had to set up secure FTP.Secure FTP Set Up
I installed the Very Secure FTP Server (vsftpd) using aptitude. I made the following changes to the config in /etc/vsftpd/vsftpd.conf (1) local_enable=YES (2) write_enable=YES (3) anonymous_enable=NO (4) chroot_local_user=YES ...then restart the server with sudo /etc/init.d/vsftpd restartWhy does cygwin pick up 'f' as my home drive?
mkdir: cannot create directory `/cygdrive/f': No such file or directory Copying skeleton files. These files are for the user to personalise their cygwin experience. These will never be overwritten. /usr/bin/install: cannot create directory /cygdrive/f: No such file or directory /usr/bin/install: cannot create directory /cygdrive/f: No such file or directory /usr/bin/install: cannot create directory /cygdrive/f: No such file or directory bash: cd: /cygdrive/f: No such file or directory Your group name is currently "mkgroup_l_d". This indicates that not all domain users and groups are listed in the /etc/passwd and /etc/group files. See the man pages for mkpasswd and mkgroup then, for example, run mkpasswd -l -d > /etc/passwd mkgroup -l -d > /etc/group This message is only displayed once (unless you recreate /etc/group) and can be safely ignored. cp: cannot create regular file `/cygdrive/f/group.mkgroup_l_d': No such file or directorySo, I must have got something set up incorrectly. Looking at the environment variables I see:
$ set ...lots of stuff HOME=/cygdrive/f ...more stuffSo where is HOME set? The work laptop is running Vista and I'm farily new to it. Looked in Control Panel >> System >> Advanced System Settings >> Environment Variables, but there was no reference to HOME. Next stop was Google, obviously. It told me to edit /etc/passwd. Sure enough there was a setting against my username for /cygdrive/f. I changed it to /cygdrive/c/dave and it all worked great.
Saturday, 28 March 2009
Video Editting Software
Sunday, 15 March 2009
Debian NSLU2 Stopped Working
Wednesday, 1 October 2008
Using my Slug as a Mercurial Repos
Wednesday, 14 May 2008
Age of Empires
My oldest son loves Age of Empires II, so I decided to see what fun we could have hacking with the game.
Before kids I spent too much time playing Age of Empires II. Since kids I've been a recovering adict, keeping well away from temptation as I feared that one hit would lead me down a slippery slope to the AOE monster eating my free/sleeping time. Recently however my oldest son has started playing AoE2 himself, influenced by his mother I should explain. He started out on the scenario levels becoming a great fan of Gengis Khan, Joan of Arc and friends. It was his idea to start hacking with AoE2. We went on a visit to Warwick castle and the next day he suggested that it would be great if we could play a Warwick castle game on AoE2. A little playing with the scenario builder and we had a passable map of Warwick castle with the forces of Ricard Earl of Warwick lined up against the Duke of Hastings and Edward 4th. My son was in charge of deciding the sizes and composition of the various forces and, being only five, he made quite sure they were heavily biased in the human player's favour. We got this set up and ran the game. At first we couldn't get the two sides to fight each other. Then we found the dipolomacy settings and with the help of drawing up the grid of who was with who, got the correct forces to engage.
My son seemed quite happy with the set up we had. He'd get his huge band of troops, march up on the hapless enemy and win decisively. I was disappointed with the way that the computer controlled forces did little to defend themselves. They just stood about and waited for the enevitable anihilation. A little digging and I found that AoE2 has a scriptable AI language and there are lots of people writing AoE2 scripts at www.aiscripters.com. So now I have my next hacking mission: learn the AoE2 scripting language and start coding some things in it. Meanwhile, my son has this idea for a "build the Great Wall of China" scenario.