Archive for the ‘Development’ Category
Patterns of Enterprise Application Architecture
I decided at the beginning of this year to start reading more. I have read a lot of books in the past, but in the last couple of years I have been neglecting this form of learning. So I decided to go to the library and get all the books from my Amazon wish list. [...]
February 14, 2010
Tags: application architecture, patterns Posted in: Development
One Comment
Using Quicksilver to edit hosts file
This is mostly just a follow up for my previous post on using a shell script to add and remove test domains in the hosts file. I have created two small applescripts for use in Quicksilver to execute that script. If you need to use these you place them in ~/Library/Application Support/Quicksilver/Actions and set your [...]
November 4, 2009
Tags: applescript, hosts, quicksilver Posted in: Development
3 Comments
Bash script for editing the hosts file
I just read a post about local development in apache by Jesper Rasmussen and thought one thing was missing. I usually test my sites and applications locally with the real domain – to ensure that functionality based on the url works as expected. However this means editing the hosts file several times a day. Now [...]
November 4, 2009
Tags: bash, easy creation, hosts, shell script Posted in: Web development
One Comment
Converting Filenames to Lowercase with Bash
Once again I have a bash-oneliner. For some reason it is all I blog about at the moment.
I had an import script for importing demo files (in mp3 format) to a database used at Voicearchive. Only problem the import script depended on the files being named precisely according to a specific rule. But for [...]
June 3, 2009
Tags: bash, bash oneliner, import script, voicearchive Posted in: Development
No Comments
Resizing Itunes Window with Applescript
This weekend my girlfriend and I moved all the stuff I had in my private office/homestudio out, to create a room for our son. Because of this my old mac was put in the living room, and is now a primitive media center with the TV as it’s only screen. The resolution as a result [...]
May 31, 2009
Tags: applescript, itunes window, set bounds Posted in: Development
One Comment
Bash Oneliner for Counting Files
I needed to find a way to count the number of files in a directory and only output that number. Bash is still my best friend for this sort of thing – especially with a little help from google.
ls -1 | wc -l
by the way – the answer was 2062 files.
May 14, 2009
Tags: bash, bash oneliner, counting files Posted in: Development
2 Comments
