applespace

MacOS X uses vim as its default crontab editor. That’s not too big of an issue, I know how to use vim, but it is vastly overpowered for the simple task of editing a cron file. Nano suffices just fine for this, and I’m sure most Mac users have no idea what vim is, let alone how to use it.

So, here is how to switch your cron editor to nano, a much simpler command-line text editor.

  1. Press Command(⌘) + Spacebar, and type terminal into the spotlight search box in the upper right of your screen
  2. [Pic] In the terminal window, type the following exactly as it appears, yes the semicolon is important:
    EDITOR=nano;
    export EDITOR
  3. Now when you use the terminal to run crontab -e, it will utilize the much simpler nano editor instead of vim.

If you’re afraid to run commands from the terminal, I do first have to ask why you’re using cron in the first place, and then recommend CronniX, a graphical crontab editor for MacOS X.

Learn more about vim

Learn more about nano

Learn more about cron

 
Windows 7 Audio/Sound Driver for IBM ThinkPad R51e

I have a (slightly) older IBM ThinkPad R51e laptop that still has a ton of life in it. I once tried installing Windows 7 on it, and it ran wonderfully with Aero turned off. The only problem was that a driver for the sound device was impossible to find. Windows update didn’t have one, and [...]

 

Thank the heavens for Google Cache and the Web Archive. I’ve found some of my old posts on there, and can restore the ones that are available, which I will be doing over the next few days

 

Due to a corrupted database backup, I’ve lost all of my old posts. So, I’m starting from scratch. Welcome to /dev/dan, the next iteration of my blog. I might even update it once in a while

 

I found this while building a project at work: http://www.gidforums.com/t-1816.html I was pulling text strings from an Atom feed in a PHP script, and some of them contained URLs. Obviously it’s beneficial and makes the program more functional if those URLs are clickable. Here is the code for the function: And here is how to use [...]

 

Any of you who have ever used a VPS/VDS (Virtual Private Server/Virtual Dedicated Server)for hosting know that many times, what you get is what the company you are doing business with has cut out as the “most compatible” configuration for most of its customers. This works for most clients, but unfortunately there are still those [...]

© 2011 /dev/dan Suffusion theme by Sayontan Sinha