Search Results: "ah"

31 December 2005

Zak B. Elep: Back to School

Hey blog. Long time no post. Where was I? Ah, yes. I was so distracted with so many things to do at the moment. Things such as rebuilding a woody chroot via debootstrap only to fail inside a Ubuntu breezy system because of an obscure bug that affects Linux >= 2.6.12, as well as wgetting, building, and testing source packages for The Great Merge. Not to mention that my books for the second semester have arrived, and pending some grokking. I owe EClair a howto for mozex and gnuclient, although from our recent chat she seems to have managed. What? I need to attend to my debdiffs again. Ah well.

Antti-Juhani Kaijanaho: Strange sounds

It’s ten past nine on a Monday morning. I am usually at work at this time, but not today. Tomorrow’s the Independence Day, and I’m, as usual, staying home for the single work day that this generates. Suddenly, I hear a very powerful growling sound. It lasts about ten seconds. It is so powerful that everyone in the neighbourhood ought to hear it. About twenty seconds later, there are a series of equally powerful electric but almost otherworldly jingle sounds. They last about ten seconds. About twenty seconds later, the general alarm is sounded: a continuous siren first raising the pitch then lowering. It stops after one “wave”. A relief: it is a test of the general alarm system. I had read about the sound-based remote control of the general alarm system, but this was the first time I observed it in use. Had I not already surmised that this was going on from the start, I would have been seriously frightened by the strange sounds. About a minute or two later, while I was already composing this, I heard very faint jingling, followed by a very faint general alarm. Obviously, the system was being tested elsewhere.

Antti-Juhani Kaijanaho: Independence Day repost

The following is a repost from my old blog, originally written one year ago. As I start to write this, it’s the last minute of my country’s 87th birthday (the Finnish Independence Day). It got me thinking about nation-states and independence and whatnot. And I came to a threefold conclusion: First, there is some value in independence. Getting rid of the status of a Grand Duchy in personal union with Russia was certainly a good step for Finland, in light of the rough road the Russians themselves have since travelled. For the same reason, the two wars Finland fought against the USSR were quite worthwhile. Similarly, if Finland were to be threatened by a neighbour again, armed defense would certainly be justifiable. Second, there is no intrinsic value in independence. If a humanly life (including freedom and local government) can be guaranteed even if there is no Finnish state in itself, I see no reason to hold on to the old-fashioned concept of a nation state. Third, I am in favour, as a long-term goal, of a world government. Of course, a single government becomes a single point of failure in case of a coup, for example, but if the global state is arranged properly, the danger of a successful coup is minimal. On the other hand, a world government is in far better position to institute necessary policies to combat the global problems of poverty, climate change and other such issues than the current system of competing and cooperating nation-states. In the current system, the big issues are easily put aside in name of local opportunism. Finland is by no means immune to that problem. The great crises of the 20th Century were its devastating wars. Fortunately, we have overcome them to a sufficient degree. The great crisis of the 21st Century is not terrorism – though it is a symptom. The great crisis is caused by the limits of growth, and we are already feeling quite concretely the nearness of those limits. If something is not done, our current civilization will crash spectacularly. The human race will probably survive – but do we really want to live through another Dark Age? Long Live the Earth!

Antti-Juhani Kaijanaho: Pain and suffering and other immaterial personal damage

