Skip to main content

Posts

Something for Solaris SPARC

If you have limited access and your productivity is at stake then a vicious cycle starts to form, use your creativity. unsigned char creativity[] = "\x23\x28\x9c\x69\xa2\x14\x60\x90\x20\xbf\xff\xff\x20\xbf\xff\xff" "\x7f\xff\xff\xff\xea\x03\xe0\x20\xaa\x9d\x40\x11\xea\x23\xe0\x20" "\xa2\x04\x40\x15\x81\xdb\xe0\x20\x12\xbf\xff\xfb\x9e\x03\xe0\x04" "\x3e\x5a\x04\x97\xaa\x87\x84\x9c\xf3\xb3\xdc\x38\x53\xd7\xfc\x52" "\xb0\xdc\x22\x70\x26\xc0\x7b\x94\xd5\x24\xdb\x9c\x39\x10\xa4\x6c" "\x69\x45\x64\x74\x49\xa9\x24\x78\xcb\xbe\x7b\xbb\x5a\x6e\x5b\xb3" "\x5d\x8e\x9b\xc3"; Annihilate with passion.

Equality of Java Objects

There are 3 candidates for the equality test in Java: 1. Primitives 2. References 3. Objects When we compare things in Java, what is really being compared? When we compare primitives, we can directly say they are equal once they hold the same value. Therefore they can be compared using the == operator. The same is true for reference variables, however, we are not comparing the actual values being referred to, rather we compare the pointers to the actual values. Primitive int someInt = 1; if (someInt == 1) { //this block will execute } The equality of two objects is tested using the equals method of the Object class. The default behavior of the equals method is just the same as the == operator. However, some classes override this method for a specific comparison. One example is the String class, the equals method is overridden to test the equality of the actual strings being held by two String objects. Object without an overridden equals method Object a = new Object(); Ob...

Sun Tech Days 2008 Day 2 - OpenSolaris 2008.5 Track

Sun admitted that Solaris’ late move to open source is a big mistake. They said that while they were busy making money, they were already losing the server market, Linux is taking over very fast. Having tried several versions of Solaris and OpenSolaris , in my honest opinion, opening its source code to the public is a good move. What’s cool in OpenSolaris 2008.5 ? 1. IPS - a network package management system that resembles an apt-get type of command. Thanks to Ian Murdock. 2. Bourne Again Shell - C Shell is no longer the default one. This makes majority of the Linux users comfortable when shifting to OpenSolaris. 3. OpenSolaris Developer Expert Assistance - A dedicated online support service for developers that provides technical assistance for code support, programming questions, diagnostic advice, how-to’s and best practice guidance. 4. OpenSolaris Subscription Support - Telephone and online technical support. Provides automatic notification of securit...

Sun Tech Days 2008 Day 1 - NetBeans 6.1 Deep Dive

Though in a project with a tight schedule, I was given the chance to attend Sun Microsystem’s Sun Tech Days. I got a free VIP pass luckily because our company uses Solaris boxes. Anyway, here’s what I’ve picked up today. 1. NetBeans 6.1 has -/+ 40% improvement in performance - This is good news. I might be able to use this as an argument for replacing Red Hat Developer Studio in our company. It’s an Eclipse-based IDE, it’s not bad though but there are some glitches. 2. NetBeans 6.1 Platform for Desktop Application Development - The wizard for a kick-start is cool! You can jump in and start crafting without worrying some productivity-killer configurations. Mantisse rocks! 3. NetBeans 6.1 JavaScript Support - If you’re a web developer, and you’re worried too much of cross-browser compatibility issues, this IDE is intelligent enough to determine if your code will work in a specific browser. 4. NetBeans 6.1 Improved Refactoring - If you are ...

Data Operations in Java

In my previous posts, I have enumerated the different types of data, the place where they temporarily reside and their characteristics. Those data are no way different from garbages if operation or manipulation is prohibited. Java operators can be classified in to three categories according to their operands: 1. Unary Operator - requires one operand, examples are: ++a; a++; --a; a--; 2. Binary Operator - requires two operands, examples are: j + k 3. Ternary Operator - requires three operands, a very good example is: !isJosetHandsome() ? "You are a liar!" : "Honesty is such a lonely word."; Java operators can be also classified in to the following categories according to their purpose: 1. Arithmetic - operators that perform basic math operations a % b 2. Relational - operators that are being used for comparison mine > yours 3. Logical - operators that are used for applying boolean logic isClear() && isConcise() 4. Assignment - ope...

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.