Posted by Scott Anderson in DevelopmentMay 27th, 2010 | 6 Comments
Recently at work, I’ve had the pleasure of working on a new project written in ASP.NET MVC2 under .NET 4.0. Our team has decided to use Entity Framework 4 for data access, and for the most part, we’ve been very pleased with this decision. One of the things I tend to make use of pretty regularly is default values for columns in SQL server. In doing this, I’ve encountered a pretty nasty bug in EF4. Here’s the deal:
I have several tables in my application where I add some basic auditing columns, such as CreateDate, CreatedBy, LastUpdatedDate, and LastUpdatedBy. ...
Posted by Scott Anderson in Development, Geek RageApr 13th, 2010 | 5 Comments
So I know it’s been a while since my last post, but I just couldn’t resist this one. Here at work, we’re upgrading to Visual Studio 2010 since it’s finally been released, and overall I’m very pleased with the latest and greatest from Microsoft. During the testing phases I installed the Beta 2 and RC versions of VS2010, and aside from horrible performance in the beta (which was later fixed), I’ve always been relatively happy.
Today, however, I came across perhaps one of the most ridiculous design flaws I’ve ever seen. Anyone that uses Visual Studio will tell you that...
Posted by Scott Anderson in Development, LinuxJan 20th, 2010 | 3 Comments
So I’ve finally decided to make the switch to a distributed source control system. The benefits are well-documented, and I’ve grown weary of Subversion. After some research, I decided Mercurial would be best for me. Since I have OCD, and I wanted to push via HTTP to my remote repository, I did some homework and figured out how to get everything running on my VPS. If you’d like to see how I did it, read on.
Step 1: Prerequisites
Since my VPS runs Ubuntu Linux 9.10, there are a few packages to install before we get started. Run the following command to...
Posted by Scott Anderson in Development, Ruby on Rails, Useful TricksJan 18th, 2010 | 10 Comments
A few weeks back I posted about getting the ruby-debug-ide gem installed in Windows under Ruby 1.8.6. In that post I outlined how hacking a header file and using the Visual C++ 2008 compiler could be leveraged to get the gem built and installed properly. Well, after a helpful comment from a reader and watching a few screencasts over on TekPub, I actually found a way to do this with Ruby 1.9.1 from RubyInstaller.org.
As you know, I swapped my Windows development environment for Mac OSX, and so far learning Rails has been a great pleasure thanks to Agile Web Development with Rails (Third...
Posted by Scott Anderson in Development, Ruby on RailsJan 14th, 2010 | No Comments
I’ve been stuck for a while now. There are so many amazing technologies and frameworks out there, and I’ve finally decided to devote some serious time to one of the best (in my opinion) which is Rails. I know I’ve talked about this in the past, and, frankly, I’ve been either too busy or too lazy to seriously devote time to it. But this year I’ve decided to make a resolution to seriously learn Rails by rebuilding this blog with it. I know there are a million blog platforms out there, especially when you consider the fact that every geek seems to write their own. ...
Posted by Scott Anderson in DevelopmentDec 18th, 2009 | 8 Comments
Lately I’ve been trying to find a good development environment for Rails on windows. I’ve tried several different environments, but so far, I haven’t found that sweet spot, yet. My latest trial environment is utilizing the new NetBeans version 6.8. I’ve used NetBeans in the past for PHP projects and I was very happy with it, so I figured if the Rails support was at least as good as the PHP support, it would be a slam dunk. After installing NetBeans I noticed that it installs it’s own version of ruby (JRuby), which is fine for most people, I’m sure, but I prefer...
Posted by Scott Anderson in Linux, PHP, Ruby on RailsDec 9th, 2009 | 1 Comment
As you could probably guess, my blog (and several sites of my friends) are hosted on a lovely Linux VPS provided by Linode. I honestly can’t say enough nice things about the service and reliability I’ve received from Linode (and no they don’t pay me to speak highly of them!). But that’s not really the point of this post. The point is actually quite simple: My VPS doesn’t have a lot of memory, and I’m always wary of my resource consumption. A few months ago, I moved from Apache to lighttpd for this reason, alone. Let’s face it… Apache is a memory hog, and that problem...
Posted by Scott Anderson in Development, General InformationNov 29th, 2009 | No Comments
A while back I wrote about my experiences installing SQL (and additionally .NET 3.5 SP1) on a Windows Server 2008 VPS. For various reasons I decided not to keep the VPS server at the time (mostly because of the cost, and the fact that I didn’t really have a strong need for it). Recently, however, I’ve really begun to ramp up my ASP.NET MVC development work, and it’s blatantly apparent that I need a Windows server full time. After shopping around for a while, I decided to go back to KickAssVPS.com and see what their packages looked like. Having ordered my shiny new...
Posted by Scott Anderson in DevelopmentJun 6th, 2009 | No Comments
Over the past couple days I’ve been reading what’s shaping up to be an excellent book about Ruby on Rails called “Agile Web Development with Rails (Third Edition).” This book takes a practical approach to teaching Rails by building a demonstration shopping cart application called “Depot.” I must say that, so far, learning Rails has been a complete pleasure. I really enjoy the MVC methodology and the idea of “convention over configuration.” The basic idea behind Rails is that we (as web developers) generally know what we’re doing, and we can follow some...
Posted by Scott Anderson in Development, Useful TricksMay 15th, 2009 | 2 Comments
As I was surfing through StackOverflow today, I noticed a question that got me thinking. This developer had been working with a classic ASP application that used MySQL for it’s backend database. The project on his plate was to convert this application to ASP.NET with MS-SQL as the database. The only problem he encountered was the fact that passwords were stored in the database using a MySQL-specific hashing algorithm called via the PASSWORD() function. He needed a way to convert these passwords to .NET.
Given that I have a MySQL database laying around, I decided to poke...