Monday, February 27, 2006

animal-research-and-mad-eco-t

Animal Research, and mad Eco-Terrorists

As I mentioned before, there was a march in Oxford over the weekend supporting the building of a new animal testing facility there. It attracted 700 people, versus the 200 people involved in a SPEAK (anti-testing group) march at the same time. The founder of Pro-Test, the pro-testing group, is 16year-old Laurie Pycroft. Amazing work, all things considered. It's good to see somebody standing up to these "animal liberation" groups; groups who think nothing of threatening violence and who reportedly labelled Oxford University staff and students as "legitimate targets". The rights and wrongs of their cause aside, they do tend to behave like a disreputable terrorist group; the wording of their press releases and so forth always reminds me of those of the IRA (explanation for foreigners: the IRA are the terrorist wing of Nationalist party Sinn Fein).

When Laurie announced his intention to hold the march, he was warned by police that he was putting himself in danger. This is what it's come to; supporting animal testing is on the same level of "crazy people will attack you" as drawing Muhammad cartoons. Greenpeace hissy-fits pale in comparison. It's about time people started standing up to this sort of thing. Violence and threats of violence should never be allowed to infringe on free speech.

By the way, animal liberation people, please refrain from blowing up Telehouse London. I am merely expressing an opinion.

Sunday, February 26, 2006

haircut

Haircut

I recently got a haircut. Result below. Eek.

8371392_498023.jpg

8371392_498023jpg

8371392_498023.jpg


Saturday, February 25, 2006

marches-and-protests

Marches and Protests

A Unionist (Wants Northern Ireland to remain part of the UK) group is due to march in Dublin today. Before the march even starts, there are protests. Three gardai (police) and two protesters are in hospital. I find peoples' reactions odd; Ireland is one of two nations (Britain is the other) who will ultimately decide the fate of Northern Ireland; surely therefore people on both sides of the issue have the right to demonstrate peacefully? Sinn Fein (Nationalist, wants NI to be a part of Ireland) have demonstrated in London, after all... My personal feeling is that both sides should relinquish all claims to the huge cash-sink that is Northern Ireland.

I had been planning to go into town today, but I'm damned if I'm picking my way through a sea of crazed Adams and Paisley fanclubs.

There's also a march in Oxfordshire supporting the building of an animal medical research lab. Again, there are protests against that.

Friday, February 24, 2006

banking-oddness

Banking Oddness

I just used my bank's website to check my bank balance. The statement is showing a lodgement I made recently and an appropriate balance, the summary is showing the old balance. Brr...

election-night

Election Night

Well, yesterday was interesting. It was the Trinity Student Union elections, you see. Now, I find the campaigning of all the strange people who compete to win one of five largely thankless, though paid, jobs rather tedious. I have no wish to ogle the little leaflets that they produce, nor indeed do I want to talk to the candidates, listen to their speeches, or view their Bebo profiles. I didn't, in the end, bother voting; the only post I really cared about, Welfare, was uncontested.

However, after the election comes counting votes, with party tacked on the end. This, I had been told by Mark, is quite fun, so we decided to go. The count was in the Earl of Kildare Hotel on Nassau Street, but it proved surprisingly difficult to find out when it was on; a text message to a friend asking (rather ambiguously) "When is the count in the Earl of Kildare?", elicited only a quip about dubious goings-ons between nobles. So, sat around in Mark's room for a while, where we were joined by another Mark. The room has a network connection, and I actually got quite a lot done, considering. At about 12, we finally decided to go and have a look at this count. Now, on weekdays, there are only Nitelinks (horribly overpriced late buses) at 12:30 and 2am. So I should really have made my way to the bus-stop at that point and escaped to the suburbs. I went along to the count in the Earl anyway, though.

When we arrived, the count was almost done, and most results had been announced. No real surprises. The two Marks quickly decided they weren't too keen, and took their leave. I, however, was effectively stuck, due to having to wait for the later bus. There were one or two people I knew there, but they were really not very conversational, and as you may have gathered, I'm somewhat socially awkward, especially in large groups. So more or less stood around waiting to go for bus. (Waiting at stop was not an option, due to horrible hailstone-type weather). And then, someone wandered over and dragged me into a small group in a corner. Which turned out to be a failed Education candidate and his friends. Which was quite nice of them really; people rarely choose to inflict me on themselves. They were fun. At the time, the whole thing seemed really quite bizarre.

