Category Archives: Programming

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

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. Share this:FacebookStumbleUponShareEmailDiggRedditPrintRelated Posts:Git In Here!Virtualization: Does my processor support AMD-V or Intel VT?Git thee off … Continue reading

Posted in Programming | Tagged , , , | Comments Off

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. Share … Continue reading

Posted in Programming | Tagged , , | Comments Off

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

codeigniter: trivial memcached library

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

Posted in Programming | Tagged , , | Comments Off

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

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. Share this:FacebookStumbleUponShareEmailDiggRedditPrintRelated Posts:TestNG ConfusionBash Hints: Redirecting StdErr to StdOut“Microsoft Small BASIC” … Continue reading

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

“Microsoft Small BASIC” is not actually bad

I recently started looking at Microsoft Small Basic. I realize that folks who have known me for a long time will be shocked and horrified that I would consider a Microsoft product, since I probably should be trying to teach … Continue reading

Posted in Programming | Tagged , , , , | 5 Comments