Archive for the ‘Programming’ Category

Java – Simple Smtp Mail Class

Just a few quick classes I whipped up for bare minimum SmtpMail support. also don’t rely on the default javax.mail package. I believe the Java SDK only provides the APIs and not the implementations. I ended up downloading the implementation from GlassFish: glassfish-embedded-all-3.1.1.jar SmtpMail.java 1 2 3 4 5 6 7 8 9 10 11 [...]

Java – Trie (Prefix Tree)

A Java implmentation of a Trie (i.e. Prefix Tree). A definition of a Trie can be found This implementation (ObjectTrie.java) is capable of storing an Array of any generic data. i.e. Object[], or Integer[], etc. In the end I also include a wrapper Trie.java that wraps ObjectTrie.java providing String support. Trie.java 1 2 3 4 [...]

C++ – Minesweeper

The other day I was tutoring a freshman programmer program his first minesweeper text game in C++. Here is the resulting code. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 [...]

Powered by WordPress | Designed by: WordPress Themes | Thanks to best wordpress themes, Find WordPress Themes and Themes Directory