Jun 272015

Something is very wrong with Newegg. They used to be one of the best places to buy computers and electronics online. Now they are horrible.

Here’s my list of issues with them:

  • Lots of misleading product information.
    • We recently bought a monitor that claimed it supported 2560×1440 resolution when in fact it didn’t. The DisplayPort upscaled a 1080p signal to 1440 and it looked horrible. I had to read through a ton of the reviews to figured out that someone else had the same issue and they had done a bunch of research to find out the monitor didn’t truly support 1440.
  • They now charge large return shipping fees
  • They are also charge restocking fees on everything
  • Their support system is essentially worthless.
    • While you can contact support via a web form, it only allows 300 characters in the message. How can you possibly describe an issue clearly in 300 characters? That’s like 2 tweets.
What we were hoping would be a great price on an awesome monitor turned out to cost us nearly $80 for nothing. That’s the same as if I went to an ATM, pulled out four $20s and burned them.
Thanks Newegg for sucking. I’ll be buying everything on Amazon from now on.
Jan 072015

After updating to Yosemite, which updated Safari to version 8, autofill stopped working for localhost. After some searching, it appears that this is due new security rules for Safari and OS X. Of course, that didn’t stop me from trying to get this working again as it made developing on localhost very cumbersome. The fix is pretty simple.

All you need to do is edit your /etc/hosts file and add a fully-qualified domain name alias for Here’s how mine looks:

I added the cleanspeak.inversoft.com entry. Now I can access localhost using this alias and Safari nicely does autofill on form fields.

Jan 132014

Mac command line gold!

Copy a file to the clipboard:

The contents of my .zshrc are now on the clipboard and I can paste them into any other application (Mail.app, Word, whatever).

Paste the clipboard contents to the shell:

Anything that was on the clipboard is now in the file foo.txt.

Oct 252013

A cool bit of CLI trickery that James Humphrey shared with me. This allows you to use IDEA for diffing and merging via git’s mergetool and difftool commands.

First, add IDEA to your path (everything is in Mac-speak here):



Next, add these lines to your ~/.gitconfig file:

That’s it. Now you can use IDEA to diff and merge from git CLI like this:

Mar 082013

I’ve found another annoyance with MyBatis (there are many so be on the lookout for a long blog post that covers everything). This one has to do with how MyBatis handles missing TypeHandlers and required a bit of time stepping through their code.

If you have an object that contains a field whose type is not registered with the TypeHandler registry, MyBatis does not always produce a nice exception for you. Instead, it sometimes decides to return null instead of creating your object.

Here is an example:

I’m using Joda’s DateTime object here. If you don’t register this with MyBatis, it can cause this code to fail:

The fix is to register the TypeHandler like this: