Archive for the 'Eureka!' Category

libpam-mount automounts SMB shares at login, just like Windows

Monday, October 8th, 2007

Now my Ubuntu workstation, part-way upgraded to the 7.10 “Gutsy Gibbon” release, works almost as elegantly as my Windows machines have worked forever. My network music store now auto-mounts into my home directory when I login. Finally. I’ve been beating away at this, on and off, for bloody years. I’m just not a great sysadmin, I guess!

Method follows.

(more…)

Experimenting With Assistive Technology

Saturday, March 4th, 2006

Liberta asked if I could devise some experiment to test whether I require assistive technology to work at my best. Despite the obvious difficulties with objectivity, I believe I have devised an adequate design to test the theory.

(more…)

How To Store A Plastic Bag

Wednesday, February 8th, 2006

Like the typical ones from supermarkets. Maybe works for other bag-like structures, I dunno.

  1. Empty the bag
  2. Flatten it
  3. Fold it up lengthwise into a single strip
  4. Twist it up tight into a string
  5. Bring the two ends together
  6. Twist it up tight again
  7. Bring the two ends together
  8. Twist it up tight again
  9. Thread the loose end through the loop
  10. Tighten gently

Voila! A stable, knotted plastic bag, albeit at a fair amount of time and effort! The reward is that unfolding is easy - it practically springs apart itself when untied.

I encourage you to try it, as the structure formed is oddly familiar, and the saving in storage space considerable.

A picture tells a thousand words. (more…)

~

Wednesday, January 25th, 2006

The may be operator. A syntax for expressing a conditional cause chain or known sequence of expressions likely to resolve to a single value. Akin to the SQL function COALESCE().

PHP example

Expression without may be operator:

if( !isset( $id ) )
   if( isset( $_COOKIE['id'] ) )
      $id = $_COOKIE['id'];
   else
      if( isset( $_POST['id'] ) )
         $id = $_POST['id'];
      else
         if( isset( $_GET['id'] ) )
            $id = $_GET['id'];
         else
            $id = -1;

(more…)

“I like blogs”

Friday, January 20th, 2006

Jax at her brilliant best. Wow. The definitive answer to the question “why blog?”

This is my 200th post, by the way.

Home?

Tuesday, January 10th, 2006

Does anyone who knows me think that a “Faculty of Arts, Computing, Engineering and Sciences” would be a bad place for me to live if I were intent on using my talents to do works of good? If so, please sound off. Hell, sound off anyway. It’s good for the soul.

Programmer’s Poser

Monday, January 2nd, 2006

What is the outcome of sorting a circular list?

Omnipotence, render order styles

Wednesday, December 14th, 2005

On omnipotence, could an omnipotent being create something over which it had no power?
(more…)