Wednesday, February 28, 2007

trout-meringue

Trout Meringue, anyone?

A little anecdote from my childhood, now.

In our Leaving Cert mock exam for French, we had to translate a menu at some point. One of the items on offer was 'truite meuniere', a French dish involving trout.

A friend translated it as 'trout meringue'. Oh, how we laughed.

Tuesday, February 27, 2007

more-silly-news

More Silly News

Liberia's most senior minister has resigned over a sex scandal.

That's not the funny bit. The funny bit is that his name is Mr. Knuckles. Hopefully, Sonic wasn't involved in the sex scandals.

I'll stop with the silly news now. Promise.

community-service-for-paedoph

Community Service for Paedophiles

An American paedophile was freed two years early for writing a book on Dracula.

This seems rather ironic, to me.

bee-crisis

BEE CRISIS

Apparently, the bees are fleeing the US. Possibly bees are scared of fat people; after all, monks were keen on them, and you don't see many fat monks.

Monday, February 26, 2007

nui-galway-artwork

NUI Galway Artwork

On the Saturday morning of our Galway trip, we arrived in NUI just in time, only to discover that we were the first people there for a half hour or so. So we got a bit of an opportunity to explore the student center lobby, where we were meant to be meeting everyone else.

First off, there was a constant procession of people coming in and taking on and off clothes. I have no idea what this was about.

The lobby had a few sections dedicated to what I can only assume was student 'artwork'. A few interesting items were displayed in a cabinet.

Brush Kettle.jpg

Brush Kettle! This is really not the sort of thing you want to see at 9:30 on a Saturday morning while slightly hung-over. But the procession of mad items goes on...

Brush Kettle 2.jpg

Brush Kettle's more modern peer. Looks a bit like a Dalek, quite frankly.

Brush Telephone.jpg

Doesn't look too comfortable to use. Just how many horses died for this display of lunacy?

Saw Iron.jpg

This one looks deceptively normal; you'd almost miss it in a hardware shop.

Wheeled Iron.jpg

I like to imagine that this skitters around the floor at night, eating stray nuts and bolts, and excreting iron filings.

Brush Iron.jpg

Argh.

Thing Collector.jpg

It's noted Thing Collector Mairead Morley!

Hoover Iron.jpg

Think of it as evolution in action.

Irish Smokers.jpg

Non Irish speakers should feel free to smoke in this building.

Irish Fires.jpg

Of course, they should also feel free to burn to death.

Insencerity.jpg

How does "ONLY" differ from ordinary only, I wonder?

Better Pastel Seats.jpg

This looks like it was designed by a pharmaceutical company.

Condom Safety.jpg

'Secure' condoms are NOT fun. Anyone caught having fun using condoms will be punished. Unless they're using the correct 'fun' condoms, of course. Secure condoms, presumably, contain barbed wire or similar.

And last but not least:

Arse-hat.jpg

It appears to be an ass-hat!

What fun these 'artistic' students do have, to be sure.

arse-hatjpg

Arse-hat.jpg


condom-safetyjpg

Condom Safety.jpg


better-pastel-seatsjpg

Better Pastel Seats.jpg


insencerityjpg

Insencerity.jpg


irish-firesjpg

Irish Fires.jpg


hoover-ironjpg

Hoover Iron.jpg


thing-collectorjpg

Thing Collector.jpg


brush-ironjpg

Brush Iron.jpg


wheeled-ironjpg

Wheeled Iron.jpg


saw-ironjpg

Saw Iron.jpg


brush-kettle-2jpg

Brush Kettle 2.jpg


brush-kettlejpg

Brush Kettle.jpg


adventures-in-galway

Adventures in Galway

Well, I am back from my weekend away in Galway. And what fun it was! While the meeting itself was rather disappointing, and the collective IQ of the USI LGBT campaign appears to be in free-fall, we made the best of it, and got to see the sights.

The train journey down was long-ish, and on one of Irish Rail's oldest and most dreadful trains (you know the ones; manual doors, dodgy lighting, persistent smell of diesel throughout), but fun. By virtue of arriving at the station an hour or so early we got seats together, which I at least enjoyed; I don't doubt that some of my travelling companions would have preferred to have spent the journey on a different train from me! I can be irritating in large doses, you see.

