Congratulations!

[Valid Atom 1.0] This is a valid Atom 1.0 feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://feeds.feedburner.com/benjimawoo

  1. <?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6825852</id><updated>2024-09-19T19:19:25.975+00:00</updated><title type='text'>Learning VB.NET</title><subtitle type='html'>Benjimawoo - One man. No tagline.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default?alt=atom'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default?alt=atom&amp;start-index=26&amp;max-results=25'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>228</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6825852.post-114356798112730014</id><published>2006-03-28T16:53:00.000+00:00</published><updated>2006-03-28T17:46:21.186+00:00</updated><title type='text'>Yay me, and a question...</title><content type='html'>Firstly, yay me!&lt;br /&gt;&lt;br /&gt;I don&#39;t care what you might think about the pros and cons of &lt;a href=&quot;http://www.microsoft.com/learning/mcp/default.asp&quot;&gt;microsoft certifications&lt;/a&gt;. You may think they&#39;re pointless. You may think they&#39;re not worth the paper they&#39;re printed on.&lt;br /&gt;&lt;br /&gt;Either way, I passed my first exam today. Woo and yay! &lt;a href=&quot;http://www.microsoft.com/learning/exams/70-315.asp&quot;&gt;70-315&lt;/a&gt; - I have a certificate that says I can &quot;Develop and Implement Web Applications with Microsoft Visual C# .NET and Microsoft Visual Studio .NET&quot;. Woo!&lt;br /&gt;&lt;br /&gt;The second thing was a question that someone actually asked me this morning that piqued my interest.&lt;br /&gt;&lt;br /&gt;What this guy was trying to achieve was filtering on a Date field in a &lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/system.data.dataview.aspx&quot;&gt;Dataview&lt;/a&gt;, but rather than filtering on a continuous date range, he was trying to filter on a series of date ranges.&lt;br /&gt;&lt;br /&gt;Put simply, he wanted to pull out all the records that had a date somewhere in March (for instance). I don&#39;t know the exact context he was coming from, but it would be useful if, for example, you had sales data spanning a few years and wanted to see how things were looking on a month-by-month basis.&lt;br /&gt;&lt;br /&gt;Well.&lt;br /&gt;&lt;br /&gt;I discovered it doesn&#39;t seem to be as easy as all that to do.  I started out by creating a Dataset in &lt;a href=&quot;http://msdn.microsoft.com/vstudio/express/default.aspx&quot;&gt;Visual C# Express&lt;/a&gt;, just by dragging the Employees table from the AdventureWorks database on my toolbar (Ah, the company name may change, but the samples stay the same!).&lt;br /&gt;&lt;br /&gt;My goal was to pull out Employees as a DataTable in my dataset, create a DataView from it and filter the view to just contain everyone that has a birthday in March.&lt;br /&gt;&lt;br /&gt;To start, I thought I&#39;d create a new column populated with an &lt;a href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatacolumnclassexpressiontopic.asp&quot;&gt;expression&lt;/a&gt;, something along the lines of BirthDate.Month (or something similar). However, it looks like you can&#39;t do that. Although you can take DataColumns and do simple stuff to them, adding values, subtracting values etc, you can&#39;t do anything (it would seem) that&#39;s specific to a slightly more complex datatype, like a &lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/system.datetime.aspx&quot;&gt;DateTime&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The next thing I though of was to try a do some quick filtering with a &lt;em&gt;LIKE&lt;/em&gt; clause in the dataview&#39;s &lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/system.data.dataview.rowfilter.aspx&quot;&gt;RowFilter&lt;/a&gt; property, so it looked something like &#39;view.RowFilter = &quot;BirthDate LIKE &#39;03/%&#39;&quot;&#39; think I could pull out all the March birthdays that way. (n.b. I didn&#39;t have to worry about the formatting of the Date because of the &lt;a href=&quot;http://benthevbdeveloper.blogspot.com/2005/07/couple-of-things-that-i-noticed-today.html&quot;&gt;culture insensitivity of the expression used to filter DateTime columns&lt;/a&gt;.)&lt;br /&gt;&lt;br /&gt;Apparently not, though. Apparently you can&#39;t apply &#39;LIKE&#39; and wildcards to DateTime fields. Which, I must admit, makes sense. I was pretty much clutching at straws when I went down that route.&lt;br /&gt;&lt;br /&gt;So, to recap, I wanted to filter on a set of dates. These happened to be all the dates in March for a number of years, but that&#39;s by the by.&lt;br /&gt;&lt;br /&gt;In then end, this was how I managed to do it. When I started out, I though it looked a bit hokey, and a bit of a fudge, but as I looked into it more, I&#39;m actually quite impressed with it. It may not be &lt;em&gt;that&lt;/em&gt; elegant a solution, but hey, it does tha job, and at the end of the day, if it works then that&#39;s cool.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;TestAdventureWorks.dsTest data = new dsTest();&lt;br /&gt;TestAdventureWorks.dsTestTableAdapters.EmployeeTableAdapter da = &lt;br /&gt;    new TestAdventureWorks.dsTestTableAdapters.EmployeeTableAdapter();&lt;br /&gt;da.Fill(data.Employee);&lt;br /&gt;DataView view = data.Employee.DefaultView;&lt;br /&gt;&lt;br /&gt;StringBuilder s = new StringBuilder();&lt;br /&gt;int StartYear = 1945;&lt;br /&gt;int Month = 4;&lt;br /&gt;for (int i = StartYear; i &lt; 2000; i++)&lt;br /&gt;{&lt;br /&gt;    if (i != StartYear) s.Append(&quot; OR &quot;);&lt;br /&gt;    s.AppendFormat(&quot;BirthDate &gt;= #{0}/01/{1}# AND BirthDate &lt; #{2}/01/{1}#&quot;, Month, i, Month + 1);&lt;br /&gt;}&lt;br /&gt;view.RowFilter = s.ToString();&lt;br /&gt;Console.WriteLine(string.Format(&quot;Rows: {0}&quot;, view.Count));&lt;br /&gt;Console.WriteLine(string.Format(&quot;Total: {0}&quot;, data.Employee.Rows.Count));&lt;br /&gt;Console.ReadLine();&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I don&#39;t know what the performance is like on it, though. In this case, going through 55 years on a set of 290 rows took around 70ms to complete. Not too shabby, I thought. Considering the length of the RowFilter string that went into it!&lt;br /&gt;&lt;br /&gt;However, my question is this (and if you&#39;ve read this far, perhaps you know the answer!) Is there a better way of doing it? &lt;br /&gt;&lt;br /&gt;I thought of 1, which is to pull out the month component of the date in the original select statement, so your SELECT would look something along the lines of &#39;SELECT *, Month(BirthDate) FROM Employees&#39;. It acheives the same thing as my first plan, and would allow you to just set the RowFilter to be &#39;BirthDateMonth=3&#39;. But that&#39;s cheating!&lt;br /&gt;&lt;br /&gt;Anyway, just wanted to share.&lt;br /&gt;&lt;br /&gt;Yay me!</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/114356798112730014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=114356798112730014' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/114356798112730014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/114356798112730014'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/03/yay-me-and-question.html' title='Yay me, and a question...'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-114059379166256842</id><published>2006-02-22T07:01:00.000+00:00</published><updated>2006-02-22T07:36:31.710+00:00</updated><title type='text'>This is what happens when developers aren&#39;t network guys...</title><content type='html'>In a &lt;a href=&quot;http://benthevbdeveloper.blogspot.com/2006/02/scheduling-builds-using-team-build.html&quot;&gt;previous post&lt;/a&gt;, I was confused over which user account TfsBuild.exe executes under. I kept on getting various file exceptions and whatnot.&lt;br /&gt;&lt;br /&gt;Well now I know. It runs using the account you specified for all your Team Foundation Server Services to run under (In the installation guides, it&#39;s the one called &lt;em&gt;domain&lt;/em&gt;/TFSSERVICE). I can&#39;t remember if I specified this account at install-time or not. But there you go.&lt;br /&gt;&lt;br /&gt;Which brings me to the next thing that was causing trouble recently. I wanted to create a new build type that, as well as compiling my application, published it to our test server as well. Very quickly, it was just a matter of creating a new target in the .proj file called &quot;AfterCompile&quot; (overriding the one in the default .targets file), and adding an &lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/ms164291.aspx&quot;&gt;AspNetCompiler&lt;/a&gt; task to it for each website I wanted pushed up there.&lt;br /&gt;&lt;br /&gt;Problem was, the TFS Service account couldn&#39;t see the folder I was deploying to. No problem. Browse to that folder in explorer, fire up the properties, grant TFS write access and bob&#39;s yer uncle. Right? Wrong. &lt;br /&gt;&lt;br /&gt;After a couple of us pored over it for a while my boss&#39; boss casually asked &quot;Have you enabled write access to the share itself?&quot; DOH! Although according to NTFS, the TFS account had write access to that directory, the initial fileshare (about 3 levels up) only had read access enabled. So I could browse to the directory I wanted to in explorer, but writing to it was being blocked by the share permissions.&lt;br /&gt;&lt;br /&gt;I didn&#39;t know it worked like that. I figured NTFS alone governed the access level to that directory.&lt;br /&gt;&lt;br /&gt;And that is what happens when developers aren&#39;t network guys.&lt;br /&gt;&lt;br /&gt;Just wanted to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/114059379166256842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=114059379166256842' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/114059379166256842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/114059379166256842'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/02/this-is-what-happens-when-developers.html' title='This is what happens when developers aren&#39;t network guys...'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-114012751630495891</id><published>2006-02-16T21:47:00.000+00:00</published><updated>2006-02-16T22:05:16.353+00:00</updated><title type='text'>Something I really could do with finding out...</title><content type='html'>... But I don&#39;t know how.&lt;br /&gt;&lt;br /&gt;Here are a couple of things I know:&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemtimerstimerclasstopic.asp&quot;&gt;Timers&lt;/a&gt; aren&#39;t thread-safe&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx&quot;&gt;BackgroundWorkers&lt;/a&gt; are thread-safe&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;It&#39;s a shady proposition setting a timer running on a form, and doing a straight method call to update the form&#39;s display. It works sometimes, but because the timer runs (or at least &lt;em&gt;can run&lt;/em&gt; ) on another thread to the rest of the form, it sometimes falls over.&lt;br /&gt;&lt;br /&gt;There are a few nice elegant ways of sorting this all out and getting everything running properly in .NET 1.x, but .NET 2.0 brings with it the BackgroundWorker class.&lt;br /&gt;&lt;br /&gt;Which is a nice thing, particularly if you want to do some long running processes and update your UI as they go.&lt;br /&gt;&lt;br /&gt;This I know.&lt;br /&gt;&lt;br /&gt;But what I don&#39;t know is: what does the timer do when it&#39;s not elapsing? Obviously it&#39;s ticking away, just... well... being a timer, but is that it?&lt;br /&gt;&lt;br /&gt;What I&#39;m getting at (albeit in a roundabout and thoroughly confused way) is this:&lt;br /&gt;&lt;br /&gt;I have a countdown timer that updates the form every second. I can&#39;t just use a timer to do it and handle its Elapsed event, but what if I fired up a BackgroundWorker, and then just called System.Threading.Thread.Sleep(1000) in a loop, raising the ReportProgress at each cycle through the loop?&lt;br /&gt;&lt;br /&gt;Is that a good idea? It seems to me to be the easiest, certainly the quickest way to achieve it, but is it really good practice? Thread.Sleep() always strikes me as being a bit of a hack, but it works.&lt;br /&gt;&lt;br /&gt;I&#39;m sure I&#39;ll work something out eventually. Who knows. Could be I&#39;m doing it a good way. Doubt it, though.&lt;br /&gt;&lt;br /&gt;Just wanted to share my bafflement. Of course, if anyone knows the answer, then let me know.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/114012751630495891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=114012751630495891' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/114012751630495891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/114012751630495891'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/02/something-i-really-could-do-with.html' title='Something I really could do with finding out...'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113926324828795874</id><published>2006-02-06T21:17:00.000+00:00</published><updated>2006-02-06T22:01:05.526+00:00</updated><title type='text'>Scheduling builds using Team Build</title><content type='html'>Today I&#39;ve been having big fun trying to get an automatic build schedule together for the project I&#39;m working on at the moment.&lt;br /&gt;&lt;br /&gt;Yes, that&#39;s right. Trying. Nearly there, and there are several things I&#39;ve learnt along the way about Team Build. Here are the important ones (in no particular order):&lt;br /&gt;&lt;br /&gt;1) &lt;strong&gt;There&#39;s no inbuilt scheduler. &lt;/strong&gt;&lt;br /&gt;No real biggie, but before you spend half the morning looking for it, know that it&#39;s not there to be found. You&#39;ll just have to schedule it to run via Windows&#39; task scheduler.&lt;br /&gt;&lt;br /&gt;2) &lt;Strong&gt;The command line tool TfsBuild.exe rules&lt;/strong&gt;&lt;br /&gt;See 1. Actually, I must say, the command line tool is really useful. It lives at:&lt;br /&gt;&lt;em&gt;&amp;lt;TeamBuildInstallDir&amp;gt;\Common7\IDE\TFSBuild.exe&lt;/em&gt; and is surprisingly good.&lt;br /&gt;It can be called using: &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;TfsBuild.exe start &amp;lt;TeamFoundationServer&amp;gt; &amp;lt;ProjectName&amp;gt; &amp;lt;BuildType&amp;gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;As you might have guessed, it&#39;ll go to your TFS Server, find the build type you&#39;ve specified, download the configuration from source control (the current checked in version) and build based on that. Which I think is really neat.&lt;br /&gt;&lt;br /&gt;It&#39;s not without its quirks, though. I spent ages feeding it different renditions of our server name (http://server, http://server:8080, etc...) and it kept on saying it couldn&#39;t find the server I was pointing it at. I found &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=197258&amp;SiteID=1&quot;&gt;this post from someone who was having exactly the same problem&lt;/a&gt;, though, and the solution at the bottom worked for me. Go into the registry and find &lt;em&gt;HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\TeamFoundation\Servers&lt;/em&gt; and add your server in there. Admittedly, I mimicked exactly what Joey Bradshaw did and put the friendly name of our server in as the key, and the full server name as the value. I don&#39;t know if the key is significant, but by this time I was getting hungry and wanted to go to lunch. Worked, though, which is the important thing.&lt;br /&gt;&lt;br /&gt;3) &lt;strong&gt;Any kludges you&#39;ve put together for getting your project to compile - better fix them properly&lt;/strong&gt;&lt;br /&gt;Yes, I know, this is pretty much the whole point of an automated build. But still. I came a cropper a couple of times with dll references.&lt;br /&gt;&lt;br /&gt;We have a bunch of 3rd party and legacy dll&#39;s that we reference from our current project, which is fine. We keep them on a shared drive, the dll paths in the reference and the .refresh files in websites are pointing to that share, everything&#39;s happy. Until...&lt;br /&gt;&lt;br /&gt;4) &lt;strong&gt;I&#39;m buggered if I can work out what user account TfsBuild.exe runs under.&lt;/strong&gt;&lt;br /&gt;I kept on getting reports that the drive out shared dll&#39;s live on didn&#39;t exist. And fair enough, the standard shared drive mapping that all the developers use wasn&#39;t there. No biggie. Just log in under the account the Team Build service runs under, map the drive, and Bob&#39;s your uncle, yeah? No. Kept on getting the same errors reported that the drive didn&#39;t exist. &lt;br /&gt;&lt;br /&gt;So I changed all the references in the source code to full network paths. Sorted, eh?  No. Changed the permissions on the network share to allow the Team Build Service account read access, and it all worked fine. Go figure. It wouldn&#39;t pick up the drive I mapped under its account, but it&#39;s definitely the account that goes fishing about on the network to find those pesky dll&#39;s. &lt;br /&gt;&lt;br /&gt;Oh well. It&#39;s done now.&lt;br /&gt;&lt;br /&gt;So (at last!) I&#39;ve got a successful build going on. Yeah?&lt;br /&gt;&lt;br /&gt;Almost...&lt;br /&gt;&lt;br /&gt;5) &lt;strong&gt;Your project may well compile, but your Unit Tests might not...&lt;/strong&gt;&lt;br /&gt;Once I got my main project to build, I shifted my Test project from the old server to the new. Yeah yeah, I should have done all that when I first moved the rest of the project, but hey, this is me. It was Friday and I just wanted to get everything working and go home.&lt;br /&gt;&lt;br /&gt;So I moved my Unit tests over, changed all the external references (as I had discovered already. Built fine. Go to run it? Nope. Unit Tests don&#39;t run at all. Compile fine, but won&#39;t run. You&#39;ll need to give the dll&#39;s in the shared folder elevated elevated privileges to get them to run (elevated from the normal Intranet code group, anyway).&lt;br /&gt;&lt;br /&gt;6) &lt;strong&gt;There&#39;s nothing better on this earth than that little green tick!&lt;/strong&gt;&lt;br /&gt;No matter what people tell you. When you see that green tick, there&#39;s nothing better!&lt;br /&gt;&lt;br /&gt;7) &lt;strong&gt;Once it all works, it Team Build really does rule!&lt;/strong&gt;&lt;br /&gt;The reports Team Build produces are so cool. They&#39;re so comprehensive, and the integration with the rest of Team Foundation Server is fantastic. Once your project builds, it&#39;ll go back and See what changes have been checked in since the last successful build. It&#39;ll find all the work items associated with those changesets, indicate on them all that those changes have made it into a build, and give you some friendly statistics and scary numbers to tell your boss.&lt;br /&gt;&lt;br /&gt;It&#39;ll even create a new work item if it fails that links to the failed build report and tells you to fix it!&lt;br /&gt;&lt;br /&gt;All in all. It&#39;s been a bit of work today, and it&#39;s not &lt;em&gt;quite&lt;/em&gt; over yet. But we&#39;re now running automated nightly builds and loving every second of it!&lt;br /&gt;&lt;br /&gt;Just wanted to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113926324828795874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113926324828795874' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113926324828795874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113926324828795874'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/02/scheduling-builds-using-team-build.html' title='Scheduling builds using Team Build'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113900841268165605</id><published>2006-02-03T22:58:00.000+00:00</published><updated>2006-02-03T23:25:41.320+00:00</updated><title type='text'>The Midas Touch</title><content type='html'>There are some people that just have the touch of gold for some things.&lt;br /&gt;&lt;br /&gt;Carl Franklin is one of them.&lt;br /&gt;&lt;br /&gt;I&#39;ve been listening to &lt;a href=&quot;http://www.dotnetrocks.com&quot;&gt;DotNetRocks&lt;/a&gt; for a couple of years now, and it&#39;s always been fantastic. In fact, when I&#39;m not talking to my boss, I crdeit my entire career to DNR. Obviously, I tell my boss it&#39;s all down to me being fantastic!&lt;br /&gt;&lt;br /&gt;But now he&#39;s come out with &lt;a href=&quot;http://www.dnrtv.com&quot;&gt;DnrTV&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;It does rule. I&#39;ve seen much love in the blogosphere (although I hate that word!) to prove it.&lt;br /&gt;&lt;br /&gt;The only thing I have trouble with is remembering everything. Not only do I have to seclude myself from the missus for an hour, but it is also like a total vulcan mind-meld taking it all in!&lt;br /&gt;&lt;br /&gt;BUT. It does rule. It&#39;s right there on the top of my list of things to do when Mrs Mawoo is out.&lt;br /&gt;&lt;br /&gt;PS - Nobody can ever beat &lt;a href=&quot;http://www.franklins.net/ceasers.jpg&quot;&gt;Geoff&#39;s hair&lt;/a&gt; (nb Geoff is second from the right, the one up from the... well ... you&#39;ll spot him from  his hair! It&#39;s the greatest, I have dreams where my hair is as cool as Geoff&#39;s!)&lt;br /&gt;&lt;br /&gt;PPS - If anyone wants an MSN 8.0 Beta invite, just &lt;a href=&quot;mailto:cider_demon@yahoo.com&quot;&gt;email me&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;PPPS - Did I say right? I Geoff&#39;s in fron the left! In fron the right is &lt;a href=&quot;http://www.infusionblogs.com/blogs/activenick/&quot;&gt;ActiveNick&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113900841268165605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113900841268165605' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113900841268165605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113900841268165605'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/02/midas-touch.html' title='The Midas Touch'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113834271692032386</id><published>2006-01-27T06:10:00.000+00:00</published><updated>2006-01-29T20:52:19.323+00:00</updated><title type='text'>Have these always been here? Or am I being stupid?</title><content type='html'>In the code editor in VS 2005 (any edition I guess, but I&#39;ve been using VS Team Edition for Software Developers):&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Right Click.&lt;/li&gt;&lt;li&gt;Expand the &#39;Breakpoint&#39; menu item.&lt;/li&gt;&lt;li&gt;&lt;em&gt;Click &#39;Insert Tracepoint&#39;&lt;/em&gt;&lt;/li&gt;&lt;li&gt;Enter a message&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;You&#39;ll now have whatever message you want printed out in the output window. It can print the calling method, stack trace and a whole raft of other stuff.&lt;br /&gt;&lt;br /&gt;Although I&#39;m quite inclined to use Trace.Write() in a web app (I figure if it&#39;s something you want to know when you&#39;re writing it initially, it&#39;ll be useful to know when it&#39;s actually in use), there are times when it&#39;s a bit of overkill putting a permanent trace in for some of the stuff you&#39;re debugging.&lt;br /&gt;&lt;br /&gt;Neat eh? I&#39;ve just discovered that it&#39;s there is Visual Studio but not the Express Editions.&lt;br /&gt;&lt;br /&gt;Just wanted to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113834271692032386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113834271692032386' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113834271692032386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113834271692032386'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/01/have-these-always-been-here-or-am-i.html' title='Have these always been here? Or am I being stupid?'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113834196058692427</id><published>2006-01-27T06:04:00.000+00:00</published><updated>2006-01-27T06:06:00.596+00:00</updated><title type='text'>I mean Really....</title><content type='html'>Honestly, though.&lt;br /&gt;&lt;br /&gt;Who checks in breaking changes 10 minutes before going-home time, eh? &lt;br /&gt;&lt;br /&gt;Just wanted to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113834196058692427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113834196058692427' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113834196058692427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113834196058692427'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/01/i-mean-really.html' title='I mean Really....'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113713258928588619</id><published>2006-01-13T06:05:00.000+00:00</published><updated>2006-01-13T06:09:49.296+00:00</updated><title type='text'>In the midnight hour...</title><content type='html'>She may well have cried &#39;More, More, More&#39;, but that&#39;s beside the point.&lt;br /&gt;&lt;br /&gt;The point is I have more Live Messenger Beta invitations to give away.&lt;br /&gt;&lt;br /&gt;As &lt;a href=&quot;http://benthevbdeveloper.blogspot.com/2006/01/anyone-for-windows-live-messenger-80.html&quot;&gt;before&lt;/a&gt;, mail me &lt;a href=&quot;mailto:cider_demon@yahoo.com&quot;&gt;here&lt;/a&gt; if you want one.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113713258928588619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113713258928588619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113713258928588619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113713258928588619'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/01/in-midnight-hour.html' title='In the midnight hour...'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113666314980130656</id><published>2006-01-07T19:42:00.000+00:00</published><updated>2006-01-07T19:45:49.810+00:00</updated><title type='text'>Quickly...</title><content type='html'>Just in case anyone actually visits this blog &#39;in person&#39; (rather than subscribing to the feed) the comments seem to be on the blink at the moment.&lt;br /&gt;&lt;br /&gt;If they&#39;re not sorted out shortly, I think I might move back to Blogger&#39;s native commenting system. It&#39;s been made much better since I first moved aaway from it all those many moons ago...&lt;br /&gt;&lt;br /&gt;If you don&#39;t visit the blog itself (You&#39;re not missing much. I really need to have a sit down and redesign it) then ignore this post.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113666314980130656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113666314980130656' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113666314980130656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113666314980130656'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/01/quickly.html' title='Quickly...'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113661969258356380</id><published>2006-01-07T07:38:00.000+00:00</published><updated>2006-01-07T07:41:32.593+00:00</updated><title type='text'>Anyone for Windows Live Messenger 8.0?</title><content type='html'>I have a some invitations to the &lt;a href=&quot;http://ideas.live.com/programpage.aspx?versionId=0eccd94b-eb48-497c-8e60-c6313f7ebb73&quot;&gt;Windows Live Messenger 8.0 Beta&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;mail me &lt;a href=&quot;mailto:cider_demon@yahoo.com&quot;&gt;here&lt;/a&gt; if you&#39;re interested.&lt;br /&gt;&lt;br /&gt;Just want to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113661969258356380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113661969258356380' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113661969258356380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113661969258356380'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/01/anyone-for-windows-live-messenger-80.html' title='Anyone for Windows Live Messenger 8.0?'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113649932063072355</id><published>2006-01-05T22:04:00.000+00:00</published><updated>2006-01-05T22:15:20.643+00:00</updated><title type='text'>Quick thought before bed</title><content type='html'>I&#39;ve heard it said that the biggest security hole in any system is the one between the keyboard and the chair. People (or at least a lot of people) need to be kinda protected from themselves. Particularly when it comes to &#39;all that technical stuff&#39; like computers. Which is a shame, considering how ubiquitous they&#39;ve become.&lt;br /&gt;&lt;br /&gt;Here&#39;s a really tiny thought, but one that only occurred to me today.&lt;br /&gt;&lt;br /&gt;Would it really be that hard to have a header or a flag or something on a web page that told the browser that under no circumstances should they cache, autocomplete, or in any way retain on the computer and values put into a form?&lt;br /&gt;&lt;br /&gt;Just occurred to me today when Firefox autocompleted my bank details and password when I was paying some bills online.&lt;br /&gt;&lt;br /&gt;Don&#39;t get me wrong, most of the websites I go to that need authentication have their username and passwords autocompleted. I love it. I&#39;m even right down with Firefox&#39;s domain-level password remembering stuff (so if your site of choice puts its session ID in the URL, it&#39;ll still complete your details). But there are just some places that I really don&#39;t want to be &lt;em&gt;able&lt;/em&gt; to do it, event if I wanted to!&lt;br /&gt;&lt;br /&gt;PS - Yes, it&#39;s fixed now. I was in a rush one time to see my bank statement for various reasons, working on a brand new machine that I hadn&#39;t configured yet, so that&#39;s why all the details were there. But very few people I know even know &lt;em&gt;how&lt;/em&gt; to clear their saved passwords.&lt;br /&gt;&lt;br /&gt;Just wanted to share. I&#39;m off to bed.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113649932063072355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113649932063072355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113649932063072355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113649932063072355'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/01/quick-thought-before-bed.html' title='Quick thought before bed'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113622638229612124</id><published>2006-01-02T18:14:00.000+00:00</published><updated>2006-01-02T18:32:23.103+00:00</updated><title type='text'>Well whaddya know?</title><content type='html'>If you type something into the address bar in Internet Explorer and hit ctrl+enter, it forms a complete .com URL from that word, so enter &#39;microsoft&#39; and hit ctrl+enter and it&#39;ll complete it to &#39;http://www.microsoft.com&#39;.&lt;br /&gt;&lt;br /&gt;This is not new. It&#39;s been there for donkey&#39;s years, and it even got through to Firefox.&lt;br /&gt;&lt;br /&gt;However, Firefox took it one step further.&lt;br /&gt;&lt;br /&gt;FF completes the addresses with the following top-level-domain extensions:&lt;br /&gt;&lt;br /&gt;&lt;table&gt;&lt;tr&gt;&lt;th style=&quot;border-bottom:black 1px solid;border-right:black 1px solid&quot;&gt;Key combo&lt;/th&gt;&lt;th style=&quot;border-bottom:black 1px solid&quot;&gt;Suffix&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-right:black 1px solid&quot;&gt;CTRL+ENTER&lt;/td&gt;&lt;td&gt;.com&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-right:black 1px solid&quot;&gt;SHIFT+ENTER&lt;/td&gt;&lt;td&gt;.net&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-right:black 1px solid&quot;&gt;CTRL+SHIFT+ENTER&lt;/td&gt;&lt;td&gt;.org&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Who knows - there may even be more. I just haven&#39;t found them yet, though.&lt;br /&gt;&lt;br /&gt;Discovered it on the last day I was at work before christmas. Been running round like a madman since then, though. I&#39;ll be glad to get back into the office for a break!&lt;br /&gt;&lt;br /&gt;Anyway, hope y&#39;all had a good one. &lt;br /&gt;&lt;br /&gt;Just wanted to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113622638229612124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113622638229612124' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113622638229612124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113622638229612124'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2006/01/well-whaddya-know.html' title='Well whaddya know?'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113364172452700883</id><published>2005-12-03T20:04:00.000+00:00</published><updated>2005-12-03T21:07:30.496+00:00</updated><title type='text'>Quick SQL Reporting tip</title><content type='html'>I usually have to customize the data that&#39;s presented in a report in SQL Reporting services based on the currently logged in user. I&#39;m guessing I&#39;m not the only one.&lt;br /&gt;&lt;br /&gt;The good news? It&#39;s really &lt;em&gt;really&lt;/em&gt; easy!&lt;br /&gt;&lt;br /&gt;What you can do is simply create a new String parameter (called something imaginative like &#39;CurrentUser&#39; or something). When you create the parameter in the report designer, it&#39;ll give you a bunch of configuration options for the parameter. The main one you&#39;re interested in is the Default value.&lt;br /&gt;&lt;br /&gt;Select &#39;Non-Queried&#39; from the radio button list on the left, and then in the text-box that&#39;s enabled, enter the following function:&lt;br /&gt;&lt;code&gt;=Right(User!UserID, len(User!UserID)-instr(User!UserID, &quot;\&quot;))&lt;/code&gt;&lt;br /&gt;Looks ugly, yeah? But it&#39;s quite logical, if you break it down a bit:&lt;br /&gt;&lt;code&gt;Right(&lt;em&gt;string, length&lt;/em&gt;)&lt;/code&gt; gives you the right &lt;em&gt;n&lt;/em&gt; characters of &lt;em&gt;string&lt;/em&gt;. So if you entered &lt;code&gt;Right(&quot;Monkey&quot;, 3)&lt;/code&gt; the resulting string would be &#39;key&#39;, the right 3 characters of the work &#39;Monkey&#39;.&lt;br /&gt;&lt;br /&gt;In this context, the string we&#39;re initial string is &lt;code&gt;User!UserID&lt;/code&gt;. This is a report function that gets the login of the user viewing the report. The value is in the form DOMAIN/USER, which might be fine as is for your reporting. However, when I was using it, I just wanted the name part of the login, rather than both the domain and name. &lt;code&gt;instr&lt;/code&gt; and &lt;code&gt;len&lt;/code&gt; both combine to give me the user portion of the UserName. &lt;code&gt;len(User!UserID)&lt;/code&gt; returns the length of the UserID string in its entirety. So for &#39;MARVIN\Ben&#39; (my current login) it would return  10.&lt;br /&gt;&lt;code&gt;instr(&lt;em&gt;String, StringToFind&lt;/em&gt;)&lt;/code&gt; returns the index of StringToFind within String. So taking my current login as an example, &lt;code&gt;instr(&quot;MARVIN\Ben&quot;, &quot;\&quot;)&lt;/code&gt; returns 7.&lt;br /&gt;If you evaluate those 2 expressions, the outer expression then reads &lt;code&gt;=Right(User!UserID, (10-3))&lt;/code&gt;, which is why the expression returns &#39;Ben&#39; in my report.&lt;br /&gt;&lt;br /&gt;That&#39;s not the clever bit, though.&lt;br /&gt;&lt;br /&gt;The clever bit lies in the rest of the parameters.&lt;br /&gt;&lt;br /&gt;If you have a datasource that requires parameters, say you&#39;re pulling results from a stored procedure, the report designer automatically adds those parameters to the parameters collection off the report. Since all the report parameters are evaluated in the order they appear in the list (Or are displayed in the order they are evaluated, if you like) you can out your CurrentUser parameter at the top of the list, and then if any of your query parameters need the current username, rather than repeat the function, you ca just refer to the CurrentUser parameter using &lt;code&gt;Parameters!CurrentUser.Value&lt;/code&gt;. Just hide those parameters (more on that in a minute), set their defaults to the CurentUser parameter&#39;s value, and you&#39;re away!&lt;br /&gt;&lt;br /&gt;The final stage is to hide the current user parameter. This differs depending on which version of SSRS you&#39;re using, but the 2 I know about are:&lt;ol&gt;&lt;li&gt;the SSRS 2005 parameter dialog box has a &#39;Hide Parameter&#39; check box. Just tick that and you&#39;re done&lt;/li&gt;&lt;li&gt;In SSRS 2000 (which is what I&#39;m using at home) if you clear the &#39;Prompt&#39; value in the dialog, it&#39;ll automatically hide the parameter for you&lt;/li&gt;&lt;/ol&gt;But wait, there&#39;s more! Something that I was absolutely overjoyed to find out!&lt;br /&gt;&lt;br /&gt;You set the default value of the CurrentUser parameter when the report fires up. Now normally, if the parameter is hidden, that value will never change. However if you un-hide that parameter, you can edit it and re-run the report using that value. This makes it an absolute doddle to debug and test. If you want to test the report output using several different users, you can just do it right there and then. And if you&#39;ve set all the rest of the report parameters&#39; defaults to refer to CurrentUser, then they&#39;ll all pick up the value you enter.&lt;br /&gt;&lt;br /&gt;When you&#39;re done testing and are happy with the results that are being produced for your users, then you can just re-hide the parameter in the designer and publish the report. Once that&#39;s done, your report will produce custom output for each user, with no user intervention required or, in fact, allowed.&lt;br /&gt;&lt;br /&gt;Clever eh? I love SQL Server Reporting Services. They&#39;re my friend.&lt;br /&gt;&lt;br /&gt;Just wanted to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113364172452700883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113364172452700883' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113364172452700883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113364172452700883'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/12/quick-sql-reporting-tip.html' title='Quick SQL Reporting tip'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113277623294926980</id><published>2005-11-23T19:53:00.000+00:00</published><updated>2005-11-23T20:03:52.960+00:00</updated><title type='text'>So much stuff, so little time...</title><content type='html'>Gah! So busy of late! Been writing lots of C#, and here are my cool features, in no particular order, and with no (at the time of writing) links (Sorry).&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Refactoring Support&lt;/li&gt;&lt;li&gt;Windows Forms designer guide lines&lt;/li&gt;&lt;li&gt;Generics - say no more&lt;/li&gt;&lt;li&gt;Partial classes&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;There are so many more as well. I just love it. The joy is back.&lt;br /&gt;&lt;br /&gt;Been working on some other cool stuff as well:&lt;br /&gt;&lt;a href=&quot;http://msdn.microsoft.com/sql/bi/reporting/&quot;&gt;SQL Reporting Services&lt;/a&gt; - Just check it out. They rule!&lt;br /&gt;&lt;a href=&quot;http://msdn.microsoft.com/sql/&quot;&gt;SQL Server 2005 in general&lt;/a&gt; - Okay, I&#39;m cheating. I&#39;m on a SQL Server 2005 course this week.&lt;br /&gt;&lt;br /&gt;Yes. I&#39;m afraid there&#39;s nothing new to report. I&#39;m just a jobbing developer, after all.  Although I must admit, that amid the furore over the minor bugs that still inevitably remain in VS2005, &lt;a href=&quot;http://searchvb.techtarget.com/originalContent/0,289142,sid8_gci1146746,00.html&quot;&gt;Mike Gunderloy has some words of sanity&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;Not a lot to share, but I have anyway. So there!</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113277623294926980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113277623294926980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113277623294926980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113277623294926980'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/11/so-much-stuff-so-little-time.html' title='So much stuff, so little time...'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113213293562804478</id><published>2005-11-16T09:19:00.000+00:00</published><updated>2005-11-16T09:22:15.636+00:00</updated><title type='text'>It&#39;s only a real little thing...</title><content type='html'>... But am I the only person who thinks that it would be a good idea fo a text editor to not only use punctuation and spacing to skip from word to word when you ctrl+crsr, but to include CapitalLetters in how it delimits word boundaries?&lt;br /&gt;&lt;br /&gt;It&#39;s just been plaguing me over the past few days. I guess the alternative is to learn how to type properly...&lt;br /&gt;&lt;br /&gt;Just asking the question...</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113213293562804478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113213293562804478' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113213293562804478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113213293562804478'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/11/its-only-real-little-thing.html' title='It&#39;s only a real little thing...'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113060224368861159</id><published>2005-10-29T16:04:00.000+00:00</published><updated>2005-10-29T16:18:38.100+00:00</updated><title type='text'>Great articles about Generics</title><content type='html'>Like most people, I daresay, the only way I&#39;ve really been using generics over the past couple of months is for creating strongly types collections with System.Collections.Generics.List&lt;T&gt;&#39;s, but I know in my heart of hearts that that&#39;s only half the story. Not even half of it. It&#39;s more like the first paragraph in the novel of Generics.&lt;br /&gt;&lt;br /&gt;There are some great articles about generics and their use up on MSDN (Gratuitously nicked from the excellent &lt;a href=&quot;http://vbfeeds.com/Default.aspx&quot;&gt;VBFeeds.com&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/dndotnet/html/Fundamentals.asp&quot;&gt;Generics FAQ: Fundamentals&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/dndotnet/html/NetFramework.asp&quot;&gt;Generics FAQ: .NET Framework&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/dndotnet/html/BestPractices.asp&quot;&gt;Generics FAQ: Best Practices&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/dndotnet/html/ToolSupport.asp&quot;&gt;Generics FAQ: Tool Support&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Not just sharing, I wanted to remember them as well...</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113060224368861159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113060224368861159' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113060224368861159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113060224368861159'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/10/great-articles-about-generics.html' title='Great articles about Generics'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-113027247137986769</id><published>2005-10-25T20:17:00.000+00:00</published><updated>2005-10-25T20:34:31.410+00:00</updated><title type='text'>A grand day out. And a Grand night in!</title><content type='html'>So I spent my Saturday in the company of a whole bunch of UK nerds this weekend. And oh my, what a cool day! I&#39;ve never really been to any real developer events, certainly not one that was so fiercely community driven as &lt;a href=&quot;http://www.developerday.co.uk/ddd/default.asp&quot;&gt;DeveloperDeveloperDeveloper &lt;/a&gt;on Saturday. And oh my what a day it was.&lt;br /&gt;&lt;br /&gt;In keeping with my general philosophy of trying to learn new stuff that I wouldn&#39;t really have an excuse to get to know about otherwise (i.e. pretty much avoiding anything that I&#39;m likely to encounter in work) I saw some really great people enthusing about some really cool things.&lt;br /&gt;&lt;br /&gt;My personal highlights included:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://idunno.org/&quot;&gt;Barry Dorrans&lt;/a&gt; being very excited about MsBuild.&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.geekswithblogs.net/twickers&quot;&gt;Liam Westley&lt;/a&gt; being very quick and cool about SubVersion (Despite the organisers&#39; best efforts to kleep him off the agenda ;-))&lt;/li&gt;&lt;li&gt;Ben Lamb bubbling over with the funky new stuff headed up for C# 3.0&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Those are just the ones that leap readiliy to mind. I also saw some cool stuff around the CLR in SQL Server 2005, new stuff in the System.XML namespace and many many more.&lt;br /&gt;&lt;br /&gt;It was also just really cool to see so many people there, all of whom sort of share a bit of an interest. I&#39;ve discovered through my travels in the world of the fledgling developer that it&#39;s something of a solitary path to tread. Thanls to all the organisers and attendees who made it such a fun day out. No doubt I&#39;ll be at the next one.&lt;br /&gt;&lt;br /&gt;And then, to cap it all, got home from Reading only to find that Mrs Mawoo had organised a surprise birthday party for me, so there was much beer, merriment and general fun afterwards as well (although I&#39;m ashamed to say I was the first to leave the party. Sat down for 5 minutes, and all of a sudden all of my friends had gone and Mrs Mawoo was waking me up to put my PJ&#39;s on. That&#39;s what you get for going out all day then trying to party after!)&lt;br /&gt;&lt;br /&gt;And last but not least, a big thanks to John who let me scrounge a ride from my house to Reading. And back. Eventually!&lt;br /&gt;&lt;br /&gt;That&#39;s it for now. No doubt there&#39;ll be more coming. I&#39;ve got a bunch of tech stuff in my head just dying to come out, but so little time to actually write it! Damned commute! Gah!&lt;br /&gt;&lt;br /&gt;Just wanted to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/113027247137986769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=113027247137986769' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113027247137986769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/113027247137986769'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/10/grand-day-out-and-grand-night-in.html' title='A grand day out. And a Grand night in!'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-112821288571545712</id><published>2005-10-02T00:20:00.000+00:00</published><updated>2005-10-02T00:28:05.720+00:00</updated><title type='text'>Non Smokers look away now...</title><content type='html'>I know it&#39;s a particularly anti-social habit, as well as being about the least politically correct thing one can do, but I am a smoker.&lt;br /&gt;&lt;br /&gt;Even worse, I don&#39;t even have the decency to be a victime of smoking. I dont&#39;t smoke &#39;Because I Can&#39;t Help It&#39; or &#39;Because I need to&#39; or any ligitimate reason like that.&lt;br /&gt;&lt;br /&gt;I smoke because, bad as it is, and an unpopular an opinion as it is, I actually enjoy it. Every cigarette is as good as the last, and so on and so forth.&lt;br /&gt;&lt;br /&gt;I smoke for the same reason some people eat chocolate. It&#39;s nice. It makes me feel good and I like it.&lt;br /&gt;&lt;br /&gt;So I&#39;ve just got one thing to say in this post. If you&#39;re a smoker, try a shisha pipe. I brought one back from my holiday in Egypt, and it&#39;s a really nice smoke. Bought back 4 flavours of tobacco, Cappucino, Pistachio, Apple and Cola (just to see what it was like). I&#39;m working my way through my Cappucino at the minute, and it&#39;s really quite nice. Doesn&#39;t taste much like coffee, but it certainly has something about it that&#39;s coffee-esque.&lt;br /&gt;&lt;br /&gt;Really quite nice. And smoing a shisha&#39;s very nice as well. I heartily recommend it.&lt;br /&gt;&lt;br /&gt;Apologies for irrelevance, political incorrectness and bad-for-your-healthness.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/112821288571545712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=112821288571545712' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112821288571545712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112821288571545712'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/10/non-smokers-look-away-now.html' title='Non Smokers look away now...'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-112757664836353521</id><published>2005-09-24T17:15:00.000+00:00</published><updated>2005-09-24T16:12:42.086+00:00</updated><title type='text'>Debugging and testing serviced components</title><content type='html'>I&#39;ve been working over the past couple of weeks on a new data access component at work. For many and varied reasons I decided to implement it as a serviced component. I wanted to take advantage of COM+&#39;s ability to pool and maintain objects, as well as its tried and tested transaction management capabilities for slinging stuff in and out of a SQL Server database. &lt;br /&gt;&lt;br /&gt;Since we&#39;re using VS 2005 to develop this new project, I wanted to take advantage of the integrated Unit Testing tools that come with it straight out of the box to make sure my component was working as expected. It was here that I encountered one or two things that I&#39;m noting here so I can remember them:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;You&#39;ll never get good code coverage stats&lt;/strong&gt;&lt;br /&gt;One of the things that needs to be configured when you enable Code Coverage in VS 2005 is exactly which DLL&#39;s it&#39;s going to create code coverage stats for.&lt;br /&gt;&lt;br /&gt;Unfortnately there are 2 things that prevent VS from allowing it for DLL&#39;s that contain serviced components.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;COM+ only looks in the GAC&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;If you want COM+ to recognise your component and run it as a server component (as opposed to a library component - more in that in a minute) you must install it in the GAC. This is no biggie. You just open up you WINDOWS/Assembly folder and drag/drop your DLL into it. Job done (thanks to the Fusion shell extension). You can also use GACUTIL.exe, but isn&#39;t dragging and dropping so much easier?&lt;br /&gt;&lt;br /&gt;So you&#39;ve got you component installed in the GAC, you then need to register it as a serviced component. Easy. Just use REGSVC.exe and bob&#39;s your uncle. One serviced component, configurable through the Component Services management utility. Cool.&lt;br /&gt;&lt;br /&gt;The problem arises, however, when you try to set up code coverage to get stats on your component. You can only reference DLL files directly, and by default the &#39;Select Artifacts to Instrument&#39; dialog only incldes those DLL&#39;s in your solution.&lt;br /&gt;&lt;br /&gt;You &lt;em&gt;can&lt;/em&gt; add other DLL&#39;s to the list, but try to navigate to the GAC and add them from there, and no dice. It somply won&#39;t allow you. This is either an intentional feature, or a side-effect of Fusion. Although in real life, the GAC is organised as a bunch of folders with subfolders and DLL files within them, when viewed in Explorer (as in, for instance, the Open File dialog) the assemblies appear as assembly objects. Since these aren&#39;t actual DLL files, the dialog won&#39;t allow you to add them.&lt;br /&gt;&lt;br /&gt;Oh well. I&#39;ll have a play about and see if I can&#39;t work out a way around it. I&#39;ve got a couple of ideas, but they all generally revolve around changing the way the component is referenced, and as such, change the overall context in which the abject will be used. Change the test environment too much from how it&#39;s actually going to be deployed, and you&#39;ve negated your tests - they&#39;re no longer valid. &lt;em&gt;Some&lt;/em&gt; (and I really do mean a very small amount) things can be changed for the purposes of testing and debugging, but not too much.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Serviced Components don&#39;t run in the normal application context&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Actually, this isn&#39;t strictly true. Serviced components &lt;em&gt;can&lt;/em&gt; be run inside the context of the calling application. And it&#39;s really simple to do, too. On the property sheet for the COM+ Application you&#39;ve created, under the &#39;Activation&#39; tab, select &#39;Library Application&#39;. This will create the objects created by COM+ in the context of the calling application. &lt;br /&gt;&lt;br /&gt;This can even be demonstrated really easily - just step through some code that calls a serviced component you&#39;ve made in the debugger. If the application&#39;s running as a Server application (i.e. objects are actually created and run in dllhost.exe, rather than in the calling app) the debugger will just step over that code. Press F11 all you like, it won&#39;t do any good. Because the object isn&#39;t in the same process as the app being debugged, it won&#39;t step into it. However if you change the configuration to a Library application, you will be able to debug to your heart&#39;s content.&lt;br /&gt;&lt;br /&gt;So what&#39;s that got to do with Code Coverage? Well, (I think) VS only produces results for code running in the TestHost process, or the ASP.NET equivalent, if you configure it that way. So, even if I did manage to add the GAC&#39;ed DLL, my code coverage stats would be poor. UNLESS, for the purposes of testing I configured the app as a LIbrary Application.&lt;br /&gt;&lt;br /&gt;I guess you&#39;d only need to do it the once, though. Once you know your unit tests cover x% of your component&#39;s code, you can configure it how it&#39;d be in production and leave it - if you&#39;re using Team System you&#39;ll be able to publish the results and keep a record of the coverage stats to take away. Nice!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ignore the error messages&lt;/strong&gt;&lt;br /&gt;Okay. Don&#39;t ignore the error messages, just don&#39;t drill down to fixing the exact problem in the message. Because when you&#39;re working with Serviced components, you&#39;re working with (at least!) 2 sets of technology, the COM+ stuff and the .NET framework. As a result, the errors that get caught and passed between the 2 can lose a little in the translation. I had several errors crop up with null references and invalid security priviledges. They were invariably caused by either not installing the DLL in the GAC, or forgetting to register the component in the first place. Doh! Still, it took a bit of investigating, and I spent a while looking through the code trying to work out what was wrong. Guess I learnt a bit of a lesson - &lt;em&gt;It&#39;s not always just about the code you&#39;ve written.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Remember which actual file&#39;s being loaded&lt;/strong&gt;&lt;br /&gt;I spent a while building, rebuilding and generally buggering about with the code the first couple of times I made significant changes to how the component worked. Either I spotted a mistake and corrected it, or I got rid of a method, or I added a method and tried to call it. Some of the corrections got me all confused since I&#39;d made various changes to the behaviour, but the results weren&#39;t changing.&lt;br /&gt;&lt;br /&gt;Or, I&#39;d add a method, write some code to call it, and then get a Mising Method exception. &lt;br /&gt;&lt;br /&gt;What was going on? It&#39;s obvious now that I&#39;ve spotted it, and it&#39;s even more obvious after what you&#39;ve just read about Unit Testing, but the wierdness was being caused by the DLL not being re-installed in the GAC. I&#39;d rebuild, and then when the test app called that assembly, it wasn&#39;t the fresh up-to-date assembly being called. It was the assembly that I&#39;d already identitfied as being wrong that was running.&lt;br /&gt;&lt;br /&gt;Doh!&lt;br /&gt;&lt;br /&gt;All in all, though, everything seems to be working nicely now, though. I just wanted to get some stuff to remember written down to help me remember it. &lt;br /&gt;&lt;br /&gt;Jurt a quick plea for help, I wrote this pretty much off the top of my head. If anyone spots anything that&#39;s very incorrect, please drop a comment and let me know. Just to re-iterate, I certainly wouldn&#39;t take this post as gospel. They&#39;re just some things I wanted to make a note of, and generally thought I&#39;d share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/112757664836353521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=112757664836353521' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112757664836353521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112757664836353521'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/09/debugging-and-testing-serviced.html' title='Debugging and testing serviced components'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-112706119847852125</id><published>2005-09-18T16:16:00.000+00:00</published><updated>2005-09-18T16:39:42.363+00:00</updated><title type='text'>And... Breathe...</title><content type='html'>So I&#39;ve been a bit busy over the past couple of weeks.&lt;br /&gt;&lt;br /&gt;What have I been up to?&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://www.flickr.com/photos/BenAndLisasEgyptianAdventure&quot;&gt;Spent 2 weeks in Egypt&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Spent a week at work&lt;/li&gt;&lt;li&gt;Went book shopping&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;Actually, that doesn&#39;t sound too busy at all. How come I feel like I haven&#39;t had 2 seeconds to sit and do anything? Oh well.&lt;br /&gt;&lt;br /&gt;Doing some interesting stuff at the moment with &lt;a href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystementerpriseservices.asp&quot;&gt;System.EnterpriseServices&lt;/a&gt; and &lt;a href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/hawkremoting.asp&quot;&gt;.NET remoting&lt;/a&gt; in C# 2.0. It&#39;s big fun, and if it all works, should make my life at work a bit easier. Nothing huge, but I&#39;m currently replacing a web service with a remotable serviced component. The web service works fine, but because of the job it does, it needs to be as quick as possible. WebServices are great for a whole host of reasons, but for out purposes it could be better. It&#39;s a logging component for our intranet, which can be called across sites, but always to and from applications we&#39;ve written.&lt;br /&gt;&lt;br /&gt;There&#39;s no need for it to be interoparable over multiple environments (one of the biggest advantages of WebServices). As a result, one of the first advantages remoting has over WebServices is being able to send messages over TCP, and serialized using .NET&#39;s &lt;a href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemruntimeserializationformattersbinarybinaryformatterclasstopic.asp&quot;&gt;BinaryFormatter&lt;/a&gt;. This makes the messages going backwards and forwards much smaller. I haven&#39;t get any data on actual message size, but it took approximately 8 times as long to pull a dataset out through the webservice than it did to pull the same data out as business objects through a remoted component.&lt;br /&gt;&lt;br /&gt;Add to that the nice things that COM+ brings to the table like &lt;a href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cossdk/html/47b23cae-d5fc-4788-ab1c-93d6d8ee3f01.asp&quot;&gt;JIT Activation&lt;/a&gt;, &lt;a href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msmq/msmq_about_transactions_8w37.asp&quot;&gt;transaction management&lt;/a&gt; and &lt;a href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cossdk/html/954cf9ee-e76c-4faf-99aa-3648a7bb8a59.asp&quot;&gt;object pooling&lt;/a&gt; and it should be a nice replacement. &lt;br /&gt;&lt;br /&gt;And I get to play with C# and VS 2005.&lt;br /&gt;&lt;br /&gt;What more could a boy want?&lt;br /&gt;&lt;br /&gt;I&#39;m sure I&#39;ll be writing more about my adventures in C# 2.0 shortly, but for now, I&#39;ve got a couple of new books to read (&lt;a href=&quot;http://www.amazon.co.uk/exec/obidos/ASIN/078214327X/qid%3D1127061439/026-0042537-9296431&quot;&gt;this&lt;/a&gt;, &lt;a href=&quot;http://www.amazon.co.uk/exec/obidos/ASIN/1590594231/qid=1127061494/sr=1-1/ref=sr_1_2_1/026-0042537-9296431&quot;&gt;this&lt;/a&gt; and &lt;a href=&quot;http://www.amazon.co.uk/exec/obidos/ASIN/0672326116/qid=1127061556/sr=1-1/ref=sr_1_2_1/026-0042537-9296431&quot;&gt;this&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;Just wanted to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/112706119847852125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=112706119847852125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112706119847852125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112706119847852125'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/09/and-breathe.html' title='And... Breathe...'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-112575463857957544</id><published>2005-09-03T13:30:00.000+00:00</published><updated>2005-09-03T13:37:18.583+00:00</updated><title type='text'>Very Very Quick...</title><content type='html'>...Before Mrs Mawoo finds me...&lt;br /&gt;&lt;br /&gt;I&#39;m currently blogging from a hotel lobby in Luxor, just about half way down the east coast of Egypt. I&#39;ll write more when I get back in a week or so, but here&#39;s a summary:&lt;ul&gt;&lt;li&gt;Egypt rocks.&lt;/li&gt;&lt;li&gt;Luxor rocks.&lt;/li&gt;&lt;li&gt;Aswan rocks&lt;/li&gt;&lt;li&gt;Pyramids rule.&lt;/li&gt;&lt;li&gt;Temples kick arse&lt;/li&gt;&lt;li&gt;The desert&#39;s ace&lt;/li&gt;&lt;li&gt;You can have too much of a train trip&lt;/li&gt;&lt;li&gt;Cairo doesn&#39;t rock.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;I&#39;ll elaborate further when I&#39;ve re-learnt how to type (funny how you can get out of practice with these things ;-)) But for now, I&#39;m in Egypt. And that&#39;s cool.&lt;br /&gt;&lt;br /&gt;Just wanted to share. I&#39;m sure one day  I&#39;ll get onto some .net stuff again one day...</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/112575463857957544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=112575463857957544' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112575463857957544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112575463857957544'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/09/very-very-quick.html' title='Very Very Quick...'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-112458398542444962</id><published>2005-08-21T00:11:00.000+00:00</published><updated>2005-08-21T00:26:25.430+00:00</updated><title type='text'>The perils of stubbing out methods</title><content type='html'>I only have a single-thread brain. Sad, but true. I can only really concentrate on one thing at a time.&lt;br /&gt;&lt;br /&gt;For example, when I&#39;m writing, I like to stub out sections of code so I can some back and flesh them out when I&#39;ve finished something else. Take thei example of some code in process:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Public Function GetString(AllTheString as Boolean) as String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If AllTheString Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Return &quot;You asked for all the string&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;Add the &#39;Not-All-The-String&#39; in  a minute.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&#39;Why not make a coffee?&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End If&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;You get the point. I can deal with the other path the code can take at some point in time. Perhaps after a coffee. However, this approach doesn&#39;t work in SQL Server 2000. I&#39;m sure it&#39;s well documented and whatnot, but it really did give me some grief earlier today. Take this example:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;CREATE PROCEDURE ThisIsATest&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(@TestValue int)&lt;br /&gt;AS&lt;br /&gt;&lt;br /&gt;IF EXISTS(SELECT TheKey FROM TheTable WHERE TheKey = @TestValue&lt;br /&gt;BEGIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;INSERT INTO AuditTable(Event, Time)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VALUES (&#39;This value was found: &#39; + @TestValue, GETDATE())&lt;br /&gt;END&lt;br /&gt;ELSE&lt;br /&gt;BEGIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/*I&#39;ll worry about this part in a minute&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I quite feel like a coffee roundabout now...*/&lt;br /&gt;END&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Hit the &#39;Validate SQL&#39; button, and it&#39;ll return an error. A nice error? A helpful error? An error that might vaguely suggest that you might have a code path that doesn&#39;t actually so anything? No. What does it come back with?&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Incorrect syntax near the keyword &#39;END&#39;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Pointing at the last line of the script.&lt;br /&gt;&lt;br /&gt;Took me ages of sifting through a long SPROC before I realised that was what it was trying to tell me. Bugger. All I was trying to dso was vlidate the SQL I &lt;em&gt;had&lt;/em&gt; writen so I could move on to the other part. &lt;br /&gt;&lt;br /&gt;Just wanted to share. Apologies for irrelevance and brevity, but it&#39;s late. All because of this very thing!</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/112458398542444962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=112458398542444962' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112458398542444962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112458398542444962'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/08/perils-of-stubbing-out-methods.html' title='The perils of stubbing out methods'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-112391867721447349</id><published>2005-08-13T07:21:00.000+00:00</published><updated>2005-08-13T07:39:13.083+00:00</updated><title type='text'>Firsts, firsts and more firsts...</title><content type='html'>We&#39;re just starting a new project at work for the next few months. It&#39;s a fairly standard data mangling app, retreiving deatails about people, updating them stashing them back in a database. Nothing really out of the ordinary.&lt;br /&gt;&lt;br /&gt;Well, it would seem that my team doesn&#39;t like to do the same thing over and over again (fair enough, neither do I!) so we&#39;re going to be doing a whole bunch of stuff that none of us have ever really done before. Our next project will be:&lt;ul&gt;&lt;li&gt;Written in C#&lt;/li&gt;&lt;li&gt;v2.0&lt;/li&gt;&lt;li&gt;in VS 05 beta&lt;/li&gt;&lt;li&gt;All developed on virtual PCs&lt;/li&gt;&lt;li&gt;Managed by Team System (Also running on a virtual server)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;It&#39;s times like this that I really like not being chrged for by the hour. We had a meeting yesterday where we kind of figured that we can get the data-mangling parts written relatively quickly, so we could spend a bit more time doing nice twiddly bits for the UI. Nice. So there&#39;s going to be a few AJAX-easqe bits (I&#39;m not even going to pretend that it&#39;s a new thing, but I&#39;d never found a library quite as nice as &lt;a href=&quot;http://weblogs.asp.net/mschwarz/&quot;&gt;Michael Schwarz&#39; AJAX.NET&lt;/a&gt; for making it happen). IN real life, I;m sure we could knock something very dull rogether in a few weeks, but that would be it. It would be a very boring bit of kit. Just another in a long line of data mangling applications, And if I was being charged for by the hour, I&#39;m sure that would suffice (&#39;I don&#39;t care how boring it is, just do it as quick and cheap as possible!&#39;). &lt;br /&gt;&lt;br /&gt;But I&#39;m not. And that&#39;s cool. We get to learn new stuff (none of us have written in C# before) use new things (all betas, which is why we&#39;re doing it all on VPC&#39;s) and have some real fun (if you&#39;re into that sort of thing) with it.&lt;br /&gt;&lt;br /&gt;Nice!&lt;br /&gt;&lt;br /&gt;Just wanted to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/112391867721447349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=112391867721447349' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112391867721447349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112391867721447349'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/08/firsts-firsts-and-more-firsts.html' title='Firsts, firsts and more firsts...'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-112332005013865786</id><published>2005-08-06T09:12:00.000+00:00</published><updated>2005-08-06T09:20:52.340+00:00</updated><title type='text'>Disaster at Benjimawoo Towers!</title><content type='html'>Of all the keys that had to stop working after my &lt;a href=&quot;http://benthevbdeveloper.blogspot.com/2005/07/unbundle-your-products-dammit.html&quot;&gt;little bit of clumsiness a couple of weeks ago&lt;/a&gt; why did it have to be F11!&lt;br /&gt;&lt;br /&gt;Yes, I know I can change the default key bindings, but i&#39;m too lazy to change them from the VS defaults and reconfigure every time I rebuild.&lt;br /&gt;&lt;br /&gt;Grr! Just wanted to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/112332005013865786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=112332005013865786' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112332005013865786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112332005013865786'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/08/disaster-at-benjimawoo-towers.html' title='Disaster at Benjimawoo Towers!'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6825852.post-112327979412605325</id><published>2005-08-05T21:47:00.000+00:00</published><updated>2005-08-05T22:09:54.133+00:00</updated><title type='text'>Short-circuiting comparisons</title><content type='html'>This was one of those things that I read about and though &#39;Huh. When am I ever going to use &lt;em&gt;that&lt;/em&gt;?&#39; Turns out it&#39;s pretty useful at times.&lt;br /&gt;&lt;br /&gt;VB.NET can short circuit comparisons using the AndAlso an OrElse keywords. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What&#39;s short-circuiting?&lt;/strong&gt;&lt;br /&gt;Short circuiting occurs when you have multiple comparisons on a line and the outcome is known before you get to the end of the line. Take the following line of code:&lt;br /&gt;&lt;code&gt;If 1=2 And 3=3 Then&lt;br /&gt;    &#39;Do some stuff&lt;br /&gt;End If&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You know after the first part (1=2) that the comparison is going to return false, but the second part is still evaluated (i.e. the machine still checks to see if 3 does in fact equal 3). However, if you were to use this:&lt;br /&gt;&lt;code&gt;If 1=2 AndAlso 3=3 Then&lt;br /&gt;    &#39;Do some stuff&lt;br /&gt;End If&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The machine skips the 3=3 part of the comparison. Just ignores it. It knows that since 1!=2 the result is going to be false, so it just skips over the second part.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;So?&lt;/strong&gt;&lt;br /&gt;That contrived example doesn&#39;t look too useful. However, if we look at a real world example, all becomes clear:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Dim ds as Dataset = GetMyDataset()&lt;br /&gt;Dim dr as DataRow = GetMyDataSet.Tables(0).Rows(0)&lt;br /&gt;If Not IsDbNull(dr(&quot;FieldName&quot;)) And dr(&quot;FieldName&quot;) &gt; 0 Then&lt;br /&gt;    &#39;Do some stuff&lt;br /&gt;End If&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Because we&#39;re using the normal &#39;And&#39;, if the value in the row specified is null, the method will throw an exception because a value of type DBNull can&#39;t be cast to an integer. Although &#39;Not IsDbNull(dr(&quot;FieldName&quot;))&#39; returns false (because it &lt;em&gt;is&lt;/em&gt; null) the second section is still evaluated. And because it&#39;s a null value, an exception is thrown.&lt;br /&gt;&lt;br /&gt;However, if we use AndAlso, the comparison is short-circuited and it doesn&#39;t throw an exception:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;Dim ds as Dataset = GetMyDataset()&lt;br /&gt;Dim dr as DataRow = GetMyDataSet.Tables(0).Rows(0)&lt;br /&gt;If Not IsDbNull(dr(&quot;FieldName&quot;)) AndAlso dr(&quot;FieldName&quot;) &gt; 0 Then&lt;br /&gt;    &#39;Do some stuff&lt;br /&gt;End If&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Because the first part of the comparison return false, the framework &lt;em&gt;knows&lt;/em&gt; that the overall expression is going to return false, so it doesn&#39;t bother trying to evaluate the second part, and it doesn&#39;t throw an exception.&lt;br /&gt;&lt;br /&gt;Needless to say, OrElse works in exactly the same way, but for Or&#39;s rather than And&#39;s.&lt;br /&gt;&lt;br /&gt;It&#39;s come in handy for me a couple of times recently, anyway.&lt;br /&gt;&lt;br /&gt;Just wanted to share.</content><link rel='replies' type='application/atom+xml' href='http://benthevbdeveloper.blogspot.com/feeds/112327979412605325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6825852&amp;postID=112327979412605325' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112327979412605325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6825852/posts/default/112327979412605325'/><link rel='alternate' type='text/html' href='http://benthevbdeveloper.blogspot.com/2005/08/short-circuiting-comparisons.html' title='Short-circuiting comparisons'/><author><name>Benjimawoo</name><uri>http://www.blogger.com/profile/06246234499394493455</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='23' src='http://freespace.virgin.net/ben.savage/BlogFiles/BenWeb.jpg'/></author><thr:total>0</thr:total></entry></feed>

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid Atom 1.0" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//feeds.feedburner.com/benjimawoo

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda