Category Archives: Technical

Best examples of Unix find

Unix find is a powerful tool, but I always forget how to use it. I’ve recently found my favorite page ever on a wide variety of examples of use: I hope that this is as useful to you as it is to me! Also, FWIW I have recently found recoll to be a very powerful […]

Binding key combinations to specific input source languages in OS X

After 4.5 years of struggling with OS X’s input source menu, I have finally figured out how to bind key combinations to selection of specific input sources (read: English, traditional Chinese through Pinyin, Japanese Hiragana, …).  Here are the steps: Note the specific names of the input sources on the input menu you want to […]

How can Gmail possibly not catch this as phishing?

from Gmail Online Service <mailonlineservice05@gmail.com> to date Mon, Jan 10, 2011 at 12:35 PM subject PRECAUTION Gmail technology team has recently launched Google web software to protect and secure all Gmail Accounts. This system also enhanced efficient networking and fully supported browser. You need to upgrade to a fully supported browser by filling out the […]

Avoid forgetting to send attachments in Mail.app

It can’t read your mind, but attachment Scanner Plugin for Mail.app is available here and will catch you some of the time 🙂 http://eaganj.free.fr/code/mail-plugin/

How WebCT software sucks

This is a persistent blog entry that I’ll keep editing to collect examples of how terrible WebCT software is.  It also serves as a memory for myself (and perhaps an FAQ for other hapless faculty) as to how to work around WebCT’s innumerable gotchas.  Though it is useful for a few things — such as […]

cacheSweave heads-up

I love Sweave for writing LaTeX documents with embedded R code, and R’s cacheSweave package helps tremendously in avoiding repetition of time-consuming computations.  (Thank you, Roger Peng, for writing cacheSweave!)  One catch that is evident from a careful perusal of the cacheSweave vignette but which I keep forgetting is that cacheSweave will not cache R […]

R sub() backslash gotcha

One of the things I do to my Sweave output is to make scientific notation more transparent.  I have a special R function for this which I use in my Sweave documents: myFormat <- function(…) { tmp <- format(…) return(sub(“e(.*)”,”\\\\\\\\times 10^{\\1}”,tmp)) } Note in particular the ridiculous number of backslashes required in the call to […]

A better way to get APA citation style in LaTeX

Earlier I posted on combining natbib and apacite to approximate APA citation style. Well, I became aware that this approach doesn’t handle the rule that in-text citations should be “AuthorA and AuthorB (year)” whereas parenthetical citations “(AuthorA & AuthorB, year)”. I can’t figure out how to get this to work while using natbib. So I’ve […]

Getting the longnamesfirst option to work with natbib in LaTeX

I publish in a number of journals that use the rules of APA style.  I prefer to write my papers in LaTeX, and to use BibTeX together natbib to manage citations and bibliographic references.  One of the rules of APA style says that the first citation of a bibliographic reference must be the “long” citation […]

How silent coercion steepens R’s learning curve

People often ask me about the relative merits of R versus other statistics & mathematical programming environments (Matlab, SPSS, and so forth).  While I love R and use it almost every day, I always insist that it has a(n unnecessarily) steep learning curve and can bite you in ways that are hard to recognize.  I […]