Surface Computing

Filed under: innovation, microsoft, technology — Harshal at 5:30 am on Thursday, May 31, 2007

Hi All,

Look at this amazing new computing technique “Surface Computing” by Microsoft.

http://www.surface.com

10 Useful Utility Softwares

Filed under: utilities, software, technology — Harshal at 11:20 am on Monday, May 28, 2007

Some of the useful utility software’s that really helped me when needed are :

1. Free Undelete

  • Web:-http://officerecovery.com/freeundelete/
  • Description:-In case of accidental deletion of files on a NTFS (used by default in Windows XP, 2000 and NT), FAT32 or FAT16 file systems FreeUndelete is the utility to help.

2. Easy Cleaner

  • Web:-http://www.toniarts.com
  • Description:-Easy to use registry cleaner. It was a freeware when I downloaded. However now you might have to pay the initial fees for accessing products on the site.

3. cygwin
Web:-www.cygwin.com
Description:-If you need to use unix commands over windows, a really nice utility.

Rest still to come….

securing java

Filed under: security, java, software, technology — Harshal at 7:21 am on Monday, May 28, 2007

http://today.java.net/pub/a/today/2004/10/22/obfuscation.html

http://www.javaworld.com/cgi-bin/mailto/x_java.cgi

closeable and flushable interfaces in Java 5

Filed under: java, software, technology — Harshal at 8:54 am on Tuesday, May 22, 2007

Java 5 has two separate interfaces in java.io package.

  • Closeable
    • A Closeable is a source or destination of data that can be closed. The close method is invoked to release resources that the object is holding (such as open files).
  • Flushable
    • A Flushable is a destination of data that can be flushed. The flush method is invoked to write any buffered output to the underlying stream.

Java : Final is not constant ?

Filed under: java, software, technology — Harshal at 9:03 am on Monday, May 21, 2007

Java doesn’t have anything like C++ const. You might think that final is like const, but it’s not:

  • A final variable in Java can be assigned to only once, but if the variable is a reference-type, you can still change what it refers to. Fun!
  • A const variable in C++ can be assigned to only once, where it’s declared, and nothing is allowed to change about the value, whether it’s an object or not. Now that is a nice feature!

This is what Java Language Specification talks about the final variable.

A variable can be declared final. A final variable may only be assigned to once. It is a compile time error if a final variable is assigned to unless it is definitely unassigned (§16) immediately prior to the assignment.

A blank final is a final variable whose declaration lacks an initializer.

Once a final variable has been assigned, it always contains the same value. If a final variable holds a reference to an object, then the state of the object may be changed by operations on the object, but the variable will always refer to the same object. This applies also to arrays, because arrays are objects; if a final variable holds a reference to an array, then the components of the array may be changed by operations on the array, but the variable will always refer to the same array.

Declaring a variable final can serve as useful documentation that its value will not change and can help avoid programming errors.

In the example:

class Point { int x, y; int useCount; Point(int x, int y) { this.x = x; this.y = y; } final static Point origin = new Point(0, 0);}

the class Point declares a final class variable origin. The origin variable holds a reference to an object that is an instance of class Point whose coordinates are (0, 0). The value of the variable Point.origin can never change, so it always refers to the same Point object, the one created by its initializer. However, an operation on this Point object might change its state-for example, modifying its useCount or even, misleadingly, its x or y coordinate.

MS Calendar as Google Calendar Events

Filed under: google, utilities, technology — Harshal at 11:12 am on Friday, May 18, 2007

Just try to forward your Outlook Calendar events to gmail and get surprised. Google automatically converts that to google calendar event and you can view that on your google calendar.

Different Democracies

Filed under: democracy, current affairs — Harshal at 8:05 am on Wednesday, May 16, 2007

Read this quote today.

Did you know the difference between the two democracies : USA and India

In USA, you can kiss in public but not pee. In India you can pee in public but not kiss :-)

Garbage Collection Report

Filed under: java, software, technology — Harshal at 5:15 am on Tuesday, May 15, 2007

The new -Xloggc:file option reports on each garbage-collection event, as with -verbose:gc, but logs this data to file. In addition to the information -verbose:gc provides, each reported event is preceeded by the time (in seconds) since the first garbage-collection event.

XCheck:jni - Additional checks for JNI

Filed under: java, software, technology — Harshal at 5:14 am on Tuesday, May 15, 2007

The new -Xcheck:jni command-line option performs additional checks for Java Native Interface (JNI) functions. Specifically, the Java Virtual Machine validates the parameters passed to the JNI function as well as the runtime environment data before processing the JNI request. Any invalid data encountered indicates a problem in the native code, and the Java Virtual Machine will terminate with a fatal error in such cases. Expect a performance degradation when this option is used.

Deadlock Detection in Java

Filed under: java, software, technology — Harshal at 5:13 am on Tuesday, May 15, 2007

A deadlock detection utility has been added to the Java HotSpot VM. The utility is invoked by a Ctrl+\ on the command line while an application is running. The utility detects Java-platform-level deadlocks, including locking done from the Java Native Interface (JNI), the Java Virtual Machine Profiler Interface (JVMPI), and Java Virtual Machine Debug Interface (JVMDI).

Next Page »