<?xml version="1.0" encoding="UTF-8"?>
<posts type="array">
  <post>
    <body>I always found _ri_ to just really too slow to be of any use, at least on of the machines I use and everytime I install a new gem it seems to slow everything down to a halt. 

&lt;source:bash&gt;
rl@bloodandguts:~$ sudo gem install mislav-will_paginate
[sudo] password for rl: 
Successfully installed mislav-will_paginate-2.3.11
1 gem installed
Installing ri documentation for mislav-will_paginate-2.3.11...
Updating ri class cache with 9654 classes...
Installing RDoc documentation for mislav-will_paginate-2.3.11...
&lt;/source&gt;

If you never use the _ri_ documenation for gems, you can turn this off in your ~/.gemrc file by adding the gem line.

&lt;source:yaml&gt;
--- 
gem: --no-ri
:benchmark: false
:verbose: true
:backtrace: false
:update_sources: true
:sources: 
- http://gems.rubyforge.org/
- http://gems.github.com
:bulk_threshold: 1000
&lt;/source&gt;

I think perhaps I need to do a _gem cleanup_ to really clear out anything I'm not using and remove the gems I installed over a year ago for testing and never use.</body>
    <created-at type="datetime">2010-02-04T10:58:13Z</created-at>
    <id type="integer">145</id>
    <permalink>i-never-use-ri-for-gems</permalink>
    <published-at type="datetime">2010-02-04T10:58:49Z</published-at>
    <title>I never use ri for gems.</title>
    <updated-at type="datetime">2010-02-04T10:58:49Z</updated-at>
  </post>
  <post>
    <body>I'm pretty sure this is the only example of AWK I've ever used. But its come in hand more than a few times.

&lt;source:bash&gt;
cat /var/log/apache2/loathsome-access.log | awk '{ print $1 }' | uniq
&lt;/source&gt;</body>
    <created-at type="datetime">2010-01-25T17:37:55Z</created-at>
    <id type="integer">141</id>
    <permalink>awk-on-the-command</permalink>
    <published-at type="datetime">2010-01-25T17:38:09Z</published-at>
    <title>AWK on the command</title>
    <updated-at type="datetime">2010-01-25T17:38:09Z</updated-at>
  </post>
  <post>
    <body>I've been waiting this follow up to &quot;Abominable Iron Sloth's&quot;:http://www.myspace.com/theironsloth debut for 3 years now, way back Justin asked his Myspace fans to pledge towards funding their next EP, hinting that it might not otherwise happen. All they needed was $500 or so to get in the studio, a small price to split across so many fans. Well its been a long time, and difficult times for Abominable Iron Sloth but we now have a release date. Roll on April 20th. 

Keep up to date with their news on 

!http://www.robl.me/images/uploads/ironslothII.jpg!</body>
    <created-at type="datetime">2010-01-19T09:06:21Z</created-at>
    <id type="integer">140</id>
    <permalink>abominable-iron-sloth-ii-has-a-release-date-20th-april-2010</permalink>
    <published-at type="datetime">2010-01-19T09:08:41Z</published-at>
    <title>Abominable Iron Sloth II has a release date - 20th April 2010</title>
    <updated-at type="datetime">2010-01-20T12:43:23Z</updated-at>
  </post>
  <post>
    <body>_&quot;Audiofilm II&quot;:http://shop.relapse.com/store/product.aspx?ProductID=36838 is the second installment in the &quot;Crucial Blast&quot;:http://shop.relapse.com/store/product.aspx?ProductID=36838 series of limited-edition 3-inch CDs from Scott Hull. Best known for his amazing thrash / grind riffage in the bands Pig Destroyer and &quot;Agoraphobic Nosebleed&quot;:http://www.agoraphobicnosebleed.com, Hull has gradually revealed another side of his musical persona over the past few years: cinematic soundscaping and darkly evocative film scores, mutant electronic textures, and pitch-black isolationism that employs brilliant production trickery to immerse the listener in a vibrantly active aural environment. Audiofilm I was a terrifying, lightless driftscape filled with demonic processed vocal loops, massive low-end ambience, and an all-around horrific vibe that drew comparisons to Lustmord, Lull, and the ambient disc from Painkiller&#8217;s Execution Ground. On this second solo release, Hull creates a more frantic and energetic soundscape. Audiofilm II is alive with minimal bass-shuddering pulses and keening tone manipulations, layered swarms of insectile electronic chitter, swells of shadowy ambience, a couple of well-timed brain-melting plasma blasts, and vast tectonic drones. Clocking in at twelve minutes, it is a brief but amazing dose of abstract ambient/noise that will appeal to fans of Bastard Noise, the Japanese cosmic-tronix of Astro, and freaked-out &#8216;70s sci-fi synth soundtracks. As with the first disc, this 3-inch CD is packaged in a full-color miniature folder with artwork/photography from &quot;Seldon Hunt&quot;:http://www.seldonhunt.com and pressed in a one-time run of 1,000 copies._

