2012
01.23

How to enable TRIM command in Windows 7 with a Solid State Drive

All versions and releases of Windows 7 support the TRIM command. To enable or disable TRIM Command, you will need to open an Elevated Command Prompt window.

How To Open an Elevated Command Prompt window: Click on Start Orb > Type “CMD.exe” in Search box > Right click on “CMD” and select “Run as Administrator” (If you receive a prompt confirmation, click YES)

How to Enable TRIM Command

In the Elevated command Prompt windows, type the following:

fsutil behavior set disabledeletenotify 0

How to Disable TRIM Command

In the Elevated command Prompt windows, type the following:

fsutil behavior set disabledeletenotify 1

To check to see if the TRIM command is enabled n Windows 7 do the following:

fsutil behavior query disabledeletenotify

DisableDeleteNotify = 1 (Windows TRIM commands are disabled)
DisableDeleteNotify = 0 (Windows TRIM commands are enabled)

How to enable AHCI in Windows 7 after Instalation:

  1. Exit all Windows-based programs.
  2. Click Start, type regedit in the Start Search box, and then press ENTER.
  3. If you receive the User Account Control dialog box, click Continue.
  4. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINES\System\CurrentControlSetServices\ahci
  5. In the right pane, right-click Start in the Name column, and then click Modify.
  6. In the Value data box, type 0, and then click OK.
  7. On the File menu, click Exit to close Registry Editor.

After this you’ll have to restart your computer, go to BIOS and enable AHCI. When you log in to Windows again, you’ll notice the installation of drivers for AHCI. Another restart will be required to finish the driver installation.

These steps are provided at your own risk and not suggested unless you know and understand the risks. You will want to make sure the controller driver and MB BIOS support this option before you enable it.

2012
01.13

TRIM command for Linux

Most current SSDs support the ATA_TRIM command for sustained long-term performance and wear-leveling. The TRIM command is supported by the Ext4 and Btrfs filesystems but the latter is beyond of the scope of this tutorial. Most Linux users will find the ext4 filesystem more than sufficient for their needs. There are two requirements for using the TRIM command in Linux.

  1. Properly working installation of Ubuntu or other GNU/Linux distribution.
  2. Linux kernel 2.6.33 or later. Ubuntu 10.10 (Maverick) ships with kernel 2.6.35. This kernel is also available for Ubuntu 10.04 (Lucid) via a backport package.

With these two requirements satisfied, enabling the TRIM command is easy.

Make a backup copy of the current /etc/fstab for disaster recovery purposes:
sudo cp /etc/fstab /etc/fstab_bak-notrim

Edit the /etc/fstab file:

gksudo gedit /etc/fstab
or
sudo vi /etc/fstab

For every partition using Ext4 we add the word discard to the list of options. That means you need to prepend or append the word “discard” to the existing list of word options separating it with comma without leaving a space. Nothing else needs to be modified. For example, to change the root filesystem entry from:

UUID=[NUMS-AND-LETTERS] / ext4 errors=remount-ro 0 1

we change the entry to:

UUID=[NUMS-AND-LETTERS] / ext4 discard,errors=remount-ro 0 1

Save the changes and exit your editor.

Restart the operating system to have the changes take affect.
shutdown -r -y now
reboot
init 6

In case you make a mistake you can boot from the Ubuntu Live CD or other live Linux media, mount the root partition of your SSD and revert the changes by correcting any typos or syntax errors or restoring your backup file.

To test that the TRIM command is working, take the following steps:

Switch to the root user or preface your commands with sudo:
sudo -i
Creat a 50MB file with random data:
dd if=/dev/urandom of=tempfile count=100 bs=512k oflag=direct
Check the starting LBA address of the file:
hdparm --fibmap tempfile
Read the first address of the file, note that you need to put the first LBA in place of [ADDRESS]:
hdparm --read-sector [ADDRESS] /dev/sdX
Remove the file and synchronize the filesystem:
rm tempfile
sync
Use the same command as in 4 to re-read the LBA:
hdparm --read-sector [ADDRESS] /dev/sdX

If TRIM is working correctly, the output of the last command will be a series of zeros. If the output is anything other than zeros, TRIM is not working. Check to make sure your kernel supports TRIM and recheck your ext4 filesystem configuration. This test will not work if your filesystem is encrypted.

2011
09.09

I recently installed Adobe CS 5.5 on a Windows computer, and it left a pile of annoyances. Most of them were easily removed by unregistering the DLL, but one I had to muck with the registry to remove. Most involve sticking junk in the context menu because there is that one user who loves zillions of tools (junk) in their context menu. Not me. Not most any power user I know of.