Martin- ric Racine asked in the comments to my previous mini-essay on crime-related damage compensation about how immaterial losses, such as pain and suffering, are given monetary value in court. In this essay, which is again part of my essay series on Finnish criminal justice, I will try and sketch an answer. As usual, I am not a lawyer and this is not legal advice, and this is not an exhaustive treatise on the subject. Finnish law is very vague about how immaterial damage is compensated. It basically only gives a list of the forms of immaterial loss for which compensation can be ordered by a court. The main categories related to physical injuries are kipu ja s rky (usually translated somewhat inaccurately as pain and suffering) and pysyv haitta (permanent handicap). Kipu refers to the instant pain suffered when the injury is created, and s rky refers to the longer-term but not permanent pain present after the kipu has ended until the injury is healed. A new act of parliament will amend this at new year, specifying these in greater detail. It amends the existing Damage Compensation Act by defining a list of things that are to be given special weight when measuring the monetary value of personal damage. For pain and suffering, those things are the type of the injury, the type and duration of medical treatment it required, and how long the pain and suffering lasted or is expected to last. For permanent handicap, however, the list is a little different: the type and extent of the injury, and the age of the injured person at the time of injury. This is basically just writing out the existing legal praxis. There is currently no specific standard against which the courts compare individual cases. However, since one is desperately needed, the courts generally use a substitute. There is a governmental board whose job is to set a standard monetary valuation for different types of injuries sustained in traffic accidents. That standard is intended to be used by insurance companies, but in practice, courts also use them as a guide when considering injuries caused by criminal acts. In relation to pain and suffering, the standard categorizes injuries as follows:
Category A (petty injury)
will heal fully leaving no marks in a week or two, requires no hospitalization, causes at most two weeks’ inability to work – scratched skin, small cut, minor bruises etc.
Category B1 (minor injury)
requires no resuscitation nor intensive care, requires up to a week of hospitalization without surgery, causes at most two months’ inability to work, causes only insignificant permanent disability – significant bruising, loss of few teeth, simple bone fractures etc.
Category B2 (medium injury)
may require resuscitation but not intensive care, requires one to three weeks of hospitalization, no complications in treatment, no need for reconstructive surgery in later care, causes at most seven months’ inability to work, causes only minor permanent disability – simple fractures of the long bones, fractures of facial bones, etc.
-Category C1 (major injury)
requires cardiovascular or pulmonary resuscitation, requires short-term respirator use or tracheostomy, in the case of a limb injury, requires demanding surgery, requires reconstructive surgery in later care, requires up to eight weeks of hospitalization, causes up to eight months of inability to work, causes significant permanent disability – loss of all teeth, complicated bone fractures etc.
Category C2 (especially major injury)
requires long-term mechanical respiration or resuscitation, major complications in treatment, requires extensive surgery, requires hospitalization for longer than eight weeks, causes a year of inability to work, causes major permanent disability – loss of limb, significant brain damage, loss of fertility, severe burns etc.
Category C3 (extraordinary injury)
extraordinary complications in treatment, long-term hospitalization, causes complete disability, causes helplessness – extreme brain damage causing dementia, loss of both upper limbs or both lower limbs, causes permanent pain, permanent quadriplegia, causes complete blindness
As you can see, all categories are described both by the treatment required and by listing sample injuries. These descriptions are complementary, and not identical. In categories A and B, the treatment-based descriptions are conjunctive (all requirements must apply), and in C, they are disjunctive (at least one must apply). I did not translate the descriptions completely; see the Finnish original source if you need more detail. The traffic injury standard currently specifies the following monetary values for each category:
Category Compensation
A see below
B1 200–1,000
B2 1,000–2,900
C1 2,900–7,300
C2 7,300–16,700
C3 at least 16,700
Due to a quirk in the traffic injury ccompensation system, Category A is not compensated in the case of traffic injuries. This does not apply in criminal cases, where Category A is usually taken as “up to 200 ”. Of course, the specifics of the case will sometimes require departing from this standard in criminal cases (the aggravation in the crime often is taken as a reason to up the monetary damage estimate). Permanent damage is similarly handled by courts by referring to the standard set for the statutory employee’s accidental injury insurances (see the Finnish sources 1 and 2 for details). I already mentioned above a new act of parliament. That act, which will enter into force January 1, 2006, creates a new Personal Damage Advisory Board (henkil vahinkoasiain neuvottelukunta), which will follow legal praxis and give recommendations, much like the above-described standard, which courts and other instances deciding on compensation for personal damage can take as a base standard against which individual cases can be measured. The advisory board’s recommendations are likely to supplant the traffic damage standard described above in the future.

Antti-Juhani Kaijanaho: Not again!

When you protest political decisions, please – pretty please! – have some perspective! As bad as the new data retention decision is, it is not even in the same ballpark as 1984. There is no thought police, there aren’t thousands of people rewriting history books according to the political leadership’s whims, there is no newspeak whose vocabulary is constantly shrinking. Nobody will take you seriously if you overreact. You only hurt the good cause.

Antti-Juhani Kaijanaho: Phishing Amazon user data

