Posts Under Microsoft Category
Test IE versions on any machine!
Do you do web development and are unable to test your software in old shitty versions of Internet Explorer? If so then you may want to read on a little bit. Microsoft has got a whole bunch of virtual images you can download for FREE(not a usual Microsoft word) over here: http://www.microsoft.com/downloads/en/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en They contain an operating system and an install of your favourite IE version! Hooray! They have IE6 on…
IE6 PngFix in Javascript
As a web developer you will know just how much we all love hate Internet Explorer 6 – one of the most dreaded browsers and browser versions that still exists in the deep dark corners of the interwebs – and you will probably have figured out that it doesn’t play well with PNG images. So here is how you can resolve this problem. It’s not as nice as an actual…
MSSQL Select Not Null
I mainly use MySQL these days, so get screwed over for a few minutes when I have to do something in MSSQL that is slightly different when it comes to it’s custom syntax. If you want to show all entries in a specific column and where it is not Null then you can do the following: SELECT [columnNameHere] FROM [databaseNameHere].[dbo].[databaseTableNameHere] WHERE [columnNameHere] IS NOT NULL
Why we don't choose MSSQL!
Everybody always raves how great Microsoft SQL Server is, and how much data it can hold, and how much bigger it’s “package” is than your own. But the truth is that I hate it with a passion! I use RDBMS‘ on a daily basis and never used to hate MSSQL so much until recently when I had to modify a very large site that was built in Classic ASP(yuck) and…
Turbo C++ in DosBox for Windows 64bit
I had to compile a C++ application under a DOS environment and was running Windows 7 64bit. Firstly, Turbo C++ is a 32 bit x86 application and therefore will not run when initialised from an x64 environment. This can easily be solved by installing the DOS Emulator called DosBox. One can then mount the Turbo C++ folder as a drive and install it under a subdirectory. e.g. mount c c:\PathToMyTurboCppDirectory\…
Error 29506 while installing SQL Server Management Studio Express
I was trying to install Microsoft SQL Server Management Studio Express (what a long name) on a machine and kept getting error 29506 right near the end with a Rollback action thereafter. To get this program installed you will need to run Command Prompt as Administrator and then run the MSI (installer) from there. Navigate to C:\Windows\System32\ then right click on cmd.exe and select Run as Administrator. Once the console…
PNG Transparency in IE 6 Using Javascript
Earlier versions of Microsoft Internet Explorer(IE6 and below) didn’t know how to handle the transparency in PNG image files. Luckily this can (somewhat) be corrected using some Javascript. Include the following function in either your site’s javascript file or in the head of your HTML document. function bgPng(){ for(i=0; i<document.all.length; i++) { var bg = document.all[i].currentStyle.backgroundImage; if(bg.match(/\.png/i) != null) {…
USB Device Not Recognized! in Windows
Believe it or not, this one is super easy to fix! It’s actually a temporary problem with your motherboard, all you need to do is: turn off your computer if it’s a desktop then unplug it from the wall/powersupply if it’s a laptop then remove the battery let it sit for a minute plug it all in again reboot VOILA! No need to uninstall/reinstall drivers or anything!
How To Modify Hosts File On Windows
The hosts file is located at the following address: C:\windows\system32\drivers\etc\ or %systemroot%\system32\drivers\etc\ But you will need to open Notepad with “Run as Administrator” first and then open it through there otherwise it will give a permissions problem
Microsoft apps never care!
I often seem to have this issue when dealing with Microsoft software. You click “Cancel” and it just carrys on going, so you click it again a few more times and instead of it just stopping in it’s tracks, decides to rather tell you it’s cancelling and then shows a cancelling dialog box for the next 10 minutes! Cummon guys, that’s not very professional!
I hate desktop email clients
I used to use Mozilla Thunderbird to handle my pop emails accounts and then I started experiencing performance problems when doing almost anything. My email inbox contains a good few thousand items at any given time. I decided to change to Microsoft Outlook 2007 as I had used a previous version in the past and it seemed to lag a hell of a lot less. After installing it I had…
Force Download in PHP
This script works in all browsers, including Internet Explorer! if (strstr($_SERVER[‘HTTP_USER_AGENT’],"MSIE")) { header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); header("Content-Type: application-download"); header("Content-Disposition: attachment; filename=\"".basename($filename)."\";"); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".@filesize($ab_file)); set_time_limit(0); } else { header("Content-type: application-download"); header("Content-Length: ".filesize($ab_file)); header("Content-Disposition attachment; filename=".$filename); } readfile($ab_file);