Adobe Acrobat inserts itself in everything. I only need to “print” to a PDF and nothing more. This removes it from Microsoft Office,
regsvr32.exe /u "C:\Program Files (x86)\Adobe\Acrobat 10.0\PDFMaker\Office\PDFMOfficeAddin.dll"
regsvr32.exe /u "C:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat Elements\ContextMenu.dll"
regsvr32.exe /u "C:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat Elements\ContextMenu64.dll"
 

Adobe Contribute CS 5.5 inserts itself into Office as well. It adds itself into all your browsers except Chrome, thank goodness. This junk uses memory and slows down your browser.
regsvr32.exe /u "C:\Program Files (x86)\Adobe\Adobe Contribute CS5.1\Plugins\FirefoxPlugin\npContribute.dll"
regsvr32.exe /u "C:\Program Files (x86)\Adobe\Adobe Contribute CS5.1\App\SupportFiles\FirefoxExtension\npContribute.dll"
regsvr32.exe /u "C:\Program Files (x86)\Adobe\Adobe Contribute CS5.1\Plugins\IEPlugin\contributeieplugin.dll"
regsvr32.exe /u "C:\Program Files (x86)\Adobe\Adobe Contribute CS5.1\Plugins\OfficePlugin\en_US\Resources\OfficePluginRes.dll"
regsvr32 /u "C:\Program Files (x86)\Adobe\Adobe Contribute CS5.1\Plugins\OfficePlugin\OfficePlugin.dll"

Adobe Bridge CS 5.5 has several annoying context menu takeovers. The DLL it uses has other functions and cannot be unregistered without breaking Adobe Bridge CS 5.5. You remove this entry from the Windows registry. If you don’t know what you are doing don’t mess with the registry. Use something like ShellExView which is a Shell Extensions Manager, to fix this. It is pretty easy to use and powerful; so use with caution.

HKEY_CLASSES_ROOT\Directory\shell\Bridge

Enjoy your restored context menu. I wish Adobe would give the user the option to remove these within each program. People have complained about this for years and Adobe has never listened.


2011
09.01

3D in 15 years

I’m pretty sure we are going to look back at this current 3D craze and say to ourselves, “Wow, what a joke that 3D stuff was a few years ago.” I am continually amazed by how much marketing overhype there is regarding 3D. It is pretty much as lame as the the old color based 3D technique of the fifties. Those sucked and so do these. To even call it 3D is offensive to all future 3D technologies and holograms. The one good thing to come out of this was James Cameron’s Avatar release pushed all the theatre owners to upgrade to digital projectors.

You know it is baseless when you can get 3D binoculars. Please stop the madness.

2010
12.25

Merry Christmas

Santa Claus

Merry Christmas

2010
11.19

Angry Birds

If you’ve spent any time playing Angry Birds then you’ll like this. Angry Birds is a great time wasting “artillery” style game for the iPhone and iPad. Definitely worth the couple bucks it costs.

from Zero Lives

2010
11.17

Vbulletin Debug Mode

vbulletin

Add this to config.php to put VBulletin into debug mode:

Add this line:
$config['Misc']['debug'] = 1;

This information seems to be hidden from people for some crazy reason. No clue as to why. It is also not in the documentation.

2010
10.27

History of Halloween

from Fright Catalog

2010
10.02

Somehow I missed this, silly me. Comcast was voted the worst company in America at the Consumerist. Oh Comcast, surely you have a special place in hell reserved for you for all the pain and suffering you have caused people. From refusing to believe your customer has died and can no longer pay his bill, to making arbitrarily inane rules for your CSRs to foist upon your innocent customers, the hilarity never ends.

I also noticed there is a Facebook group called “Comcast Sucks!!!” which has almost 2000 members. Reading through some of their stories make me laugh at the ineptness of your company and cry because you screw so many people over on a daily basis.

Here is the lovely award they were given:

2010
09.30

Ever wonder just how bad Comcast is? Well, I got the chance to experience Comcast up close and personal the other day and let me tell you it was not fun and it was not pretty. I was taking back a DVR for a friend. So I enter the office and am immediately awestruck at how many people are sitting and standing around waiting for Comcast to help them. I quickly count 37 unhappy people. Next I notice that there are now serving number signs all over the place. I locate the take a ticket box which has three large buttons on it. There is a fourth button but it is covered up for some reason with paper and scotch tape. They are labeled Internet, Cable TV, and Telephone. I push the Cable TV button and am rewarded by a letter and number combination printed in lovely thermal ink. You know the stuff, you touch it and you get ink all over your fingers. One of the best technologies ever, oh wait, no it isn’t, it sucks.

