Memoirs In Free Fall

January 31, 2004

Exhaustion from Excitement

Filed under: Uncategorized — Tags: , , , , — amit @ 6:39 am

So I finally went and watched RotK tonight.

I was blown away. This movie totally met my expectations, and I can’t say that there have been many movies lately that have done that.

I think I’ll *cough* acquire a copy of it on Video CD for my sister, since it’s going to be off cinemas when she arrives (Wednesday).

While I wait until I can purchase an ATX chassis, thermal grease, a linmodem and a DVD-ROM drive at a reasonably cheap price from a wholesale outlet, I’ve been building a kernel to suit the new hardware. It’s essentially 2.4.24 patched with Software Suspend 2.0, kernel preemption, low-latency scheduling, ACPI and forcedeth. Surprisingly the patches applied cleanly. Unfortunately, forcedeth seems to have been written for an earlier 2.4 kernel, so its compilation broke, but was fixed easily enough.

Now I’m building i2c, lm_sensors and nForce graphics drivers.

Tomorrow we go to Abu Dhabi. I expect to be really really bored. At least I’ll have something to look forward to if I manage to purchase the items in the morning.

January 30, 2004

Commencement of Chicken-counting

Filed under: Uncategorized — Tags: , , , — amit @ 4:44 am

So Amir’s hardware arrived today: an Asus A7N266VM (nForce 220D–based microATX motherboard), an AMD Athlon XP 1600+, a Kingston ValueRAM 256MB PC2100 DIMM and a heatsink/fan to go with the processor. It’s Friday, so the shops are all closed. If Eid is not declared tomorrow, I’ll be able to go and purchase an ATX chassis (all I have around here are Baby AT towers), a tube of thermal grease for the heatsink and a PCI linmodem.

Thank goodness. I can see an end to watching the screen repaint itself raster-line–by–raster-line. (OK, so it was never quite that bad.) I’ll keep my disk subsystem — a 36GB UltraStar 36LZX, an 80GB Maxtor DiamondMax D740X and a Western Digital AC34300L. Currently I have two CD readers in this box, one of which can read anything except CD-RWs reliably, and can’t read CD-RW media at all (defective laser, perhaps) and another reader that can’t read anything reliably (but can read CD-RWs about a third to half the time). I think I might pick up a proper DVD-ROM drive — there isn’t a single decent reader in this house. I’ll pull the floppy drive from this box. The motherboard builds in graphics (nForce IGP; the NVIDIA graphics drivers should work), audio (nForce audio; the ALSA driver will work here) and LAN devices (under Linux, NVIDIA provides NVNET drivers that ought to work, and there’s also an open-sourced forcedeth driver that is said to work better than patched NVNET under Linux 2.6).

It has only three PCI slots, but these should be sufficient. One will go to the PCI linmodem. Another will be occupied by my SCSI card. I’ll put the video capture card from my Dad’s machine into the third. No ISA slots, of course, so my old ISA PnP modem won’t work in it.

My current box has all slots but one ISA slot filled — it accommodates a 1 MB Cirrus Logic GD5430 PCI VGA card from 1995, a SIIG-branded Silicon Image SiI0680–based ATA/133 PCI card, a Koutech KW-910UW–branded Initio INIC-950P—branded SCSI card (Initio INI-9100UW workalike), a RealTek RTL8139D Fast Ethernet PCI card, a PROLiNK-branded Rockwell chipset–based ISA plug-and-play modem that originally conformed to K56flex but that I subsequently flashed for V.90 operation (using minicom and X-modem — man, I was scared) and a pre–Plug-and-Play SoundBlaster 16 from 1994 or 1995 (CT2290), the full-length kind that carry IDE ports.

