Posted on May 3rd, 2008 by Elliot
In Microsoft Word…
How to set 2 columns
Click the columns button in the toolbar– it looks like 2 columns of text– and click the number of columns you want.
How to move margin up, for whitespace
On the left side, there’s a vertical ruler. Scroll to the bottom of the page, and find the margin indicator, by default about 1 inch from the bottom of the page. Click and drag it up to where you want.
How to remove margin on second page
This isn’t possible in older versions of Word. As a workaround, you can create a new document with different margins (Ctrl+N) and copy/cut and paste your content there.
How to create TM symbol
Type ™. Open parenthesis, t, m, close parenthesis.
Read More
Posted on May 1st, 2008 by Elliot
There are some ridiculous things in C++, like the fact that there exists getc(), getch(), getche(), getchar(), and _getch() and they’re all different. Press Enter to Continue getch
If you’re doing cin of an integer, and the user enters a character, they’ll get stuck in an infinite loop. I found a good way to fix this at bytes.com
There are several possible ways to remove the unwanted
characters. Here’s one:
cin.clear(); /* reset stream state to ‘good’ */
cin.ignore(numeric_limits<streamsize>::max(), ‘\n’);
This means: “extract and discard all characters up
to the first newline character, or the maximum possible
number of characters in a stream, whichever occurs first.”
You’ll need to add:
#include <limits> // for declaration of ‘numeric_limits’
#include <ios> // for declaration of ’streamsize’
Read More
Posted on May 1st, 2008 by Elliot
Answer: ifstream cannot be copied (doesn’t have a copy constructor).
Solution: Don’t store an ifstream. If you must, then declare and create a copy constructor.
This help me figure out this error: Google Groups
Read More
Posted on April 28th, 2008 by Elliot
They should use SSL (https)… but they’re not. So be careful!
http://wordpress.org/development/2008/04/wordpress-251/
Read More
Posted on April 28th, 2008 by Elliot
svn update brings changes from the repository into your working copy. If no revision given, it brings your working copy up-to-date with the HEAD revision. Otherwise, it synchronizes the working copy to the revision given by the –revision switch.
For each updated item a line will start with a character reporting the action taken. These characters have the following meaning:
- A
- Added
- D
- Deleted
- U
- Updated
- C
- Conflict
- G
- Merged
A character in the first column signifies an update to the actual file, while updates to the file’s properties are shown in the second column.
via red-bean.com
Read More
Posted on April 15th, 2008 by Elliot
I’m looking forward to the Asus Eee PC 900. I’ve always been in love with small laptops, ever since obsessing over the Toshiba Libretto many years ago. Fortunately they’re cheaper nowadays, and the technology is far better, too. Life is great
Here’s a video on YouTube of the 900 series hands-on. It will have multi-touch gestures and use Intel’s new Atom processor. I love small computers. It would be fun to play with one over the summer. Wow, I am seriously passionate about this stuff. I’ll watch the Wikipedia article closely for updates 
Read More
Posted on April 13th, 2008 by Elliot
Read More
Posted on April 11th, 2008 by Elliot
Read More
Posted on March 23rd, 2008 by Elliot
Read More
Posted on March 21st, 2008 by Elliot
Open port 6112, both TCP and UDP, using Port Forwarding on your router. The difference is night and day! Didn’t work AT ALL without port forwarding, works excellently with it. I used to wonder why hosting StarCraft games worked so much better on my old dial-up modem than with DSL/Cable. Port forwarding on the NAT router is why!
Read More