Due to getting everything organised late, we couldn't find any room in a hostel, so ended up staying in a strange motel-like creature called a TravelLodge. It contained about one hundred rooms, a misleadingly-named 'Cafe & Bar' (WARNING: does not contain actual bar) and an overpriced wireless internet service courtesy of Bitbuzz. One of us invested in 100 minutes access, and was later irritated to find that he could have had 24 hours for a small percentage more. For my own part, I didn't bring a computer, and quite enjoyed my holiday from the Internet. I didn't think of checking my AdSense earnings once for over two days, which must be some sort of record.

Galway itself is a strange city; small, full of waterways, and obsessed with the Irish language. Almost all signs are bilingual; some are even Irish-only. It contains at least one SuperMacs (dodgy Irish fast-food chain) for every ten citizens, and a Brown Thomas! I had always imagined Brown Thomas, a high-end department store in Dublin which I have been in exactly twice, to be a one-off, but apparently there are three or four of them. It also has lots of own-brand newsagents; almost all newsagents in Dublin are now Spar, Centra or that other one.

So, as I said, the conference itself was a bit of a non-entity. Half as many motions as last year, and almost all of them highly tedious. I didn't speak even once, which is unusual; I generally talk a bit at these things. The motions under discussion were just too uninteresting. Certain people, however, could have done with speaking quite a bit less.

As generally happens with these things, we had great plans for going out on Saturday, but the Friday night was the big one. We visited three places; a pub rather like someone's living room, a new and boring gay bar, and a gay night in some club or other. I had fond memories of said club night; it was there, three years ago, that I first kissed a boy. On Saturday, however, there was no gay club night at all! Imagine!

The journey back was by an 'express' train. Express it was, more or less, except for an inexplicable half-hour stop over the Shannon.

Besides all this, we saw quite a few interesting things in Galway, both in NUIG and in the city itself. These will follow...

Friday, February 23, 2007

most-annoying-possible-questi

Most Annoying Possible Question

Ever been asked, on meeting someone, what music you like? Well, I don't know about you, but I hate, hate, hate this question. It tends to be difficult to sum up, and you just know they're about to make a value judgement about you, anyway. last.fm should provide a simple way out, but somehow doesn't; I listen to music on my iPod, mostly, not my computer, and somehow last.fm always provides a poor impression.

Of course, sometimes the person asking is just trying to make small talk, or find out about you, or whatever. That's not too bad. But sometimes they're a... music snob. There are few worse things than a music snob (things which are worse than a music snob include Hitler, onscreen menus on cordless landline phones, and public transport on major holidays). They really are the most awful people! I don't care for being judged just because I might have the odd Spice Girls song on my iPod, but these people will treat said revelation much as if I had just said that I habitually eat babies.

Somehow, I don't mind being asked what books or films I like nearly as much; possibly I'm just less insecure about them. Being asked what TV I like also frightens me a bit, though; I don't really watch much and a lot of what I like is very, very silly.

you-dont-get-electronic-noise

You don't get electronic noises like you used to

Today, while using analogue cordless headphones, I switched off something or other. And got one of those noises that electronic equipment makes on Star Wars and similar, through the headphones. I feel that this sort of thing should be encouraged, broadly speaking.

Thursday, February 22, 2007

google-embraces-made-up-words

Google Embraces Made-up Words

This is just to let you know that Google uses the un-word 'impactful' on its recruitment site. First against the wall when the revolution comes...

