A short article about removing items from a standard C++ container. Click To Read More...
Archive for the ‘Tips’ Category
Windows on a MacBook Pro: Keyboard Differences
Friday, November 30th, 2007I recently got ahold of a nice MacBook Pro and I’m using it as my primary Windows box at work. It’s nice and snappy and I like it, but I’m having trouble getting used to the keyboard, let alone the one-button mousepad. I thought I’d use this post to collapse several google searches into one location. I’ll likely add to this list as I learn more tricks. Click To Read More...
Re-Sourcing Environment Variables in Windows
Wednesday, October 3rd, 2007I added some Environment Variables to my Windows operating system recently (right-click on My Computer, Properties, Advanced, Environment Variables). I was wondering if there is any way from an existing Command Prompt to pick those up. I know that all Command Prompt instances after this point will have those new environment variables defined, but I was just curious if there was an easy way to get an existing Command Prompt instance to “re-source” its environment variables.
On the other hand, is there any way to add a System Environment Variable to Windows from the command prompt?
Using tar to Snapshot a Subversion Working Directory
Thursday, April 26th, 2007I have a bunch of different Subversion repositories where I store documents. Occasionally I’ll place some unversioned files in these directories while working on something. Today I needed to take a snapshot of the contents of my hard drive but I didn’t want to keep all the hidden .svn directories. Here’s what worked for me. Click To Read More...
Knowing What The Browser Is Doing
Thursday, April 19th, 2007Sometimes it’s not obvious how a document is being interpreted by a web browser. For instance, you might write some XHTML 1.1, but the browser actually interprets it as HTML 4. You may be expecting the browser to be using Standards Mode (recommended), but it might actually be using Quirks Mode because you missed the DOCTYPE statement. I’ll periodically update this blog entry to keep track of how to do this stuff in a variety of browsers. Click To Read More...
How To Use IE Conditional Comments in “XHTML”
Tuesday, April 17th, 2007There’s a lot going on in the HTML Working Group mailing list right now about opt-in mechanisms for HTML5, discussions with smart people like Chris Wilson (co-chair and Microsoft IE champion) and Ian Hickson (WHATWG champion). I’ve going to sidestep the polemics for now - I’ve been trying to distill my own thoughts on that big debate, but things are still swirling around in my head because I’m still learning about the history of HTML, quirks mode, standards mode, DOCTYPEs, etc. Instead, I’m just going to write a (hopefully) quick entry on something I just figured out today. Click To Read More...
A Little Tweak To Firefox 2 Search Bar
Friday, March 30th, 2007About a year ago, I posted my technique for configuring the search bar in Firefox 1.5, complaining that it was far too small in the default UI layout that comes with the web browser. In fact, this bug still exists today and has 280 votes. But then again, your vote doesn’t matter. Anyway, Firefox 2 alleviated the hacking that I had to do to get the search bar to expand to fill up remaining space. There’s just one tweak in Firefox 2 that I still need for perfect search bar nirvana. Click To Read More...