Mar 11
2010
I finally managed to find some galaxies last night. This has been something that has eluded me due to my location, inexperience, and frankly inadequate equipment. (You in the back! Stop snickering!)
Last night, with my Canon 1000D I caught the barest glimpses of M83 and NGC 5128, aka the …
Mar 11
2010

If you have a xcdatamodel file, open it, and using the menu: File > New File > Cocoa Class, you will see an extra item: Managed Object Class. This will autogenerate the required header and implementation files for your CoreData entities so you can use the convenience accessors instead of [setValue:forKey …
Feb 08
2010
Note: in arduino-0017, floating point printing is supported by default. The function below is not necessary.
``` brush:c
void floatPrint(float f, int places=6)
{
int _d;
if (f < 0)
{
Serial.print("-");
f*=-1;
}
_d = (int)f;
if (!places)
{
return;
}
Serial.print(_d, DEC);
Serial.print('.');
while(places--)
{
f-=_d …
Jan 28
2010
After reading the sordid tale of ballot stuffing via twitter over at Bad Astronomy, I wonder if @mercola has the same "problem". Further, I wanted to know if it was also affecting @DrRachie.
To that end I wrote a python script to "audit" shorty award votes. Given a username, the …
Jan 28
2010
After discovering previously that @mercola had 64% valid votes (IMHO) where as @DrRachie had 88% valid votes, I wonder if this is an phenomenon is the same in other categories. In other words: is @mercola's valid vote percentage the exception or the rule?
To answer this question, I ran the …
Jan 10
2010
Given that we can have purely numeric domains, i.e. 131500.info, why not have domains that map to our mobile phone numbers for personal use?
What's the point? For one, you can give out your public mobile number instead of your website, since it is much easier to communicate …
Jan 05
2010

Some of you might know I have been working on a little iPhone app called GeoNote (iTunes link). Its basic goal is to allow you to annotate the real world by allowing you to leave little messages (notes) which are "pinned" to real world locations. These little messages are visible …
Dec 31
2009
I use a custom script to insert the current git commit into GeoNote, so when I get bug reports I have a better idea of which version the user is running. The script is as below:
``` brush:c
import os
from Foundation import NSMutableDictionary
version = os.popen4("/sw/bin/git …
Dec 31
2009
I spent the better part of two hours struggling with your average HD44780 driven 16x2 character LCD, even though I was using the LiquidCrystal library that comes with the arduino environment. My problem was the text I was printing out looks like this:
I tried a lot of things, like …
Dec 22
2009
So you are an indie musician, and you are worried about pirates – those naughty people who are allegedly stealing food off your table and from the mouth of your children.
Well I am here to tell you there is no need to worry – pirates may just be the best thing …
Dec 21
2009
This circuit has (as far as I can tell), 0 off current, and 17mA on current. It is latched by the momentary push button, and can be turned off by applying >0.7V at the input as shown. It is intended for use with embedded interactive installation (e.g. an …
Dec 17
2009
You came to me during my first year in university, and sold yourself as the paragon of virtue and integrity - the kind organisation I would be foolish not to be associated with if I want to get anywhere in Australia doing software, or "Information Technology" as they call it now …
Dec 09
2009
GeoNote v1.2 was approved last week, and went live. This would normally be a Good Thing, except this time it shipped with a rather nasty bug that slipped by me and Apple's fabled reviewers.
This means there is an faulty build of GeoNote on the App Store, and I …
Dec 07
2009
If one source file is sourcecode.c.objc and another is sourcecode.cpp.objcpp, you will have problems if you try to call function defined in one file from the other. The resolve this either make them the same source type, or follow this guide.
This drove me nutty because …
Oct 11
2009
I generated a gpg keypair for myself today, and I was looking for a fairly safe way to back it up. I don't particularly trust DVD/CDs, and keeping it on flash is even more worrying. I wanted a means of backup I can see and touch.
Paperbak would be …
Oct 01
2009
The goal of copyright is to encourage production of creative works which
enrich society. This is achieved by granting authors temporary monopoly over
their work, at a cost to society. Society accepts this cost because it gains
new material from when the monopoly ends.
This is the arrangement copyright law …
Sep 30
2009
On Dr Karl on Triple J Podcast recently, and a lady called in (lets call her B) to say homeopathy works for her. She said her children were never vaccinated, and only receives homeopathy treatments, just like all her friend’s children, and that they are all healthy. B thus …
Sep 26
2009
Updates:
Most of you reading this have read AustNET Exposed. This is my response as a regular and long-time user.
Firstly, despite the legal smoke screen the author throws up, the article is clearly slander, as per statements like:
If they stop …
Sep 21
2009
gnuplot can be used to fit a fourier series to a series of data points. In my case it was an observation log for the star BE Lyncis from the Bossom Observatory, curtsey of Geir Klingenberg.
Firstly one needs to define a time function t(x) such that as x …
Sep 09
2009
rkhunter often warns on file property changes after upgrade and such, and sometimes you just aren't sure whether it is due to recent upgrades, or because you really were compromised. The following script was written to compare the checksum of all files rkhunter warns about against the originals in a …