Sunday, January 27, 2008

MacAlly ICEKey and IOGear MiniView KVM Switch

Unfortunately, the MacAlly ICEKey USB Slim Keyboard and the IOGear MiniView Micro USB Plus (GCS632U) KVMP switch cannot work together to give you the full functionality of the keyboard.

If you want to use this keyboard with this switch, you have to live with the fact that your volume and eject keys will never work on the keyboard.

There is a method of emulating the special keys using combinations like pressing and releasing "control" and then pressing and releasing "1".

Interestingly enough, the MacAlly iKeySlim keyboard works great with this KVMP switch. Additionally, while the ICEKey requires driver installation, the iKeySlim does not.

So, there you have it. You've been warned.

NOTE: You may have some luck with this tip I found on macosxhints, but I didn't. Let me know if you get something figured out.

Monday, January 14, 2008

Geek Squad sucks

UPDATE: On January 14, I received a response:
Who sent this to me from info@geeksquadcentral.com?

Thank you!

Sara Yanari
Agent 191
Mission Specialist
Geek Squad Operations - Corporate
Agent191@geeksquad.com
Cell: (612) 919-4855/Office: (612) 291-9689

"Serving the Public, Policing Technology, and Protecting the World"

Want to know more about Geek Squad? Or keep up on the latest info?
Geek Squad Photo Blog: http://www.flickr.com/groups/geeksquad/
Idea Festival: http://www.geeksquad.com/ideafestival
Squad Cast: http://forums....squadcast

There are two possible reasons for this response:
  • "Agent 191" doesn't understand "Reply-To" and delegating of support messages.
  • "Agent 191" might think that my message was some internal joke played on her by other people at Geek Squad.
Either way, "Agent 191" looks a bit like an idiot or an ass (or both). When you see those Geek Squad commercials, these are the people you're dealing with.

I sent a snarky response back (one to info, and one to Agent 191 directly), but I haven't received anything else. So, now when I teach classes to my young engineers, I refer to "Geek Squad" where I used to say "lay people." Snap! (or something)

An e-mail I just sent to Geek squad:
Subject: Complaint: Packaging information of CAT-6 crossover cable

"Geek" squad --

     I purchased a CAT-6 crossover cable of yours yesterday. The packaging surprised me. You advertise yourselves as some sort of elite group of geeks, but the printing on the packaging makes me wonder if any of you know anything about technology at all.

     There are several examples on the front of the package, but one sentence in particular is especially troubling:

"Your geek squad network crossover cable uses an RJ45 connection allowing you to connect between similar types of equipment without the use of a hub; one PC to another PC for example."


     The difference between a crossover cable and a standard patch cable has nothing to do with the "RJ45 connection." For one, both cables use a type-45 "registered jack (RJ)". "RJ45" describes the PHYSICAL connector. That is, it describes the PLASTIC end that mechanically snaps into place when the male version is inserted into the female version.

     The difference between a crossover cable and a standard patch cable is the 8P8C (i.e., "8 position 8 contact") termination type. A patch cable has a T568A termination at one end and a T568B termination at the other end.

     It would be wise for you to change the wording to something like:

"Your geek squad network crossover cable uses an T568A-to-T568B termination allowing you to connect between similar types of equipment without the use of a hub; one PC to another PC for example."
Otherwise, it just simply doesn't look like you know what you're doing.

     When I picked up the cable and saw the text above, I was seriously worried that it would have the 500 MHz bandwidth I needed. Unfortunately, because it was the only one available and I didn't want to terminate my own and risk the crosstalk, I had to buy your expensive cable. My computers came up with gigabit link, so I'm guessing things are fine, but I wonder what I'd find if I walked down the hall and tested these things on a network analyzer.

     Clean up your act, Geek squad.

     Thanks for your understanding --
     Ted Pavlic
