Governance by those who do the work.

Monday, February 27, 2012

Excess Fructose Content of American Foods

In Sept. 2011, the USDA updated their National Nutrient Database to Standard Release 24, increasing the number of foods from 7636 to 7906, and the number having fructose and glucose measurements from 1134 to 1207.

I have updated (Excess Fructose Content of Foods) with the new data.

Wednesday, February 15, 2012

Emacs bell in GNU/Linux

The bell in the Emacs text editor hasn't worked in the Fedora and Ubuntu distributions for years.  On February 2, Bug 562719 - Bell does not work in emacs in RedHat Bugzilla noted that this was not fixed in yet another release of Fedora.
But today, Peter Oliver posted a solution:

As a workaround, put the following in your .emacs:

(setq ring-bell-function 
      (lambda () (start-process "canberra-gtk-play" "*canberra-gtk-play*"
    "canberra-gtk-play" "--id" "bell")))
This solution also works for Ubuntu-10.10.

Tuesday, February 14, 2012

Ubuntu wired network unavailable after suspend/hibernate/resume

Although the wireless network recovers after suspend/resume, 10-base-T connections did not recover in Ubuntu-10.10 (GNU/Linux) on my HP dv7.  Gib2800 fixed a similar problem in  Thread: [ubuntu] Wireless network unavailable after suspend/hibernate/resume ACER3624W MADWIFI HARDY.  But that was for Ubuntu-8.10 and locations have changed.  This post updates his instructions.

In a shell, run lshw.  In its output find the string after "driver=" in the *-network sections (my computer had one for wired and one for wireless).  Then (as root) edit  /etc/pm/config.d/config so that those driver names appear on the right-hand side of SUSPEND_MODULES= in double-quotes, separated by spaces.  For example:

SUSPEND_MODULES="ath9k r8169"

That fixed my dv7.  I rebooted after making the change, so I don't know if rebooting is necessary.