Category Archives: Programming

My first dalliance with variadic templates

I just hacked together some code that I believe folks will find useful. It takes advantage of c++11’s variadic templates. You can use it to say something like: I wrote it in response to code I’ve had to write which … Continue reading

Posted in Programming | Tagged , | Comments Off on My first dalliance with variadic templates

TestNG Confusion

I love me some TestNG, yes I do, but recently it went completely haywire on a test… java.lang.AssertionError: Expected :null Actual :null at org.testng.Assert.fail(Assert.java:89) at org.testng.Assert.failNotSame(Assert.java:485) at org.testng.Assert.assertNull(Assert.java:421) at org.testng.Assert.assertNull(Assert.java:410) at com.comapny.tests.SimpleTest.testExpectedNull(SimpleTest.java:31) Expected null, actual null? Well those look the … Continue reading

Posted in Programming | Tagged , , , | Comments Off on TestNG Confusion

Unix and The Baha Men

I was at a children’s birthday party, over the weekend, and they played a kiddified version of the song, “Who Let The Dogs Out?”. I was reminded that I occasionally hear unix commands in music. This song had a significant … Continue reading

Posted in Musicality, Programming | Tagged , , , | 1 Comment

Linus on Git

Linus Torvalds talking about Git. Why he created it and what it does. I, as readers know, am shamelessly in love with Git. For everything. Related Posts:Git In Here!Virtualization: Does my processor support AMD-V or Intel VT?Git thee off subversion!

Posted in Programming | Tagged , , , | Comments Off on Linus on Git

Making Oracle find the span of a year

Here’s a handy Oracle date tip. If you have a string for a year ‘2010’ or whatever as &tyear and feed it to this SQL. It will give back the first second and the last second of the year. Related … Continue reading

Posted in Programming | Tagged , , | Comments Off on Making Oracle find the span of a year

Bash Hints: Redirecting StdErr to StdOut

One of the more annoying things about shell programming is when one has a program that spits the data to stderr. You run that and you end up with spew in your terminal and nothing in your file. Annoying. If … Continue reading

Posted in Programming | Tagged , , , | Comments Off on Bash Hints: Redirecting StdErr to StdOut

codeigniter: trivial memcached library

Here’s a little library I’ve used a few times to access memcached from codeigniter. Related Posts:CodeIgniter: Scalar Variable Attachments

Posted in Programming | Tagged , , | Comments Off on codeigniter: trivial memcached library

TIL: Linux kernel hackers should check linux-next

If you are new to linux kernel hacking and following along with one of the tutorials, something that is not mentioned as far as I can tell is that you should check the linux-next branch of the git tree to … Continue reading

Posted in Programming, TIL | Tagged , , | Comments Off on TIL: Linux kernel hackers should check linux-next

Perl -p is the sweetness

A handy trick for programming perl is the -p flag. This tells perl to surround your code with: If you have a file with state names and 2 character codes, like “DE:Delaware”, you could convert that into SQL insert statements … Continue reading

Posted in Programming | Tagged , , , , | 3 Comments

Recursive Descent Parsing

Early in the development of computers, programming languages were simple, and were converted into a machine usable form using a parse tree. Let me give you a little context. Related Posts:TestNG ConfusionBash Hints: Redirecting StdErr to StdOut“Microsoft Small BASIC” is … Continue reading

Posted in Computing History, Humour, Programming | Tagged , , , | 2 Comments