Category Archives: Code

Recent Project

I haven’t blogged about programming in quite a while, so I figured I may as well give it a shot. My current project that I am working on is a Haskell function to automatically conjugate French verbs based on the … Continue reading

Posted in Code | Leave a comment

Using rsync to remotely backup files

My laptop (a Macbook uni body that I picked up at the end of 2009) goes everywhere with me. Now that I am working on some serious stuff, it would be a damn shame if my laptop were to get … Continue reading

Posted in Code | Tagged , , , | Leave a comment

SSH Executing Remote Commands

One nifty feature of ssh that I sometimes forget to take advantage of is that you can use it to execute commands on a remote server and then promptly log you back out. Say for example that I would like … Continue reading

Posted in Code, Etc, Stuff and Junk | Tagged , , | Leave a comment

One Thing …

Please document your code. No matter who you are or what you write, document it! I’m sick and tired of having to guess how to build your project. Another thing: if your project runs a C program as an intermediate … Continue reading

Posted in Code | Leave a comment

New job

I started my new job this week. I now work in Dr. Frost’s Language Engineering lab. The work is pretty cool (I get to use Haskell) and I can really see myself enjoying this kind of work.

Posted in Code, School | Tagged , | Leave a comment

More tr1: Static Arrays

One of the old throwbacks to C in C++ is the notion of the “C-style array”: essentially a block of contiguous memory that you allocate either statically, or dynamically with malloc/free or new/delete. These structures were used in a time … Continue reading

Posted in Code | Tagged , , , , , | Leave a comment

Shared pointers, and why you should use them

NOTE: The ideas expressed below are in part based on the book Effective C++ by Scott Myers. He uses auto_ptr in his example, but essentially the lesson is the same. Let’s face it: pointers are dangerous. If you allocate something, … Continue reading

Posted in Code | Tagged , , | Leave a comment

Decking the halls with fibonaccis

Today I’d like to show off how awesome the Haskell language is with a few example programs. This blog is valid Literate Haskell, which means that you should be able to copy this entire text, save it with a .lhs … Continue reading

Posted in Algorithms, Code, Math | Tagged , | 2 Comments