All of these on a crappy 430VX-chipset board (FIC 586IPVG) that officially only supports CPUs up to the Pentium MMX 233 MHz (but for which I figured out jumper settings for 2.2V — the lowest setting in the manual being 2.8V — so the K6-2 450 MHz I’m running at 66 MHz x 6 = 400 MHz wasn’t fried.) The BIOS actually thinks I have an 80486SX at 66 MHz. @_@ The last BIOS release for it was on August 13, 1997. And I’m running 128 MB FPM RAM (for the uninitiated, Fast Page Mode (FPM) RAM was the technology most later 486es used, prior to the advent of EDO (Extended Data Out) RAM), the maximum amount of memory that the motherboard can address. (SDRAM DIMMs are limited to the 32MB-per-module density, and there are only two DIMMs, so I’d only be able to use 64MB by that route.) On top of this, the 430VX’s L2 cache can’t address more than 64MB, so half the RAM is effectively only cached by the L1 cache — so sort of like the original Covington Celerons that way, but without the overclockability.

It’d help a little if I could clock the system bus at 75 MHz. That would push the CPU up to its rated 450 MHz speed, but unfortunately, the memory is evidently not able to deal with a higher clock rate, so it’s going to be stuck at 66 MHz/400 MHz for the foreseeable future.

The components onboard the nForce board alone are a huge upgrade. Add to this the fact that things like a kernel compile won’t take two hours and change should be a pleasant improvement.

Hopefully this run of good luck will continue into the coming months. :D

January 29, 2004

Quasi-Freedom

Filed under: Uncategorized — Tags: , — amit @ 11:04 am

So I don’t have to go to work until Tuesday.

I finished all the OCR drudgework yesterday and the boss (who is the only one who can tell me what drudgework to do next) is out of town today, so I have today off. Tomorrow’s Friday, the weekend and Eid holidays begin on Saturday. The government has mandated three Eid holidays for the private sector, until Monday.

I looked in the papers yesterday to see if RotK was still up at cinemas. I noticed that while some cinemas had twelve shows a day last week, this week, they only had four showings a day. So I called up a few of them, asking how many more weeks it was going to be up. I was told that Tuesday would be the last day the movie would play in the cinemas.

My sister arrives Wednesday.

>_<

So I’ll probably go watch RotK by myself today or tomorrow. My sister can watch a bootleg Video CD instead. Oh, well. She was really looking forward to watching it in the cinema, but I guess she won’t have the chance.

January 28, 2004

A Persian (Un)welcome

Filed under: Uncategorized — Tags: , , , , — amit @ 1:01 am

So I went through a visa change via Kish Island.

It turns out that Kish (كيش) is a Free Zone area, which is to say that it is tax-free and has its own semi-autonomous immigration authority, police force, etc. It’s a desert like most of the Persian Gulf region. And people there speak Farsi and (occasionally) broken English and Arabic.

I left Dubai around 9:30 am, arriving in Kish some 45 minutes later. The women were given headscarves to wear — the first sign that we were now in the Islamic Republic of Iran. After getting through immigration (one of the few places outside India where Indian citizens are allowed to enter the country without a visa [and stay up to 14 days]) I was whisked off to the Farabi ‘Hotel’. Here we were all jammed into a corner, relieved of our passports and given tokens in their stead, while we waited for our return flights to Dubai. Fortunately for me, my father had already faxed a copy of my new visa to the hotel before I got there. After our passports were taken, we were led — nay, marched — into our ‘accommodations’ — a 15m × 20m hall with eight beds on the right-hand side (“only for the ladies”) and some uncomfortable cafeteria tables, chairs and old battered couches for the rest of us. Most of us immediately left.

I accosted the guy who led us to the hall, asking him whether I could take an earlier flight home, since I already had a visa fax. He told me that there were only two flights a day to Dubai, and the first one (on the plane on which I came to Kish) had already left. I asked him where I could make a call, and he pointed out the Business Center.

