Tag | Programming Posts

Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} I just got back from my first ...
I created a VB .NET DLL that I wanted to expose to COM+. I found some info on the web on how to do that and it worked great. That was in VS 2003 with framework 1.1 Now I need to rewrite one of the private functions in the dll. Seems pretty easy to do. However I'm using VS2005 and framework 2.0 . After rebuilding the DLL the typelib is way different. All the public fields I had in the prior version are not in the new typelib. After a long time I figured out what the issue is. The original assembly.info ...
SQL server high availability comes in 2 basic categories. 1) Clustering using a SAN drive and multiple physical servers attached to the disk storage 2) Stand alone equipment acting in parallel A SAN configuration is an expensive solution; typically a disk storage array needs to be purchased with high speed communication channels (typically fibre). Therefore #2 is often the recommended configuration for smaller shops and less critical databases. Awareness of this topic is important for developers ...
Lately I've had a few people approach me after speaking engagements or conferences and ask for some advice on becoming a .NET developer. Sometimes this has been moving into IT from an unrelated field or other times it's just been a transition of existing development skills into .NET. Now if you have been in this industry for awhile (and had any success) you have apparently demonstrated at least some capability to migrate your skills from one newly released technology to the next. In 2009 it's hard ...
As you may know, I do mostly WinForms development at my current position. Altogether, I do have an affinity for WinForms development over web development, mostly because simple websites were easy to make when I was young, but making a windows application was something I didn't do until much later on. Well, WindowsClient.net is a great Microsoft resource for those interested specifically in smart client applications, and the even better news is that the bulk of the videos for WinForms in particular ...
In this issue: Guy Ellis, Jonathan van de Veen, Jesse Liberty, Beatriz Stollnitz, Justin Angel, Manish Dalal, and Damon Payne. Shoutout: Earlier today I left out a shoutout to Laurence Moroney because he announced the availability of his Silverlight 2 Book – In Russian/u>! From SilverlightCream.com: BMI Calculator Guy Ellis is one of Phoenix' own, and decided to enter the MIX09 10K competition. He has a very clever BMI calculator with and expanding/contracting person showing... pretty clever, ...
In this issue: Pete Brown, Damon Payne, Agata Staniak, Justin Angel, and David Anson. Shoutout: John Papa responded to some of the Silverlight security posts lately: Security and Silverlight. From SilverlightCream.com: Dealing with the “Project file must include the .NET Framework assembly …” Error I missed this one from just before Christmas by Pete Brown detailing how to resolve the error in the title... pretty simple, actually! Run time is design time for AGT [11] Episode 11 of Damon Payne's coding ...
In this issue: Al Pascual, Damon Payne, Laurent Bugnion, Shawn Wildermuth, Jesse Liberty, and Jobi Joy. Shoutout: Shawn Wildermuth has announced that Silverlight Tour Now includes Coverage of the Silverlight Toolkit. From SilverlightCream.com: Vote NO on the crossdomain.xml file, use the cloud to bypass errors. Al Pascual opens up a way to cause himself and everyone else some problems with Cross-Domain issues, but I looked at his post of combining his Azure proxy with Silverlight as being more interesting ...
Ok, last post I talked about the possibility of being able to subscribe to a published GPS. Well I've only gone and done it. I've built a small GPS server that broadcasts the data from a connected GPS. This is the server running - To attach type TELNET localhost 2947 at your favourite command prompt. You'll see the GPS being broadcast like so - (looks about the same doesn't it, which I guess is the whole point) Full Visual Studio project - Here Let my know what you think? Its a multi-threaded server, ...
Recipe for Learning programmming :(Reference:http://norvig.c... Get interested in programming, and do some because it is fun. Make sure that it keeps being enough fun so that you will be willing to put in ten years. Talk to other programmers; read other programs. This is more important than any book or training course. Program. The best kind of learning is learning by doing. To put it more technically, "the maximal level of performance for individuals in a given domain is not attained ...
1. Introduction This article shows how you can use attributes to validate your business objects. You may have had to write tones of code to validate your business objects without taking advantage of attributes. The value of attributes comes when you need to apply the same rules on a number of properties and the only thing you have to do is to decorate your property accordingly. For other articles on attribute based validation please check the Visual Studio Magazine and Ennis Ray Lynch, Jr. 2. Background ...
Tomorrow I'm taking the 070-536 exam. This will be my first Microsoft certification exam, and I'm hopeful to pass but I won't be terribly surprised if I do not. From what I've seen around the forums online and other blogs, this exam is not one that is a breeze. So, here's a look at how I've prepared, and maybe some helpful links for those of you looking to take this exam in the future. After I take the test tomorrow I will review how I could do better, and what might be better advice to those looking ...
Only a bunch of programmers would come up with this great idea. For the second year in a row Sierra Bravo, a web development firm based in Bloomington, Minnesota, will sponsor its Overnight Website Challenge. Non-profit organizations apply for consideration for the Challenge and the chosen NPO's get 24 hours of free web design services provided by volunteer programmers. The purpose of the event is to highlight how web technology can help non-profits further their missions and assist 10 deserving ...
I really enjoyed the first St. Louis Day of .Net. There were over 200 people that showed up! My session this year was on Open Source Solutions for Application Lifecycle Management. Besides being one of the non totally Microsoft sessions, I also had the honor of having the longest title for the entire Day of .Net. Application Lifecycle Management is a huge topic, and I only had 50 minutes to cover some stuff, so I limited it to the following 4 areas: Defect Tracking and Change Management Unit Testing ...
Yesterday was the St. Louis Day of .NET event (hencefore I'll refer to STLDODN); it was a great success!. I was fortunate enough to be involved in this grand event; Clint Edmonson asked if I would be available to present some Microsoft PDC material, and I took that opportunity - even got to choose which topic to present. I chose to do a presentation on Parallel Programming for Managed Code Developers. Thanks for the chance, Clint. To make sure I'm well prepared, I also volunteered to present it at ...
I was cleaning up some of my old notes today in One Note. Some of these notes go back to my previous employment when among other things I was doing technical support on a enterprise application integration (EAI) tool. The very nature of the tool meant that most of the support issues were related to custom code whether consultant or in-house created. The company where I was employed had some basic guidelines for support, but they were terse and more aligned to the ERP software which started them out. ...
In this issue: Silverlight SDK, Shawn Oster, Jeff Wilcox, Bart Czernicki, David Anson, Jonathan van de Veen, and Kevin Dockx. Shoutouts Adam Kinney has a link out to NEC Biglobe’s Deep Zoom multi-layered photo viewer, and they've done some cool effects on it. From SilverlightCream.com: Advertising with Silverlight The Silverlight SDK has a post about Advertising with Silverlight, and a link out to a guide for doing so. Working with Units of Measure in a NumericUpDown Shawn Oster takes on the NumericUpDown ...
QCon is an amazing conference. Maybe 300+ attendees and about 100+ speakers. It is targeted at enterprise developers, and is not for the 'next, next, finish' developer. There feels a definite lack of .Net here at the conference (I mean other than the specific .Net track) but there is a good Java, Python, Ruby, etc. feel which makes me not feel too out of the loop. If you have not heard of QCon before, I encourage you too look at it as a possible conference to attend next year. I have had the pleasure ...
Registration Link: http://www.nhmn.com/Courses... Overview: Harness web applications built in Silverlight 2.0 to deliver browser rich, accessible content to clients and customers. Silverlight 2.0 is not just a browser plug-in, but a web programming platform built on the powerful .NET Framework. This powerful architecture allows companies to build rich internet applications while still maintaining their .NET developer base. Silverlight 2.0 leverages the separation of ...
Kansas City hosted a Kansas City Day of .NET this past Saturday; I was fortunate enough to be given the opportunity by Lee Brandt to present there. Wonderful time was had for all, food & drinks were provided along with some nice raffled items at the end. Kudos to the 3 facilitators of this event: Lee Brandt, Becky Isserman and Doug Butscher. In any case, I was there presenting Parallel Programming for Managed Code Developers; essentially re-delivering Daniel Moth's excellent PDC presentation. ...
First of all, as a computer science trainer for many years, I'm biased to classroom training. As a trainer, you can see someone's eyes and determine if your students are learning concepts that you are teaching. I will adjust my presentation if needed so that the majority of the audience understands. There's always that minority that needs more help. Also, as a student, getting one on one help is the best way to learn. However, as you might know, there might not be a class in what you need to learn ...
I was just on a cool webcast called the .NET Coffee Break Show. I did a short show on getting started with IronRuby and Silverlight. Because the show is supposed to be just 30 minutes or so, I didn't get into my usual preaching about the Ruby programming language or why people should use a dynamic language. Instead I just stated the fact that I really like Ruby and I really like Silverlight and I especially like the combination of the two. I've got a walk through on getting started with IronRuby ...
Hello readers, and welcome to my new blog - phpd!

PHPd is going to be my new blog for sharing my PHP programming knowledge and also details of any new PHP frameworks, new e.t.c

I hope you enjoy reading this blog!
How to Customize theme code for MYTHEME theme. It is only necessary if you want to create another one like MYTHEME theme. Here are the instructions of creating Custom Theme with MYTHEME standard. How to: Customize Themes You can add new themes or customize existing ones for application to Web sites in Microsoft Windows SharePoint Services 3.0. This programming task shows how to customize an existing theme. To create and customize from an existing theme Copy one of the theme folders in Local_Drive:\Program ...
I am for 7 years now in the IT industry I have heard a lot of good things about pair programming, I don't know if it is just a rumour :), like the fact that pair programming reduces the number of bugs by 30% , reduces the maintaience of the code, which is the largest part of a programme's lifecycle... Well now I have the very exciting opportunity of working in an Agile driven development environment and I could peek a few advantages over this last two weeks. First it was very, very easy for me to ...
This is a constant battle I fight in my head when I'm designing something. MSDN has an answer: When to use Delegates Instead of Interfaces, but it is nowhere as complete as I thought it should be. Good Object Oriented Design dictates using interfaces to decouple contracts from implementations.The premise is to enable substituting different implementations of an interface.Nothing new here just plain old good design guidelines. With the introduction of delegates in .NET 2.0 and lambdas in .NET 3.5 ...
location: At Lamar Advertising Wednesday, December 10, 2008 5:45 PM - 8:00 AM Sponsored by: Robert Half Technology Presenter Kate Gregory BIO: Kate Gregory is the Microsoft Regional Director for Toronto, a Visual C++ MVP, the author of over a dozen programming books, and a technical speaker. In 1986, she founded Gregory Consulting with her partner, Brian. Based in rural Ontario, Gregory Consulting provides consulting and development services throughout North America, specializing in software development ...
Generics in C# have been around for a while (the concept of generics has been around even longer) but there are still a lot of developers who don’t have a good understanding of what they are or how to use them. Looking at the direction C# 4.0 is taking, generics are becoming more and more important and if you don’t make them a natural part of your programming tool belt you are going to find yourself falling behind the curve. Karl Seguin at CodeBetter.com has an excellent post that explains generics ...
Event Date: Saturday, January 19, 2009 Event Time: 08:30 (registration), 09:00 – 17:00 Event Location: Microsoft Tampa Office If you want to learn what TDD is all about, this is the event to attend. It’s a day-long event where you will go from start to finish with a sample domain problem and learn how to write tests to drive functionality of the system. This promises to be an excellent event and will be good for both beginners and those experienced with TDD. There will be two tracks running simultaneously, ...
So because of an oversight on my part using LiveWriter, Part 1 is being posted after Part 2. To recap, over at Aarron Erickson’s blog he got quite the response to his post about the marketing failure of XP and specifically Paired Programming (PP). Aaron, in his post, jokingly (although much truth is said in jest) talks about how PP will prevent developers from doing things like surfing the web or getting bothered by others, but he makes valid points that there are tremendous benefits to an organization ...
We continue our discussion of comments left over at Aaron Erickson’s blog in response to his post about the marketing failure of XP and specifically Paired Programming (PP). To recap: Aaron, in his post, jokingly (although much truth is said in jest) talks about how PP will prevent developers from doing things like surfing the web or getting bothered by others, but he makes valid points that there are tremendous benefits to an organization that implements PP. The point of the entire post was making ...
Goal Ensure your developers build code to meet the spec (the contract of customer requirements) in a timely manner Ensure your developers build code changes that don’t break the spec and that pass functional requirements Ensure your developers build code which is robust (not fragile) and that meets design and code quality guidelines The Spec Make sure that the technical analyst provides appropriate specs! Keep it deliverable – compile-able. No point building mounds of UML diagrams that don’t stay ...
Note: This was originally chapter 13 of my book, UML Applied: A .NET Perspective from Apress. My editor and my tech reviewer read it; and both said, "We like it; but what does it have to do with UML?" So I came up with a more on-topic closing chapter. But I still like it. It sums up my view of the software development profession quite nicely. So I thought I would share it here. Somewhere, deep in our prehistory... A man tells a story, a story of a hunt. Perhaps it's a hunt he's planning. Or perhaps ...
I was recently following along in a quick tutorial in Microsoft ASP.NET Programming with Microsoft Visual Basic .NET Version 2003 Step By Step by G. Andrew Duthie, when low and behold I came across a fundamental tutorial about ASP.NET authentication that just didn't work. The culprit? authorization forms credentials has a default of SHA1, not Clear that the book assumed. I checked through the MSDN entries to make sure this still applied in 3.5, even though the book was written for ASP.NET 1.1 (which ...
If you're in the Kansas City area and you haven't heard about Kansas City Day of .NET (or KCDODN) then you're missing out. KCDODN is Saturday, December 6th at the Centriq Training center. (Go here to register...) Looks like 4 tracks of .NET Developer goodness, including a session by yours truly. GWB'ers Jeff and John will be there as well... so come say hi if you're there. Kansas City Day of Dot Net Development Architecture SharePoint Special Interest 8:00am - 9:00am Registration & Breakfast ...
Here's the complete list of sessions from PDC and my personal favorites. You can find all the recordings of these sessions at www.microsoftpdc.com. Here's my personal favorites: Windows Azure (Hosted ASP, Workflow, Silverlight, RAW / Azure Storage) A Lap Around Windows Azure (ES16) - 0:46 Slides | WMV-HQ | WMV | Zune A Lap Around the Azure Services Platform (BB01) - 1:12 Slides | WMV-HQ | WMV | Zune Live and Mesh (Sync, Feeds, Resources, Contacts, etc.) A Lap around the Live Framework and Mesh Services ...
Besides programming I am working on a personal project -- writing a novel. This is a project I started in 1994 and dropped shortly after due to other things in my life at the time. I have recently picked it back up. I have always enjoyed writing and the exercise has been strangely cathartic. Basically the rough draft is around 75,000 words, slightly less than half done. I'm a little worried about getting everything into 200,000 words but I will burn that bridge when I get to it. I don't know the ...
I finally decided to write a post about attending PDC. There are so many great posts out there about PDC that do a great job of describing the overall experience. Bill Wagner has a great post on his blog, and so does Rick Strahl. The overall experience was really great and the quality of the sessions were very professional and the presenters did an excellent job in delivering the most information in the alloted time.There are still a bunch of sessions that I wish I could have personally attended ...
QUICK THOUGHT: The engineering practices in Extreme Programming (Like TDD, Pair Programming, etc) can lead you to improving your code. But it won't do it for you. TDD will point out design flaws, but it won't GIVE you good design skills. If you write lousy code, you'll find it very hard to maintain practicing XP, but XP won't MAKE your code better. You still have to do it. You STILL have to read books, write code and share with other developers.

KAIZEN!

~Lee
Thursday during the keynote at PubCon in Las Vegas Microsoft announced “Project Silk Road” which is a collection of services, including a new version of the Live Search APIs for developer community – basically Search API 2.0 Beta + Search Ads pilot. I can tell you all from firsthand experience that this is very slick! As one of the first implementations of the Live Search API 2.0 Beta , we got it up and running on GeeksWithBlogs.net very quickly and couldn’t be happier with the results. Search API ...
15.5 hours in to what I hoped would be a 5 hour day... Working the last major bug on the bug list... A bug that has literally consumed over 200 hours of development spread among various team members... A bug that our best minds looked at, and looked at, and looked at, to no avail... A bug that got the project lead so frustrated, he did the programming equivalent of taping electrical tape over the blinking VCR clock... And today, the black-electrical-tape patch started showing massive bugs of its ...
2500 years ago, a man named Aesop gathered the accumulated software development knowledge of the ancient Greeks, and presented the knowledge to history. However, since so few people in the intervening millennia knew anything about software, they misinterpreted Aesop's lessons as simple morality fables, rather than as hard advice for software managers. Now you can learn what Aesop had to teach us about software development processes and management. The pioneering programmer known as Aesop is still ...
So in Part 4, I said that recognizing the music key would be tricky. But why? Didn't I spend most of Part 3 explaining how cleverly I used M-SAPI so that users only had to say partial names to be recognized? Well, yes; but I've long said that programming has a Conservation of Complexity law: the less complex for the users, the more complex for the programmers. (Be glad: that's the short version. My long discussion on Conservation of Complexity would take up the rest of this post.) The reason why ...
I wrote Dee Jay as an example for a proposed talk for the Ann Arbor Day of .NET, and as a way to learn more about the Managed Speech API in Microsoft Windows Vista. Dee Jay works with M-SAPI and Windows Media Player to give you a totally voice-controlled way to play your music. You simply say a command like "Dee Jay, play some Dire Straits", and it searches your song catalog for songs by Dire Straits, picks one, and plays it. Or you can name a specific title, or even a genre. If there are multiple ...
(UPDATE: This is a rerun of a best-of post from 2006. I applied the fix described below, and have never seen the error in question again.) Ever since I got my Gateway CX200X — and even before, with my less-than-wonderful Toshiba M200 (which I'm managing to put to productive use, but cautiously) — I've had this annoying problem. When I would shut the lid, with every expectation that that would suspend the machine, I would be deceived. I would put the machine in my backpack, and head off for the road ...
Well, maybe that's not exactly how he put it; but he referenced a post where I wrote: Richard Hale Shaw makes an interesting argument against the C# using statement (not the using directive; and thank you, C# team, for that bit of confusing language). I disagree with him; but it will take time and sleep before I can fully explain why. The short preview: he says you can't force people to use your class correctly; I say I can, and I'll show you how, soon.And he writes: Always wondered what you had ...
(Reposted from Agile Summer Camp. The team will edit and improve that version, filling in the gaps in my memory and understanding. This is my rough draft.) Organized by Chris Woodruff with the able assistance of Josh Holmes and Michael Eaton, Agile Summer Camp 2008 was a fantastic success. This is an Agile Summer Camp Diary, documenting bits and pieces of a fun, rich, informative weekend with a crowd of unwashed geeks. No text page (nor even sadukie's great pictures) can capture the full experience ...
Life is sometimes sweeter than we realize. Sometimes we just forget to see it. We complain about work, bills, co-workers and spouses and sometimes forget to look at how awesome our lives really are. I LOVE being a programmer. I've done a lot of different jobs and I didn't come to programming until my mid-to-late twenties, so I've experienced some really crappy jobs that paid even crappier. At my current job, I was given the freedom to choose how I would develop this new project, what language, what ...
Recently I've begun programming a new game I'm trying to keep under wraps a bit, although most close friends know what it's about already. Although the game is quite new I'm already excited about the code. In PongRPG, every sprite you see is positioned in code, there are lines that load each sprite personally and set them based on values in the code. So, if I wanted to change the position of some item on the pause menu, I'd have to go into the code, track down that line, and change the value. Not ...
In this issue: Ivan Dragoev, Beatriz Stollnitz, Laurent Duveau, Matthew Casperson, Mike Ormond, Adam Kinney, Scott Guthrie, and Ruurd Boeke. I saw this post by Jeff Wilcox: Toolkit posts: "Silverlight in Style," dependency properties in WPF and Silverlight, and TreeView expansion, and thought "cool -- I've got all that covered :)" ... but WAIT... check this out... all the Toolkit bloggers have their own blog now! I'll be watching this for you, but go ahead and keep an eye on it too in case I miss ...