Archive for August, 2012

Cannot delete file in Windows 8

August 30th, 2012

Yesterday I had a file on my desktop that was an ISO that I used to install SQL Server 2008 to my machine with, I was pleased to see that Windows 8 can just open iso’s now and allow you to install out of them, very nice.  But when it came time to delete this 3GB file I had on my desktop, no dice.  I tried giving myself full access to the file using the administrator account, wouldn’t allow it, I tried going the command route (Admistrator Mode), nothing, I finally had to reboot win 8 in “Safe Mode” and that allowed me to delete this file, so if you come across a file that won’t delete, I have outlined the steps below to do this:

1. First reboot your system to safe mode, you can do this by either holding down shift and pressing F8 on boot or you can do a Windows+R and typing in msconfig, then go to the boot screen and check “Safe Boot” like so:

Once you click on apply it will ask you to restart and when it comes up you should be able to delete this file.   I hope that Microsoft comes out with a service pack or an update to fix this issue as its very annoying.  I hope this helps someone.

Another Windows 8 annoyance

August 29th, 2012

If you are a power user like me you do a lot of work with files on your system and here recently in my windows 8 adventures I have noticed a little feature that is turned on by default that I really didn’t appreciate. It cost me a little time today and had me scratching my head and that is that file extensions are hidden by default. For anybody out there wondering where you can show them again, just simply open up file explorer and in the view ribbon you can check the box for “File Name Extensions”, that will show them again and not have you beating your head against the wall wondering why your files are not the types you thought they were :).

Getting a 404 error with Less CSS and ASP.net

August 27th, 2012

I came across the LESS library found HERE, this library allows you to basically condense your css using variables and other nifty little things like javascript syntax to get your css down to a very manageable and easy to read file. Well, if you are using ASP.net you will get a 404 when you try to load it and that basically happens because the IIS server doesn’t recognize the less file type so you can either add the MIME type to your IIS MIME types or you can just add the entry to your web.config like so:

<system.webServer>
    <staticContent>
      <mimeMap fileExtension=".less" mimeType="text/css" />
    </staticContent >
  </system.webServer>

Microsoft doesn’t really provide help (or has really poor forum support)

August 24th, 2012

I have been working on a Windows Azure web project and I got the website looking pretty decent in a web browser so I thought I would try to start getting it formatted for an iPad.  Well in order to do that the only good way to see the changes is to run a simulator, well, that is turning out to not be perfect cause it can’t simulate things like going portrait and some other things that only a native IOS application can do.  I found out about a tool called Adobe Shadow, you can find out more about it HERE.  Its basically a tool that will allow you to display a webpage on multiple devices like Kindles, iPhones, iPads and many other devices over your local network.  While this may not even be possible in a local environment, I would have appreciated at least some kind of response saying so, instead what the moderator did was go ahead and mark another clarifying statement as the answer, so much for tech support from Microsoft, I guess you are out on your own, I have the link below to let you see the response I got from Microsoft about this issue

http://social.msdn.microsoft.com/Forums/en-US/windowsazuredevelopment/thread/6f0da687-c477-4ead-98a2-b9f0bc94bbbc/

Retrieving the COM class factory for component with CLSID {EC413D66-6221-4EBB-AC55-4900FB321011} failed

August 23rd, 2012

I was getting this error in Visual Studio 2012 when I tried to run a project that has the Sync Framework 2.1 referenced in it.  Apparently even on a 64bit system like mine you have to install the x86 version of Sync Framework to work correctly with Visual Studio 2012.

Windows Identity Foundation won’t install on Windows 8

August 22nd, 2012

I was trying to install Windows Identity Foundation on my new Windows 8 machine and I was getting a certificate error with Windows Updates with 0x80096002 which apparently is a problem verifying trust signatures.  This error helps none, but what it should say is that Windows Identity Foundation is included in Windows 8 now and all you have to do is go into the control panel and turn if on through ‘Turn Windows Features on or off’, hope this helps.

My take on Windows 8

August 22nd, 2012

Well, in my last post I was pretty hesitant about installing windows 8, especially on my development machine, but my overall initial impression on it at this point is good, although it does have a few little annoyances that I am not particularly fond of.

The installation process was pretty fast I have to admit and so far all of my applications are working just fine, photoshop, dreamweaver, TortoiseSVN, Git, which was really nice to see.

Shutting down is kind of a pain, I will need to look into seeing if there is a shortcut key to shut it down fast, but for now  you have to hover your mouse down in the right hand corner and then click on Settings->Power->and then click on ‘Shut Down’.  That is far too many steps for a desktop, but nothing big to complain about at this point.  The biggest annoyance for me at this point is the weird transitioning between the Live Tile screen and the desktop.  The worst experience for me so far is the Messenger app they have on here, I got full screen with that and I am not sure how to get out of that at  this point, surely there is a way.

