Programming and more

Entries for September, 2012

How to find how many days are there between dates

I was writting a car rental application for some customer, when i came across this problem. Fortunatelly I found the  solution easier that I thought. You have to love google! So here is the solution: Takes into account leap years and it’s tested and it works great.     function dateDiff($start, $end) { $start_ts = […]

Google Tasks Desktop Application

http://www.jashsayani.com/my-softwares/ go here and click on google tasks and install the application. This program uses adobe air.

How to recursive browse a directory with java

import java.io.*; import java.util.*;   class aloxa { public static void main(String args[]) { try { traverse(new File("thomson")); } catch (Exception e) { e.printStackTrace(); } } static public void traverse( File file ) { // Print the name of the entry System.out.println( file ) ; // Check if it is a directory if( file.isDirectory() ) […]

How to disable fn lock on acer gateway NV55S and other laptops

I have a new laptop, Acer Cateway NV55S. Great laptop, but I had one problem. I couldn’t use the F keys without pressing the FN button. This was very irritating because I use F-Keys a lot. First round of googling revealed nothing, then I contacted gateway support, (that was no help either). Then I found […]