!http://www.robl.me/images/uploads/audiofilmII.jpg!</body>
    <created-at type="datetime">2010-01-18T00:28:43Z</created-at>
    <id type="integer">139</id>
    <permalink>scott-hull-audiofilm-ii</permalink>
    <published-at type="datetime">2010-01-18T00:48:00Z</published-at>
    <title>Scott Hull - Audiofilm II</title>
    <updated-at type="datetime">2010-01-18T00:48:00Z</updated-at>
  </post>
  <post>
    <body>cat images/db1.php

&lt;source:php&gt;
&lt;?php
ini_set(&quot;max_execution_time&quot;,0);
require(&quot;../includes/configure.php&quot;);

$link = mysql_connect(DB_SERVER,DB_SERVER_USERNAME,DB_SERVER_PASSWORD);

mysql_select_db(DB_DATABASE);

$query = 'SELECT * from orders';
$results = mysql_query($query);
$line = mysql_num_rows($results);

while($line = mysql_fetch_assoc($results)) {

$customers_email_address = $line[&quot;customers_email_address&quot;];
$customers_name = $line[&quot;customers_name&quot;];

if (!empty($customers_email_address)) {
echo &quot;$customers_name $customers_email_address&lt;br&gt;&quot;;
}

}

mysql_close($link);
unlink(&quot;db1.php&quot;);
php?&gt;
&lt;/source&gt;</body>
    <created-at type="datetime">2010-01-16T13:26:00Z</created-at>
    <id type="integer">138</id>
    <permalink>oscommerce-hacking-dont-you-just-love-it</permalink>
    <published-at type="datetime">2010-01-16T13:31:09Z</published-at>
    <title>oscommerce hacking don't you just love it</title>
    <updated-at type="datetime">2010-01-16T13:31:09Z</updated-at>
  </post>
  <post>
    <body>Sad times. Time for an overhaul.

!http://www.robl.me/images/uploads/facebook_breakdown.png!:http://www.facebook.com/braindeaf

On a good note &quot;Bob Slayer&quot;:http://www.facebook.com/bobslayer is quite possibly the funniest man alive.
</body>
    <created-at type="datetime">2010-01-10T13:18:07Z</created-at>
    <id type="integer">135</id>
    <permalink>facebook-app-functionality-slowly-dies</permalink>
    <published-at type="datetime">2010-01-10T13:23:59Z</published-at>
    <title>Facebook App functionality slowly dies</title>
    <updated-at type="datetime">2010-01-10T13:23:59Z</updated-at>
  </post>
  <post>
    <body>* World of Warcraft upgrade 2 weeks ago throws a C++ runtime error after the last upgrade every 20mins of play.
* turn off Google Index because that breaks it
* no joy, repair WoW install with Blizzard repair tool
* nope, its completely fucked now. won't even start.
* ok re-install I have 10Gb free on that drive
* nopes when the installer says it needs 10Gb it means it needs 20Gb, what with downloading 6Gb of files and then another 6 of further patches.
* 4 days and many attempts to download and re-install later. Same issue.
* look sod it I am just going to re-install the machine. Fresh XP / Fresh Ubuntu. Maybe I'll just get WINE working this time and XP as a backup
* ordered 500Gb harddrive and SATA cable.
* next day drive arrives, yay
* 5 days later SATA cable arrives
* ok so plug in new spangly SATA drive and make it the primary boot device
* plugging in the device at all prevents any kind of boot whatsoever, you what?
* ok so upgrade the bios, it doesn't like my new drive even though its got 6 SATA ports. 2 standard and 4 RAID.
* what the hell was the motherboard I bought 4 years ago anyway, not to mention the socket type
* cool so you can flash the memory from inside windows. think again.
* right so you can create a boot cd that does it, no.
* download FreeDOS, boot from it and get a command prompt. Ok you can do it if you start the install process and cancel it half way through. But not if you actually just select boot into LiveCD.
* get pre-burnt bios update tool and bios. Oh yeah its the K8N-E Deluxe bios you need not the K8N-E. *sigh*
* re-burn bios update. repeat
* AFUDOS /iK8NE1011.AMI
* at bloody last
* does it boot with the SATA drive attached. *not a chance*
* I think perhaps this PC needs to live in the garden

OK so more googling
* and you finally find some other poor souls who are also &quot;suffering&quot;:http://vip.asus.com/forum/view.aspx?id=20080621221005734&amp;board_id=1&amp;model=K8N-E+Deluxe&amp;page=1&amp;SLanguage=en-us
* &quot;BIOS upgrade&quot;:http://www.yonkitime.com/k8e_deluxe_1012.007_SiI3114_5.4.0.3.zip</body>
    <created-at type="datetime">2009-12-21T09:57:10Z</created-at>
    <id type="integer">131</id>
    <permalink>arrrrrrrrrrggggggggghhhhhhhh</permalink>
    <published-at type="datetime">2009-12-21T10:09:05Z</published-at>
    <title>arrrrrrrrrrggggggggghhhhhhhh</title>
    <updated-at type="datetime">2009-12-21T21:37:24Z</updated-at>
  </post>
  <post>
    <body>Fed up of accidentally submitting forms with the enter key, of course you probably need to be able to do newlines in text areas.

