Browsing All Posts published on »November, 2007«

The Pros and Cons of Being a Contractor

November 30, 2007

1

During my job hunting process, I have received many offers for interview from contracting agencies such as Volt and Excell. Since I have never been working as a contractor before, I needed to do some research to see what the pros and cons of being a contractor are. Here are what I found out.Pros Money. […]

Windows XP/Vista Auto-completion Mystery

November 28, 2007

0

I have an XP and a Vista box. On the XP box, the auto-completion works beautifully: it automatically suggests the name of the files or directory based on the first few characters that I typed. Auto-completion works in places such as the file open/save dialogs, the Run command, and the Internet Explorer’s web address line. […]

Java Exceptions List

November 22, 2007

59

Sometimes when I write Java code and need to throw an exception, I vaguely remember the exception’s name, but not to the exact spelling. For that, I am compiling this on-going list of exceptions to remind myself. AWTException AclNotFoundException ActivationException AlreadyBoundException ApplicationException ArithmeticException ArrayIndexOutOfBoundsException AssertionException BackingStoreException BadAttributeValueExpException BadBinaryOpValueExpException BadLocationException BadStringOperationException BatchUpdateException BrokenBarrierException CertificateException ChangedCharSetException CharConversionException […]

Colorize Your Code for Free Online

November 9, 2007

2

As I started to blog about programming, I run into the frustration of seeing my source code get munched because of symbols such as < or >. Surrounding my code with pre block does not help. After some research, I found help in the form of the Code Colorizer. The first thing I love about […]

How to Reverse Words within a sentence in C++

November 9, 2007

13

This is yet another popular interview question: given a string, for example, “Ask, and you might get it.”, write a C/C++ function to reverse the words so that it becomes: “it. get might you and Ask,”. Since I have documented my source code fairly extensively, you can read the source code and see how to […]

How to Print a Long Integer Using Only putchar()

November 9, 2007

12

How to Print a Long Integer Using Only putchar() Here is a popular interview question: write a C/C++ function which outputs a long integer to the console: void putlong(long number); To make it harder, the interview often specifies the following restrictions: You can only use putchar(char c) as your only mean of outputing to the […]

Follow

Get every new post delivered to your Inbox.

Join 34 other followers