Thursday, November 12, 2009

Language

elated
with a vengeance
fumble
talk/speak out of turn
in seclusion
dizziness
drowsiness

Usage of "were to"
http://www.englishpage.com/conditional/wereto.html

Monday, November 9, 2009

Linux/Unix Programming

Limits of handles etc:
http://www.moythreads.com/wordpress/2009/12/22/select-system-call-limitation/
Commands:
Touching all files in a directory including subdirectories :
find ./ -type f -exec touch "{}" \;

Viewing system name
uname
Setting environment variable:
export ENV_VAR=
Unsetting environment variable:
unset ENV_VAR
Viewing environment variables
env

Viewing processes running on the system
ps -a

Tuesday, November 3, 2009

Java

To view free audio / flash tutorials on Java see the following:
http://www.jeogrip.com
http://www.javavideotutes.com

Java for desktop/servers use is available in the form of Java SE. The JDK (Jave SE Development kit) can be downloaded from http://java.sun.com/javase/downloads/index.jsp.

Books:
The Sun Java Series contains good book on Java. For an introductory text covering Java SE 6 "The Java Tutorial 4th Edition" is good.

Key points :

1. Java doesn't support Multiple inheritance, which is supported by C++.
2. Java implements namespaces through packages.
3. interface defines the contract that the class implements, and is enforced by the compiler.


Notable differences b/w C++ and Java :
1. No support for Multiple Inheritance.
2. No support for Pointers.
3. No support for preprocessor directives.
4. Everything should belong to a class, even the main method.
5. New for statement syntax : for( int a = arrayOfInts) { //.... };
6. By default, reference are created to object and arrays. In C++, you need to explicity create a reference by using &. Primitive data types in Java don't use references.
7. Object need to be explicity free in C++, where automatic garbage collection is done in Java.