Java Software: 1-Line Sort & Uniq UtilityOctober 18th, 2005 I had to sort and uniq (create a unique set of strings) a large list with lots of duplicate. My options were to write it in Java or download cygwin and run: cat file | sort | uniq > result
Cygwin download never works for me.
Java Framework To Create Java FrameworksJanuary 26th, 2006 I have seen way too many java frameworks, way beyond my limits of tolerance. And I have found a perfect solution.
Introduction To Ruby For Java DevelopersJune 30th, 2006 Most Java programmers attempt to use Ruby like they use Java, similar to the mistakes C/C++ programmers commit when transitioning to Java. However Ruby provides a cleaner programming paradigm which if embibed can be effectively used to solve your problems.
How To Connect To CVS Via Proxy ServerFebruary 10th, 2007 CVS is commonly used by open source project to provide access to their source code. Here is a simple way how you can connect to CVS server from behind a proxy server.
Core Java: How To Get Java Source Code Line Number & File Name in CodeSeptember 8th, 2008 While debugging code Java programmers often use System.out.println(). It is important to write separate message in each System.out.println() so you can understand from the output where the problem lies.
Code: FIFO List in JavaFebruary 25th, 2006 One of the common questions I hear from Java newcomers is - where is a FIFO list in Java?
Java does have a FIFO list capability built-in with LinkedList and ArrayList, but they are not well advertized. A FIFO interface should at least have:
public interface FIFO {
/** Add an object to the end of the FIFO queue */
boolean add(Object o);
/** Remove an object from the front of the FIFO queue */
Object remove();
/** Return the number of elements in the FIFO queue */
int size();
}
A FIFOList class implementing the above would simply be:
public class FIFOList extends LinkedList implements FIFO {
public Object remove() {
return remove(0);
}
}
I prefer this setup instead of using a LinkedList.remove(0) directly.
JInvite - Java Invitation APIApril 10th, 2008 JInvite is a simple Java API which makes it easy to add invite capabilities to Java - the ability for existing members of your web service to invite other members. This capability was in the early days of GMail and now widely adopted by Web 2.0 (beta) sites for limiting site load and gradually increasing capacities.
Access Microsoft Access Database From Java Using JDBC-ODBC Bridge - Sample Code March 28th, 2006 Previously I had provided the gist of how to access MS Access database from JDBC using JDBC-ODBC bridge. Today I will elaborate on that and provide you with two sample classes.
How To Install Sun JVM (JDK 1.5.x) on Linux / Fedora Core in 5 Simple StepsDecember 26th, 2006 Install Sun's Java Virtual Machine ( J2SE(TM) Development Kit 5.0 Update 9 ) on Fedora Core / Linux platform in 5 simple steps. The procedure is geared for users having access to Linux box from ssh / telnet only as in a vpn / dedicated web hosting.
Java is Everywhere (Video)April 22nd, 2006 An educational and entertaining video on Java. Enjoy!
How to Learn db40, Java and .NET Object Database, in 5 minutesMarch 15th, 2009 db4o is a popular object database available both for Java and .NET. I have used it sporadically over several years and can highly recommend it.
Ruby on Java = JRuby - Project to WatchDecember 18th, 2005 JRuby is a project to watch for. It implements Ruby on Java virtual machine.
Fun Java Programming PuzzlesMarch 12th, 2008 Amazon.com WidgetsCheck out this excellent video of Java puzzles from Google tech talk. There is also a nice book on Java puzzles by Joshua Block & Neal Gafter.
How Crappy Is Your Java Source Code?December 7th, 2007 How crappy is your Java code? Often we find others code crappier than ours, especially if we are given to maintain their code. Crappy code authors are almost always happy with their code quality.
Update On Super Simple Java ORM Replacement in 80 LinesSeptember 13th, 2006 I have been inundated with emails after my article Java Database Framework (ORM Replacement) in 80 Lines of Code, asking for the source code of the framework or if I could release it as open source. I haven't been yet able to individually reply to all of them, sorry.