Suction, A Lightweight Directory Consolidator

I have put together a little program that will accept any number of directories as input and “Suction” the contents of any subdirectory to the top folder, deleting all empty subfolders left behind after the operation.

Morehpperliter was quite fond of the “Unify” function in DirUtils, which does not run on 64-bit machines and as far as I know is no longer developed, so he asked if I knew of an alternative.  I did not, so I created one.

The program is simple, lightweight, and very handy if you have to wrangle a lot of files (this means you Usenet and BitTorrent users), so give it a try!

Suction

Visit the Suction download page

 




Do You Do Icons?

I’m looking for an “artist” self-proclaimed or otherwise to do a small bit of icon creation for an application I am working on. The position is non-paying (it’s a free application), though you will be credited accordingly. Enticing, I’m sure.

If you are interested, drop me an email at drnathan (at) teamhackaday (dotcom).

 
Posted in: Programming, Random by DrNathan No Comments ,

Fix Your Linux Terminal Line Wrap Issues

I had a strange problem with Putty when connecting to a Linux server that I work on occasionally. At random times, the line I was typing would wrap around on the same line in crazy fashion, overwriting what I had already typed. Aside from being generally annoying, it caused plenty of headaches when trying to enter commands.

The problem would pop up when entering long commands, but it would also sometimes cause the text to wrap after 20 or so characters. I figured something had to be wrong, and sure enough after a bit of reading, I found the culprit.

It seems that at some point I read a tutorial about how to customize the command prompt that offered tips on how to dynamically change the Putty window title as well. That’s all fine and dandy, but the author left out a very important point, and that was how to escape non-printing characters. You see, the problem with my command prompt was that several non-printing characters were being entered on the line as part of the prompt, and the shell could not accurately determine where to wrap the line, when to add a new line, etc.

Here was my existing prompt:

PS1="[\W]\$ \e]2;[\d \t]  [\w]\a"

What this does, according to the author is create a prompt containing the relative path of the directory I am working in (the \W) surrounded by square brackets, and ending with a “$” sign. The path looks like this:
[www]$ if I happen to be working in a directory named www – simple enough.

The second half of the command (the \e]2;[\d \t] [\w]\a) causes the date and time to be displayed in square brackets ([\d \t]) followed by the full path that I am working on ([\w]). The “\e]2;” and the “\a” are just commands that specify the fact that I wanted to change the window title rather than the command prompt.

The problem? Well, since the commands to change the window prompt are considered non-printing characters, the server would “display” them anyways, taking up room on my command line without me knowing it. the simple fix is to surround the second portion of my prompt command with a pair of brackets used for specifying non-printing characters. They are “\[" and "\]“, used to denote the beginning and end of the non-printing characters, respectively.

So, my new command looks like so:

PS1="[\W]\$ \[\e]2;[\d \t]  [\w]\a\]"

Pretty subtle difference, eh? It makes a world of difference however.

So, if you are seeing some weird behavior when connected to a Linux box with Putty or any terminal client for that matter, take a closer look at your command prompt configuration. Added tweaks such as the window title changes I made along with any sort of color changes you might have made to your prompt are likely the culprit.

 

Cheap! – Xbox 360 Les Paul Guitar

Best Buy is offering the Guitar Hero Les Paul guitar this week for $19.99 – that’s a whopping $30 off the regular price!

Guitar Hero Les Paul guitar $19.99 at Best Buy

They drop the price down to $9.99 if you buy it along with Guitar Hero: Metallica.

Either way, it’s a price you simply cannot beat!  As a bonus, they have the Wii and PS3 versions of the guitar on sale this week too.

 

Follow-Up: How to Enable Intel ICH RAID After Installing Windows Vista

Bypass this article and fix your Intel RAID Drivers immediately using RAIDFix


An update to this post can be found here

Many people seem to have found my original post about enabling ICH RAID after installing Vista quite helpful, so I thought it would be worth adding a follow-up post to add a few details.

First, some people have suggested that you can simply search for the iastor.sys file instead of navigating to the path I mentioned in the first post.  This should be a fine alternative to manually navigating there, but just be sure to pick the right iastor.sys file.

Second, some people mention that right-clicking on the iastor.inf file located in the same directory as the iastor.sys file gives you an “Install” option.  I have seen that option, and I tried installing the driver in that manner, but it did not  work for me.  Your mileage may vary.

Third, there is the question of ControlSet001 vs CurrentControlSet in the registry entries.  Without getting into too much detail, the CurrentControlSet value in the registry is simply a pointer to whichever Control Set has been loaded by Windows.  For simplicity (and compatability’s) sake, I have changed all entries in the reg file to point to CurrentControSet, rather than to a specific, numbered control set.  More often than not, your system will be using ControlSet001, but that might not always be the case.

Finally, Intel has updated their Matrix Storage Manager software as of 3/13, which means changes need to be made to the registry information in my previous post if you want to install the newest version of the software right off the bat.  If you would rather stick with the slightly older build, you can find it here.

What I decided to do was take a snapshot of the HKEY_LOCAL_MACHINE portion of my registry before and after installing the newest version of the Matrix Storage Manager software to see what values might have changed between versions.  I suppose I can’t say that this is an absolutely bulletproof way of determining what has changed, but it’s a pretty darn good attempt.

Luckily, not a ton has changed – in fact, only one section of the registry file has been altered in the new release.

