Posts

SQL Server 2008 RTM - First Experiences

FACTOID: B-2 bombers are capable of dropping 85 500-pound bombs in a single run. I installed SQL Server 2008 RTM Developer Edition this evening. First it installed .NET Framework 3.5 SP1, no problems. Then we went with the full install and I chose an Upgrade over SQL Server 2005. Everything went fine until the prerequisites check, and it reported FAIL on Visual Studio 2008 - saying that SP1 was required. Well, I already went through this stuff with Visual Studio 2008 SP1 Beta and it clobbered Silverlight. So, when you guys solve this issue and provide a Visual Studio 2008 SP1 that preserves all my existing Silverlight 2 BETA 2 work and doesn't put me out of business - then I'll be happy to install SQL Server 2008. Meanwhile, I'm choosing the safe route, which is to keep my powder dry. Be advised. UPDATE (8/8/2008):  According to Microsoft sources, VS 2008 SP1 will be accompanied by a new Silverlight Tools Beta 2 chainer.  The new chainer will have the patch for ...

On Documentation for (and by) Developers

Image
The government's view of the economy could be summed up in a few short phrases: If it moves, tax it. If it keeps moving, regulate it. And if it stops moving, subsidize it.  - Ronald Reagan This has become a personal pet - peeve of mine, having been in various developer groups using the .NET platform since 2001 (ancient history, to be sure -- at least by Internet standards). When I write a class library, if there is even the HINT that it may be used by other developers (or  -- even by me myself at some later date) I've learned to produce decent documentation in the standard XML comment format that has been available in .NET since the very first BETA 1.0 was distributed at the Orlando PDC (Professional Developers Conference) in 2000.  Here's the "thing": as you progress in your career as a professional .NET developer, you'll learn to produce libraries and classes of useful code that you'll use again and again. The idea is that as you gain more and more...

New Bridges,a new Internet, and Software Projects

There’s no question we need new bridges and road infrastructure in the United States. But how about a new Internet? There is a massive project to redesign and rebuild the Internet from scratch that is  inching along with $12 million in National Science Foundation funding and donations of up to 40 gigabits of network capacity by the Internet2 organization and NationalLambdaRail. That's enough bandwidth to run 30 high-quality movies into your house -- simultaneously! Construction on "GENI" could start in about five years and cost $350 million - if Congress approves the funding. You could consider emailing your Senator / Congressperson telling them you think it’s a good idea. On Software Projects Have you ever been involved in a software development project that is simply, well -- dysfunctional?  I have, and it is not fun, especially when time starts to run out and then people start looking for somebody to blame. There are certain ingredients that ...

OMG, Silverlight! Asynchronous is Evil! (or, Call me back when you got it)

Now we sit through Shakespeare in order to recognize the quotations. - Orson Welles I just have to shake my head at this absolutely moronic thread on the Silverlight Forums promoting a "petition" to bring back synchronous webrequests in Silverlight. Really, it has all the elements of the old VB6 flame wars… N.B. 8/18/2008: It looks like the moderators finally took the thread down; it was so full of hate posts and name-calling and ad-hominem attacks, its about time! They just don't understand: Have you ever had your browser freeze up when requesting a page somewhere which request (or even a subrequest in the page, such as for advertising or an image) doesn't come back right away? Your browser turns white, your whole damned desktop is frozen, and you may need to get rid of IEXPLORE.EXE from within Task Manager just to free up your system (in rare cases you may actually have to shut down and reboot). This is what happens when a developer who doesn't know how t...

Silverlight: Recent Updates Developers Should Know About

If you got the original Silverlight 2 Beta 2 developer bits which became available around 9PM on the very last Friday of Tech-Ed 2008, you may have noticed that you just recently got a refresh in the form of KB955011 from Windows Update. It turns out that this is supposedly included in a newer version of the silverlight_chainer.exe consolidated installer, which was freshly updated on 7/11/2008. That is to say, the version up there now is NEWER than what you got right after Tech-Ed. I suspect there are some additional fixes in the Tools portion of this, and so I recommend downloading it and reinstalling.  In fact, when I did so, I was pointed to a .vbs script whose header comments are self-descriptive: ' Installation verification script for Microsoft Visual Studio 2008 ' This script checks for KB949325 and reinstalls all Advertised features ' At no time should there be Advertised features for Microsoft Visual Studio 2008 ' Any features in an Advertised state are an...

