Skip to content

Nuudelisoppa

  • Archives
  • aptmethod error when doing security updates with reprepro update

    Got this error message when trying to do a reprepro update:

    aptmethod error receiving 'http://security.debian.org/debian-security/dists/lenny/updates/main/debian-installer/binary-i386/Packages.gz': '404 Not Found'

    This was caused by a missing UDebComponents: none in the security update source definition, in conf/updates. Quite obvious really, but got me scratching my head for a while.

    2009/08/21
  • The command to print the release codename

    jani@gojira:~$ lsb_release -sc
    lenny

    2009/08/21
  • GnuPG-Agent (gpg-agent) not caching passphrase

    A paraphrased thread on the Enigmail Forum lead to the solution for me: in system>preferences>encryption and keyrings the ‘PGP passphrases’ tab had the ‘Ask me before using a cached passphrase’ option enabled. After disabling it gpg-agent no longer asked the passphrase repeatedly.

    2009/08/18
  • apt-cacher-import.pl fails to “rename” (move) .deb files during import

    Importing: apache2-mpm-worker_2.2.9-7ubuntu3_i386.deb
    Failed to rename apache2-mpm-worker_2.2.9-7ubuntu3_i386.deb. Try read-only (-r) or symlink (-s) options. at /usr/share/apt-cacher/apt-cacher-import.pl line 154.

    (I faked this by copying and pasting from ABC Science Forum, because I didn’t save any of the ones I actually saw.)

    For me the problem with apt-cacher-import.pl was that apparently Perl’s rename function can’t move files across devices, and that’s how my imports and cache laid on the disk. I solved this by using the -s parameter, which only makes symlinks. Another option would be to manually move the files onto the same device before importing. I suppose that’s why the /var/cache/apt-cacher/import directory is there.

    2009/08/15
  • Retaining Epiphany’s overloaded address bar while using Privoxy

    As per the comment in Privoxy’s ticket #2530592, I’ve set up a Privoxy rule to interpret dot-less domains as search terms. This emulates the search function built into Ephy, which breaks with Privoxy’s DNS error messages. In /etc/privoxy/user.action I now have:

    # Redirect dotless hostnames as search parameters to Scroogle
    
    {+redirect{s@^http://([^\\.]*)/$@https://ssl.scroogle.org/cgi-bin/nbbw.cgi?Gw=$1@}}
    2009/08/15
  • How to separate every other comment within a wp_list_comments callback function

    Just upgraded one of my themes (the only one I’m still using that I can truly say I’ve created myself) to finally utilize WordPress 2.7’s new comment listing function. This made separating actual comments from pings a breeze compared to what it used to be.

    The only slight problem was with porting the old separation of every other comment with a different class; since I needed to use a custom callback to retain the old look, I couldn’t utilize the automated classification done by wp_list_comments(). In the end all it took was these three lines added to my callback function:

    global $comment_alt;
    $oddcomment = $comment_alt % 2 ? 'alt' : '';
    $comment_alt++;

    With these in place I could now bring in the <li> tag from the old template without any further tweaking:

    <li id="comment-<?php comment_ID() ?>"
    class="<?php echo $oddcomment?>">
    2009/05/20
  • Dreaming of an easier free software translation process

    Translating free software is way harder than it should be, IMO. I wish all the strings were in a wiki, so that I could just go and fix things such as typos as I pick them up. Everything would be live and coordinated (between upstream and distros), without needing to find out which project exactly is it that I need to fix the issue in, let alone getting acquainted with whatever system has been set up for for accepting the translations in this particular project. I think it’s a fairly straightforward technical problem just crying out for a solution to be implemented. Although, as usual, not one that I personally would have the competence to produce. (And as such, I could be dead wrong about the straightforwardness of it, even.)

    2009/05/20
  • One down, one to go

    One of my long-time peeves, Rhythmbox’s redundant notification icon bug was closed just last weekend, yay! Here’s to hoping that the last application still mis-using my notification area, Empathy, will see its corresponding issue also closed soon.

    2009/05/18
  • Uutinen: Ubuntu 9.04 (Jaunty Jackalope) julkaistu

    Ubuntu 9.04, koodinimeltään Jaunty Jackalope, on julkaistu, ja on nyt ladattavissa Ubuntu Suomen sivuilta. Tietoa uusista ominaisuuksista sekä muita lisätietoja tuoreesta jakeluversiosta löytyy esimerkiksi julkaisumuistiosta.

    Itse olen käyttänyt virtuaalikoneessa Jauntya jo sen varhaisista testijulkaisuista (Alpha) lähtien Intrepid Ibexin rinnalla. Omasta mielestäni Jauntyn paras ja tärkein uudistus on sen aiempaa huomattavasti nopeampi käynnistyminen. Ulkoasupuolella huomattavin uudistus lienee aiempaa tummasävyisempi kirjautumisruutu, joka miellyttää ainakin minun silmääni. Myös ilmoitusalueelta nousevat ponnahdusikkunat ovat nyt aiempaa siloitellumpia.

    Intelin piirisarjoilla varustettujen pikkukannettavien käyttäjät saattavat lukemani mukaan pettyä Jauntyn suorituskykyyn: ainakin Phoronixin mukaan uusi grafiikka-ajuri tekee Jauntysta lähes käyttökelvottoman pikkukannettavilla, mutta tätä en ole omakohtaisesti voinut varmistaa, koska minulla ei ole sellaista kannettavaa.

    Yksi konepellin alla tapahtuneista muutoksista, jotka voivat vaikuttaa myös käyttökokemukseen, on se, ettei Ctrl + Alt + Backspace -näppäinyhdistelmällä voi enää lähtökohtaisesti resetoida ikkunointiympäristöä. Mikäli niin haluaa tehdä, voi kuitenkin asentaa dontzap-paketin, minkä jälkeen näppäinyhdistelmän voi ottaa käyttöön komentoriviltä.

    Jatkossa tämän blogin merkinnät perustuvat Jaunty Jackalopen käyttöön ainakin seuraavan version (jonka koodinimi on Karmic Koala) julkaisuun saakka.

    2009/04/23
  • Fetch and sequentially store webcam images at intervals, v. 0.01

    #!/bin/bash
    if [ $# -lt 2  ] ; then
      echo foo
      exit 1
    fi
    
    if [ $1 -eq $1 2> /dev/null ]; then
      while true
      do
        wget "$2" -O `date +%s`.jpg
        sleep $1
      done
    else
      echo bar
      exit 1
    fi
    2009/04/13
←Previous Page
1 … 14 15 16 17 18 … 215
Next Page→

Nuudelisoppa

Good Noodles.

Twenty Twenty-Five

Designed with WordPress