RubyMine Public Preview

Posted by John
on Wednesday, 19 November 2008

RubyMine

From the makers of Resharper, a brand new Ruby IDE for Windows / Mac / Linux.

...might finally be a reason to switch off TextMate ;-)

Installing on Linux is a little difficult but do-able, first off download the Linux build and extract it.

Next up you'll need to add an environment variable into your .bashrc file,

gedit .bashrc

Then add this to the end of the file, with the path of your JAVA JDK location.

export JDK_HOME=/usr/lib/jvm/java-6-openjdk/

Save it and reload Terminal so it's got the new variable, then in Terminal navigate into the bin directory of RubyMine you just downloaded,

cd ~/Desktop/rubymine472/bin

Then remove the last line of rubymine.vmoptions

gedit rubymine.vmoptions

  remove this line => -agentlib:yjpagent=disablej2ee,sessionname=rubymine

Once done you should be able to start up RubyMine;

~/Desktop/rubymine472/bin/rubymine.sh

Then you can add it to your .bashrc file so you can fire it up any time you want with an alias,

alias rubymine="~/Desktop/rubymine472/bin/rubymine.sh"

And then

rubymine

Puppet - Setup / Test Notes

Posted by John
on Wednesday, 09 July 2008

'Put simply, Puppet is a system for automating system administration tasks'

Install

Depends on Ruby (at least 1.8.2), install with:

Client:

sudo aptitude install puppet facter

Server:

sudo aptitude install facter puppet puppetmaster

A Simple Manifest: Managing Ownership of a File

Step one: Create /etc/puppet/manifests/classes/sudo.pp
sudo nano /etc/puppet/manifests/classes/sudo.pp

class sudo {
    file { "/etc/sudoers":
        owner => "root",
        group => "root",
        mode  => 440,
    }
}
Step two: Create /etc/puppet/manifests/site.pp
sudo nano /etc/puppet/manifests/site.pp

import "classes/*"

node default {
    include sudo
}
Step three: Start the Puppetmaster
master % sudo puppetmasterd --mkusers

master % sudo /etc/init.d/puppetmaster restart  (for ubuntu / debian)
Step four: Run a client
client% sudo puppetd --verbose

master% sudo puppetca --list

master% sudo puppetca --sign <client>

Firefox Addons (3rd edition)

Posted by John
on Thursday, 03 January 2008

More really decent Firefox Addons...

  • ColorZilla
    ...provides an eyedropper, like photoshop

  • ThrashMail.net
    ...dummy email address generator

  • FFmyIp
    ...displays your machine's ip address

  • LoremIpsum Content Generator
    ...generates lorem ipsum text for your web designs

  • FireFtp
    ...ftp file manager addon for firefox

  • FireBug
    ...the best web debugger in history

  • Web Developer Toolbar
    ...very competent web design addon

  • Delicious Toolbar
    ...add your del.ici.ous links to firefox

  • YSlow
    ...addon to FireBug, ranks your sites performance and offers solutuions to speed it up

  • FireCookie
    ...addon to FireBug, gives you total control of cookies

  • Tails
    ...Microformats statusbar extension, lights up when it sees microformat code in a webpage

  • PicLens
    ...instantly transforms your browser into a full-screen 3D experience for viewing images across the web

All tested to work with the latest Firefox 2.0.0.11 build.

Unit Testing