Home | Blog| Screencasts
# Tuesday, October 02, 2007

Working on a project, I wanted to serialize the object as JSON:

using System.Web.Script.Serialization;

JavaScriptSerializer jss = new JavaScriptSerializer();
string serializedObject = jss.Serialize(object);

This is using the ASP.NET AJAX framework

I see that ScottGu has a post about building an extension method to perform this function .... very nice.

Tuesday, October 02, 2007 6:15:52 AM UTC  #    Comments [0] - Trackback

# Sunday, September 16, 2007

Recently I had the pleasure (or displeasure) of moving some existing asp.net sites to a Content Management System (CMS). The sites relied heavily on some ASP.NET modules for cookie tracking and some other things, so we needed to have an ASP.NET CMS so we could keep this logic. After a bit of searching around I narrowed the scope to two open source products: N2CMS and Cuyahoga.

I actually found Cuyahoga first and had thought that it would be perfect for us. However once I starting having a good look a couple of issues became deal breakers. The first issue was the Cuyahoga uses the Web Project model, which means that the site is complied into assemblies. So if we needed to make a small change to the site we would need to deploy an updated assembly. A rather small issues you might say, but for our needs it's actually a big deal. The other issue was the lack of versioning, hopefully it will get added in a later release.

After it became apparent that Cuyahoga wasn't going to work for us the way we were hoping, I jumped on codeplex to see what else was out there. It wasn't long and I found N2CMS, this looked from the outset to be a better run project. I really liked the declarative approach to creating templates as well.

So I rolled out N2CMS, its worked out OK, a few little things annoy me, but I think they would be a common problem in most low end CMS applications. For example I have some functionality in some user controls, I would love the CMS to allow me to just drop them into a page, rather than creating a template.

Sunday, September 16, 2007 5:23:54 AM UTC  #    Comments [1] - Trackback

# Saturday, September 08, 2007

I've been experiencing one of those periods lately where I've been really productive, I liken it to cricket when a batsmen is in good form. A number of factors have contributed to this, things like Tech-Ed and the fact that I have had a number of deliverables due. Just like cricket I think you go through periods where your form can slump when the conditions around you stay the same. You might still have lots of things going on around you but for what ever reason you just can't seem to clear them.

Tech-Ed was a big influencer in my recent good form, I had the same effect from the Tech-ed previously, its really good to interact with a bunch of passionate people. Now it seems that I wake up in the morning keen to get into some code, the funny thing as well about being in form is that the solutions you come up with often leave you wondering where they came from (in a good way). 

Saturday, September 08, 2007 1:11:00 PM UTC  #    Comments [0] - Trackback
Misc
# Tuesday, August 14, 2007

I was going through the US Tech-Ed DVD's that we got last week, anyway I came across an interesting session where Microsoft announced that they had licensed the Dundas reporting services charts and gauges for SQL Server 2008. This is great news, I haven't used the Dundas controls personally, but I've seen and heard good things about them. Its a shame they couldn't extend the licence back for 2005 users.

The new tablix control and new designer look great, lots of good things coming with SQL Server 2008, I still think my favorite is the MERGE statement, it will really make loading our data warehouses a lot easier. 

Tuesday, August 14, 2007 5:05:21 AM UTC  #    Comments [0] - Trackback

Well Tech-ed is over for another year, this year was fantastic, learnt a lot stuff that will benefit the things I'm currently working on.

I focused my time on:

BI / data mining

SQL Server

ASP.NET AJAX

Then on the WPF stuff, even though I find WPF extremely interesting, I can't justify spending valuable time on it yet, when it is unlikely that I'll be doing any serious development with it in the next 12 months.

So much was going on at Tech-ed, it was a great atmosphere.

It was unfortunate timing that my uni exams landed in the same week as tech-ed, I also elected to take an upgrade exam for the MCSD certs that I have. I haven't found out how I did in my uni exams (I'm confident) but I did pass the 70-553 upgrade exam. I've started looking at the next 70-554 exam, it doesn't look like fun. Only 2 more uni subjects to complete and I should have my masters.

Tuesday, August 14, 2007 3:36:43 AM UTC  #    Comments [0] - Trackback

# Sunday, July 15, 2007

I haven't had any problems using Vista, its been rock solid on all the laptops that we have. The one thing that really annoys me is the auto update. Well its not the auto update so much, see we usually sleep with two of our laptop in standby in our bedroom. However once a month, these laptops will come alive in the middle of the night and apply the updates and restart. So in the dead quiet of the night you will hear the sound of Vista starting up (it wakes you up in fright, I must say). Worse still, because the laptop lid is closed, the computer will sit at the login prompt until is is due to power down (which was up to an hour). Being cold and lazy I really couldn't be bothered getting up to open and close the lid, also both laptops never seem to update on the same night, so this past week I've been woken up twice by the sound of booting laptops.

Sunday, July 15, 2007 3:46:06 AM UTC  #    Comments [1] - Trackback
Misc
# Monday, June 25, 2007

Macpomme left a comment about how the family.show application would make a fantastic web sharing application. Well it turns out this has already been created, its called Geni. Jeff Attwood at codinghorror.com has also spoken about this application for the brilliant way that it avoids the login barrier. I recommend having a look at this site, before you know it you will have added your family tree. 

Monday, June 25, 2007 7:54:40 AM UTC  #    Comments [0] - Trackback
Misc
# Wednesday, June 20, 2007

For various reasons I needed to connect to one of our SQL Server boxes which has been setup to run on a non standard port. At first I tried the normal way to address a port: 192.168.0.3:3000, but that wasn't working. After some googling I found that you need to use a comma:  192.168.0.3,3000.

Wednesday, June 20, 2007 3:37:08 AM UTC  #    Comments [0] - Trackback

# Monday, June 18, 2007

I stumbled across a pretty cool feature of SQL Server Management Studio the other almost by accident. It turns out there is an option to send the operation you are doing to script. For example my screen shot shows the create new login dialog. Now there is no excuse for developers not to check in database change scripts (I'm referring to all those point and click database developers).

SQL2

Monday, June 18, 2007 10:33:29 AM UTC  #    Comments [0] - Trackback

Well pigs must be flying, a couple of weeks ago I bought a black MacBook. My friend who is a mac user pretty much pressured me into it, the MacBook was some stock that was being replaced by the new MacBooks, so it represented a good savings.

So for the last week or so I've been playing with OS X.

Monday, June 18, 2007 10:03:21 AM UTC  #    Comments [1] - Trackback

Categories
Statistics
Total Posts: 48
This Year: 33
This Month: 16
This Week: 2
Comments: 8