By Month:
July 2010
Insights into a modern Indie Music label
I read this remarkable post on a public mailing list I subscribe to. I thought it was such a great insight into running a music label, that I just had to post it here. It discusses issues facing modern music, such as DRM, DMCA, and other ways of making (or losing) money. Fascinating. Here it [...]
Restoring Ubuntu 10.4′s Bootloader, after a Windows 7 Install
I installed Windows 7 after I had installed Ubuntu 10.4. Windows 7 overwrote the Linux bootloader “grub” on my master boot record. Therefore I had to restore it. I used the Ubuntu 10.4 LiveCD to start up a live version of Ubuntu. While under the LiveCD, I then restored the Grub bootloader by chrooting into [...]
Windows 7 Gaming on my Macbook
I have a 2006/2007 Core 2 Duo 2.6ghz white macbook, that I use regularly for internet, music, watching films, itunes and integration with my iPhone. I wanted to turn my desktop PC into a ‘work only’ Ubuntu Linux machine, so that I don’t get distracted when I’m supposed to be doing something else. But I [...]
May 2010
Ripping Movies onto the iPhone
I’m currently watching Persepolis, the 2008 animated film about a tomboy anarchist growing up in Iran. I’m watching this on my new iPhone 3GS, and the picture and audio quality is very good. Here’s what I used to convert my newly bought Persepolis DVD, for watching on the iPhone. 1x Macbook (but you can use [...]
Decent Graphics for Flash Games
Lately I’ve been thinking about making a Flash game or application. Although I haven’t made one yet, my current understanding is that most projects of this type require a lot of artwork. I found this article, and was impressed at the quality and the resources mentioned: http://freelanceflashgames.com/news/2009/03/25/the-big-guide-to-hiring-an-artist/
April 2010
WordPress HTML edit mode inserts BR tags sometimes when you add a carriage return..
This is something that was quite annoying today, as I was struggling to use WordPress 2.9.2 to align some pictures in the HTML mode of editing a page, on a client’s website. It turns out that WordPress was adding BR tags sometimes when I hit return.. and sometimes not. The annoying thing was, although the [...]
Forkbombs and How to Prevent Them
A forkbomb is a program or script that continually creates new copies of itself, that create new copies of themselves. It’s usually a function that calls itself, and each time that function is called, it creates a new process to run the same function. You end up with thousands of processes, all creating processes themselves, [...]
March 2010
How to remove nano, vim and other editors’ backup files out of a directory tree
Linux command-line editors such as nano and vim often, by default, create backup files with the prefix of “~”. I.e, if I created a file called /home/david/myfile, then nano would create a backup in /home/david/myfile~. Sometimes it doesn’t delete them either, so you’re left with a bunch of backup files all over the place, especially [...]
Tip for watching the completion of a large file copy
Forget the wonderful windows progress bar, and imagine I’m in the world of command-line Linux, and I want to copy a 484MB file, called VMware-server-2.0.2-203138.i386.tar.gz, from my home directory to a remote server. But I want to figure out how long it’s going to take. 1. First I can run a “du -m” command to [...]
The Linux Root Directory, Explained
It’s helpful to know the basic filesystem on a Linux machine, to better understand where everything is supposed to go, and where you should start looking if you want to find a certain file. Everything in Linux is stored in the “root directory”. On a windows machine, that would be equivalent to C:\. C:\ is [...]
Useful OSX commands for Linux users
I wrote this list to remind me, as a newcomer to OSX, how the command line differed from the Linux commandline. I thought I’d expand on it, and share it: To mount any iso: hdiutil mount sample.iso To download a file as you would using wget: curl http://ftp.heanet.ie/pub/linuxmint.com/stable/8/LinuxMint-8.iso -o linuxmint.iso -C – the -o specifies [...]
Long Bash History Files are Great.
When I’m installing software, or doing some complicated stuff on the linux command line, which nowadays is pretty much all the time, I will sometimes want to remember exactly what I typed. Now the normal /home/david/.bash_history file is usually fine for that. Run this command, for example, and you will see the commands you typed [...]
My minimal VIM config
This is the absolute minimum I do when I have to log onto a new server or shell account that I haven’t used before, that I will need to edit text files with. First I figure out whether VIM is really installed. A lot of installs, especially those based on ubuntu, ship with VI aliased [...]
Using the Linux command ‘Watch’ to test Cron jobs and more
OK, so you have added a cron job that you want to perform a routine task every day at 6am. How do you test it? You probably don’t want to spend all night waiting for it to execute, and there’s every chance that when it does execute, you won’t be able to find out whether [...]
Changing the default “From:” email address for emails sent via PHP on Linux
I’ve had to solve this problem a couple of times at least, and it’s quite a common task, so I thought I’d document it here. When you send emails to users of your site through using the PHP mail() function, they will sometimes turn up in the mailbox of customers of your site with the [...]
Shell scripts for converting between Unix and Windows text file formats
I’ve been using these shell scripts I wrote to convert between unix and windows text file formats. They seem to work well without any problems. If you put them in the /usr/sbin/ directory, they will be accessible on the path of the linux admin account root. /usr/sbin/unix2win #!/bin/bash # Converts a unix text file to [...]
January 2010
Site Redesign
I’ve just updated the design of this blog, re-enabled comments and added a contact tab. I’ve installed a strong anti-spam comment filter, but you should now be able to comment on entries. I’ve also changed the layout of things slightly, and made it easier to read.
PHP Sample – HTML Page Fetcher and Parser
Back in 2008, I wrote a PHP class that fetched an arbitary URL, parsed it, and coverted it into an PHP object with different attributes for the different elements of the page. I recently updated it and sent it along to a company that wanted a programming example to show I could code in PHP. [...]
Passed the W3Schools PHP Certification
As a break from my contract work, I took the W3Schools PHP Certification. I didn’t do any revision, which probably wasn’t wise. It was a bit more difficult than I thought, but I passed still.
Config files for the Windows version of VIM
Today I encountered problems configuring the windows version of the popular text editor VIM, so I thought I’d write up a quick post talk about configuration files under the Windows version, if anyone becomes stuck like I did. I use Linux, OSX and Windows on a day-to-day basis, and VIM as a text editor for [...]
October 2009
Speed Climbing
I’m going to take a break from the purely technical posts to get more people to see this video. Here the late Dan Osman speed-climbs a cliff without any safety equipment. Risky? Just a bit. A few years later he lost his life during a similar attempt. But no-one can doubt the guts required, and [...]
Regex in VIM.. simple
There are more than a gazillion ways to use regexs. I am sure they are each very useful for their own subset of problems. The sheer variety can be highly confusing and scary for a lot of people though, and you only need to use a few approaches to accomplish most text-editing tasks. Here is [...]
April 2009
Heart rate monitor now available for the XO Laptop
Volunteers on the OLPC project have developed a low-cost heart rate monitor that can be plugged into the XO laptop, making steps towards an affordable monitoring system for hospitals in developing countries. For more information on the development, see the: OLPC Goldenstate project. People in the US can currently buy the sensor here; unfortunately there [...]
March 2009
VirutalHosts on CentOS
A common task when setting up an Apache webserver under Linux, is writing a httpd.conf file. The httpd.conf file is the main configuration file for Apache. One of the main reasons to edit the httpd.conf file is to setup virtual hosts In Apache. A Virtual host configuration allows several different domains to be run off [...]
MicroKORG + Python = MIDI fun!
So, about a month ago I got a second-hand microKORG from Ebay. Fiddling around with the preset patches, and creating new patches is great fun, even though I only know a few chords. Recently I plugged it in to my PC via my M-Audio Uno USB->MIDI interface, and soon was using Ableton Live to program [...]
Eclipse 3.4.2 + Pydev + Eclim = win
So, after saying all that stuff about how vimplugin and EasyEclipse was great, I actually started to use the setup heavily, and it started to annoy me. For one, EE is not a recent build of eclipse, nor does it come with a full set of recent plugins. This makes it annoyingly difficult to use [...]
EasyEclipse + Vimplugin for Python Development
Up until now, I’ve always used the terminal for programming development on my projects. Because I’m so familiar with the advanced text editor vim, I can get a lot done on the command line, and it doesn’t detract away from what is actually going on behind the scenes, as a lot of IDEs seem to [...]
Google Sync for Mobile
If you use Google calendar, and you’ve got an iPhone, or Windows Mobile phone like me, then you’ll be pleased to hear about the new Google Sync for Mobile tool just brought out into beta by Google. There were various ways to sync Google Calender events to Windows Mobile devices before, but nothing officially supported. [...]
December 2008
One Laptop Per Child – My XO Laptop
I did something out of the ordinary this Christmas. I bought an “XO” laptop for a child in a third world country. I also bought an XO laptop for myself, so I can develop software designed to be distributed to the 1 million+ XO laptops out there in the third world. The laptop runs a [...]
The Blog Factory
I’ve started my own blog consulting business, helping people setup their own blogs, either for their company or for personal use. It’s called The Blog Factory, see the site for more information on what we do. In a nutshell, we can: 1) Setup and customise WordPress blogs. 2) Design custom WordPress themes. 3) Develop tailored [...]
November 2008
FREE Cloud Computing testbed for Python Apps
This is so cool.. Google are beta-testing a totally free hosting and cloud-computing resource called Google App Engine. The caveat is that your hosted app must be written in Python. Python is amazing anyway, and if you don’t know it, now is the perfect time to learn. Check this out for more information about Google [...]
October 2008
Bacula Scheduling
Bacula is a great open-source distributed backup program for Linux/UNIX systems. It is separated into three main components: One ‘Director’ – which sends messages to the other components and co-ordinates the backup One or more ‘File Demons’ – which ‘pull’ the data from the host they are installed from. One or more ‘Storage Demons’ – [...]
Linux under Hyper-V
This is an overview of current Linux support under Hyper-V, the free Windows Server 2008 virtualisation product. As you probably know, virtual servers allow the emulation of hardware in software. So you have a single physical ‘virtual server’. This virtual server emulates the physical hardware for several ‘virtual machines’ which sit on top of the [...]
September 2008
Stanford Engineering for Everyone
The Stanford engineering department, often regarded as the best in the world for computer science education, has made its core CS curriculum free for anyone with an internet connection. There are some catches, ie: you don’t get your assignments marked, you have no contact with the lecturer, but all the same, it is really a [...]
Automated Emails on Commiting to a Subversion Repository Using Python
At work I’ve written a couple of scripts that send out emails to the appropriate project team when someone checks in a commit to the project subversion repository. Here are the details. Firstly, you will need a subversion hook setup on post-commit. The post-commit hook needs to be located in SVNROOT/YOURPROJECT/hooks where YOURPROJECT is your [...]
Scraping Wikipedia Information for music artists, Part 2
I’ve abandoned the previous Wikipedia scraping approach for Brightonsound.com, as it was unreliable and didn’t pinpoint the right Wikipedia entry – ie: a band called ‘Horses’ would pull up a Wikipedia bio on the animal – which doesn’t look very professional. So instead, I have used the Musicbrainz API to retrieve some information on the [...]
July 2008
Character encoding fix with PHP, MySQL 5 and ubuntu-server
For some reason, under ubuntu-server, my default MySQL 5 character encoding was latin1. This caused no end of problems with grabbing data from the web, which was not necessarily in latin1 characterset. If you are ever in this situation, I suggest you handle everything as UTF-8. That means setting the following lines in my.cnf: 1 [...]
June 2008
Scraping artists bios off of Wikipedia
I’ve been hacking away at BrightonSound.com and I’ve been looking for a way of automatically sourcing biographical information from artists, so that visitors are presented with more information on the event. The Songbird media player plugin ‘mashTape’ draws upon a number of web services to grab artist bio, event listings, youtube vidoes and flickr pictures [...]
March 2008
adExcellence Exam passed
I passed the adExcellence exam first time.. woo! It wasn’t that difficult really. “David Craddock of iCrossing is accredited as an official Microsoft adExcellence Member. A Microsoft adExcellence Member has completed comprehensive online training on managing Microsoft adCenter search engine marketing campaigns and has demonstrated expert knowledge by passing the Microsoft adExcellence accreditation exam.” As [...]
Yahoo! Pipes
I have just seen Yahoo! Pipes, and am convinced this is going to change the web. For real. Data source sites will become ‘content providers’, data will be aggregated and filtered from multiple content providers, either by the user or by ‘intermediary’ sites. The user will be able to choose his ‘data view’ of the [...]
BrightonSound.com
We’ve been working on a Brighton music events Google maps mashup project: www.BrightonSound.com It’s still developing, but it looks quite good, and we’re ready to start showing it off to people. So check it out!
February 2008
A poor man’s VMWare Workstation: VMWare Server under Ubuntu 7.10 + VMWare Player under Windows XP
I finally setup my Dell Lattitude D630 laptop the way I wanted it last night, and thought I’d do a quick writeup about it. Here is the parttition table: A 40GB Windows XP partition, with VMWare Player installed, which I will be using for Windows applications that don’t play well in virtualised mode (eg media [...]
Brighton Barcamp2
I will be attending Brighton Barcamp 2 on the weekend of the 14th March, and presenting on a new web project I’ve been working on. See: http://barcamp.pbwiki.com/BarCampBrighton2 and http://www.barcampbrighton.org/ for more info. Update: Brighton Barcamp 2 is now over. This was really interesting, and I learned a huge amount in a very short amount of [...]
November 2007
OpenSocial
This is going to be absolutely huge:
An interesting blog written by a friend of mine
My friend Adam has a blog featuring interesting internet finds. Check it out: One Idea
June 2007
A bit of theory..
I’ve been trying to learn a lot about search engines lately, as I’ve been starting at an internet marketing firm. I found this excellent list of online materials for university courses related to search engines: http://clair.si.umich.edu:8080/wordpress/?p=11 In particular, these seem especially relevant: The Structure of Information Networks – http://www.cs.cornell.edu/Courses/cs685/2002fa/ (a good introduction) Search Engine Technology [...]
May 2007
Craiglist opens a Brighton, UK section
I just noticed that US bulletinboard giant Craigslist.com has opened a Brighton UK section of their website! There are a few posts already. At the moment, Gumtree’s Brighton Section is massively popular here. I’ve recurited several flatmates using Gumtree, and am basing my local housing search around it. It will be interesting to see how [...]
My Nabaztag
Nabaztag (Armenian for “rabbit”) is a Wi-Fi enabled rabbit, manufactured by Violet. The Nabaztag is a “smart object”; it can connect to the Internet (for example to download weather forecasts, read its owner’s email, etc). It is also fully customizable and programmable. – Wikipedia.org Here is our Nabaztag – Francois Xavier: Of course, I’ve been [...]
April 2007
NVIDIA GeForce4 MX 420 under Ubuntu Dapper Drake
My GeForce4 MX 420 didn’t work properly with OpenGL under a fresh install of Dapper Drake. Fixing it, however, proved to be really easy: 1) Install the nvidia package: $ apt-get install nvidia 2) Edit /etc/X11/xorg.conf and replace the ‘driver’ where it says ‘nv’ with “nvidia”: Section “Device” Identifier “NVIDIA Corporation NV17 [GeForce4 MX 420]” [...]
The topic of this blog
This blog will be about my perspective on technology. Anything that catches my interest will be fair game, but mainly it will revolve around internet technology and the development of such. It will allow me to create an online presence, and to improve my writing skills. I hope you will find the time to check [...]
By Category:
Music
Insights into a modern Indie Music label
I read this remarkable post on a public mailing list I subscribe to. I thought it was such a great insight into running a music label, that I just had to post it here. It discusses issues facing modern music, such as DRM, DMCA, and other ways of making (or losing) money. Fascinating. Here it [...]
News
The topic of this blog
This blog will be about my perspective on technology. Anything that catches my interest will be fair game, but mainly it will revolve around internet technology and the development of such. It will allow me to create an online presence, and to improve my writing skills. I hope you will find the time to check [...]
Craiglist opens a Brighton, UK section
I just noticed that US bulletinboard giant Craigslist.com has opened a Brighton UK section of their website! There are a few posts already. At the moment, Gumtree’s Brighton Section is massively popular here. I’ve recurited several flatmates using Gumtree, and am basing my local housing search around it. It will be interesting to see how [...]
A bit of theory..
I’ve been trying to learn a lot about search engines lately, as I’ve been starting at an internet marketing firm. I found this excellent list of online materials for university courses related to search engines: http://clair.si.umich.edu:8080/wordpress/?p=11 In particular, these seem especially relevant: The Structure of Information Networks – http://www.cs.cornell.edu/Courses/cs685/2002fa/ (a good introduction) Search Engine Technology [...]
An interesting blog written by a friend of mine
My friend Adam has a blog featuring interesting internet finds. Check it out: One Idea
OpenSocial
This is going to be absolutely huge:
Brighton Barcamp2
I will be attending Brighton Barcamp 2 on the weekend of the 14th March, and presenting on a new web project I’ve been working on. See: http://barcamp.pbwiki.com/BarCampBrighton2 and http://www.barcampbrighton.org/ for more info. Update: Brighton Barcamp 2 is now over. This was really interesting, and I learned a huge amount in a very short amount of [...]
BrightonSound.com
We’ve been working on a Brighton music events Google maps mashup project: www.BrightonSound.com It’s still developing, but it looks quite good, and we’re ready to start showing it off to people. So check it out!
Yahoo! Pipes
I have just seen Yahoo! Pipes, and am convinced this is going to change the web. For real. Data source sites will become ‘content providers’, data will be aggregated and filtered from multiple content providers, either by the user or by ‘intermediary’ sites. The user will be able to choose his ‘data view’ of the [...]
adExcellence Exam passed
I passed the adExcellence exam first time.. woo! It wasn’t that difficult really. “David Craddock of iCrossing is accredited as an official Microsoft adExcellence Member. A Microsoft adExcellence Member has completed comprehensive online training on managing Microsoft adCenter search engine marketing campaigns and has demonstrated expert knowledge by passing the Microsoft adExcellence accreditation exam.” As [...]
Stanford Engineering for Everyone
The Stanford engineering department, often regarded as the best in the world for computer science education, has made its core CS curriculum free for anyone with an internet connection. There are some catches, ie: you don’t get your assignments marked, you have no contact with the lecturer, but all the same, it is really a [...]
FREE Cloud Computing testbed for Python Apps
This is so cool.. Google are beta-testing a totally free hosting and cloud-computing resource called Google App Engine. The caveat is that your hosted app must be written in Python. Python is amazing anyway, and if you don’t know it, now is the perfect time to learn. Check this out for more information about Google [...]
The Blog Factory
I’ve started my own blog consulting business, helping people setup their own blogs, either for their company or for personal use. It’s called The Blog Factory, see the site for more information on what we do. In a nutshell, we can: 1) Setup and customise WordPress blogs. 2) Design custom WordPress themes. 3) Develop tailored [...]
One Laptop Per Child – My XO Laptop
I did something out of the ordinary this Christmas. I bought an “XO” laptop for a child in a third world country. I also bought an XO laptop for myself, so I can develop software designed to be distributed to the 1 million+ XO laptops out there in the third world. The laptop runs a [...]
Google Sync for Mobile
If you use Google calendar, and you’ve got an iPhone, or Windows Mobile phone like me, then you’ll be pleased to hear about the new Google Sync for Mobile tool just brought out into beta by Google. There were various ways to sync Google Calender events to Windows Mobile devices before, but nothing officially supported. [...]
Heart rate monitor now available for the XO Laptop
Volunteers on the OLPC project have developed a low-cost heart rate monitor that can be plugged into the XO laptop, making steps towards an affordable monitoring system for hospitals in developing countries. For more information on the development, see the: OLPC Goldenstate project. People in the US can currently buy the sensor here; unfortunately there [...]
Passed the W3Schools PHP Certification
As a break from my contract work, I took the W3Schools PHP Certification. I didn’t do any revision, which probably wasn’t wise. It was a bit more difficult than I thought, but I passed still.
Site News
Site Redesign
I’ve just updated the design of this blog, re-enabled comments and added a contact tab. I’ve installed a strong anti-spam comment filter, but you should now be able to comment on entries. I’ve also changed the layout of things slightly, and made it easier to read.
Solutions to a Specific Problem
NVIDIA GeForce4 MX 420 under Ubuntu Dapper Drake
My GeForce4 MX 420 didn’t work properly with OpenGL under a fresh install of Dapper Drake. Fixing it, however, proved to be really easy: 1) Install the nvidia package: $ apt-get install nvidia 2) Edit /etc/X11/xorg.conf and replace the ‘driver’ where it says ‘nv’ with “nvidia”: Section “Device” Identifier “NVIDIA Corporation NV17 [GeForce4 MX 420]” [...]
Character encoding fix with PHP, MySQL 5 and ubuntu-server
For some reason, under ubuntu-server, my default MySQL 5 character encoding was latin1. This caused no end of problems with grabbing data from the web, which was not necessarily in latin1 characterset. If you are ever in this situation, I suggest you handle everything as UTF-8. That means setting the following lines in my.cnf: 1 [...]
Automated Emails on Commiting to a Subversion Repository Using Python
At work I’ve written a couple of scripts that send out emails to the appropriate project team when someone checks in a commit to the project subversion repository. Here are the details. Firstly, you will need a subversion hook setup on post-commit. The post-commit hook needs to be located in SVNROOT/YOURPROJECT/hooks where YOURPROJECT is your [...]
Bacula Scheduling
Bacula is a great open-source distributed backup program for Linux/UNIX systems. It is separated into three main components: One ‘Director’ – which sends messages to the other components and co-ordinates the backup One or more ‘File Demons’ – which ‘pull’ the data from the host they are installed from. One or more ‘Storage Demons’ – [...]
Config files for the Windows version of VIM
Today I encountered problems configuring the windows version of the popular text editor VIM, so I thought I’d write up a quick post talk about configuration files under the Windows version, if anyone becomes stuck like I did. I use Linux, OSX and Windows on a day-to-day basis, and VIM as a text editor for [...]
PHP Sample – HTML Page Fetcher and Parser
Back in 2008, I wrote a PHP class that fetched an arbitary URL, parsed it, and coverted it into an PHP object with different attributes for the different elements of the page. I recently updated it and sent it along to a company that wanted a programming example to show I could code in PHP. [...]
Shell scripts for converting between Unix and Windows text file formats
I’ve been using these shell scripts I wrote to convert between unix and windows text file formats. They seem to work well without any problems. If you put them in the /usr/sbin/ directory, they will be accessible on the path of the linux admin account root. /usr/sbin/unix2win #!/bin/bash # Converts a unix text file to [...]
Changing the default “From:” email address for emails sent via PHP on Linux
I’ve had to solve this problem a couple of times at least, and it’s quite a common task, so I thought I’d document it here. When you send emails to users of your site through using the PHP mail() function, they will sometimes turn up in the mailbox of customers of your site with the [...]
How to remove nano, vim and other editors’ backup files out of a directory tree
Linux command-line editors such as nano and vim often, by default, create backup files with the prefix of “~”. I.e, if I created a file called /home/david/myfile, then nano would create a backup in /home/david/myfile~. Sometimes it doesn’t delete them either, so you’re left with a bunch of backup files all over the place, especially [...]
Forkbombs and How to Prevent Them
A forkbomb is a program or script that continually creates new copies of itself, that create new copies of themselves. It’s usually a function that calls itself, and each time that function is called, it creates a new process to run the same function. You end up with thousands of processes, all creating processes themselves, [...]
WordPress HTML edit mode inserts BR tags sometimes when you add a carriage return..
This is something that was quite annoying today, as I was struggling to use WordPress 2.9.2 to align some pictures in the HTML mode of editing a page, on a client’s website. It turns out that WordPress was adding BR tags sometimes when I hit return.. and sometimes not. The annoying thing was, although the [...]
Windows 7 Gaming on my Macbook
I have a 2006/2007 Core 2 Duo 2.6ghz white macbook, that I use regularly for internet, music, watching films, itunes and integration with my iPhone. I wanted to turn my desktop PC into a ‘work only’ Ubuntu Linux machine, so that I don’t get distracted when I’m supposed to be doing something else. But I [...]
Restoring Ubuntu 10.4′s Bootloader, after a Windows 7 Install
I installed Windows 7 after I had installed Ubuntu 10.4. Windows 7 overwrote the Linux bootloader “grub” on my master boot record. Therefore I had to restore it. I used the Ubuntu 10.4 LiveCD to start up a live version of Ubuntu. While under the LiveCD, I then restored the Grub bootloader by chrooting into [...]
Tips
Linux under Hyper-V
This is an overview of current Linux support under Hyper-V, the free Windows Server 2008 virtualisation product. As you probably know, virtual servers allow the emulation of hardware in software. So you have a single physical ‘virtual server’. This virtual server emulates the physical hardware for several ‘virtual machines’ which sit on top of the [...]
EasyEclipse + Vimplugin for Python Development
Up until now, I’ve always used the terminal for programming development on my projects. Because I’m so familiar with the advanced text editor vim, I can get a lot done on the command line, and it doesn’t detract away from what is actually going on behind the scenes, as a lot of IDEs seem to [...]
Eclipse 3.4.2 + Pydev + Eclim = win
So, after saying all that stuff about how vimplugin and EasyEclipse was great, I actually started to use the setup heavily, and it started to annoy me. For one, EE is not a recent build of eclipse, nor does it come with a full set of recent plugins. This makes it annoyingly difficult to use [...]
MicroKORG + Python = MIDI fun!
So, about a month ago I got a second-hand microKORG from Ebay. Fiddling around with the preset patches, and creating new patches is great fun, even though I only know a few chords. Recently I plugged it in to my PC via my M-Audio Uno USB->MIDI interface, and soon was using Ableton Live to program [...]
Long Bash History Files are Great.
When I’m installing software, or doing some complicated stuff on the linux command line, which nowadays is pretty much all the time, I will sometimes want to remember exactly what I typed. Now the normal /home/david/.bash_history file is usually fine for that. Run this command, for example, and you will see the commands you typed [...]
Useful OSX commands for Linux users
I wrote this list to remind me, as a newcomer to OSX, how the command line differed from the Linux commandline. I thought I’d expand on it, and share it: To mount any iso: hdiutil mount sample.iso To download a file as you would using wget: curl http://ftp.heanet.ie/pub/linuxmint.com/stable/8/LinuxMint-8.iso -o linuxmint.iso -C – the -o specifies [...]
Tip for watching the completion of a large file copy
Forget the wonderful windows progress bar, and imagine I’m in the world of command-line Linux, and I want to copy a 484MB file, called VMware-server-2.0.2-203138.i386.tar.gz, from my home directory to a remote server. But I want to figure out how long it’s going to take. 1. First I can run a “du -m” command to [...]
Tutorials
My Nabaztag
Nabaztag (Armenian for “rabbit”) is a Wi-Fi enabled rabbit, manufactured by Violet. The Nabaztag is a “smart object”; it can connect to the Internet (for example to download weather forecasts, read its owner’s email, etc). It is also fully customizable and programmable. – Wikipedia.org Here is our Nabaztag – Francois Xavier: Of course, I’ve been [...]
A poor man’s VMWare Workstation: VMWare Server under Ubuntu 7.10 + VMWare Player under Windows XP
I finally setup my Dell Lattitude D630 laptop the way I wanted it last night, and thought I’d do a quick writeup about it. Here is the parttition table: A 40GB Windows XP partition, with VMWare Player installed, which I will be using for Windows applications that don’t play well in virtualised mode (eg media [...]
Scraping artists bios off of Wikipedia
I’ve been hacking away at BrightonSound.com and I’ve been looking for a way of automatically sourcing biographical information from artists, so that visitors are presented with more information on the event. The Songbird media player plugin ‘mashTape’ draws upon a number of web services to grab artist bio, event listings, youtube vidoes and flickr pictures [...]
Scraping Wikipedia Information for music artists, Part 2
I’ve abandoned the previous Wikipedia scraping approach for Brightonsound.com, as it was unreliable and didn’t pinpoint the right Wikipedia entry – ie: a band called ‘Horses’ would pull up a Wikipedia bio on the animal – which doesn’t look very professional. So instead, I have used the Musicbrainz API to retrieve some information on the [...]
VirutalHosts on CentOS
A common task when setting up an Apache webserver under Linux, is writing a httpd.conf file. The httpd.conf file is the main configuration file for Apache. One of the main reasons to edit the httpd.conf file is to setup virtual hosts In Apache. A Virtual host configuration allows several different domains to be run off [...]
Regex in VIM.. simple
There are more than a gazillion ways to use regexs. I am sure they are each very useful for their own subset of problems. The sheer variety can be highly confusing and scary for a lot of people though, and you only need to use a few approaches to accomplish most text-editing tasks. Here is [...]
Using the Linux command ‘Watch’ to test Cron jobs and more
OK, so you have added a cron job that you want to perform a routine task every day at 6am. How do you test it? You probably don’t want to spend all night waiting for it to execute, and there’s every chance that when it does execute, you won’t be able to find out whether [...]
My minimal VIM config
This is the absolute minimum I do when I have to log onto a new server or shell account that I haven’t used before, that I will need to edit text files with. First I figure out whether VIM is really installed. A lot of installs, especially those based on ubuntu, ship with VI aliased [...]
The Linux Root Directory, Explained
It’s helpful to know the basic filesystem on a Linux machine, to better understand where everything is supposed to go, and where you should start looking if you want to find a certain file. Everything in Linux is stored in the “root directory”. On a windows machine, that would be equivalent to C:\. C:\ is [...]
Forkbombs and How to Prevent Them
A forkbomb is a program or script that continually creates new copies of itself, that create new copies of themselves. It’s usually a function that calls itself, and each time that function is called, it creates a new process to run the same function. You end up with thousands of processes, all creating processes themselves, [...]
Ripping Movies onto the iPhone
I’m currently watching Persepolis, the 2008 animated film about a tomboy anarchist growing up in Iran. I’m watching this on my new iPhone 3GS, and the picture and audio quality is very good. Here’s what I used to convert my newly bought Persepolis DVD, for watching on the iPhone. 1x Macbook (but you can use [...]
Restoring Ubuntu 10.4′s Bootloader, after a Windows 7 Install
I installed Windows 7 after I had installed Ubuntu 10.4. Windows 7 overwrote the Linux bootloader “grub” on my master boot record. Therefore I had to restore it. I used the Ubuntu 10.4 LiveCD to start up a live version of Ubuntu. While under the LiveCD, I then restored the Grub bootloader by chrooting into [...]
Uncategorized
Speed Climbing
I’m going to take a break from the purely technical posts to get more people to see this video. Here the late Dan Osman speed-climbs a cliff without any safety equipment. Risky? Just a bit. A few years later he lost his life during a similar attempt. But no-one can doubt the guts required, and [...]
Decent Graphics for Flash Games
Lately I’ve been thinking about making a Flash game or application. Although I haven’t made one yet, my current understanding is that most projects of this type require a lot of artwork. I found this article, and was impressed at the quality and the resources mentioned: http://freelanceflashgames.com/news/2009/03/25/the-big-guide-to-hiring-an-artist/