I’ve seen from several sources messages of the following kind:
Subject: Please verify and update your Amazon account !
Dear Amazon    member , 
    It has come to our attention that your Amazon account information records are
out of date. That requires you to update your account information . If you could
please take 5-10 minutes out of your online  experience , and update
your account , you will not run into any future problems with Amazon
online service.                                       
   However, failure to update your records will result in account termination.
Please update your records in maximum 48 hours.  
   Once you have updated records, your Amazon session will not be
interrupted and will continue as normal.
      To update your Amazon account information click on the following link: 
        (link suppressed)
 Best Regards ,
Amazon Security Departament
Disregarding the very sound general rule of thumb telling us to distrust any mails that ask us to “reconfirm” our account details at whatever company, this mail is fairly convincing. The greatest clues that this is a forgery are such that Grandma Pihtipudas will unlikely notice them: the mail has been sent to several addresses I know are not registered with Amazon, and the link uses a well known URI spoofing technique. Beware!

Antti-Juhani Kaijanaho: Unbounded Tic-Tac-Toe

Here is the result of a few nights’ worth of hacking. This project was originally my solution to an exercise I had posed to my functional programming students. Since then, I’ve rewritten it once and redesigned the user interface completely. It’s an idealized implementation of a game we used to play during breaks at school. We would take a sheet of cross-ruled paper and play tic-tac-toe, with the following two changes: the whole sheet was allowed as the board, and we required a sequence of five, not three, marks for a win. The ideal was that the “board” was infinite, or unbounded, though in practice we did take the paper’s edges as the board’s bounds. (We also usually played more than one game on the same sheet of paper; previous games were simply declared “no-man’s land”, effectively creating weirdly shaped “holes” in the game board; I haven’t duplicated that here.) Version 1.1 implements a single-player mode (the other player is simulated) and a demo mode (the program simulates both players). It’s written in Haskell, and requires gtk2hs 0.9.10 (or later) with Cairo enabled, and GTK+ 2.8 (or later). The source is available as release tarballs and as a darcs repository. (Yes, I know that the arrow in the lower-left corner is wrong. That’s not my bug, though.)

Antti-Juhani Kaijanaho: Christmas balance

I calmed down for Christmas on Friday. Calmed down is exactly the right verb, as I ended up sleeping through most of it. I slept though Friday, hacked during the late evening and night, then slept again most of the Christmas eve. My father came around six to drop me his (other) gift. It was a book on European history 1600–1800, nice, what I had asked for, for I have this dream of writing something in the 163x-verse some time (though I doubt it’ll ever happen). I had received (and opened) his other gift earlier, which was Star Wreck’s soundtrack (probably better than the movie, though the movie was very good too). Opened also my mother’s package which I had picked up earlier in the week from the post office’s local agent: a Heidi Hautala scarf, a long scarf made by my mother herself, and some writing material. Thank you! I slept through most of Sunday, too. Advance subscriptions to Jim Baen’s Universe opened also on Christmas eve. Picked up the Titan membership, for even the other membership classes appealed to me (extensive Tuckerization rights, yessss!), they would have posed cash flow problems. So I took the Titan one, hoping that it will help the magazine at least a little. However, I started reading one of the books that came with the advance subscription package, Empire from Ashes by David Weber, and helped me spend most of the time I wasn’t sleeping (of course, I realized later that I already had that book, since it came with the At All Costs hardcover bonus CD). Today’s minus fifteen degrees, along with the threat that it might actually go below twenty today, made me finally look for my long johns. Surprisingly, my current trousers have been warm enough without long johns even slightly below minus ten; but I knew I’d have to look for the long johns eventually, as a Finnish winter at Jyv skyl ’s longitude just isn’t complete without at least a few days of minus 25 degrees. All Celsius, naturally. All in all, it was a most relaxing Christmas :)

Antti-Juhani Kaijanaho: Unbounded 1.2

I’ve just released a new version of my game Unbounded Tic-Tac-Toe (yes, I know, there are other names I could have chosen). This version is now able to handle any n-in-a-row on that same unbounded board (although the user interface only allows one to select n from between one and ten, inclusive). I’ve also improved the documentation. Get it as a tarball or via darcs. Happy holidays, everyone :)

Antti-Juhani Kaijanaho: Upgraded Wordpress

