Blog

  • Self Signed SSL Certs

    I’ve always hated creating self-signed SSL certs.  It never seemed like there was a good and easy way to accomplish this.  Yes, you could download the II6 Resource Kit, but that’s just one more thing I don’t need on my machine.

    Well, in IIS7, there is actually an option to automatically create one.  Technet has a good walkthrough of it.  However, there are some limitations:

    • The common name is always the machine name of your IIS server.
    • The certificate is only valid for one week.
    • The certificate is not added to the “Trusted Root Certificate Authorities” of any browser.

    Thankfully a remake of SelfSSL was created for IIS7 and it is more powerful, and easier to use.   Take a look at Thomas Deml’s post on it to see the syntax and download the program.  I’ve also uploaded it here, just in case anything happens to that site.

    SelfSSL7

  • More Visual Studio 2010 Performance Testing "Fun"

    This is a continuation of my previous post on the half-baked core features of load testing in Visual Studio 2010.  We had been progressing fairly well, but with some of the new fixes that have gone into the application, we have reached new issues.

    I would like to preface this with our application is by no means great.  In fact, it is pretty janky and does a lot of incredibly stupid things.  Having a 1.5MB viewstate (or larger) is an issue, and I get that.  However, the way that VS handles it is plain unacceptable.

    With that said, I’m sure you can imagine where this is going.  When running an individual webtest each request cannot be larger than 1.5MB.  This took a bit of time to figure out as many of our tests were simply failing.  The best part of this is that we have a VIEWSTATE extract parameter (see #1 on the previous post), and the error we always get is that the VIEWSTATE cannot be extracted.  Strange, I see it in the response window when I run the webtest.  Oh, wait, does that say Response (Truncated)?  Oh right, because my response is over 1.5MB.

    Oh, and that’s not just truncated for viewing, that’s truncated in memory.  Needless to say this has caused a large amount of issues for us.  Thankfully, VS 2010 is nice and you can create plugins to get around this (see below).  The downside is that VS has obviously not been built to run webtests with our complexity, and definitely not bypassing the 1.5MB sized response.

    public override void PreWebTest(object sender, PreWebTestEventArgs e)
            {
                e.WebTest.ResponseBodyCaptureLimit = 15000000;
                e.WebTest.StopOnError = true;
                base.PreWebTest(sender, e);
            }
    

    If you use this plugin, be prepared for a lot of painful hours in VS.  I am running this on a laptop with 4GB of RAM, and prior to the webtest running devenv.exe is using ~300MB of RAM.  However, during the test, that balloons to 2.5GB and pegs one of my cores at 100% utilization as it attempts to parse all the data.     Fun!

    The max amount of data we could have in the test context is 30MB.  Granted, as mentioned earlier, this is a lot of text.  However, I fail to see how it accounts for almost 100x that amount in RAM.

    Thankfully, in a load test scenario all that data isn’t parsed out to be viewed and you don’t have any of these issues.  You just need to create perfect scripts that you don’t ever need to update.  Good luck with that!

    Oh and as an update, for #3 in my previous post, I created a bug for it, but haven’t heard anything back.  Needless to say, we are still having the issue.

    And I realize that we’ve had a lot of issues with VS 2010, and I get angry about it.  However, I want to re-iterate that no testing platforms are good.

     

  • Windows Home Server 2011 Released

    I was poking around on MSDN, and noticed that WHS 2011 actually went live sometime last month.  Well, you know what that means…time to upgrade!  Unfortunately, there isn’t really an upgrade path, as you need to backup and then restore all your data.  Thankfully, since my instance of WHS is virtualized, no need to do all that work.  Instead I just bring up a separate virtual machine, and then copy the data over.

    I’m sure that I’ll run into issues and various other items.  As I do, I’ll be sure to share them here, so keep an eye on this space.

     

  • A Better Backup Plan

    For the longest time, I’ve been using Carbonite as my backup provider.  I can’t say that I was ever really unhappy with it, but I was hoping to find something better as my yearly subscription was expiring.  Some of the issues I was trying to move away from:

    • As was previously mentioned, I have a WHS machine and getting Carbonite to work correctly with it wasn’t as easy as I had hoped.  Since Carbonite wouldn’t follow the tombstone files, I was forced to have my system as a single drive configuration.  Not all bad, and since it was virtualized anyways, it didn’t matter.
    • The UI is very slow.
    • While you can backup an “unlimited” amount of data, somewhere around 50-100GB they start to throttle you significantly.  When I recently added our wedding photos (11GB), it was going to take over 4 days to just add the incremental amount.
    • Very vanilla without many options.

    I hadn’t really been shopping around, but when Mozy announced their pricing changes, it sort of peaked my interest to look around again.  I had heard about the Mozy price changes over at TechCrunch, and was reading in their comments about where the various people were flocking to now.  That’s where I found out about CrashPlan, or at least I thought I knew what it was all about.

    Well, my Carbonite plan has about 2 months left on it now, and since I have a fair amount of data to backup (just over 200GB), I figured now was the time to make the move.  I mean, since I had based my upload figures on Carbonite’s speeds, that should just about cover the amount of time.

    And man, am I glad I moved!  There are so many awesome features in CrashPlan that not only am I going to be using it, I’m going get others in the family to use it too.

    First, just like Carbonite, I can pay to have my data up in the cloud.  There are a lot of similar items to Carbonite, but there are some nice advanced options:

    • Easily select which folders you want to upload – Same for both
    • Runs as a service, so you don’t have to be logged in – Same for both
    • Personal Encryption Key – Same for both
    • Follows junctions and tombstone files – Only CrashPlan
    • Can rent a 1TB drive to seed the initial upload (didn’t use, but nice option) – Only CrashPlan
    • Backup sets to have different backup intervals – Only CrashPlan
    • Backs up all file types (unless excluded through filter) – Only CrashPlan
    • No throttling, but can specify client side throttling based on multiple factors – Only CrashPlan

    Mind you, those are just for the basic items that Carbonite offers (did I mention CrashPlan is cheaper too?).  However, CrashPlan also has a ton of other features in case you don’t want to upload to their cloud.  The best part?  If you don’t use the cloud services, you don’t have to pay for it.

    This is a great feature for those that have a lot of storage in an always-on system and want to make a private cloud solution for family members.  It is actually something I’ve been trying to find so that my parents have a trusted cloud-based backup solution on my hardware.

    The even better part?  Based on my testing with my work laptop, it just works!  I have a fairly complex networking structure at home, and while in the office, my laptop was able to connect and start backing up with no issues.  The only difference between what I did, and what my parents will need to do is create an account and “link” it to mine with a backup code that is unique to me.  From there, it starts to sync and they are off to the races.  I can specify a quota for them server side too, so it doesn’t go crazy.

    Overall, I wish I had migrated earlier.  I definitely don’t feel bad in moving away from Carbonite, now that I’ve actually played with the software.  It solves all my initial issues, plus solves an ongoing problem I’ve been trying to fix.  Definitely a huge plus!  In fact, based on my experience, I would definitely consider their business service for an initial startup.  Just sayin’.

  • "Fun" with Visual Studio 2010 Performance Testing

    As I am sure you can tell from the title of this post, we have been having nothing but issues using Visual Studio 2010 on the current solution we are performance testing.  While this is going to be a bitch session, with possible solutions and workarounds we have found, these issues are in no way limited to only Visual Studio.

    As one of my coworkers said, “I’m learning that every load testing solution is shit.”  Sadly, the more you work with them, and the more complex the solution, the quicker you come to this realization.  This becomes even more clear as we are expected to bounce around between different performance testing solutions, being pseudo-masters on a smattering of them.  While it is expensive, outsourcing to someone like Keynote may possibly be the best answer (I have used and work with these guys before, and they are great).

    Without further ado, let me breakdown the issues we’ve been having so far.  I really, really, really hope that this list doesn’t continue to grow as we are already running out of time.

    1. Scripting.  We had a bear of a time with scripting our specific website.  No matter what we did, there was no way to get it to actually work by scripting it with Visual Studio.  The website in general is fairly basic, but is loaded up with a ton of Telerik controls per page (don’t even get me started!).  Each stage of our workflow has a bunch of these controls and then a final submit button that moves it into the next stage.  Scripting with VS always failed on the subsequent AJAX postbacks because it was not correctly parameterizing the values (wasn’t extracting some).  However, this only happened when we scripted all the way to through the final submit.  If we scripted, but did not include the final submit button, the script worked correctly and did not have any of the errors.  Since the Telerik controls have so many forms in the post fixing the parameterization issue by hand would’ve taken hours per page (each workflow has 7 pages and there are 17 workflows).  And we couldn’t figure out how to simply wire up the final submit to the working rest of the script.  No matter what we did we’d always get errors on the final submit POST.  The solution?  Use Fiddler and save the sessions as a webtest.  This has a lot of downsides, such as no parameterization at all and the scripts break pretty easily once any code changes.  Fun.
    2. Load Testing Workflows with NTLM Authentication. The next issue we ran into was with wiring up the individual workflow pieces into one large workflow.  The breakdown was that each part of the workflow needed to be handled by a different user, and the users would log in via NTLM.  The most obvious way to do this was to have a webtest call another webtest.  However, we weren’t able to get that to work.  The next way was to use an ordered test, but that didn’t give us reports into individual page loads.  The final way was to create a load scenario that runs scripts in a specific order, but that would require a lot of controllers among other things.  In our desperation, I even created an MSDN question.  The solution?  We created a plugin that cleared the user’s cookies (even though it should’ve been running as a unique user 100% of the time), and also accessed a server redirect page to force the authentication request.  Thankfully we didn’t go down the road of rolling our own queuing system as that would’ve been painful.
    3. Lack of Test Logs after a Run. Now that we were actually able to run tests, we were having all sorts of issues with results.  Sadly, we weren’t able to actually view the results because VS wasn’t saving them.  Again, in desperation I created another MSDN question.  With VS2010, you are supposed to be able to capture all the results of failed tests, and the select “Test Log” to see what the results are.  Unfortunately, when we run tests it sometimes shows up, and sometimes not.  However, for anything longer than a 15 minute run, ours were 60 mins, we never received any results.  We also get links to the “Test Log”, but they don’t do anything when you click.  The solution?  Yeah, as of now we don’t have one other than running two controllers: one running the full load and another one running individual tests to hopefully see a similar error message.

    I can only hope that there are no other issues.  Hope, hope, hope!

     

  • Amazon Customer Service

    After reading the Zappos book, and hearing mixed things about Amazon customer service, I finally had an issue that I needed to actually call them.  Now, I’ve used their online returns before, and have never had an issue.  However, on my trip to PVR this weekend my Kindle’s screen cracked.

    It was working fine on the plane, and then I put it back in my bag.  However, when we arrived at the house, and I went to go lay in the hammock, I flipped it on and Bam!, Etch a Sketch screen where only some of the sections worked.  Needless to say, I was a sad panda since I wasn’t able to use my Kindle the whole time there.  Plus, I was worried that I wouldn’t be able to have it for when I fly back to SIN on Sunday (man I fly a lot).

    Anyways, I digress.  As I’m now back in the States, I gave Amazon a call this morning.  Barely any wait time later, Renee greeted me and helped me through the process.  Since I didn’t have an order number (it was a gift from Yow-Yow), I gave her my email, name, and address for verification.  She then asked what was wrong, if the screen was physically cracked or not, and then the normal questions:

    • Did the Kindle take any tumbles recently?
    • Has there been any pressure on the Kindle recently?
    • Has it been exposed to liquids or water?

    Thankfully none of them applied to me, as it was just sitting there in it’s protective covering.  I then asked if I could have it next day, and would be willing to have it shipped faster (I need my Kindle in SIN).  She said that it is complimentary 1 day shipping and I’ll have it tomorrow!

    So tomorrow, I should have a functioning Kindle again.  Talk about a painless process!  Mad props to both Amazon and Renee for making my morning!

    Update:

    New Kindle did arrive on Friday as promised, and it works great!  All my books have been transfered and things look a lot better.  Just in time for my flight too!

  • Easy XPath Queries

    A guy in the office was asking about a better way to do XPath queries.  Well, since everyone uses Notepad++ (right?!), you can use the following plugins.

    XML Tools

    Libraries

    Restart NotePad++ and checkout the Plugin menu.  Under XML Tools there is now an evaluate XPath Expressions.  Very handy!

  • Ninite

    I know that I previously posted about the various pieces of software I installed on each rebuild, but I was just pointed out to a piece of software that basically does everything for you: Ninite.

    As I look through my list, and compare it to their app, it looks like I only have a few outstanding apps.  Granted, I don’t really care about getting all the apps installed or how long it takes.  Usually I don’t even remember until I need the app and it isn’t there.  Regardless, could save someone some time.

     

  • Large File Transfers

    One of the problems I know I’ve had in the past, especially at work, is transferring large files between two places.  Usually this happens with virtual machines, and developers needing access to the originals.  There has never been a good way around this.  I’ve tried various things: FTP, Dropbox-esque cloud sites, sneaker net, etc.

    However, I stumbled upon a new site that is doing things a bit differently.  Basically their system just maximizes the route between two endpoints and then you send the file directly.  Obviously this isn’t a good choice for upload once, consume a lot items, but if you just need to get things sent once, it could work pretty well.

    The site is called Sendoid, and they have both a web and desktop application.  Looks pretty basic and worthwhile.  I haven’t tried it yet, but it could also work well for distributed backups (house my files on someone else’s computer like my parent’s).