I made my way to their ‘Business Center’ to make a phone call — no public telephone booths and no telephones in the hall. The Business Center turned out to be a waiting room of sorts and a request/payment counter, with one computer in the corner with dial-up access (six Dirhams an hour). They had four phones and about forty people waiting to use them. They had me write down the telephone number and wait (fortunately, I had Thomas Harris’ Red Dragon to keep me company) while the folks before me finished their calls. Their system is thus: they call out each number before they dial it. If no one responds (or, more importantly, they don’t notice anyone responding), they move to the next number. If they notice someone indicating that he’s ready to call, they direct him to one of four ‘cabins’ containing the handsets (really just damping hoods) and dial the number themselves. When the other party picks up, they transfer the call to the customer’s handset.

I had to wait a good fifteen minutes before I could call home. Charge: one U. A. E. Dirham per hour. Everyone accepts U. A. E. Dirhams on the island — more readily than the local currency, the Toman.

Fortunately for me, I was well-engrossed in the text of Red Dragon, so the time passed pretty quickly. Toward the end, I had a bit of the scare — my return reservation was open, which is to say that my travel agent had not confirmed it. Upon reaching the airport around two hours before the flight, I made my way to the check-in counter, which was manned by two guys in yellow coveralls. (This should have tipped me off to the fact that their advice should have been disposed of.) Neither spoke English particularly understandably (the accent of Kish residents is just plain odd), but I could make out that they meant for me to head toward the airline’s office in the airport for further information.

In the office, I found fellow passengers showing their tickets to a guy wearing the airline’s staff uniform. He indicated to them that they should wait until 5 p.m., which was when the flight would board. In my case, however, he indicated that I should get my reservation confirmed at the ticketing office next to the Farabi Hotel.

Fearing that I might be stranded on the island for another day, I hired a taxi (five Dirhams) back to the hotel, then visited the airline ticketing office. There, I found about twenty people involved in an altercation with the woman staffing the counter. It turned out that the next flight back to Dubai with any seats available was to leave the morning of the 29th! I quietly got my reservation confirmed for the 29th. (I suppose it’s still confirmed, somewhere, despite the fact that I’m already back in Dubai . . . I didn’t see any computer at the ticketing counter.)

I called home again, and my father said he’d enquire about the situation. Then I spoke to some other Indians who were standing around and chatting, and gleaned from them the fact that there’s another ‘hotel’ across the street providing beds for the night at Dh. 25 a night, while the Farabi cost Dh. 35 per night per bed. (Whole rooms were relatively much more expensive.) In the meantime, a travel agency next to the Kish Air office opened after lunch break. I enquired about the earliest flight to the U.A.E. (Dubai, Sharjah, Abu Dhabi, anything at all), but apparently, even flying from Kish to a bigger airport and then back to the U.A.E. would take a lot of time. In the end, the guy at the counter asked me to come back at 9:45 p.m. and he would see what he could do about putting me on a flight back home the next day. (I wonder if he waited for me.) The fare: 290 dirhams (what I paid for both ways + hotel facilities).

I called home again and was told that the Kish Air office here had registered surprise at being told about the situation. “He has a Dh. 295 ticket! This should not be happening!” Apparently they have fare slabs and the readiness with which they provide a confirmed seat to any given passenger depends on the fare having been paid. Armed with this information, I made my way back to the airport and confronted the guy who told me to get my reservation confirmed. The moment I mentioned the price, he asked me to rush to the check-in counter and came up after, the check-in operative apprised him of the issue, following which I was promptly issued a boarding pass. I called home again, breaking the good news, and I heard my father relax.

Upon returning to Dubai, I was somewhat unsurprised to find that, like Sharjah airport, Dubai airport also iris-scans all visitors. However, unlike Sharjah airport, their iris scanners aren’t frequently broken and even if they were, Dubai Police is known for its better judgement — the last time I flew Sharjah→Muscat→Sharjah, their iris scanner system failed and no one was allowed to proceed to immigration — a good two-and-a-half hours — before their iris scanners came up again; I doubt the same sort of treatment would be dealt out at Dubai airport.

