Archives for 2007
Bitten by the Apple TV bug, I’ve decided to put a PC in the living room for use as a video player. I already have a DVR box, so I don’t really need another one, but it will be nice to get all my video content in one place. Eventually, I would like to rip [...]
TextMate’s parsing for symbols and code folding is broken. It fails with many slightly-nonstandard brace arrangements, and even fails if there is a tab depth difference between closing and opening tags in XML. In addition, it’s symbol list only works correctly about half the time, although I haven’t spent the time yet to figure out [...]
Well, it’s been a couple of busy weeks, and I am way behind on my blogging. Bad, bad Derek. I’ll be posting on a variety of topics today, and hopefully kickstarting my writing neurons once again.
I’ve been writing XML, XSLT, and PHP all night. It’s sleep time, folks.
Class: 13 hr/wk Work: 19 hr/wk Math Homework: 4 hr/wk Coding Homework: 14 hr/wk minimum Reading for Class: 6 hr/wk Transit times: 7 hr/wk minimum National Guard duty: 20 hrs Total work and trans hours per drill week: ~77 minimum Hopefully, I can fit a meet up with Josh, a meet up with my brother, and some time with my wife in there. [...]
This Java-related blog has been dead for a couple of years, but still definitely worth a read. Check it out!
Java is not my favorite language. Despite a fairly robust class library, and some nice constructs, it has some serious problems. This first post will be about specific language “features” (or lack thereof). The next in the series will be a bit more general. Update: my buddy JK, who commissioned this little screed, pointed me toward this guy, [...]
Added to phrases that I hate: “syntactic sugar”.
I purchased TextMate this evening, which means that I now use $170 worth of text editors on my Mac. I plan to use this as my new blog editing environment. Anyone who writes professionally, whether code or prose, can appreciate the importance of a good text environment.
I almost got struck by lightning today. I was walking down Green St. at the outset of today’s storm, when all the hairs on my body began to stand on end. Then, POW!, lightning hit something on the block (not sure exactly where it arced to). It was bright and sudden, and I had a definite [...]
May your signals all trap May your references be bounded All memory aligned Floats to ints rounded Remember ... Non-zero is true ++ adds one Arrays start with zero and, NULL is for none For octal, use zero 0x means hex = will set [...]
Who are the ad wizards that came up with this one?
So here’s the rundown of what’s been, well, going down: Rewrote Bitstream and Huffman encoder/decoder in Java, now fully integrated with my image editor (download them from the code page) Slept, finally had an intense session with JK with lots of Dew, code, and good discussion cleaned the apartment some Tonight I have a study session for CS411, assuming that I manage to [...]
I’ve re-written most of my C++-based Bitstream library in Java, ostensibly to allow better integration with my image editor, but in reality because I still can’t find my bug.
Math Exam Status: Aced.
I’ve spent 9 hours looking for one bug. I have literally nailed it down to 4 lines of code. The bug does not make sense. Nothing makes sense. Goodnight.
The world takes on a certain strangeness once you approach the 36 hour mark without sleep. The Huffman Coding system that I’ve been trying to implement isn’t working. The tree structure sets up properly, but an attempt to print it out (and by extension, to locate particular nodes) segfaults, a strange occurance considering my minimal use [...]
I’ve added a Code Page to the blog, which will house various completed and unfinished bits of source. More description on the page.
Why yes, I am implementing Huffman Coding at 4AM.
…just crashed. Rawr.
Just a video for the heck of it: linky
Somwhere in the bowels of the InterWeb, two coders converse: 2:07:12 AM qphoebusq: so 2:07:16 AM qphoebusq: i’m trying to use JNI 2:07:30 AM qphoebusq: which at first I thought was a way to call c++ functions directly from a library 2:07:43 AM joshkimdotorg: JNI? 2:07:45 AM qphoebusq: so you have a compiled native code library, a .dll on windows [...]
Tonight’s all-night CS242 coding session brought to you by Mountain Dew, the programmer’s drink of choice. Honestly, I never do the Dew, except when I am doing some hardcore coding. I don’t know why that is, but I can tell you that I owe many a subroutine or pointer hack to the amber ambrosia.