Monday, 24 November 2014

Windows symbolic link, save some space.

Windows Vista and 7 introduced "symbolic links" (something *nix systems have had for a long, long time) which basically allows you to create links to files. They act like shortcuts, except programs will treat them as the full file. A good usage of symlinks is when you have multiple copies of the same game. You don't need to copy the entire data, just only parts of it.

set maindir="D:\Installed\Call of Duty\main"
set targetDir="C:\Users\simplythebest\Desktop\CoD\main"

MKLINK %targetDir%\pak0.pk3 %maindir%\pak0.pk3
MKLINK %targetDir%\pak1.pk3 %maindir%\pak1.pk3
MKLINK %targetDir%\pak2.pk3 %maindir%\pak2.pk3
MKLINK %targetDir%\pak3.pk3 %maindir%\pak3.pk3
MKLINK %targetDir%\pak4.pk3 %maindir%\pak4.pk3
MKLINK %targetDir%\pak5.pk3 %maindir%\pak5.pk3
MKLINK %targetDir%\localized_english_pak0.pk3 %maindir%\localized_english_pak0.pk3
MKLINK %targetDir%\localized_english_pak1.pk3 %maindir%\localized_english_pak1.pk3

Example is implemented on call of duty but you can play around to save huge space where you wish to have multiple copies of same data/file/games. :)

Monday, 8 September 2014

Hello World Program in java.

This is a simple Hello world program in Java. Java Tut 01. How to write hello world program in Java.


A "Hello, world!" program is a computer program that outputs "Hello, World!" (or some variant thereof) on a display device. Because it is typically one of the simplest programs possible in most programming languages, it is by tradition often used to illustrate to beginners the most basic syntax of a programming language. It is also used to verify that a language or system is operating correctly.
Source: http://en.wikipedia.org/wiki/%22Hello,_world!%22_program
Code:

package HelloWorld;
public class Main {

public static void main(String[] args) {
System.out.println("Hello World!");
}
}