RSS Valid
XHTML Valid
CSS Valid

Recent Work

Typeoneerror uses Flash Player 9+.
Either flash is not installed, it is deactivated, or your player is out of date.
Click here if you would like to install the player this site requires.

Hacynth - Summer

Wednesday, July 1st, 2009

MMIX Series - Summer

Finally updated my gear and got some new needles this past week. My old ones were seriously a year and a half old (destroyed vinyl anyone?). Here’s a feel-good mix I threw down this past weekend. Tried out some fast mixes and ended up packing twenty-four tracks into just over an hour. Enjoy. P.S. Closer To You; tune of the year so far!

Read the rest of this entry »

@see TextMate snippet

Saturday, June 6th, 2009

I’ve been doing a ton of work with the newest Zend Framework version 1.8.2 this weekend. I’ve found that typing out all the requires for each class can be a pain, so I made a quick TextMate snippet to make adding @see directives for phpdoc at the same time as the require_once directive. Here it is; simple but useful:

/**
 * @see $1
 */
require_once "${1/_/\//g}.php";$0

Add this as a “Tab Trigger” for the word “see” then just type “see” and hit tab then type your class name. It will auto fill the comment and the path to the pear-conventionally-named .php file.

Got any other useful TextMate snippets? Please do share!

Liquid Hacynth Vol 17, In Dub Vol 2

Monday, May 18th, 2009

Liquid Hacynth Series 2009

Two new mixes for you this week. Dabbled around and did some broadcasting on justin.tv as well. Unfortunately, my needles seem to be kaput and were popping and jumping a lot. Time for a new set! Add me to your “favs” if you want to be notified the next time I do a live show. First mix is drum and bass and then a dubstep/downtempo blend. Enjoy.

Read the rest of this entry »

PureMVC TextMate Templates

Monday, May 11th, 2009

Over at Typeoneerror, we’ve been doing a lot of work using the PureMVC Actionscript3 framework. The framework itself is very light and works well in both Flash and Flex, but the overhead for creating a project might dissuade a developer for utilizing it in the creation of a small project. TextMate templates to the rescue!

You’ll find a link below to a zip package containing four useful templates: Command, Facade, Mediator, and Proxy. Hopefully these will save you a ton of typing time. There’s also an import command in there that makes adding PureMVC import directives a snap. If you know of any good PureMVC TextMate bundles or have any snippets you want to send to me – comment!


Installing

The bundle uses a few custom variables to write your name and automatically determine the package path for you.

Read the rest of this entry »

sup: Subversion update and TextMate helper

Saturday, April 18th, 2009

At work and on my home computers, I typically store all my websites in a single directory. I create and check out subversion repositories into this directory. To speed up my workflow, I started adding aliases to my ~/.bash_profile file, e.g.

alias chiron='mono /Applications/Silverlight/sdl-sdk/sdlsdk-0.4.0/bin/Chiron.exe'
alias lsa='ls -al'
alias mate='open -a TextMate.app .'
alias sites='cd /Library/Webserver/Documents'
alias sl='/Applications/Silverlight/sdl-sdk/sdlsdk-0.4.0/script/sl'
alias slserver='/Applications/Silverlight/sdl-sdk/sdlsdk-0.4.0/script/server'

In the sample above, when the bash shell starts (firing up Terminal), I can now simply type

$  sites

To move into my sites directory. So, my usual morning start-up routine might involve something along the lines of

$  sites; cd Typeoneerror; svn up .; mate .

Which would jump to my sites folder, move into the Typeoneerror repository checkout, run svn update, and then open the project in TextMate.

Anyway – long story short – I decided to dabble around in some bash scripting and automate this process, creating a program that allows quick access to updates and open TextMate projects from anywhere in the Terminal shell. The result is my first bash “app”, sup. Sup allows you to set a “base directory” for you websites and then update and open projects from anywhere in the shell. For example, from any directory, I can type:

$  sup Typeoneerror
At revision 47

And the following happens:

– The Typeoneerror repository checkout is updated.
– TextMate opens the Typeoneerror directory in a new project

Doesn’t matter where you are (your current working directory). Of course, it’s very simple, but I’ve found it quite useful. The program also has a few flags:


Options

-c Specify path to your sites folder

Calling sup with this flag is the first thing you will do in setup. This takes a absolute path parameter which is the path to where all your websites live. For this example, I installed sup in ~/bin:

$  sup -c /Library/Webserver/Documents
Default path changed to /Library/Webserver/Documents in /Users/ben/bin/.sup-config

This creates a config option that tells sup the root of your websites. The next time you use sup it will look for a repository in the configured folder. The default sites path is “.” which translates to the current working directory.


Flags

-h Displays the help docs

-i Ignores updating the externals in the subversion checkout (–ignore-externals).

-t Ignores opening the project in TextMate at the end

-v Tells you what it’s doing as it does it – AKA verbose

-w Tells you where your sites folder has been configured


Examples

#  update a subversion repository in a folder called "Folder"	
$  sup Folder

#  update Folder,
#  ignore externals on svn up
#  don't open in textmate
#  display verbose logging
$  sup -tiv Folder

# update Folder without updating svn:externals 
# then change directories into the updated directory
# (cd only works when running the script as "source")
$  . sup -i Folder


Installation and setup

  1. Download the bash script
  2. Extract the zip and copy sup to ~/bin
  3. Make sure ~/bin is in your path. You can simply add the following to ~/.bash_profile if ~/bin is not in your path already:
    export PATH=$PATH\:~/bin
    
  4. run setup:
    sup -c /Your/Path/To/Website/Checkouts
    

As always, I’m no unix pro; my forte is Actionscript and PHP. If you think this program is ridiculous in any way and needs fixing or you have any suggestions, please comment or contact me!

Availability

We'd love to hear about your project! Please see the services and contact sections for more information or for work inquiries.