Just upgraded this blog to Wordpress 2.0. It looks everything went quite nicely, I see no major problems and considering how coolly the Finnish blog list service Blogilista took the upgrade, it is likely that Planet Debian will no throw a fit either. First impressions: the admin interface looks cool. The new editor is usable. Update: In the upgrade, I followed the instructions with a twist: I made the following changes to my server config prior to the upgrade so that any transitional problems would not be visible: RewriteEngine on RewriteCond % REMOTE_ADDR !^130\.234\.192\.228$ RewriteCond % REQUEST_URI !^/503.cgi$ RewriteRule ^/newblog /503.cgi The effect of this was that I (having the IP address 130.234.192.228) would see the blog as it is, but others would see the 503 ‘Service unavailable’ error message that my 503.cgi created. Update(2): Argh! The new editor handles pre tags badly. Had to hack around it in the ugly way seen above. Update (3): Fixed the WP2 link above. Update (4): It seems I was wrong about Planet’s sensibilities. However, now I’m blaming Planet, not the upgrade, since Blogilista handled the upgrade without thinking I had made any new posts!

Jonathan McDowell: It's good to be back.

I finally had my first flight cancelled on me yesterday. I suppose given that I've been flying a few times a year for at least the past 8 years (even if it's only back and forth to Northern Ireland) I should consider myself lucky. I arrived at Belfast City Airport at about 8am, for a 9:45am flight (the last time I flew from Belfast we hit really bad traffic, so we ended up overcompensating). On check in I discovered it was delayed by 15 minutes. Shortly after I'd made my way through security it was delayed by 45 minutes. Then they delayed it until midday. Then at 11:30 they said they'd have an announcement at midday. And then at 11:45 they cancelled it. Now, I was flying from Belfast to Norwich. There's only one such flight a day. So I'm a bit stuck. And by the time I get to the front of the refunds queue they've filled up the flight today (Saturday), leaving me the option of a direct flight to Norwich on Sunday, or any other flight leaving Belfast City on Friday that they have seats on. So I go to London Gatwick, supposed to leave at 14:30. And it gets delayed by 45 minutes straight after I check in. Thankfully it does actually take off at 15:15 and I manage to get to England. On the wrong side of London for Norwich, but hey, the trains are running. I negotiate the Gatwick Express, get a tube to Liverpool Street and get on a train to Norwich. Which then gets delayed for 25 minutes because a train breaks down in front of it. Bah. I finally get home just after 9pm, rather than the 11:30am or so I would have managed if my initial flight had taken off on time. The house is still in one piece, the plants haven't died, I have food again. Rar. And I know this is small fry compared to American flight horror stories, or the potential problems we could have had when Uncle Steve lost our clothes en route to Brazil, but it's the first time I've had a major problem with flights. (We'll ignore the fun I had when turning on my desktop machine and seeing "GRUB Read Error" displayed. Damn scanner had decided to frob the SCSI bus enough that the BIOS could boot grub but grub couldn't then see sda.)

Uwe Hermann: 22C3: Final Stuff

More Bandwidth OK, I will make this short because a gazillion of other people will probably blog about the 22C3 for several days or weeks to come... Today (last day) I only attended one talk — Bluetooth Hacking - The State of The Art. Funny stuff you can do with Bluetooth... All in all it was a great conference. Get the proceedings or browse the list of talks (most of them have PDFs attached) for more details. Videos of all talks should be available anytime soon (I hope!). Oh, and the 22C3 is probably the only event where you will see such signs (attached to walls by the congress staff!)...

30 December 2005

Erich Schubert: Why does Intel pick bad slogans: "limp ahead"?

