‘Code’ Category Archive
IEnumerable Extensions (.NET)
Feb 01
I’m starting to really enjoy working with C# and LINQ with ASP.NET. I particularly enjoy the IEnumerable extensions which are added by LINQ. I never gave LINQ much credit before. That is probably because I viewed it as a way to allow developers to get away with not knowing SQL. Now that I’ve had theRead the whole post.
Updated Adium Spotify Xtra
Nov 08
I have made some improvements to the Adium Spotify Now Playing Xtra. I added a fast-fail when the application isn’t running. If for some reason any errors occur the script will return an empty string. I also added the HTTP link to the current track. You can find my version of the plugin linked viaRead the whole post.
Complex Default Values with Rails 3
Sep 05
I needed an extensible way to default values for new models in Rails 3.0.5 so I went Googling. I ended up finding a great question on StackOverflow. (of course) So I got started with the help of the answers on that question. I first tried the before_create callback but soon realized that it only firesRead the whole post.
Updated Classic ASP TextMate Bundle
Aug 16
I really need the symbols to be correctly identified. So I updated the bundle to include public & private methods of classes in the list of symbols.
Prevent jQuery.live() Handlers From Firing Multiple Times
Aug 05
Recently I was working on something where I needed to use jQuery’s .live() event handling. The problem I was experiencing was that my .live() handler was firing multiple times for the same event. I devised a rather simple way to avoid this issue and I’m going to share it with all of you. The firstRead the whole post.