The Lessons of History – and Moral Hazard

Image
"Olim habeas eorum pecuniam, numquam eam reddis: prima regula quaesitus" (Once you have their money, you never give it back: the 1st rule of acquisition) The U.S. Savings and Loan crisis of the 1980s and 1990s was the failure of 747 savings and loan associations (S&L's) in the United States. The ultimate cost of the crisis is estimated to have totaled around USD$160.1 billion, about $124.6 billion of which was directly paid for by the U.S. government -- that is to say, by you and me, the U.S. taxpayers, either directly or through charges on our savings and loan accounts. This contributed in a major way to the large budget deficits of the early 1990s. The resulting taxpayer bailout ended up being even larger than it would have been because moral hazard and adverse-selection incentives compounded the system’s losses. Moral hazard is the prospect that a party insulated from risk may behave differently from the way it would behave if it were fully exposed to the risk....

Protect Your Ass Redux -- Redux!

Quis custodiet ipsos custodes Who shall keep watch over the guardians? Some may  think I write about this subject ( example ) too often, but frankly, I don't think I write about it often enough: Your server (or workstation) machine is important. Having it not boot up properly or operate normally  can often mean serious loss of income. That's real hard-earned dollars that you CANNOT GET BACK.  So why is it that so many Admins don't have a reliable backup and recovery strategy? Maybe we just think "it can't happen to me". Or maybe we're just plain stubborn and dumb! The single most important ingredient of a recovery strategy is the ability to restore a known good Registry.  Registry corruption often occurs when the machine is shutting down as OS changes are being written to the Registry. It can also occur if there is a network (TCP)  glitch or a power glitch. The bottom line is this: NOBODY IS IMMUNE TO REGISTRY CORRUPTION!  NOBODY! R...

HOWTO: Delay autostart of a program with batch file

If you shoot at mimes, should you use a silencer?   - Steven Wright This is kind of an interesting little exercise that came from our eggheadcafe.com forums and I thought I’d write it up for posterity: User has some sort of logging program (not a service) that depends on SQL Server being up and running in order to do it’s work. Problem is, the little proggie is starting to work before the SQL Server service does on bootup. So the user is asking how you can delay the start of the proggie. Being my helpful self, I advised him to write a .NET console app, have the app sleep the main thread for the specified time, and then use Process.Start to execute the real program. User responds that he doesn’t know what Sleep means; if only there was a way to do this with a batch file. Well, not to be daunted, I went out and did a bit of research. Turns out that there isn’t any native DOS command to “sleep” a batch file. The only way you could do it is to use something from one of the Window...

Client-side database with Silverlight?

Image
I’ve seen some discussion threads about doing things like putting VistaDb (a 100% managed code database) into a Silverlight app. Most of this was wishful thinking, IMHO. If you are going to put a database into a Silverlight app, obviously the data file(s) need to go in IsolatedStorage. So that’s one hurdle – handling file access. And VistaDb is kind of on the large side for inclusion in a Silverlight app that’s designed to download into the browser. I took a look at SharpHsql , which a much simpler managed – code database effort that has had its ups and downs since being ported from the JAVA implementation.  I tried ripping out the Provider (which depends on System.Data – not present in Silverlight Framework) and thought I was making progress, but then I saw that there were still too many other dependencies on stuff from the full Framework that just isn’t there in Silverlight, so I gave up for now. However, I still think this is an idea that has merit. Think of a notetaking app...

Tips for Silverlight Developers / Tutorials

Friends may come and go, but enemies accumulate. – Thomas Jones I’ve downloaded some very simple “one page” zipped or rar-ed Silverlight demos that were 1MB and larger. If you remove all the .dll and .pdb files from such a solution, you save about 2.5 MB before you compress it. If you use tools like Resharper, and you remove all the Resharper – related files, you’ll save even more.  Remember, not everybody uses Resharper! The last one I downloaded was a one -pager Silverlight .rar that weighed in at nearly 1 MB. It also had the Resharper files in it. After I did the above cleanups and re-rared it, it was only 43Kb! D00ds! Almost 1 MB vs only 43K after cleanup! When you load and build one of these  “cleaned up” demo or tutorial solutions like this, all of the assemblies and pdb files will be regenerated perfectly. You do not need to distribute all this baggage with your demo! Computers run on electricity. And electricity comes from coal, oil, or gas (and sometimes the hot ...