Thursday, February 23, 2006

eek-night-out

Eek! Night Out

Busy day today. Afterwards, had LGB event in room in House 6 in TCD, followed by going to the George. Probably drank too much. For reasons I am unclear upon, became terribly, terribly emotional and upset when out. Wasn't very nice to certain people; one guy in particular who I know and who was, when I look back on it, only trying to be nice, I was very, very mean to. (He said something about being afraid of being rejected by people (romantically (oh, dear, I'm nesting brackets)) or similar, apparently in an attempt to cheer me up; he's the sort of person who's sufficiently goodlooking that he'd NEVER be rejected by ANYONE, while I'm, as you may have gathered if you've read before, the sort of person who's rejected by default. I made some sort of completely unjustified, and very nasty, comment in retort.) Now feeling very, very guilty, and hoping that no-one took too much offence.

On the plus side, rediscovered two songs that I really loved when I was about eight, getting up early on Saturdays to listen to the radio. They are "Chesney Hawkes - I am the one and only" and "Ace of Base - Life is a flower", which makes me feel very, very happy, if a bit emotional again.

Monday, February 20, 2006

quick-tip-nonstandard-ports-i

Quick Tip - Nonstandard Ports in TRAMP

TRAMP is an EMACS add-on which lets EMACS use things like ssh for filesystems. After some searching, I found that to make it use a port other than 22 for ssh, you do (assuming port 1234):
C-x C-f /ssh:user@host.com#1234:myfile.txt

It's not well-documented, so just thought someone might find this helpful :)

Sunday, February 19, 2006

dreadful-ordeal-type-thing-do

Dreadful Ordeal-type Thing Done

I was in town today. Since I'm there every weekday for college, this isn't actually anything very unusual, but I'm quite rarely there on Sundays. (Last year, I was in every Sunday for a few months, as I was doing Peer Mentoring. This was a system where the department would pay me to sit in a lab and answer questions that I'd be answering anyway from poor souls theoretically studying for their exams or similar. It probably wasn't a terribly good idea, and they aren't doing it this year).

ANYWAY, I was heading home, when I passed a shoe shop. Now, as I have previously related, I live in fear of clothes and especially shoe shopping, and also haircuts. I forced myself in regardless, and within 15 minutes emerged with a new pair of shoes! Only had to try two different sizes, too! Imagine! (I now know that I'm size UK11 in Converse. Unless their sizes differ between models, which I wouldn't at all put past them.) I am, rather irrationally, feeling enormously happy about this, like I've actually accomplished something. Oh, I paid with a laser (debit) card, which is a first; it doubles as an ATM card. It's disturbingly easy to pay for things with it.

The next step is either to get a haircut or buy clothes. Probably the former, as I always put off buying clothes until I'm slightly skinnier. This is a "jam tomorrow" situation, and one that has been going on for two years now. Urgh.

the-bad-old-days

The Bad Old Days

On a DIY show from the 60s: "I don't know if you were watching last week when I showed you how to build a refrigerator".

I am reminded of this.

Saturday, February 18, 2006

amazon-lookup-widget

Amazon Lookup Widget

I wrote my first sensible MacOS X widget: a thing to quickly look up books, CDs and DVDs on Amazon.com and .co.uk and provide basic details on them, and a link to their proper pages.

So far, very ugly, but it works. It uses AWS REST requests.

Give it a go, if you like.

Friday, February 17, 2006

amazon-music-downloads

Amazon Music Downloads?

Apparently, Amazon is gearing up to offer music downloads, along the lines of Apple's iTunes store. I'm hoping that, if they do this, they open it to the Amazon Associate program; my reverse lyrics search engine could benefit significantly.

On a related note, I just tried to make a post on the Amazon Associates message board thing, an ancient edifice operated by Prospero. It forwarded me, in rapid succession, through 15 separate pages, before presenting me with the compose page. Such efficiency!

Thursday, February 16, 2006

simple-c-pointers-tutorial

Simple C Pointers Tutorial

(Warning, old article)

Introduction



I'm writing this basic tutorial on using pointers and allocating memory in C and C++ because it seems to be an exceptionally poorly-explained area in most C books, and I had some trouble with it myself when I was learning C. The central problem seems to be that people first learn about arrays as a type of magic object that holds stuff; when pointers are introduced the link to arrays is not made at all clear.

