Posts categorized “Code”.

Another Reason I hate ie6

I recently had a ie6 that only broke when using digest authentication, all other browsers worked fine. Hence, yet another ie6 specific hack…

From Apache:

The Digest authentication implementation in previous Internet Explorer for Windows versions (5 and 6) had issues, namely that GET requests with a query string were not RFC compliant. There are a few ways to work around this issue.

The first way is to use POST requests instead of GET requests to pass data to your program. This method is the simplest approach if your application can work with this limitation.

Since version 2.0.51 Apache also provides a workaround in the AuthDigestEnableQueryStringHack environment variable. If AuthDigestEnableQueryStringHack is set for the request, Apache will take steps to work around the MSIE bug and remove the query string from the digest comparison. Using this method would look similar to the following.

Using Digest Authentication with MSIE:

BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On

This workaround is not necessary for MSIE 7, though enabling it does not cause any compatibility issues or significant overhead.

See the <a href="http://httpd.apache.org/docs/2.0/mod/mod_setenvif.html#browsermatch">BrowserMatch</a> directive for more details on conditionally setting environment variables

google via shell

I love this “shell” interface to google.

http://goosh.org/

Visual Comparison of Sorting Algorithms

Love the visual representation (little applets) of the sorting and it’s a great sort reference:

Sorting Algorithms

Quoting, “We all know that Quicksort is one of the fastest algorithms for sorting. It’s not often, however, that we get a chance to see exactly how fast Quicksort really is. The following applets chart the progress of several common sorting algorithms while sorting an array of data using in-place algorithms…”

Situated Software

Clay Shirky’s Situated Software:

Clay says, “I teach at NYU’s Interactive Telecommunications Program (ITP), where the student population is about evenly divided between technologists who care about aesthetics and artists who aren’t afraid of machines, which makes it a pretty good place to see the future.”

Mootools Mocha UI

I LOVE Mootools and here is another reason why - Mocha : “Mocha is a web applications user interface library built on the Mootools javascript framework. The Mocha GUI components are made with canvas tag graphics.”

Google Visualization API

The Google Visualization API lets you access multiple sources of structured data that you can display, choosing from a large selection of visualizations. The Google Visualization API also provides a platform that can be used to create, share and reuse visualizations written by the developer community at large.

Or, if that bores you, simply checkout their Visualization Gallery

Basic Intro to Version Control - Subversion/SVN

Here is a fairly straight forward and simple intro to version control for even artist types. http://betterexplained.com