Java Database Framework (ORM Replacement) in 80 Lines of CodeAugust 19th, 2006 I wrote about how I use a simple Java framework instead of ORM like Hibernate or Spring for effectively solving my data handling requirements. It has made me tremendously productive.
Java Tip: Basic Authentication with HttpURLConnectionJuly 6th, 2007 Java provides a super simple, yet hidden from plain view, way to do basic authentication of HttpURLConnection / URLConnection. Before making a connection add the following lines of code:
final String login ="...";
final String password ="...";
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication (login, password.toCharArray());
}
});
This sets your default Authenticator which is called whenever authentication is required for any URLConnection.
Guide To Simplified Java Logging using Java Core APIJanuary 17th, 2006 Java comes in with a handy logging package (java.util.logging) which eliminates the need to use external logging packages like Log4J. However it still requires some configuration which makes it cumbersome and repetitive to include in every class.
Free Java Utility To Touch Files (Cross Platform)September 23rd, 2006 This is a simple commandline Java utility which I wrote down in under 5 minutes to help in checking-in (svn commit) over 500 files which were modified but the dates weren't changed due to an error in our settings. So subversion failed to recognize it.
Java EE 5 is Not Your Father's J2EEApril 10th, 2006 Java Platform Enterprise Edition (Java EE, formerly referred to as J2EE) Version 5 has arrived. Its streamlined features offer added convenience, improved performance, and reduced development time, all of which enable developers to bring products to market faster.
Super Simple Java ORM Framework For SQL Happy DevelopersAugust 9th, 2006 I previously mentioned that I intended not to use any Java ORM frameworks. ORM frameworks I have seen so far have a steep learning curve and tend to shoe horn your architecture into their model.
Apple Released Java Security Update for Mac OS XApril 19th, 2006 The Java 2 Standard Edition 5.0 Release 4 update, issued Monday, fixes a vulnerability in Java Web Start. An application, exploiting the vulnerability, may grant itself permissions to read and write local files that are accessible to the user running the Java Web Start application.
Java Software Programming Examples For Beginners / Interview: How To Swap Integer (and String) Variables Without Using a Temporary VariableOctober 29th, 2005 A Simple Programming Question for Beginners
How to download & install JDK 6September 28th, 2009 I never thought I would have to write this article. Downloading Java was the simplest thing possible.
Copy to and Paste from Clipboard: A cross-platform solution in JavaNovember 1st, 2004 Copy to and paste from clipboard on command line using these nifty java utlities.
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 / J2EE Needs to Add Ease of Use (Redundant) MethodsApril 15th, 2006 Java / J2EE (Java EE) API development should now focus on adding ease of use methods to the API. Often such methods will be redundant.
GCJ is Dangerously BuggyJune 13th, 2007 GCJ 1.4.2 which was forcefully bundled with Fedora Core 6 (and has been updated from their repository to the latest available version) must not be used with any enterprise product, nay for any Java project at all. I know it is being used in OpenOffice, which I think is a serious mistake.
JDK1.5 - More painful bugs aka Enumeration-Woes: Solved!August 29th, 2004 Current Status: Solved
Defect:
When more than one annotation type files are compiled in javac(any of the ways like *.java or @srclist or FileName1.java FileName2.java)
then it emits and error message that it cannot find symbol for statically imported Enums. However statically importing one level up and de-referencing works.
How To Simulate Telnet Session in JavaFebruary 16th, 2006 Often we come across procedures which need to be performed by issuing commands in a telnet session. It is relatively easy to do it manually but is definitely not suitable for automation.
April 17th, 2009 at 5:53 pm
Java provides the best solution to all problems.Be it for Love or Business.
Cheers!!!!!