The second key in the registry file that adds data to the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}\0001 key has been slightly altered.  The changes to that section are on lines 2, 5, 6, and 7, which simply denote driver version changes:

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}\0001]
"InfPath"="oem9.inf"
"InfSection"="iaStor_Inst_RAID"
"ProviderName"="Intel"
"DriverDateData"=hex:00,00,97,ae,db,8b,c9,01
"DriverDate"="2-11-2009"
"DriverVersion"="8.8.0.1009"
"MatchingDeviceId"="pci\\ven_8086&dev_2822&cc_0104"
"DriverDesc"="Intel(R) ICH8R/ICH9R/ICH10R/DO SATA RAID Controller"

That’s it – those are the only differences, aside from “Enum” entries that are specific to your computer.

Hopefully this helps some of you looking to switch on RAID in your Vista install.

Grab the NEW registry file here

Grab the OLD registry file updated to reflect CurrentControlSet here

Also, if someone would like to take a registry snapshot of their computer before and after both RAID is configured and Matrix Storage Manager is installed, I would love to see those registry files so I can do a bit of comparison.

 

New Google Mobile Update for Blackberry adds Voice Search

Google released the latest version of their Google Mobile application, adding both a Voice Search feature as well as a “Search with My Location”.Google Mobile for Blackberry updated with voice search

The Voice Search feature allows you to simply press the phone button and speak into the handset to search the web – very cool!

In addition to that feature, the Search with My Location option allows the application to utilize your handset’s built-in GPS module in order to localize your search results.  I can imagine the combination of these two features being a welcome addition while cruising around in the car looking for a restaurant or the like.

Pick it up here: Google Mobile for Blackberry

 

Replacing Your Xbox 360 DVD Drive Belt

If you are having a hard time getting your Xbox 360 DVD drive to open and close, odds are the drive belt is the problem.  It seems that due to heat and general usage, the drive belt that is responsible for opening and closing the drive will stretch or accumulate enough dirt that it starts slipping.

One way to remedy this is to open your drive and clean the belt, but more often than not the problem will recur relatively quickly.  After scouring the web, I have found what seems to be the consensus as far as which belt you can use to replace your existing drive belt.  Most people opt to purchase a replacement that is smaller than the existing belt in order to ensure that there is sustainable tension for the long run.  The replacement belt of choice has a 19mm internal diameter and is 1.2mm thick.

You can purchase a new belt at any of the locations below:

SBS2.6 Belt @ Studio Sound Electronics

FD36P Belt @ Maplin (UK)

SCX2.6 Belt @ Unicorn Electronics

To do the repair, simply open your DVD drive, undo the belt connecting the two points highlighted below, and then reattach the new belt in its place.  You will likely need to use a small screwdriver or needle-nose pliers to attach the new belt as it will fit quite a bit more snug than the old belt.  You may also want to limit the amount that you touch the inside of the belt surface as to reduce the likelihood of depositing residual finger oils on the rubber which may result in future slippage.

Xbox 360 Samsung Hitachi BenQ Liteon Repair

(Picture courtesy of Llama – www.llama.com)

 

Cheap! – Xbox Live 13-month Gold Card

K-Mart has the Xbox Live Gold 13-month card for $29.99 this week. If you are looking to renew your membership, I would pick this up ASAP!

Xbox Live 13 Month Gold Card

 

Quick Fix – Manually Installing The Adobe PDF Printer for Acrobat 9

On occasion, when installing Adobe Acrobat 9 (as well as some other versions) the application will fail to install the “Adobe PDF” printer that typically resides in your Printers and Faxes folder in Windows XP.  This not only prevents Acrobat from creating any PDF files, but it also breaks the PDFMaker plugin functionality that gets added to Office when installing Acrobat.

The following instructions will help you restore the missing PDF printer:

1) Open the Printers and Faxes dialog box and select Add a Printer

2) Click Next then select Local printer attached to this computer, and deselect the Automatically detect and install my Plug and play printer box.  Click Next.

3) In the port selection box, choose My Documents\*.pdf (Adobe PDF) and click Next.

4) On the following screen, select Have Disk. Click Browse then navigate to the C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Xtras\AdobePDF folder and highlight the AdobePDF.inf file.  Click Open, then OK.

5) When presented with a list of Adobe PDF Converter options, select the first item from the list and click Next.

6) When prompted for a printer name, change the value to Adobe PDF.  Naming it anything else will break the Office plugin functionality.

7) Click Next through the remaining dialog boxes, selecting the appropriate options for your configuration as you go along.

At this point, the printer should be installed.  If the application is requesting files from your Windows CD, you will need to locate the proper files for your service pack level either by browsing on your computer or downloading then extracting the service pack executable.  This portion of the install varies by computer as I have had the install require these additional files about half the time.

If you are later prompted for the ADPDF9.PPD file, it can be found in the C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Xtras\AdobePDF\StdPPD folder.

That should be it.  once you have finished the installation and provided Windows with the additional files if needed, you should be well on your way to creating PDFs!

 

Giganews Offers 365 Days of Retention and a Special Offer

In a follow up to my Giganews recommendation a few months ago, Giganews - The Best Usenet Provider, now with 365 day retention!I am happy to report that Giganews is now working up to 365 days of binary retention from the standard 200 days. Along with this new retention offering, they are cutting the price of their Diamond and Platinum unlimited memberships by 50% for the first three months of service!

This unprecedented move makes your first three months of unlimited Usenet access a paltry $12.49 a month.  How can you beat that??

This is why I said and still believe that Giganews is the best Usenet provider, hands down!

Sign up today!

Sign up for Giganews Usenet Hosting Today!