Your browser is very old. You might enjoy surfing the web more if you used something newer like:

Google Chrome

Even Firefox would be OK.

If you're being forced at gunpoint to use Internet Explorer, you should at least upgrade it. Version 8 is tolerable and 9 will be OK when it comes out.

Posts from June 2010

Even better overriding the Firebug console in IE

I wrote, a while back, about Overriding the Firebug console object to prevent IE from throwing errors when you console.log all over your code.

The only problem that first version is that it’s too much to type. Here’s a much shorter way of doing it using object literal notation.

if(typeof console=='undefined'){console={log:function(){}};}

It’d be easy to enough add a handler for the console.debug function and to have those functions actually do something in IE (of course you could also just use Firebug Lite) but I find the snippet above is good enough for most cases.

SQL Management Studio 2008 says “Saving changes is not permitted.”

Does SQL Server Management Studio 2008 constantly tell you your table changes can’t be saved?

“Saving changes is not permitted. The changes that you have made require the following tables to be dropped and re-created. You have either made changes to a table that can’t be re-created or enabled the option Prevent saving changes that require the table to be re-created.”

Good news! You can turn that shit OFF.

Go to “Tools:Options”, click on “Designers”, click on “Table and Database Designers”, UNCHECK “Prevent saving changes that require table re-creation”

Revert to a previous revision with Subversion

One of my favorite features of TortoiseSVN is the ability to bring up the log, click on an old revision, and revert the changes from that revision.

If you’ve ever dealt with a situation where you’re asked to make changes to something, then someone decides to go back after you’ve committed those changes, the above is a lifesaver.

The only beef I have is reverting the changes from a previous is revision is totally non-obvious from the command-line. Did you expect the svn revert command to accept a revision number? Nope.

In reality, TortoiseSVN isn’t actually doing a revert all. It’s doing an svn merge!

So if the file index.php is at revision 500 and you want to revert the changes from revision 499, you do this:

  svn merge -r 500:499 index.php

That reverse-merges the changes from 499 and modifies the file in your working copy. Keep in mind, you still have to do an svn commit.

Of course, if you change you mind, you can always do an svn revert to undo the merge.