Thinking outside the box

SteelePrice.Net

My Links

Twitter Updates


Get Microsoft Silverlight
follow me

Article Categories

Archives

Post Categories

Image Galleries

Dot Net

General

Linux

OneNote

Windows

TechED Bloggers
Visual Basic Bloggers (OPML)

June 2008 Entries

Silvester - A Silverlight Twitter Widget

I have updated the Twitter widget on the right to Silvester.

Silvester - A Silverlight Twitter Widget

I did this for a couple of reason.  I really wanted a low impact Silverlight Widget on this page, and Silvester provides the best Twitter interface for a Blog that I have seen so far.  I took me a whole 5 minutes to do the update to the markup to place it on the page. 

Someday I wall actually update this blog engine to something recent... I don't want to go through the hassle of moving all my content and figuring out how to deal with the permalinks, not that I have so much traffic, I just want to do that because I have links to my own posts referenced all over the place in OneNote and I don't want them to become useless, a permalink is supposed to be permanent.  I will write a handler to do it when I have time and enough inclination to change engines.

posted @ Thursday, June 26, 2008 12:48 PM | Feedback (1)

Silverlight Control Contracts Diagram - For Skinning (Quite useful)

Tired of digging into controls with reflector or wading through the XAML from Blend and trying to figure out what is comment between controls?  This diagram is quite helpful when you are creating new styles and wondering what to include.

Silverlight Control Contracts Diagram - For Skinning

This was featured on Silverlight Cream #226 a while ago, but I just discovered it.

posted @ Thursday, June 26, 2008 12:10 AM | Feedback (0)

BitNami and Development Installations

I just discovered Bitnami... How have I never seen this before? I know about all the VM Appliance stuff and I use it occasionally but I really don't like VMs.  It's not a matter of speed really,its just a personal opinion for how I like to run things.  I used to really like VMs and I do still run several, the thing is, what if I want to install something like Redmine on a Windows machine then decide I don't need it on that machine, uninstalling from most other techniques are a horrid experience, usually easier to repave.

BitNami stacks make it incredibly easy to install your favorite open source software. Application stacks include an open source application and all the dependencies necessary to run it

BitNami :: BitNami Stacks

Bitnami changes that by making everything run in an isolated place that you can just nuke if you don't want it and everything continues on, no registry problem, no DLL Hell (which we still have no matter what the Marketroids tell you).  So far I am very pleased with what I am seeing, especially from the Ruby Space.

Microsoft needs to learn about how to make installations simple.  Installing Visual Studio is an all day process, and if you screw it up or put anything beta on that installation, repave is the only real way out.

I would really like to see Microsoft make Installable Appliances that live independently of my OS.  There is really no reason this cannot happen today and in Windows 7 this would be a great target of opportunity, but it won't happen due to what.... backward compatibility.

You know what... I don't care, they should just bite the bullet and make a real 64bit OS that is hardened and nothing can touch it except itself.  All programs should live in a sandbox that we can destroy at will.  How long does it take to copy a DVD? 5 Minutes, 10?  that is how long it should take to install Visual Studio.

posted @ Friday, June 20, 2008 6:30 PM | Feedback (0)

Telerik releases a CTP of their Silverlight controls

via Tim Heuer: Telerik drops some Silverlight control goodies

One of the things I love about the Microsoft developer ecosystem is the partner channels that are enabled to create great add-ons to our platforms and frameworks.  Our partners in this space usually get to the better implementations before we do, taking on the task of filling some gaps in unique implementations while our teams can focus on providing the best framework for enabling that construction.

Their controls implement support for DataBinding, the new VisualStateManager model, Templates/Styles, etc.  Some of the controls they are providing are some that you may find interesting or enhance the existing control suite from the Silverlight core:

    • Menu
    • TreeView
    • Upload
    • RadCube
    • RadNumericUpDn
    • RadProgressBar
    • Animation framework

