Category Archives: Development

Don’t put ng-app and ng-view on the same element.

I was having a problem where Angular’s routing system wasn’t working in my application. After some experimentation I found this out: If you have an element like then links which go to known routes won’t get handled by Angular’s, rather, … Continue reading

Posted in Development | Tagged , , , , , , | Comments Off on Don’t put ng-app and ng-view on the same element.

Static resource caching and cache-busting with ASP.NET MVC and AppHarbor

Serving static content (javascript, css, images) with headers specifying long cache expirations is easy. However, cache-busting those is hard. In this post, I’ll show how to deliver static content with cache-busting URLs. I’m going to show code which I wrote … Continue reading

Posted in Development | Tagged , , , , , | 4 Comments

jQuery UI Sortable + Bootstrap’s Buttons = Perfect Performance Storm

I ran into this crazy performance problem on: jQuery 1.7.1 jQuery UI 1.8.16 Twitter’s Bootstrap 1.4.0 Windows 7 / Chrome 16.0.912.63 See how the button starts dragging from the top left corner and drags really slowly? I stripped down the CSS … Continue reading

Posted in Development | Tagged , , , , , | 7 Comments

Using jQuery to provide an inline confirmation on buttons

I was working on a side project and wanted the user to confirm when they wanted to delete something. The normal window.confirm method was just too primitive so I decided to write something I liked a little more. Click the … Continue reading

Posted in Development | Tagged , , , , | 4 Comments

Getting the version number of your own Chrome Extension

http://siphon9.net/loune/2010/07/getting-the-version-number-of… This is so kludgy. I hope they make it better sometime, though :-/ See this Amp at http://amplify.com/u/a1arws  

Posted in Development | Tagged , , , , | Comments Off on Getting the version number of your own Chrome Extension

Unit testing CoffeeScript with QUnit

I got bitten by the CoffeeScript bug and decided that I liked it enough to try to add CoffeeScript support to Cheezburger.com. Paul Betts’ very cool SassAndCoffee library has a method which compiles CoffeeScript to JavaScript which I could easily integrate … Continue reading

Posted in Development, Uncategorized | 5 Comments

Turntable.fm: Mute until next track starts

Drag the link below up to your bookmark bar. When clicked, this bookmarklet will mute the current song in Turntable.fm and then unmute when the next song starts playing. Updated 7/5/2011 – Turntable.fm changed the name of their player control, … Continue reading

Posted in Development, Uncategorized | 2 Comments

Events on JavaScript Objects

I did a search for javascript events and came up with lots of articles about onclick and onload and all the lovely things we use to make our pages interactive. But in this case, I wanted a C#-style event, like … Continue reading

Posted in Development, Uncategorized | Comments Off on Events on JavaScript Objects

Building Chrome extensions from a service account

So I got our build system to call the chrome.exe to build my Chrome extension, but it didn’t work. It said: Could not find exported function RelaunchChromeBrowserWithNewCommandLineIfNeeded The build system runs in a web application, so I’d have to guess … Continue reading

Posted in Development, Uncategorized | Tagged , , , , | Comments Off on Building Chrome extensions from a service account

Basics of Statistics in SQL Server 2005 – Developer.com

URL:  http://www.developer.com/db/article.php/3622881/Basics-… I had a table that was too large to get a count of. I tried Select Count(*) from {Table} but the query didn’t want to come back very quickly. Another way to get the size is to get … Continue reading

Posted in Development, Uncategorized | Tagged , , , , | Comments Off on Basics of Statistics in SQL Server 2005 – Developer.com