(I'm also sceptical of 'entrepreneurialism', but they are, after all, Americans, and must be allowed some lee-way.)

Wednesday, February 21, 2007

website-value

Website Value

I was playing with this little website valuing tool. I plugged in data for my reverse lyrics search engine, and was given a value of over $100,000! Now, I'm sure that my little site isn't worth that much, but it does raise an interesting question about the 'value' of a website.

Say, for instance, you have a medium-sized website which makes $1300 a month. That's about 1000 euro. What's that site worth? If you owned an investment property worth a few hundred thousand outright, you'd make that in rent. But then you'd also have a solid property; a website is far from solid. If you make your money from, say, Google AdSense, then they can pull the plug at any time, or the advertising market, or even just the advertising market in your niche, can slump. You may fall in the Google search indexes or vanish entirely. And so on.



On the other hand, a website can gain value much larger than a real-world property can. This time a year ago, my site was making roughly 25% what it is now; two years ago it was making 3% of what it makes now. You won't see that sort of rise in many places, and yet many websites have far faster earning rises than I did.

My website's economics are quite simple, of course; I don't, at the moment, advertise at all, so outgoings consist of thirty euro a month for a server, while income is an aggregate of AdSense and Amazon Affiliate earnings. Many are far, far more complicated, with advertising and paid link exchanges and other complicated things going on.



So what is a fair sale price for a website? It would almost certainly have to be worked out case by case. There doesn't seem to be a standard valuation method.

Incidentally, I'm about to cut off my option of selling it (how does one go about that, anyway? ebay?) by shifting from the old clunky php-based site to a new shiny Common Lisp-based one. Few people would be happy buying such a thing, I suspect.


Tuesday, February 20, 2007

eircom-credit-where-credit-is

Eircom - Credit where credit is due

A while back I mentioned that Eircom and UTV were lying through their teeth about their product - they were advertising services of 1, 2 and 3 megabits (Mbit, Mb) per second as 1, 2, and 3 megabytes (MB) per second. That's an exaggeration of eight times.

Well, I emailed both of them. From UTV, I got nothing but an automated response, but from Eircom I got a response from a human! And checking back (about a month on) I find that Eircom's images now say 'Mb', not 'MB'. The small-print still says 'MB', but that could be seen as an oversight, and the whole thing is no longer particularly deceptive. So well done Eircom! I'm quite amazed they bothered to do anything about it.

UTV continues the lying-to-customers bit. This sort of messing is apparently very common in the industry, but it doesn't make it right, and they really should consider stopping. They're now the only major Irish ISP with clearly deceptive marketing in this regard.

pharmacy-quackery

Pharmacy Quackery

I was in the pharmacy on Westland Row today (buying Paracetamol, if you must know; I have a horrible cold). And on sale, among the pharmaceuticals and so on, were a load of magnetic devices which supposedly help with colds and cancer and the bubonic plague and stupidity and so on. Being sold just like over-the-counter drugs with ludicrous claims attached. I'm amazed that it's legal to sell such things in a pharmacy at all; if it has to be, then there should at least be some sort of warning label attached. Surely it's some sort of fraud to make claims which aren't supported by any reputable studies, and which have no theoretical basis?

Also, the person behind the counter tried to sell me expensive brand-name paracetamol, rather than the generic one. Grr.

Monday, February 19, 2007

fun-music

Fun Music

I recently discovered Mika, rather after everyone else; one of his songs was at the top of the UK charts for a while. I'd heard the offending song, 'Grace Kelly', in the George a few times, but didn't know what it was. Great fun, and he's very pretty, which is a bonus, of course. Has also gotten weirdly varied reviews; the Guardian review gives him something like 1 star, while its sister paper, the Observer, gives him 4.5 or something. Anyway, go listen.

Sunday, February 18, 2007

a-blog-of-confused-nationalit

A Blog of Confused Nationality

I've just noticed that on this post, made on a system which does country identification and puts up a little flag, my comments have an Irish flag, but my blog trackback has a German one. Not overly surprising, since the server lives in Germany, but disconcerting, nonetheless. I can't even speak German, after all.

Thursday, February 15, 2007

vista-viewing

Vista Viewing

I've just seen much-hyped Windows Vista (Ultimate edition) running on a Macbook. Deeply, deeply unimpressive, I'm afraid. Fast enough, but it's a fast machine, of course. When idle, just after launch, it uses 500mb of RAM. The new alt-tab thing is pretty, but not overly usable; in some ways it's worse that alt-tab. Not a patch on Expose, certainly. (When using an XP machine for a while at work over the summer, I had to install a dubious fake Expose just to make it usable). Same command prompt as always. 'Photo' is a take-off of iPhoto, but missing a few of the nicer features. Ridiculous shut-down menu, as much talked about. Glass effects are pretty but use an alarming amount of CPU time; moving a window with glass borders around can cause processor usage to hit 30%. Now, granted, the Macbook's graphics processor is quite dependent on software assists, but still...

So, yep, it's not going to tempt me away from MacOS just yet.

Wednesday, February 14, 2007

running-multiple-domains-from

Running multiple domains from one Hunchentoot instance

Hunchentoot is a webserver for Common Lisp. I'm using it to re-write FindMeATune. It's quite powerful, but usage examples are thin on the ground, so I hope this helps someone.

Say you want to run more than one Hunchentoot-based application, on different domains each. An instance of sbcl (a Lisp platform) running Hunchentoot will run to 40mb or so even before you start adding on things like database access libraries. So you probably don't want to run a separate instance for each site. However, on first glance the library seems designed around providing one site per instance.

However, buried in the documentation is *META-DISPATCHER*. This is a variable holding a function which is passed a server instance for each request and returns a dispatch table. By default, it just returns the main table, but it can be modified as you like. It actually seems to be included in hunchentoot for doing exactly what I'm doing here, but I don't think anyone has detailed how to do that.

A single Hunchentoot instance can easily create multiple servers, each binding to a different port. In the server instance object passed to the function pointed to by *META-DISPATCHER*, the port number is made available. So, imagine you have two packages, app1 and app2. Each contains an application; each application exports its own dispatch table (normally just hunchentoot:*DISPATCH-TABLE*) as *LOCAL-DISPATCH-TABLE*. You can create a server for each app, using a different port for each. This results in minimal overhead compared to creating a new instance. Then you can do something along these lines in your main program (assuming that we are in a package using hunchentoot; if not prefix hunchentoot stuff with "hunchentoot:"):


(setq
*meta-dispatcher*
(lambda (server)
(if (= (server-port server) 8081)
site1:*local-dispatch-table*
site2:*local-dispatch-table*))))


