In a previous post, I showed how to read input from the debug serial port on a Windows CE device. As promised then, I will now use that to create a simple menu driven application. When I say simple, I really mean that there are better ways to do it. What I am going to develop here works, but quite frankly it is a little cumbersome to maintain, more on that later.
My plan here is to have a generic function that will display the menu and wait for valid user input. It will then return the menu...
Last friday morning I began to receive hundreds of delivery failure email messages. This is a common problem that can be difficult to solve. It happened because a spammer began using my email address as the FROM address for their spam messages. Because the spam gets sent to a huge number of non-existant email addresses I received a corresponding number of delivery failure messages.
According to Wikipedia, "SPF allows software to identify and reject forged addresses in the SMTP MAIL FROM (Return-Path),...
Windows SharePoint Services is available as a free download; it helps teams stay connected and productive by providing easy access to the people, documents, and information that they need to make well-informed decisions and get work done.
Miscoroft Office SharePoint Server 2007(MOSS) relies on the Windows SharePoint Services 3.0 technology to provide a consistent, familiar framework for lists and libraries, site administration, and site customization. Any features that are available in Windows...
Why oh my God WHY do we have to keep using these foul bug ridden tools!
I have been fighting with this joy of a tool to use for the last month now and I just love the crap it keeps dumping on me. First I can't even audition anything even after I connect to my local machine (WTF is that all about anyway?! - I just want to play a sound for chrisakes - what a PITA!). And don't even get me started on the lack of playback support for MP3 files - you mean to tell me I need to bloat my code with 30...
Thanks to everyone who came to my talk on NHibernate at West Michigan day of .NET. The code is available over on google code and the slides are available here. Documentation Links: NHibernate Documentation - http://hibernate.org/hib_docs/nhibernate NHibernate Mailing List - http://groups.google.com/group/nhusers NHibernate In Action - http://manning.com/kuate Code Links: NHibernate -http://nhibernate.sourceforge.net Code Camp Server - http://code.google.com/p/codecampserver...
Just started working with db4o this week, and I must say that in the very small way that I am using it, its a pretty slick little database. XCopy deployable, no install required. Its just a file, and it can support client, server supposedly, but I am not sure how much I really care about that.
This kind of database is really nice for prototyping because all I have to do is throw the objects in there and they are persisted, bam! You query out using .net Predicate<T> or you can query by example,...
Gametrailers.com recently released the new trailer for Gears of War 2, finally got around to watching it and it is quite impressive!
GameTrailers.com: Gears of War 2 Trailer
Can't wait for this too come out...
So I have been trying to find and add other System Adminitrators on both Twitter and Friendfeed.
I am a bit picky though. I looked for people that seemed to Tweet at least some of the time about their work, tweeted regularly, and in English. Also preffering Windows Sysadmins over Unix for now, but I might reconsidder that.
So far the results have been good, and with results I mean that I can get little conversations going about tech stuff.
What I would love to see happen at some point, is a...
It is well known, that in .Net value type parameters are passed by value, and reference type parameters are passed by reference.
I thought(even after a year working with application that extensively uses Remoting) that .Net Remoting calls do the same. But I was wrong!
Recently I found that a method with custom class parameter doesn't have one of the properties updated after return, even if it is certainly updated inside the method.
I looked for a few reference articles.
quickstart Remoting...
public class DepdencyInterceptor : IInterceptor
{
public bool OnLoad(object entity, object id,
object[] state, string[] propertyNames,
IType[] types)
{
// Use "setter injection" to give objects's dependency
// for each property marked with Dependency attribute
foreach (PropertyInfo prop in
entity.GetType().GetProperties())
{
...
I've got an early flight to Toronto this morning (6AM), so I'm up a bit early doing some final packing and what-not. I've never been to Toronto before other than for a connecting flight to somewhere else, so this should be a great time to see what the center of the universe has to offer. ;) I wonder if anyone *else* will be at Dev Teach...
Recently, after some analyzing some of the controllers I was building using ASP.NET MVC, I found that my controllers typically have the same pattern. They all have some dependencies injected into them through the constructor, each action calls a method on one of the dependencies (typically using the arguments of the and gets a result back), and depending on the result, an ActionResult is returned. Now, writing the tests wasn't tough. But, I dunno, I guess I'm REALLY lazy. So I started looking today...
This is somewhat mildly embarrasing, but I just went from version 7.02 of SlickEdit to SlickEdit 2008 which is version 13.0 -- wow...6 versions behind!
I've been using SlickEdit since (I think) version 1.0 when Brief took a dump in Windows 98 Beta and my boss told me to order two copies of this new editor.
So why haven't I upgraded? Well... SlickEdit is almost TOO good at what it does.
SlickEdit is (for it's editing functions anyway) essentially a big macro editor. They ship it with a ton of macros,...
Here's a tip that will save you about 7 milliseconds over the course of your programming career...
In Visual Studio, if you double-click to the left of the opening quote character (between the quote and the preceding character), the IDE will select the entire string, including the opening and closing quote characters...
Selecting checkboxes inside the GridView control is a very common operation and that is why I have several articles and videos dedicated to this subject. Selecting CheckBoxes Inside GridView With a Twist VIDEO: Selecting CheckBoxes Inside GridView Recently, I was playing around with JQuery library and thought of implementing the same scenario using the library. Here is the code used to perform the SelectAll and DeSelectAll function. <script language="javascript" type="text/javascript"> $(document).ready(function()...
A little note to Amazon: when my PC's name is different from the default "My PC", it might be a good idea to remove "My PC" from the list of possible devices to download my rentals to. You know, otherwise, someone might misunderstand it and think that the "My PC" choice means "download the rental to whatever device I'm using at the moment." I'm sitting here, ripping my hair out, because I just gave you idiots $4 for a movie and I won't be getting it. Why? Well, because "My PC" doesn't exist and...
At long last, you can purchase video for the Zune --- (too bad for me, it is two weeks AFTER a trip to Seattle). Good news is you can get NBC and SCIFI among others. More here...
Sony have recently announced that the PS3 has overtaken the XBOX 360 in Europe - unfortunately they are wrong. The industry web site: http://www.vgchartz.com/ still shows XBOX 360 leading in the others area (Europe). What I have found interesting, though, is why are people buying PS3's in Europe - for the gaming? No it is because it is the cheapest way of buying a Bluray player with the latest software at a very sensible price!!! For real gaming the XBOX 360 is still the best (I classify the WII...
So chris and I have been working on a lightweight service bus similar to NSB called Mass Transit. When Chris and I originally encountered NSB it had a style that didn't really fit the way that I was approaching development at the time and so I decided that, if for nothing else, I would start trying to build one myself to learn more about the concept of an ESB. The concept seemed simple at the outset, but I knew that if I was going to get this right I would have to borrow heavily from experts such...
Many of us have now become comfortable with how to best build a layered system with the typical UI, biz, and data layers. But as I started to write my first application that took messaging as a pretty central concept I found that I didn't really know how I wanted to parcel out my system. So here is a closer look at what I have been playing around with in this area.
Project Setup
Solution Name
Domain
Domain.Tests
Domain.Messages
Persistance
Domain.Persistance
Domain.Persistance.Tests
Ok...
I just finished my presentation about consuming Google Maps at BarCampKC. Thanks to everybody who attended.
We talked about the three different ways of using Google Maps in your applications or websites.
Static Map Image API
My Maps
JavaScript API
The slideshow is available via Google Docs or dowload the PPT
The code is available for download here, make sure you change your api key...
Next week is the last week of teaching XNA Game Development to my students. My year long planning for the course has really paid off and I'm proud of the 2D games that my students created. All of the games were deployed on the XBOX 360 to show the game play. I've posted some of the games that they created and I hope you like them too. Here are some DO's and Don'ts when teaching XNA. Do's Stick with one version of XNA and use it for the Semester. Teach your students the art of game design. Prepare...
If you live in...
Vancouver
Calgary
Edmonton
Winnipeg
Toronto
Montreal
or Halifax
There's a Zune launch party coming your way! Check out this site to get more information about date, time, and venue in your city.
D...