Collecting my Dh. 1,500 deposit was much more of a struggle, though — there was a long line of people waiting to receive their deposit refunds. The line to make the deposits had been longer in the morning, but fortunately, my father had managed to snag a policeman patient who expedited my deposit and check-in at Dubai airport. There was no one around to similarly expedite my deposit recovery. It must have taken us a good half hour to get the money back, and this was after another clerk came in to handle deposit receipt.

Anyway, all’s well that ends well, though I don’t care to repeat this particular experience. Perhaps I’ll fly Kyiv Aircraft Repair Plant (not kidding about the name of that airline) again next time; even with the massive delay at the iris scanners, I was out at 4:30 p.m., while with Kish Air, I only managed to leave around 7:15 p.m.

Incidentally, my ssh write-up is part of the current Linux.Ars draft. Check it out.

January 25, 2004

A paucity of ideas

Filed under: Uncategorized — Tags: , , , , — amit @ 6:29 pm

Chances are, if you’re reading this, you’re involved somehow with #linux and/or Linux.Ars. Well, as it turns out, I won’t have much time at all Monday or Tuesday night to be able to research and write a decent TTT, so I’m calling for suggestions for a topic. The sooner you can give me a decent suggestion, the more likely it is that I’ll be able to finish the write-up in time for this week’s Linux.Ars.

Incidentally, I may not be going to Muscat after all. It seems the airline has some issue with my not holding an Oman visa, so I might fly across the Persian Gulf to Kish Island (a part of the Islamic Republic of Iran) instead. That schedule will require me to depart around 9 a.m. GST from Dubai airport and arrive again around 6 or 7 p.m. GST. And I have to be in bed by about 12 a.m. GST so I can make it to work on time on Wednesday. (This should explain why I have no time on Tuesday.)

So get busy coming up with suggestions. ;p

PS: GST is UTC+0400 and nine hours ahead of EST.

Update: I am going via Kish, after all.

Thanks, Jorge, for inviting me to Orkut.

And I just realized I’ve been a member of the Ars Technica discussion forums for four years now. That’s scary.

An approximation of the ideal

Filed under: Uncategorized — Tags: , , , , — amit @ 1:20 am

So I managed to get dmix working with ALSA. I finally have semi-transparent audio mixing — for most ALSA applications, anyway. (Stuff like mplayer that tries to do retarded stuff like detecting the first sound card and then outputting to it directly won’t use dmix, since it bypasses my .asoundrc altogether. Fortunately, aside from things like IM clients, which I rarely use, it isn’t such a big loss to lose audio mixing while watching a movie. Unfortunately, while mplayer is outputting audio, other stuff will be able to open the device, then block on attempting audio output, which isn’t so cool. I’ll find a workaround eventually.) Even some OSS stuff works via aoss and the libaoss.so.0 preloadable wrapper library.

I couldn’t get Flash working via Mozilla, though, and I’m sure there are lots of OSS apps that’ll misbehave. It sure beats having to wrangle with esddsp/artsdsp/audiooss, though, and as newer apps build in proper support for ALSA, things can only get better.

Maybe someday distros will determine whether the ALSA driver chosen for the detected device can do hardware mixing, and if it can’t, they’ll install and set up dmix by default. That’ll probably be as close to the completely transparent audio mixing that Windows does, as it gets.

Happily, my sister’s coming on Feb 4, so I might be able to see RotK sometime two weeks from now.

I go to Muscat on Tuesday for a visa change. It’s a bit silly, really — the government won’t let me get a residence visa for the place without a sponsoring employer (despite the fact that I was born here), and they’ll obstruct my ability to easily get a new visitor’s visa through conventional channels so I can stay with my parents, but they’ll let me fly out of the country and fly back in to hop to a new visitor’s visa (60 days). A sane place would likely give me either citizenship or permanent residence rights, but this place won’t even let me do an extended visit.

I need to get out of here. Someone in a civilized place, please give me a job so I can get myself a life.

