Creating a node in Nokogiri with both an attribute and content
Using Nokogiri's builder is a quick way to generate an HTML page when required.When creating a Node in ruby there can be a case where youdoc.h4 "Some text"&n...
Using Nokogiri's builder is a quick way to generate an HTML page when required.When creating a Node in ruby there can be a case where youdoc.h4 "Some text"&n...
I have to look further into the ObjectSpace module.But this command lists all the available classes.ObjectSpace.each_object(Class) {|c| p c} You could also s...
I thought I'd disable Unity in Compiz after a fresh install of Ubuntu 11.10. Alas, it's so ingrained in the system that it totally borks the UI. To fix this ...
Hmmm, the repo script doesn't appear to be working thanks to conflicting variables on the work set up. So to get a zip of the android source I went to h...
make -C M=`pwd`That is all. .ko sitting there:As per line 61: http://lxr.linux.no/linux+v2.6.28.3/Documentation/kbuild/modules.txt
Installing libkeyutils-dev solved the problem.
in Bash: ${VAR^}
cat example.txt | grep $'\t'
The more and more I sit with Ubuntu I find myself in gconf-editor doing things, whether it's adding the week to the time (handy in European workplaces), maki...
Ahhh the woes of a 64 bit machine bite again. I'm still Using Ubuntu 10.04 (I haven't seen anything worth upgrading for) so installing BankID isn't a problem...
Whilst in the US for a holiday we encountered the Big Apple BBQ Block Party. It was simply amazing. Two sides of Madison Square Park were filled with pe...
After staying up a little later than usual, I pushed the latest ASX value screener code to heroku - only for it to be rejected as now bundler was being used ...
I needed a way to run a series of financial calculations over the entire Australian Stock Exchange (ASX).Conventional stock screeners allow you to order by a...
Stu Bru 2 was a noticeable improvement over Stu Bru 1. It was an Coopers IPA kit with 500g of light DME, 300 grams of dextrose. The addition of the DME has c...
Ok, this was an ordeal that I don't want to have to repeat. So here's how to get your Hobo 1.0.0 app up and running on Heroku.I'm not going over registering ...
It makes me cry. JNI is a necessary evil, but still evil.Why isn't there some nice way to call a CallStringMethod? Especially when working withAndroid's bund...
I was unsure that the brew was fermenting, as there were no bubbles whenever I checked. Then the bad (read: useless) bottle capper meant that there was such ...
I'm entering the Google AI comp again this time - looking forward to challenge and aiming for a top ten result. Halla tummarna :)For starters I'll get a basi...
I remember Dad preparing a batch of homebrew in the evening then a lazy sunday spent bottling the 20 litres or so of beer. I have always wanted to brew over ...
I wanted to be able to record any ideas I had for drum beats quick and easily. This was much simpler that I expeced.After getting OpenDrums, and installing a...
Canon provides the 32bit drivers to the Pixma MP270, but not 64 bit driver. Instead of building them from source, just get the 32 bit drivers from canon's si...
Having a freshly loaded Ubuntu 10.04 on my main desktop (after checking it out for months on my laptop), I thought I'd get ruby on rails set up. After settin...
Having built guitar effects pedals for the last 10 years, I've progressed from battery power to requiring a power splitter for a decently powered DC adapter....
I was reading a blog concerning how to hire new programmers. According to this blog, one of the classic mistakes some recruiters make is that they don't get ...
Well the competition got a lot harder once the maps changed, the real top bots certainly rose to the top. Congratulations to the winners!My reflections on th...
Well I achieved my initial goal of getting into the top 10, only to be hoinked out to around 100 as the opposition got a lot stronger once the maps changed t...
Hmmm, how good are AI comps? I am letting my inner geek take over for the next few days as I put the evil stumac bot in Google's AI comp.I am currently 30th ...
Well it took longer than expected to get the 16MHz crystals, but now that I have some and I've updated the code to communicate by packets. Testing tonight.I'...
It took me a little while to get a few bugs sorted out. But I now have a working plant monitor.The receiver sits by the computer. It's an arduino with a loos...
I've been enjoying playing around with the Arduino recently. It's really quick to prototype and then I can optimize the code and port to a cheaper AVR if I l...