Tag | Search Posts

I have to say that it has been awhile (just over a year actually) since I've updated my blog. I feel embarassed. On the other hand, I have been quite busy - so it's not like I don't do it because I am lazy (well I am somewhat lazy), but it's because time is somewhat a scarce resource. But... I will try to see if I can muster up some moments to be active with my blog. With that said, last month (August 5th and 6th) St. Louis held the 4th annual conference of the St. Louis Day of .NET. It was a rousing ...
At http://www.bbc.co.uk/news/t... there is a report on yet another SQL Injection attack. This time it is Nokiia's Developer network. How many other systems are vulnerable to such attack? If you run a Dot Net based web application, run FXCOP to check for vulnerabilities. Can't code withoutPowerful search and navigation in C#,VB, XML, ASP.NET, XAML and more ...
A lesson I learned while building a module in the custom ERP I am working on at my job: build the UI the way you would want it to be built. What do I mean by this? I’ll explain by sharing my experience. There was a piece of the application that had a textbox that the user used to enter a client number. They then click the Search button to bring back the results. When I launched the application to test it out, I found myself typing in the client number and hitting the Enter key. It kind of came naturally. ...
I found a blog post by Davy Brion (one of my favorite bloggers on the ‘net) that spoke about the .NET world’s current state. He mentioned that Microsoft’s products (such as WebMatrix and LightSwitch) are mainly geared toward what he calls “low-end” developers. At the same time, Microsoft is backing off on other products that more experienced and seasoned programmers like, such as IronRuby, IronPython, and the DLR (Dynamic Language Runtime). I certainly agree with some of his points. Applications ...
Today, I was testing a Web site for deployment and encountered the problem described in the subject of this post. However, the process leading up to realizing the true problem was far from clear. This post describes my initial experience, steps I took to isolate the true problem, and what I did to fix it. To put this in context, My project is an ASP.NET 4.0 Website. Bump! While testing, I encountered a System.Web.HttpException with the following message: File does not exist. with the following stack ...
Over the past couple of days I have noticed that our time on our computers just keeps getting further and further off. I noticed that our Domain Controller had the incorrect time, so, after doing some research I found a nice solution: 1. Locate the PDC Server. 2. In CMD type C:\net stop w32time 3. To configure the server to and external source type: C:\w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp... 1.pool.ntp.org" 4. Once this command completes, type : C:\w32tm /config /reliable:yes ...
The time has come to unveil the new project for the blog. I know, I know. I can hear the excitement. I try to go everywhere I can to preach the gospel of XNA. As I do, the #1 question I get is, "Have you ever published a game?" Every time, I have to respond with, "I haven't actually published anything. I have some ideas, but I've stuck mostly with research and teaching." Over time, this wears on you. I mean, as the saying goes, those who do, teach. Thus, it's about time I practice what I preach. ...
In my previous post I have shown how we can use a C# function in the XSLT. Now I want to go one step further and use in the transformation the ASP.NET controls along with their events. Let's start from the sample xml data: <files> <file Id="F58C2962-AC0D-4C55-80A8... Name="file 1" Path="D:\Temp\" Extension="iso"/> <file Id="FDC1358E-D9C8-4A70-ABE0... Name="file 2" Path="D:\Temp\" Extension="jpg"/> </files> I want to create a table from it and for each ...
In this Issue: Andrea Boschin, Shawn Wildermuth, Kunal Chowdhury, Peter Kuhn, Loek van den Ouweland, XAMLNinja, Ollie Riches(-2-), WindowsPhoneGeek, John Papa, Den Delimarsky, and Sumit Dutta. Above the Fold: WP7: "Fun With New Live Tile API" Shawn Wildermuth Expression Blend: "Icons or other visuals with XAML instead of bitmaps" Shoutouts: Michael Palermo's latest Desert Mountain Developers is up Gill Cleeren posted his SilverlightShow Advanced Silverlight 5 webinar files From SilverlightCream.com: ...
So far I found that MEF is going well with presentation layer with following benefits. 1. DI (Dependency Injection) 2. Third party extensibility (Note that all parties involved should use MEF or need wrappers) 3. Auto discovery of Parts (Extensions) 4. MEF allows tagging extensions with additional metadata which facilitates rich querying and filtering 5. Can be used to resolve Versioning issues together with “DLR and c# dynamic references” or “type embedding” After bit of research I'm concluding ...
Here is the slide deck I used The following are the links I made a reference to in addition to those in the deck. MSDN LightSwitch Samples Printing from LightSwitch (Michael Washington) LightSwitch Help Site ...
Yesterday I realized that non of my custom lists enforce content approval by default. That really worried me as 90% of the data we display in the web site which I'm working on are coming from custom lists. Enabling this manually is a piece of cake but I wanted to include this in the list definition. After some research and testing I found out that there are 2 places you have to configure. You have to set ModeratedList="TRUE" for List element and EnableModeration="True" for ListTemplate element in ...
Requirement was to create Multi-tenant WCF Service for custom development using WCF and Dynamics CRM 2011. There is just one SVC file but multiple URLs to access it e.g. in Dyanamics Organization Org1 have URL http://CRMserver_name/Org1/... and Org2 have http://CRMserver_name/Org2/... I was trying this using URL Routing but problem is, it is creating REST services which we don’t want. We should be able to access these services just like ...
Our SharePoint team at work noticed that our SharePoint 2010 farm wasn’t returning search results based on the contents of OneNote files that were saved in document libraries. I did a little research and found a solution, by putting together steps from different posts. First, some details: we’re running SharePoint 2010 SP1 (with the June 2011 CU) on Windows Server 2008 R2 SP1. However, this issue was seen before we applied the service packs and cumulative updates, so I’m not sure what effect, if ...
In my previous post I mentioned the free AI course being run by Peter Norvig and Sebastian Thrun (122,314 and rising) in conjunction with Stanford University School of Engineering. Professor Andrew Ng is running a related course on Machine Learning. This is also a free on-line course run along the same lines as the AI course. Over 30,000 people have signed up so far. I mention this because Andrew has just confirmed that he will be speaking at this year’s Rules Fest. Rules Fest is all about the practical ...
Wijmo is an awesome tool from ComponentOne. The goal of this tool is to help us web developers rapidly develop MVC applications with interfaces richer than WebForms. Main Features: 1.Over 30 UI Widgets with everything from interactive menus to rich charts. 2.MVC scaffolding automation. This means that Wijmo generates rich interactive Views and Controllers for your entire Model. Free Trial DownLoad: http://www.componentone.com... In this review we'll take a look at Wijmo ...
Peter Norvig and Sebastian Thrun are offering a free on-line course on AI later this year in conjunction with Stanford University. The course is broadly based on Peter Norvig's book "Artificial Intelligence: A modern Approach" written jointly with Stuart Russell. Along with my colleagues on the Rules Fest committee, we have been following this with interest. In a few days, well over 100,000 people have signed up (112,774 at the time of writing, and still increasing fast). The course broadly overlaps ...
For a period of time, I have access to both an MSDN and a TechNet subscription. Both offer Microsoft software for download. I wondered what the similarities and differences were between the two subscriptions. I copied the two download lists into Excel and aligned them. Most of the material I would never use. Some products I have never heard of. I present the lists, current as of today, for your reviewing pleasure. TechNet MSDN Applications (63) Applications (79) Access 2.0 Access 2003 Access 2003 ...
The August ‘11 TFS Power Tools are ready for download. Brian Harry has a good summary of the update here. The big visible changes are: 1. The ability to use the shell extensions against a TFS not on the same domain as your PC. You now get a credentials prompt. 2. Work Item Search!! The Work Item Tracking toolbar now contains a search box. I know my friend and fellow MVP Etienne Tremblay has been asking for this for about 5 years! 3. Rollback IN THE UI!! TFS 2010 introduced rollback. However, you ...
We had an issue once we deployed our .Net 4.0 C# ZeroMQ solution to a Windows Server 2008 instance where the application would freeze up or block, seemingly on the initialization of our ZeroMQ library. Upon furthter investigation it was discovered that the application was blocking on the construction of each new zmq Context object. Having exhausted all other alternatives, an internet search revealed a stack overflow post : http://stackoverflow.com/qu... ...
Oh No! Not another geek who is going to tell us how to build a virtualized lab environment! We already know all there is to know about this crap! Hah! Yes this is another geek doing this build, but rest assured, it’s not you, it’s me! This is my view and take on this subject, where this blog will function as a “diary” to log my time, remarks and build guide on how I built it. Besides, I’ve built similar environments hundreds of times so I want to add a bit of a twist J. Seeing as my move abroad is ...
When you want to store millions of strings in a list you will notice in your memory profiler that the biggest memory consumers strings and lists are. If you e.g read many lines from a file with repetitive data inside it you can use a reference cache to consume the actual memory for the same string only once. The CLR offers String.Intern to do exactly that but the string reference cache is cross AppDomain static which is mostly never a good choice. Where could you use this? If you parse log files ...
Last time we did have a look into the issues you get if you create many class instances. The more class instances you have the more complex is your object graph which means more work for the GC. If the GC has more work there is less CPU time for your application left which does make it slower. An easy way to fix this issue is to create a struct which is a value type which is copied by value and does not add complexity to your object graph. Common wisdom suggests that your structs should not get bigger ...
I'm not a desktop application developer. I wrote only one app using the WinForms, but I must tell, it was interesting experience. Now I'm writting second WinForms app and second time, I needed the possibility to updating the progress bar in an app. So I think this is a good opportunity to put on the blog the code snippet for that to have a place where I can have some useful code for future references. Ok, so let's go to the solution details. As every desktop application developer know (or should ...
Windows Communication Foundation is a powerful tool for building contract based messaging. As with most powerful technologies with flexibility comes a fair amount of complexity. I ran into one of these situation while trying to send files as part of message in the form of a byte array. In itself this is a simple concept. The problem is that the default configuration of WCF is setup to protect us from denial of service attacks to the best of its ability. In order to achieve this it is setup for relatively ...
This post will focus upon introducing the concepts of AI algorithms, and is summerized from "Artificial Intelligence, A Modern Approach" – by Norvig and Russell - 3rd edition - http://aima.cs.berkeley.edu/ . Overview General Definition: study of agents that receive percepts from the environment and perform actions Weak AI hypothesis - assertion that software could simulate thought-like behavior - Can machines think – is considered an ill-defined question (does a submarine swim?). Strong AI hypothesis ...
Everyone has a journey. You start off young & stupid, and 2 decades later, you're closer to understanding the nature of reality. That’s one of the main goals in life, to seek knowledge (justified, true beliefs – pick any 2 J ). I must have read 5000 books in my life. From some of my readings it could be construed that reality computes itself, It from Bit. From others, it can be concluded that Entropy is decreased by increased rates of computation, and in the short span of human civilization, ...
In this Issue: Mike Taulty, Derik Whittaker, Den Delimarsky, Oscar Agreda, and Morten Nielsen(-2-). Above the Fold: Silverlight: "FlickR Searching with Silverlight & Rx" Mike Taulty WP7: "New Video – Windows Phone 7 Guide – Part 7 – Unlock apps in a locked emulator" Den Delimarsky Shoutouts: Michael Palermo has the latest up: Desert Mountain Developers for August 11 From SilverlightCream.com: FlickR Searching with Silverlight & Rx Mike Taulty posted a live demo and write-up on a FlickR search ...
Occasionally I write a rant or two and this one has been boiling for ages. First off you need to read Mike Watson’s Blog Post on Silverlight Ambiguity in Office 365: http://jmikewatson.wordpres... So now let’s get started. First off this post has been boiling since I have heard the question in one of my sessions last year “What do you think will happen to Silverlight now that HTML 5 exists?”. I brushed it aside. I ignored it when ...
Recently, my Active Directory user account was getting locked out on a regular basis after changing my user account password. In our environment, the most two common causes for Active Directory user account lockouts are disconnected RDP sessions or an invalid password on a mobile device configured for Exchange ActiveSync access. I used the LockoutStatus.exe Tool to search for one or more disconnected RDP sessions using my old password but I was not able to find anything. So, the next thing I checked ...
In this Issue: Michael Washington, Pontus Wittenmark(-2-), Derik Whittaker, Peter Kuhn, Michael James, XamlNinja, Adam Kinney, Morten Nielsen(-2-), Alex Sorokoletov(-2-), and Den Delimarsky. Above the Fold: Silverlight: "WPF vs. Silverlight - Part 1 - Custom Controls Theme" Morten Nielsen WP7: "New Windows Phone “How Do I” Video Series" Adam Kinney LightSwitch: "The LightSwitch Control Extension Makers Dilemma" Michael Washington Shoutouts: Michael Palermo has his latest Desert Mountain Developers ...
Update: These have been superseded and included in later Cumulative Updates. See http://wblo.gs/cu8v for checking what you got and updates, or download the tool. Also see info about the updates and extensions here.During the summer Microsoft has released two important hotfixes for the Testing tools. These two hotfixes solves 7 serious problems: # Issue solved Fix in : 1.1 Appdomain error when running a test agent on a computer with Visual Studio installed 1) 1.2 Exception with search error may happen ...
I had some really great responses to my last post regarding some bad code I've shown to interviewees - pretty much everything I intended to be bad was spotted, as well as some interesting points I hadn't considered. Here's the code again along with the bad bits as I saw them, and then I'll go over the extra points raised in the comments. The bad code: namespace MyNamespace { using System; public class Customer { public void PlaceOrder(string orderReference, OrderedProductData[] orderedProductData) ...
Download Source Code Challenge Just had the first chance to apply PLINQ (Parallel LINQ) to the real task. When I am playing around with some new technology everything works fine, the real understanding comes along with challenges in a real use case. Currently I am working on application which processes large amount of text data gathering statistics on word occurrences (see: Source Code Word Cloud). Here what the simplified core of my code is doing. Enumerate through all files with *.txt extension. ...
l will show you what I am doing lately with jquery. I started out using the suckerfish menu for a customer app. All went fine for awhile but suddenly the menu started acting weird with problems indenting and such. I finally figured it must be interacting with other css stuff. So, I thought how the heck do I fix this? What if I could just use jquery and keep all of the action in jquery and put the style in in the menu class and just spit it out. Most of the properties would get put into attributes ...
ASP.NET Detect and alert forms authentication timeout With help from & thanks to PsychoCoder at http://www.dreamincode.net/... 1. Add sessionState to web.config <system.web> <sessionStatetimeout="1"... /> <!--minutes e.g. 120 = 2 hours--> 2. Add FormsAuthentication to web.config <authenticationmode="For... <!--timeout minutes (needs to be the same as in sessionState above) e.g. 120 = 2 ...
Heres a good one. Today I was working away and fixed a simple bug. Then hit F5 again and VS says” Can’t start app in debug mode. er. Restart VS and try again. Same deal. So, hit Control + F5. Get a 503 error this time. With a quick search I found this: http://www.dotnetfunda.com/... So, I opened IIS Admin and sure enough, then Default AppPool was stopped. Restarted it and now it works. Weird ...
CTEs or common table expressions can be used to make recursive SQL stantements. CTEs are ANSI-99 standard. Please read www.sql-server-performance.... for more information. I have only had 2 instances in my career where CTEs made sense for me to use in a pratical setting. If you have found them more practical, please share. The first time I needed a CTE I was displaying corporate branches from a recurssive table. Some branches had branches, which had branches, and so on, whereas ...
In this Issue: XamlNinja(-2-), Ollie Riches(-2-), Michael Washington, Bart Czernicki, Chris Craft, Colin Eberhardt, Kunal Chowdhury, Jasim Schluter, Pete Vickers, Samuel Jack, and Mike Ormond. Above the Fold: Silverlight: "Creating Inner Shadow Effects for WPF and Silverlight" Samuel Jack WP7: "WP7Contrib: Transient caching with In Memory Cache Provider" Ollie Riches LightSwitch: "Using OLAP for LightSwitchUsing OLAP for LightSwitch" Michael Washington Shoutouts: The folks at SilverlightShow have ...
Recently I began studying for the 70-400, System Center Operations Manager 2007, Configuration. Before I was told that we needed someone certified in SCOM I didn't even know what it was! I began like every student does. I went to www.google.com. I learned that this was a very powerful tool that Microsoft has developed which is part of the System Center product line. This particular piece of software focuses on monitoring and recovery of systems. So instead of realizing that a server is offline, you ...
I was looking for a method to easily find the last instance of a search string within a longer string. I found a few instances of ways to do this that involve functions that loop through until no-more instances of the search string are found and some mention of using the SQL-Server 2005+ Reverse function for single character searches. What wasn't mentioned is that the method of using the Reverse function can be extended/generalized to search for SubStrings of varying lengths. See my article for more: ...
Article Source: http://geekswithblogs.net/c... What is the best approach for developing a WCF client application that sends messages to the WCF on-ramps exposed by the BizTalk ESB Toolkit? I had considered various approaches: Generate an xml message from a string template using string replacements. Then submit the message to the ESB endpoint using code similar to the Itinerary Test Client provided with the ESB Toolkit. Then for the response use XPath to get the required data. - This is obviously ...
This blog will help you prepare for an upcoming release of SQL Azure that will offer support for Data Federation. While no date has been provided for this feature, I was able to test an early preview and compiled a few lessons learned that can be shared publicly. Note however that certain items could not be shared in this blog because they are considered NDA material; as a result, you should expect additional guidance in future posts when the public Beta will be made available. What is Data Federation? ...
Introduction One of the first things I wanted to do after installing the Azure AppFabric June CTP was to create an AppFabric application that used the Bing Map SOAP services. That was when I hit my first roadblock. There is currently no option in the AppFabric Application Designer to add a reference to an external service. After asking around in the forums I learned that I should build an external service to do this. There is currently very little documentation on creating external services for Azure ...
We kick off Day 4 at, you guessed it, another keynote (maybe they should rename this to the Worldwide Partner Keynote Conference?). We kick off with the Canadian Tenors singing some song they wrote for the Vancouver Olympics, and then a parade of partners carrying their country’s flag enters. I feel like I’m at Folklarama back in Winnipeg. ;) So today we have some big names speaking. Kevin Turner, Microsoft’s COO and Sir Richard Branson are on the schedule. Kevin Turner If you have never seen Kevin ...
The keynote session for the morning was a mixture of things. It started with an all-female rock band singing Cold Play’s “Viva la Vida”, then had all partners-of-the-year winners parade on stage, and then we got into the specific messaging part. There were five separate keynotes this morning from different business units within Microsoft. First up was Cloud. Note that I didn’t say Azure, although that’s part of it. Azure is the public cloud, but Microsoft talked up the Private Cloud a lot at this ...
Why .NET LinkedList does not support Concat and Split operations? Download SimpleLinkedList source code Concat O(1) or O(n) ? The .NET LinkedList is a circular doubly linked list, where each node holds a reference to its previous and next nodes. The last node’s next is the head node and the head node’s previous is the last one. Linked lists are attractive because of O(1) insertion and removal operations. Instead of shifting elements in array you just chain nodes in appropriate order and that’s it. ...
I just got back from Microsoft’s 15,000 attendee-strong Worldwide Partner Conference (WPC) in Los Angeles, and I have to say, the company and its partners are pumped. How can this be, given the number of people who have written Microsoft’s eulogy of late? If Amazon owns the cloud, if Apple owns the consumer, if Google owns search, if Cisco owns unified communications, if EMC/VMWare owns virtualization, if Oracle and SAP own ERP and if Oracle/Siebel and Salesforce.com own CRM, how can Microsoft be ...
As mentioned in a previous post, I have been accepted to speak at VMworld2011 the week of August 29 in Las Vegas. Since that time I have been working on my presentation with my speaking partner and VMware SE Jeff Szastak. We have submitted the first draft of our deck in for comments and gotten some good feedback. I have now begun to incorporate those changes in to the deck as the final version is due in early August. I am excited to be going to this conference for the first time and especially so ...
Instead of making a list here of what requirements or needs for hardware hosts exist, I’ll make it plain and simple: CPU, memory and network links. Those are the most important things in a virtualization host and is all well documented in build guides across the internet. What I would to talk about is the following: Whitebox vs. Branded servers! Throughout the years I’ve been pretty much brainwashed (no kidding) that in a professional, production environment you only use “real” server hardware. And ...