Craig Nicholson

My blog has moved to http://craign.net/.

News

My blog has moved to http://craign.net/.


AfrigatorI shmaak SA Blogs, sorted with Amatomu.comSign the petition for Xbox LIVE in South Africa. Locations of visitors to this page

Communities

Development Blogs

Development Tools

General Tools

Personal

SQL Server 2008 and .NET Framework 2.0 SP2 dependency explained

Recently a local SA Developer .NET community member reported an issue installing SQL Server 2008 Express as it required the as yet unreleased .NET Framework 2.0 SP2.

I have explained the dependency in my post over here.

A practical use for filtered indexes

Finally there is a solution to having a unique column with NULL values in it. The answer is using SQL Server 2008 filtered indexes but there is a practical limitation as well.

Read more in my post over here.

Tech-Ed South Africa 2008 Photos

I took some candid photos at Tech-Ed South Africa 2008 down in Durban and I’ve blogged them on my post over here.

Time to monetize your gaming creativity

Make games, Make moneyYou’ve played Xbox 360 games with the millions of gamers on Xbox LIVE. You’ve chatted, shared, and dominated in games of all kinds. But what if those millions could be playing your game?

Better still – what if you were getting paid for it?

Read more in my post about it over here.

Silverlight 2 with Brad Abrams reminder

Just a quick reminder that there is still space available for the SA Developer .NET session Silverlight 2 with Brad Abrams. Please take a moment and RSVP over here on the forum thread.

Develop a game and win money

The 2008 Microsoft XNA Dream-Build-Play Challenge has begun and its looking like its going to be a really cool competition this year. The best part is that is a worldwide competition so that means even us South Africans can win.

Read more about it on my blog over here.

Blend doesn’t support managed type converters

If you are busy trying to develop using Microsoft Silverlight 2 beta 2 and Microsoft Expression Blend 2.5 June Preview you might have encountered errors while working in Blend such as The TypeConverter for "DataGridLength" does not support converting from a string. although Visual Studio doesn’t complain about the XAML and the code runs just fine.

Read more about the problem here.

WatermarkedTextBox control for Silverlight 2 beta 2

When Microsoft released Silverlight 2 beta 1 they included a really cool control called the System.Windows.Controls.WatermarkedTextBox control. It lived in the assembly System.Windows.Controls.Extended.dll and was included in your XAP file when you did a build. However in Silverlight 2 beta 2 the one control that didn’t make it was the WatermarkedTextBox control.

See my blog post here for the workaround and updated source code for the control.

Microsoft Silverlight 2 Beta 2 released

Yes after they promised earlier this week its finally available for download. See my post over here for all the details.

New primary blog - CraigN.NET

It seems that a lot of people didn't see a previous post about my new blog over at CraigN.NET.

Please ensure that you update your feed reader with the new feed http://feeds.feedburner.com/craignnet/.

Posted: Jan 03 2008, 07:34 PM by Craig Nicholson | with no comments
Filed under:
Silverlight 1.1 UserControl C# template code does not follow best practices

Why does the Microsoft Visual Studio team not follow the best practices internally? When creating a Silverlight 1.1 UserControl under Visual Studio 2008 Beta 2 it generates the following code by default.

    System.IO.Stream s = this.GetType().Assembly.GetManifestResourceStream("Project1.UserControl1.xaml");
    this.InitializeFromXaml(new System.IO.StreamReader(s).ReadToEnd());

Most developers would realise that this is not good code. Why do I say this, well firstly the code is creating two objects, a System.IO.UnmanagedMemoryStream and a System.IO.StreamReader, that implement IDisposable and are not disposing the objects immediately after use. Yeah sure the finalizer will take care of any unmanaged resources at the end of the day but why not just release the resources in a predictable and up front manner. I have recommended that Microsoft use the following instead.

    using (System.IO.Stream s = this.GetType().Assembly.GetManifestResourceStream("Project1.UserControl1.xaml"))
    {
        using (System.IO.StreamReader sr = new System.IO.StreamReader(s))
        {
            this.InitializeFromXaml(sr.ReadToEnd());
        }
    }

If you feel strongly about best practices, please take a moment and vote for this on the feedback site here.

Cross-posted from CraigN.NET.

Telkom in the dwang for claims

image It looks like Telkom is in a bit of a pickle over its recent "Do Broadband" advertising. A post on MyBroadband details the complaint from a consumer that says its false advertising.

Mr Moorad lodged a consumer complaint against Telkom’s “do” broadband campaign, arguing that the advertisements claims of being suitable for ‘movies, gaming and music’ is misleading.