January 24, 2004

Wow, that flew by altogether too quickly.

Filed under: Uncategorized — Tags: , , , , — amit @ 1:03 am

So my weekend is gone, and I have to go to work in the morning.

This wouldn’t bother me if the work involved wasn’t so monotonous.

In the meantime, I’ve been to another LUG meeting in the hopes of snagging myself a set of Fedora Core 1 CDs. I sat through rabid anti-MS Linux zealotry and various presentations that could fall under the categories ‘boring’, ‘inaccurate and incompetently done’ and ‘esoteric with a poor demo’ (though the last one was a bit more interesting than the others, since it covered LTSP, including how network booting occurs. I participated actively, since I knew a thing or two about it). Of course, given the general low level of competence of IT staff in this region, I came off looking like a minor celebrity. I’m not sure if that’s a good or bad thing. (Of course, they ran out of CDs. Maybe later.)

I never did get started on that Sawfish feature. Oh well.

Linux.Ars and the article came out. Unfortunately, the comments to the former were rather underwhelming — arguing about Linux’s ease-of-use instead of discussing Red Carpet/Open Carpet or my section, syslog. I submitted a story on /. about the Robert Love article. Apparently most of it was way over the Slashdolts’ heads, so the comments for that story were mostly a part of a gigantic GNOME vs. KDE flamewar, since the only part they seemed to understand was that Project Utopia was slated to be GNOME-centric.