So there are all these people waiting around now numbering about 40 people. There are seven CSR stations only two of which have people actually doing any work. There are these sort of hatches that go to a back room where one or more nerds are working away on the hardware. I notice that some of the people waiting are older and some have handicaps. Most of the younger people like myself give up their seats so the older people are able to site down while waiting. I notice there is a sofa an flat screen TV on the other side of the room. So I start to wander over to it. The TV is off. This being a Comcast office I figure all of us suffering can at least watch a bit TV to escape the boredom. I turn on the TV, nothing. I turn on the DVR, nothing. At this point everyone is watching me, there really is nothing else to do, so I’m fully committed to getting this thing working. I find that they are using component cables to give the TV a 1080i signal. Never mind the fact that both the TV and DVR have a DVI port and an HDMI port. Go figure? Only one of the three component cables is plugged in and it is not in the right spot. I plug in all the cables in the right order and I get a screen that shows the hideous Comcast GUI with an error message.

Now I see why the TV is off. The DVR is non-responsive to any input. Both the front panel and remote are useless. I unplug the DVR. Plug it back in. It starts to reboot. I wait a few minutes. I get a GUI but no A/V signal. I try a few channels, still nothing. Then I notice the Coax in is in the out. I swap them, oh now I get a picture. I start to see smiles on people faces. We can cheer up this miserable place.

I ask the watching crowd around, “Sports or News?” News is the answer I get back. So I think CNN should be fine. I ask what channel, some says “41″ Okay then 41. The channel tunes in and then we get an error message, “Not Authorized.” Oh joy they have not activated their DVR. Fox News, 49 it comes right in. Strange. But this isn’t HD. I go to Fox News in HD at 690. I get the unauthorized error message again. So I look for CNN, I find it a few channels away. It comes right in. I ask everyone, “does this happen much?”

“All the time.” people tell me. Wow, I can’t believe how bad this stuff is. After talking with a few people they tell me sometimes they have to either restart their DVRs or call Comcast and have them be told to restart their DVRs in order to get rid of the error message. This company and these products are nuts. How do people put up with this crap?

Meanwhile, the line of people continues to grow and not much is getting accomplished. At least we have some CNN to watch. At this point I’m feeling awfully rebellious, subversive if you will, even destructive. I start asking people if they have had a better experience dealing with the DMV? People start getting riled up.

“And we’re their customers! We pay them for this crappy service.” A number of side conversations break out with lots of grumbling. I suggest to the nearby folks to mention that we need to make sure these Comcast employees know how we feel, will otherwise nothing will change. Oh I’m the devil indeed. A older lady is called up, she has a cane. I go over and grab her arm to help her to the counter when her number is called. I remind her to tell the Comcast employee how bad the service is that she is paying for. She begins an awesome tirade about being treated so badly, the government doesn’t treat her this bad. She is old and sick. It was awesome. People are really starting to get ticked off now. I suppress a smile.

At this point our derision is so high no one bothers to whisper any more, and we talk openly about the employees right in front of them. Another younger man goes to the counter and I can hear him ask why does it take 25 minutes to help him. He has better things to do with his time.

Then, two more employees walk in the front area to take up some of the empty CSR positions. I start clapping. People look at like I’m crazy. Several other people join in the clapping. The employees look up like, WTF? Those looks are crusty. It was hilarious. Even better, a lady who drives a taxi and looks like she doesn’t take crap from anyone shouts out, “It’s about time!” I try to hold back my grin but it is hard now.

The whole time I’ve been watching the test bench area behind the CSRs, the back of house as it were. There are little windows where a guy will shove out DVRs and tuners based on the requests of the CSRs in the front of house. All he is doing is running diagnostics, upgrading firmware and then turning the DVR right around for someone else to use. This is one of the major problems with Comcast You just get whatever they decide to hand you. I can only imagine how many of these people are here because the Comcast tech support person on the phone was clueless and unable or unwilling to help them. They probably gave up and told them, “you need a new cable modem sir.” One lady complained that the DVR they gave her was ugly and all scratched up. Too bad. They wouldn’t give her a new one. If after watching this “back of house” area you really think that Comcast is interested in nothing more than the bottom line and in some ways cares about you, the paying customer, I have some oceanfront property in Idaho I would like to sell you really cheap.

Visiting Comcast was like going to the DMV and having a dentist drill on your teeth while you wait. It was horrible. I feel bad for the older people especially the ones with handicaps. Comcast has a monopoly around here and it needs to end. Both the local and federal governments are to blame for this mess. Without competition the consumers get screwed over by Comcast who are focused solely on the bottom line. There should be several providers each offering you competitive rates for service. That simply doesn’t exist here. Making people come into the Comcast office to repair their broken service is truly disheartening. Is all this mess a function of Comcast being evil and heartless, or the result of a giant mismanaged organization with a bureaucracy out of control?