Tag | Programming Posts

Introduction I don’t do web programming… I have been programming client applications for years and consider myself a WPF/Silverlight developer. The web thing always seemed a bit scary in its stateless environment with limited functionality and cross browser headaches. That was until recently when apparently HTML5 was going to kill Silverlight and I eventually decided that I would need to get educated and up to date. Since that decision I have re-accustomed myself with HTML, CSS & JavaScript. ...
I posted a little while ago about how, with XNA and VB becoming a supported scenario, I was starting down the road to learning VB. Just a brief update on that. If you ever need to learn another language, having practical tasks is a huge benefit. Something I’ve been making use of is Project Euler. Writing the solutions in different ways to intentionally make use of certain syntax features has helped me both internalize them and understand them. As a by-product, I managed to hack together a VB Windows ...
As Harry Hill might say, "I like Visual Studio. And I like Eclipse. But which one is better? Only one way to find out…" For a lot of people a lot of the time, the question is irrelevant. If you are doing Java development, you are going to pick Eclipse, and for .NET development you are going to pick Visual Studio. But both IDEs are extensible, and have communities providing extensions for other languages, so if you are using another language it might not be so clear cut. And if you are a language ...
In this Issue: Derik Whittaker, Morten Nielsen, Jeff Prosise(-2-), Harold Martinez, WindowsPhoneGeek, Jesse Liberty(-2-), Martin Krüger, and Xianzhong Zhu. Above the Fold: Silverlight: "Multithread Programming in Silverlight 4" Xianzhong Zhu WP7: "Silverlight for Windows Phone Programming Tip #8" Jeff Prosise XNA: "Basic XNA" Harold Martinez From SilverlightCream.com: Adding Runtime Intelligence to your Windows Phone 7 Application Derik Whittaker has a post up that all the WP7 devs should be interested ...
In this Issue: Michael Washington, Morten Nielsen, John Garland, Bil Simser, Adam Nathan, András Velvárt, WindowsPhoneGeek(-2-), Jesse Liberty(-2-), Martin Krüger, Damon Payne, and Xianzhong Zhu. Above the Fold: Silverlight: "Using ICustomTypeProvider in Silverlight 5" Damon Payne WP7: "Hardware Back Button + Marketplace Certification" Adam Nathan Lightswitch: "Deploy Your LightSwitch Application As A DotNetNuke Module" Michael Washington From SilverlightCream.com: Deploy Your LightSwitch Application ...
In this Issue: Dave Davis, Oren Gal, Colin Eberhardt, Dan Wahlin, Jeff Prosise(-2-), @yuriylsh, Bill Reiss, Richard Waddell, Andrea Boschin(-2-), András Velvárt. Above the Fold: Silverlight: "Working with User Names and Roles in Silverlight Applications" Dan Wahlin WP7: "Silverlight for Windows Phone Programming Tip #7" Jeff Prosise MIX11: "MIX11 Mass Download Tool" @yuriylsh From SilverlightCream.com: Controlling Silverlight Child Windows Using MVVM Dave Davis has a post up that revisits a subject ...
HTML5 introduces markup-level functionality for rich graphics, animation and web multimedia. It also supports a richer web application functionality and extends the client capabilities with local storage. Many pundits see it as the next generation web - web 3.0 if you like - and an open standard replacement for propriety plug-ins, Microsoft Silverlight and Adobe Flash. But, for all its new features, HTML5 is still only the end product. This article looks at HTML5 from the web programmer's point of ...
Last week, I was interviewed by Zandra Nilocas from Microsoft Philippines. It was my first time experience to talk about something in front of the camera so it's not surprising that I looked like an idiot in that interview (you know swiveling my chair back and forth without noticing it). Anyway in the interview we talked about ASP.NET WebForms, MVC and Web Matrix in general and just to elaborate a bit of what we talked about and to clarify things out, I have decided to write this post... WebForms ...
Yesterday I did my first grok talk - it was on Unity Interception at Dot Net Dev Net in Bristol, UK. It went ok! The feedback was that the content was very good but the presentation could have been a bit better, which is very possibly the story of my programming life :) For posterity, I've put the content on BitBucket. There's a Powerpoint slide show with notes (more or less what I said as I went through it) and 4 demo C# projects - one each for Interface Interception, Transparent Proxy Interception ...
At http://oreilly.com/store/dd... there is a 50% off offer on e-books. In honor of MIX11, happening now in Las Vegas, you can SAVE 50% on these ebooks from Microsoft Press. (however the Microsoft Press ebook: Programming Windows Phone 7 is available for free at http://www.microsoft.com/do... ...
Client + cloud computing is a disruptive, new computing platform, combining diverse client devices – PCs, smartphones, sensors, and single-function and embedded devices – with the unlimited, on-demand computation and data storage offered by cloud computing services such as Amazon’s AWS or Microsoft’s Windows Azure. As with every advance in computing, programming is a fundamental challenge as client + cloud computing combines many difficult aspects of software development. Orleans is a software framework ...
In this Issue: Viktor Larsson, Kunal Chowdhury(-2-), Manas Patnaik, Joost van Schaik, Jeff Prosise(-2-), Shawn Wildermuth(-2-), Xianzhong Zhu, Nigel Sampson. Above the Fold: Silverlight: "How to design a Custom Control by editing the Part Template?" Kunal Chowdhury WP7: "Wp7nl utilities" Joost van Schaik Shoutouts: If you're one of the ones that camps out on the forums looking in vain for a question to answer, you may be in luck with Aximus' MS Community Forums RSS Reader that'll get you forum posts ...
In this Issue: Michael Crump, Jeremy Likness, Matthew Delisle, Xianzhong Zhu, Nigel Sampson, Jeff Prosise(-2-), Andrea Boschin, Mike Ormond, Jeff Wilcox, and Bil Simser. Above the Fold: Silverlight: "Silverlight Scaling and Anti-Aliasing Issues" Jeremy Likness WP7: "AgFx Windows Phone App and Data Caching Framework" Jeff Wilcox Shoutouts: The tool Mike Ormond discussed in a post listed below is WP7 Screenshot Tool by Cory Smith DiscountASP.NET has a post up about the latest SQL Injection attack going ...
Fellow Techies of the world.. Welcome! In this obligatory first post I want to just tell you a little about myself and what I intend to do with this blog. I’ve worked in fits and starts on a tech blog before so I’m happy to be a part of the GeeksWithBlogs community now and make it my new home. Let’s begin at the beginning… Sometime back in 1995 my dad (who has worked with computer pretty much since there have been computers) brought home 2 books. Visual Basic 4 and Visual C++ 4 (For Beginners). I ...
In this Issue: Kevin Hoffman, Kunal Chowdhury(-2-), Colin Eberhardt, Rudi Grobler, Michael Washington, WindowsPhoneGeek, Nigel Sampson, Jeff Prosise(-2-), and Andrea Boschin(-2-, -3-, -4-). Above the Fold: Silverlight: "How to create a Custom Control in Silverlight?" Kunal Chowdhury WP7: "Metro In Motion #3 – Flying Titles!" Colin Eberhardt Lightswitch: "A LightSwitch Home Page" Michael Washington Shoutouts: Normally you wouldn't see me listing something like this, but hey, it's on Silverlight.net: ...
Few months ago I wrote a series of articles regarding how to Insert, Update, Fetch and Delete data in the form using LINQ to SQL. You can view the series of articles below: Inserting Data to Database using LINQ to SQL Fetching Data from Database and Populating fields in the Form using LINQ to SQL Editing, Updating and Deleting Data in the Form using LINQ to SQL In this article I'm going to demonstrate the basics on how to work with MS Entity Framework. Basically in this part I'm going to show you ...
In this Issue: John Papa, Rudi Grobler, Michael Washington, Jeff Prosise(-2-), Xianzhong Zhu, Nigel Sampson, Martin Krüger, WindowsPhoneGeek, Vinit Yadav, András Velvárt, and Alex Sorokoletov. Above the Fold: Silverlight: "Response.MVVM is now available via NuGet!" András Velvárt WP7: "BounceBall - XNA Farseer Magic" Vinit Yadav Lightswitch: "LightSwitch Online Ordering System" Michael Washington Shoutouts: Cigdem Patlak has a post up about the ROCK! event beginning next weekend in LA: Microsoft ...
For anybody who might have missed the news, XNA is coming to Visual Basic. I’ll admit that my first reaction was to groan and grumble and mumble. But this is actually a very good thing. While nothing’s ever certain, the fact that Microsoft has spent time making Visual Basic a supported language in XNA Game Studio is a further sign of Microsoft’s long-term commitment to XNA. (Note that VB.NET with XNA is not an immediately available thing; it’s still a few months off as the original blog post notes). ...
In this Issue: Roy Dallal, Rudi Grobler, Jeff Prosise(-2-), Jesse Liberty, Morten Nielsen, Derik Whittaker, Peter Torr, Xianzhong Zhu, and Adam Kinney. Above the Fold: Silverlight: "Silverlight: Adding Google Streets View" Roy Dallal WP7: "Using the accelerometer to control planar transforms on Windows Phone 7" Morten Nielsen Shoutouts: Andy Wigley posted this today from appamundi: Want a FREE Windows Phone?? From SilverlightCream.com: Silverlight: Adding Google Streets View Roy Dallal posted an ...

