Sergio and the sigil

Please open my .aspx fast

Posted by Sergio on 2008-11-22

Still in the topic of performance, I'll throw a little freebie. Visual Studio seems to take an inordinate amount of time to open .aspx files for the first time. I noticed that the status bar read "Initializing toolbox..." for a long time. I'm mentioning .aspx but it really applies to any other webforms markup like .ascx and .master as well.

Heck, I don't even have the toolbox loaded, docked, or hidden in my IDE. I don't use the toolbox at all for web develoment. I'm more of a source view kind of programmer. So why should I be penalized like that?

I shouldn't. Here's what I did to speed that up:

  • Show the toolbox
  • Right-click and select "Choose Items..."
  • Uncheck every item that the namespace contains "Web" (I also unchecked controls that I can't stand, like the database connections and data sources.)
  • Click OK to save that, close the toolbox again and enjoy your precious stolen time again.

Sluggish Windows in VMWare Fusion - Solved

Posted by Sergio on 2008-11-22

I've had my MacBook for over 2 years. Initially I avoided installing virtualization or even BootCamp to run Windows. I was forcing myself to adapt to OS X, get out of my comfort zone, and learn more about that different environment. The mac was also my Ruby On Rails development machine and I wanted to keep Visual Studio out of it.

After one year, I decided that the hardest phase of the learning process was long gone and I installed VMWare Fusion (version 1.something - don't remember) and Windows XP with Visual Studio. I also bumped up my RAM to 2Gb.

Using Visual Studio inside a VM on a mac was a surprisingly viable alternative. I could have all the mundane applications like web browsers, email clients, IM, Twitter, word processors, etc, be mac applications running in the host and leave a very spartan Windows installation with just the minimum required software.

Enter Fusion v2.0. I honestly don't know at what point things started going downhill. More or less around the same time, maybe 4 or 5 months ago, I applied XP SP3, upgraded Fusion to 2.0, and installed VS2008 SP1. I don't even remember what order I followed anymore. I just know that my Windows VM became almost unusable. I'd click and wait. Visual Studio was so unresponsive that I would prefer to terminal in to my desktop Vista and work like that instead of the VM.

Today I had some time to get back to this problem and do a little googling on it. After a few not so useful hits, I landed on this forum posting that got me back on track.

I still don't know if all my messed up settings were done by yours truly, trying to solve the problem and making it worse, or by the Fusion upgrade. For now I'll assume it was me. Here's what I had to change.

  • Give less memory to the VM. This seems counterintuitive, but I had divided the RAM 50/50 between OS X and the VM. I reduced the VM to around 820MB.
  • Use only one virtual processor. I have a dual core processor but virtualizing only one seems to ensure the host always has at least one entire core to do the housekeeping.
  • Optimize for Mac OS. Mine was optimized for VM. Probably done by myself with the best intentions in the world.
  • No sharing of any applications. I just don't need that. Gone.

Several people on the forums mentioned reinstalling the VMWare Tools. Mine had installed/upgraded fine before so I didn't touch that.

With all these tweaks in place I'm again a happy camper and stopped making plans to buy one of the new MacBook models that support more than 2GB. Performance is back to it's Fusion v1.x days and that's all I was asking for.

Don't be sloppy in your scripts

Posted by Sergio on 2008-11-14

For a few weeks now, every time I try to logoff from my home banking website something bad happens. See screenshot below.(screenshot eaten by backup failure.)

  1. Firebug opens unexpectedly
  2. There's a frigging debugger; statement in the live production site
  3. The logoff process hangs until I press F8 in Firebug or the continue button
  4. All my information is still on the screen. Imagine if I had just clicked Sign Off and left my desk.

When I saw this for the first time I though: wow, some developer will be slapped for that (actually there are some developer names in the file,) but it seems that nobody else has a debugger enabled or they just hate their clients that are also web developers. The "bug" has been there for at least 2 weeks now.

Even if you don't care for customers that happen to have a debugger like myself, leaving that kind of thing in your production environment immediately projects an image of sloppiness that is the last thing I want to have with my home banking.

Update 11/24/2008: That script was fixed sometime over this past weekend.

Video - The Langston's Ant

Posted by Sergio on 2008-11-14

Remember one recent post when I talked about the Code Kata that I attended? Well, Micah prepared a screencast version of that Kata and that video is now available.

It's a short screencast (14') and even if Ruby is not your cup of tea, it's interesting to watch BDD being practiced.


Langston's Ant in Ruby Kata from Micah Martin on Vimeo.

Video - Core, an AOP Framework

Posted by Sergio on 2008-11-07

Wow, that took a long time to be published, but here it is. This video was recorded during the October's meeting of Chicago ALT.NET that happened almost just about a whole month ago.

The video shows Josh Heyse demonstrating and explaining the works of the AOP framework called Core. What the video doesn't show is who's that voice that also knows a lot about Core. That would be Anthony Green, who developed Core with Josh.