One of their key features is they’ve decided to make these source code compatible with WPF.  The full WPF are not yet available.  You can download the CTP for free right now on their site and view some sample implementations on their sample site.

I have had the pleasure of working with Telerik for several years and have found their controls indispensable for building my applications.  If their Silverlight Controls even remotely compare to the quality of their Asp.Net controls, I will be finding them at the top of my tools list as well.

One of the great things about Telerik is that when you post something on their Forums, they respond quickly, offer demo code to get you going and fix reported bugs (within reason) in the next available version and sometimes will even send you an immediate hotfix. This sort of customer care is what I really admire about Telerik.

I expect to see many more controls coming in the official release, these are just a few to get us started.

posted @ Tuesday, June 10, 2008 2:31 PM | Feedback (0)

Silverlight 2 Beta 2 Downloads available

Still no sign of Blend 2.5 June CTP yet, will post as soon as I find it.

Jeesh! I don’t know why they seem to make this stuff so hard to find. Here they are, more later:

Silverlight 2 Beta 2 Download (4.66 MB)

Silverlight 2 Beta 2 Documentation (50.3 MB)

Have fun!

Peter Bromberg's UnBlog: Silverlight 2 Beta 2 Downloads

 

Note: from the Silverlight Forums -

The reason the links were not publicly announced is that everything is still being tested.  Part of that testing includes actual customer deployment scenarios from live servers, so the links are up but not made public before we're actually done.  We did find a couple problems during this phase, and recommend that you do NOT install until we actually announce the release.  VS Tools and Blend will be available at that time.

To address upgrade questions already appearing in this thread: updating the runtime and VS Tools will not require an uninstall.  For Blend, I'm not certain, but installing VS Tools Beta 2 will uninstall the Blend March (Beta 1) preview.  The Beta 2 runtime will not be able to run Beta 1 apps due to various breaking changes during this cycle.  All the details will be available when we release.

So be patient... they are all coming today.

As they become available, I will append the links here, when they are ALL available nd I have an Install Order I will make a new entry that covers it all.

Silverlight 2 Beta 2 Runtime:   http://go2.microsoft.com/fwlink/?LinkID=115261

Silverlight 2 Beta 2 Documentation:     http://www.microsoft.com/downloads/info.aspx?na=22&p=17&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=&u=%2fdownloads%2fdetails.aspx%3fFamilyID%3dbce7684a-507b-4fc6-bc99-6933cd690cab%26DisplayLang%3den

Silverlight Tools Beta 2:   http://www.microsoft.com/downloads/details.aspx?FamilyID=50a9ec01-267b-4521-b7d7-c0dba8866434&DisplayLang=en
(this is silverlight_chainer which includes the SDK)

Silverlight 2 SDK Beta 2:  http://www.microsoft.com/downloads/details.aspx?FamilyID=ba7b510d-0646-4d06-9834-cb82d669872a&DisplayLang=en

Expression Blend 2.5:   http://www.microsoft.com/downloads/details.aspx?familyid=32A3E916-E681-4955-BC9F-CFBA49273C7C&displaylang=en

Deep Zoom Composer 0.9.0.3:   http://www.microsoft.com/downloads/details.aspx?FamilyID=457b17b7-52bf-4bda-87a3-fa8a4673f8bf&DisplayLang=en

All these are now working, so we are “Off to the Races“

Go Forth and build something COOL! 

 

UPDATE:

All of the above with instructions are available at: http://silverlight.net/GetStarted/

I had an error when I first intalled the Chainer, this is one set of solutions:

http://weblogs.asp.net/bradleyb/archive/2008/06/06/upgrading-to-silverlight-beta-2-and-visual-studio-2008-sp1-beta.aspx

 

posted @ Friday, June 06, 2008 11:28 AM | Feedback (0)

Now Available- Microsoft® Silverlight™ 2 SDK Beta 2 Documentation

For those who can't wait to get started learning the Beta2 changes... Like Me!

Microsoft® Silverlight™ 2 Software Development Kit Beta 2 Documentation

