KSotD (Word): Select Current Word -- Ctrl+Alt+W

The default Word keyboard shortcuts for cursor movement usually work pretty well for me. I realized today that one thing that’s really been bugging me is the inefficiency of selecting the word under the cursor using only the keyboard. I find that I’m often wanting to select a specific word to then, e.g., toggle its highlight with my Ctrl+Alt+Shift+H custom macro. With the mouse, a simple double-left-click is all that’s needed; with the keyboard, though, unless there’s a shortcut/command I don’t know about, I have to press at least two key combos:

Read More

KSotD (Word): (Un-)Group Objects -- Ctrl+Alt(+Shift)+G

I put a lot of figures, charts, photos, etc. in the various reports and proposals and whatnot that I write for work. Pagecount often isn’t an issue for reports, so there I can add figures inline with text and it really doesn’t matter if there’s a lot of whitespace hovering around. However, the page limit usually is pretty low and extremely strict for proposals. Thus, using floating figures with relatively tight text wrapping is a must.

Read More

Merging Even and Odd Pages from a Scanned Two-Sided Document

At home, for a while we’ve had a Brother DCP-L2540DW multifunction laser printer/scanner/copier, which has worked great for us. Connected effortlessly to the WiFi and to both our Windows laptop and my Debian server. The Windows dashboard is well laid out and well designed. It even has a document feeder for copying and scanning—the big hitch there, though, is that it only supports single-sided scanning; I haven’t found an option in the software to stitch together the even and odd pages. Well, with some recent experience under my belt in reading PDFs with minecart (hmmm, still need to write that follow-up post…), and with a couple of ~20-page double-sided documents in hand that I needed to scan, I decided it was finally time to figure out how to do this.

Read More

Bootstrap Problems in pex Packages

In this post, I laid out an initial attempt at a pex workflow for packaging data analysis code for easy use by others. I still stand by the method in general; however, I ran into some problems with this particular application.

Read More

KSotD (Word): Rotate Highlight Color -- Ctrl+Alt+Shift+H

When writing just about anything, I use highlights heavily for a variety of reasons: marking something that needs more attention later, flagging things for someone else to look at, tagging placeholders for figure references and whatnot, whatever. As of Office 2010, Word supports a handful of highlight colors; enough for what I need, but altogether fewer than I’d like:

Read More

A First Attempt at Executable Packaging with pex

For an ongoing project here at work, I’ve written some Python tooling for automatically importing some chromatograms generated by the instrument software and extracting peak data from them. This workflow is necessary because our instrument is old, and the software that drives it was never actually intended to generate chromatograms: the only way to get the time scan data out is to … print to PDF.

Read More

Setting up sphinx-autobuild on Windows

I write the documentation for all of my side projects in Sphinx , as it’s more or less the standard for Python docs. One of the ongoing pain points has been having to re-run make/make.bat every time I want to view the rendered docs after an edit. I don’t recall where I came across it, but I’ve found sphinx-autobuild to work quite nicely, as the name suggests, to automatically rebuild the docset every time I save changes to the source. However, the README for the project only has instructions for configuring make livehtml on Linux, and not make.bat for Windows. So, I had to figure that out on my own.

Read More

For older posts, search via the Tags page.