Yenya's World

Sat, 06 Feb 2010

iPhone

Tell me again why should anybody bother to buy iPhone, when Apple is actively hostile to the application developers, and the device cannot do Bluetooth, does not have audio tracks in a portable format, accessible as a mass storage, and the manufacturer does not want you to customize the device?

Section: /computers (RSS feed) | Permanent link | 3 writebacks

Fri, 05 Feb 2010

DHCP Relay

With our new WiFi access points, we run multiple SSIDs, each on its own VLAN. Unfortunately, we are observing an interesting problem: even though the DHCP server can see the WiFi client requesting the address and replies back, the reply sometimes does not reach the client. It vaguely depends on the number of clients on the particular WiFi AP. Today I think I have found what causes this problem.

In an unrelated event, our new 10GbE switches have arrived, and I have been configuring them. When browsing the manuals, I have noticed they have a feature called "DHCP relay", which causes DHCP requests to be magically switched to the primary VLAN of the switch, even when they are obtained from another VLAN. Well, one might think that almost nobody needs this obscure and unintuitive feature, so it is expected to be switched off by default.

Apparently the HP engineers do not share this point of view. Not only the DHCP relay is on by default on all newer ProCurve switches, but as a default setting, it is not mentioned in the "show config" command output, except when explicitly disabled. So nobody knows a new "feature" has been added, except when re-reading the manuals for every new ProCurve model.

I have found the DHCP relay feature being enabled even on other recently purchased switches. I have promptly disabled it, and we will see what happens with the above problem of missing DHCP replies.

Section: /computers (RSS feed) | Permanent link | 0 writebacks

Thu, 21 Jan 2010

Thesis Proposal

OK, I have managed to defend my Ph.D. thesis proposal and to pass the doctoral exam. Now I "only" have to write the Ph.D. thesis itself as outlined in the proposal.

Section: /personal (RSS feed) | Permanent link | 5 writebacks

Wed, 20 Jan 2010

Wikipedia Warning

Warning: idling at Wikipedia can be dangerous, as it can destroy your image of completely innocent things forever.

For example, that nice, melodic, and gentle Paul McCartney's song "Mull of Kintyre" will never be the same again for me (click on your own responsibility).

Section: /world (RSS feed) | Permanent link | 0 writebacks

Tue, 19 Jan 2010

Digital Slot Cars

We have got a new slot cars set for Christmas. I had one when I was a child, and I quite liked to play with it, build and tune my own cars, etc. slot cars Several years later, we had an 8-track slot cars simulator in our SGI computer lab. Well, today's state-of-the-art slot cars systems are completely different beasts to what I used to know.

The system we have is SCX Digital 1:32. I have bought an F-1 set with one additional car (guess which one :-) and some track parts. The features and my experience so far include:

There are only two drawbacks: firstly, it is probably the most expensive slot cars system available, and then the F-1 cars are very brittle. Especially the mirrors of Ferrari are prone to snapping off.

Section: /personal (RSS feed) | Permanent link | 2 writebacks

Fri, 20 Nov 2009

Fedora 12

I have been using Fedora 12 on my laptop for a week now, and on my primary workstation for three days. So far I have walked through Bugzilla and checked that most of my bugs are still present in F12. But apart from that, there has not been any unpleasant surprise so far. The new KMS code and X server for Radeon cards work as expected, so I am looking forward to install F12 also to my dual-seat workstation at home. So far it is OK. Well, except ...

... except this bug (covered also in fedora-devel and also at Slashdot). I wonder who could seriously have thought this feature would be an improvement? Probably if the Anaconda can ask whether this is a single-user workstation, and only then enable it, it would be bearable. But having it on by default is simply insane. The fact that to disable it, the 6+ lines file in an undocumented format in four-levels deep directory under /var/lib should be created, just underlines the gross insanity of the whole thing.

I have been a long-term supporter of using Fedora also for other purposes than a single-user workstation, but apparently it seems that some Fedora maintainers either do not care (see my post about GDM), or - what is worse - some are actively trying to undermine the other usages of Fedora.

We have been considering returning Fedora to some of our computer labs (to solve some problems with that African-Debian distro), but with this problem I am not sure whether this is a good thing to do anymore.

Update - Fri, 20 Nov 2009: Resolved after all

From fedora-devel:

[...] Executive summary
We'll make an update to the F12 PackageKit, so that the root password is required to install packages.