A bit much? (yes, I realize there's a typo... I said "patch" once where I clearly meant "crossover")

Sunday, December 30, 2007

File Associations and PATH with MacVim

UPDATE: The newest release of MacVim has a preference pane that lets you "Launch Vim processes in a login shell." If turned on, it should solve the PATH problem suffered by some Vim users.
If you use Vim for OS X or the nascent MacVim, you may have noticed that
  • your PATH is not set correctly (i.e., compilations fail) and
  • Vim is not associated with all of your text files (i.e., it doesn't show up in the "Open With" context menu)
A while ago, I realized that the gvim.app available for download from the OS X Vim site had the potential to solve both of these problems, and so I hacked it to produce:
  • gvim.app (for Vim for OS X) and
  • mvim.app (for MacVim; maybe unneeded if "Launch ... login shell" preference turned on)
To install one of these files, download the archive, unzip it, and move the application into your /Applications folder. If you start Vim from that application, it will open as usual but will have the PATH set as if you were in the Terminal (i.e., it executes a bash login before exec'ing Vim). You should also notice that the new launcher application shows up in your "Open With" menus. Finally, if you put the launcher in your Dock, you can use it to generate new Vim windows, even if Vim is already open.

Saturday, December 29, 2007

PDFSync Inverse Searches in MacVim

Remember the post on doing inverse searches in Vim on OS X? The idea was to drop gvim-pdfsync into
/usr/local/bin
(or somewhere else in your PATH) and then execute
gvim-pdfsync "%file" %line
to do inverse searches in Vim for OS X just like you can in Windows or in other UNIXes. For example, in Skim, under the PDFSync section of the Sync tab of the Preferences, you can put
Preset: Custom
Command: gvim-pdfsync
Arguments: "%file" %line

For MacVim

I thought it might be nice if I published how to do the same thing in the nascent MacVim, which supports servers just like Vim for Windows. Provided that you've installed the mvim shell script somewhere in your PATH, you can setup Skim with
Preset: Custom
Command: mvim
Arguments: --remote-tab-silent +":%line;foldo!" "%file"

or, if you don't like tabs
Preset: Custom
Command: mvim
Arguments: --remote-silent +":%line;foldo!" "%file"

Retro-Approach

Alternatively, if you really liked the gvim-pdfsync approach and want something similar for mvim, put mvimtab-pdfsync or (if you don't like tabs) mvim-pdfsync in your PATH (e.g., in /usr/local/bin) and then setup Skim for:
Preset: Custom
Command: mvimtab-pdfsync
Arguments: "%file" %line

or (if you used mvim-pdfsync)
Preset: Custom
Command: mvim-pdfsync
Arguments: "%file" %line
I hope that helps.

Sunday, November 18, 2007

Frum rhymes with Doom

On the November 15, 2007 episode of Marketplace, they aired a commentary called "Learn a Lesson from the Dark Ages" by conservative demagogue David Frum. I couldn't help but send a response.
This correspondence is regarding "Learn a lesson from the Dark Ages" by David Frum, which aired on Thursday, November 15, 2007.

The argument offered by Mr. Frum is called the "environment Kuznets hypothesis," which is an application of the classic Kuznets hypothesis to conservation. The "environmental Kuznets curve" is a "U"-shaped curve on a plane with conservation on the vertical axis and economic growth on the horizontal axis. That is, with economic growth, conservation decreases until some critical point and then increases.

It's interesting that Mr. Frum uses the Kuznets hypothesis to argue that our salvation comes from focussing on globalization. In fact, the Kuznets hypothesis only matches observational data when looking locally. In developed countries, we do see that economic growth leads to cleaner air and water and increased conservation; rich people embrace their local nature. Unfortunately, the conservation of developed countries comes at the cost of the destruction of the rest of the world. Global energy use and human population growth is still on the rise and global conservation is still falling. Additionally, every species we drive to extinction is lost permanently, so it's hard to imagine that the global conservation-growth curve can ever slope upward.

I worry that Mr. Frum's optimism is not simply outdated but is dangerous. I encourage him to consider taking a more conservative approach to the environment.

In retrospect, I could have said "which erred on ..." instead of "which aired on ...," but I would never want to be accused of sounding snarky...

Tuesday, October 02, 2007

Journal Reviewer Review

A recent paper of mine was rejected from Journal of Theoretical Biology. For fun, lets compare and contrast and selection from the reviewer comments ("MS" = "manuscript"):

From Reviewer #1:
Overall I really liked the work presented in this MS - by generalising the traditional models of the ecological economics underpinning solitary foraging behaviour the authors offer a very interesting (& in retrospect) intuitively appealing justification for accepting that the concorde fallacy may not always be fallacious.

From Reviewer #2:
This result seems to be of significance in biology, psychology, economics, and business, and I think that the paper is deserving of publication in JTB. The paper is also very well written, and the mathematical presentation is clear and precise.

Those two were pretty nice, and suggest that I should resubmit the paper with a couple tiny revisions and I'll be off and running. Great! Wait... What's this?

From Reviewer #3:
I regret to say I have no idea what this paper is about. The mathematical lingo is completely unfamiliar to me (after about 50 years of teaching and research in maths)...(details omitted)...(I recently had a grad student who wrote in this vein. When I asked him to explain in ordinary math, he gave up.) I didn't read any further. My advice is reject.

HUH?!

Tuesday, September 18, 2007

Removing WiFind

The WiFind application from TastyApps has potential, but in the end it falls short and is not worth all of the bother. WiFind will slow down your computer nearly to a halt in some cases. Because the developers made it an input manager without a preference pane, it cannot easily be turned off. Even when it's running well, it still takes a click or two in order to get it to display the information you need.

The free application coconutWiFi is almost identical to WiFind, but because it's an application, it's much easier to install, load, unload, and uninstall.

Getting rid of WiFind can be a major pain (especially if it's in the process of grinding your machine to a halt at the time). The developers gave it an installer (because it's an input manager and not an application), but despite Apple's guidelines that all programs with installers must have uninstallers, they did not give it an uninstaller.

So, here's how I went about turning OFF WiFind. WiFind uses this InputManager called "SIMBL" to modify the wireless menu directly (rather than putting up its own menu, like coconutWiFi). So, you can either remove SIMBL or remove WiFind from SIMBL so that while SIMBL loads, WiFind will not.

To remove WiFind only, look for the folder
/Library/Application Support/SIMBL/Plugins

or the folder
~/Library/Application Support/SIMBL/Plugins

where ~ is your home directory. Inside that folder, you'll find a WiFind.bundle. Move it somewhere else (or delete it) and logout (or restart) to disable/remove WiFind.

Alternatively/additionally, you can remove SIMBL. Look in the folder:
/Library/InputManagers

or
~/Library/InputManagers

where ~ is your home directory. There should be a SIMBL folder inside one of these. To remove SIMBL, delete the SIMBL folder. To disable it, remove the SIMBL folder. Again, be sure to logout or restart after making this change. When you're logged back in, SIMBL should not be loaded.

If you think you will want to turn this off later, simply move the SIMBL folder out of the InputManagers folder and into some other folder that you create (I created an InputManagersOff folder in my /Library). Next, if you logout (or restart), WiFind will not be started. At some time, you should probably also get rid of the folders
/Library/Application Support/SIMBL/

and
~/Library/Application Support/SIMBL/

where ~ is your home directory.

You might notice that there are files dropped in /Library/Receipts (or maybe ~/Library/Receipts) from WiFind (or wifind) and SIMBL. You may consider removing these files too, but it won't hurt to leave them there.

Ted E.C.E. Bear

I put this together for my ECE webpage.
Ted E.C.E. Bear
That version has a transparent background. I have a version with a white background too.

Cute? Everything except for the bear was actually "drawn" in LaTeX, which I think is pretty cool. The bear is an image I found that Yahoo thought was Creative Commons (CC) licensed. I hope its particular CC license allowed for changes...

Friday, August 31, 2007

American Naturalist BibTeX BST style file

The American Naturalist, a University of Chicago Press - Journals Division journal, specifies that AASTeX should be used to typeset submissions; however, it does not provide any BibTeX BST bibliography style file. That means that authors still have to manually manage their reference list rather than using BibTeX and a central BIB bibliography database.

The BST: I've tried to remedy this by creating amnatnat.bst, a natbib-compatible BibTeX Bibliography STyle (BST) file for the American Naturalist.

As far as I can tell, this BST will generate a properly formatted BBL file that should not require modifications. Note that American Naturalist requires authors to upload their BBL files and NOT their BIB files (i.e., they don't have the ability to run BibTeX on the server).

ONE CAVEAT: If you have titles that contain colons in them, you will have to manually (either in the BIB or the BBL) change the case of the letter following the colon. For example, if "Some Title: Subtitle" is the title, change the "S" in "Subtitle" to "s". A feature/bug of BibTeX is that its sentence case keeps letters following colons capitalized. This does not match the sentence case definition used by many journals, which considers the words after a colon being at the middle of a sentence rather than the start of a new sentence. As far as I know right now, there is no easy way to change the BST file to do this automatically for you.

FYI: This BST file was generated using amnatnat.dbj (for more details, see amnatnat_full.dbj) and amnatnat.patch.

Wednesday, August 29, 2007

Viewing man pages and text files in Skim

As discussed on the Skim wiki, it is possible to view man pages (and more) nicely formatted as a PDF in Skim.

If you use bash, try adding these lines to your .bashrc:
function skimcat () { cat $* | enscript -p - | open -f -a Skim; }
function manp () { man -t $* | open -f -a Skim; }
Alternatively, if you use tcsh, try adding these lines to your .cshrc:
alias skimcat="cat \!* | enscript -p - | open -f -a Skim"
alias manp="man -t \!* | open -f -a Skim"
Then you'll be able to do skimcat to cat files to Skim, and you'll be able to use manp to view man pages formatted in Skim.

NOTE: You can actually pipe anything that is PostScript (or PDF) formatted to Skim (via the open command shown above).