| Profil von philPhil Harvey's .NET SpaceBlogListen | Hilfe |
|
|
27 Oktober Talking about Six Rules of Unit TestingCharles Miller has 6 rules for good unit testing. Click the link for an examplanation of each rule. If you don't know what unit testing is, shame on you (and google it).
Quote
04 Oktober Talking about: Allocation ProfilerThis tool is great at working out why your tiny .NET utility is using 80MB of memory! It lets you graphically see what objects have been allocated and quickly see where your memory leaks are. Of course, the CLR should control this sort of thing, surely? Having to use this tool breaks any contract of trust a developer should have with the CLR. If you are having memory leak problems even after garbage collection then somewhere in your code you must have references to instances of objects that you have long forgotten about! Either that, or *anything* to do with unmanaged code (COM Interop, Win32) Quote GotDotNet User Sample: Allocation Profiler More MSN Spaces HacksI take credit for being one of the first to 'hack' msn spaces, with the 'EditIt' button. This is obsolete since MSN decided to include the <HTML> button in the standard editor. Smart move.
Since then, and whilst I've been ignoring the community, theres been loads more people getting involved with customising MSN Spaces beyond the imagination of Microsoft.
Visit http://spaces.msn.com/members/d3vmax/ to get a feel of what people are getting up to. 19 September BizTalk Server 2004 getting started guideI've been getting up-to speed with BizTalk Server 2004, however the learning curve is quite steep. The examples Microsoft ships with the SDK are woefully undocumented making the talk of making your first "Hello, world" style project a real mission. However, I found this article over at msdn blogs which really helps. Its got links to getting started guides, webcasts and tutorials. If you want to learn BizTalk then follow through the course outline and you'll come out the other end much wiser. Quote BizTalk ChalkTalk : The QuickStart Guide to Learning BizTalk Server 2004 09 August Driving! Yay!Hurrah! Today I passed my driving test. 3 minors - not so shabby. Just thought I'd brag a bit, sorry. 11 Juli Talking about Contemplations : How To F*ck Spyware Right In The Ear...The Cerebrate discusses an interesting alternative to the usual methods of blocking the spyware threat. He outlines the use of security policies to block spyware from executing, and stopping spyware before it infects you. Always a better option than than having to remove the spyware only after it has gotton a foothold. Some interesting points are made regarding how 'good computing' can significantly reduce the threat of infection - that is, not running as local administrator while surfing the net! Quote The Cerebrate's Contemplations : How To F*ck Spyware Right In The Ear... 29 Juni Why the National ID Card scheme is a waste of tax-payers moneyThe UK government has plans to introduce ID cards for the whole of the UK population. They are proposing to use biometric data to confirm the identity of the card holder. On the 25th May the Home Office published the results of a trial into the service.
The full report is available at http://www.homeoffice.gov.uk/comrace/identitycards/. Some of the findings of this report suggest their are serious deficiencies with the proposed use of biometric data to support the system. Here is a summary:
Scale these figures up to the entire UK population and it becomes apparent that millions of people will fail to record and/or match against their own biometric data. The figures look particularly foreboding for disabled users. It seems this program needs to be thought out in a lot more detail before the government strong hands the bill through parliament, however this is what they are currently doing. The national ID card scheme will cost the tax payer a massive amount of money - too much to go ahead without more guarantees the program will be successful. The failure of this will program will make over government IT disasters (Passport Office, Air Traffic Control, Child Support Agency, Criminal Records Bureau, etc, etc) look like minor slip-ups. 16 Juni Develop Managed Outlook Add-ins with VSTO 2005Yes! Visual Studio 2005 has a decent way of creating managed Outlook Add-ins!! If only I had this stuff 12 months ago my life would be so much simpler. Still, at least the future looks bright for new Outlook projects I might undertake. Microsoft has unveiled VSTO (Visual Studio Tools for Office). Follow the link below to find out all about it. Quote Srinath Vasireddy - Online journal : Develop Managed Outlook Add-ins with VSTO 2005 02 Juni Big Brother 6 desktop news alertIts Big Brother time again (if you live in the UK). I've got into a bit more than in recent years, mainly by chance of leaving E4 on constantly now its on FreeView :D I, like many others, will be checking the Big Brother website throughout the workday to check-up on in-house events. To me this is essential, to everyone else its skiving. The solution was to write a tool that let me know when new news was available. Bring on Big Brother 6 Desktop News Alerts. This little tool will display an icon in the system tray that blinks when new news is available. Fantastic! Get it here. 16 Mai Talking about Article: Integrating an ASP.NET e-commerce system with PayPal's Instant Payment Notification (IPN)This article demonstrates how to validate PayPal IPN requests in asp.net. My only comment is once you have received the validation response from PayPal you need to check it equals "VERIFIED". Otherwise, it might have returned "INVALID", which probably means someones messing about you. Quote Article: Integrating an ASP.NET e-commerce system with PayPal's Instant Payment Notification (IPN) 10 Mai Talking about Roland Weigelt's GhostDocHere is a great little visual studio add-in to make xml code commenting a little bit less tedious. GhostDoc will automatically attempt to document any method or property by simply right clicking the code and choosing "Document This". Its not 100% perfect but its certainly a lot less work than documenting from scratch. Quote Roland Weigelt's GhostDoc 28 April Talking about Sysinternals FileMonThis is a great tool for debugging! It just saved my pants when I couldn't figure out a problem with GoldMine CRM for months and we were getting worrying close to a release date without solving the problem. Someone suggested I use this tool to monitor file IO and try and see where the problem was. FileMon displays a list of all file access, read, write, not found, etc operations on the system. You can then set a filter to only see what is relevant. I quickly realised I needed to add trailing backslashes to a path and voilà - we're good to go. I'll give it five stars for usefulness Quote Sysinternals Freeware - Utilities for Windows NT and Windows 2000 - FileMon Rick Strahl blogger geniusRick Strahl has one of the best .NET web logs around (RSS). Just to let you know. But if you didn't know that already, then shame on you. I like to read it when I'm bored, he has great technical insight into .NET issues we all understand. 22 April Talking about Multiple IIS Virtual Servers on XP ProStefano talks about a workaround for the one web-site/virtual server limit on IIS under Windows XP Pro. This limit has annoyed me for ages, and this workaround sort of helps. IIS will still only let you run one virtual server at a time which sucks! If anyone has a hack to get it working please let me know and I'll be a happy developer again :p Quote Multiple IIS Virtual Servers on XP Pro 19 April Brace yourselves!One of the most passionately argued schools of thought among software developers is bracing styles. Braces ({ and }) are used in many programming languages to logically segment blocks of code. There is however no exact standard to the use of braces, with the developer free to surround them with as much white space as they like. A good choice of brace formatting can lend itself greatly to the overall readability of a programs source code. I found an interesting discussion here on the most common forms of brace formatting and the reasons and advocates behind them, and have posted the different styles below. 'K&R style' -- Named after Kernighan & Ritchie, because the examples The style I tend to use is Allman, mainly because Visual Studio nicely forces this format upon me by default. It must be a Microsoft thing. Apparantly Whidbey (Visual Studio 2005) will let you choose what code formatting styles it applies to your code. 18 April Set file permissions from an Installer custom actionA common task for using an Installer action in your Visual Studio deployment project would be to change the file access permissions on some of the files you have just installed. Currently, the .NET framework does not provide any mechanism for managing access rights on files - although this will change in version 2.0 (Whidbey). In the mean time, there's a download at gotdotnet.com called Win32Security (Download Now). This community library lets you manage file security attributes on NTFS file systems. Download and build the project, and reference it to your Installer custom action class. The following code sample will add the "All Access" privilege to the ASPNET user on the web.config file. If you are new to installer custom actions I strongly suggest you read this article before trying to understand the code below.
Installer custom action class to set the file permissions on the web.config file using System; namespace InstallDemo.Installer /// <summary> public override void Install(IDictionary stateServer) if (configFile.Exists) Dacl dacl = secDesc.Dacl; dacl.AddAce ( secDesc.SetDacl(dacl);
12 April Talking about MSN Spaces - "Released to Web"MSN Spaces has officially moved out of b3ta (even though it still says b3ta in the banner space)! Mike Torres has the run down of whats new at his blog. New features include new themes and 30MB of storage for photos. My favorite new feature which Mike hasn't mentioned is the inclusion of RSS views in the page statistics section. Top stuff! See: http://spaces.msn.com/members/mike/Blog/cns!1pG4qKNdtRA5Nl-UhvZI_1rQ!1470.entry http://spaces.msn.com/members/mike/Blog/cns!1pG4qKNdtRA5Nl-UhvZI_1rQ!1387.entry http://spaces.msn.com/members/mike/Blog/cns!1pG4qKNdtRA5Nl-UhvZI_1rQ!1386.entry 11 März Bloggers block & future projectsI've had a spot of bloggers block lately. I guess I've working hard lately with this and that, but I don't want to say too much about any current projects until I have something to release. Outside of work I've been working on some object persistence stuff using reflection which is quite exciting. The key to this project is high performance scalable indexed object persistence. Who needs SQL, eh? Should have something to play with next month. Oh and coming to think of it I've learned a lot about binary file IO in .NET lately. I'll blog about this soon. Byeee for now |
|
|