Tuesday, 26 May 2009

Silverlight Rule 1

Discovered a Silverlight issue today in Visual Studio 2008.

When you add a user defined control to a control the parsing can stuff up. If the 1st control has event handlers that are not defined or parse incorrectly then you get into a state that is hard to recover from. I ended up with many AG_E_UNKNOWN_ERROR and AG_E_BAD_TYPE errors.

This leads to Silverlight rule no 1.

"Don't put event handlers into your Xaml."

Until the parser gets better, either VS2010, Silverlight 3 or a patch this seems to be the way.

Saturday, 23 May 2009

USB Flash memory

Been having horrible trouble with a 16GB USB Flash stick today. Couldn’t copy a 9GB file to it.  Never found an answer.  In the end I destroyed it by using convert.exe /FS:NTFS. rats



Edit:


I fixed my flash disk. In the end I booted from a windows XP DVD into a recovery mode. Then I used the FixMBR command. Oh boy.

Tuesday, 31 March 2009

First post with Windows Live Writer

I ran into windows Live Writer today.  The story goes at work we have merged with another company, usually we use Skype but the new company won’t use Skype so the two groups are using MSN for the time being.  Installing MSN Messenger also has a few extra tick boxes and one of them i windows Live Writer.  Its a simple enough WYSIWIG editor.

A Test Table  
   

With a few tricks like tables.

Technorati Tags:

And maps

Map picture

Headings

And video

In general it seems an improvement over the standard blogger editor.

We shall see

Wednesday, 18 March 2009

Android on a Eee PC

Heaps of people must have seen this recent development, putting Google's Android onto an Asus Eee PC.

http://www.electronista.com/articles/09/03/10/android.eee.pc.coming.soon/

http://www.brighthand.com/default.asp?newsID=14953&subject=Google+Android+Asus+Netbook

A few guys have already done it successfully to their own Eee

http://gizmodo.com/5122147/android-on-an-eee-pc

and most importantly its going into production with Asus. Is this the beginning of a new era in desktop OS's? Is it the thin end of the wedge? Who knows. Linux is now getting supported by a major player, but I wonder if Googles corporate instincts can match with Linux's Open Source ethos. Only time will tell, still I'm tempted to try android now.

Tuesday, 17 March 2009

Back from holidays

I haven't blogged for a while, I've just got back from holidays.

I have been reading HR Ekbias Artificial Dreams.





Its been a thought provoking book. Pointing out the problems with old Boolean AI, and also the lower end approaches like subsumption architecture and neural nets. A very good survey of AI over the years, as good as Daniel Creviers AI from '93.



Edit 2010.


You know I should add one of the things I got out of this book was the concept of a free ride. For any data structure, pattern matching method or AI technique to be successful out of specific boundaries it is clearly going to need a structure that will give it a "free ride" so it can generalize.

Monday, 5 January 2009

Linux ad comp

I found this link today about a competition to create a Linux ad to counter the "I'm a Mac. I'm a PC" ads.

The most interesting thing i read was in the comments. A lot of people were out bagging Linux as too hard to use. One person even said the Mac was the best desktop experience these days. I find it sad that Apple can take a base like BSD and create a better experience for users in a few years (about 8 I'd guess), when Linux has been banging away at it for 20.

I reckon this stems from a cultural problem at Linux headquarters. Some of this has been pointed out indirectly by Miguel De Icaza before. A pity as I want Open Source to work and I'd love to have a really good Open Source alternative to windows.

Wouldn't it be nice if there was only one or two flavours of linux instead of 85 or so.

This distribution chart shows it well.

Monday, 29 December 2008

CodeFest 2008

The inaugural CodeFest 2008 is over. Attendees Clarence Bakirtzidis and myself made our first 3 silverlight apps. Though I have made a small one before for work.

Hello World
Showing some images
Showing a video

We spent a day from 10 am and it was a lot of fun.
We used Microsoft live to host the silverlight apps as its free, the only hitch is it has no database. The video was encoded using Expression Encoder and the code was Developed using Expression Blend2 sp1 and Visual Studio 2008.

Our next attempt will have to be a game, or so we said as clarence left.