Now, this is a very simple example, but you get the idea. Basically, for each request handled, we check which port it's coming from. If it's 8081, we send it to site1, if not we send it to site2. site1 and site2 can be entirely different; it doesn't matter. If you had lots of sites, you might generate something a bit nicer with a macro.

The rest is simple. If you're using Apache as a front-end, just create virtual hosts for your apps, one proxying to localhost:8081, the other to localhost:8082 or whatever.

There's a tiny, but working, example here and here. They're running on the same lisp instance, but they're different applications running on different domains.

This, of course, could potentially result in great memory savings. Downsides include having to slightly modify apps to fit in, and that if one application causes the lisp instance to die or hang, that will affect all the applications. Overall, though, I think this is useful, and I hope someone finds it helpful.



quote-of-the-week-from-you-ar

Quote of the week from You Are What You Eat

You Are What You Eat is a wonderful Channel 4 programme where a health nut grabs a few wayward wobblebottoms for a few weeks, and tries to get them to eat sanely. From an episode:


Presenter: You don't eat fruit and veg, you don't drink water... Have you ever drunk water?
Wobblebottom: No.


Good lord.

Monday, February 12, 2007

the-euro-symbol-lives

The Euro Symbol LIVES

I don't know if you know of Comic Sans MS. It's that hideous font used by stupid people to make posters for church fetes and things. Anyway, ever used a euro symbol in it? Ever used a big euro symbol in it?

Picture 1.png

Yes. Really. Now, apparently, it only has an eye in certain versions, but the one that comes with MacOS X is one of them, as, apparently, is the one bundled with Office 2000. Try it yourself.

Charming.

I think it's watching me. The expenses spreadsheet monitors my every movement. Argh.

picture-1png

Picture 1.png


Saturday, February 10, 2007

windows-ui-design-madness

Windows UI Design Madness