Glad to see this being resolved relatively fast. This was the most voted-for bug in the Fedora bugzilla (by a factor of almost 10).

Section: /computers (RSS feed) | Permanent link | 5 writebacks

Thu, 19 Nov 2009

Database Woes

Using the SQL database for keeping one's data gives an excellent environment, maintaining the data integrity, providing the transactional behaviour, providing the remote access to the data, and so on. Even the locking properties can be something which one can get used to. That is, in the ideal world.

However, our world is not ideal. The huge problem of SQL databases is their implementation. For example, after rewriting the IS MU mailserver back-end to do a parallel delivery, it started to generate big load spikes on the Oracle DB server. The problem turned out to be the cache of SQL queries: when several processes tried to do exactly the same query in parallel, the DB server locked up on the access to the SQL cache, and a simple "select row by its primary key" query took as long as three minutes to handle.

Another example is the Oracle problem with foreign key locking which I have recently ran into: I have a long transactions running in parallel, modifying various rows of a single table (but each session touches a different set of rows, so the access should be deadlock-free). After creating another table with foreign key to the original one, I started to get "deadlock detected" errors in DELETE commands. Apparently Oracle locks not only the appropriate row in the foreign-key table, but the whole block in this table. So I have been getting the deadlocks when trying to delete the row with primary key N, where another session added a row to the table with foreign key referencing the primary key N+1 or N-1. Replacing DELETE with UPDATE ... SET status='deleted' and deleting afterwards from the single session fixed the problem for me.

The SQL databases are pile of rubbish, which can always surprise you not only with their by-definition properties, but often also with their implementation-dependent behaviour. Oracle is an excellent example of this.

Section: /computers (RSS feed) | Permanent link | 5 writebacks

Wed, 18 Nov 2009

The GDM Fiasco

A short trip to the history: for GNOME 2.22 (two years ago, in the Fedora 9 timeframe) someone decided that it would be nice to completely rewrite the GNOME display manager. So far so good, but they have decided to include this partially rewritten piece of crap without many important features (a display manager without XDMCP, WTF?) to the official GNOME and thus Fedora releases.

Fast forward to the present time: basically, for two years, GDM has not been usable for anything beyond a single-user desktop (I use xdm on my home dual-seat desktop, and we have replaced Fedora altogether in some of our computer labs partly because of GDM).

Apparently, somebody has started to work on solving at least some of the problems after all. But guess what? Instead of backing off quickly (say, before the Fedora 10 has been released), Fedora maintainers has ignored the problem despite many polite and even some profane requests to provide an upgrade to the latest working version (i.e. the Fedora 8 one). And now the answer is "wait for Fedora 13 (another half a year), we are probably going to fix it there". Without any hint of being sorry for forcing an utterly broken package to the users for two years and counting.

Section: /computers/desktops (RSS feed) | Permanent link | 4 writebacks

Tue, 17 Nov 2009

Footwear Waterproofing

This year's Tmou with its almost start-to-finish rain has made me to think again about my approach to waterproofing my boots. I have about eight years old Hanwag Alaska Nubuk leather boots with Gore-Tex membrane (which is definitely not functional anymore after these years). So the leather is now the only barrier between the outer wet conditions and the inside of the boot.

