Archive for October, 2006

FastCGI Ruby dispatcher

This seems to be a nice script, to be honest I haven’t had a close read through the source, but it looks reasonable enough that I’m using it.

FastCGI Ruby dispatcher

To set this up on FreeBSD you’ll also need to pkg_add -r ruby18-mmap. The rest of his instructions work fine, although on FreeBSD one should install ruby-cgi to /usr/local/bin rather than /usr/bin.

Enjoy.

Multiplay UK - The UKs # 1 LAN Organisers and home of the I-Series

This company are offering significant cash prizes for these tournaments.

Multiplay UK - The UKs # 1 LAN Organisers and home of the I-Series

The old versions of NFS, even the last one I played ‘Most Wanted’ were ENTIRELY FPS dependant for VMG (Velocity Made Good). So, if you want that money, buy an exceedingly fast PC on a loan, run the game in minimal graphics and don’t crash too often. You’ll clear all the maps in 1/4 the time of someone in a full DX mode.

Fucking programmers need to pull their fingers out their arses and start making things the way people expect them to be. Markets are consumer driven, problem is, programmers have no common sense.

OneAndOneIs2 - Why doesn’t Linux need defragmenting? (Oh really…)

OneAndOneIs2 - Why doesn’t Linux need defragmenting?

Not entirely true, but a reasonable effort. See my comments.

raggi’s public notebook

My public notebook is being hosted by Google, as they provide a really clean and easy to access interface for doing this kind of thing.

raggi’s public notebook

You’ll find stuff here, I’ve also added a redirect from http://ra66i.co.uk/notebook. Enjoy.

BBC NEWS | World | Asia-Pacific | N Korea raises threat of new test

BBC NEWS | World | Asia-Pacific | N Korea raises threat of new test

Too fucking right. I might not personally agree with building new nuclear weapons, however, this is garunteed to be the next ‘target’ of US internal-revenue laundering. They’re well within their rights as a country to say this and to take action. I can only hope that I will be able to escape the stupidity of politicians in western countries and come out of this war unharmed. I’m not willing to see my life being turned to shit over some arrogant politicians view of ‘a safe world’. If you’re not certain of your culture, or you are to represent many cultures (as with a western government) then you should have a more forgiving view of ‘a safe world’ and let other cultures or countries do as they please, providing it doesn’t directly impact on you. This is the attitude North Korea seem to give western countries, are we really too rude and arrogant to show the same respect?

PuTTY wish moon-on-stick

I was just grabbing another copy of putty, and was grabbed by this…

PuTTY wish moon-on-stick

So while I’m here, I’m going to thank Simon Tatham and his fellow hackers that work hard on a project which I use on an almost daily basis. One day I’m going to send those boys a crate of beer, or some new DnD gear, or some strippers, or well, whatever they might want. Keep up the good work fellas.

Register globals: ON.

Register globals: ON.

Lol. PHP. nuf said.

Google Earth’s Missing Imagery

I’ve heard of this before, but now I/We have been hit by it.

As an extension service to our current project, we’re going to be offering a KML connector to Google Earth, which means that any KML capable application (such as Google Earth) can connect and utilise data they’re authorised to download. Well this would be a great way to visualise the data, except:

Google Earth Missing Plate 4 Oct 2006

This is a bit frustrating. What’s more frustrating is the fact that there’s no easy to find contact for this problem. As we currently haven’t bought a copy of Google Earth Pro, we’re not going to get one either by the looks of things. If this persists, we’ll have to try and find a contact, or maybe just phone the office directly, but in the meantime we’re on the waiting game for new or at least old high-res data…

Tagging

Tags, on the left. Nice.

Oh and related links from post pages.

More low level Ruby (XOR Hash)…

So Ruby is being a wonderful language to write in (seriously more enjoyable than most) and is giving me access (cleanly) to advanced language features I’ve wanted from other places. (Although I don’t hack in Smalltalk, Scheme or Lisp, I understand alot of features which I have desired in a more practically accessible language for a long time). Ruby seems to have slowed me down in a few places, and lower level string handling is one such place. As with the last post, I’ve been working with ASCII hex tuples and the support is a bit weaker than one might hope (this is not uncommon anyway, and as always there’s a balence of length of API vs functionality).

I’ve had to write what is effectively the reverse of the previous posting, but in the ‘guise’ of a simple xor hashing function (suitable for NMEA parsing btw ;):

[source:ruby]
def xorchecksum(str)
xor = str[0] str[1..-1].each_byte { |c| xor ^= c }
return res.chr.unpack(”H8″)[0].to_s
end
[/source]
This maybe could be more efficient somehow else, but this works. Certainly as I’m producing code that is to be production level and yet never going to be overloaded with data, this is currently suitable. I’m aware that there may be one particular efficiency increase if I try to somehow not allocate object space so often, but at this time I think it’s relatively close to that optimal already. The excess syntax required feels a bit limiting, abusing Duck Typing a little to get the correct results back.

This and reading 1959 page ETSI documentation is my current day-in day-out, but we’re getting close to release when I’ll probably be posting here a little note on what we’ve been hermitting for the last couple of months.