Programming with frames

15:59, Friday September 26th, 2003 • feeling relaxed • no comments

It occurred to me last night, as I was debugging some particularly tangly Javascript and Java running in several frames, that programming a complex web application that uses frames is essentially developing a multi-threaded application. You have the synchronisation issues that you get with multiple threads, albeit on a lesser scale as you usually have many more threads than frames.

On top of that, because the round-trip time to the server is so much higher than access times for threads running locally, you just can't use a lot of the typical techniques for solving sync problems. Also, as the frames are meant to act as a coherent whole, you have to ensure that they dance together properly. They can communicate with each other and they can communicate with the server, but only in the most basic ways.

Sometimes, this makes things hard.

The Hours

5:53, Thursday September 25th, 2003 • feeling perplexed • no comments

I've been working ridiculous hours this week. I've gone to bed as Louise has been getting up every day. Then I don't get up until at least two. Today it was three.

The silly thing is that I've been working really well and not just sitting around staring at my computer the whole time.

Ridiculous.

Resucitation by Adult.

4:40, Thursday September 25th, 2003 • feeling critical • no comments

The overall effect is like listening to a strobe light.

I can't do better than that review, it's ace. Indeed, <irony>Adult. DIGIROCK!</irony>

My foot hurts from tapping.

Patents, more Lisp

3:34, Thursday September 25th, 2003 • feeling relaxed • no comments

The EU parliament decides that software patents are a good thing, but in what way? It seems that the draft directive that was actually passed had been declawed somewhat, relying on the phrase "true inventions" to come to the aid of the OSS community and others. Sounds like it's not as bad as it could have been, but that the end result is probably a fair amount of confusion. Weird.

That and I'm not eschewing Lisp yet. Scary. I download Paul Graham's On Lisp in PDF form. I just read the introduction and I think I'm starting to get it. I think the thing that everybody loves is that Lisp is programmable. Instead of writing a program in it, you end up customising the language until that program is trivial. This is demonstrated by Graham by implementing Prolog in 200 lines. I wonder how many brackets he used. Fuck loads probably.

MySQL configuration files

23:38, Tuesday September 23rd, 2003 • feeling webmasterly • no comments

I use a shell script run as a cron job to back up this database and the Hype database. To do this the scripts needed the correct passwords to get to the data. In an ideal world I might have set up an account with select-only access, but it's a shared server and I only have one account per database. I was specifying the username and password for MySQL on the command line and anyone else could see it with a simple ps.

The much better way is to create a defaults configuration file. MySQL cnf files can consist of any option specified as a command line argument. They are organised by application, e.g.

[client]
user=myname
password=mypassword
host=mysql.com

The password option has exactly the same effect of putting --password=mypassword on the command line to the MySQL client. You can have sections for mysqld, mysqldump and so on.

By default the MySQL apps will look in several files for these kinds of settings. However, you can point it to a particular file with --default-extras-file. This loads your file after the global defaults. I use this to point mysqldump at two different databases.

Page 53 of 113

← previous page, next page →

Choose another page: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113 or return to the most recent entries.

Last updated at 11:32, Wednesday June 18th, 2008. All times are shown in 24-hour clock format and are BST.

Rate my journal on bloghop.com: the best pretty good ok pretty bad the worst

aftnn.orgafternoon's journal → page 53