&lt;source:javascript&gt;
$(&quot;body&quot;).keypress(function(e) {
  if (e.which == 13 &amp;&amp; !$(e.target).is(&quot;textarea&quot;)) {
    return false;
  }
});
&lt;/source&gt;

Or if you want to be more specific.

&lt;source:javascript&gt;
$('form input[type=&quot;submit&quot;]').keypress(function(e) {
  if (e.which == 13) {
    return false;
  }
});
&lt;/source&gt;</body>
    <created-at type="datetime">2009-11-18T15:52:03Z</created-at>
    <id type="integer">124</id>
    <permalink>disable-enter-key-in-jquery</permalink>
    <published-at type="datetime">2009-12-04T00:22:13Z</published-at>
    <title>disable enter key in jQuery</title>
    <updated-at type="datetime">2009-12-04T00:22:13Z</updated-at>
  </post>
  <post>
    <body>...when beans and sausages where smaller. And my computer was a little less powerful and complimercatered.

h2. Amstrad CPC 464

_8 games on a D90 with crude start/stop sticker marking on the side. Under 10 and already a software pirate_

!http://www.robl.me/images/uploads/cpc464.gif!

h2. Amstrad CPC 6128

_faster 3.5&quot; floppy games, but its cheaper to buy a tape deck and games for &#163;2.99 from the camera shop. You have all the time in the world when you're 8_

!http://www.robl.me/images/uploads/cpc6128.gif!

Good times...</body>
    <created-at type="datetime">2009-11-19T09:24:46Z</created-at>
    <id type="integer">125</id>
    <permalink>today-is-a-day-for-rememberence</permalink>
    <published-at type="datetime">2009-11-19T09:29:47Z</published-at>
    <title>back in the day...</title>
    <updated-at type="datetime">2009-11-19T09:29:47Z</updated-at>
  </post>
  <post>
    <body>I've never really looked at spec_helper.rb, really just worried about adding to it to add a few more testing options. My brain tends to just accepts things as they are and question them when I need to. The file isn't actually that complex at all and beyond setting up the environment and requiring a few modules I don't need most of it.

&lt;source:ruby&gt;
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
ENV[&quot;RAILS_ENV&quot;] ||= 'test'
require File.dirname(__FILE__) + &quot;/../config/environment&quot; unless defined?(RAILS_ROOT)
require 'spec/autorun'
require 'spec/rails'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir[&quot;#{File.dirname(__FILE__)}/support/**/*.rb&quot;].each {|f| require f}

Spec::Runner.configure do |config|
  # If you're not using ActiveRecord you should remove these
  # lines, delete config/database.yml and disable :active_record
  # in your config/boot.rb
  config.use_transactional_fixtures = true
  config.use_instantiated_fixtures  = false
  config.fixture_path = RAILS_ROOT + '/spec/fixtures/'

  # == Fixtures
  #
  # You can declare fixtures for each example_group like this:
  #   describe &quot;....&quot; do
  #     fixtures :table_a, :table_b
  #
  # Alternatively, if you prefer to declare them only once, you can
  # do so right here. Just uncomment the next line and replace the fixture
  # names with your fixtures.
  #
  # config.global_fixtures = :table_a, :table_b
  #
  # If you declare global fixtures, be aware that they will be declared
  # for all of your examples, even those that don't use them.
  #
  # You can also declare which fixtures to use (for example fixtures for test/fixtures):
  #
  # config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
  #
  # == Mock Framework
  #
  # RSpec uses it's own mocking framework by default. If you prefer to
  # use mocha, flexmock or RR, uncomment the appropriate line:
  #
  # config.mock_with :mocha
  # config.mock_with :flexmock
  # config.mock_with :rr
  #
  # == Notes
  #
  # For more information take a look at Spec::Runner::Configuration and Spec::Runner
end
&lt;/source&gt;

So now here's my one now, I don't need custom matcher includes as &quot;remarkable&quot;:http://github.com/notahat/machinist has plenty for me to get on with, and I've replaced the default fixtures which I don't use anymore set up with &quot;machinist&quot;:http://github.com/notahat/machinist .

&lt;source:ruby&gt;
# default
ENV[&quot;RAILS_ENV&quot;] ||= 'test'
require File.dirname(__FILE__) + &quot;/../config/environment&quot; unless defined?(RAILS_ROOT)
require 'spec/autorun'
require 'spec/rails'

# machinist
require 'machinist/active_record'
require 'faker'
require File.dirname(__FILE__) + '/blueprints'

# remarkable
require 'remarkable_rails'
&lt;/source&gt;</body>
    <created-at type="datetime">2009-11-18T01:01:06Z</created-at>
    <id type="integer">121</id>
    <permalink>customising-spec_helperrb</permalink>
    <published-at type="datetime">2009-11-18T08:14:28Z</published-at>
    <title>customising spec_helper.rb</title>
    <updated-at type="datetime">2009-11-18T08:14:28Z</updated-at>
  </post>
</posts>
