A taste of development

May 29, 2008

Trust Microsoft with Claimspace (my response pending)

Filed under: Technology —Tagged , , , — simma1990 @ 4:55 am

Ted Haeger , aka ReverendTed  of Bungee Labs  (purveyors of the most kill-killski development toolkit for Web 2.0 developers, in the world), merely printed a thought agitative blog post requiring his readers: Can we…?

Confide Microsoft with Claimspace

Ted has in person gainsaid me to answer and I design to do indeed, in the next couple of days. In the meantime, I further you to go over out Ted’s post and press in with your thoughts and opinions, either hither or there.

Relating Posts:
Foundations for Structured Programming with GADTs
Scott Guthrie presents at NDDNUG
Lambda, the Ultimate TA

May 28, 2008

Where to Find oneself Expert Support

Filed under: Technology —Tagged , , , — simma1990 @ 9:43 pm

Microsoft’s prescribed support website is http://support.microsoft.com/. It has all kinds of resources like product FAQs, downloads, searchable KB articles, newsgroup pointers, and ways to hit people to help with your single needs or feedback.

Alas, I can’t consecrate attention to single customer issues. That’s because I work in product design and development, not customer support. Someone has to be revolved about that, or else we’d ne’er embark anything! Then, I’m moving to have to entrust your questions and comments to MS’s prescribed channels which specialize in that. Please preserve comments you put up hither worldwide and about the loader or performance.

March 24, 2008

LINQ – The Uber FindControl

Filed under: Technology —Tagged , , , , — simma1990 @ 12:00 pm

Also see: Trust Microsoft with Claimspace (my response pending)

With a simple extension method to ControlCollection to flatten the control tree you can use LINQ to query the control tree:

public static class PageExtensions
{
 public static IEnumerable<Control> All(this ControlCollection controls)
 {
 foreach (Control control in controls)
 {
 foreach (Control grandChild in control.Controls.All())
 yield return grandChild;

 yield return control;
 }
 }
}
Now I can do things like this:
// get the first empty textbox
TextBox firstEmpty = accountDetails.Controls
.All()
.OfType<TextBox>()
.Where(tb => tb.Text.Trim().Length == 0)
.FirstOrDefault();

// and focus it
if (firstEmpty != null)
 firstEmpty.Focus();

.csharpcode,.csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode.rem { color: #008000; }
.csharpcode.kwrd { color: #0000ff; }
.csharpcode.str { color: #006080; }
.csharpcode.op { color: #0000c0; }
.csharpcode.preproc { color: #cc6633; }
.csharpcode.asp { background-color: #ffff00; }
.csharpcode.html { color: #800000; }
.csharpcode.attr { color: #ff0000; }
.csharpcode.alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode.lnum { color: #606060; }

(more…)

Powered by WordPress Hosted by Edublogs.