So my sister probably won’t return until at least the second week of February. I sure hope Return of the King is still playing then. :(

Amir’s hardware still hasn’t showed up, and I’m really craving faster hardware right now. :/ If it ever shows up, I’m going to get an ATX case (all I have here are Baby AT chassis) and a cheap PCI linmodem (probably some ESS job). I’m hoping it integrates video and audio (probably does, being an nForce board). If not, I guess I’ll still stick with the 1995 Cirrus Logic GD5430 I’m using now and a (possibly damaged) Fortémedia card I pulled out of a system it was preventing from POSTing. (*sob*) OK, that’s enough chicken-counting-before-hatching.

Oh well, I’ll wait.

I should be getting to bed soon. It’s past one a.m. and I need to be up at eight.

January 22, 2004

Weekends are Underrated

Filed under: Uncategorized — Tags: , , , , — amit @ 11:41 am

So it’s the end of the week here. (In this place, Friday is the weekend, and I work six days a week.) I’m so looking forward to hightailing the heck out of here come 5:30 pm.

They finally fixed the fluorescent tube. Now that it isn’t flickering any more, my eyes aren’t being fatigued nearly as severely as before. The work still sucks, though, and now it seems it’s going to get even suckier.

In the meanwhile, Wednesday came and went, and no sign of Linux.Ars. It seems that RML’s interview was so well-liked by the powers-that-be that it might be split out into its own article. Anyway, I just worked on adding background information, a decent introduction and footnotes to the RML interview in the Linux.Ars draft. We’ll see how things work themselves out.

I had the idea to write a sort of tab-completing window selection feature for Sawfish, where you hit a certain key, and a window appears where you can type and tab-complete the title of the window you want (and multiple tabs would cycle through completions), and Sawfish would raise the window selected so far. Hitting Enter would make the selection box disappear and give the selected window input focus. It would certainly help me wade through the jangled mess of windows on my desktop a lot more easily, especially in the absence of a permanent tasklist. (I don’t have a panel on my desktop, and my only available tasklist is in the Sawfish main menu.)

Anyway, back to work. I’m really looking forward to going home for lunch.

Update: Figures. They split the RML interview off the Linux.Ars draft. (Not linking it up, since I’m not sure about Ars’ policy on making drafts publicly available.)

Update 2: This figures, too. Moments after my post, the final article went up. Except the footnotes are all messed up — instead of being all on the same page, they were all pushed to page three. Time to make a post.

January 20, 2004

Wishing for a quick end

Filed under: Uncategorized — Tags: , , , , — amit @ 5:17 am

(No, I’m not contemplating suicide. :p)

Work sucks. :( I’m being totally wasted like I predicted. I’m not interested in the subject of the document I’m OCRing, the writing is dreary and not particularly easy to read, the expectations are unfairly rising, the workplace isn’t particularly pleasant (not least due to an annoying noisily flickering fluorescent tube lamp), and the work is tiresome enough that I’ve caught myself about to nod off.

Anyway, so the syslog writeup is now in CVS. Take a look and leave comments. Also, comments on topics to write about are very welcome. (Actually, any comment is very welcome, since I seem to draw so few of them. :p)

I’ve been fighting with 2.6.1 patches, lately, especially trying to edge Nick Piggin’s scheduler fixes into stock 2.6.1. (Stock because Software Suspend 2 is valuable to me.) It isn’t easy, since it seems there have been lots of scheduler changes in the -mm tree.

Oh well, it doesn’t matter that much, anyway. The ALSA in 2.6.1 is a major CPU hog in comparison with OSS in 2.4.24. Whereas playing an mp3 in 2.4.24 takes up about 5-10% CPU time, in 2.6.1 it takes a whopping 25-50%. And I can’t use OSS in 2.6.1, either, since I get oopsen galore. So I probably won’t be using 2.6 on a regular basis until I get beefier hardware capable of running ALSA decently. That and the major problems with the 2.6.1 scheduler (namely lots of jerkiness and unpredictability, and especially the fact that static priorities aren’t respected very much in Con Kolivas’ interactivity work) are what are keeping me from going to 2.6.1 — I’ve dealt with much of the remaining 2.6 braindamage relating to things like the revamped plug-and-play support (due to which ISA PnP devices that aren’t explicitly known to the kernel — with their ISA IDs hard-coded — won’t be recognized, and 2.6 devfs won’t automatically load drivers, and modprobe seems not to respect options specified in /etc/modules.conf, and so on).

As far as I’m concerned, 2.6 is one big regression from 2.4. Sure, you’ve got nifty baubles like ATAPI CD burning (I don’t have a CD writer in my box) and an O(1) kernel-preemptive scheduler with interactivity boosts (I don’t have enough processes to bother about constant-time scheduling, got the preempt patches backported to 2.4 so I have the lion’s share of the responsiveness of 2.6, and I hate the interactivity boosts and silly things like the anticipatory scheduler whose assumptions simply don’t work on my box, etc.). I can do without what’s new in 2.6 — it needs a lot of time to mature.

I think my early guess that early 2.6 wouldn’t be much better than early 2.4 isn’t too far off the mark, judging from LKML traffic. Oh well. I’m sure Andrew Morton will do a decent job of getting 2.6 actually workable after Linus gets a few alpha-quality releases in.

I’m off to bed.

January 18, 2004

A Dabble in Civil Engineering

Filed under: Uncategorized — Tags: , , , — amit @ 7:44 pm

So I started my new project today — OCRing in and adapting a 500-page dead-tree procedure manual to fit a client’s needs. Throughput is about 25 pages a day right now.

Very very aggravating, in a word. This job really needs a qualified civil engineer familiar with the company’s methods and projects. Instead, I’m stuck consulting a person who doesn’t really seem to know much about the company’s methods. I just want to get it over with, get my check and get on with life.

Of course, all of this will be moot if I can get a proper, legitimate full-time job with work that’s more interesting/challenging/demanding than this garbage. Anyone willing to assist? ;p

At least these guys are legit insofar as their software licenses are all paid for and in order. It isn’t a fly-by-night operation. They even have IT staff that’s competent enough to set up an internal network with a HTTP proxy (but no NAPT, so no IRC from work for me, though of course, I shouldn’t be IRCing from work anyway. ;p)

Time to polish up this syslog writeup. At least it’s more interesting than dealing with load lifting operational procedures.

Older Posts »

Blog at WordPress.com.