Skip to main content

Posts

Fixed SVN + SSH in Red Hat Developer Studio CR1

If you get the following message during an svn+ssh transaction using Subclipse, The system cannot find the file specified. svn: Can't create tunnel: The system cannot find the file specified. You need to specify an ssh executable or equivalent. Modify the Subversion config file. On W!ndoz3 the file can be found in: C:\Documents and Settings\[user]\Application Data\Subversion\config In the [tunnels] section, see to it that it is not commented. Add / modify the following line: ssh = C:/Program Files/TortoiseSVN/bin/TortoisePlink.exe If you have Pageant running, you need not to specify the ssh key explicitly.

Nonprimitive Data Types in Java

Nonprimitive data types in Java are reference variables (object references), arrays and enums. All nonprimitive data types are references to memory where the objects live. [objects] References provide access to objects. The declaration syntax is just the same as with primitives. Decryptor decryptor; The above example shows that we are creating a reference to a Decryptor object. Take note that no real object is created yet. The object is created through the new operator. decryptor = new Decryptor(); The reference decryptor now points to a Decryptor object in the heap. [arrays] Arrays are objects used to hold a collection of primitive or nonprimitive data of the same type. Take note that even if an array holds primitive data, it is always an object. Steps for creating an array: 1. Declaration of an array variable (reference) char[] charArray; //or char charArray[]; 2. Instantiation of an array of a certain size charArray = new char[8]; 3. Initialization of ...

Removing bar311 worm

I got it from my sister’s digicam. Thanks to Leerz for the walkthrough. This worm is really annoying especially if you are more comfortable doing stuffs in the console. 1. Check for any bar311.exe, Autorun.inf, pc-off.bat files in mounted drives. 2. Delete if found. 3. Edit the following entries in the registry. HKCU\Software\Microsoft\Command Processor\"Autorun" HKLM\Software\Microsoft\Command Processor\"Autorun" Alternatively, you can download Noob.Killer , run it, then watch and learn.

Literals in Java

Literals are values found in the source code and are known at compile time. [boolean literals] Each boolean type can only hold a literal true or a literal false. Boolean types can not hold numbers unlike in C/C++. true false [char literals] A char literal can be represented by a single character enclosed in single quotes. char netPacket = 'K'; Another valid representation is in the form of a Unicode. char netPacket = '\uCAFE'; The following are also valid, these are special characters represented by using escape sequences. new line '\n' tab '\t' backspace '\b' form feed '\f' carriage return '\r' single quote '\'' double quote '\"' backslash '\\' [integral literals] Integral literals can be represented in 3 ways, octal, decimal, hexadecimal. Octal representations are preceded by a 0. Decimal representations contain no prefixes / suffixes. Hexadec...