I wanted to use this excellent command line from commandlinefu.com on the mac to create a podcasts playlist on my G1 each time I chucked some new podcast files on it. Unfortunately OSX (or BSD) aren’t exact matches to linux, so here’s my hack. It’s not elegant, too many pipes, but it works!
cd /Volumes/NIALLSG1/Music/Podcasts && [...]
Archive for March, 2009
OSX: Create a Playlist From a Folder
Posted in makeitbetter, music, tagged android, bash, commandlinefu, g1, mac, music, osx on Wednesday, March 18th, 2009 | Leave a Comment »
Installing Laconica
Posted in 1, tagged howto, intrepid, laconica, php, sphinx, ubuntu on Monday, March 16th, 2009 | 1 Comment »
Using:
OS: $ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid
php 5.2.6
mysql server 5.0.67-0ubuntu6
Added pre-requisities php libraries:
sudo apt-get install php5-cli
sudo apt-get install php5-curl
sudo apt-get install php5-mysql
sudo apt-get install php5-gd
sudo apt-get install php-gettext
Check mbstring is installed: php -i | grep -i [...]
Getting a Current Subversion Project Into Git Control
Posted in 1 on Thursday, March 12th, 2009 | Leave a Comment »
Whilst learning how to use git with svn I am documenting the way I’ve done it. I’m using bash and am starting from the directory above my working directory. The project is checked out already from an svn repo. The working directory is “efot”.
Commit anything outstanding in your working directory to svn
Move your working directory [...]
Add Default Value To Existing MS SQL Column
Posted in makeitbetter on Wednesday, March 11th, 2009 | Leave a Comment »
I can never get this syntax to stick in my head.
ALTER TABLE someTable
ADD CONSTRAINT DF_someTable_someColumn DEFAULT getdate() FOR someColumn
Git locally, Subversion Repos
Posted in makeitbetter, tagged git, git-svn, subversion, svn on Tuesday, March 10th, 2009 | Leave a Comment »
Whilst learning how to use git with svn starting from a new item in the trunk, I’ve hit a couple of snags and am documenting the way I should have done it.
Create your new working directory and add it to svn first: mkdir efot && svn add efot && svn commit efot -m “starting the [...]
Mac OSX: Things To Do First If You’re a Developer
Posted in 1, Design & Development, makeitbetter, tagged development, mac, macports, osx, xcode on Saturday, March 7th, 2009 | Leave a Comment »
If you’re a developer moving to a Mac may I recommend, from my own experience, you do these three things before you try and do anything at all other than using iLife or M$ Office:
Install XCode Tools. You’ll need your OSX install DVD, select Optional Installs/Xcode Tools, and run the XcodeTools.mpkg. Budget an hour for [...]