Brief Description

June 2008
The Microsoft® Silverlight™ 2 SDK Beta 2 Documentation

Download details: Microsoft® Silverlight™ 2 SDK Beta 2 Documentation

posted @ Thursday, June 05, 2008 12:43 PM | Feedback (0)

Skinning Silverlight controls just got easier

Tim Heuer just posted about Skinning in Silverlight 2 Beta 2.  We saw this at the MVP Summit and now that we can talk about it...

This has been one of the features that I’ve been excited about for a while since I heard we were changing it.  With the release of Silverlight 2 Beta 2 and the updated preview of Expression Blend 2.5 (June 2008), skinning and styling controls within Silverlight gets a bunch easier.

...

You may not realize it but the ScrollBar has a lot of elements that you can skin.  The thumb, the handles, the bar, every little detail…so now in Blend 2.5 we can right-click and choose to edit that...

Skinning Silverlight controls just got easier

In the Alpha I had to write a scrollbar from scratch, it sucked. I never realized just how much you had to do to make a scrollbar function properly and then the make it scale properly as well, what a pain.  Now it's just there and we can change out the parts to suite our design.

Something more is the new "Parts and States" model that I am totally excited about because it really does make programming controls so much easier.  With Parts and States, we can effectively change out state management effects and what gets loaded in a part of a control very easily.  This is so much better than other models we have had to deal with in the past.  I am in the process of converting an App over to Beta2 and will be posting some interesting demos and code relating to Parts and State soon.

posted @ Wednesday, June 04, 2008 11:47 AM | Feedback (0)

Thinking Different with Linq and Lambdas

Today I had to look through a set of controls to extract the Text and build a dynamic search.

Normally, this means looping and/or a bunch of Ifs to do some validation.  With Linq to Objects at our disposal I distilled exactly what I needed down to this:

 

Dim q = From c In SearchCriteria.Controls _
        Where TypeOf c Is RadTextBox _
        AndAlso c.Text.Length > 0

Dim params = q.ToDictionary(Of String, String)( _
                Function(r As RadTextBox) r.ID.Remove(0, 5), _
                Function(r As RadTextBox) r.Text.Trim)

At first glance this is a so what... until you look at what it is really doing for me.

I am looking at a Web Page that I need to extract a bunch of criteria from and many of them will most likely be blank, so why even loop through them?  The AndAlso takes care of any problems arising from controls that are not RadTextBox.  Additionally, I need to take the results and put them into a Dictionary so that I can pass this onto my Dynamic Query routine.

