C# is a wonderful language for modern programming. While everything in C# has a reason and a place, occasionally there are things that can be confusing for a developer who isn’t aware of what is happening behind the scenes. This is another post in the Little Pitfalls series where I explore these issues; an index of the Little Wonders and Little Pitfalls posts is here. Many times, we create overloaded methods or constructors to allow them to accept different kinds of data. Further, there are times...
Issue:System.InvalidOperati... is not valid due to the current state of the object. System.InvalidOperationExce... Operation is not valid due to the current state of the object. at System.Web.HttpRequest.Fill... at System.Web.HttpRequest.get_... at Rhino.Commons.LongConversat... privateConversation) at Rhino.Commons.LongConversat... at Rhino.Commons.HttpModules.U...
I’ve dated men that fall into various categories, from musicians to jocks to the average “Joe”. But my current beau falls under a new category for me: the self-proclaimed geek. I wasn’t sure if I’d be able to handle it at first… dealing with someone who is just like me. After all, I’ve been told that I can sometimes be demanding, maybe even a bit overbearing. Surprisingly enough, I’ve really come to enjoy spending time with someone I can relate to. Someone just like me. And so I decided to list out...
As a brief interlude from my Concurrent Collections series, I thought I would give an roundup of how the lean startup experiments have been progressing. As you can expect, there's been some good aspects and some bad aspects. The experiments so far After lots of discussions, arguments, posing and ruling out hypotheses, we came up with two 'starter' hypotheses we could test fairly easily: Customers don't agree to send data on how they use SmartAssembly; which features they use, the versions of .NET...
JetBrains have recently released ReSharper 6.1, along with compatible updates to dotCover (version 1.2) and dotTrace Performance (version 4.5.2). Here is a list of common developer tasks that ReSharper 6 helps handles better than previous versions: Improve Visual Studio responsiveness: While developing ReSharper 6.0 and 6.1, Jet Brains have fixed more than 200 performance and memory consumption issues, as well as over 2900 bugs!Use proper tooling for web development: ReSharper 6 introduces extensive...
Hello All, I am Srihari.Ganadinni,I have 42 months of experience in .Net design and development,I have worked on Winforms,WCF,Build Automation using code,Linq,Lambda Expressions,Expression Trees and Design patterns. I have keen interest in learning Design patterns for Concurrent,Parallel and Distributed systems,building frameworks and anything that catches my interest in microsoft technologies. Apart from work I enjoy Playing Carroms,Paintind and reading Philosophy,Learning Foreign language and Political...
An important update to the Microsoft Web Protection Library (AntiXSS Library v4.2.1) is available at http://wpl.codeplex.com/rel... reason for the update is as follows:"This release addresses a vulnerability in the HTML Sanitizer, MS12-007 http://technet.microsoft.co... and adds full support for .NET 4.0 as well as restoring support for .NET 2.0. The sanitizer has been changed to remove all CSS it encounters, this new behaviour means that if you were...
I was trying to port an old app from c# 2.0 to WPF in 4.0. In one place I was using a Timer to handle filtering of a list from a text box. This kept the list from constantly being updated while the user is typing because it was getting data from the database. I set a 250 millisecond interval so whenever they paused it would update the list. The Timer class apparently got completely redefined in .Net 4.0. It used to have a Tick event, but this was changed to Ellapsed. Also I found out that it didn't...
As many of you may already know that, I'm working at a global gaming and entertainment company taking the responsible for design and implement the next generation platform which will be running on the cloud, and also design the cloud platform as well. Currently one of the goal is to replace the active directory integrated security and identity solution with certificate-based solution in our product. In short, we need to work with Active Directory Certificate Service to request and issue the certificates...
Here’s a site, by Lucian Wischik, that contains 101 Async Samples: http://www.wischik.com/lu/A... There are examples in both C# and VB. Some examples have a selector that lets you toggle between .NET 4.0 and the new Async syntax. Each example has a run button so you can execute and see the return value. Throughout, you’ll see many different ways to use Async. I think it’s a very nice resource. @JoeMayo...
C# is a wonderful language for modern programming. While everything in C# has a reason and a place, occasionally there are things that can be confusing for a developer who isn’t aware of what is happening behind the scenes. This is another post in the Little Pitfalls series where I explore these issues; an index of the Little Wonders and Little Pitfalls posts is here. This week will be a short post since I’m travelling to Denver for design meetings, and otherwise spending most of my free time celebrating...
This article is a Part 6 of the Interview Questions series. Part 1: BizTalk: Questions for interview without answers Part 2: BizTalk: Interview questions and principles Part 3: WCF: Questions for studying and interviewPart 4: WCF: Questions for studying and interview: DiscoveryPart 5: WCF: Questions for studying and interview: Routing Service Part 6: BizTalk: Advanced Questions It is time for fun! These questions are for an Advanced level of the BizTalk Developers. I hope you don’t have a single...
In this blog post I thought I would talk a little about one of my favorite features of VS2010, Intellitrace. Intellitrace is debugging on steroids. In regular debugging session you can see the values of variables at a certain time, but you can’t go backwards, and you cannot see the state of the entire system. This means that some bugs cannot be reproduced. With Intellitrace a log file is created that allows you to debug the file. This is similar to a dump but has lots more information, and when run...
Axiom can be a little daunting when you first start working with it. This guide is designed to get you through the first initial hurdles and get you going on your first project using the library. A Brief History Axiom was started in 2003 by Chris McGurk ( leedgitar ) as a port from the popular OGRE project . Chris led the project until 2004, adding many features and providing a solid base from which to continue. I ( borrillis ) became the project lead in September of 2005 after a long pause in the...
Software Engineering is the rare field that produces a product that is never consumed nor decays. A working piece of software will last forever as long as there is functioning hardware on which to run it. I once attended a class where a student honestly said that the act of writing software made him feel "immortal".But most programs (thankfully) don't last forever. Why? Because their quality is so poor. Businesses often treat software like a disposable product because the act of maintaining it is...
Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. The index of all my past little wonders posts can be found here. A while back I talked about some goodies in DateTime, mostly the properties that let you split out just the date or time. This week, I wanted to look at a couple more methods of the DateTime struct that give you additional control over parsing an input string into...
Luego de varios días sin hacer post, hoy nuevamente retomo para mostrar un pequeño ejemplo de un tema que últimamente ha sido muy tocado en los foros de asp.net de MSDN. Cómo hacer un menú dinámico con MySql? Antes de empezar a mostrar como crear el menú voy a explicar algunos problemas que encontré durante el desarrollo del ejemplo: 1. Para el ejemplo, utilizaremos la versión beta 6.5 del conector de .net para mysql, sin embargo, deben tomar en cuenta que este conector esta en desarrollo y aún carece...
The concurrent collections, located in the System.Collections.Concurrent namespace, were introduced in .NET 4 as thread-safe collections that could be used without locking, and there are plenty of posts and articles out on the interwebs giving an overview of the collections and how to use them. Instead, I'll be focusing these posts on how the concurrent collections are implemented; how they achieve thread-safety and the principles behind their implementation. Not only because I find that sort of...
Hello all, before I start this article, I want to wish Happy New Year 2012 for you, hope this year will bring more success and happiness for all of us. In this article, I will show you how to create web.config file for ASP.NET application. The .NET Framework relies on .config files to define configuration options. The .config files are text-based XML files. Multiple .config files can, and typically do, exist on a single system. And FYI, I use HostForLife.eu as my hosting provider.System-wide configuration...
[Source: http://geekswithblogs.net/E... This is the first of a series of posts covering my generic anything-to-object mapping library on github: Sixeyed.Mapping. 1. Mapping and Auto-Mapping Objects 2. Mapping and Auto-Mapping Objects from IDataReader 3. Mapping and Auto-Mapping Objects from XML 4. Mapping and Auto-Mapping Objects from CSV 5. Comparing Sixeyed.Mapping to AutoMapper Enterprise projects typically have entities of the same kind defined multiple times to encapsulate different...
I presented two talks on windows azure recently. One among them was focusing on Windows Phone 7 app development. The other one was on MVC3 ASP .Net app. The idea was to introduce how Windows Azure can be leveraged in both these exciting platforms. The talk was demo centric; below are the slides and the demo / webcasts recordings links for the same. Talk one- Building Windows Phone Applications with Windows Azure Platform and Visual Studio 2010 Demo included: Creating a Demo application from VS 2010...
About a week ago we received a support call from one of our customers asking why she couldn’t open PDF files on our website anymore. She was using Chrome and the browser tab would just hang with the ‘Loading’ animation and a gray background after requesting an invoice PDF. After a little digging we figured out that this hang-up was occurring while Chrome was opening the PDF document. We were easily able to reproduce this issue ourselves in the production environment, but only while using Chrome....
I recently accepted to do a review of “The Learn Microsoft Visual C# book 2010” by John Paul Mueller. I was in two minds on whether I really wanted to read this book – in it’s description it says it is targeting fundamentals of modern programming with Visual C#, but I wasn’t sure how fundamental it would be and since I have been working with C# for a while now, I wasn’t sure if it would be worth my while. After going through a few of the chapters of the book I would say this really targets very basic...
A little more than three months ago, Microsoft hosted the //build/ conference at which they unveiled the upcoming version of Windows (commonly called Windows 8, though I don’t know if the marketing folks have accepted the fact that that is the name most of us are expecting for it yet). They released to the developer world a build of it called the Windows Developer Preview (and Windows Server Developer Preview) along with various tools for creating the new “Metro style” apps. I wasn’t able to make...
Wishing a very happy and blessed New Year to you in advance! A new release of Microsoft All-In-One Code Framework is available on December 29th. We expect that its 11 new code samples covering typical programming scenarios in Windows Phone 7, ASP.NET, WPF, Windows Shell, and WDK would ease your development in the coming New Year. You can download the code samples using Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand,...
Yes, we all know that the IT field is ever-changing. Yes, we all know the importance of keeping up to date on emerging technologies. Yes, we all know that you may never have the opportunity to use a lot of those technologies in your day-to-day role. So here is where the great divide comes… Those that are believers that the responsibility lies with their employer to provide ongoing training, and those that inherently take on the responsibility for themselves. The difference between the two views is...
First of all I am so happy to know that many developers around the world uses my controls (~ it's really a big surprise to me. =} ). Thank you all and hope you'll continue to provide feedback or feature suggestions so that I can work on it on my free time. I've seen a lot of developers asking me via email, forums, blog comments, and private messages requesting how to use those controls in ASP.NET 4.0 with the latest release of AjaxControlToolkit. As you may know the previous dll of ProudMonkey controls...
Every now and then I go to Tiobe to see their ratings on the popularity of programming languages. Usually there is nothing exciting out there, just a few small moves of languages so I was interested to see in December Tiobe had a headline of C++ about to be dethroned by C# Looking at the stats, sure enough, according to Tiobe C# is on the verge of taking the number 3 spot. It will be interesting to see what happens when Windows 8 hits the market with what seemed to be a revival of C++ during Microsoft’s...
Yesterday I received my copy of “Pro Windows Embedded Compact 7” by Avi Kcholi. http://www.apress.com/97814... It’s a great book for people that have some experience and knowledge Windows Embedded Compact 7 and want to learn the “black magic” behind device driver development on this operating system. The book guides the reader trough different aspects of drivers (and BSP) development, starting from the foundation and reaching some advanced topics that are not covered in the on-line reference....
The holidays have become a time rich with traditions for me. Family wise, its a time to get together and celebrate the people that love and support us throughout the year. Turkeys are cooked, gifts are opened, and well wishes are shared. But in the midst of all the goodness and emotion is another holiday that lends itself more to what Scrooge might value – capitalism, thrift, and commercialism. Yes, I’m talking about Boxing Day! Boxing Day, for my American friends, is very much Canada’s Black Friday...
Over the past few months we have been tweaking the usability of the Geekswithblogs.net Admin Tool for editing posts. We definitely suggest using Windows Live Writer for publishing you blogs due to the awesome plugins and support of image uploads, we understand the need for a non-Windows editor for posts or updates. One of the bugs submitted to us in the usage of our text editor was reformatting of posts when you publish from WLW and then make changes from the admin tool. The tool was eating up all...
Over the past few weeks we have been cleaning up the skins to support most modern browsers and monitor resolutions. This will cause your content area to have more space and support larger images. If you see any problems, please email us at support@geekswithblogs.com and we will get back to you ASAP. We have also added some changes to the “Share Link” feature to make it a little cleaner and support for Facebook, Twitter, and Technorati. We will add G+ once they support the ability to publish from...
I would like to share with you some exciting news from the Gizmox labs. If you haven't heard by now the Visual WebGui Mobile Team @ Gizmox has been working on a .NET Mobile Framework for a few months now. This mobile dedicated framework continues the Visual WebGui vision towards the mobile development workd by enabling Microsoft core .NET developers to leverage their existing skills for developing cross-platform HTML5-based mobile apps within Visual Studio. As with its Web Framework, the Visual WebGui...
Finally getting around to getting this thing off the ground. My goal for this blog is to talk about my ongoing learning/discovery of technology related to Microsoft’s .NET framework. On occasion I anticipate exploring tangential topics and the sociological/anthropological aspect of what of issues professional software developers encounter on a day-to-day basis...
For those of you who have the Samsung Slate 7 that Microsoft gave at Build (or that you purchase yourself!), and who are travelling: I hate to take chargers for all my gadgets, especially since my Windows Phone, my Bluetooth stereo headset and my Kindle (amongst others) all use micro-USB to charge. So I just take a couple of micro USB cables and I can charge my devices from the PC. However some laptops are cutting off power from the USB ports when they go to sleep. I thought it was the case with...
Agile taught us to release early and release often, Agile also taught us to get the end user involved more frequently and directly. Goes without saying that release notes are an important part of any release. But what you don’t want to be doing is manually putting together the release notes with each frequent release you do. TFS lets you manage the application lifecycle with great ease & minimal administrative overhead, if your team is already checking in the code against work items and if you...
I was recently inspired to write on this topic after two client experiences that demonstrated serious misconceptions about the role that software architecture plays in producing quality software. After performing an assessment of a mid-sized company, it was obvious that they were in dire need of a good software architect to design and maintain the design of the application that they were in the process of planning. After making the recommendation, the CIO began to explain that they had already chosen...
Here is one way to access a control in a GridView right after a user clicks a button to change from view to edit mode. This example shows a TextBox that gets populated with today's date. The GridView is setup like this:<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="TestID" DataSourceID="SqlDataSource1" onrowdatabound="GridView2_R... > <Columns> <asp:TemplateField> <ItemTemplate> <asp:Button ID="btnEdit" runat="server" Text="Edit"...
If you've ever had a poke around System.dll or System.Core.dll in Reflector, you may have noticed TypeForwardedToAttributes applied to the assembly: [assembly: TypeForwardedTo(typeof(Lazy... [assembly: TypeForwardedTo(typeof(Lazy... [assembly: TypeForwardedTo(typeof(Acti... [assembly: TypeForwardedTo(typeof(Acti... [assembly: TypeForwardedTo(typeof(Acti... [assembly: TypeForwardedTo(typeof(Acti... This post has a look at what these are,...
Spinning as described in my previous article is all about flow. Its premise is: flow can emerge when work is partitioned in small, evenly sized chunks processed in a smooth manner. There is a constant input of requests to the development team. A backlog is filled with strategically important requirements, support is reporting bugs, feedback requires changes, management wants to see ideas realized on short notice. Under these circumstances any plan becomes obsolete within a day or two. Or a lot of...
The C#/.NET Fundamentals series is geared towards examining fundamental concepts in using C# (and .NET in general) to produce effective solutions. I wanted to attempt a brief post before the holidays, so I decided to quickly revisit part a post I wrote a few weeks back on The Generic Func Delegates, and in particular, the sidebar on using Func as a generator for unit testing. At the time, I did not give that short sidebar the attention I really wanted, including showing the setup of the unit tests...
I have been looking into InRule, a business rule management system (BRMS) from InRule Technology, recently and thought I would do an intro blog on it. I have worked with business rule engines before and from past experience have developed my own list of priorities on what I feel are the most important aspects. Here they are… Priority 1 - Reduce the cost of change For me, one of the primary reasons for implementing a business rules engine is because you are expecting change and want to reduce the...
A friend of mine works for a large bank… about a year and a half ago they needed a new system developed for their division. They went through the normal process of using one of the recommended service providers to develop the system and this was their experience, which is still typical with most institutions I know… For the first few months development of the system seemed to be progressing along fine. They had meetings, business analysts put things on paper and the developers nodded their heads...
Agility needs to get onto the next level – that´s what I tried to explain in my previous articles. After a reality check – what´s missing from Agile practice? –, and some general musings about how a next level of Agility could look like, here now some very tangible suggestions. Crank up the frequency Current Agile practice is suffering from too little attention to Acceptance. To change this, very, very clear Acceptance dates need to be set. Acceptance can only get into a real pulling mode, if dates...
Todays's $10 Deal of the Day from APress at http://www.apress.com/97814... is Windows Mobile Game Development"This book will provide you with a comprehensive guide to developing games for both the Windows Mobile platform and the Windows Phone using the industry standard programming languages C# and VB .NET."...
My first Windows Phone app, Little League Coach, has just been released into the marketplace. If you have ever helped coach a team where every player bats every inning this app should help keep your sanity. It is a simple application to allow little league coaches to manage the lineup for a game as well as keep track of batter rotation. As a bonus it tracks pitches and outs during an inning. Here are a few screen shots from the application. del.icio.us Tags: Windows Phone 7,WP7,Windows Phone Marketplace...
Previously I blogged about Lync for mobile for the Windows Phone, this software is now available for the iPhone as well. Microsoft Lync 2010 for iPhone http://itunes.apple.com/us/...
A co-worker was showing me an in phone scripting environment on the iPhone and I knew I had seen one mentioned for the Windows Phone before. TouchDevelop is an app from Microsoft Research that allows you to create small applications that do a wide variety of operations including using most of the capabilities of the device. So could this be a fun way for us geeks to waste some time while waiting for our oil to be change or a table to open up at your favorite restaurant? So what does this language...
In November Alex Groß (http://therightstuff.de/) was in Uganda for holidays and we hijacked him to speak to us on some .NET geek stuff. In the image above you see Allan Rwakatungu, Jude Opima, Myself and Alex Groß. More pictures http://www.flickr.com/photo... These are some of the topics that were discussed. Test Driven Development. Alex shared a great amount detail and a step by step tour of how you can work with unit tests and went on to show MSpec as a BDD tool....
First off in order to get your asp.net site up and running (without membership) all you have to do is copy your aspx files to the root of the htdocs folder that they supply for you. This in itself is an application directory and because of this you can run ASP.NET pages. For your information, I host my site with HostForLife.euSecond, you can use membership by going to their admin pages, creating a database, exporting your data and schema from your current membership database, and then running a script...