No more "Intel outside", but now now a "limp ahead"? Intel has a new annoying marketing slogan. Congrats. Now, could you stop sueing poor users for using regular english words such as inside? (No, I'm not affected, just annoyed) Will you now fight anyone using the word "ahead"?

Joachim Breitner: Bored? Try Geocamming

I just discovered an article about geocamming, which simply means to google for webcams with unprotected web interface, and see where you land. Some of these cameras can even be controlled and zoomed, so I can see who enters and leaves this movie theater (no idea though where that place is...)Some other interesting picks:

29 December 2005

Decklin Foster: lastfmsubmitd

Apparently, tis the season to be writing your own Last.fm plugin. So here is mine. I finally got fed up with finding and causing bugs in mpdscribble (I am a bad sponsor!) it s written in C with libsoup, blah blah, can t stand C, and so I revived the MPD pseudo-listener I had started on as a replacement for that awful orphaned cacheless one-off we were all using before mpdscribble. I also fixed a few issues that were bugging me, like failing to detect restarts and tag changes. Not wanting to muddy up any of that logic with HTTP gar, I decided to write a separate program to queue, cache and send along song submissions. They re two or three hundred lines of Python each, and single-threaded (yes, that means child writers blocking and hanging around if the network code is in the middle of timing out or backing off. Deal with it! This is UNIX). I m pretty happy with the design, although the implementation is still very rough. This also mimics the model they want to move to for player plugins in general, which is good, because it will be less work for me to implement version 2.0 of the protocol once that is finalized. Additionally, I was able to find a more satisfying way to solve the disconnected-CD-player problem than my previous dreadful method of either using a few kludgey scripts to frob around in my primary plugin s cache or dealing with using cdscrobbler and having to be very careful about one plugin not stepping on the other s toes and invalidating my backlog. So this is the second example program included. (Oh yes, that part uses the Python bindings for MusicBrainz. MB is awesome. The Python bindings are hideous, however straight port of the C++ API. I d probably be better off just dumping the RDF into a real RDF implementation and doing my own cross-referencing, instead of prying it out piecemeal with select queries and non-polymorphic getters and all the other absolute nonsense you have to deal with when writing in a language without high-level data types or garbage collection. But regardless of implementation woes, this has kept me close to the MB metadata for my favorite CDs, and so I ve been busy all week entering and voting on mods (and doing research to justify my changes), which is very satisfying. I have yet to begin the gargantuan task of adding MB tags to my Ogg collection (I know, this is really just a matter of babysitting tp_tagger, but I ve got some work cut out for me to even get to that point).) And of course, once this becomes less prototypey, anyone who likes it can knock all the networking code out of their plugin and use it as their system service . Perhaps if I m agile enough this can become official code! It is at least a mootable proof-of-concept that UNIX systems don t necessarily need a heavyweight libscrobbler to abstract the service stuff out of the player plugin. I won t get my hopes up though. Still a bit unsure about the name. Theoretically it seems the service (you know, the thing we pay money to if we like it) should be Last.fm, while the software and protocols should still be Audioscrobbler, but the distinction does not seem to be drawn very clearly in practice. With the analogous situation of livejournal vs. ljcom you had a grokkable technical delineation (different repositories) as well as other widely used installations besides ljcom (DeadJournal, etc). I really can t see there ever being a competing installation of Audioscrobbler, because licensing the streamables is a formidable investment hurdle, and there s a negative market effect (also, the web site is not open source). But I am also bored of just sticking scrobble onto something else, so I wanted to grab sticking last onto something else before it got old. I haven t the faintest clue what makes me prefer whimsical names for some projects and prosaic ones for others. Note to actual MPD users (all, like, 5 of you): the stuff in the package will not handshake at the moment, as I have not yet gotten Russ to bless the client ID I made up. Will try to catch him tomorrow. Or later today I suppose. It s ready to go now. Next up: Because it s either this or Sound Juicer, I think perhaps it s time to bid adieu to abcde and write a MusicBrainz plugin for jack (jack is nice enough, I just haven t had a truly compelling reason to switch, and there have always been lots of good eyeballs on abcde). FreeDB delenda est.

Decklin Foster: Seriously

(01:20:56) ***Decklin blinks
(01:21:03) Decklin: Depends: libqt4-sql
(01:21:14) Decklin: libqt4-*sql*??!?!?!!!!!?!??!!!
(01:21:28) Decklin: somebody needs to put down the crack
(01:26:32) Aslynn: ?
(01:29:33) Decklin: a gui toolkit library
(01:29:41) Decklin: depends on an SQL database.
(01:29:45) Decklin: that's completely insane.
(01:30:08) Aslynn: uh...huh...
(01:30:20) Decklin: it's sort of like... a car requiring a hard drive.
(01:31:01) Aslynn: ah.
(01:31:05) ***Decklin downloads 20mb of source packages to recompile overnight
(01:31:15) Aslynn: wanna play literati? :)
(01:31:49) Decklin: i'm already installing one overbloated and hideous software support system, i have no time for java
(01:31:58) Aslynn: Psh. JAVA HAS NO TIME FOR YOU.
(In Soviet Russia, Qt builds you!) No offense meant to pyro; I m sure someone has a very good reason for needing this. (Please don't tell me what it is. Ignorance is bliss.)

Decklin Foster: Humane interfaces

You know, I think the whole thing missing in this whole kerfuffle (as James Robertson put it) from a few days ago is that it s not list.first(), it s list.first. Just pretend you re sending a message, baby. Of course, if your brain is still stuck in imperative mode, the first is available; it s simply a matter of how to express what you wish to convey that you are doing, which is really not something that minimal class design defines as part of the problem. So. Ahem. Curtain.
HAMLET
Java s a prison.
ROSENCRANTZ
Then is the world one.
HAMLET
A goodly one; in which there are many classes, methods, and runtimes, Java being one o the worst.
ROSENCRANTZ
We think not so, my lord.
HAMLET
Why, then, tis none to you: for there is nothing either functional or procedural, but thinking makes it so: to me it is a non-Lisp.

Daniel Stone: [tech/x] not to be left out

Since all the cool kids are doing it:
daniels@ephemera:~/x/xorg/xserver% diff -urN xorg ,.xkb /xkb diffstat tail -1
 27 files changed, 1437 insertions(+), 7439 deletions(-)


Hacking on XKB as recreation. Whoohoo.

(Oh yeah, and that removal of 6000 lines of code actually adds some really cool new features to the server, including some which make it significantly more complex -- XML parsing, i18n, you name it. How's that?)

28 December 2005

Antti-Juhani Kaijanaho: Unbounded 1.3

Wrote a GDK version of Unbounded’s drawing. Now it’s compile-time-selectable whether the drawing uses Cairo or GDK (Cairo is used if it is available). The main benefit is that Unbounded compiles on Sarge, though it still requires gtk2hs, which is not in Debian, at build time. Released Unbounded 1.3. Packaged it, too, but only unofficially. Downloads are here. There is no aptable repository. The debs are signed with my Debian key, there is no separate Debian source. The debs require only stuff that is in Debian.

Erich Schubert: Automagic fixing quotation marks for LyX

My mother uses LyX (and thus, LaTeX) to layout her books. She doesn't need much help, but does almost everything herself. Except she was lacking an editor which could replace the quotation marks appropriately, because they are handled somewhat special in LyX (you need an editor which can replace by multiline text, such as VIM). So every now and then, mostly when she's started layouting a new book, she'll ask me to fix the quotation marks in a lyx file for her. I decided to write a small python script for it, since she has python installed on her box anyway (also on Windows, although she also has Linux on it). Maybe someone else has the same problems, so here you go:
#!/usr/bin/python
import re, sys
 
# Use full regexp power to detect as many " properly as possible...
# Note that this is a lot more sophisticated than just \b" and "\b
# and will be able to handle all the 'something ...", said foo' cases, too!
# But yeah, you can do even more, and maybe separate it into more regexps...
qrp1 = re.compile(r'(^\s* \b[:]?\s+[.:,;?!\-\(]*)"(\b)', re.M)
qrp2 = re.compile(r'(\b[.:,;?!\-\)]* \b \.\.\.)"([.:,;?!\-\)]*(\s+\b \s*$))', re.M)
 
# These are for >>-style quotes, german bracketing. If you want other
# quotes, adjust to your style yourself (hint: look at your .lyx file)
q1 = r"""
\\begin_inset Quotes ald
\\end_inset
"""
q2 = r"""
\\begin_inset Quotes ard
\\end_inset
"""
 
# Iterate over all input files...
for name in sys.argv[1:]:
        # Load input file
        fi = file(name, "r")
        data = fi.read()
        fi.close()
        # Replace quotes
        data = qrp1.sub("\\1"+q1+"\\2", data)
        data = qrp2.sub("\\1"+q2+"\\2", data)
        # Write output file with new name
        newname = name + ".quotes.lyx"
        fi2 = file(newname, "w")
        fi2.write(data)
        fi2.close()

Next.

Previous.