March 2004 - Posts

Weblog comment spam
31 March 04 09:23 AM | alexcampbell | 3 comment(s)

Sender: Vashilli
Url: ...
IP Address: 212.158.232.39
=====================================
Hi
Sorry if this is a little off topic, but would anybody know of any good examples on the web of how to perform an automatic reboot using C#?

Vashilli: you are an idiot.

I'm sure I can find a way of automatically rebooting your machine (without using C# !!!)... every few seconds for the next 24 hours.

  6     7 ms     4 ms     4 ms  sl-gw1-mel-6-0-0.sprintlink.net [203.222.35.229]
  7    18 ms    16 ms    16 ms  sl-bb21-syd-1-0.sprintlink.net [203.222.33.18]
  8    19 ms    16 ms    16 ms  sl-bb21-syd-14-1.sprintlink.net [203.222.32.49]
  9   167 ms   166 ms   166 ms  sl-bb21-sj-3-2.sprintlink.net [144.232.8.130]
 10   228 ms   227 ms   227 ms  sl-bb22-rly-11-0.sprintlink.net [144.232.20.187]
 11   229 ms   228 ms   227 ms  sl-bb21-rly-12-0.sprintlink.net [144.232.7.253]
 12   233 ms   230 ms   231 ms  sl-bb20-tuk-1-0.sprintlink.net [144.232.20.121]
 13   232 ms   231 ms   232 ms  sl-bb21-tuk-15-0.sprintlink.net [144.232.20.133]
 14   301 ms   300 ms   300 ms  sl-bb21-lon-14-0.sprintlink.net [144.232.19.70]
 15   301 ms   299 ms   300 ms  sl-bb23-lon-14-0.sprintlink.net [213.206.128.54]
 16   301 ms   300 ms   299 ms  sl-gw23-lon-15-0.sprintlink.net [213.206.128.63]
 17   303 ms   300 ms   300 ms  sle-intercom-1-0.sprintlink.net [213.206.157.10]
 18   305 ms   300 ms   300 ms  po9-0.lon-kie-core-1.interoute.net [212.23.41.33]
 19   301 ms   300 ms   300 ms  po7-0.lon-kie-access-2.interoute.net [212.23.41.10]
 20   302 ms   301 ms   304 ms  212.23.32.249
 21   303 ms   303 ms   304 ms  212.158.232.39

Windows 2003 Server breaking SQL Server Enterprise Manager
24 March 04 10:15 PM | alexcampbell | 4 comment(s)

I'm now running Windows 2003 Server on my primary development machine and somehow it is really messing up my Enterprise Manager.  The EM interface basically falls apart a couple of times every day and needs to have the MMC process killed before it will go back to normal.  Also, it periodically displays a message about the MMC being in SDI mode rather than MDI mode (it has been a LONG time since I've had to think about MDI/SDI - probably not since VB6 desktop apps).

Has anyone had similar experiences?  I really believed that MS had moved beyond breaking UIs like this - it really rings of Windows 98 and that is a whole world that no one wants to be reminded of.

Source Code Control (Melbourne Dot Net Users Group)
24 March 04 08:58 PM | alexcampbell | 10 comment(s)

I went to the Melbourne Dot Net Users Group last night.  The topic of the night was source code control, something I have ignored for several years but that is starting to become an topic of discussion at my place of work.

Once again, the hammer paradigm is great for explaining the options available to us.

The Small Hammer
We scream out “I'm checking out module1.cs, don't anyone touch it!” and hope that everyone else hears and takes note.  Needless to say, a source code control system that falls apart when programmers put their headphones on to listen to D12 is doomed to failure (I guess email and clever scheduling will overcome this difficulty).

The Medium Hammer
Visual Source Safe... it is a cruel summary of modern software engineering that we need even consider Visual SourceSafe 6 for source control.  The current version (6.0) was released so long ago that it could now be a museum item.  It has those awful Windows 3.1 dialog boxes that remind me of 1994 (the same ones that I vowed never to see again in 1995).  A particularly concerning feature of VSS6 is that like most MS apps that were developed before 2003 it stores its database in a bizarre formats and an even more bizarre folder structure.  Unfortunately, it seems that the database has a habit of periodically corrupting, and the wacky way in which the data is stored makes recovering this data impossible (keep good, regular backups!!!).

