Archive for September, 2007

Review: Blackberry 8830

For the past couple years, my Motorola E815 served me well. But after some unfortunate events, I was left with a phone with no screen that only worked on speakerphone. I decided it was time to upgrade, especially since I work for an email hosting company.

I decided that I wanted to try out a Blackberry. The reason I chose Blackberry is still somewhat a mystery, but it probably has something to do with my dislike of Windows Mobile and touch screens. Oh I almost forgot, everyone who has a Blackberry is addicted so it has to be good right?

The Blackberry 8830 model was the newest model Verizon was offering, so that’s what I got. So far, I love it. The user interface is just plain good. It is simple and elegant. Like any good phone, it does exactly what I need and does it very well. I highly recommend it.

.NET Slave Blog

While googling for some ASP.NET answers, I came across one of the best blogs I have ever seen. Any aspiring ASP.NET programmer should read every single article on his site. Mads Kristensen is the man. He truly uses his blog to share the wealth of knowledge he has accumulated.

Rails vs. PHP

While perusing my Slasdot feed, I ran across a great article on the ongoing Rails vs. PHP war. I agree with pretty much everything he says except I don’t like how he compares Rails vs. PHP. PHP is just a language, Rails is a framework.

Although I am a fairly young web developer, there is one repeating theme I have learned: not one framework can fit all the needs of a complex web application. For simple applications, frameworks like Rails, CakePHP, ASP.NET, etc. may fit your needs. But at the end of the day, its better to develop than adapt. The more you adapt to a framework, the more your application loses fluidity.

I have learned to focus on tools rather than frameworks. ActiveRecord implementations are great tools. Templating engines are great tools. A framework is a collection of all the tools someone else thinks you need. To create a great web application, I believe the developer needs to be in control, not the framework.

That’s just my 2 cents.

Data Access Application Blocks

Last week I discussed using ADO.NET in enterprise applications. A good part of the article was explaining the negatives of using the DataSet class. Although I stand by that conclusion, I also want to say that I like ADO.net overall. Some of the tools it provides are good for enterprise applications, while others are better for smaller applications.

ADO.NET provides common interfaces and base classes that can be used with different database providers. While some companies use everything Microsoft, we do not. In all honesty, I would choose MySQL over SQL Server for almost any project but that is an argument for another day. Like I was saying, ADO.NET is good, but can have some very repetitive code. Managing connections, creating commands, adding parameters, and executing readers is pretty annoying. But, the worst thing about ADO.NET is having to create database provider specific code. To create a connection to an Odbc database, you have to actually load the OdbcConnection class.

Luckily, Microsoft realized that ADO.NET had these short comings and created Data Access Application blocks, which are part of their Enterprise Library. I have been using them for a couple weeks and am definitely a fan. The greatest thing about it is the ability to completely abstract out the database provider. For example (Copied from the Microsoft website):

Database db = DatabaseFactory.CreateDatabase();
DbCommand dbCommand = db.GetStoredProcCommand("GetProductsByCategory"); 

// Retrieve products from category 7.
db.AddInParameter(dbCommand, "CategoryID", DbType.Int32, 7);
DataSet productDataSet = db.ExecuteDataSet(dbCommand);

If you didn’t notice, there was no mention about an Ole, SQL, Oracle, or Odbc provider. Also, I think it is a really clean and logical way to abstract the database. I definitely recommend checking out Data Access Application blocks, as well as the entire Enterprise library.

Testing a 24-pin ATX power supply

Disclaimer: Doing this can destroy your power supply.

A month or so ago, my desktop computer died. It wouldn’t turn on, after no symptoms of problems. My first guess was the power supply. So, I replaced it.

Nothing.

Next guess was the motherboard, so, I replaced it.

Nothing.

At this point, I didn’t want to spend anymore money if I didn’t know for sure what was wrong. So, I decided to test the power supply. Following this guide I shorted out the green wire (PS-ON) to a black ground with a paper clip while the power supply was off. I then plugged in the power supply until the fan started to spin, and quickly unplugged it.

Now I know my power supply works, if anyone knows how to test a motherboard or processor, let me know.