Rocking the blogosphere

Archive for September, 2007

Heelys has really focused marketing

Hmmm, this seems like an unnecessarily limited target market:

“Heelys, Inc. engages in the design, marketing, and distribution of action sports-inspired products for 14 year-old boys and girls. It offers its products under the HEELYS brand name.”

(from the business summary at http://finance.yahoo.com/q?s=HLYS)

Popularity: 4% [?]

My favorite monad tutorial

Been reading up a bit lately on Haskell and observing that there are a ton of monad tutorials out there. I’ve looked at a few and I have to say that my current favorite is:

A Neighborhood of Infinity: You Could Have Invented Monads! 

mostly I think because it’s interactive and guides you to discover the concept instead of spoon-feeding it to you. I recommend firing up GHC and trying the exercises he gives you.

Popularity: 8% [?]

Fixing an unbootable VMware VM after upgrading your Linux kernel

It seem that some of the newer Linux kernel versions (2.6.21 and 2.6.22) don’t like the LSI SCSI adapter emulation in some of VMware’s products. I myself ran into this when I upgraded the kernel on a Gentoo VM (VMware ESX Server 3.0.1) to 2.6.22. After rebooting, the system could not find the root partition.

It took a bit of searching to figure out what the problem was, but the solution was simple. Change the VM to use the BusLogic SCSI adapter instead of the LSI.

Some references:

Popularity: 18% [?]

Photos of installing Gentoo in a VMware ESX 3 VM

Installing gentoo-livecd-i686-installer-2007.0.iso into a VM on a VMware ESX Server 3.0.1 host.

Flickr photoset

Popularity: 18% [?]

123-menu.el

Even though I’ve been using Emacs for years, I still have trouble
remembering a lot of the key combinations for commands that I
don’t use all the time (e.g.: killing and yanking rectangles,
bookmarks, etc.). I think Lotus 123 for DOS had a remarkably cool
user interface in that the menus let you explore around and find
things if you were a newbie, but once you knew the key sequences,
you could become very fast with it. This is my attempt at doing
something like the Lotus 123 menu system for Emacs.

123-menu.el

The above elisp defines only the primitives for creating menus and not the menus themselves. The nice thing about this is that the user is free to define whatever menus and keybindings are most convenient for them.

Here’s an example of how I use it in my .emacs:


(require '123-menu)

(123-menu-defmenu marc-menu-root
  ("a" "[A]bbrev”    ‘123-menu-display-menu-marc-menu-abbrev)
  (”b” “[B]uffer”    ‘123-menu-display-menu-marc-menu-buffer)
  (”c” “[C]ode”      ‘123-menu-display-menu-marc-menu-code)
  (”e” “[E]val”      ‘123-menu-display-menu-marc-menu-eval)
  (”f” “[F]ile”      ‘123-menu-display-menu-marc-menu-file)
  (”m” “[M]arks”     ‘123-menu-display-menu-marc-menu-marks)
  (”r” “[R]ect”      ‘123-menu-display-menu-marc-menu-rect)
  (”s” “[S]earch”    ‘123-menu-display-menu-marc-menu-search)
  (”v” “[V]ersion”   ‘123-menu-display-menu-marc-menu-version)
  (”w” “[W]indow”    ‘123-menu-display-menu-marc-menu-window))

(123-menu-defmenu marc-menu-abbrev
  (”g” “[G]lobal”              ‘add-global-abbrev)
  (”m” “[M]ode-specific”       ‘add-mode-abbrev)
  (”i” “[I]nverse”             ‘123-menu-display-menu-marc-menu-abbrev-inverse))

(123-menu-defmenu marc-menu-abbrev-inverse
  (”g” “[G]lobal”              ‘inverse-add-global-abbrev)
  (”m” “[M]ode-specific”       ‘inverse-add-mode-abbrev))

(123-menu-defmenu marc-menu-buffer
  (”k” “[K]ill”                ‘kill-buffer)
  (”l” “[L]ist”                ‘list-buffers)
  (”r” “[R]ename”              ‘rename-buffer))

(123-menu-defmenu marc-menu-code
  (”c” “[C]omment region”      ‘comment-region)
  (”u” “[U]ncomment region”    ‘uncomment-region))

(123-menu-defmenu marc-menu-eval
  (”b” “[B]uffer”              ‘eval-buffer)
  (”l” “[L]ast sexp”           ‘eval-last-sexp)
  (”r” “[R]egion”              ‘eval-region))

(123-menu-defmenu marc-menu-file
  (”d” “[D]ired”               ‘dired)
  (”f” “[F]ind”                ‘find-file)
  (”i” “[I]nsert”              ‘insert-file)
  (”s” “[S]ave”                ’save-buffer))

(123-menu-defmenu marc-menu-marks
  (”j” “[J]ump”                ‘bookmark-jump)
  (”s” “[S]et”                 ‘bookmark-set))

(123-menu-defmenu marc-menu-rect
  (”k” “[K]ill”                ‘kill-rectangle)
  (”y” “[Y]ank”                ‘yank-rectangle)
  (”o” “[O]pen”                ‘open-rectangle))

(123-menu-defmenu marc-menu-search
  (”i” “[I]ncremental”         ‘isearch-forward)
  (”o” “[O]ccur”               ‘occur))

(123-menu-defmenu marc-menu-version
  (”a” “[A]nnotate”            ‘vc-annotate)
  (”d” “[D]iff”                ‘vc-diff)
  (”l” “[L]og”                 ‘vc-print-log))

(123-menu-defmenu marc-menu-window
  (”1″ “[1]window”             ‘delete-other-windows)
  (”o” “[O]ther”               ‘other-window)
  (”v” “[V]ert split”          ’split-window-vertically)
  (”h” “[H]oriz split”         ’split-window-horizontally))

(define-key global-map “C-xm” ‘123-menu-display-menu-marc-menu-root)

If you use this, let me know what you think and if you have any suggestions for improvements.

Popularity: 12% [?]

Photos of installing Solaris 10 in a VMware ESX 3 VM

I haven’t worked with Solaris in years and I was curious to see how a recent version looks so I installed sol-10-u4-beta-bld7-x86-dvd.iso in a VMware ESX 3.0.1 VM.

Here are some photos.

Popularity: 9% [?]

Power usage tidbit

Was measuring a few devices around the house with my Kill-A-Watt and realized that my little Pentium 4 PC is using more power (~140 watts) than the spare refrigerator in our garage (~120 watts).

Good thing that I have suspend to disk working on that PC.

140 watts is pretty hefty - a good excuse to upgrade to a Core 2 Quad Q6600:-)

Popularity: 4% [?]

Next Page »