The code this is replacing is about 30 lines of code (that I didn't write...) and I can see exactly what is going on in this concise format.  All I had to do is think a little different from the old habits of coding and apply some of the great new tools we have at our disposal.  What the Old code did was to loop through all the controls in the SearchCriteria DIV and check to see if .Text was filled, but to do that, it needed to cast the Control.  Then on top of that it needed to add the Dictionary Item.

This new code could actually be written on one line, but for programming clarity and readability, I broke it up.

Now this really reads easy and works perfectly, thanks to Linq.  A little refactoring and this could become a permanent addition to a Utilities class.

nb: the Remove leverages the fact that I use "Find_<DBFieldName>" in markup and not have to resort to bindings or strings, it also makes this a candidate for a code generation template.

posted @ Tuesday, June 03, 2008 5:06 PM | Feedback (1)

Reaction to Bill Gates Keynote at TechED

But while he touched on Gates favorites like more natural human-computer interaction and easier software development for everyone, he focused on how Microsoft looks at the changing software development world today.

Most significantly, Gates talked about how modeling will transform software development for Microsoft customers, especially in how the software development lifecycle is managed. "Over time, code gets complicated, and you want to be agile and change it," he said. "This is definitely an area that's open for improvement."

He brought Microsoft technical fellow Brian Harry on stage to demonstrate some of the progress Microsoft has made in its modeling strategy, code-named Oslo. Microsoft intends to deliver some of the first test versions of a modeling language, repository, and tools by October at this year's Microsoft Professional Developer Conference.

Bill Gates Gives Last Big Speech Before Leaving Full-Time Microsoft Role

We get something other than VSS for the first time?  This is great, I just wish they would internally support other repositories in VS, like SVN...

So Bill is basically talking about  possible solution to what I have been whining about lately.  Software is just to damned hard to develop especially for smaller companies.  They can't throw 50 people at a project, they may have 1 or 2, and this is where tools to encapsulate an entire complicated solution shine.  The same guy can look at everything and see the relationships of the layering, make changes and not be required to be an expert on all technologies, they just need to be an expert in how to GENERATE code, the templates take care of the rest.

Modeling really helps helps if it is a streamlined into an integrated system that can be taught to outside contractors with ease.  Hopefully this will become a mainstream knowledge category for development.  So far with Oslo, I am really liking what I see, but I am not convinced yet, it looks like its too reliant on Biztalk which is only applicable for Enterprise development, not the small guy.

Models and templates could be sent out for development then used in house to build real applications.  I see templating nd software factories as a growing market that will come into the mainstream when it becomes a streamlined solution.  Today its not even close, but with a little tweaking and sharing between groups at Microsoft, all that could change for the better.

posted @ Tuesday, June 03, 2008 11:19 AM | Feedback (2)

Microsoft linking Silverlight, Ruby on Rails

I really wish I could attend this.

(InfoWorld) Microsoft Corp. plans to demonstrate integration Friday between its new Silverlight browser plug-in technology for rich Internet applications and the Ruby on Rails Web framework.

The integration will be done via a plug-in, according to a Microsoft representative. Microsoft officials will detail Ruby on Rails efforts at the RailsConf 2008 conference in Portland, Ore., which is taking place now through the weekend. The plug-in will be free to conference attendees.

Microsoft linking Silverlight, Ruby on Rails

First off, let me explain a little about my understanding of Ruby.  I know nothing about it... so then, WHY in the heck do you keep posting about it? 

I first looked seriously at Ruby when I saw a demo by John Lam at the MVP Summit.  When I saw this I wondered why the heck are they showing this to us in a Visual Basic track?  I believe there is some strategy there that we can leverage.

from the above article:

The IronRuby project in general has featured processes that make it easier for Microsoft to develop open-source projects, said Lam.

"What we learn from building IronRuby will be applied in other product groups to help us become more open and transparent than we have been in the past," Lam said.

John doesn't say IF... he says WILL.  That is a pretty strong word and what can we infer from this?  What I saw at the Summit for the most part was very intriguing, but I didn't take it seriously when I saw it, I took it seriously when I got back and started really looking at what Ruby's Pluses are.  I have posted a few entries about that recently and I want to see just how some of its features can be placed into VB.

The great thing about Ruby is that it can do so much for you.  Funny, we used to say that about VB.  ActiveRecord (which is basically Linq and EF done better for the web) is really a great concept and makes me think of what VB tools at Microsoft could be.  At the same time I am thinking that I should learn (in great depth) yet another modern language and what should that be Lisp? C#? Not really, I think it shall be Ruby.  Even though Twitter is bouncing up and down like a cat on a hot tin roof, that is not indicative of the language and does not put the power of the .Net framework underneath it.  If I had the power of the framework I can do all the things I like about both.

I will be watching and writing about where I go with this, but what I am really hoping for is that the VB Team can get some of the goodness that other languages can provide and that it just goes into the framework along with a terrific usability interface to VB.  The real question is how long will it take?  Are we looking short term, doubtful, I think we are off in VB11 territory for anything to get that far.  I don't think we are too early to start wondering where we will want to be coding in 5 years.

posted @ Monday, June 02, 2008 11:57 PM | Feedback (2)

We don't need no stinkin' DBAs...

This is precisely why I think that we need EntityDB. DBA's are great when you have the luxury of hiring one (or having one on staff).  MicroISVs and Small companies with a need for custom software do not always have this luxury, nor the insight to hire one.  In today's world of Code Generation, Metadata and an awesome pool of brain's at Microsoft - this can all be automated by some the best in the business.  Linq Plumbing should not be rocket science, it should be straight-forward and simple to understand.  I should not have to have a DBA to write a decent scalable model when the Object Model can generate a proper Database and communication layer all by itself.  I say it CAN, it just doesn't because there is not yet enough screaming for it.  So in the meantime, I will just keep screaming a little louder each day.

For example, one commercially available survey software that I won't name here, had code in it that retrieved of tens of thousands of rows from the database only to filter them out in a for/each loop in C#.

Needless to say, that ended up being a big bottleneck in terms of CPU use and network bandwidth.

The sales rep swore up and down about the scalability of the solution, when, in reality, it didn't take much traffic to bring the data center to its knees.

The moral of the story: trust your developers to write code, not manage huge amounts of data.

Depending on your developers, you may want to be careful about how much to trust them with the data.

Experienced DBAs can be a real pain to work with and that's what makes them great.

They demand referential integrity and schemas and won't let you make one little change to the schema to simplify what code you have to write.

Andy Leonard on Twitter's Woes

posted @ Monday, June 02, 2008 6:02 PM | Feedback (0)

Office 2007 Team in charge of Win7 UI... Frightening!

In light of Kathleen's recent post about a much the Office 2007 UI Sucks; This is an announcement that send chills up and down my spine - and not the good kind.  She is not the only one who hates it, try using Office 2007 on a Tablet.

Microsoft plans a completely new GUI for versions of Windows 7 running on the kind of high-powered computers that now run Vista. The same team that designed Office 2007 is in charge of this interface, and it's likely we'll see something like the Office 2007 Ribbon in place of Windows' traditional menus and toolbars. Unlike the Office Ribbon, however, the new UI—whatever it finally looks like—will be something you can turn on or off, so corporate users can maintain the same interface they've been using for years, without expensive retraining.

Microsoft Windows 7: What the Future Holds - PC Magazine

I for one HATE, I said HATE! the Office Ribbon it is a complete waste of space and User Interoperability.  As a Developer we cannot even make a ribbon without serious pain or a Third Party control.  As a user we cannot change it to better conform to our daily use.

So, if Microsoft wants to give developers the UI elements needed to conform to this strategy, maybe... They had also better fix all their crappy designers and give us built in Code Generation in VS10.  I should not need the Expression Suite as a Developer, it should at least have a designer that functions in the primary Development Suite.

So here we go again, 2 years of speculation, delays and an end result that falls far short of the goal.

posted @ Monday, June 02, 2008 3:16 PM | Feedback (0)

This sort of interesting work has me looking seriously at IronRuby

MagLev is a Ruby VM based on the GemStone S64 VM, which runs Smalltalk. The Smalltalk VM has been extended with special byte codes to make it Ruby compatible. GemStone's Smalltalk VM has been used for over 20 years in sectors such as real time financial markets and the worldwide shipping industry. It as a mature, fast, stable, distributed, and transactional data store which can hold over a trillion objects or 17PB (Petabytes) worth of information. The goal of the MagLev project is to bring this distributed object technology to the world of Ruby on Rails...

In essence, MagLev was filling the roles not just of the VM but also the caching and persistent storage layers.

InfoQ: GemStone Reveals Plans for MagLev - Ruby VM at RailsConf 2008

Oh how I would love to see VB make this even easier. But it won't, so I am looking seriously at IronRuby as a preferred development language.  I wonder if we will start seeing enough demo material to make it worthwhile. 

I'll be watching closely to see how John Lam's team keeps making progress.

posted @ Sunday, June 01, 2008 5:17 PM | Feedback (0)

Blogroll Me!

Blog Search Engine

Copyright © 2003-2004 H. Steele Price, IV -
All opinions are my own, not necessarily those of my employer, your mother, or any government agency.