True fax. Pirates are rubbish.
Archive for December, 2008
I’m a Ninja
December 31st, 2008Vermont Got Sexy
December 31st, 2008
Nice Trees
If you’re a freelance programmer who’s dabbled in setting up your own company then you may like to hear about Vermont right now.
Most countries and states require you to have a physical office and solid paper trail to incorporate a company. Even if you’re a virtual one who’s staff are contracted across the world. However, the forward-looking, green-tree-loving Vermont has decided to become a haven for virtual companies.
Costing $275 per year to incorporate there you’d only have to pay taxes if you made your money in Vermont.
Technorati Tags: business, tech business, technology
Saturday Code Quote: 7
December 27th, 2008Tsk.
/* ** The following shit is necessary because Netscape developers don't ** know how to read the fucking RFCs. */
From the source of the Courier Mail Server.
Updated: YourMP Google Desktop Gadget
December 23rd, 2008
Quick post to say my Google Gadget, YourMP, has been updated. Its now a lot more efficient, cleaner, working and just overall better.
Quick rundown:
- MP details: Name,Constituency,Party and Expenses
- Optionally show MP photo next to details.
- Debates listing now includes the date given.
You know what would be REALLY useful?
Feedback!
Its been broken for the past 3 months and no one thought to tell me!
So feedback would be most welcome.
5 Ways: Documenting Javascript
December 22nd, 2008
I stumbled across a need for this while I was doing some updates to my Google Desktop Plugin (YourMP). If you’ve ever done any coding for GDS gadgets then you’ll know it uses JS. Now my documenting was pretty poor so I wanted to tidy it up and went hunting for the usual format.
It wasn’t good. Javascript source documentation is still in the dark ages as JS is still trying to be taken seriously not many people seem interested in documenting it nicely.
But I did eventually find a nice selection of 5…
JSDoc
This is based on the great JavaDoc and is a simple Perl script you run against your Javascript files and it outputs HTML, XML or XMI (UML diagram data). I liked this a lot as a lot of the tags happen to coincide with the tags used in PHP (my ‘father’ language – please don’t hate me!
). So it had virtually no learning curve and I would have settled if it wasn’t for my incessant curiosity…
Get JSDoc
HeaderDoc
If you’re a Mac fanboy I’ll probably lose you at this point as you go running off to use this Mac-made open source project. Unfortunately its sh*t. Although Mac made it they don’t make their documentation as nice and easy as their systems. It reminded me of the heinous Amazon developer docs with excessive wordiness and fluff. JSDoc above told me everything on a single page – done. This spanned several pages going into minute detail on every possible usage. It does cover a lot more languages like Obj-C, Java, C, etc but although its also based on JavaDoc I don’t like its unusual syntax which is just slightly different to JSDoc and the likes. Why the “/*!” instead of “/**”?
It only exports HTML format too…
Get HeaderDoc (needs a login)
Natural Docs
This looks nice – both the output and the formatting of the source document tags. It uses a more natural formatting rather than the usual tag method. Although it does support JavaDoc style tags its much nicer to use the Natural way of doing it. It supports a large number of languages such as C++, Python, Ruby, Java, etc.
Again it only exports in HTML or framed HTML formats but if thats all you’re after then its great.
Get Natural Docs
jGrouseDoc
This is onto a winner already with a name like that! This project seems to understand the inherent difficulty of documenting Javascript code and so uses source comments as its only way of documenting. Its heavily influenced by JavaDoc in its tags and output – which unfortunately isn’t great. Does anyone else think the JavaDoc template looks utter tripe? Thankfully it does come with other templates available and it is very easy to customise the output. This is built very differently to the others as an ANT task.
Get jGrouseDoc
ScriptDoc
This is more of a specification and as such has no parsing utilities to output niceley formatted HTML. Its an interesting idea but its s similar to JSDoc that you wonder why they’re even bothering.
Microsoft
Yes – they’ve been building XML-based JS documentation for their new VisualStudio when it comes out. But as its Microsoft I’m sure we’ll all collectively not give a shit.
| Feature | JSDoc | HeaderDoc | Natural Docs | ScriptDoc | jGrouseDoc |
|---|---|---|---|---|---|
| Export | HTML, XML, XMI | HTML | HTML | None | HTML |
| Build | Perl | Perl | Perl | None | ANT |
| Platform | All | All | All | N/A | All |
| Influence | JavaDoc | JavaDoc | Natural & JavaDoc | JavaDoc | JavaDoc |
| Format | * | ** | ***** | N/A | *** |
Keeping Fit
December 22nd, 2008I wasn’t going to post anything about my new blog here because its on a completely different subject. However, after reading the guy at Piece of Py posted about his fitness programme I thought I may as well too!
So apologies if you want something tech related – today is about fitness and health. So stop reading and go away if you’re not interested.
Still here? Wicked stuff. I have a training blog which I’m using to keep track of my progress and stay motivated. I’ve learnt a lot and my programme is up for all to see. Maybe some desk jockeys and keyboard warriorswould like to follow along in the New Year?
Saturday Code Quote: 6
December 20th, 2008Fix it…
# XXX for the record, I have no fucking idea why this works, what
# it's technically represented as and what backwards array
# implementation would allow it to work.
#
# I'm hoping it'll break on some future version of postgresql so I
# can fix it.
From the source of RubyDBI
Django Debug Toolbar
December 20th, 2008This looks very sexy – almost as sexy as DjangoPony. Its a debug toolbar that was inspired by the PHP Symphony project. Hold on now, don’t run away just cos I mentioned PHP. This is pure Python goodness and its damn useful too. It provides a load of debug info such as headers, exec time, SQL queries, variables, etc.
Its a MiddleWare app you can install into your Django installation. Methinks I’ll give it a go at the weekend and report back.
Get it here.
Colour & Centre
December 15th, 2008
I’ve never broached this subject with other Brits so I don’t know if its an annoyance to anyone else but I’m going to get on my soapbox.
It REALLY pisses me off having to misspell COLOUR and CENTRE all the fu&^%ng time when using CSS!!
I don’t want to get into the linguistic history, the right and wrongs, etc. Its about personal upbringing and life. If I eat pasta I eat it like an Englishman. Not an Italian. If I eat Chinese I eat it with a knife and fork* not with chopsticks.
So why the fucking hell do I need to type American English to use an international standard?
And I’m sick of Firefox telling me these words are spelt wrong**:
- Programme
- Learnt
- Lorry
- Colour
- Centre
- Metre
Like “Firefox” is even a bloody word!!
* I do often use chopsticks – but its personal choice as opposed to being forced by Neo-Nazi bastards in the W3C.
** I know this can be fixed by switching to the British English dictionary but then I wouldn’t be able to rant about it would I?