Apache cache control for dynamic or secure content
June 10th, 2008
Cache control is a potentially hit-and-miss pursuit, but the most reliable and straightforward method I've found (that works for IE 6+ and Firefox), although it relies on access to your Apache server configuration, is simply setting Cache-Control headers manually.
Read the rest of this entry »
Make Vista Explorer view settings work like XP Explorer
April 25th, 2008
(Lifted from http://www.vistax64.com/tutorials/70819-windows-explorer-folder-view-settings.html)
Vista Explorer, by default, tries to determine what type of folder you're viewing based on its contents, and may dramatically (and seemingly unpredictably) change the folder's view settings: Details view, or List view, or Thumbnails view, etc., as well as applying Grouping, adding or removing visible columns, and so on. To disable this behavior, and have all folders work more like XP Explorer, do the following:
- Delete existing folder type customizations in the registry: Open regedit.exe, and navigate to:
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell
Delete the keys Bags and BagsMRU.
- Add new registry setting to enable common behavior: Still in Registry Editor, under the same Shell key (above), create a series of new keys: Bags, then within that AllFolders, then within that another Shell, to end up with this:
HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell
Inside the last Shell key, create a new string value named FolderType, with a value of NotSpecified.
Reboot or logoff and back on again to make these changes take effect.
- Make changes to Vista Explorer's view settings: In Explorer, open the Tools menu (if you don't see the menus, hit the Alt key to temporarily display them, or click Organize->Layout and put a check next to Menu Bar), and click Folder options. Set these as you like them, paying special attention to the option Remember each folder's view settings - if this is unchecked, and you click the Apply to Folders button at the top of the window, all folders will behave exactly the same.
How to download Internet Explorer 6 standalone installer
February 12th, 2008
When you need to update Internet Explorer on a computer without internet access (yes, it can happen):
http://support.microsoft.com/?kbid=257249
You have to jump through hoops, but it works. Just be careful with the syntax (there really are 3 quotes at the end of the command - good ol' MS engineering ;).
NOTE: You will be asked a few times throughout this initial download process, "Are you sure you want to install/run this software?" Don't be alarmed, the installer won't actually run at this point, it will simply continue downloading more components. When it completes, it will explicitly tell you that the components have completed downloading, and to run ie6setup.exe in the download folder you specified to begin installation.
HTML DOCTYPE can be your friend - or your enemy…
February 3rd, 2008
When you just need to get the job done, sometimes it pays to visit the wayback machine. Recent DOCTYPEs can wreak havoc on even simple layouts when relying on deprecated functionality.
Map network drives at login
December 27th, 2007
(Win2k, XP, Vista) Using NET USE in a batch file at login to force-connect mapped drives... useful for situations where mapped drives mysteriously disappear (this script can safely be re-run repeatedly) or to prevent conflicts between network shares requiring conflicting credentials.
Read the rest of this entry »
Mirror folder structure (flat, single tree level only)
December 27th, 2007
(Requires Win2k, XP, or Vista) Using FOR at the command line to step through every subfolder in a given folder, and create new folders with those names in a different parent folder.
Suppose you have a group of folders under C:\test1, like this:
C:\ | +-test1 | +-folder1 | +-folder2 | +-folder3
And you want to create a new test2 folder under C:\, which will contain emtpy folders with the same names as those in test1, like this:
Read the rest of this entry »
Replacing Windows protected system files (XP/Vista)
December 19th, 2007
Windows tries very hard to prevent you from replacing or deleting critical system files, even something as mundane as notepad.exe.
Note that this behavior is designed to keep your system functional whenever a critical file is accidentally (or maliciously) deleted or modified, and any actions you take to modify your system at this level, even with the best of intentions and what may seem like reliable information, may very well cause unexpected results to occur, such as an unstable or unbootable computer, or even lost data. BACK UP YOUR DATA REGULARLY, especially before attempting modifications to your operating system files, and make sure you have a backup of your operating system to fall back on in case something goes wrong.
Suffice to say, there is a relatively simple way to bypass Windows file protection. In fact, there are two very different methods for XP and Vista due to the way they protect operating system files:
Solution: When you can’t boot into safe mode, but normal boot works fine
November 2nd, 2007
You can start Windows normally, but your computer can't / won't / doesn't boot into safe mode - either the computer reboots itself after listing the drivers, or you get a BSOD (Blue Screen of Death) with a STOP 0x0000007B error - generally after a virus or trojan infection. To confirm this solution might work, in Registry Editor go to HKLM/System/CurrentControlSet/Control/SafeBoot. If it's not there, or there are only a few empty keys, then something has wiped/corrupted your safe mode configuration to prevent you from entering safe mode where you can run a more thorough malware disinfection.
More secure motherboard heatsinks
September 11th, 2007
Apparently there's an oft overlooked trend in motherboard manufacturing: despite chipset and component cooling solutions growing ever more massive, these heatsinks continue to be secured to the board with cheap, unreliable plastic pins. Luckily these can be replaced with machine screws with minimal effort.
DynDNS Updater: Enabling support for other service providers
August 26th, 2007
(Applies to v3.1.0.15) DynDNS Updater is a simple, free to use dynamic DNS utility: it automatically detects changes to your external IP address - such as when your ISP renews your DHCP lease - and forwards this information to your DNS service provider to ensure your domain name always points to your most current IP.
However, this utility is distributed by DynDNS.org (although designed and supported by third party Kana Solution) primarily to support the use of their specific service. But with a little tweaking, you can make this well-designed utility work for other service providers - for this example we'll be using the domain registrar Namecheap.com, one of the better rated affordable service providers.