mysql-on-windows

MySQL on Windows

(this is an old article and may be out of date)
Continuing from here

simple-mysql-tutorial

Simple MySQL C API Tutorial

(Note that this is an article I wrote years ago; may be out of date)

Introduction




MySQL is a popular open-source relational database, often used with PHP web scripting. (To see a simple application based on PHP with MySQL backend, go here.

simple-java-sound-api-tutoria

Simple Java Sound API Tutorial

(Warning, old thing. May be out of date)

This is a very simple tutorial on playing sounds with Java applications, as I found the Sun one needlessly complicated and confusing.
The Java sound-playing and loading tools are built into the Applet class, for some reason; however, as of Java 1.2, you can use them everywhere, not just in applets. They can load and play .wav, .au and .mid files; for anything else you'll need a specialised tool.

dark-side-of-trinity

Dark Side of Trinity

I was going home from the north side of the city today. When I got to the train station, I found that the next train was twenty minutes away, so decided I might as well go to the next station along as anything else. Which involved going down Pearse Street past the side of Trinity College. Which I hadn't done for a few years. Compared to the other side, it's quite narrow and closed-in-feeling.

The college side is lined with ex-shops which are now part of the college. It's really quite strange; you can tell when the college subsumed them by the shopfronts. Some seem to be 19th century, others mid-20th, others from the 70s. The street seems to have been quite upmarket at one point; the older shopfronts are quite lavish carved stone. A shop labelled "Nuzum Bros" has had its ornate doorway bricked over with equally ornate bricks. In one shopfront, there are colourful, vague, items. Has a shop survived? No; it's part of the college art department. The display seems somehow perverse, in the dead shop. In another, older, shopfront, a large metal machine peeps over the top of the curtain; it is labelled "MADE IN USSR".

It's all quite sad, really, a street frozen in various stages of history. On the opposite side, though, progress marches on. Soon it will on the college side, too; there are, apparently, plans to demolish the lot, and substitute a large glass structure. Space in college grounds is, after all, quite limited. It's a pity. It would be nice if it was left alone.

Wednesday, February 15, 2006

post-valentines-day-post-hesi

Post-Valentine's Day Post (Hesitation, repetition and deviation)

Hmm, I'm feeling a bit down. I am, of course, single, and without any prospects of being non-single. I'm also feeling sick.

Last week, as I've mentioned before, was TCD SU Rainbow Week. Which meant lots of going out with other gay people and watching said other gay people get off with one another. Which was a bit of a downer. As I have mentioned many, many times, I'm not the best looking, but even a number of, in my opinion, remarkably ugly people, uglier even than myself, got with attractive people. My personality is also not that wonderful, but it's not that bad; I do, mostly, get on with people. So what am I doing wrong? I'm not quite sure. I'm quite shy, obviously, and would never approach anyone, but I never get approached either...

Except, and this is quite funny, on Monday, we went to a gay night somewhere. One of the people who went I'd never met before. He was nice, and quite good-looking, and sorta coming on to me, I think. Which was odd, and certainly not something I'm used to. Anyway, at some point he got up to get a drink or something, and an old person comes over. When I say old, I mean it in a relative sense; he was 30 or so. (I'm 20). Now, I really have no interest in people over say 25, which is a shame, as 30 year olds seem to love me. This one had somehow picked up on us being students, so asked what I did. I answered computer science, which is by way of being the truth. And then, while putting his hand on my knee, he started going on about his German version of Windows XP. As chatup lines go, German versions of Windows XP rate low. I removed his hand (from my knee, not his body) and made not-comittal muttery answers. At that point, the other guy came back; mr 30 year old dove on him, and to cut a long story short, ended up going home with him. Grr.

Then there was another computer-related chatup line on Wednesday. Again from someone far too old, naturally; people my age are never interested. This one was so bad I seem to have blocked it out. Finally, on Thursday, a really old guy (50+) was offended when I rejected him out of hand when he came up making improper suggestions, and started giving out to me. People are strange.

Really quite surreal moment on Friday where a guy seemed vaguely to like me. The problem is, on the rare occasion that that happens, I never know quite what to do...

So, slightly down after that, and feeling quite rejected.

On the plus side, went to Stephen's 21st on Saturday, which was fun :)

clothes-sizes-standardisation

Clothes Sizes, Standardisation, Lack Thereof

We live in an age where we can construct machines out of individual molecules. Where we can dig tunnels from both sides of a sea and meet at the middle. Where aircraft are assembled seamlessly from parts produced across a continent. Any yet, we don't have standard clothes sizes.

Now, I don't like clothes shopping. At all. Consequently, I have put it off until I now find myself with one or two pairs of jeans that fit and a few that are too big, a few tshirts, and one pair of shoes. The worst is shoes, as you actually have to ask for sizes, thus it is awkward if you get it wrong first time. My current ones are a European size which approximates to UK size 11 (about US size 12). They're too small now, so will have to move up slightly. But to what? And in which incompatible scheme? Argh!!!

Then clothes. Jeans are sized in terms of two variables, both in inches. Theoretically, then, the same waist size should be the same for all of them. It isn't, though. My two pairs of waist size 30 jeans are significantly different. For tshirts, it's even vaguer, "Small", "Medium" and "Large". Which aren't defined at all, and vary to an amazing extent between brands.

Honestly, would some sort of simple standard be too much to ask for?

Tuesday, February 14, 2006

bla-bla-bla

Bla bla bla

Oh, dear, him again.

In response to his comments, thousands of people link to KPMG, mostly as a result of their surreal, other-worldly linking policy. The whole thing was news a few years ago, but I thought it was rather amusing that the imaginary internet legal issue of the 90s, linking, had come up again. No, using the wrong name is not, as far as I know, illegal, provided it's not used to deceive. I'm not sure what he means when he talks of a directory site; as far as I remember, the only directory I've made fun of was that prostitution one. And alter-ego responses? I'm not quite sure to what he is referring here...

Still haven't learned to speak English, I see. What a pity.

turck-mmcache-is-also-cool

Turck MMCache is Also Cool

Turck MMCache is a PHP accelerator that works by caching compiled PHP code. I just set it up here. It really makes a very impressive difference to speed, especially for things like phpMyAdmin. Easy to set up and free; don't know why everyone doesn't have it!

skypes-cool

Skype's Cool

I just spent an hour and a half talking to people on Skype while doing stuff in the background. It's fun. I'm overcoming my fear of the telephone!

My username's rsynnott, btw.

Monday, February 13, 2006

backup-now

Backup Now!

This rather large blog host just lost its hard drive. Its only one, mark you. Last backups are from December 2004. Ouch.

rainbow-balloons

Rainbow Balloons!

Rainbow!

On the last day of Rainbow Week, we blew up lots of balloons, and put some in the window of the LGBT society room in Trinity. Very pretty. You can see them from the outside by looking to the left of Front Arch, 2nd floor, from outside college, if you hurry.

I really need a better camera for this sort of thing...

rainbow

Rainbow!


Saturday, February 11, 2006

rob-the-juror

Rob the Juror

I was summoned for jury duty today, for the Circuit Court on the 20th of March. As it happens, I have Schol exams that week, so should hopefully be exempt; must fill out the forms and send them back. Interesting, though; I somehow never imagine 20 year olds on juries. The summons was accompanied by a lovely little form explaining the court process in great detail, in cheery, 1950s 'Make Your Country Proud' language. On 100% recycled paper, naturally.

Tuesday, February 7, 2006

temptation

Temptation

Last night I saw a poster for some Sinn Fein talk on how the government needs to spend more money on public services. I was quite tempted to write in "Except for the Criminal Assets Bureau", but I resisted.

(For those of you not from Ireland or the UK, Sinn Fein is a nationalist party operating both in the Republic of Ireland and Northern Ireland. Its (now apparently demobilised and decommissioned) terrorist wing, the IRA, has in recent years been much harassed by the Criminal Assets Bureau, an Irish government body for the retrieval of ill-gotten gains).

Monday, February 6, 2006

teacup-turbulence

Teacup Turbulence

It's Rainbow Week in Trinity. Rainbow Week is run by the Students' Union as a sort of gay rights/look! there are gay people in this college thing. This year, the LGBT Rights officer decided to run a "Safe Spaces" campaign. The idea was that lecturers could put up posters saying that they were gay friendly. It didn't really seem to accomplish much, apart from outing the Head of School of Philosophy there, Gerard Casey, as a braindead bigot (apparently an open secret in any case), but it didn't do any obvious harm.

Anyway, there has been an AMAZING amount of opposition to this by a moderately small number of students. The fuss made has been incredible, though not quite on the level of this week's major crockery tempest. :) Interesting to see the whole "gay students don't need protecting! We'll have no trouble here" element out in force, though. No doubt it will blow over...

google-responds-to-seo

Google Responds to SEO

Search Engine optimisation is the process of crafting websites to come favourably in Google, through a variety of both ethical and unethical methods. Many people practice unethical SEO thinking that they won't be caught. Google caught BMW in the act. Try searching for 'bmw.de'. Good for Google! I wonder what the response to this will be?

why-i-do-not-worship-at-the-a

Why I do not worship at the altar of AJAX

There's a new buzzword, these last couple of years. That buzzword is "Web 2.0". Web 2.0 encompasses, oh, all sorts of vague things, like blogging, wikis and community websites, and one quite concrete one, AJAX. AJAX is simply a new name for something that has been around for a good while, client-side Javascript which calls server-side code through HTTP requests, and displays any result without going to a new page.

Now for some reason, once this was called AJAX (which stands for something rather uninteresting), people dived upon it, saying it was the future of the internet, etc, etc. Dodgy tutorials shot up, and soon thousands of people were cranking out AJAX applications.

Its uses are many and varied. The main one seems to be to build applications which interact with the server without going to a new page after every transaction, and at that it is quite good. This is not necessarily a good thing, as I'll describe shortly. There are other applications, to be sure; rather promising ones include chat applications, and simple little things like showing the correct list of states for a country once that country is selected without refreshing the whole page.

So, why are these amazing, speedy, no-new-pages applications a bad thing? Well, there are a few reasons.

First of all, they make it possible, and indeed almost inevitable, for the programmer to define their own user interface. This isn't a good thing; people are used to web pages. They think they know how web applications should work. When they click 'back' they expect to GO back, not leave the application entirely. When they click bookmark they expect to bookmark what they're looking at. When they change options, they don't expect those options to take effect until they click submit or similar; some AJAX applications, however, put them into effect as soon as they are changed. In many AJAX applications, when you click to load some data, absolutely nothing happens until the data is loaded; no browser waiting symbols. And so on. User interfaces, in general, should stick to the Principle of Least Surprise; that is, they should not do, where-ever possible, anything that is incongruous with what the user could reasonably expect them to do. Users have built up expectations of how internet applications work.

Compatibility, often cited as a strong point of AJAX on the basis that it, at least in theory, works on all mainstream browsers without any extra software, is actually one of its weak points. In practice, compatibility of a lot of AJAX software is often not great, especially on platforms it has not been tested on. I come across a fair few AJAX sites which won't work correctly or at all on Safari. Now, unless I really, really need to use the site, I'm not going to bother going to Firefox. And there are few if any circumstances which would drive me to go and search for a Windows machine just to view a website. HTTP/HTML sites, by contrast, should work, to an extent, on just about anything. They may not look very nice, but they should work.

The heavy dependence on Javascript is also an issue. Perhaps because it is seen as a weird browser scripting language, many Javascript implementations leave a lot to be desire; in particular, many leak memory. If you are using a lot of Javascript, you leak a lot of memory. And some people, myself included, habitually browse the internet with Javascript disabled; saves on obnoxious sites using it.

Because of the nature of AJAX programming, it seems that programmers are often tempted to build SQL instructions on the client-side, and send them back to the server. This is almost never safe; it in effect means that the user can send whatever they like the same way. Even if the user account being used only has read access, they can bring the database to its knees with a few well-placed queries. This sort of thing is quite common; this site has examples. Other similar issues occur, usually involving the server trusting the AJAX client too much.

Then there's performance. As already mentioned, AJAX apps often neglect to inform the user when they're downloading things. This is fine on the developer's local machine; things will load fairly instantly. From a server in a datacenter fairly close by, and using a broadband internet connection, still fine. But if you're on the other side of the world, or using a highly-contended line, or a wireless network at the edge of its capacity... You may find yourself waiting a few seconds every time you click on anything.

One of the nice things about conventional HTTP/HTML is that is degrades gracefully as usage increases beyond the limit of what the server can handle. Requests simply take a long time; this is manageable, and the user can probably still comfortably use the site. In addition, a site in this situation is to an extent self-moderating; because it's taking each user longer to load each page, there are fewer requests per user per minute, thus keeping total requests down. Now, from an AJAX perspective, when applications stop working for 10 seconds with no indication of what's going on, possibly after clicking a piece of the application's doubtless weird UI, the user is likely to feel uncomfortable, and worried. They may simply decide it's broken, and leave. And it's entirely possible that issuing of requests will not slow; from the user's perspective, they are not waiting on a page to load, so are free to do other things.

Another performance issue is request count. A conventional HTML page takes one HTTP request, plus any pictures or similar required. There is no upper limit to the number of requests an AJAX app can make, and some of them seem to have gone the way of web-apps accessing databases; the designer feels that it is entirely ok to make 10 requests at once. This puts extra load on the server, of course. This is a particularly large problem for secure applications, where all traffic is going over HTTPS. HTTPS is quite processor intensive on the server side. So any increase in requests is likely to be a problem, and, of course, HTTPS requests tend to be slower, exacerbating the issue with things taking a long time with no warning above.

Now, all that said, AJAX apps do have uses, and they are, in general at least, far better than either Java applets or horrible Flash applications from a user point of view. But I really don't see that AJAX is the miracle the internet needs.

Sunday, February 5, 2006

irish-blog-awards

Irish Blog Awards

Someone nominated me for the personal category in the Irish Blog Awards. I'm one of some 40 people in the category; after the vote it'll be down to five. I doubt I'll make the cut, but nice to be nominated :)

bon-jovi-spam

Bon Jovi Spam

On a message board I frequent, a newly registered users just posted this. Okay, looks moderately innocent... Now try googling for 'popnfresh175', the poster. 175 posts, all advertising a Bon Jovi album. No link to buy it. This would seem to be a new form of "Viral Marketing", or "spam" to those of you who haven't sold your souls to the God of Marketing. Did Universal, the record label, actually pay for this? A few more quick searches will show that the same thing has been posted all over the place, with various different names, all ending in a number.

Hell's too good for them. Disgusting marketeers.

Saturday, February 4, 2006

muhammad-cartoon-silliness

Muhammad Cartoon Silliness

Some days ago, a Danish newspaper published a few rather tasteless and offensive, but certainly well within the range of normal satire, cartoons, involving the Islamic prophet Muhammad. Causing half of the Islamic world to go stark raving crazy. Embassies have been burned, nations boycotted; even the Vatican, perhaps upset about depiction of priests or Ratzinger in satirical cartoons, has chimed in to say that free speech doesn't imply the right to offend religious beliefs, or some such similar rubbish.

Now, as an atheist, I find it hard to understand why people get so excited about the imaginary people they worship. God(ess)(e)(s), Muhammad, Jesus, Buddha and the Invisible Pink Unicorn are all grown-ups, and can no doubt handle a little teasing. If they are unhappy, they should cast down the perpetrator with a lightning bolt, or something; there is no need for mad people on the ground to assume that the revered one is mortally offended over some silly cartoons, and start setting fire to embassies, suing under archaic blasphemy laws, or other things the faithful do when they fear that the object of faith has been offended.

This cartoon sums it up quite nicely.

Oh, and the cartoons which caused offence are here, if you're interested. EDIT: Higher-res versions here.

By the way, the Christian god has so far failed to strike me down over insults, as have the Jewish and Islamic versions. I take this as a sign that they've as much of a sense of humour as the rest of us, and probably aren't that worried about cartoons.

phonetic

Phonetic

Is a terribly ironic word.

Friday, February 3, 2006

radish-crisis-in-japan

Radish Crisis in Japan!

Last year, a radish grew through the pavement in a Japanese town. Someone then damaged it. This somehow became a national crisis, and they are trying to clone the radish. People are odd.

Wednesday, February 1, 2006

us-nuclear-interest

US Nuclear Interest?

George Bush, in his State of the Union address, said that the US must break their oil addiction, and has pledged to increase funding for 'clean' (nuclear and renewable) energy. Hopefully, this will actually be followed through upon. The US doesn't exactly have a glowing past in the area, but this could change, with work.