Category: Uncategorized

  • Checking out Fedora again

    Tried out the fresh Fedora 14, as I usually do when they come out with a new release. Found out the weird feeling I have with it still hasn’t changed. It’s got a lot of polish, and yet some things just feel awkward and clunky in my hands. Granted, some of it is just due to my coming from the Debian world and Fedora doing things slightly differently, but still I have to question some of the quirks.

    For example, what does this mean:

    Screenshot from Fedora 14's installer: "Virhe käsiteltäessä laitetta"

    (It says, in Finnish, “Warning: Error processing drive [blah blah] This device may need to be reinitialized. REINITIALIZING WILL CAUSE ALL DATA TO BE LOST! This action may also be applied to all other disks needing reinitialization.”)

    I mean, sure, an experienced user like myself can figure out what it means, but honestly, what the hell?

    What I tried to accomplish immediately following installation was to have Guest Additions working in VirtualBox. In Ubuntu I go about it by installing the guest modules from the repositories. I couldn’t find such packages in Fedora’s repositories, so I resorted to using the Guest Additions disc image.

    This called for installing a build environment, which turned out to be more complicated than it sounds. However, the problems there were probably mostly of the kind where it helps if one is accustomed to the Fedora way of doing things. What I didn’t like was that

    1. Each time the package manager asked for superuser privileges, the prompt box was unfocused despite being on top. This is probably a bug and so blatant that I’d be surprised if it isn’t in Fedora’s tracker already. In fact, it was such a bother that I’m surprised it’s there in a released product.
    2. Granting the privileges causes a set of keys appear on the panel. I was dissatisfied with the privileges being dropped so quickly, so I figured I could adjust the time interval using the keys icon. But right-clicking it just caused it to disappear. And so did a left-click. Huh? If the purpose of the icon is to drop the privileges immediately, shouldn’t it represent, I don’t know, a lock rather than a set of keys?
  • Requesting a firmware with SDHC support for my card reader

    Just sent the following support request to ENlight:

    Hi,

    I have an Enlight “8 in 4” Bay Reader for memory cards. The packaging says that the firmware of the reader is upgradable (“Current Firmware Rev 1.1”). However, I was unable to locate any firmware downloads from your website’s download section. I was thinking of upgrading the firmware, because with the current firmware, the reader cannot access my SDHC memory card.

    Fingers crossed.

  • URL with trailing punctuation in email: a half-solution

    Pasting URLs into email messages has always made me somewhat uneasy, when the URL is right at the end of a sentence or right before a closing parenthesis: how do I know that the receiver’s email application knows to tell the puctuation apart from the URL? For example, let me enclose a URL (http://mummila.net/nuudelisoppa) here. Will the receiver’s browser take them to http://mummila.net/nuudelisoppa) instead of http://mummila.net/nuudelisoppa without the closing bracket?

    Sometimes I work around this by using extra whitespace between the last character of the URL and the closing bracket or other punctuation immediately following it like so: http://mummila.net/nuudelisoppa .

    But that looks just stupid. Also, the punctuation turns into an orphan all too easily.

    Well, I just realized that for some URLs there’s a trick I can use to work around the issue: instead of whitespace, use #. The hash in URLs is used as a fragment identifier, and if there’s no corresponding identifier in the document you’re referring to, the fallback is to just go to the document top — which is where you wanted to point to, anyway: http://mummila.net/nuudelisoppa/#.

    There are cases where this still doesn’t work, or works unlike intended.

    If your URL already has a fragment identifier (https://secure.wikimedia.org/wikipedia/en/wiki/Bracket#Parentheses_.28_.29), it’ll fail to point to your intended target when you add another #identifier to it (https://secure.wikimedia.org/wikipedia/en/wiki/Bracket#Parentheses_.28_.29#).

    Also, at least in theory it’s possible that there’s an identifier made up of a single punctuation character — say, an id="." — in the document you’re referring to, and you don’t intend to point to that identifier but to document top. Using # just before said punctuation then makes your link point to the fragment rather than document top.

  • Clear Comments theme for WordPress

    Clear Comments is a modified version of the Clear theme for WordPress. The theme is customized for use in a blog I have for gathering and preserving all the comments I’ve left on sites outside my own. The theme employs a custom field for the comment permalink and a custom taxonomy for the title of the site the comment is left on.

    The theme is licensed under the GNU GPL.

    Download: clear-comments.zip (33,1 kB)

  • nihil Theme for WordPress

    nihil theme applied to WordPress nihil is a WordPress theme which began as a brach of mariginari, but with entirely different focus. The theme is accompanied by a set of plugins, most of which haven’t changed much from their mariginari roots. (Note that the versioning of the plugins doesn’t relate to mariginari versioning, i.e. version 0 here is still newer than versions >9000 of corresponding mariginari plugins.)

    The code is released under Creative Commons’ CC0 1.0 Universal license. Beware: this is always a work in progress, so it might break and/or burn your house down.

    Download: nihil-2010-05-20_10-00.zip (84 kB)
    Download: nihil-2010-04-15_09-15.zip (84 kB)

  • Full HD Noise

    Screenshot: hdnoise.mp4 playing in Totem In a re-iteration of my previous experiment with making noise, I’ve now generated 12 seconds of Full HD noise for your viewing pleasure. Note that the audio is quite loud (or at least appears as such), so adjust your system volume accordingly.

    Again I used ImageMagick to generate the frames and Audacity for the soundtrack, but instead of ppmtompeg I used ffmpeg for combining the pictures into a video, for better compression offered by modern codecs.

    First I cast this imagemagick spell:
    $ time for i in `seq -f %04.0f 1 300`; do convert -size 1920x1080 \
    xc: +noise Random -blur 1x1 -fx intensity -normalize -depth 8 ${i}.png; done

    Completing this step took about 20 minutes in my current setup (an Athlon II X2 250). (Note that for just 300 frames there one excess 0 worth of padding in the seq parameter, because I initially did a longer sequence of lower res frames. Four or more are needed if you go beyond 1000 frames.)

    Next I put the images together using ffmpeg. I compressed the video with x264:
    $ ffmpeg -y -i %04d.png -vcodec libx264 -b 1800k -r 30 test.mp4

    I then generated 12 seconds of white noise in Audacity, and exported it into a WAV file, which I then compressed using faac:
    $ faac -q 300 -o noise12.aac noise12.wav

    Finally I muxed the two together, again using ffmpeg:
    $ ffmpeg -i test.mp4 -vcodec copy -i noise12.aac -acodec copy hdnoise.mp4

  • Never enough

    jani@saegusa:Työpöytä$ mktemp .jpg
    mktemp: too few X's in template ”.jpg”
    jani@saegusa:Työpöytä$ mktemp X.jpg
    mktemp: too few X's in template ”X.jpg”
    jani@saegusa:Työpöytä$ man mktemp
    jani@saegusa:Työpöytä$ mktemp XXXXXXXXXX.jpg
    mktemp: too few X's in template ”XXXXXXXXXX.jpg”
    jani@saegusa:Työpöytä$ mktemp XXXXXXXXXXX.jpg
    mktemp: too few X's in template ”XXXXXXXXXXX.jpg”
    jani@saegusa:Työpöytä$ mktemp XXXXXXXXXXXX.jpg
    mktemp: too few X's in template ”XXXXXXXXXXXX.jpg”
    jani@saegusa:Työpöytä$ mktemp XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.jpg
    mktemp: too few X's in template ”XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.jpg”
    jani@saegusa:Työpöytä$ mktemp XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.jpg
    mktemp: too few X's in template ”XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.jpg”
  • Powered by WordPress 3.0 (alpha)

    Edellinen Hello world! merkkasi siirtymistä WordPress MU:hun, ja tämä merkintä puolestaan merkkaa siirtymistä WordPress 3.0:aan, joka tätä kirjoittaessani on vielä alpha-vaiheessa.

  • Hello world!

    Welcome to mummila. This is your first post. Edit or delete it, then start blogging!