{
"body": {
"key": {
"fingerprint": "02d7aaa16da8c4f33c0880121da5b9b0890e9e75",
"host": "keybase.io",
"key_id": "1DA5B9B0890E9E75",
"uid": "9cfb3b33c884fd59287d29a437826100",
"username": "aussiegeek"
},
ActiveRecord::Base.logger = Logger.new(STDERR) |
#!env ruby | |
class DummyTable | |
def initialize(tablename) | |
@@tablename=tablename | |
end | |
def self.method_missing(m, *args); end | |
def self.datetime(name,options={}) | |
puts "execute \"UPDATE #{@@tablename} SET #{name}=CONVERT_TZ(#{name},'SYSTEM','+00:00');\"" | |
end |
#!/usr/bin/env ruby | |
BASE='/opt/ruby-enterprise-1.8.6-20080624' | |
# The command to run for your vanila Ruby 'gem' command | |
OLD_GEM='gem' | |
# The command to run for REE's 'gem' command | |
NEW_GEM="#{BASE}/bin/ruby #{BASE}/bin/gem" | |
output=`#{OLD_GEM} list` | |
new_list=`#{NEW_GEM} list` | |
output.each do |line| |
Last night we had our third Brisbane Cocoaheads meeting, great to see we picking up steam and seeing some regulars.
First of all we had Rob Keniger give us an introduction to the WebKit Bridge, which allows you to use HTML and Javascript within a Cocoa app, and bridge between Cocoa and Javascript.
Next up we had Dr Nic assisted by Anthony Mittaz+ try and throw together a quick app to download a contact list from Highrise and display it it an iPhone Table View, when we had to pack up we had the table view almost working correctly, and the data fetching was still to be done.
Watching someone else code, I picked up two shortcuts name
Cmd + Double Click a class name to view its header definiation
Option + Double Click on a class name to view its documentation
set :user, 'nordicmineral' # Your dreamhost account's username | |
set :domain, 'gambino.dreamhost.com' # Dreamhost servername where your account is located | |
set :project, 'nordicmineral' # Your application as its called in the repository | |
set :application, 'nordicmineral.com' # Your app's location (domain or sub-domain name as setup in panel) | |
set :applicationdir, "/home/#{user}/#{application}" # The standard Dreamhost setup | |
# version control config | |
set :scm_username, 'nordicmineral' | |
set :scm_password, '***********' | |
set :repository, "svn+ssh://#{scm_username}@nordicmineral.com/home/nordicmineral/svn/#{project}" |
#!/usr/bin/env ruby | |
BASE='/opt/ree' | |
# The command to run for your vanila Ruby 'gem' command | |
OLD_GEM='gem' | |
# The command to run for REE's 'gem' command | |
NEW_GEM="#{BASE}/bin/ruby #{BASE}/bin/gem" | |
output=`#{OLD_GEM} list` | |
new_list=`#{NEW_GEM} list` | |
output.each do |line| |
Apache + Passenger + FileVault | |
chmod +a "www allow search" /Users/alan |
Haml::Template.options = {:attr_wrapper => "\""} |
export GEMDIR=`gem env gemdir` | |
gemdoc() { | |
open $GEMDIR/doc/`$(which ls) $GEMDIR/doc | grep $1 | sort | tail -1`/rdoc/index.html | |
} | |
_gemdocomplete() { | |
COMPREPLY=($(compgen -W '$(`which ls` $GEMDIR/doc)' -- ${COMP_WORDS[COMP_CWORD]})) | |
return 0 | |
} |