Thursday, December 17, 2009

Missing Enum.GetValues() when doing Silverlight for instance ? - Blog'A'Little

Missing Enum.GetValues in Silverlight? Here is a partial work around.


Missing Enum.GetValues() when doing Silverlight for instance ? - Blog'A'Little

If you name your class something like myclass.shared.cs and remember to put the partial keyword infront of the class you can declare this class in your web project and it will be shared with your silverlight project (if using the business or similar tempate, which breaks things up in a silverlight and a web project. Remember to include the folling namespaces at the top of the class.


using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;

Have fun.

Tuesday, December 15, 2009

Silverlight DataSet

Many an oldschool developer has been put off from joining the "RIA" world because data access through web services is a comparitive pain in the arse compared to old school ADO.Net. Some smart guys in Canada might be changing the equation (hopefully). I haven't used Laskarzhevsky Software's free Silverlight DataSet control yet, but it looks promising. Check it out and let me know what you think.

Laskarzhevsky Software Inc

TranslateThis Button: Copy+Paste translation for 52 languages

One push button translation. I like it.
TranslateThis Button: Copy+Paste translation for 52 languages

jSnow jQuery Plugin

Add some unobtrusive snow to your website for the hollidays.

jSnow

Wednesday, December 09, 2009

Great Into Silverlight RIA Services Video

If you are developing with Silverlight and RIA Services, and you haven't seen this video, I would watch it. Two hours that are well worth it.


Currently Watching : The Official Microsoft Silverlight Site

Friday, December 04, 2009

Thursday, December 03, 2009

WCF and Silverlight

We are experimenting around with WCF vs .Net RIA Services at work. Here is a pretty good entry level tutorial on getting started with WCF and Silverlight. One WCF method is exposed and consumed by a datagrid. Also so SQLtoLinq is used as well.

MSDN Switzerland Blog


Tuesday, December 01, 2009

Photoshop Tip: CS3 and CS4 Get Rid of the Hide/Show All Menu Items

I was working with Photoshop and the stupid menu items kept hiding themselves. If you are a guru, and you know what you need, that is fine, but I'm not. I'd like to always see everything and see it in the same spot in the menu list. Someone named Chris Koerner came up with a fix that makes this go away.

Remove “Show all Menu Items” From Photoshop CS4 « Chris Koerner

Thanks Chris!

Monday, November 23, 2009

JavaScript - Find position

This is kind of a useful script for setting the window's scroll position to that of an object's in javascript.

function Scroll2Pos(cID) 
{
var obj = document.getElementById(cID);
var curtop = 0;
if (obj.offsetParent)
{
do
{
curtop += obj.offsetTop;
}
while (obj = obj.offsetParent);
window.scrollTo(0, curtop);
}
}

It is based on this.

JavaScript - Find position


Friday, November 20, 2009

Thursday, November 05, 2009

Unit Testing: When You Should and When You Shouldn't

Unit Testing and Test Driven Development are all the rage right now, and rightly so, especially for the type of work some of the developers I work with do (low level switch programming on telecommunication critical infrastructure). But there are often cases where TDD and Unit Test is, well, overkill.

This article provides a much needed balancing perspective-


http://blog.codeville.net/2009/11/04/selective-unit-testing-costs-and-benefits/

Hat Tip: Elijah Manor