Java

Virtual Machines: Windows 7 host and Ubuntu 9.10 guest

Posted by chris on January 5, 2010 at 11:41 pm

I am trying out Sun’s Virtual Box this term. I’m going to be doing a fair amount of development in C and C++ which means using gcc on Ubuntu. I’m pretty invested in the software on my Windows 7 laptop and yes, I’ve got Cygwin, but I prefer working with C and C++ on Ubuntu. [...]

  • Share/Bookmark

Java’s Sorted Collections and the Comparable and Comparator Interfaces

Posted by chris on October 31, 2009 at 9:43 am

Java’s SortedSet interface and the classes that implement it (like TreeSet) will store a collection of objects that are sortable. In order to make a class sortable so that we can store it in a sorted collection, we have two choices: the sorted class can implement the Comparable interface we can pass a Comparator to [...]

  • Share/Bookmark

AT91SAM7S256 aka the NXT Brain

Posted by chris on August 15, 2009 at 11:34 pm

The Lego MindStorms NXT Brick is controlled by a pair of Atmel microcontrollers: Atmel 32-bit ARM processor, AT91SAM7S256 Atmel 8-bit AVR processor, ATmega48 The AT91SAM7S256 is part of an Atmel series of low pin-count Flash microcontrollers based on the 32-bit ARM7DMI ARM Thumb RISC processor. It features: a maximum clock speed of 55 MHz (48 [...]

  • Share/Bookmark

Artifact J-2: Java RPN Calculator (Command Prompt)

Posted by chris on August 8, 2009 at 10:59 pm

Description A simple command prompt calculator that uses Reverse Polish Notation. In Reverse Polish Notation the operators follow their operands; for instance, to add three and four, one would write “3 4 +” rather than “3 + 4″. If there are multiple operations, the operator is given immediately after its second operand; so the expression [...]

  • Share/Bookmark

Artifact J-1: Codeword Parity Validator

Posted by chris on August 8, 2009 at 9:45 pm

Description A program that tells the user if a parity-encoded word is valid or not, and if a Hamming codeword is valid or not. A parity-encoded word is a series of binary digits (zero or one) where the left most digit is either a zero or one depending on the type of parity being used [...]

  • Share/Bookmark