The file copy routine was one of my biggest gripes about Windows 7 and from what I am seeing with Windows 8 its at least 40% faster, just from what I am seeing, I haven’t actually clocked it or anything, just what I saw from my backing up on windows 7 and then doing the same backup on windows 8.  Overall I am happy with the new OS, its not the best thing since sliced bread, and I wouldn’t upgrade if it wasn’t free for sure.  Also, a word of advice is to learn the keyboard shortcuts, or print out a list, HERE is a link.  Feel free to ask me questions and I will try to answer them or find an answer for you, hope this helps.

Should I upgrade my laptop to Windows 8??

August 20th, 2012

Well, another windows release is upon us and all the buzz is ablaze again over this new shiny version of Windows.  So I had to ask myself if upgrading my development laptop would be a smart move at this point, currently I am running Windows 7 and I have to admit, it is getting rather clunky at this point (I have yet to do a format since Win 7 came out).  As with any new OS, you have to weigh the pros and cons of making such a move and see if it truly does make sense to make such a move, as this is the foundation of everything you do with your computer.

Pro: Windows 8 works well with the cloud and syncing to Windows mobile devices, too bad I have no windows mobile devices and I don’t plan on getting any either (Who really uses Windows Mobile devices at this point really?  Apple has the majority of the device share out there and then android, I can get a windows phone, but the apps available for it are pretty scarce at this point)

Con: Windows 8 is designed for tablets, I have a laptop, probably wouldn’t be a good idea, for a tablet that is fine, but for my laptop, it would suck.  The immediate first action is to turn it back into Windows 7.

Con: I have a lot of legacy software that I use for various tasks that HAS to work or stuff just won’t get done.  Take SVN for example, I can’t be sure there will be a version available for it for Windows 8 and I am not too fond of running development in a VM myself.

Con: How buggy is Windows 8 going to be?  As with just about every Microsoft product I have ever seen, there will be bugs.

Pro: Windows upgrade is much improved, which is nice, but doesn’t really matter if stuff doesn’t work, lol.

Con:  There are rumors that Windows 8 will block or severely limit 3rd party browsers like google chrome or mozilla firefox, look HERE.  This looks to be only on the ARM version at this point, so that won’t effect what I am doing but can you say ANTITRUST??

Before you make the move to Windows 8, install this to see what software on your machine will/won’t work.  Below is the results of this tool on my machine, the big ones that stand out to me are the issues with SQL server as our company needs to support those for a while so the only answer would be to run those within a VM, here is the link to that issue here:


I believe I will take a “Wait and see” approach on this OS for now, way too many questions for me at this point, especially with my work PC.

UPDATE — It looks like my machine has gotten some malware attached to it recently and has caused the firewall to just stop working as well as the performance has just really been declining to the point of dragging, so I have decided to install Windows 8 instead of reinstalling  7.  I figured I might as well start learning the new OS and it looks like the issuew with SQL server are minimal, all I need is to make sure that I have the latest service pack and I am good to go.

WebMatrix 2 Beta is pretty busted…

August 16th, 2012

I didn’t really want to install the webmatrix2 product from Microsoft but I wanted the iphone and ipad simulator cause if you are like me, you don’t have a few hundred bones laying around to buy an ipad.  So I learned from the company that made the simulator that they have put it on the gallery for install with webmatrix, fine, you can read about that here: http://www.electricplum.com/.  All I wanted was the simulator but I can’t get that unless I download the matrix tool, which I did and after a reboot I fired up webmatrix and found that I cannot get the tool until I create a site in the tool and then go into that gallery to get the tool, certainly a lot of hoops if you ask me just to get a tool, but I wanted the tool, so I tried to create a site.  When I try to create any site with webmatrix I get this error:

Every blog or forum I have seen online is telling me to reinstall IIS and WebMatrix, which I do not really want to do at the moment cause I am in the middle of Azure development and I don’t want to mess my environment up, not to mention I really didn’t want this tool to begin with.

JQuery lesson for the day.

August 15th, 2012

Have you ever been deeply nested in some html and need to call out to a parent nested way up many more levels? Well, typically in jQuery you would have had to do something like this $(“#selector).parent().parent()…etc. Well, I thought I would share an interesting little function I found today, the parents() function, I have an example below.

$("#selector").parents("#selectorToFind");

As you can see, all you have to do is feed it the selector, “selectorToFind” and it will traverse up the tree and find the element that I am looking for.