man

Welcome

My personal space on the interweb. Here you'll find code snippets I've gathered during my day to day work. Hopefully it will come in handy for others, as well as providing me with a place to store things.

RubyMine setup and launch application as root

Posted by Tom Eustace on February 23, 2011|Comments|Read full article
I have openjdk installed as well as sun jdk, so when I ran rubymine I was getting a warning message about using openjdk.

Public Keys accessing github gives Agent admitted failure to sign using the key.

Posted by Tom Eustace on January 21, 2011|Comments|Read full article

Got this error recently when trying to connect to github, having not connected for awhile:

BDD - Rails 3, AutoTest, RSpec and Growl

Posted by Tom Eustace on April 30, 2011|Comments|Read full article

RSpec and AutoTest with Growl notifications set up for Ubuntu 10.10. Here's what worked for me. This is a rapid post to help me when I need to do this in the future.

Get value from checkbox in rails (2.0.4)

Posted by Tom Eustace on February 25, 2011|Comments|Read full article
With below checkbox, access the value in controller with something like :params[checkbox_name], e.g. if (:params[checkbox_name] == 'selected') # do something

Run Play Application With bat File

Posted by Tom Eustace on February 20, 2012|Comments|Read full article
I recently had to develop a tool to be deployed on local windows servers, that could be run using a bat file.

Add Multiple Database Support to Play! Framework

Posted by Tom Eustace on August 26, 2011|Comments|Read full article

I've just started using play and really like it. On my first project I needed multiple database support, I was using 1.2 which didn't have multiple database support.

Log to file

Posted by Tom Eustace on October 02, 2011|Comments|Read full article
Simple logging to file.

Display message based on user login status in Drupal

Posted by Tom Eustace on December 19, 2009|Comments|Read full article
Recently been doing a bit of work with Drupal. Here's a handy little script which allows you to check if a user is logged in or not...

Stripe a table using jquery

Posted by Tom Eustace on February 25, 2011|Comments|Read full article
Stripe a table using jquery