• Projects
  • Photos
  • Fiction
  • About
  • My desktop
  • Resumé
  • Contact
  • 10 Apr 2006

    Since I switched from Bloglines to a local install of reBlog (see the Lifehacker post by Mathowie), I've been using it to save links to stuff that I find interesting, but don't feel are quite important enough to post as individual things here. So I'll probably start doing something like what Khatt's been doing: occasional link dumps. Here's four things I've enjoyed lately from Make Magazine's great blog:

    • DIY reverse lens mount for macro photography - Cheap, effective, and DIY. Basically that's my photography mantra lately. And I've been interested in trying some macro photography, especially with spring quickly approaching.
    • Parking meter keychain - Invaluable for city dwellers with cars. It's got a timer built-in! Amazing!
    • How to make an upside down planter - Hm, I seem to already be shifting into a living-in-a-city mindset.
    • MAME + iMac - I'm considering doing something like this with M's grandpa's unclaimed first-generation iMac.
    Discuss (2)
    • cheap things
    • how-to
    • ideas
    • links
  • 28 Feb 2006

    A round-up of the pinhole camera links that I used (and others that I just found interesting) while building mine:

    • Pinhole Calculator, possibly invaluable for an experienced pinholer, but also a good reference for a newbie.
    • Pinhole Spy, the source of the original directions for the 110 camera. I modified the shutter and had to slightly enlarge the entire thing.
    • Estimating exposure for those without a light meter.
    • A garbage can pinhole camera, the biggest example I've seen.
    • The SPAMera uses 120 film and is surprisingly advanced.
    • Dirkon, a notoriously complex paper pinhole camera.
    • Matchbox pinhole, the directions that inspired my project.
    • Chris' photos taken with a matchbox pinhole camera.
    Discuss
    • how-to
    • photos
  • 21 Oct 2005

    Red Hat Enterprise Linux has ridiculously old versions of packages — especially those that are intended for a desktop audience. The GIMP 1.2.3 is so old that it's hardly worth using, so yesterday I spent an hour getting the latest version (2.2.8) working. There were a lot of steps involved because almost all of the prerequisites were a bunch of versions behind, too. So here's what I had to do to get Gimp installed and working on RHEL3.

    1. You'll need some Red Hat packages installed. XFree86-devel, libart, and libart-devel are necessary, and you'll probably want some image libraries, too. I installed libjpeg, libpng, and libtiff, along with their respective -devel packages.
    2. Set environment variables PATH should include /install/dir/bin, LD_LIBRARY_PATH should include /install/dir/lib, and PKG_CONFIG_PATH should include both /install/dir/lib/pkgconfig and /usr/lib/pkgconfig. Don't use /usr or /usr/local as your install dir. Who knows how these updated libraries could affect things if they clobber the older versions. I installed in /opt/gimp.
    3. Get the sources for pkg-config, glib, fontconfig, freetype2, ATK, cairo, pango, GTK, Gimp. Links are located on the GIMP from Source page, except for cairo which is available from cairographics.org. I got the most recent version of all of these libraries except for freetype2. Version 2.1.10 will cause some problems that I haven't resolved, so I used 2.1.7.
    4. Unpack all of the sources, and compile them in this order: pkg-config, glib, fontconfig, freetype2, ATK, cairo, pango, GTK, Gimp. (This was the hard part, figuring out the right order.) For each package, just add the argument "--prefix=/install/dir" to configure. Then make and make install. No other flags are necessary.
    5. Gimp will be in /opt/gimp/bin/gimp. Delete the source files.
    Discuss (2)
    • how-to
    • linux
  • 5 May 2005

    Yesterday, I was surfing through the "24" tag on del.icio.us when I found a site that had the ring that CTU uses in several formats. After I remembered that I have the exact same phone at work, I decided to see if I could get this ring on my desk phone.
    Read more...

    Discuss (3)
    • 24
    • how-to
    • work
  • 7 Apr 2005

    Once a process in Linux is running for more than 24 hours, it's impossible to get an exact measurement of its start time from ps. The best you can do it something like this:

    lingalls@foobar:~$ ps -o "user pid stime tty comm" -u lingalls
    USER PID STIME TT COMMAND
    lingalls 32237 Apr06 ? gconfd-2
    lingalls 11813 Apr06 ? gnome-session
    lingalls 11940 Apr06 ? utaudio
    lingalls 11950 Apr06 ? utslaunch
    lingalls 11951 Apr06 ? utmhscreen
    lingalls 11960 Apr06 ? utaction
    lingalls 11975 Apr06 ? ssh-agent
    lingalls 11979 Apr06 ? bonobo-activati

    Which is completely unhelpful. So I wrote a script to calculate the accurate starttime from information in the proc filesystem. Shared here for your conveniece:

    stime ()
    {
    if ( test \! -d /proc/$1 ); then
    echo "No process $1";
    return;
    fi;
    U="`awk '{print $1}' /proc/uptime | sed -e 's/\.//'`";
    N="`awk '{print $22}' /proc/$1/stat`";
    D="$(( (U-N)/100 ))";
    perl -e 'print scalar localtime(time - shift)."\n"' $D
    }

    Copy and paste that script into your bash or ksh session (or append it to your .bash_profile or .profile), and then run "stime PID".

    Discuss
    • how-to
    • linux
  • 28 Nov 2004

    How to eat sushi. You may wonder why this is really necessary, but you must remember that sushi eating (and the art of making it) goes back to the time of the samurai. The rituals are detailed and wonderful, and this howto makes me want to visit Japan. Bonus: Includes a section on fugu!

    Discuss
    • food
    • how-to
    • links
  • 11 Nov 2004

    RealPlayer is a steaming pile. I didn't want to install it on my computer unless I absolutely positively had to, but NPR archives are all in streaming Real audio format. So I set about trying to be able to play Real audio and video with some sort of spamware-, spyware- and uglyware-free solution. Here's how I did it:

    Real Alternative. This contains the codecs needed to decode the Real file formats. If you don't mind Media Player Classic, make sure you select it during the Real Alternative install, and you're done.

    If you prefer Winamp (like me), don't install MPC. Get Tara's Real Audio Plugin for Winamp. You'll need to close and restart Winamp for it to recognize the new plugin, and it should even prompt you to associate itself with the proper file types.

    Discuss (1)
    • how-to
    • software
  • 11 Nov 2004

    Oh My God It Burns, a humorous science experiement. Can a Brita filter turn vile cheap vodka into Ketel One™? This is the ideal science experiment. Repeatable, organized, funny, and most importantly the scienticians get drunk!

    Discuss
    • how-to
    • humor
    • links
  • 8 Nov 2004

    There are a lot of questions about this, but very few adequate answers available on Google. Solaris has a feature called "lofs" that allows you to mount some directory (say /bigvolume/foo) somewhere else (say /bar). The quick response is "duh, symlinks", but if you want /bar to be read-only, or noexec, or nosuid, or some other uber-secure setting, this allows you to do it. Also, since chroot() breaks symlinks that point outside the new root, this can be used to simplify setting up chroot jails.

    Since kernel 2.4, Linux has had support for mount binds (synonymous to Solaris' lofs), and here's how to do it.
    Read more...

    Discuss
    • how-to
    • linux

Comments and trackbacks are owned by their respective authors. Except where otherwise noted, all other content is licensed under an Attribution Creative Commons license by Logan Ingalls.

Validate: HTML, CSS