phil's blog

Apache .htaccess Rewrite CDN / Parallel Subdomains Drupal CDN

First off, I suck at programming... secondly, I suck at apache rewrite rules because it's basically programming. It took me a while to come up with a no-nonsense method to rewrite my parallel / cdn subdomain names, so I wouldn't get hassled by the search engines because it looked like I had all sorts of duplicate content being served from my cdn subdomains.

Tmobile Nexus S Rooted build.prop Network Tweaks

First off, this page is for my own records of the various speed tweaks. I have no idea if the following settings will help / work for your area. If you do enough digging, you can find quite a bit of information on this topic in forums out on xda developers and the cyanogen wiki.

build.prop ro.ril meanings
GPRS classes and coding schemes

Edit the /system/build.prop file and insert the following:


ro.ril.hsxpa=2

Configure Drupal Mime Mail mail.css for the Webform Module

When I first ran across the Mime Mail module for Drupal, I was ecstatic for the possibility of being able to configure the email output from my contact forms, provided by the Webform module. While it did do some pretty stuff, it didn't really do what I wanted. Knowing that the purpose of the mime mail module is to send a message as HTML, I couldn't seem to figure out how to get the stupid thing to actually accept any CSS in the e-mail.

Well crap... I don't have time to finish this right now...

The nitty gritty

1) Install Mime Mail

Automatically Delete User Profiles On Windows XP, Vista and 7 32bit or 64bit

Working for a school organization that contains many labs, I was presented with problem of having 5-10 labs per school, with 30 computers in each lab running Windows XP and a mixture of 32bit and 64bit Windows 7. Trying to maintain the user profiles in this type of setting can be a complete nightmare! A "normal" corporation would most likely utilize a .vbs script and set it up as a Group Policy to launch at computer boot for removing profiles, but in our environment, the server guys don't like us "lowly tech" guys and snuff their noses at us.

Unbrick Buffalo WZR-HP-G300NH Router with Solid Diag and Endless Reboot

I came home one night to find that my internet wasn't working... So, I go check the cable modem and notice it looks fine, then look at the router, a WZR-HP-G300NH to see a solid green power light and a solid red diag light. After about 45 seconds, all the lights would come on, then shut off and repeat the process, rebooting itself every 45 seconds or so.

How to quietly run SLMGR silently for Vista and Windows 7

I ran into a situation where I needed to add the product key and activate windows 7 for several computers in an organization and make it as easy as possible. So, I came up with this easy to use .cmd batch script:

Copy and paste the following into your own "activate.cmd" file and simply run it!

@echo off

cls
echo Activating Windws 7... Please wait as this might take several minutes...
echo.
cscript //B "%windir%\system32\slmgr.vbs" /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript //B "%windir%\system32\slmgr.vbs" /ato

echo Activation complete!

Windows Explorer Slow to Open or Slow to Load using WinKey+E

The Problem: Windows Explorer Slow to Load

Working on a lab full of computers, I ran into an issue where the Win+E key would take anywhere from 10 seconds to 90 seconds to bring up windows explorer and in the process, the taskbar would completely freeze up, becoming unresponsive until Windows Explorer got done with it's coffey and donut break and finally decided to open.