Stu MacDonald bio photo

Stu MacDonald

Developer. Engineer. Hobbyist.

Email LinkedIn Github Stackoverflow

All Posts

2012

Listing all available classes in ruby

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...

2011

Fix unity after disabling in in Compiz

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 ...

Download the android source as a zip

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...

compile kernel module from c file

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

BankID Ubuntu 10.04 64-bit

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...

Big Apple BBQ

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...

Rails 2.3.5 App adding Bundler on Heroku

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 ...

2010

Value Investing Screener Website

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

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...

Hobo on Heroku

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 ...

JNI - where's the env->CallStringMethod?

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...

First Brew tasting

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 ...

Google AI Comp

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...

First Brew

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 ...

Open Drums

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 Pixma MP270 driver in 64bit Ubuntu

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...

Ruby on rails 3 - rvm, bundle, eeeekk

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...

Decapus - 10 legged power supply

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....

Codility

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 ...

Round up of the Google AI Competition

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...

Google AI bot

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...

Google AI Competition

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 ...

2009

Projects on the table.

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'...

Plant Monitor

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...

Arduino Project

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...