Tag | .NET Posts

Come on, who doesn’t love a good cheeseburger? Ok, I’ll rephrase that. Other than the Chik-fil-a cows and vegetarians, who doesn’t like a good cheeseburger? Check out this episode of the Grapevine TV’s Developer’s Kitchen and watch me demonstrate how to prepare and grill up my Duffy’s Paradise Cheeseburgers! mmmm tasty! Looking for additional recipes from your favorite .NET personalities? Check out the .NET Guru’s Can Cook cookbook for a wide variety of tempting appetizers, dishes, sweets and drinks. ...
Today, We deployed the “David Blaine” version of the TB Module for our EMR solution here at IDI (http://idi.mak.ac.ug). This was mainly for bug fixes and usability improvements based on the feedback that we received from users in the past few weeks. Some of the improvements were related to performance. We had to fine-tune some of our Linq statements in some places to enable better queries to be generated by our ORM. We also added some lookup dialogs that present certain information that would be ...
2011 has been a very exciting year for me so far. I was awarded the Microsoft Silverlight MVP. I was renewed as the DZone MVB. I was awarded as a GeeksWithBlog Influencer. I won the CodeProject Windows Phone 7 Competition. I’ve been invited to speak about Silverlight at UserGroups as well as several major conferences such as SSWUG, CodeStock and devLINK. My first e-Book on Producing and Consuming Silverlight in an OData application was published. I’ve been asked to be a technical editor for two Silverlight ...
Introduction You might have noticed that the Silverlight 5 (Release Candidate) is out. One of the new features included in the RC is the ability to call P/Invoke. In this short demo, we will write a Silverlight 5 application that uses the feature. Tools needed: Visual Studio 2010 SP1 or Visual Web Developer Express 2010 SP1 is required to develop a Silverlight 5 RC Application. After you have installed VS2010 SP1 or Visual Web Developer Express 2010 SP1, then you will need to download and install ...
In this Issue: Ollie Riches, Tony Champion, Kunal Chowdhury, WindowsPhoneGeek, Jeremy Likness, Mike Taulty, Jesse Liberty, Sumit Dutta, Asim Sajjad, Justin Angel, and Shawn Wildermuth(-2-). Above the Fold: Silverlight: "Creating a Multi-Click Event in Silverlight 5" Tony Champion WP7: "Windows Phone 7 Marketplace Statistics" Justin Angel Shoutouts: SilverlightShow has posted their top 5 for last week: SilverlightShow for August 29 - Sept 04, 2011 Michael Palermo's latest Desert Mountain Developers ...
Check out the Top Five most popular news at SilverlightShow for SilverlightShow Top 5 News for August 29 - Sept 04, 2011. Here are the top 5 news on SilverlightShow for last week: Windows Phone 7 MVVM ViewModel ideas Silverlight 5 Release Candidate Available 29 ways to make your WP7 app killer and make money Top 5 Most Read SilverlightShow Ebooks for August, 2011 Installing Mango on Samsung Omnia 7 Visit and bookmark SilverlightShow. Stay in the 'Light ...
Just a quick one. I was trying to add and deploy a WSP file.Both went well until i tried adding the webpart and i get the error Web Part Error: No available sandboxed code execution server could be found. After doing some joggling around i came to know i had to start the Solution:You need to start the SharePoint Foundation Sandbox Code Service service instance from services on server.. This has to be done in the SP 2010 Central Admin > App Management > Service Apps > Manage Services on Server. ...
Just recently there was a great talk held by Herb Sutter at the C++ and Beyond conference. You can see the whole presentation at Channel 9. So why does C++ really matter anymore? All this time we’ve been talking about managed languages (Java, C#, Visual Basic.NET, the list goes on) increasing the productivity of development and being really the holy grail of computing where we don’t have to focus on memory allocation or really knowing anything about the underlying platform, for that matter. All this ...
The ability to write scale out applications for SQL Azure will soon become much easier, thanks to the upcoming SQL Azure Data Federation capabilities. In an earlier post, I outlined specific steps developers can take to prepare for this key enhancement. Some of the key capabilities of SQL Azure Data Federation is to distribute large data sets across multiple databases, hence providing a mechanism to avoid the current database size limitations of SQL Azure. While it may be tempting to look at this ...
I went through a lot api's for windows phone 7 and couldnt find a single way to include my unmanaged code in it. Is there any way to do the same. If not why is it so ? Even in .net, microsoft allows unmanaged code to be included.
Yeah, you read that right. I may be weird, but I do think that unit testing is fun. It is also very important. I didn’t know much about Unit testing when I came out of school. I think colleges need to have a class dedicated to it. But anyway, I didn’t do much of it at my previous job since I was developing the Siebel CRM. Since Siebel is an Oracle product, it involves mostly configuration and customization using built components. We did some integration testing by building any new components into ...
While testing the performance characteristics of the SQL Azure backup tool I am building (called Enzo Backup for SQL Azure), I decided to try Spotlight (R) on Azure in order to obtain specific performance metrics from a virtual machine (VM) running on Microsoft's data center. Indeed, my backup solution comes with a cloud agent (running as a worker role in Azure) that performs backup and restore operations entirely in the cloud. Due to the nature of this application, I needed to have an understanding ...
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 ...
I have introduced a method to detect the stack size and other stack info during runtime in this article http://geekswithblogs.net/K... But what if we want to determine the stack size on arbitrary thread or for whatever reason, writing a code is not an option but wish to peek the stack size via debugger? Fortunately, there is a debugger extension (CeDebugX) provides many power tools, such as !stacktrace or !stackeval to get the stack info for ...
In this Issue: Michael Washington, Tony Champion, Ollie Riches, Gill Cleeren, Koen Zwikstra(-2-), Peter Kuhn, Xianzhong Zhu, Mike Taulty, Pete Brown, Sumit Dutta(-2-), Asim Sajjad, Dhananjay Kumar(-2-), Above the Fold: Silverlight: "Silverlight Spy September 2011 Update" Koen Zwikstra WP7: "Windows Phone 7 on-demand training available" Peter Kuhn LightSwitch: "Quick And Easy Data Management With LightSwitch" Michael Washington PivotViewer: "Extending your CXML Trading Cards in Silverlight 5" Tony ...
At http://99-bottles-of-beer.n... an old drinking song that printed out by an award-winning piece of code obfuscation cited in a Wikipedia article at http://en.wikipedia.org/wik... inspired a comparison of programs written in various languages to print this song. The Cobol (and to a lesser extent C#) programs were easy to understand whereas other languages such as J*** were not. There was even a highly obfuscated one in JavaScript! At http://blogs.msdn.com/b/alf... ...
The ViewModels in my current project had got quite complex; as well as properties copied from model objects, they increasingly had flags used by Views to know whether to render links or sub-sections. The logic which set these properties was bloating Controllers, so I factored it out into objects which populate all non-editable properties of a ViewModel; ViewModelBuilders. The system has the following components: ViewModels - objects which provide a View with the information it needs to be rendered. ...
I've just opened a project on CodePlex - http://algonet.codeplex.com/ !!! This project will implement various algorithms related to artificial intelligence, numerical analysis, NLP, object recognition and quantitative finance. It will initially target C#, and eventually F#. First exercise - port Java AIMA 3 to C# from http://code.google.com/p/ai... AIMA3 so far I've ported the utils - helpers, data structures and basic linear algebra classes Matrix class - Implemented ICloneable, ISerializable.GetObjectData ...
Scott Guthrie of Microsoft has blogged about "HTML Editor Smart Tasks and Event Handler Generation (ASP.NET vNext Series)" at http://weblogs.asp.net/scot... Well worth a read! Next version of Visual Studio looks to be keeping up the improvement in developer productivity ...
I received a surprise mail from Microsoft saying that I’ve been recognized as Microsoft Community Contributor for the year 2011. I am delighted that my contributions in TFS and ALM space have been recognised by Microsoft. Congratulations! We’re pleased to inform you that your contributions to Microsoft online technical communities have been recognized with the Microsoft Community Contributor Award. The Microsoft Community Contributor Award is reserved for participants who have made notable contributions ...
In this Issue: Lee, Kunal Chowdhury, Peter Kuhn, XamlNinja, Ollie Riches, WindowsPhoneGeek, Jeremy Likness, Pete Brown(-2-, -3-), Dhananjay Kumar, Sumit Dutta, and Asim Sajjad. Above the Fold: Silverlight: "Using PInvoke in SL5 to show MessageBox" Lee WP7: "WP7Contrib: Dialling the phone number shown in a text block" Ollie Riches Shoutouts: Michael Palermo's latest Desert Mountain Developers is up Michael Washington's latest Visual Studio #LightSwitch Daily is up Laurent Bugnion has some good news ...
At http://devcheatsheet.com/ there is a comprehensive list of cheat sheets. Of particular note are: http://devcheatsheet.com/ta... SQL Injection! http://devcheatsheet.com/ta... ReSharper Cheat Sheets https://www.owasp.org/index... OWASP's SQL Inject Sheet Can't code withoutThe best C# & VB.NET refactoring plugin for Visual Studio ...
In this Issue: Tony Champion, Kevin Hoffman, Pete Brown(-2-), Mike Gold, Jeremy Likness, Xpert360, Den Delimarsky, Sumit Dutta, Asim Sajjad, Vikram Pendse, and Michael Crump. Above the Fold: Silverlight: "Silverlight 5: Remote control and MediaCommand Support" Pete Brown WP7: "Extracting a SQL CE DB from Isolated Storage in WP7 Mango" Michael Crump PivotViewer: "To CXML or not to CXML" Tony Champion Shoutouts: Michael Palermo's latest Desert Mountain Developers is up Michael Washington's latest Visual ...
I’ve recently read the post The Mooney Project » Reusable Code Is Bad. Also I disagree with the title of the post, most of the issues in the text are valid and important. Mike Mooney is mostly talking of creating customizable applications, that have hundreds of configuration settings. Most close to my opinion is a comment from Geoff H Design libraries for reuse, glue code to bind together, and logic code to call libraries through the glue. When I am writing an individual method, I am asking myself, ...
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 ...
Today, O' Reilly are offering three book deals: 1) JavaScript Web Applications Use discount code: DD388 $13.99 (Save 50%) 2) Programming Microsoft ASP.NET 4 Use discount code: DDGRM $23.99 (Save 50%) 3) Big Data Now: Current Perspectives from O'Reilly Radar Price: FREE! (this third book is not available as a PDF so download one of the following readers) http://www.mobipocket.com/e... https://addons.mozilla.org/... Can't code withoutIn-depth ...

As you know Visual Studio 2011 has got some great features but it seems ScottGu has got some other stuff to show
See the new vNext cool features here
Enjoy the videso too.

Cheers
 

I was really excited when I heard Red Gate wanted a review of their memory profiler done. I have been a fan of Red Gate products for years… being first exposed to their products via reflector a few years ago – as someone who has never done memory profiling before, I was also excited to go a bit deeper into .Net memory management. Why Memory Profiler – Isn’t the point of .Net that it manages the memory for you? Before getting into the nuts and bolts of the profiler, you might ask yourself – why use ...

James Michael Hare has a lot of awesome C# and .Net related posts, so this is just a little shout out to him (and my own little way of bookmarking his blogs since GWG doesn't provide a way to "favorite" or "follow" him).  Of particular awesomeness is…

Read more at http://blog.danskingdom.com/sweet-c-gems/

A big thanks to my lively audience at the London .Net Users group last night who provided excellent feedback. They even led me to some live coding to discover how the TaskEx.WhenAny deals with the tasks which didn't complete first - apparently they are immeadiately disposed of and their results are lost. Let's hope the release documentation for the Async libraries makes this very clear. I also must thank EMC Consulting for providing the facilities and beer, and Adgistics for providing the pizza, ...
Issue: Use the .Net JavaScriptSerializer to serialize an object but due to circular references need to prevent from those properties from being serialized. Solution: In order to ignore certain properties from getting serialized, simply add the ScriptIgnoreAttribute attribute to the property: [ScriptIgnore] public virtual MyClassCausingCircularRefError MyProperty { get { return _privateField; } } ...
Learn .NET, C#, VB, ASP NET and more! Click the link below to get started today on your path to learning .NET! Save 30% at LearnVisualStudio.NET Today http://www.learnvisualstudi... Can't code withoutThe best C# & VB.NET refactoring plugin for Visual Studio ...
A developer is asking how to pass data from a UserControl control to the main page. Basically, the scenario is that he has a user control which contains a GridView and wrap arround within asp Ajax UpdatePanel control. The UserControl will then be used at the page that is hosted within a master page. The page contains some TextBox in which it will be populated once the user selects a row from the GridView also on that page the Modalpop is defined. To achieve that, here's one solution I've provided ...
A listbox can be a very boring display surface, but it doesn’t have to be. Ok, so it may never be exciting. At least we can create a more flexible output. The first element you need to learn about his the ItemTemplate which is in turn composed of a DataTemplate. As this combo implies it is bound to each item/data row. We will start organizing your base layout with a Grid control. Within the Grid you can add a RowDefintions group. A RowDefinition helps when you want components to be stacked for a ...
I use JetBrains ReSharper tool for a long time – it’s a very useful thing, that can help me to be more efficiently. Some time ago James Kovac made a training course for Pluralsight about everyday usage of ReSharper. I learn it, and I strongly recommend it to any ReSharper user. It contains a set of tip about navigating, code generation, refactoring, etc. A good news, that this ReSharper training course available for free to any ReSharper user! If you want to get an access, contact sales@jetbrains.com ...
Today the release candidate of Microsoft’s Silverlight 5 was released to the public. If you want to know “What’s new in Silverlight 5” then check out this page on Silverlight.net and continue reading the article below. Getting Started First, we are going to need to download the required tools to install the Silverlight 5 RC. Before getting started, please note that you can install the Silverlight 5 RC on top of the final release of Silverlight 4. If you have the Silverlight 5 Beta installed, then ...
After I released the MVVM Light installer, I got a note saying that parts of the installation failed on non-English systems (in that case a German installation of Expression Blend and Visual Studio). Specifically, what failed was the code snippets on Visual Studio, and the project and item templates in Expression Blend. Read the rest of this entry » ...
I have recently started to update a very successful SAP CRM integration I originally built 5 or 6 years ago. We have recently started the implementation of CRM 2011 so the business has decided to take the opportunity to change the data that they want to synchronize between the 2 systems. Luckily the integration is both modular and to a large degree dynamic. The core logic should remain relatively untouched and only the SAP and CRM connection dlls should need any real work. The changes to the SAP ...
This method is a demonstration for use of C# (csharp) Tasks and the Cache object together, to create a nice thread-safe behavior for calculations, and be efficient in the simple don't-repeat-any-action way. public AdsFileInfo GetFileFingerPrint(string filename) { Log.DebugFormat("Trying to get cached file finger print for '{0}'", filename); //First, try to get the value from the cache. object ret = HttpRuntime.Cache.Get(filen... if (ret != null) { //We got the value from the cache. Log.DebugFormat("Got ...
Introduction By now, most of you have heard that Windows Phone 7 – Mango release will support Local Databases (SQL CE) using Linq to SQL. But what you probably haven’t heard much about is how to extract the .SDF that is created in isolated storage to your local computer and view the contents. I find this extremely important for debugging application and making sure my database is setup exactly like I want it. So, that is what we are going to do today. Getting Started with a sample application: For ...
In this Issue: Alex Golesh(-2-, -3-), Andrea Boschin, Peter Kuhn, Shawn Wildermuth, WindowsPhoneGeek(-2-), Jesse Liberty, Pete Vickers, Sumit Dutta, Asim Sajjad, Chad Campbell, Vikram Pendse, Michael Crump, and David Kelley. Above the Fold: Silverlight: "Silverlight 5 : Low-Latency Sound Effects" Vikram Pendse WP7: "Windows Phone codenamed "Mango" Training Course" Alex Golesh Shoutouts: Michael Palermo's latest Desert Mountain Developers is up My friends at SilverlightShow posted their top 5 for ...
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 ...
Check out the Top Five most popular news at SilverlightShow for SilverlightShow Top 5 News for August 22 - 28, 2011. Here are the top 5 news on SilverlightShow for last week: Who says Silverlight can’t run on a tablet Papa's Perspective: Fundamental MVVM apps portal – a Silverlight based app store Tablet Development with Microsoft Silverlight Free SilverlightShow Webinar: WCF RIA POCO Domain Services Visit and bookmark SilverlightShow. Stay in the 'Light ...
To start, I love Red Gate Software’s Tools. I have loved them since the first time I started using SQL Backup and SQL Compare when I first started Geekswithblogs.net. I think they create quality products and have been a “Friend of Red Gate” for years. So know that this review is coming from a “fan boy” of sorts. What is SQL Compare? Well the name sort of says it all, this product compares SQL databases. But not just databases, but backups, snapshots, and source control using their product SQL Source ...
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 ...
Every now and then, the day job causes me to want to rip my hair out. I know, this is shocking news, especially for those of you that have seen me. However, it is true1. This weeks Tour de Pain comes to us courtesy of cryptography. Before we begin, let me say this. By the nature of the beast, you can't know what you're doing while you're doing it2. As such, most adventures into the subject will lead to heartache. The sad part is that the .NET Cryptographic providers were not the true source of heartache. ...
Welcome to my blog! This is my first blog, so I’m learning as I go. I’m excited though. Let’s get started with some background on me. I started down the IT road as a QA tester for a large financial firm. At the time I was in the middle of getting my BS degree and wanted to get my hands dirty a bit. So I moved to a developer role in the same company. I was working on the Siebel CRM implementation for said company and did that for about a year. I wanted to get into some real-deal coding (building from ...
Recently I used Entity Framework 4.1 with Code First approach and step on a hidden rake. My application should create an SQL Server CE database file using supplied model classes. I created some model classes, one of the classes was declared as namespace MyProject.Models { public class Object { public int Id {get; set;} public String Name {get; set;} } } Then, I tried to declare property of DbSet<MyProject.Models.O... type in my class derived from DbContext: namespace MyProject.Models { public ...
Introduction Have you ever wondered how to update the Application Tile in your Windows Phone 7 Mango application? Me too. But before we dig in, let’s look at the properties of a Tile. Microsoft defines each one as listed below: Title. A string indicating the title of the application. The Title must fit on a single line of text and should not be wider than the actual Tile. Approximately 15 characters will fit in the title before being truncated. BackgroundImage. An image displayed on the front of ...
In this Issue: Gill Cleeren, Shawn Wildermuth, WindowsPhoneGeek, Erno de Weerd, Morten Nielsen, Sumit Dutta, and Asim Sajjad. Above the Fold: Silverlight: "Post Comments Using Silverlight" Asim Sajjad WP7: "Windows Phone 7 Navigation" Erno de Weerd LightSwitch: "Developing real-world applications with LightSwitch - Part 4: To query or to code, that is the question!" Gill Cleeren Shoutouts: Michael Palermo's latest Desert Mountain Developers is up From SilverlightCream.com: Developing real-world applications ...