Saturday, June 5, 2010

Different Browsers for Different Purposes, II

I previously commented on how I've started using different browsers for different purposes. I just visited the Weather Underground (wunderground.com) using Chrome, and it wasn't pretty. Right next to the weather map was this obnoxious flash animation. I quickly closed the frame and reopened it in Firefox, where NoScript screens out much of the obnoxious, much of the dangerous, and much of the insipid.

I had a similar experience last week while out of town. I don't have cable TV, and so am usually not subjected to cable news. Cable TV news is terrible, all commercials all the time and almost no news. Give me NPR and BBC any day. I've mostly stopped watching NFL games for the same reason.

Thursday, June 3, 2010

Emacs Spontaneously Shifting to DOS Mode. Yuck.

For some reason emacs (GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2010-03-26 on rothera, modified by Ubuntu) on Ubuntu 9.10 has been spontaneously deciding to use MS-DOS/Windows line endings rather than Unix. This is rather wasteful of space, and sometimes causes issues with other tools. It's also inconvenient, since I was killing the emacs buffer, running dos2unix on the file, and then loading the fixed file back into emacs. Looking for a fix, I stumbled across three blog entries of note:

1) http://www.debianadmin.com/flip-convert-text-file-line-endings-between-unix-and-dos-formats.html recommends a tool called flip. This makes no sense to me whatsoever since it does exactly what dos2unix and unix2dos do. It looks to me like someone's CS1 assignment that somehow got added to the Debian repositories.

2) http://www.sowbug.org/mt/2004/07/emacs-dos-line-endings.html has a good short-term fix, a bit more convenient than what I was doing. Within emacs, type the following key sequence: C-x [ENTER] f unix [ENTER]. This sets the "Coding system for saving file." Good enough.
Also, Sowbug.org has a great tagline: "If all you have is a Bloom filter, everything looks like a set whose membership you wish to test with a possibility of false positives."

3) Barriehie at http://ubuntuforums.org/showthread.php?t=1375454 has the winner, a good, permanent, catch-all type solution. Essentially, modify .emacs to include:

;; Set ALL files to UNIX line endings
(add-hook 'find-file-hook 'find-file-check-line-endings)
(defun dos-file-endings-p ()
(string-match "dos" (symbol-name buffer-file-coding-system)))
(defun find-file-check-line-endings ()
(when (dos-file-endings-p)
(set-buffer-file-coding-system 'iso-latin-1-unix t)
(set-buffer-modified-p nil)))

I've tested it just a bit, and it works beautifully.

Also, my .emacs is all in one file, and I prefer the way he splits it across multiple files. I'm using the .emacs that grad students were given at Ohio State ca. 1992 with many, many modifications. Following Barriehie's lead, I've split my .emacs it into multiple files, thus allowing me to keep my modifications separate from the stuff passed down from Brutus Buckeye.

Tuesday, June 1, 2010

Maxwell Smart Solutions

People apparently really don't think about names. First, the Nooky Reader from Barnes & Noble. And now, Max Smart has his own business. I wonder if 99 works there. If not, they should 86 the whole idea.

Monday, May 31, 2010

Hayabusa Scheduled to Land at Woomera

This will be a definite milestone if the spacecraft is able to land with a soil sample from the asteroid Itokawa. Link

Sunday, May 30, 2010

Endocrine Disruptors in the Gulf

The oil will obviously be a huge blow to the fishing industry in the gulf states. A more long-lasting blow may be the use of dispersants containing endocrine disruptors. What will this do to the fish? How long will it be before people feel safe eating fish from an area in which endocrine disruptors have been so heavily used? I know nothing about the dangers or persistence of these chemicals, but as little trust as many of us feel we've been able to place in the FDA and EPA since, say, 2001, it may be a long time after the government says it's safe before people believe it's safe.

Monday, May 24, 2010

Nooky Reader Part II

Searching for Nooky Reader at either Amazon or Barnes & Noble finds the Nook E-Reader or accessories. Whether BN management is aware, and they must be by now, Amazon and BN search mechanisms are.

XKCD Weighs in on Facebook

From http://xkcd.com/743/

Nooky Reader

Last night on All Things Considered there was a brief spot on Barnes and Noble's e-reader, the Nook. That's right, the Nook E-reader. Does anybody think about these names? Or is confusing the name with sexual slang  part of BN's strategy for marketing this thing?

I thought it was a joke, or that ATC had fallen for a prank, but, no: http://www.barnesandnoble.com/nook/index.asp

Wednesday, May 19, 2010

Yet Another Gem from XKCD

The mouseover text is "100 years later, this story remains terrifying--not because it's the local network block, but because the killer is still on IPv4."

Wednesday, May 12, 2010

The Pleasures of Blackboard

Blackboard is a course management tool used by many colleges and universities. It's feature rich, but very buggy, exhibits different bugs with different browsers, and has an atrociously bad user interface. I saw a new bug this morning, more amusing than most. When downloading grades from a class, I was presented with this dialog. Sorry, I can't read that file name. I realize this a deficiency on my part, but perhaps Blackboard should use a system-default language or something.

Thursday, May 6, 2010

Ninth ACM SIGPLAN Erlang Workshop Baltimore

Baltimore's Inner Harbor
The Ninth ACM SIGPLAN Erlang Workshop will be held in Baltimore on Thursday 30 September 2010. This is in conjunction with the 15th ACM SIGPLAN International Conference on Functional Programming.


Back to Gnome

I had been using Xfce on one of my desktops for a few months. I like it better than Gnome in some respects, largely because it's less bloated. However, I was repeatedly frustrated by its inability to follow the mouse with the focus. I'm a "focus follows mouse" person, and multiple times a day I would move the mouse from one window to another, passing over an intermediate window, and the focus would stay with the intermediate window. So I'd start typing, thinking the input would go to the window under the mouse. But, alas, no, the focus had remained with a window the mouse had passed over. This sometimes had deleterious effects, and so I've returned to Gnome.

Sunday, May 2, 2010

Outhousing E-mail Services

I'm dealing with an organization that has outhoused e-mail to outlook.com. Not surprisingly this site doesn't work with Firefox 3.6 and Ubuntu. I can log in to the account using Opera, but I have to tell Opera to identify itself as IE. There is no e-mail forwarding.

I understand outsourcing, and I understand an organization wanting to move this out of the local IT shop (though forcing people to get an account with Microsoft seems an egregious privacy violation). However, I don't understand why an organization would pick such a piss-poor provider.

HAL: "I'm sorry, Dave. I'm afraid I can't do that."

In a column written, ironically, in 2001, John Rose and Michael Huhns propose an adaptation of Asimov's Three Laws of Robotics for agents sent on a NASA mission. I reproduce the first two here:
  • Principle 1: An agent shall not harm the mission through its actions or inactions.
  • Principle 2: Except where it conflicts with Principle 1, an agent shall not harm the participants in the mission.
This essentially reproduces HAL, who was justified in killing its crew because it came to the conclusion that the crew jeopardized the mission.