Skip to content
Apr 1 11

jQuery Blink Tag

by Ryan

Just cause.

<script type="text/javascript">
jQuery(document).ready(function() {
        setInterval ("blink()", 1000);
});

function blink(){
        jQuery(".blinkMe").toggle();
}
</script>
Aug 20 10

Colours in Vi on OS X

by Ryan

Each time I logged into a webserver and popped open some source file in Vi, I’d get some nice syntax colouring, but I never got it from my local OS X machine.

Well, I finally got fed up enough to figure it out:
1) Open up Terminal.app
2) Navigate to your home directory (if needed – cd ~)
3) Type: vi .vimrc
4) Enter the line: syntax on. Exit and save the document
5) Open up your favorite piece of source code (ie, vi test.php)

Jun 29 10

Installing GIT on Cent OS

by Ryan

I spent close to an hour trying to work out why git wouldn’t install on our Cent OS server. After numerous trials and a lot of un-working solutions found on the internet, I found this one:

http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52

Jun 28 10

YAML for Coda

by Ryan

I’ve been delving more and more into the Symfony framework and as a consequence have been using the YAML syntax more and more.

My favorite editor, Coda, doesn’t come with native YAML support. Luckily, someone very awesome has come to my rescue and posted a mode for the format.

You can check it out here: http://github.com/stuffmc/YAML.mode