On a recent project I used a resource file to store a collection of XML schema files. When validating my XML, I needed to add all the schemas to my XmlDocument object. Instead of hard-coding each schema file's name, I decided to load the resources programmatically.
Here's a snippet of the code I ended up with:
XmlSchemaSet schemaSet = new XmlSchemaSet();
Assembly assembly = Assembly.GetExecutingAssembly();
ResourceManager resMan = XmlSchemaResources.ResourceManager;
foreach (string...
Recently I was discussing SQL Server encryption with some friends who have been using it to encrypt short strings such as Social Security numbers at their shop. I commented, "Just try searching those Social Security Numbers," they shared my lamentation, and we moved on to other subjects. Later that evening, though, I thought there must be a way to search those wretched encrypted blocks--somehow--and worked out the solution you are about to read.
The Problem
The difficulty lies in the fact that...
“Virtual TechDays” held on September 17-19, 2008
Recorded sessions and presentations are now available.
http://connectwithlife.co.in/vtd/default.aspx
Enjoy !!
Krunal...
So we got a Microsoft Surface machine at Phenomblue a couple weeks back and the tech team freaked, as expected. Everyone from art direction to programmer to business development were all over the machine from the moment we received the thing from Fed Ex. After the quick and rather ravenous un-boxing, the attempt to follow terribly inaccurate documented setup procedures, and ultimately an undocumented trial and error period, we fired up this future box for a test drive.
From the first attract application...
I made a comment about this in a prior post, but it was really long and wordy so unless you read right to the end you would have missed the announcement. So I figured I’d post a little ‘update’ to fill everyone in on what’s been going down. Over the last seven years I’ve worked for numerous small companies here in Winnipeg. I’ve been part of some interesting projects, had some successes, some failures, and a lot of lessons learned. I’ve tested the waters of independent consulting and had great success...
Foreword
What to blog about, what to blog about.... how about the way I look at making good software, with some broad, sweeping statements of truth? Roughly translated, you might say "the way I approach making software," because we all want it to be "good." Working with a team on a software project of any significant magnitude presents choices and situations of enormous complexity, both intellectual and emotional... Perhaps more than we developers give ourselves credit for.
A word of warning:...
Recon: Abandoned WWII Munitions Facility
Debrief:
While at work on Friday, I had that itch to go do some exploring. It had been a long week and I wanted to put my brain in a different gear for a while. Shortly after that I got a text message that read "I'm thinking about checking out this old WWII munitions site." Sounds like just what the doctor ordered.
The plan, as with any recon, is to locate and identify. So we figured on rolling out there in the daylight, looking around and then grabbing...
...now I will be Headblader. Thanks to a buddy, I now have on order a starter kit to get the old head shaved. I figured I'd totally embrace the inner convict look. With tats and goatee, shaved head was all I was missing. :-)...
In this issue: Jonas Follesø, Koen Zwikstra, Jeff Wilcox, Andy Beaulieu, Jaime Rodriguez, James Bacon, Terence Tsang, and Chris Hay
Jonas Follesø has been busy and reports that YouCard, DiveLog and WebcamPOC updated for Silverlight 2 RC0.
Jaime Rodriguez reports that We just published a codeplex project with source for > 25 Pixel Shader effects and ~35 Transition effects.. for WPF.
Koen Zwikstra reports that Silverlight Spy for RC0 available.
From SilverlightCream.com: Client-side...
Review : Microsoft Sharepoint Server 2007 Best Practices by Ben Curry (Author), Bill English (Author)
Unlike some other Microsoft SharePoint Server 2007 books that either talk about technical implementation of the product or delve only into the planning for a new implementation this book covers them all from Planning, Implementation and deployment of Microsoft SharePoint Server 2007. The book is full of real world scenarios and point the reader to the best practices learned on the field by the...
I have good news for the VBers interested in making the leap into the world of Rich Internet Applications (RIA). In additon to being available in C#, the Silverlight team has posted VB sample code for all of their How-Do-I videos. Thanks Silverlight team! Have a day. :-|...
"Good morning everybody, you're tuned to Computers 2K8 on sports radio 850 The Buzz" and so began today's show as we do every Sunday morning from 8am - 10am here in Raleigh, NC. You can download the show from the show's website or you can listen do us live as we stream the show across the web. Here a few of the topics discussed on this week's show... Steve Jobs is OK! Really, he's fine... An unsubstantiated rumor about Steve Jobs having a heart attack was posted Friday morning on the citizen journalism"...
When .NET 2.0 was released, a TryParse() method was added to many value types such as Int32, DataTime, etc. This was a huge improvement because there was no longer a need to catch expensive exceptions and drag down performance. However, one drawback of the TryParse() method is that the syntax is a little clunky. The most common example looks like this: 1: Person person = new Person();
2: string value = "21";
3: int num;
4: int.TryParse(value, out num);
...
So you’re running your fancy blog, and you bought a domain from somewhere that you’re using to point to that blog. Next step? You’re really wishing you had a consistent solution (or even any solution) for mail, so that you can have that admin@yoursuperawesomedomain.com address to impress your friends and colleagues. Well, Windows Live has a powerful option for you, and best of all it is completely free! Here are some of the great features of getting Windows Live Hotmail to host your domain’s mail:...
I wanted to create common function, that will work with the list of rows of Typed Dataset, e.g. List<MyTypedDataSet.MyTableDataRow).
I've created a function that expects as a parameter List of base DataRow objects, i.e. List<DataRow>. But compiler showed error, that it unable to cast
List<MyTypedDataSet.MyTableDataRow) to List<DataRow>. It does make sense, but what are the valid options?
The one, that I've used, is actually collect MyTableDataRow into the list of base DataRow...
Thanks everyone for the encouragement...I have about three more chapters and John has about one more to write for the book (yeah I'm the slacker). At the end of the weekend early next week I'm hoping to make that two chapters and then the week after than only one...It's coming along pretty nicely. If anyone is interested in pre-ordering here is the link: http://www.amazon.com/SharePoint-2007-Disaster-Recovery-Guide/dp/1584505990/ref=sr_1_1?ie=UTF8&s=books&qid=1223191459&sr=8-1. I know...
(image from Yahoo) Hat tip to John Goldsmith, VISO MVP and all round nice guy. For this great information. I often need to mock up Mobile (and if forced :-) ) desktop user interface layouts. Normally I do this straight in visual studio. However I may now move to Visio to achieve this thanks to these stencil templates http://developer.yahoo.com/ypatterns/wireframes/ I wonder, if Yahoo will ever release these as WPF controls :-) ...
Posted By:Richard Jones
|
|
10/5/2008 8:34 AM
| 0 Comments |
|
|
Some interesting books are going to be released later this year and can be pre-ordered from Amazon now.
Concurrent Programming on Windows by Joe Duffy Nov 2008
Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries (2nd Edition) by Krzysztof Cwalina and Brad Abrams Nov 2008
Windows® Internals: Including Windows Server 2008 and Windows Vista, Fifth Edition...
Several weeks ago (before the release of the CTP5 of MVC) I posted a way to leverage the EntLib Validation Application Block with MVC. Since then CTP5 has been released and this finally includes a mechanism for reporting validations. It is important to note that it does not include the mechanism for *how* to do validation but rather how to *report* validations. This is actually a great thing because, first off, it allows the flexibility to utilize whatever validation framework you please rather...
Rick Strahl had a great recent post on Running VisualSVN Server for Subversion Source Control. I have been running VisualSVN Server for my repositories for a little while now and especially love how painless the setup is. Not to mention that VisualSVN Server is 100% free! One part that I especially liked was the part I have been missing and that is anonymous access to repositories. I have been thinking about having this for awhile and with Rick's post I was able to allow it: Anonymous Repository...
This Tuesday I'll be giving a presentation on ASP.NET MVC and Unit Testing at the CMAP main meeting: http://www.cmap-online.org/Meetings/Details/2008-10-07.aspx ...
After many months of back and forth emails with the previous owner, http://www.debugging.com is finally mine.
I am thinking of a programmer themed comic, while I'm certainly no artist I can draw a stick figure or two :)
I haven't mapped out all the different characters yet completly, but I do have a good idea of where things should be headed (at least in the beginning).
I hope to get my first 'scene' out by next week so stay tuned ...
Posted By:Salman Ahmed
|
10/4/2008 11:55 AM
| 0 Comments |
|
|
I've been playing with CouchDB a little recently. Its a "schema-free document-oriented database", which sounds pretty weird when all you've ever known is relational databases. At work, we're considering what architecture we want to go with for a n