Archive for September, 2007


September 4, 2007

My mates at Mindscape have been working on an awesome product called LightSpeed. I haven’t had been able to use it in a commercial  setting yet (although some co-workers have – lucky devils 🙂 ) but I have been tinkering throughout their complete beta program and think there could be some awesome tool support put around this product to make it even that much better.  So… I decided to start an opensource project called LightSpeedContrib (I’ll put it public when I have some code stubs mocked up and ready to go in) sitting under the CodePlex site. The idea being that any generic supporting “stuff” surrounding LightSpeed could sit in here. Initially I see the following going in:

  1. A complete rework of LightGen (a little domain class to sql file generator and sql to class file generator that I cut over a couple of nights a while ago) and recompile to the released version of LightSpeed. Initially break this into just a console app and a MyGeneration template. If someone (or even me 🙂 ) wants to write a Windows Forms/WPF version then that could go in later.
  2. Some more validators – write some extra validators/get people using LightSpeed to put in any reusable validators so everyone can benefit 🙂
  3. Anything else people think is relevant. As a side project, a couple of nights ago I started looking into getting MonoRail sitting over LightSpeed (scaffolding support etc – got the basics going – yeyah!). Maybe these type of components could go in too… More info on MonoRail on LightSpeed to come 🙂

Any thoughts?

Keep an eye open for when the community site goes up too – the more interest the more its likely to take off/get some dedicated input 🙂


Silverlight and mouse scrolling

September 4, 2007

Silverlight currently doesn’t have any functionality for telling you about mouse scrolling so I wrote some bits to get the job done (no gurantees 🙂 ). Key points to note: Your browser supports detecting scroll events – Silverlight doesn’t. Silverlight can talk to javascipt and vice versa. The work around = get the javascript to hook the scroll event and fire that back into a Silverlight class which will raise the event to objects that have registered an interest. Result = Silverlight detecting scrolling 🙂 You can grab some code here if you want a look

WCF and the WebHttpBinding

September 4, 2007

One new binding with Orcas Beta 2 and WCF I’m really excited about is the new WebHttpBinding – got to love the Json all built in 🙂 Plus the new WebGet attribute to get your REST services on the way. One thing I thought was missing was the ability to be able to specify a callback method when you call a service and want some Json back (I couldn’t find an option/see anything in Reflector but maybe there is a way to get it in there?). The point being that if a browser does an HTTP GET using a script tag then it may want to put the Json it gets back through a callback function or assign it to some variable – not just dump the Json into the page 🙂

So to get this built in I made an http module which you can get from here. When you call the service and attach a query string parameter of callback=your_javascript_function_name_here it will wrap the Json getting spat out in the function specified 🙂

Hosting via bluecog

September 4, 2007

JD kindly hooked me up with an FTP drop so I can finally chuck some bits up. Cheers JD!

Other options I looked at where and drivehq + a couple of others if anyone is also looking for some file storage…

As for an FTP client I’m using SmartFTP –  found this guy along time ago and is very handy – if anyone hasn’t seen this app its pretty cool – and free for non-commercial users so check it out 🙂

Anyway, I’ll chuck some stuff up soon!

Chucking some posts up…

September 1, 2007

I haven’t blogged in a long time but thought I should start to chuck some of the stuff I’m working on out there. I had a bit of a think about what went wrong last time I was blogging and worked out some new things I’ll try this time around 🙂

  1.  Keep posts short – blogging != coding time – last time I was blogging I found posts could take a little while to format/gather content for and that meant less coding (which is a bad thing). This time I’ll try to keep the posts smaller so the code can keep flowing.
  2. Trying to keep pace – content can quickly get out of date – especially when you are working on some code that gets picked up/put down over a length of time in anticipation of a post. This time I’m just going to chuck stuff up when its done rather than worrying that it’s not the latest and greatest. In addition to this point when content is lacking rather than keeping the machine going I’ll just give up blogging for a while, do some more coding and then come back when I find something cool 🙂 This way I can still put out the odd post without trying to dig stuff out of the box.
  3. WordPress! Grrr – The updates and things going missing from the dashboard (like the stats graph for a few weeks) can be really annoying. I’m obviously still on the free WordPress platform so I’ll give it another shot and review over the next few months…
  4. Online storage – obviously not having your own private host can be a bit of a pain when it comes to posting example code etc. I’m looking into some options on this one.
  5. Lack of code formatting support and trying to make the front page still layout correctly (Hmmm – seems to be a common theme here for not just hosting my blog myself 🙂 ) I can’t find an option to add widgets anywhere but maybe a google will sort this one out – the other option is to not really post code in the post itsself but just chuck an attachment on (I see that has been added to WordPress now) or put on a file download.
  6. Actually getting the post out worts and all plus focus on one short and sweet post at a time! I’m looking at my dashboard now and have around 6 reasonible posts that never even got published since last time I logged in (months ago) – They range from things like the SQL CLR to using DotMSN. I’ll ditch those ones because they obviously aren’t completely finished but from now on I think I’ll limit my use of the draft functionality to keep me on track with my posts.
  7. oops – I’m now going to refer myself to point 1 🙂