Technology
Technical learning posts.
-
Standard Swap problem
—
in Technologypublic class SwapVariables{ public static void main(String args[]) { int a=5; int b= 6; System.out.println(“Before Swap :”+a+” “+b); a=a+b; b=a-b; a=a-b; System.out.println(“After Swap :”+a+” “+b); }}
-
FizzBuzz Problem
—
in TechnologyFound about FizzBuzz problem here I wrote Java program for it in 6 minutes including testing and debugging. [ Yes 🙁 I didn’t get it correct , first time ]…
-
Java Environmental Variable Settings
—
in TechnologyTill date, I installed Java software hundreds of times.Even then I have to spend sometime(though very few minutes) troubleshooting and I don’t get it correct at first time.So decided to…
-
JavaScript Timer function for session time out.
—
in Technology<script language=”javascript” type=”text/javascript”> document.onkeypress= resetTimer document.onmousemove= resetTimer document.onmousedown= resetTimer document.Onfocus= resetTimer var timerId; timerId = window.setTimeout(“timeOut()”,7200000); function resetTimer() { window.clearTimeout(timerId); timerId = window.setTimeout(“timeOut()”,7200000); } function timeOut(){ // do something here…
-
Found the solution for Tomcat Start up Issue.
—
in TechnologyAt last, I cracked it! Here is the story: Sometime back when I deploy my web application( named: myApp) in Tomcat 5.5.23 installed on JDK 1.5 Update 14, I used…
-
weird naming convention of substring() method of java.lang.String class
—
in TechnologyThe substring() method of java.lang.class is not inline with the Java naming conventions for methods. As per Java naming conventions, all the methods will be in camelCase.But this does not…
-
—
in TechnologyThe following Error related to JBoss Drools frustrated me because of Java Version mismatch. The version of Drools we are using runs properly only with JDK 1.5 where as we…
-
MS SQL Server 2K and Win XP
—
in TechnologyMS SQL Server 2000 Enterprise Edition Server componentscan not be installed on Windows XP. Only client components can be installed. I am exploring how to install Personal Edition on Win…
-
Javascript replace() method.
—
in TechnologyUseful JavaScript replace() method for string manipulation is here
-
Java’s Checked and Unchecked Exceptions- demystified
—
in TechnologyUntil recently, I had hard time remembering what is the difference between checked and unchecked exceptions. Finally Head First Java gave me the prompt explanation. Here it goes: Checked Exceptions:…