Category Archives: coding

Github for work and play (multiple accounts)

If you’re not using github, you should start (see my intro for tips on getting going). One of the things that is likely to happen once you do get started is that you will want more than one account. This … Continue reading

Posted in coding, tech | Tagged | 1 Comment

find and replace exact word in vim

I have spent the weekend updating some old code, and as usual it’s a bit of a mess … One of the problems I have had is that there is lots of stuff that have similar names, but do different … Continue reading

Posted in coding, tech, vim | Tagged | Leave a comment

A little bit of git (a short github tutorial)

I generate loads of code, and back up very little, so an easy to use versioning system like github seems like a no-brainer. Setting up a repo is a little tricky if there are some things you don’t want to … Continue reading

Posted in coding | Tagged | 1 Comment

Scheme and SICP — on a Mac

Given that I am teaching myself to code so that I can better use R, I guess it was inevitable that I started reading Abelson & Sussman’s Structure and Interpretation of Computer Programs (I’ve been using a modern, freshly re-typset … Continue reading

Posted in coding, R, Scheme | Tagged | 1 Comment

Finger Macros in Vim

One of the most productive tricks in vim is the finger macro. Say you wish to assign a macro to the key `s` — we would take the following steps (note in the following the back-tick marks are to to … Continue reading

Posted in coding, vim | Tagged | Leave a comment

Scheduling tasks with Mac’s launchd (moving on from cron)

With the move to OSX 10.8.2 I have finally given up on cron as a task scheduler. This post is part a record to help me remember, and partly a tutorial for others. Not that i think there’s anything wrong … Continue reading

Posted in coding, tech | Tagged , , | 2 Comments

Iterm2 and tmux update

A new iTerm2 beta and associated tmux release occurred a few days back. You can find the downloads at the project page. I have updated the tutorial i posted a few months back, to reflect the (modest) changes — also, … Continue reading

Posted in coding, tech | Tagged , | Leave a comment

Making MacVim play nice with IPython (and friends)

I have had a devil of a time replicating my laptop setup on my desktop. The most frustrating issue has been a weird import error thrown when MacVim attempts to connect to IPython (the error is much broader than this, … Continue reading

Posted in coding, python, tech, vim | Tagged , | 1 Comment

Useful R slides

Arthur Charpentier of the freakonometrics blog has produced these useful R slides

Posted in coding, R | Leave a comment

python for data analysis (numpy, scipy, pandas, ipython)

I am a big fan of John Cook’s blog, and as a result I’ve been intrigued about using Python for data analysis since his review of Wes McKinney’s Book of the same name (Wes wrote the Pandas module). I was, … Continue reading

Posted in coding, python, tech | Tagged , , | 4 Comments