God, Windows is sloooooow
I am assisting a colleague today check out a rather large feature branch. I showed him the branch address and he started checking it out using Tortoise SVN on Windows 7. Upon returning to my desk (Ubuntu 11.10), I decided to merge the branch with the major trunk. I checked out a brand new copy [...]
Ubuntu, Thunderbird always maximised
I recently switched from Linux Mint back to the old trusty Ubuntu (11.10) One major problem was Unity, but I got round this by installing Xfce and use that as a shell instead. Much better. Now, my Thunderbird is proper maximised. Like full screen, so I can’t switch to any applications unless I use ALT [...]
MySQL Error in create table syntax ‘USING BTREE’
We had an odd thing today, whilst performing a apply-db-changes we received the error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘USING BTREE, KEY `index` (`fields`)’ at line 1 It worked fine before, so why won’t ant [...]
SVN Externals – how to add them
When creating a Zend Framework site, its always best to keep the Zend library as an external source. This way you can keep the branch up-to-date with the release of Zend with a simple text file. To access the externals file, navigate to the root of your site: > cd /var/www/mysite And add the external [...]
Add all new files to SVN
How to recursively add all new files to SVN > svn add –force * Saves a whole bunch of time when committing a load of new pages via the command line.
Keeping 2 drives sync’ed with rsync on Linux
I have an external USB HDD and I like to keep it synchronised with my desktop for backup reasons. I find the easiest way to do this, is to use rsync: > sudo apt-get install rsync > rsync -avu /source/ /dest/ For example: > rysnc -avu /media/externaldisk/ /home/chris/diskbackup/ Will increment copy everything (ignoring older files) from [...]
HOWTO: Rotate a video in Linux
I videoed something at the weekend on my iphone, but must’ve had the phone upside-down so the video came out that way. Fortunately there is a little program that will rotate a video for you. > sudo apt-get install mencoder Then, to rotate my video clockwise by 90 degrees: > mencoder -ovc lavc -vf rotate=1 [...]
Stopping Ubuntu opening F-Spot when I plug in my iPhone
When I installed Ubuntu, every time I plugged in my iPhone it popped up a prompt asking me what to do about the digital music/photos. After clicking “do nothing” for months I decided to let it open F-Spot to import my photos. This is all well and good, but it now pops up f-spot whenever [...]
Showing hidden files on Mac OS
Learning MacOS recently, and couldn’t find some hidden files, i.e. .htaccess To fix this, easy. Open Terminal, and paste the following in (both lines together), and press enter. Done. defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder To reverse the operation and re-hide them, change TRUE to FALSE.
How to use Nano on Unix-like systems
Nano is a basic text only text editor in Unix. It has no real GUI as such, and there is very little mouse interaction. But this makes it very useful, especially when SSHing to your web server. Here are some basic commands for you. Opening Nano to edit a file is as simple as Nano [...]
keep looking »