Code

How to get Weather on the Mac Console

Here is a simple way to get the weather from the console.

For this we need a very simple shell script:

If you don’t pass a parameter, it uses LocateMe which you’d have to download separately. LocateMe makes available the current location of the computer on the command line.

Perl’s for Kids (and Regular Expressions, too)

We’ve just finished a field study looking at the ability of less than two-year olds starting to learn Perl and Regular Expressions. To avoid any gender bias, we have focused on the female population. From a statistical point of view, we have been able to get 100 % participation of our dataset, which means we… read more »

Visual Feedback from Apple Scripts

I am probably overly abusing Better Touch Tool. As an example, while reading a book in Full Screen mode with Skim, I want to create different types of annotations but I do not want to use the menu or even the keyboard to switch annotation types. I want to keep my hand on the trackpad… read more »

How to open Preview or Skim from DEVONThink

Unfortunately, DEVONThink utilizes its own PDF preview application. If you’d rather want to open Preview, you can utilize BetterTouchTool and set up a custom action for DEVONThink for a keyboard combination to use.

Apple Time Machine – get back in the Driver’s Seat!

Background Maybe it is just me again overcomplicating things. Yet I recently noticed that when I went on my VPN, using my IPhone to connect to the Internet, and then OpenVPN, at some point, TimeMachine decided to run a backup. Not the best idea in the world even if you are not on a world-wide… read more »

Export from VitalSource Bookshelf

Every now and again, my University gives us a reader through the DRM black hole software that they deemed useful to license: VitalSource bookshelf. And of course, that means you’ll get encrypted content, which your operating system and document management system of choice won’t index. And just as with Adobe Digital Editions (but more uncomfortably… read more »

New OCR Wrapper published on Sourceforge

I’ve shared a small project I’ve recently written on sourceforge: pdfocrwrapper.sourceforge.net This tool serves as a wrapper around the excellent ABBYY OCR engine which also exists as a Linux variant. The wrapper recursively iterates a directory structure and submits all PDF that it finds (and that it has not yet worked on) to ABBYY. The… read more »

How to manage virtual mail domain aliases with ISPConfig 3

Here’s a small script I’ve implemented as a MySQL stored procedure that allows you to include a virtual domain mapping scheme for the Version 3.0 of ISPConfig. ISPConfig – see www.ispconfig.org – is an excellent tool for managing virtual domains on a shared mail/webserver. The thing that I found missing was that if a customer… read more »

Sidebar