The subtitle to to this excellent book is "C# illustrated clearly, concisely and visually".  By using diagrams to make clear various points, the author has provided an excellent manual to C# 2010.

I recommend this book to all C# developers. It should be in every C# programming team's library. Whilst providing insights to experianced C# developers, it would also be a good book for someone to learn C# from.

I look forward to reading more books from this author.

(these are lifted verbatim from Microsoft here, here and here and are presented below only because it’s convenient to have them lumped altogether…) Getting Started with Windows Phone Windows Phone development platform supports both XNA Framework and Silverlight. This unit takes you through the step-by-step creation of your first Windows Phone Silverlight application. Hands-On Labs · Hello Windows Phone This lab intends to be the classic "Hello World" application, introducing you to the tools and ...
In this Issue: Michael Washington, Michael Crump, Alex Knight, Benjamin Roux, Nigel Sampson, and Jeff Prosise(-2-). Above the Fold: Silverlight: "[Silverlight] How to watermark a WriteableBitmap with a text" Benjamin Roux WP7: "My 10 tips for designing phone apps" Alex Knight Lightswitch: "LightSwitch and HTML" Michael Washington From SilverlightCream.com: LightSwitch and HTML Michael Washington's latest Lightswitch post is up on CodeProject... and he's creating an ASP.NET page that communicates ...
Lately I’ve been doing a lot of drawing. A lot of it has been creating sprite animations for XNA projects. From many years of using it, I work primarily with Gimp. Some aspects of it frustrate me (mostly its awkward window management in Windows), but it suits my purposes well enough and lets me do things that other free solutions don’t. One thing I learned quite some time ago was that when including multiple items in a single texture (i.e a sprite sheet), you want to have some separation between ...
You want to avoid the pitfalls of object oriented design? Then this is the right place to start. Use Flow-Oriented Analysis (FOA) and –Design (FOD or just FD for Flow-Design) to understand a problem domain and design a software solution. Flow-Orientation as described here is related to Flow-Based Programming, Event-Based Programming, Business Process Modelling, and even Event-Driven Architectures. But even though “thinking in flows” is not new, I found it helpful to deviate from those precursors ...
So, I’ve just completed my 5th commercial iPhone App. Always when I move to a new programming language I take a test application and port it to learn. So my equivalent of “Hello World” app. is - http://itunes.apple.com/gb/... I built this, as an app about a year ago, but figured that it worked so well on iOS that I would get it published. Technorati Tags: I-Ching,iChing,iPhone,iTunes ...
A new release of Microsoft All-In-One Code Framework is available on March 8th. Download address: http://1code.codeplex.com/r... You can download individual code samples or browse code samples grouped by technology in the updated code sample index. If it’s the first time that you hear about Microsoft All-In-One Code Framework, please read this Microsoft News Center article http://www.microsoft.com/pr... or watch the ...
Last week I was fortunate enough to spend time in Redmond on Microsoft’s campus for the 2011 Microsoft MVP Summit. It was great to hang out with a number of old friends and get the opportunity to talk tech with the various product teams up at Microsoft. The weather wasn’t exactly sunny but Microsoft always does a great job with the Summit and everyone had a blast (heck, I even got to run the bases at SafeCo field) While much of what we saw is covered under NDA, there a ton of great things in the ...
Thanks to everyone who helped pack the room at the Fox Valley Day of .NET. This presentation was designed to help developers understand why secure coding is important, what areas to focus on and additional resources. You can find the slides here. Remember to understand what you are really trying to protect within your application. This needs to be a conversation between the application owner, developer and architect. Understand what data (or Asset) needs to be protected. This could be passwords, ...

