Had this happen today. Tried to install WordPress on a Server 2008 box and the install just hung on step 1 of 7 Installing Update for IIS 7.0 FastCGI (KB980363) The problem is it attempts to run net stop iisadmin and if there are other services installed that depend on that (like smtp) it will wait indefinitely on the prompt asking if you want to stop those dependent services too. The solution is to manually run net stop iisadmin then find net.exe in the task list and end process (if you are still letting the webpi install run). You'll note that cancelling the webpi install also hangs. kill net.exe works for that too. Best way is to net stop iisadmin yourself before running webpi.
Check this out. - You know how on IE, you can't login to multiple GMail accounts at the same time? Well, this browser can totally do that.
- Ever wish you could consolidate the chrome and get more real estate for browsing? Well how about the menu bar, button bar and address bar all on one line?
- It doesn't have tabs, it's got super tabs. Ever try to view to pages at the same time when you are using tabs? These tabs are each in their own moveable resizable window!
- Compatibility? This browser is probably the most compatible browser you can get. And the developers are committed to it. More man hours are put toward this browser than any other.
- Like that lolcat picture? Click a button that appears over the image to save it to disk.
- And it has other sweet little touches, like you know how when you hit F11 on IE it leaves that stupid status bar at the bottom, leaving you to manually hide it and unhide it when you are done? This browser cleverly hides it automatically and unhides it for you when you are done with Theater mode.
- Price? It comes free with Windows XP.
- Not ready to try something new and untested? This browser has a bazillion miles on it. It's over nine years old. IE6. The best 9 year-old browser on the planet.
Back in February I got a 17" MacBook Pro. I'm not a big fan of Apple, but I got this because I wanted a 17" WUXGA display, like my old, and now stolen, Sony VAIO VGN-A190. Turns out, getting a machine with a display like that is kinda hard and the Mac really wasn't that high of a premium compared to others. I also got it because I wanted one machine to rule them all... that is, I didn't want to have to lug around a Mac and a PC so I can do iPhone development and .NET development. I had experience using virtualization software before, like VirtualPC, Virtual Server, VMWare workstation, VMWare ESX, so I kinda knew what those were like. I had heard about Fusion and Parallels, but I was used to getting my virtualization free. (I know VMWare isn't free, but those were at work.) I found VirtualBox and considered the problem solved. I ran that, but there were several annoying things about it and I ran into bugs. I really wasn't very happy with Mac OSX and I wasn't doing much iPhone development, so I spent a stupid amount of time and effort to set up BootCamp on my Mac so I could just run Windows 7 x64 with no brakes. Sigh. Even that had problems. I couldn't TruCrypt the Windows system partition, which was a big reason for doing that. Couldn't pair my Apple Bluetooth keyboard to it. Then, of course, the need to do iPhone development came back. I wasn't looking forward to migrating back to Outlook for email and using iTunes on Windows. The other factor was that I wanted to be able to run SharePoint 2010 on
my Mac. I upgraded to 8GB then found out VirtualBox wasn't gonna use it. I tried a crazy scheme where I booted Windows and ran VirtualBox to guest Mac OSX... yeah, that's not working. Had it worked, I would have spent even more time totally paving to run Windows 7 under TruCrypt with OSX in VirtualBox. Then I saw that MacSales was running a sale on Parallels v5, researched it and concluded, eh, for $50, I'll try it. I knew I couldn't keep running VirtualBox and BootCamp was too annoying. The Parallels Experience
I got the disc, put it in, entered in the obscenely long license key, it downloaded a newer version, installed and walked me though getting a new VM going. Very easy. I built a new VM using Windows 7 Ultimate x64. A minor hiccup was the Windows timezone was not set correctly. I think it got set to Mountain Time, not Arizona's most-awesome, immutable, daylight-consistent-time. I could have migrated my BootCamp partition (or just run it in VM) but I wanted to get back to a single partition world and, if it is going to be a Windows install I have to work in everyday, I'm going to spend the time to build it clean. This is probably my sixth Windows 7 install that I'll use everyday. It's not really that hard. A Freeway of Delight- Wow. Taskbar and the Dock are one. The start menu is right there! And I can Cmd+Tab across Mac and Windows apps! Double-click an Excel document from Finder and Excel launches! Launch Mac programs from Windows.
- Ooooh, coherence mode. My Windows apps are running in, uh, a window!
- Brilliant! I can always use Cmd+C and Cmd+V, even in Windows! It's so clumsy having to remember Cmd+C vs. Ctrl+C.
- Awesome. My %USER_PROFILE% folder points out to the Mac disk!
- Cruising through the configurations, man, this product is built by passionate+crazy smart people. Features like disk resizing with guest resizing... nice. The incantations and shenanigans you have to go through to do this on a "mature" product like VMware made me recommend a while ago to just make vdisks crazy big, always.... bigger than the host disk even. Now, I don't have to. Turns out, these are the crazy smart people behind Virtuozzo, the OS-layer virtualization system used by a lot of hosting providers.
- Heh, heh, heh. The features of Aero that I hate don't seem to work, but the ones I like do.
The Alley of Sorrow- Oh, my dream of keeping all my projects on the Mac side are dashed. Even after adding \\.psf\Home and the network drive mapped to it (Z:) to my Trusted Sites list and using caspol to make .NET trust them, I still can't really work with Visual Studio projects off the mapped disk or host sites using IIS from there -- I think this is due primarily do lack of ChangeNotification support. ASP.NET really wants to know when a dll or web.config changes. Visual C++ totally refused to build even a console project there. If I had one wish for a future feature, making this work would be it.
- Alas, I had to kill the beauty of Cmd+Tab across Mac+Windows because I needed to be able to use the function keys in Visual Studio. Boo.
- Minor hiccup: I set up another virtual machine to run Windows XP and IE6, because it is the most awesome browser! Anyway, running a second VM made things a little weird. I was expecting a second start button on the Dock, but instead I had to switch between them. Not a huge deal, given I was just going to run IE6 on the other VM, but the main thing was the networking totally didn't work when the VM came up the first time. Not sure why, but I could ping the gateway, but DNS didn't seem to work.
- I like the fact that I can access the Windows disks from Finder, but, it looks like that only works when the VM is running and didn't seem to work reliably. How sweet would it be if I could work with Windows disks anytime, but that, of course, would require Parallels include a full NTFS driver.
- The audio and video playback doesn't work quite perfectly, but given I run iTunes and surf mostly on the Mac side, this doesn't present a big problem for me.
- Another minor feature request: It would be nice if it could virtualize the iEye camera a little better. Allow all VMs to see it as hardware and the first to turn it on gets exclusive use of it until they turn it off or the VM is killed.
- I had this problem on bare metal too, but Aero seems to switch on and off. Sometimes, I'll have translucent window frames, other times opaque.
- I expect that when I shift+click a Dock icon for a Windows app, that it should launch a second instance. Heck, Parallels should add that for Mac apps. Ever try to run two instance of Calculator?
ConclusionParallels isn't perfect, but it is worlds better than any other virtualization product I've ever used. Is it as good as just dual-booting? No, for audio/video, but better for most everything else. Caveat
The big caveat to this review is that I have never used VMware Fusion. I will. VMware offers a 30-day trial version and I will try it. I almost never get trials, because I'm hardly ever ready to commit to starting the clock on them. But I will. Give me a couple of weeks and I will download and try Fusion and report back. If it turns out to be mega-awesome, at least I can get $30 back on their competitive rebate. You should try Parallels. They offer a 14-day trial, but, honestly, 14-days is just barely enough time to really evaluate it if you started right away. They don't seem to offer a competitive upgrade.
I wanted rounded corners, but with minimal fuss. I'm using border-radius and variants (-moz, -webkit, -khtml) which is great, except for on IE, but I found a DHTML behavior ( http://code.google.com/p/curved-corner/) that makes it so IE will appear to have these powers. The trouble is, I'm using SiteFinity which, like any good CMS, has these virtual folders that don't exist in IIS and url references to behaviors must be in the same directory. To fix this, I wrote a quick HttpHandler to all me to capture requests for htc files and serve them from any path. Here's the source: public class HtcAnywhereHandler : IHttpHandler
{
public HtcAnywhereHandler() { }
public bool IsReusable { get { return false; } }
public void ProcessRequest(HttpContext context)
{
FileInfo fi = new FileInfo(context.Server.MapPath("~/htc/" + context.Request.Url.Segments[context.Request.Url.Segments.Length - 1]));
if (fi.Exists && fi.Extension.Equals(".htc", System.StringComparison.InvariantCultureIgnoreCase))
{
context.Response.ContentType = "text/x-component";
context.Response.BinaryWrite(File.ReadAllBytes(fi.FullName));
}
else
context.Response.StatusCode = 404;
}
}So now I have an /htc directory where I really store my behavior but a request to /skljfsfcio/border-radius.htc will serve the /htc/border-radius.htc file. Yay. To make this work, you'll need to add an entry to the httpHandlers section in the web.config <add verb="GET" path="*.htc" validate="false" type="HtcAnywhereHandler, HtcAnywhere" /> Then you need to tell IIS to use ASP.NET for .htc files. Go to the web site properties, Home Directory tab, [configuration...], add an application extension to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll for .htc, Limit to: "GET", and turn off verify that it exists. The bummer for me was that in my html that border-radius.htc didn't end up working. Sigh.
It's true. I was pretty excited when I heard about a chance to ride
along with Carl Franklin and Richard Campbell of DotNetRocks.
It was a promotion put on by Telerik where one lucky victim from
each city would get to ride in the RV with them to the next city and
watch that show. Timeline: - Several weeks before -
heard about the RoadTrip on a
DotNetRocks episode. Went to the site mentioned, but there wasn't a
sign-up form yet. Set an alarm on my phone to remind me to check the
site daily.
- A couple of weeks before - The form was there. I
filled it in. I then told my wife about it and said that there was a
insignificant chance that I might win that. I then realized that this
was going to conflict with SqlSaturday in Huntington
Beach.
- Monday 4/19 - canceled plans to go to SqlSaturday.
- Tuesday 4/20 - Beta 2 of a certain smart phone OS broke camera support. Boo. Did take a pocket camera with, but didn't take many shots with it.
- Friday
4/23 - went to the DotNetRocks RoadTrip event in Phoenix. Got there
right at 6 PM. Chatted with Richard and mentioned how cool I thought the
RoadTrip ride-along was. He said, "You should go." - They were going to
pick me up on Saturday. I texted my wife. I found it rather hard to
concentrate during the event.
- Saturday 4/24 - Carl and Richard
drove the RV to my house, around 11 am - crazy - got onboard and away we
went. Bound for Houston, some 1100 miles away. They opted for driving
straight through. Chatted their ears off probably. We jury-rigged the PA speaker to a MP3 player so we could listen to old episodes of Mondays on the drive.

- Sunday 4/25 -
Pulled in to Houston around 9 am. Around 20 hours with the time
difference. Got a little sleep in the RV and a little more at the hotel
after going for a walk. Later Richard, Tom (driver) and I met up with Zain Naboulsi (MS Dev
Evangelist) for dinner and had some spirited discussions over a great
dinner. Then just hung out with Richard for a couple of hours chatting
about techie nerdy stuff.
- Monday 4/26 - Met up with Dustin
Campbell and had really great sushi with everyone. Totally geeked
out with Dustin about languages and Visual Studio. Then we went to the
MS office, setup and they did the show. It was kinda neat to see them do
a second show. Did a video
interview with Todd of Telerik about the
experience and we discussed some of the cool stuff in SiteFinity 4.0 CTP. Then we went back to the hotel. Sadly, the experience was
over. Got about 2 hours of sleep then took a cab to IAH airport and got
on my early flight back to PHX.

Really a great time. Thanks
Carl and Richard and Thanks Telerik!
While the pundits (no, not me, the other pundits) argue about whether Apple is trying to protect their delicate users from the chainsaw gangs of Flash apps or if Adobe is now being beaten like an LAPD cop killer because of some ancient grudge, I'm thinking that their may be a whole 'nother reason: It is step one on the road to killing the Mac. Why kill the Mac? Easy. Jobs can only make money on hardware and a little bit on their own software, but he wants the 30% on everything like he's getting on the iPhoneOS side. Can't lock down the Mac and setup an app store on it now, so it must die. In order to kill the Mac, you'd need to be able to do everything you can do on a Mac on a iPad (well, except for development -- screw you developers!) Replace my Mac? Yep. Get iWork on the iPad and a bluetooth keyboard. Oh, you want a bigger screen and everything. Ok, what about a 15" iPad Pro that folds up like a laptop with a built-in keyboard and multitouch trackpad/display. MacBook Air-like dimensions with a full day's battery life. Oh yeah, and you can sync it directly to your iPhone.  What more do you need pointy-haired boss? Pointy-haired boss wants a corporate dashboard application on his iPad with notifications... pronto! The one kind of development Apple does want is iPhoneOS development. What if there was an app available for free in the app store that let you design your UI, kinda like you do in Interface Builder now, and let you write code. When you're ready to test, you click build, the code goes up to Apple, is compiled, packaged, signed and comes back to your iPad ready for you to test and debug. When you are satisfied with the results, click Publish and your app is in the App Store, ready to be enjoyed by all fartapp-aficionados. Ah, but how can that work if you are doing stuff like Corona, MonoTouch or CS5. And so 3.3.1 had to be changed. So, specifically, my predictions are: * iPad Pro - Ives will twist his hands and say that they completely rethought the portable computer and voila, iPad Pro w/ laptop style and a second touch-display that acts like a trackpad - the whole package suitable for authoring applications - at the same time, Steve will declare that they listened to you and now you can own and use an iPad and iPad Pro without iTunes and you can sync your iPhone to your iPad Pro. * iPad XCode - Integrated Development Environment on the iPad Pro for authoring apps for the appstore. Maybe free, maybe $49. But it won't include a compiler or code-signer. Your source will go to Apple to be compiled, signed, versioned, scrutinized and approved. * Mac languish - only minor hardware improvements - Snow Leopard is the last Mac OS - security problems go unfixed and just become justification for the glorious iPad Pro. Every move they make will be to reduce the need for people to buy Macs. The net effect is Steve gets his 30% on everything.
Wanted a generic way to pass a DataTable as a parameter to SqlCommand as a TVP (Table Value Parameter). It automatically creates the, IMHO, superfluous User-Defined Table Types. Here's what I have so far:
<Runtime.CompilerServices.Extension()> _
Sub AddTableParameter(ByVal cmd As SqlCommand, ByVal n As String, ByVal dt As DataTable)
Static typeXlat As Dictionary(Of System.Type, SqlDbType)
If typeXlat Is Nothing Then
typeXlat = New Dictionary(Of System.Type, SqlDbType)
typeXlat.Add(GetType(Int64), SqlDbType.BigInt)
typeXlat.Add(GetType(Int32), SqlDbType.Int)
typeXlat.Add(GetType(Int16), SqlDbType.SmallInt)
typeXlat.Add(GetType(Byte), SqlDbType.TinyInt)
typeXlat.Add(GetType(SByte), SqlDbType.TinyInt)
typeXlat.Add(GetType(Boolean), SqlDbType.Bit)
typeXlat.Add(GetType(String), SqlDbType.VarChar)
typeXlat.Add(GetType(Byte()), SqlDbType.VarBinary)
typeXlat.Add(GetType(DateTime), SqlDbType.DateTime)
typeXlat.Add(GetType(DateTimeOffset), SqlDbType.DateTimeOffset)
typeXlat.Add(GetType(Char), SqlDbType.Char)
typeXlat.Add(GetType(Single), SqlDbType.Real)
typeXlat.Add(GetType(Double), SqlDbType.Float)
typeXlat.Add(GetType(Decimal), SqlDbType.Decimal)
typeXlat.Add(GetType(Guid), SqlDbType.UniqueIdentifier)
typeXlat.Add(GetType(Xml.XmlDocument), SqlDbType.Xml)
End If
'assembly the typename and spec
Dim tabletypedef As New List(Of String)
Dim parm As New SqlParameter(n, SqlDbType.Structured)
parm.Value = dt
For Each c As DataColumn In dt.Columns
Dim s As SqlDbType = SqlDbType.Variant
If typeXlat.ContainsKey(c.DataType) Then s = typeXlat(c.DataType)
tabletypedef.Add(c.ColumnName + " " + s.ToString)
Next
Dim tabledef = String.Join(",", tabletypedef.ToArray)
Dim typename = "autotype_" + tabledef
parm.TypeName = "[" + typename + "]"
'create the type if needed
Using cmd2 = New SqlCommand("select count(*) from sys.types where is_table_type=1 and name='" + typename + "'", cmd.Connection)
If cmd2.ExecuteScalar() = 0 Then
cmd2.CommandText = "create type [" + typename + "] as table(" + tabledef + ")"
cmd2.ExecuteNonQuery()
End If
End Using
'add the parm referencing the typename
cmd.Parameters.Add(parm)
End Sub
Please, take a moment and read
this article about plagiarism. If you have a blog or twitter account, please link to the article, not to me. Thanks.
We have a client that has a WSS3 install with a single site, but wants to start creating sites for each functional group inside their organization. The bummer was WSS3's search was limited to a single site. Well, we could just replace it with Search Server 2008 Express, but that runs over SQL Server 2005 Express and is limited to 4GB on the databases so it would be a hassle to manage when it gets big. The answer is to use both. Here's the steps to make a test environment for this from scratch: - Make a virt using Windows 2003 R2 w/ SP2
- Add web server role
- Windows Update
- Install WSS3 w/ SP2 which gets me the Window Internal Database (not limited to 4GB) for SharePoint content.
- Let the Configuration Wizard do its magic.
- Install Search Server 2008 Express
- Let the Configuration Wizard do its magic again but don't let it replace your WSS3 site - tell it to make a new search site on a random port.
- Turn on the "Office SharePoint Server Search Web Parts" site collection feature on the WSS3 site
- Install SharePoint Designer 2007
- Open the Search Server site's /results.aspx page
- Save as to WSS3 site as /results.aspx (with Don't save for the images/css junk)
- Add a Search Box webpart to the /default.aspx page of your wss3 site setting the "Target search results page URL" to /result.aspx
To test, I created a subsite and uploaded a sample document to a doc lib there (/inetpub/wwwroot/iisstart.htm) - let a crawl happen then searched from the root site for the word "Construction". Now to tune this a little better, you might want to set the memory limits on the two instances of SQL running on this box now (MICROSOFT##SSEE and OFFICESERVERS). My understanding is that SQL server is super memory greedy, but the express and WID versions are less so but they still will probably push at each others memory causing them to drop cache buffers and page out IIS, ASP.NET and SP core stuff, so better to limit them. I did this by creating the following text file (sqlconfig.txt): EXEC sys.sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDE GO EXEC sys.sp_configure N'max server memory (MB)', N'256' -- <== mod this value to around 1/4 of installed memory - 1024 max GO RECONFIGURE WITH OVERRIDE GO EXEC sys.sp_configure N'show advanced options', N'0' RECONFIGURE WITH OVERRIDE GO
Then I ran this from the command line: sqlcmd -S localhost\MICROSOFT##SSEE -E -i sqlconfig.txt sqlcmd -S localhost\OFFICESERVERS -E -i sqlconfig.txt
|