October 2007
4 posts
National Day Of Protest For Civil Rights in New... →
John Minto says: “If this legislation [the Terrorism Suppression Amendment Bill] had been in place in 1981 then it would have made it illegal to support the release of Nelson Mandela from prison and to show solidarity to the African National Congress in South Africa that was struggling to end apartheid”
“If I feel I am what I have, and I have nothing anymore, then I am not....
– Erich Fromm, excerpt from interview about his book ‘To Have or to Be?’ (1976)
“The phenomena which I would call the pathology of normalcy, that is to...
– Erich Fromm, The automaton Citizen and Human Rights Lecture given at the American Orthopsychiatic Association’s 43rd Annual Meeting in San Francisco on April 13,1966
September 2007
4 posts
undefined method `parse_query_parameters' for...
Seems RSpec on Rails 1.0.8 is calling Rails code that’s not in Rails 1.2.3, hence the error:
undefined method `parse_query_parameters' for ActionController::AbstractRequest:Class
/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/redirect_to.rb:54:in `query_hash'
Just to get things moving I’ve copied the parse_query_parameters method from trunk ActionController::AbstractRequest...
If you're in the states on Sept 15...
superclass mismatch for class Annotation
Running with Rails 1.2.3, Ruby 1.8.6, rake 0.7.3 and rspec 1.0.8, I was getting the following error when running rake:
rake -T project_name
(in /home/apps/project_name)
rake aborted!
superclass mismatch for class Annotation
I solved the superclass mismatch error by removing the version number from the rspec directories in my Rails vendor/plugins directory:
cd vendor/plugins
ls -a
->...
August 2007
22 posts
Reducing frequency of autotest file checks
If your cpu is at 100% when autotest is running and the fan noise is getting too much, don’t worry there’s something you can do.
You can reduce the frequency at which autotest checks for changes on your file system by editing the @sleep attribute on the Autotest class. For ZenTest 3.6.1 I was able to open up autotest.rb in an editor:
sudo vi +145...
`gem_original_require': no such file to load --...
If you get the no hpricot_scan error message, it probably means you don’t have the hpricot native extensions built on your machine.
`gem_original_require':
no such file to load -- hpricot_scan
(MissingSourceFile)
Try installing the hpricot gem, which will build the native extensions:
sudo gem install hpricot --include-dependencies
Defaulting ActiveRecord model boolean attribute to...
Defaulting a boolean attribute to false on model creation works for me if I set the attribute’s value to 0. If I set it’s value to false, I find validation fails when using mySql as the database.
Here’s example code showing how to default a boolean attribute to false on creation:
class PersistedFile < ActiveRecord::Base
before_validation_on_create :default_persisted
...
RSpec expect_render takes collections too!
The RSpec 1.0.8 Specifying Views documentation shows that you can call expect_render and stub_render like this:
template.expect_render(
:partial => 'person',
:object => @person) #auto-verified
template.stub_render(
:partial => 'person',
:object => @person) #not verified
A friendly tip, if you are expecting a partial to be called with a collection, then...
First night at CCCamp07
I’m recovering from a late-night of geek talk, watching live radio broadcast, mediation-inducing LEDs, and campfire songs until 4am. Unfortunately my tent is too hot for me to sleep-in this morning!
Tent pitched at Chaos Communication Camp
Chilling out in aircraft hanger, after cleverly pitching my tent in between light showers. Might catch the end of the GPS Trackers talk. Then it’s beertime with some brits I ran into earlier.
Backing REST since 2002
Sent: Friday, October 18, 2002
To: jedit-users@lists.sourceforge.net
Subject: jEdit wins Finalist Awards in
XML-J 2002 Reader's Choice Awards!
Hi jEdit community,
Congratulations to the jEdit team! jEdit with its XML and XSLT plugins was 2nd runner-up in two categories of the XML-Journal 2002 Reader’s Choice Awards!
Best XML Editor - Readers' Choice Award
2nd...
jEdit Ruby Editor Plugin 0.9 ready for release →
JRuby 1.0, JDK 6u2, jEdit 4.3pre10, Ruby Editor...
Downloading latest JRuby, JDK, and jEdit codebase. Might work on getting jEdit Ruby Editor Plugin 0.9 ready.
July 2007
12 posts
Treacherous Computing is an instance of a very dangerous phenomenon, namely a...
– Transcript of Richard Stallman at the 5th international GPLv3 conference
Getting Vodem working with Ubuntu
Originally published on February 16th, 02007
On a recent visit to Aotearoa New Zealand, I was fortunate to have a mobile broadband connection for my Ubuntu laptop via a Vodem device connected to the Vodafone 3G broadband network. Though this sounds simple, there were two barriers I needed to overcome.
Ideally I would have liked to have leased the Vodem and connection for the short term I was in...
Disambiguated URLs with Ruby on Rails
Originally posted on February 6th, 02007 In addition to being readable, reliable and hackable, as Simon Willison has recently pointed out good URLs should be unambiguous. Each resource on the Web should have one and only one definitive URL, with any alternatives acting as a permanent redirect. Fortunately providing disambiguated URLs is easy to do with Ruby on Rails + lighttpd. Redirecting to URL...
Lazarus Long on ID cards
Originally published on January 3rd, 02007 There is an observation about identity registration schemes in the novel “Time Enough for Love” that often comes to my mind these days. A friend I’m visiting in NZ at the moment happened to have a copy of the novel at hand. I’ve just found the piece about IDs: When a place gets crowded enough to require ID’s, social collapse...
"Social by Design" catalyzing change?
Originally posted on November 15th, 02006 My personal perspective on the meaning of the Web is always challenged at the Beers and Innovation meetups in London, and last night’s Beers and Innovation: Social by Design was no exception. The panel discussion and early question period seemed to focus on a single dimension of social websites - how to collect a large body of users in a social...
In Kilmorie smuggling was not considered a disreputable pursuit and there were...
– History of the Villages of the Isle of Arran - Scottish Women’s Rural Institutes Arran
When the Hamiltons tried to increase their revenue from the Arran farmers, first...
– History of the Villages of the Isle of Arran - Scottish Women’s Rural Institutes Arran
There were two mills in the district. One called Torrylin Mill whose first owner...
– History of the Villages of the Isle of Arran - Scottish Women’s Rural Institutes Arran
June 2007
1 post
Ultimate futility of everything - Independance
Noticing that everything is ultimately futile. You die, I die, so do your children if you have them. During the USA empire’s invasion of Vietnam 3.8 million Vietnamese people were killed, according to a book I’m reading. Do we call this genocide? Has the USA empire paid reparations? Has the USA’s emperor said sorry? Emperor Bush is sucking up to people in eastern Europe at the...
May 2007
5 posts
HowTo: View GOVIS 2007 videos on Linux
Was able to view GOVIS 2007 conference videos on Ubuntu Edgy with these commands: sudo apt-get install totem-xine sudo apt-get install —reinstall alsa-base sudo apt-get install xine-ui wget http://www7.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2 sudo mkdir /usr/lib/win32 tar -xjvf essential-20061022.tar.bz2 sudo mv essential-20061022/* /usr/lib/win32 totem...
Innovation from networks
Innovation on the web now originates from the energy of people building the next generation of social communication concepts using free open source software components. I don’t see proprietary vendors or procurement officers or strategic planning managers innovating. Open continuous improvement The people co-working and co-producing the future - turning our...
GOVIS conference 2007 abstracts
Frequent phrases from GOVIS Conference 2007 abstracts: case study | contract management | e-government | enterprise architecture | government agencies | government organisations | inland revenue | intellectual property | local government | management system | open source | public sector | public value | state services commission | statistics new zealand |
Mongrelizing kiwi parl site
sudo mongrel_rails cluster::configure -e production -p 8000 -N 2 -c /var/www/twfy -a 127.0.0.1 --user rob --group rob sudo chown -R rob:rob tmp sudo chown -R rob:rob log
Reimagining fleeting ideas - the blog
Time is a fleeting resource that slips through my hands faster than I can shape it. A tumble log may be the way to inject my ideas into the stream when I have those spare moments between gem install and svn ci.