I am now at the half-way point of this very interesting book. I am very impressed by the clear explanations and diagrams to explain verious points. This is an excellent book for understanding C#.

I recommend this book both to programming teams for their library and to developers using C#.

There are times when an enumerated type is preferred over using the raw data type. An example of using a scheme is when we need to check the health of x-ray gauges in use on a production line. Rather than using a scheme like 0, 1 and 2, we can use an enumerated type: 1: /// <summary> 2: /// POR Healthy status indicator 3: /// </summary> 4: /// <remarks>The healthy status is for each POR x-ray gauge; each has its own status.</remarks> 5: [Flags] 6: public enum POR_HEALTH : ...
I had fun presenting “What’s new in Entity Framework 4” at the Winnipeg Code Camp today. I mentioned some resources on my deck that I thought I’d include here in my blog. •EF 4.0 Hands on Labs •EF CTP 5 (has the new DbContext and CodeFirst support) •MSDN Data Developer Center: MSDN.com/Data •ADO.NET Team Blog •EF Design Blog •How to choose an inheritance strategy Programming Entity Framework, Second Edition by Julia Lerman ...
User-Defined Functions Scalar User-Defined Function A Scalar user-defined function returns one of the scalar data types. Text, ntext, image and timestamp data types are not supported. These are the type of user-defined functions that most developers are used to in other programming languages. Table-Value User-Defined Function An Inline Table-Value user-defined function returns a table data type and is an exceptional alternative to a view as the user-defined function can pass parameters into a T-SQL ...