A post on why the shift key, not the alt key, is used for revealing the 'hibernate' button on Windows XP. The real question, of course, is really why the hibernate button is hidden at all? There's no indication that it's there, and I'm quite certain some people just don't know that the feature is available. Note also that the hotkey for the button will work even if it's hidden. I'm not sure if this is a good idea or not; it clearly increases usability for people who actually use hibernate, but it's weird, and it would make more sense just to show the feature in the first place.

Another interesting revelation: you can do a 'no to all' on those Windows dialogs with 'yes to all' by shift-clicking on 'no'. Erm, that's... obvious... right? Of course it is.

Verity Stob reveals here that holding down shift on Word will give you 'close all' and 'save all'. She describes these as 'well-kept-secret-because-too-useful', which seems apt.

This has all been cleared up in Vista, in what appears to be Microsoft's traditional manner; replace it with something different, but arguably even madder.

Ah well. Those horrible damn menus which only showed a random selection of more frequently used items seem to have vanished, anyway. There may be hope for some degree of sanity yet. You have to wonder, though, does Microsoft bother to test any of this stuff on actual users? And if so, how many were able to hibernate in less than an hour?



Friday, February 9, 2007

self-parody

Self-Parody?

A while back, the wonderful Verity Stob wrote a series of fake blog entries from prominent people, here. At the time, I thought that the parody of Raymond Chen's 'The Old New Thing' (a prominent Microsoft blogger) was a little unfair; I've read a few articles from the blog in question and they always seemed reasonable enough. Go read the parody now.

Now read this. I mean, really. Is it possible that he saw the Stob piece, and is deliberately one-upping it? It's really unnervingly similar.

Thursday, February 8, 2007

four-little-characters

Four Little Characters

From a Google ad:
"C++ Freebsd sql etc tutorials"

What, exactly, does 'etc.' mean here? Fax machines?

Wednesday, February 7, 2007

religion-for-the-web-20-gener

Religion for the Web 2.0 Generation

From a Hist poster:

07-02-07_1917.jpg

It's the ArchBishop!

In future, all seminarians should be referred to as 'ParishPriestbeta'.

Tuesday, February 6, 2007

ui-design-a-couple-of-approac

UI Design - A Couple of Approaches

The following are screenshots from two instant Ruby on Rails control panels, one for Windows and one for MacOS. Can you tell which is which?

Exhibit A:
main.png

Exhibit B:
Picture 8.png

I mean, it says it all, really, doesn't it? :)

picture-8png

Picture 8.png


mainpng

main.png


nuclear-industry-advertises

Nuclear Industry Advertises

An TV ad from Areva, one of the larger manufacturers of nuclear power plants and fuel.

The question, really, is why? I mean, it's not as if Margaret, watching the ad for nuclear power plants on television, will decide that it would be nice to have one in the back garden. It would get in the way of the bird table, after all.

Sunday, February 4, 2007

setting-up-ruby-on-rails-app-

Setting up Ruby on Rails app on a creaky old Debian Stable box - quick guide

So, I had a simple Ruby on Rails app which needed deploying. The server (the same one this blog lives on) is running Debian Stable, with Apache 2.0.x. Now, at some point, I realise, I should upgrade to Apache 2.2.x and do the whole Mongrel/mod_proxy_balance thing, or else use lighttpd. But for the moment, I have a slightly exotic Apache config that I don't have time to upgrade. So I decided to go with a FastCGI setup.

So, first things first. You'll need ruby, obviously. 'sudo apt-get install ruby' should do the trick. You'll also need fastcgi. So do 'sudo apt-get install libapache2-mod-fastcgi' (the Apache bit) and 'sudo apt-get install libfcgi-ruby1.8' (the fastcgi daemon for ruby). Do 'sudo a2enmod fastcgi' to enable fastcgi. You'll also need mod_rewrite; install and enable that if you don't have it.

You'll also need rubygems, the Ruby package manager thing. Get it here, and install by doing 'sudo ruby setup.rb all'. You can then do 'sudo gem install rails --include-dependencies'. After some time, you will have a rails installation.