According to the ASA website, the complainant submitted that the advertising states that one can “do” music, movies and on-line gaming, but only affords the user 1GB. “This is misleading as a DVD-quality movie is at least 4GB and online gaming needs at least 20 GB monthly to play daily.”

While I agree that the "do movies" claim is a little bit of a stretch as I doubt Telkom would promote torrents and illegal movie sharing. They must surely be referring to paid movie downloads, I can't think why a consumer would want to pay for a highly compressed movies that are sub-DVD quality, can you?

I however don't agree that to "do on-line gaming" you need at least 20GB monthly of bandwidth. Is Mr Moorad downloading the games before he plays them or maybe he is playing Battlefield 2. As an Xbox 360 gamer I regularly play on Xbox LIVE and its common to work on about 150MB per hour for serious online gaming including voice chatting. So 20GB equates to about 136 hours of online gaming per month which I believe is more than excessive. So the 1GB is quite capable of at least 6 hours of serious online gaming; or perhaps a whole month of online Sudoku.

In its submissions to ICASA, Telkom clearly stated that "Telkom's ADSL service was never intended for bandwidth-hungry applications, such as gaming or online trading."

This I find highly amusing to read. Telkom has clearly been caught out in its statements. Its time for the left hand to start talking to the right hand, and oh, while they figure that out, can they sort out the service delivery issues etcetera etcetera...

Cross-posted from CraigN.NET.

New blog - CraigN.NET

A little while back I decided I needed my own space to blog about development, gaming, life and everything that goes along with it. Up until now I've been maintaining two blogs, a primary development one and a gaming one. So here it is, my new blog Craig.NET, make sure you add it to your feed reader and update your blogroll.

Oh and if anyone knows a graphic designer that knows how to make magic with WordPress, let me know.

Cross posted from http://xboxbloggers.net/CraigN/.

Building data interfaces for .NET

SA Developer .NET Just a quick reminder for the free SA Developer .NET event tomorrow, the 8th September 2007, on building .NET data interfaces. The talk will be held in the Microsoft auditorium in Bryanston and presented by André van Rensburg.

There are tons of resources available on how to access data from a .net application. How is it that this is still really difficult to get right? The myriad of options and requirements often makes it difficult to map the two extremes effectively – to choose the right option for a given requirement. I will discuss some practical approaches to accessing data with ADO.net that focus on fast and effective ways to get up and running without sacrificing flexibility and maintainability. I will include discussions on DAL-BLL generators, data object verses data sets, usage scenarios, presentation integration, and if time permits, how to 'Linq' it all together.

If you haven't done so already, please RSVP and let us know you are coming on the forum here.

Cross-posted from http://craign.net/.

MadLove wins Xbox Soundtracks competition for South Africa

Xbox SoundtracksIn a previous post I originally announced that two South African bands were in the top rated tracks list in the Xbox Soundtracks competition run by Microsoft and Universal Music. Today it was announced in a press release that the local Johannesburg based band MadLove had been crowned as the South Africa winner for the Xbox Soundtracks competition.

MadLove’s Angel’s Fall track for Tomb Raider was ranked as the best track by visitors to the contest site. For the past month thousands of musicians and gamers alike from across Europe have been creating new music tracks inspired by the latest high-definition games on the Xbox 360. From the colourful fantasy of Viva Piñata to the gritty battles of Halo 3, DJs, bands and composers have created tracks cut to a wide range of latest Xbox 360 titles. Gaming and music fans alike then logged on to view and rate the entries, with MadLove emerging as the winner.

“We’re ecstatic!!!!! It’s the greatest news we’ve ever received. We pray that this result opens doors for us to get our music out to the world, said Shahir Chundra, lead singer of MadLove. “Thank you so much XBOX and especially everyone around the world who voted for us!!!”

Jozi based MadLove has high aspirations both locally and internationally.  Made aware of the Soundtracks initiative through a press article, MadLove was immediately inspired to get involved. “Once we had watched all of the trailers it was clear that Tomb Raider was the only choice for Angel’s Fall”, said Shahir.

In recognition, MadLove will get to visit a local Universal Music studio in Johannesburg to record their tune with the help of top producers and engineers. In addition to this, they will also get an Xbox 360 console and a T9 Samsung mp3 player.

Congratulations to all that submitted entries as I believe you are all winners. MadLove's winning entry is available online here.

 

Cross posted from http://xboxbloggers.net/CraigN/.

More Posts Next page »