Having finished Pro DLR in .Net 4, I have concluded that this is a book that needs to be read through several times and the examples worked through.  Since the Dynamic Language Runtime is as much a radical change as the the original Common Language Runtime, this is hardly surprising.

Ultimatly the DLR will enable more niche programming languages, hence I recommend this book to Dot Net teams for when they have a requirement that justifies the effort.

It's hard to believe October was the last time I was over here on my blog. Ironically after getter the developer phone from Microsoft I have been knee deep in iPhone programming and for the past few weeks Android programming again. This time I've spent all my non-working hours programming a fun project for my "other" website, Disneyland Inside Out. Disneyland Inside Out, a vacation planning site for Disneyland in California, has been around in various forms since June 1996. It has always been a place ...
After a couple of year hiatus from blogging at Geeks With Blogs, I’m back! I’m still blogging about Visual Studio 2010 and TFS 2010 over at Team System Rocks (soon to undergo some major revisions), so expect to see some cross postings from there. Here though, I expect to focus on System Center technologies (mostly System Center Operations Manager and System Center Service Manager, with some of the others thrown in there too, as that is my day job now.. I’ll also use this blog to start tracking my ...
Hi and welcome! I'm a software developer and this is my geeks blog. I have 20 years Visual Studio mainly C++, MFC, ATL and now, thankfully, C# and I am embarking on the new world (well new to me) of WPF, so I thought I would try and capture my successful...and not so successful...WPF experiences with the geek world. So where to start? WPF? What I know so far... From wiki..."Windows Presentation Foundation (or WPF) is a graphical subsystem for rendering user interfaces in Windows-based applications." ...
In this Issue: Oren Gal, Andrea Boschin(-2-), Kevin Hoffman, Rudi Grobler(-2-, -3-), Michael Crump, Yochay Kiriaty, Peter Kuhn, Loek van den Ouweland, Jeremy Likness, Jesse Liberty, and WindowsPhoneGeek. Above the Fold: Silverlight: "Multiple page printing in Silverlight4 - Part 2 - preview before printing" Oren Gal WP7: "Windows Phone 7 Tombstoning with MVVM and Sterling" Jeremy Likness XNA: "XNA for Silverlight developers: Part 4 - Animation (frame-based)" Peter Kuhn From SilverlightCream.com: ...
Most XNA programmers are concerned about generating garbage. More specifically about allocating GC-managed memory (GC stands for “garbage collector” and is both the name of the class that provides access to the garbage collector and an acronym for the garbage collector (as a concept) itself). Two of the major target platforms for XNA (Windows Phone 7 and Xbox 360) use variants of the .NET Compact Framework. On both variants, the GC runs under various circumstances (Windows Phone 7 and Xbox 360). ...
Today I thought I would go back in time and have a look at the DEBUG command that has been available since the beginning of dawn in DOS, MS-DOS and Microsoft Windows. up to today I always knew it was there, but had no clue on how to use it so for those that are interested this might be a great geek party trick to pull out when you want the awe of the younger generation and want to show them what “real” programming is about. But wait, you will have to do it relatively quickly as it seems like DEBUG ...
In this Issue: Mohamed Mosallem, Tony Champion, Gill Cleeren, Laurent Bugnion, Deborah Kurata, Jesse Liberty(-2-), Tim Heuer, Mike Taulty, John Papa, Martin Krüger, and Jeremy Likness. Above the Fold: Silverlight: "Binding to a ComboBox in Silverlight : A Gotcha" Tony Champion WP7: "An Ultra Light Windows Phone 7 MVVM Framework" Jeremy Likness Shoutouts: Steve Wortham has a post up discussing Silverlight 5, HTML5, and what the future may bring From SilverlightCream.com: Silverlight 4.0 Tutorial (12 ...
Today I got to play with NASM. This is an assembler and disassembler that can be used to write 16-bit, 32-bit & 64-bit programs. Let me say upfront that the last time I looked at assembly code at any depth was when I was studying Computer Science in Pietermaritzburg – ten years ago – and we never ever got to touch any real assembly code so a lot of what I am looking at today is very new to me. The first thing I did was download NASM compiler. This turned out to be a bit more complicated than ...
Ever now and then I kept wondering how to share with my kids the excitement of creating something with your computer. Of course, today this is a bit more difficult, as they have seen 3D animation games and well-edited websites. I guess that's why they weren't all that hyped when I found my first computer model at our local recycling facilities (an 8-bit Laser VZ-200 with rubber keys). When I finally got it up and running with an old analog TV set they finally asked whether we could play soccer on ...
Over Christmas I got to play a bit with the W3C RIF PRD and came across a few issues which I thought I would record for posterity. Specifically, I was working on a grammar for the presentation syntax using a GLR grammar parser tool (I was using the current CTP of ‘M’ (MGrammer) and Intellipad – I do so hope the MS guys don’t kill off M and Intellipad now they have dropped the other parts of SQL Server Modelling). I realise that the presentation syntax is non-normative and that any issues with it ...
Last night I gave a talk to the Portland Silverlight User Group. http://www.portlandsilverli... And I survived (which you should have probably already figured out since you’re reading this post AND that’s what I titled it…) Really though it was a fantastic time and I had a lot of fun! I was a little nervous getting ready for it, but I’m always a little nervous getting ready for things. I had the game all written, I knew the general flow for what the talk was going to be. I ...
In this Issue: Peter Kuhn, Mike Ormond(-2-, -3-), WindowsPhoneGeek, Daniel N. Egan, Phil Middlemiss(-2-), Max Paulousky, Michael Washington. Above the Fold: Silverlight: "Designing for Browser-Zoom: Part 2" Phil Middlemiss WP7: "Talking about Converters in WP7 | Coding4fun toolkit converters in depth" WindowsPhoneGeek Lightswitch: "LightSwitch: Can We Handle The Truth?" Michael Washington Shoutouts: András Velvárt has a video up of some awesome changes he has planned for SurfCube, check it out: SurfCube ...
Version 5.1.3 of Resharper has been released by Jetbrains. Download is at http://www.jetbrains.com/re... The release notes are at http://blogs.jetbrains.com/... Whilst 5.1.3 addresses just a specific issue, if you are programming in C# or VB.NET and if you have never tried Resharper before, you should try it. When I first saw ReSharper in use, within a few minutes I knew that it was worthwhile buying my own copy. Since then I have used ...
In this Issue: Shawn Wildermuth, John Papa, Jesse Liberty(-2-), Mike Wolf, Matt Casto, Levente Mihály, Roy Dallal, Mark Monster, Andrea Boschin, and Oren Gal. Above the Fold: Silverlight: "Accept and Cancel Buttons Behavior in Silverlight" Matt Casto WP7: "Windows Phone 7 Runtime Debugging" Mike Wolf Shoutouts: Al Pascual announced a get-together if you're going to be in Phoenix on February 10 (next Thursday)... I just can't tell what time it is from the page: Phoenix Dev Meet-Up From SilverlightCream.com: ...
Hi, I presented on Windows Phone 7 app development using Silverlight. Here are few pics from the event Windows Phone 7 development VIEW SLIDE SHOW DOWNLOAD ALL I demonstrated the Visual studio, emulator capabilities/ features. An demo on Wp7 app communication with an OData Service, along with a demo on XNA app. There was lot of curious questions; I am listing them here because these keep on popping up again and again: 1. What tools does it takes to develop Wp7 app? Are they free? A typical WP7 app ...
Just thought I would get a couple of notes up here for reference to anyone that is interested...it is now Feb 2011 and I have not been posting here enough to remember this blog. Back in Nov 2010 I ordered the Ti launchpad msp430, it is a little target board kit replete with a mini USB cable, two very inexpensive programmable mcu's and a couple of pin headers with a couple of led's on board, a spi connector some on board jumpers and two programmable micro switches....all for less than $5.00...INCLUDING ...