In the last few years, I have used wax-based water proofing (e.g. Granger's G-WAX). It worked, and the boots remained water resistant for several times of usage. However, I often had my feet wet from the inside, as I tend to sweat a lot.

Recently I have bought Granger's G-MAX Leather conditioner, which is not as "thick" as a wax, but apparently the boot is still water-resistant. I have however had no chance to test it in rainy weather until this year's Tmou. Expecting heavy rain during the competition, I have applied several layers of the leather conditioner on my Alaskas.

I was rather surprised that this time not only the boots remained water resistant, but I also had not my feet wet from the inside. Probably the wax, unlike the leather conditioner, keeps the boot air-tight, causing the feet getting wet because of sweating. So far so good, but there was another rather unpleasant surprise after Tmou: when my boots dried, the most exposed parts of the leather (namely foreparts) were completely dry as if it were just to crack.

Is it expected? Do I need to waterproof my boots again only after a day in a rainy weather? How do you waterproof your outdoor boots, my dear lazyweb?

Section: /personal (RSS feed) | Permanent link | 1 writebacks

Tue, 20 Oct 2009

Framework?

When teaching, the questions from the audience provide an important feedback to me - a notion of whether I was successful in passing the information to the audience, and what to improve or explain in a different way. There are, however, rare occasions when the question just makes me think "WTF?".

Yesterday I tried to explain the setjmp(3)/longjmp(3) semantics. These two functions are not straightforward, and it probably takes a while to wrap one's mind around them. But after that, the usage is quite simple: the target of the non-local jump is firstly initialized using setjmp(3), and later the jump itself can be made using longjmp(3). I have written the following code snipplet to demonstrate it:

setjmp/longjmp example

During the lecture when I asked whether there were any questions, the question was: "But is there any framework for those functions?". I was totally puzzled: I probably don't know all the meanings of the English word "framework", but I think it means something like a higher-level abstraction or environment to wrap the lower-level things in order to make them simpler to use (often at a cost of freedom of how to do things). But can this fancy goto be made even simpler than it is? It would still be necessary to declare the label somehow (setjmp(3)) and then jump to it (longjmp(3)). WTF? What framework?

Section: /computers (RSS feed) | Permanent link | 5 writebacks

Fri, 16 Oct 2009

Terminal Font

Today I have read an announcement of the Anonymous Pro font, which should be optimized for text terminals and for the programming environment. As this clearly matches my use case, I have decided to try it.

terminal font

I was soooo disappointed. I may be too used to the font I use (Lucida Typewriter, the upper part of the image), but I think Anonymous Pro is clearly worse.

Which terminal font do you use? And how does it compare to Anonymous Pro or some other fonts?

Section: /computers (RSS feed) | Permanent link | 12 writebacks

Mon, 14 Sep 2009

Svíčky 2009

As in previous years, also this year I took part in an outdoor puzzle solving competition - Svíčky. This year the weather was better than the last year.

You can read the description of problems, their solutions, and other detailed data at the competition pages, and you can read the report from our team in Honza's blog.

At last, we have won the game, even with a time-machine-like step caused by a misplacement of the papers with the last problem. It is nice to be a winner after so many years :-)

Section: /personal (RSS feed) | Permanent link | 1 writebacks

Fri, 26 Jun 2009

XXXIV EurOpen.CZ

A month ago (wow, I am really slow to update this blog ...) I went to the 34th EurOpen.CZ conference. I did a presentation about Git (paper, slides).

Sunset at Praděd

The first day the weather was pretty good and we even went to Praděd summit to take a few snapshots of the setting sun. The next day was rainy so I set up my dance pads and we had a lot of fun playing DDR in the evening. One of the most interesting things there was Microsoft Surface, which is in fact an overweight PDA (weighs about 90 kg). It is pretty addictive, especially for children. Microsoft can really make a pretty cool hardware. However, it is in some way a bit, well, Microsoftish :-). For example, they apparently invented their own 2D barcodes, ignoring well established standards like QR code or Semacode. Also, apparently the external keyboard and mouse is required to boot the Surface.

There were many interesting presentations: Tomáš Košnar talked about logging the network traffic, Ondřej Surý had a brief intro to DNSSEC, Václav Pergl from Kerio Technologies talked about agile development, etc. Anyway, AbcLinuxu.cz did a report from the conference, and also (oh, horror!) an interview with me, mostly focused on Git.

Section: /computers (RSS feed) | Permanent link | 3 writebacks

Wed, 17 Jun 2009

How Do I Install ... ?

The funniest page of the day is the page with installation instructions for OpenAIS. But seriously, do you have experience with those clustering suites?

My task is pretty simple: use a clustered LVM from two hosts. I have been using Heartbeat for my HA clusters (and IPVS for load balancing) for ages, but apparently Heartbeat-based cluster cannot be easily used for CLVM.

Section: /computers (RSS feed) | Permanent link | 0 writebacks

Wed, 10 Jun 2009

Fedora 11

OK, after another half a year we now have a new Fedora. I have installed it on my laptop, and found no obvious bugs. It "just works". I haven't got time to read the Release Notes yet, but so far F11 looks good. The minor issues are:

Of course, I now have tens of mails from the bugzilla bot forewarning about closing bugs filled against F9, which I need to test on F11. I guess many of the gdm >2.20 regressions are still not fixed, and returning 2.20 to the Fedora (at least as an optional package) is long overdue.

Section: /computers (RSS feed) | Permanent link | 0 writebacks

About:

Yenya's World: Linux and beyond - Yenya's blog.

Links:

RSS feed

Jan "Yenya" Kasprzak

The main page of this blog

Categories:

Archive:

Blog roll:

alphabetically :-)