Author Archives

A bug in biber 2.1

I recently found a subtle bug in biber 2.1 that drove me crazy.  It seems that biber 2.1 silently fails for certain Latex macros that it should convert into UTF-8.  In particular the “\l” macro (Polish ł) is one; I’m still finding more.  Here’s a minimal working (well, failing) example:   \documentclass[12pt]{article} \usepackage[american]{babel} \usepackage{csquotes} \usepackage[backend=biber,style=apa,doi=false,url=false,hyperref=true,apamaxprtauth=100]{biblatex} […]

Compiling SRILM in OS X 10.9

I’ve recently had need to compile SRILM on my Mac, which runs OS X 10.9 (Mavericks).  I have Mac Ports installed but found that I had to change to the out-of-box C/C++ compiler in order to get SRILM to compile.  It was simple: in common/Makefile.machine.macosx I simply changed CC = cc $(GCC_FLAGS) CXX = c++ […]

Building lme4.0 on OS X 10.9 (Mavericks)

My laptop died recently, and I am stuck with a new hard drive and a fresh OS X 10.9 (Mavericks) installation.  I wanted to install lme4.0. This turned out to be trickier than I’d expected, because Xcode 5.0 doesn’t include a Fortran compiler. This can be solved by installing a Fortran compiler from Many […]

Converting any Microsoft Word document to a single PDF (OS X)

I often want to make a PDF version of Word documents I’m writing, but when there are differently formatted sections the Word document spits out multiple PDFs.  To fix this so that you get only one PDF out, do the following: 1) Open File->Page Setup… 2) From the “Settings” dropdown box on the resulting window, […]

EPS output with transparency in Sweave output using the cairo_ps driver

Despite all the advantages of pdflatex, I still do a lot of LaTeX writing in which I take the latex -> dvips -> ps2pdf route. This is primarily because of pstricks, which I use for drawing syntactic trees, dependency graphs, and various pictures that I’ve already written out. (I’ve never had complete success with the […]

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 <> 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 […]

To Senator John Kyl

Dear Senator Kyl: I grew up in Arizona and now live in California.  My mother and many of my childhood friends still live and vote in Arizona. Today on Face the Nation (about 6:45 in) you criticized Pima County Sheriff Clarence Dupnik for suggesting that vitriolic public discourse may have played a role in inciting […]

The message I sent to Pima County Sheriff Clarence Dupnik

Dear Sheriff Dupnik, I grew up in Tucson, graduated from University High School in 1991 (I overlapped with Gabrielle Giffords for one year in high school, though I didn’t know her), and now live in San Diego.  I have been following media coverage of the shooting of Congresswoman Giffords and others, and I have listened […]