Okay, so getting there. Next step is the Apache configuration. Put your application where-ever you put the documentroots for your virtual servers. Create a new virtual server configuration as normal, but with the DocumentRoot set to (your app path)/public and the following added:

<Directory /var/www_virt/state/public>
Options ExecCGI +FollowSymLinks
AllowOverride All
order allow,deny
allow from all
</Directory>


Outside the Virtual server declaration, put:
FastCgiServer /var/www_virt/state/public/dispatch.fcgi -idle-timeout 120 -initial-env RAILS_ENV=production -processes 2

(with correct paths).

Nearly there. Your rails application has a default .htaccess file, but it's customised for cgi or fastcgi. Comment out those AddHandlers, as we're going to use a static fastcgi setup (explanation below).

In the rewrite section, change the redirect from dispatch.cgi to dispatch.fcgi.

In (your app)/config/environment.rb, uncomment the line "ENV['RAILS_ENV'] ||= 'production'". This will force your application into production mode. Make sure that the application directory belongs to the Apache user. Restart Apache and try to access your site. If all has gone well, it will come up.

This all seems to work okay, and it's really quite fast; give ab (the Apache benchmarker) a go.

Most tutorials around seem to recommend using dynamic fastcgi, often using the fcgi module. The problem with this is that it takes a while to launch the fastcgi process when the site is first accessed, or when it times out. Also, if it has trouble loading the process, you may get a 500 error. Here, two processes are started; for a tiny site you might load one while for a more popular site more could be used. The major limiting factor is memory. Each fastcgi process takes up 20 or 30 megabytes when in use, though it will presumably be swapped out if no-one's using the site for a while.

Robert, public sex information a speciality, apparently

I recently wrote about Trinity's public sex problem and the student paper's handling of it.

Well, this morning, two of the search terms used to reach my blog:
  • public sex blogs

  • best toilets for cottaging


Dear me...

Robert, public sex information a speciality, apparently

I recently wrote about Trinity's public sex problem and the student paper's handling of it.

Well, this morning, two of the search terms used to reach my blog:
  • public sex blogs

  • best toilets for cottaging


Dear me...

state-saver-silly-ror-itch-sc

State Saver - Silly RoR Itch-Scratching Web App

I often like to read something like a webcomic from beginning to end, or a blog, or anything that can be read linearly. The problem is, when I put it down one day it's often hard to remember where I was. So, I wrote a little web-app to help.

It's here. It lets you create an account and maintain state - maintain your place, in any number of websites. Initially, you create a record for the site you're using, whether you're viewing a webcomic, blog, long forum post, or something else. Then, whenever you finish reading a part of the site, you update the state-saver app with the URL denoting your new place.

Give it a go; it might be handy.

a-new-blog-thing

A New Blog Thing

I thought I'd split off my postings about stupid stuff I've seen and heard about as a new blog.

Take a look, if you like. I've started out with a collection of silly signs.

Saturday, February 3, 2007

advertise-on-my-site

Advertise on my site!

Speaking of making money on the Internet, you can now buy a text ad (through AdBrite) on my reverse lyrics search site. I'm currently trying their automatic pricing thing; currently, an ad costs a little over a dollar a day (though I expect that to go up a bit, as the AdSense ones do rather better), appears at the top of the site, and will have 15,000-20,000 impressions daily (as I've just put the code up, these figures aren't shown correctly on the purchase page just yet; they should be in a day or so).

You can buy an ad here, if you're so inclined.

Alternatively, if you'd like to talk about buying an ad directly, get in touch.

Friday, February 2, 2007

death-of-an-atm-card

Death of an ATM Card

Today, I found that what had been, for the last year, a small crack on my ATM card has expanded drastically, and engulfed the magnetic strip. This, of course, annoys ATMs; the ones in college wouldn't deal with it at all. Happily, the small free-standing ATMs in newsagents generally use the chip, rather than the magnetic strip, and once I managed to find a working one (they tend to be broken more often than not) I was able to get some money. Irritatingly, the machine had only fifties.

By the time I got back to college, the student cafeteria had stopped serving hot food. Grr.

I suppose I will have to ring some sort of awful hotline, now, to beg for a new one...