Nices thing about VSS6:

  • cheap ($800AUD)
  • fairly simple
  • integrates pretty nicely with VS.Net

Awful things about VSS6:

  • everything else

The Nuclear Hammer
CVS... runs as a client/server IP app.  Used by the vast majority of the open-source community, particularly for projects where many developers are in different locations.  Started out in Unix-land so retains many Unix archaisms in its configuration settings.  Practically impossible to configure without the manual because the dialogs are so useless.  Stores its everything in plain text files so if someone/something fucks up the repository it is concievably possible to recover the data.

CVS is only the server component - you also need a client component.  The most prominent amongst these are WinCVS and Tortoise.  My personal theory is that the developers behind these two products are competing to see who can create the most frustrating/obscure UI.  The Tortoise team seems to be winning (various icons that resemble cigars, chairs, pencils, and crack pipes), although WinCVS puts up a good fight.

Nice things about CVS:

  • free

Awful things about CVS:

  • impossible to use without significant time investment in learning UI

 

Alternatives
I gather that MS uses a custom in-house source code control system.  If it's good enough for them, it's good enough for us.  Why don't they throw a miniscule portion of their desktop monopoly profits at making this releasable?

The Future
Microsoft obviously doesn't see source code control as a highly competitive market (apparently they have half an employee working on VSS at the moment).  There are apparently no new versions planned.  The future looks rather grim.

Conclusion
I don't have time to figure CVS and its awful clients out.  I don't want to leave Visual Studio to run a third party app to check code out of the repository.  We can't afford to have our code stored away in a proprietary (read “completely undocumented“) file format like VSS.  We don't want to spend the big $$$ for something like SourceGear.

So I think the small hammer is going to have to do.

Cynical closing note: apparently a Microsoft employee has been quoted as saying, "Visual SourceSafe?  It would be safer to print out all your code, run it through a shredder, and set it on fire."

Microsoft Security Summit - Melbourne
11 March 04 09:34 PM | alexcampbell | 2 comment(s)

I spent today at the Security Summit here in Melbourne... m

  • The event was free - it was nice to see Microsoft dipping into its desktop monopoly profits for some purpose other than crushing a competitor
  • There were lots of yummy cakes etc - guaranteed to get any coder onside!  Although I think to get me on the team they'd need a Red Bull fountain...
  • I skipped the keynote in the morning (8am is an hour that is unfamiliar to me, particularly so when I think of listening to 1.5 hours of  'trusted computing' press release drivel)
  • The first two sessions were about Smart Client applications and were thus largely irrelevant to me as an ASP.Net developer
  • The chairs in the presentation room were really uncomfortable (these Herman Miller chairs we have really spoil you and now I get a sore bum on anything other than an Aeron or a couch)
  • Microsoft Virtual PC is a pretty awesome product (I remarked to my colleague “fuck his laptop is running Windows 2003 Server pretty slow“ and it turned out that Dave Glover was running it in a Virtual PC window... it seems that he also had 2003 Server with Whidbey running in another VPC window... no wonder it was slow!)  (it is fun to note that this most interesting part of the summit for me was actually not written at Microsoft but was taken from a company that MS bought out)
  • In the ASP.Net security session Dave demonstrated some common vulnerabilities (SQL injection attacks, directory traversal etc) that would have been familiar to anyone who reads these weblogs and keeps up to date with the web development community
  • Dave also outlined “best practises“ approaches to overcoming these vulnerabilities (use parameterised stored procedures, validate input) - nothing earth shattering but definitely worth reminding people of
  • A large emphasis seemed to be placed on explaining the security features of ASP.Net and the security models within the framework, rather than specific threats
  • Of course, the coolest part was the Whidbey preview at the end - MS is such a tease!

Overall it was a pretty good day, but I think the information presented could have been more efficiently conveyed by writing it down on one side of an A4 sheet of paper.

Development machine running Windows 2003 Server Web Edition?
02 March 04 02:00 PM | alexcampbell | 2 comment(s)

My development machine (currently running WinXP) has developed some extremely annoying habits.  As a solution, I am thinking of installing Windows 2003 Server Web Edition.  I am aware of the limitations with Web Edition, but I don't think they will be a problem.

Does anyone have any experience with using Win2k3 Web Edition for a development machine?  I just use it for VS.Net/SQL Server administering etc.

More Posts