🌱KolibriOS 0.7.7.0 [1440k] {S}+ A small x86 assembler hobby operating system, forked from MenuetOS in 2004. 📺
🌱Visopsys 0.69 [1440k] {S}+ A fully multitasking, 100% protected mode, virtual-memory, massively-monolithic-style kernel with a bare-bones C library and minimal suite of applications. 📺
/misc | Dec 31, 2009
Black screen with many white exclamation points / marks on boot... #
was due to a failing EVGA e-GeForce 8800GT video card. Pulled the card and exclamation points were gone for good.
Could not find any definitive information or solution on the web, though there were a few similar complaints:
These run under all Windows versions from 95 on up!
Tooler - Easily create shortcuts that allow you to: run, enable, or disable screensaver; eject or close optical drive tray; set volume; turn off monitor; disable mouse and keyboard; logout, restart, or shutdown.
SlimBatteryMonitor - "Space-efficient power meter monitors laptop and UPS batteries." Especially welcome is the ability to change the low battery warning to appear at a level other than twenty percent.
DateTree - "Organize files, photos and movies by copying them into dated folders"
Downloading DjVu files from Internet Archive (archive.org) #
Clicking DjVu book links on archive.org opens them in a Java applet within the web browser, with no option to save. Right clicking and "saving link as..." results in a tiny HTML file being downloaded instead. Here's how to download the actual DjVu file (we'll use H.G. Wells' The wonderful visit in this example):
Right click and copy the DjVu link: http://www.archive.org/stream/wonderfulvisit00welluoft/wonderfulvisit00welluoft.djvu
Paste the link into your browser's address bar
Add an extra forward slash before "stream": http://www.archive.org//stream/wonderfulvisit00welluoft/wonderfulvisit00welluoft.djvu
Press Enter to begin downloading the DjVu file
UPDATE: The DjVu file can also be downloaded from the directory listing: simply click the "HTTP" link to the right of "All Files:" to access.
Kindle 1: Change HTML extension to TXT and copy file to the Kindle's documents folder - it will appear on the Home screen. Simple HTML formatting is preserved.
Kindle 2: Copy HTML file to Kindle's documents folder, launch Basic Web browser, and enter file URL as follows: file:///mnt/us/documents/filename.html
Ensign, Demint to force vote on health care bill unconstitutionality #
WASHINGTON, D.C. - Today, U.S. Senators Jim DeMint (R-South Carolina) and John Ensign (R-Nevada), raised a Constitutional Point of Order on the Senate floor against the Democrat health care takeover bill on behalf of the Steering Committee, a caucus of conservative senators. The Senate will vote tomorrow on the bill's constitutionality.
"I am incredibly concerned that the Democrats' proposed individual mandate provision takes away too much freedom and choice from Americans across the country," said Senator Ensign. "As an American, I felt the obligation to stand up for the individual freedom of every citizen to make their own decision on this issue. I don't believe Congress has the legal authority to force this mandate on its citizens."
"Forcing every American to purchase a product is absolutely inconsistent with our Constitution and the freedoms our Founding Fathers hoped to protect," said Senator DeMint. "This is not at all like car insurance, you can choose not to drive but Americans will have no choice whether to buy government-approved insurance. This is nothing more than a bailout and takeover of insurance companies. We're forcing Americans to buy insurance under penalty of law and then Washington bureaucrats will then dictate what these companies can sell to Americans. This is not liberty, it is tyranny of good intentions by elites in Washington who think they can plan our lives better than we can."
Americans who fail to buy health insurance, according to the Democrats' bill, would be subject to financial penalties. The senators believe the bill is unconstitutional because the insurance mandate is not authorized by any of the limited enumerated powers granted to the federal government. The individual mandate also likely violates the "takings" clause of the 5th Amendment.
The Democrats' healthcare reform bill requires Americans to buy health insurance "whether or not they ever visit a doctor, get a prescription or have an operation." If an American chooses not to buy health insurance coverage, they will face rapidly increasing taxes that will rise to $750 or 2% of their taxable income, whichever is greater.
The Congressional Budget Office once stated "A mandate requiring all individuals to purchase health insurance would be an unprecedented form of federal action. The government has never required people to buy any good or service as a condition of lawful residence in the United States."
A legal study by scholars at the nonpartisan Heritage Foundation concluded: "An individual mandate to enter into a contract with or buy a particular product from a private party, with tax penalties to enforce it, is unprecedented-- not just in scope but in kind--and unconstitutional as a matter of first principles and under any reasonable reading of judicial precedents."(emphasis mine)
Xcopy - skip copying of files that exist in both source and destination (only checks filenames, not size/date/content/etc): echo n|xcopy "src\*.*" "dest\" /e
(Tested in XP; nonessential syntax removed from original tip)
AddRuby - Add furigana (aka rubi / ruby) to Japanese web pages or pasted text
In Vista and Windows 7, C:\Users\All Users is a junction point that points to C:\ProgramData
While imaging a 160GB drive with four partitions (Dell Diag, Recovery, OS, MediaDirect) to a new 500GB drive via an Acronis True Image boot CD, something went terribly wrong. Long story short, neither drive would boot (stuck in perpetual reboot loop) though files were visible on both drives. After wrangling with partition and recovery tools on the 500GB drive to no avail, the following process worked:
Wiped all partitions on the 500GB drive and created a single NTFS partition
Installed Vista normally on 500GB drive
Booted from Microsoft Diagnostics and Recovery Toolset (DaRT) CD
Erased all files from C: on 500GB drive
Copied all files from 160GB drive's OS partition (F:) to 500GB drive (C:) via xcopy: xcopy f:\*.* c:\ /b /c /e /h /k /o /r /x /y
/b : Copies the symbolic link instead of the files. This parameter was introduced in Windows Vista.
/c : Ignores errors.
/e : Copies all subdirectories, even if they are empty
/h : Copies files with hidden and system file attributes. By default, xcopy does not copy hidden or system files.
/k : Copies files and retains the read-only attribute on destination files if present on the source files. By default, xcopy removes the read-only attribute.
/o : Copies file ownership and discretionary access control list (DACL) information.
/r : Copies read-only files.
/x : Copies file audit settings and system access control list (SACL) information (implies /o).
/y : Suppresses prompting to confirm that you want to overwrite an existing destination file.
Booted from 500GB drive - still no joy: "Missing operating system"
Booted from Vista install disc and selected "Repair your computer" (with the vague idea of trying fixboot and perhaps fixmbr)
The following message appeared: "Windows found problems with your computer's startup options. Do you want to apply repairs and restart your computer?"
Clicked "Repair and restart" and booted from 500GB drive
Windows Vista started normally, with all data and apps intact!
Bundled Snow Leopard Upgrade DVDs do *not* work on older Macs with blank drives #
There are many assertions around the web that the Mac OS X Snow Leopard Upgrade DVD works exactly like the full version. Here's an example of such a claim from Macworld:
However, the Snow Leopard upgrade DVD does not require that you have Leopard installed; it's a full install disc that works on any Intel Mac.
Can I install the Snow Leopard upgrade on a blank hard disk?
Yes. According to a number of reports, you can even install it on a Mac that does not have a Leopard disk attached.
While this may be true of the retail upgrade disc, bundled DVDs and those issued under the Mac OS X Snow Leopard Up-to-Date Program (distinguishable by the notice "This software is part of a hardware bundle - not to be sold separately") do not work on older Macs with blank drives, as this screenshot demonstrates:
For bots, screen readers, and image-free browsers, here it is in plain text:
Mac OS X can't be installed on this computer. This disc requires that Mac OS X 10.5 or later already be installed on your computer. If you want to restore your system from a Time Machine backup, click "Restore from Backup".
The only choices are "Restore from Backup" and "Restart". Not even the usual utilities (Terminal, Disk Utility, etc) are available. This message can be avoided by plugging in an external drive with Leopard installed (including another Mac in Target Disk Mode) or by remastering the DVD with a few minor changes. For more on this issue, see:
CanoRemote - "Easy to use remote control for most Canon Power Shot Cameras without built in remote control receiver. The only things you need is the CanoRemote receiver, a USB cable and a standard Apple Remote. The range of the receiver is more than 10 meters."
R1Soft Hot Copy "takes online volume snapshots on your Linux server. It does NOT use LVM so it can work on any Linux system and any block device ... Hot Copy creates a point-in-time online volume snapshot of the disk while the system is running, without interrupting applications even on the busiest Linux servers. As block level changes are made to the device, Hot Copy makes a backup copy of only the changed blocks instead of replicating the entire drive. These changed blocks are then efficiently stored in the unused space on the hard disk."
IntelligentFind 3.2.2 - The best Palm OS Find replacement, though it suffers from an ungainly installation and registration process.
Doszip Commander "is an LFN-aware TUI file manager (NC clone) for DOS with built-in unzip. The original program was written in Borland C, but the latest version compiles with Open Watcom 1.8 and the JWasm assembler." (via Mike Mills)
Simple text replacements in simple PDF documents can be made with changepagestring.pl, part of CAM-PDF-1.52, which, by the way, includes many other cool tools like:
If this is the first time you've run CPAN, it will ask you a series of questions - the default answers worked fine for me. When the cpan> prompt appears, install the CAM::PDF module:
cpan> install CAM::PDF
Now let's see if our PDF allows modification:
$ pdfinfo.pl pcasm-book.pdf
File: pcasm-book.pdf
File Size: 1071411 bytes
Pages: 195
Author: Paul A. Carter
CreationDate: D:20050320210800
Creator: LaTeX with hyperref package
Keywords: 80x86 assembly programming
Producer: pdfTeX-1.10b
Subject: 80x86 Assembly Language Programming
Title: PC Assembly Language
Page Size: variable
Optimized: no
PDF version: 1.4
Security
Passwd: none
Print: yes
Modify: yes
Copy: yes
Add: yes
As it does, let's batch replace the word "Borland" with the word "Inprise" and name the new file output.pdf:
That seems to have worked, but there are still instances of "Borland" in the file - why were they not changed? The following script by Adam314 will output the entire file, including the hidden PDF formatting codes:
#!/usr/bin/perl
use warnings;
use strict;
use CAM::PDF;
my $infile = '/path/pcasm-book.pdf';
#open file
my $doc = CAM::PDF->new($infile) || die "$CAM::PDF::errstr\n";
#look for string
for my $page (1..$doc->numPages) {
my $content = $doc->getPageContent($page);
print $content
}
Sure enough, the string "Borland" only shows up twice. Where are all the others? Why, surrounded by hideous formatting code like these examples:
In his link above, Adam314 offers advice for replacing instances like these with regex. At this point I grew rather weary, however, especially as text replacements were wont to cut off or run into other words. However, for simple text replacements in simple PDF documents, changepagestring.pl may come in handy.
:new_group is optional. Especially helpful when, after having imported data from one OS X user account to another, attempting to move files results in them being copied instead, and attempting to move folders results in a password prompt ("Finder requires that you type your password").
This tip is particularly useful when copying folders like My Documents, My Pictures, etc from Windows machines to OS X. Rather surprisingly, these folders are actually assigned the Read-only attribute in Windows:
Unlike the Read-only attribute for a file, the Read-only attribute for a folder is typically ignored by Windows, Windows components and accessories, and other programs. For example, you can delete, rename, and change a folder with the Read-only attribute by using Windows Explorer. The Read-only and System attributes is only used by Windows Explorer to determine whether the folder is a special folder, such as a system folder that has its view customized by Windows (for example, My Documents, Favorites, Fonts, Downloaded Program Files), or a folder that you customized by using the Customize tab of the folder's Properties dialog box.
OS X honors the Read-only attribute by dutifully locking the directories, leading to unexpected and generally undesirable results.
UPDATE: OS X also hides (in the Finder) files and folders that were hidden in Windows (Local Settings, AppData, etc). chflags can be used to unhide these as well:
BashBlog is a simple blog system in 500 lines of bash with support for RSS, automatic validation, and more.
Chisel is "a simple Python static blog generation utility".
Chyrp "is a blogging engine designed to be very lightweight while retaining functionality. It is powered by PHP and has very powerful theme and extension engines, so you can personalize it however you want."
FlatPress "is an open-source standard-compliant multi-lingual extensible blogging engine which does not require a DataBase Management System to work."
GugoDoc is "a little [Python] script that generates a static html website from a collection of markdown files."
Jekyll "is a blog-aware, static site generator in Ruby." (via Jalada)
makesite.py - "Have you used a popular static site generator like Jekyll to generate your blog? I have too. It is simple and great. But then did you yearn to use something even simpler to generate your blog? Do you like Python? Perhaps the thought of writing your own static site generator crossed your mind but you thought it would be too much work? If you answered 'yes' to these questions, then this project is for you."
NanoBlogger (first covered over 5 years ago; still under active development) "is a small weblog engine written in Bash for the command line. It uses common UNIX tools such as cat, grep, and sed to create static HTML content."
Ode is "a single Perl script, with content generated from plain text files, and look/layout determined by standard (X)HTML and CSS".
Pelican is a simple, static weblog generator written in Python with support for themes, Atom/RSS feeds, importing from WordPress, Dotclear, or RSS feeds, and more.
PluXml "is a script to create a site or a blog, no need for knowledge in programming nor d' need; a database on its lodging, a traditional environment php is enough for him. PluXml wants to be light and easy d' use thanks to an interface d' simple administration and the storage of your writings in easily transportable XML files." (translation via Babelfish)
Poole is a Markdown-driven static website generator written in Python.
PyBlosxom "is a lightweight file-based weblog system. The project started as a Python clone of Blosxom but has since evolved into a beast of its own. PyBlosxom focuses on three things: simplicity, extensibility, and community."
reprise - "Minimal static blog with atom and tag support." Available as a single Ruby or Python file.
simpleblog is "a simple Python blogging system" that uses static rendering.
Four years ago I wrote about a particularly helpful Dell business rep. Sadly, he was promoted soon after and I've been drifting through a desert of "also-rans" ever since. Until now. Until Geoffrey Hoeinghaus. Geoff helped me track down an issue that five other reps could not resolve, and has been providing legendary service to my clients. You can reach him at Geoffrey_Hoeinghaus at dell dot com, or by phone at 1-800-456-3355 x 9462831.
CodeCodex - "Browse and use pre-written code; learn new algorithms and methods for common programming tasks ... request code that you'd like to see added; supply code that has been requested."
DZone Snippets - "A public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world"
Progzoo - Code examples in a number of languages which can be compiled and run in your web browser.
refactory.org - "Peer-reviewed code snippets that anyone can edit."
Rosetta Code - "Solutions to the same task in as many different languages as possible, to demonstrate how languages are similar and different, and to aid a person with a grounding in one approach to a problem in learning another. Rosetta Code currently has 353 tasks, and covers 160 languages." Includes a list of similar projects.
Can you really ask what reason Pythagoras had for abstaining from flesh? For my part I rather wonder both by what accident and in what state of soul or mind the first man did so, touched his mouth to gore and brought his lips to the flesh of a dead creature, he who set forth tables of dead, stale bodies and ventured to call food and nourishment the parts that had a little before bellowed and cried, moved and lived. How could his eyes endure the slaughter when throats were slit and hides flayed and limbs torn from limb? How could his nose endure the stench? How was it that the pollution did not turn away his taste, which made contact with the sores of others and sucked juices and serums from mortal wounds? ...
It is certainly not lions and wolves that we eat out of self-defense; on the contrary, we ignore these and slaughter harmless, tame creatures without stings or teeth to harm us, creatures that, I swear, Nature appears to have produced for the sake of their beauty and grace. But nothing abashed us, not the flower-like like tinting of the flesh, not the persuasiveness of the harmonious voice, not the cleanliness of their habits or the unusual intelligence that may be found in the poor wretches. No, for the sake of a little flesh we deprive them of sun, of light, of the duration of life to which they are entitled by birth and being.
The entire chapter can be found in Volume 12 of Plutarch's Moralia. For those who would like to enjoy on their Kindle, Treo, text-to-speech device, etc, I have put together a plain text version here. Bill Thayer has posted HTML versions of Gryllusa and De sollertia animalium from the same volume.
/misc | Nov 22, 2009
Have ls return human readable formats (KB, MB, GB, etc) #
Like du and df, ls supports the -h switch for using unit suffixes (Byte, Kilobyte, Megabyte, Gigabyte, etc), turning this:
$ ls -l
505223 aida16en.zip
10273 atomicwebserver.zip
1359260 camstudio20.zip
into this:
$ ls -lh
494K aida16en.zip
11K atomicwebserver.zip
1.3M camstudio20.zip
The following examples create three empty files of 1MB each:
Unix:
$ for i in {1..3}; do dd if=/dev/zero of=/path/$i bs=1m count=1; done
or, $ for i in {1..3}; do mkfile 1m /path/$i; done
Windows:
C:\>for /L %x in (1,1,3) do fsutil file createnew %x 1048576
Notes:
mkfile can generate sparse files with the -n option.
The Windows for loop set is (start,step,end).
See also Generate Files with Random Content and Size in Bash, which introduces this script: no_of_files=10;
counter=1;
while [[ $counter -le $no_of_files ]];
do echo Creating file no $counter;
dd bs=1024 count=$RANDOM skip=$RANDOM if=/dev/sda of=random-file.$counter;
let "counter += 1";
done
For those times when you've copied 200 of 210GB and then: the network connection goes down, someone inadvertently unplugs your USB drive, or Totus Copy crashes (as I just experienced), rsync can save you from having to start over from square one:
Leopard and Snow Leopard still come packaged with the woefully out of date rsync 2.6.9, which does not preserve metadata or modification times correctly, even when using the -E and -t options. Mike Bombich explains how to download, compile, and install rsync 3.0.6, which does not suffer from these issues.
UPDATE: Added the ill-explained "--ignore-errors" option above. While the man page says its purpose is to "delete even if there are I/O errors", Mark Carroll points out that it would be more accurate to say something like "Go ahead even when there are IO errors, instead of regarding them as being fatal".
$ man -w rsync
/usr/share/man/man1/rsync.1.gz
$ gzcat /usr/share/man/man1/rsync.1.gz | groff -man > rsync.ps$ open rsync.ps
PostScript file opened and converted by Preview. Save as PDF.
/mac | Nov 13, 2009
Convert between Mac, Unix, and DOS/Windows EOL characters (CR, LF, CRLF) #
Craig Stuart Sapp's flip converts ASCII files between Mac (OS 9 and earlier), *nix (including OS X), and DOS/Windows newline formats. As the provided OS X binary was compiled in 10.3 for PowerPC, I've compiled a much smaller Intel binary in 10.5. 📺
flip's source code also explains a method for converting line endings via Perl:
Mac to Unix:
perl -i -pe 's/\015/\012/g' mac-file
Mac to DOS:
perl -i -pe 's/\015/\015\012/g' mac-file
Unix to Mac:
perl -i -pe 's/\012/\015/g' unix-file
Unix to DOS:
perl -i -pe 's/\012/\015\012/g' unix-file
DOS to Unix:
perl -i -pe 's/\015\012/\012/g' dos-file
DOS to Mac:
perl -i -pe 's/\015\012/\012/g' dos-file
MassReplaceIt 2.9.1 [494k] Batch replace text within files or filenames. Supports regex, masks, undo, and more. For multiline search, newlines must be CR (Mac OS Classic). How to convert EOL characters. 📺
Launch CardTricks (screenshot of the following steps)
Click SD card icon and browse to correct drive letter
Format as FAT (SD card will be erased; make sure to backup any files)
Make Bootable
Download CHDK
CHDK->Card
Unmount SD card and flip write protect switch to on (photos will continue to be written to the card just the same)
Make sure camera is off and insert SD card
Put camera into playback mode (i.e., move Mode Switch from red camera icon to blue playback icon) and turn it on
Print/Share button flashes blue, and CHDK splash screen appears on LCD
To access CHDK features, press the Print/Share button (which serves as the ALT button) followed by the Menu button. See also: What are the key settings and shortcuts?
"lshw (Hardware Lister) is a small tool to provide detailed information on the hardware configuration of the machine. It can report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or EFI (IA-64) systems and on some PowerPC machines."
Download and install for Ubuntu (or grab the source): sudo apt-get install lshw
Help (more detailed man page also exists): lshw -help
Warning when attempting to rename, move or delete folder #
Creating a new folder named "New Folder" on the Desktop was not a problem, but attempting to rename, move, or delete it produced the following warning:
Renaming, moving or deleting 'New Folder' could make some programs not work. Are you sure you want to do this?
A quick registry search for "New Folder" with Nir's RegScanner turned up the culprit:
[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\HijackThis.exe]
@="C:\Documents and Settings\username\Desktop\New Folder"
Deleted the crufty key, logged off and on, problem solved.
The first and last word on attire from Douglas Sutherland's The English Gentleman:
The knack gentlemen have of dressing badly and getting away with it is best illustrated by the story of the gentleman who was accosted by a friend walking along Piccadilly in clothes which were well below the best sartorial standards.
'It does not matter how I dress in London,' he claimed. 'Nobody here knows me.'
Later the same friend visited him in the country where his clothes were no better.
'It does not matter how I dress here', he said, 'Everybody knows me.'
USBDLM (USB Drive Letter Manager) is a Windows service that allows you to control drive letter assignment for USB drives. Features include:
Automatically avoid conflicts with mapped drive letters
Reserve letters
Assign drive letter based on user, drive type, connection type, USB port, volume label, size, and more
Assign a letter to a specific USB drive by including an INI file on the drive
and much more. Both 32 and 64 bit versions are available. The author (Uwe Sieber) also offers a comprehensive collection of tips for solving problems with USB drives.
Ken Koehler has crafted a wonderful introduction "to the mathematics used in the design of computer and network hardware and software. Its goal is to prepare the student for further coursework in such areas as hardware architecture, operating systems internals, application programming, databases and networking." Topics covered include: computer arithmetic and data representation, logic and set theory, graph theory and computer measurement. Also available as a zipped archive.
/misc | Oct 18, 2009
Giving domain users administrative rights on local machine #
On the local machine: Control Panel > Administrative Tools > Computer Management (be sure to run as an existing admin) > Local Users and Groups > Groups > Administrators > Add > Advanced > Find Now > double click the Active Directory user(s) you wish to grant local admin rights to, or simply add the "Domain Users" group so that any AD users who login at that machine will have local admin privileges. Click OK three times.
Or skip all the clicking and simply issue the following command:
net localgroup administrators "domain_name\Domain Users" /add
Remote Desktop crashes host when connecting from client #
A brand new Dell Precision T3500 running Windows XP SP3 was crashing hard every time a client connected via Remote Desktop. Sometimes the host monitor would freeze with funky graphic patterns, so the display adapter (NVIDIA Quadro NVS 295) was suspected.
The fix turned out to be adding a new DWORD named SessionImageSize with a value of 20 to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management] on the host machine.
Apparently this issue can also manifest as being unable to connect to Remote Desktop at all, with the following error message: "This computer can't connect to the remote computer. Try connecting again. If the problem continues, contact the owner of the remote computer or your network administrator."
Yakelaen's post on Microsoft's Windows Home Server Forum. He adds: "Other posts on the nVidia forum above have reported that 32 MB didn't work for them but by increasing the size (Value data setting) of the sessionimagesize they overcame the problem. 00000020 = 32MB, 00000040 = 64MB, 00000060 = 96MB, 00000080 = 128MB"
/windows | Oct 17, 2009
Unixy goodness: command compendiums, dd, acronym origins, and a shell stopwatch #
Unix Toolbox - "Collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users... practical guide with concise explanations."
"The default block size is 512 bytes, but we can specify anything we want using the bs= flag. We can copy 1 byte at a time, or we can copy 1GB at a time. Any value will work, but some values will give you better performance than others. Most disks read a minimum of 512 bytes at a time and can easily read more at the same time. Using a value that is too small is wasteful because the disk will need to be frequently read, and time will be wasted in the copying process. If you choose a value that is too large, you will waste time filling up the buffer in dd before the copy is performed. I have found that values in the 2KB to 8KB range work well."
Securely wiping floppy disks under OS X in Terminal #
Faced with several dozen floppy disks that needed wiping, Disk Utility.app was looking a bit cumbersome: Disk Utility > click floppy drive > Erase > Security Options... > Zero Out Data > OK > Erase... > Erase
I decided to give sudo dd if=/dev/zero of=/dev/fd0 a go: dd: /dev/fd0: Operation not supported.
Ah! Perhaps OS X does not use fd0: $ ls /dev/fd0 ls: /dev/fd0: No such file or directory.
In that case, let's have a look at what we've got:
$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *111.8 Gi disk0
1: EFI 200.0 Mi disk0s1
2: Apple_HFS MacBook HD 111.5 Gi disk0s2
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: TEST *1.4 Mi disk1
What if we unmount the floppy from the Finder and then try the same command?
$ sudo dd if=/dev/zero of=/dev/disk1
dd: /dev/disk1: Operation not supported
A quick search turned up the answer - unmount from within diskutil, not the Finder:
$ diskutil unmount /dev/disk1
Volume TEST on disk1 unmounted
$ sudo dd if=/dev/zero of=/dev/disk1
dd: /dev/disk1: end of device
2881+0 records in
2880+0 records out
1474560 bytes transferred in 110.617912 secs (13330 bytes/sec)
That worked beautifully, if slowly: it took almost two minutes to wipe a single floppy disk (fiddling with the block size seemed to help, but I was not inclined to spend much time investigating furthersee update below). Macworld and the diskutil manpage turned up a much faster method that had the additional benefit of not requiring root privileges:
$ diskutil secureErase 0 /dev/disk1
Started erase on disk1 TEST
Finished erase on disk1 TEST
This single-pass zero-fill erase took less than 30 seconds to complete. Wiping the floppies was now a breeze:
UPDATE 1: Rather than using /dev/disk1 (which is the block device, AKA buffered device or cooked device) I should've been using /dev/rdisk1 (the raw device). This made the dd process slightly faster than even diskutil when using block sizes of 1440k and 360k. Connected raw devices can be listed by issuing the ls /dev/rdisk? command. See Block device versus raw device performance for more information.
UPDATE 2:diskutil zerodisk disk# (replacing "#" with the disk's number) will automatically unmount the floppy then zero it out.
For those who doubt the efficacy of zeroing a disk, see:
Scanning in OS X with the Canon imageClass MF4150 #
Canon offers OS X printer and fax drivers for the imageClass MF4150, but no scanner driver. Thankfully, Mattias Ellert has graciously put together the TWAIN SANE Interface for MacOS X, which allows scanning via Image Capture and other TWAIN-compatible applications. Sources and binaries available for Tiger, Leopard, and Snow Leopard.
If your bank, merchant account provider, etc. requires a vulnerability scan for PCI compliance, check out nCircle's Certified PCI Scan Service. They offer quick yet complete scanning, detailed/executive reports, one free scan for new users, very reasonable rates, and some of the best customer support of any Internet-based company: Joshua Backing from their customer service department called me within a few minutes of my having emailed a somewhat urgent question. As always with recommendations, I have no affiliation with nCircle other than as a satisfied customer.
/misc | Oct 04, 2009
Make a custom, bootable recovery partition or DVD #
Create a custom, bootable recovery partition:
Acronis True Image includes Secure Zone, which creates a hidden partition for storing backup images. Accessible at boot time via F11.
Ghost Recovery Kit apparently allows for creating a custom recovery partition, but the process looks rather involved.
Paragon's Drive Backup 9.0 has a feature called Backup Capsule that creates a hidden partition to store images and allows the user to assign a Function key (F3, for example) to access during boot. This is the only solution I tested, with unfortunate results: at virtually the end of the restore process from Backup Capsule, the screen went blue and the hard drive activity went crazy for over an hour before I had to kill it. Thankfully, I had made an earlier image with Drive SnapShot, which I restored to the hard drive in just a few minutes.
🌱CMDOW Commandline Window Utility v1.4.3 [15k] + Allows windows to be listed, moved, resized, renamed, hidden/unhidden, disabled/enabled, minimized, maximized, restored, activated/inactivated, closed, killed and more from the command line. 📺 (via Mike Mills)
/windows | Sep 28, 2009
Google Chrome: Checkboxes and radio buttons missing #
There are a number of workarounds (but apparently no fix as yet) for Google Chrome's annying habit of not displaying checkboxes and radio buttons. My two favorites:
Right click the taskbar, click Properties and then click Cancel, or
If you can access GMail via webmail but not POP or IMAP (despite having enabled them in Settings > Forwarding and POP/IMAP), try this virtually undocumented "unlocking" page: https://www.google.com/accounts/DisplayUnlockCaptcha .
Notational Velocity 2.0β [712k] {S} Like a cleaner, faster Cardfile for OS X with encryption, instant search, and a choice of database formats (proprietary, plain text, rich text, and HTML). 📺
When particularly nasty malware infections call for formatting a drive, I always like to start by wiping track 0. This will delete not only the MBR and any boot sector viruses, but anything else in the first 63 sectors of the hard disk, including boot overlays (like EZ-BIOS), boot managers (like BootIt NG), harebrained DRM schemes (like some versions of TurboTax), etc, so caution is advised. This process won't help solve persistent BIOS infections like this one: New BIOS Virus Withstands HDD Wipes. The commands below WILL permanently delete data - use at your own risk (and joy).
To wipe just the MBR: dd if=/dev/zero of=/dev/foo bs=512 count=1
To wipe all of track zero: dd if=/dev/zero of=/dev/foo bs=512 count=63
"Zero out" the entire drive: dd if=/dev/zero of=/dev/foo
You'll need to replace foo with the appropriate device (hda, sda, etc). List partitions and disks via one of these methods:
"This tool is a collection of tiny applications itself: grep, tree size list, instant ftp server, text line filter, text replace, duplicate file finder, split/join files, create md5 lists, run command on many files, extract strings, and more- all in one executable still matching your size limit (below 1.4 MB). It has no installer, no dependencies, needs no DLL's - nothing, just type 'sfk' to get the overview of all available subcommands."
Besides Windows, binaries are available for Ubuntu, DSL, and OS X. Here are just a few of the many possible uses:
sfk list -late -hidden
List latest (i.e., most recent) 50 files in current directory and subdirectories, including system and hidden files
sfk stat . -bytes
Display current directory tree size statistics in bytes
sfk find -text . epictetus
Search text files in current directory and subdirectories for "epictetus" (case insensitive)
sfk ftpserv -port=21 -rw
Simple FTP server, providing read/write access to current directory
sfk ftp example.com:21 get foo
Connect via FTP to port 21 of example.com and get foo
sfk httpserv -port=80
Instant HTTP server, providing access to current directory
sfk deblank . -yes
Replace blanks in filenames within current directory and subdirectories with underscore (run without "-yes" to simulate)
sfk md5 foo.txt
Generate MD5 hash of foo.txt
sfk dupfind .
Find duplicate files in current directory and subdirectories
/misc | Sep 20, 2009
Compress, encrypt, and copy data to offsite server #
Under Windows, I was using AxCrypt and WinSCP from the context menu to compress, encrypt, and send data to an offsite server. Under OS X, I am now using a simple bash command list to achieve the same thing faster and with greater compression:
/Applications/file/BetterZip.app/Contents/Resources/7z Call the 7-Zip file archiver contained in BetterZip (which I happened to have from a MacUpdate Promo Bundle). There are several other Mac binaries available or you can download and compile from source.
a Add file(s) to archive
-mx9 Maximum ("Ultra") compression
-pSECRET Set password to SECRET
-mhe Encrypt archive headers (i.e., filenames will be encrypted also)
~/Desktop/file.7z Name of archive to create or add files to
~/Documents/file.ext File to compress and encrypt
&& Execute next command only if previous command returns an exit status of zero (i.e., wait for command to complete successfully before proceeding)
user@example.com:/home/ Remote username and domain followed by directory where file will be copied to
These next two steps are optional:
&& Execute next command only if previous command returns an exit status of zero (i.e., wait for command to complete successfully before proceeding)
rm ~/Desktop/file.7z Delete 7z archive from local computer
Notes:
As the command list is rather long, you may want to make a permanent alias in OS X by adding a line like this one to your ~/.bash_profile: alias bkup='/Applications/file/BetterZip.app/Contents/Resources/7z a -mx9 -pSECRET -mhe ~/Desktop/file.7z ~/Documents/file.ext && scp -P 2012 ~/Desktop/file.7z user@example.com:/home/ && rm ~/Desktop/file.7z'
After adding the above line, you can load your .bash_profile without logging out: $ source ~/.bash_profile
and list current aliases with: $ alias -p
Archive all text files in current directory: $ 7z a file.7z *.txt
Extract all files from file.7z: $ 7z x file.7z
/mac | Sep 19, 2009
Unpack / extract Dell driver EXE files under OS X #
The Windows XP SP3 install CD lacks many SATA drivers, resulting in a BSOD shortly after booting the disc on unsupported hardware. One solution is to copy the required SATA driver to a floppy and press F6 during boot to load. Dell drivers come packed in EXE files - OS X users can extract them via: unzip:
GUI lovers note: OS X's "Archive Utility.app" was unable to extract the files, but FileJuicer ($18 shareware with 6 day trial) matched unzip's performance. (Postscript: SATA config had to be changed from AHCI to ATA in Optiplex 330 BIOS to prevent BSOD when loading driver from floppy.)
How to arrange a group of thumbnails and rename them sequentially based on their position:
Navigate to folder containing photos in Windows Explorer
View > Thumbnails
Click and drag thumbnails into desired order. It may be advisable to enable View > Arrange Icons by > Align to Grid.
Edit > Select All
Right click on first photo and rename to desired_name (1). That is, the desired file name, followed by a space, followed by an open parentheses, followed by the number one, followed by a close parentheses.
All photos will be renamed to desired_name (#), where # corresponds to the photo's position in the thumbnail layout.
At this point, our filenames look something like: name (1), name (2), name (3)... (if Windows Explorer does not list files in proper numerical order (e.g., "10" follows "1" instead of "9"), you can correct this with TweakUI: Explorer > check "Use intuitive filename sorting"). To get rid of the parentheses and renumber the files with leading zeroes:
Yes, you read that correctly. In this degenerate age, when even Rael Dornfest powers his blog with WordPress, there are still those who appreciate Blosxom's simplicity and security. For those who were lost but now have been found, Antonio Zamora explains how to migrate from WordPress to Blosxom.
I briefly thought of going to watch The Cove yesterday, and had just about given up on the idea when Mali's review moved me to check it out. I now agree wholeheartedly with her assessment: "Everyone, EVERYONE needs to see The Cove." UPDATE: All of the media attention around The Cove has had a huge impact!
/misc | Aug 30, 2009
RAID not supported by EASEUS Partition Master Server Edition Boot CD #
There are a number of Partition Magic clones which offer bootable CDs. I needed one that would support a SCSI RAID 1 array, and thought I had found the solution in EASEUS Partition Master Server Edition: "EASEUS Partition Master allows you to resize partition during the copy process with hardware RAID supported. And it can boot from both CD/DVD and Windows System."1.
UPDATE: EASUS has kindly updated their webpage to reflect the fact that RAID is not supported by the boot CD. I am very impressed with their quick response, and after using the installed version, am equally impressed with their product.
After purchasing the software (the boot disc cannot be created from the trial download), I burned and booted from the CD. Imagine my surprise when greeted by this message:
Not only does it not support RAID, it doesn't support Vista, Windows 2008, or creating/deleting partitions which occur before virtually any Windows partition. This was not mentioned in their documentation anywhere (though I later found a single forum post which mentioned the lack of RAID support). I emailed back and forth with their tech department who were very kind, but could not offer a solution. I once again set out to find a bootable partition manager that would support RAID. Here are a few possibilities:
Resize NTFS partitions using the GParted live CD - Himuraken successfully repartitioned a Dell PowerEdge 2800 PERC 4 RAID 5 array using the free and open source GParted. Several other reports indicated possible trouble with GParted and NTFS-formatted RAID, so backing up is critical (as it always is before repartitioning).
Paragon's Partition Manager 10 Server seems to fit the bill. Peter Banz has a glowing review, but I cannot be sure that the boot CD actually includes the necessary RAID drivers. Since it is Windows PE-based, they could be manually added via floppy during boot, but that adds another layer of hassle.
Acronis Disk Director Server 10.0's documentation mentions a "Rescue Media Builder", but does not explicitly state whether or not it supports RAID. UPDATE:Darren kindly informs us that Disk Director Server's boot disc supports a number of RAID controllers. He sent along a list of all files included on the CD, and points us to /lib/modules as well as /etc/driverspack (for those that run in compatibility mode) to review said drivers.
If you have any suggestions for a bootable partition manager that supports RAID, please be so kind as to send them in.
Receive following message: The device "Texas Instruments PCI-1410 Cardbus Controller" has detected a Cardbus card in its slot, but the firmware on this system is not configured to allow the Cardbus controller to be run in Cardbus mode. The operating system will currently accept only...
Spend hours tracking down antiquated answers, hacking away at the registry, uninstalling SP3, etc before formatting hard drive and using the first process.
/windows | Aug 17, 2009
Formatting partitions over 32GB as FAT32 in Windows XP #
Searching for a quick way to format a partition over 32GB as FAT32 in Windows XP, I tried this solution recommended in a number of places:
C:\>format drive_letter /fs:fat32
Here's what I got:
The type of the file system is RAW.
The new file system is FAT32.
WARNING, ALL DATA ON NON-REMOVABLE DISK
DRIVE D: WILL BE LOST!
Proceed with Format (Y/N)? y
Verifying 40960M
Eons pass, stars are born and burn out, entire universes spring into existence, spiral outward, and return to the formless void... and then, finally:
The volume is too big for FAT32.
Older and wiser, I decided to give the tiny, open source fat32format a go:
C:\>fat32format d:
Warning ALL data on drive 'd' will be lost irretrievably, are you sure (y/n) :y
Approximately one second later, the format was complete. Incredulous, I chkdsk'd the drive - it was formatted perfectly. fat32format's documentation seems to bear this out ("It should take about 4 seconds per Terabyte to format the disk." - wow!). May this lesson save humanity from many wasted hours.
DefenseWall is actually a HIPS (Host Intrusion Prevention System), not antivirus. In my testing, it is much more effective at preventing malware infections than definition-based antivirus applications. Remove-Malware.com also offers a strong recommendation (albeit with annoying affiliate downloads instead of a link to the homepage). The developer of DefenseWall, Ilya Rabinovich, responded to inquiries rapidly, and generously offered a discount for a family in need. The app particularly shines on older hardware which traditional antivirus products (and even the "light" Panda Cloud Antivirus) slow to a crawl. After hours perfecting the ideal install for a worthy cause, it's nice to know that DefenseWall (along with user education) will keep it safe and clean.
A malware infection disabled explorer.exe and all antimalware apps as soon as they were launched (in both Normal and Safe modes) by changing permissions on the EXEs. After clearing the infection with DaRT/Standalone System Cleaner, permissions had to be fixed on the apps. As Windows XP Home does not include the Security tab in Normal Mode by default (Claus breaks down a number of workarounds), the CACLS command came in handy. Files which would not launch had been modified as in this example:
and the program runs normally. Compare and match permissions from a clean system for best results.
Updates:
Ran into a similar issue after removing a Security Tool infection, which had altered permissions on the C:\%WinDir%\system32\drivers\etc\hosts file after inserting rogue entries. Having completely forgotten about cacls, I rebooted into Safe Mode and reset permissions via the Security tab. Interestingly, attempting to delete or rename hosts from a Knoppix 6 Live CD also failed; I later learned that NTFS-3G can be set to honor or ignore ownership and permissions.
To enable the Inspiron B130's wireless adapter, make sure it is turned on in the BIOS, and then head to System > Administration > Hardware Drivers > Broadcom B43 wireless driver > Activate.
/nix | Aug 16, 2009
Remove Documents, Help and Support, and Log Off from Windows XP Classic Start Menu #
Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer and create DWORD entries named NoRecentDocsMenu and StartMenuLogoff. Set their values to 1. Next, navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced and create a DWORD entry named NoStartMenuHelp with a value of 1. You may have to log off or restart for the new settings to be applied.
Sonic840 has put together a massive, 24MB poster of computer hardware. It includes RAM modules, power connectors, CPU sockets, and the like. Available for free download (under a CC license) or purchase as a print.
/misc | Aug 10, 2009
Windows 7 includes a system recovery disc creator #
To create the recovery disc, go to: Control Panel > Backup and Restore > Create a system recovery disc, or launch directly from %windir%\system32\recdisk.exe. (The Windows 7 installation disc also includes the system recovery tools. Just boot from the disc and choose "Repair your computer" to access them.)
Tools include: automatic startup repair, System Restore, complete PC restore from backup image, memory diagnostic tool, and command prompt, as seen below:
Tags: Diagnostics and Recovery Toolset (DaRT), Winternals Administrator's Pak, ERD Commander
mini$ 3.2 is an open source, Java-based miniature money manager for Windows, OS X, and Linux that features: checkbook style transactions, purchase itemization, reporting tools, more. (via Bjorn Larsen)
Most Mac users are familiar with VersionTracker and MacUpdate, but these three lesser-known sites are well worth a visit:
HyperJeff's OS X Apps - Reportedly the oldest and largest list of OS X apps. Unique filtering options by license (open source, freeware, shareware, etc), type (Cocoa, Java, Unix, etc), and more.
OSX Freewares - Bears more than a passing resemblance to TinyApps.Org. Though the site is in Japanese, Babelfish can help.
Pure Mac - An excellent collection of the very best OS X, Classic, and iPhone apps. It's reported date of establishment (1996) is three years older than that of HyperJeff's OS X Apps.
Vetusware.com has an extensive collection of abandonware, including: operating systems (MS-DOS 6.22, Macintosh System 7, etc), compilers (WinDASM 8.9, TASM 5.0, Borland C++ Builder 5.5, etc), office apps (WordPerfect 5.1, Word 6.0, etc), databases (dBase 5.0, Paradox 5.0, FoxPro 2.6, etc), and much more.
UPDATE 1: Brian in Forth Worth wrote in to share his experience and opinion:
What is UP with the website vestusware.com? After going to the site and registering (several times) there was never a password supplied, either real-time, or by email. Even using the "lost, or forgotten" password reset function (P/W was to be sent to email address) did not result in a password being given. I am beginning to suspect a *re-direction* to a malicious site....?
UPDATE 2: John in Whittlesea, Victoria, Australia (whew!) kindly wrote in to share his experience, which differed markedly from Brian's:
I had no problem at all with Vetusware - I signed up, received my password by email, logged in, and was able to download a program (it wasn't what I hoped for - but that's not Vetusware's fault). I'd suggest that Brian in Fort worth has a problem with his email.
The cal (calendar) command apparently does not include an argument for displaying multiple years. Happily, bash supports numeric ranges / step values / brace expansions as of version 3, so one possible solution is: $ for y in {2000..2009}; do cal $y; done
/nix | Jul 09, 2009
Just say no to HTML email and proprietary attachments #
The ASCII Ribbon Campaign "opposes any and all HTML e-mail, and e-mail with proprietary attachments" for a number of reasons, including: poor/non-existent rendering support in many email clients, the sheer overhead and waste of bandwidth, difficulties for the blind and others who cannot use a GUI, and security risks inherent in HTML email. Two related posts from 2004: Circumventing didtheyridit | HTML email considered harmful.
If you've got a shiny new slice over at Slicehost and are wondering what to do next, Guvnr.com has a 20 part series entitled Set Up Unmanaged VPS (4 Newbies) .. The V-P-S Bible. The Guv has clearly put a lot of time and energy into creating this handy guide, and even includes videos of most steps. A few parts could perhaps be condensed or removed altogether (like Part 16: Nginx Control Panel - there is no Control Panel, as the guide explains, though perhaps the information is still useful for nginx newbies Googling for one), but it is far and away the best introduction to setting up your site on an unmanaged VPS.
Avira AntiVir Rescue System: must download a Windows-based installer which burns rescue CD directly to disc; reportedly "updated several times a day so that the most recent security updates are always available", but definitions were almost a month old; froze computer completely when Configuration and Updates options were clicked.
BitDefender Rescue CD: standard ISO image; online update worked flawlessly; confusing interface for selecting scan target (volumes do not seem to automount); detected infections could not be cleaned or removed (this may be due to NTFS mounting issues)
Dr.Web LiveCD: standard ISO image updated regularly; failed to find anything on a heavily infected system.
F-Secure Rescue CD (updated version): zipped archive includes ISO image, release notes, and PDF manual; files containing malware are renamed (this behavior cannot be modified); online update appeared to have worked, but reported database version was 2008-11-07_10 (more than 7 months old).
Kaspersky Rescue Disk: standard ISO image; online update worked flawlessly; drop-dead simple scanning, cleaning, and log viewing. UPDATE 1: This tool seemed to work perfectly, removing all detected infections. However, during reboot, it gave a warning about being unable to unmount a volume, and ended up ERASING THE ENTIRE HARD DRIVE. As always, use this and all tools at your own risk (and joy). Backup. Backup. Backup. UPDATE 2: It appears others have suffered the same fate. Tags: Kaspersky Rescue Disk, NTLDR is missing
Microsoft's Diagnostics and Recovery Toolset, also known as DaRT (and which is built on Winternals Administrator's Pak / ERD Commander 2005), is a bootable CD which includes "Standalone System Sweeper". Definition updates can be found here or downloaded from within the program. It has been the most effective bootable antimalware tool I've found. Microsoft TechNet subscribers can download DaRT as part of the Microsoft Desktop Optimization Pack (MDOP).
UPDATE 1: Standalone System Sweeper's definition updates (whether from the network or local storage) no longer seem to work on Windows XP systems. The AVG Rescue CD has worked well for me, though it failed to uncover an MBR infection which was causing a BSOD (0xBA4C7524,0xC000034,0x00000000,0x00000000). Running fixmbr from the Recovery Console did the trick. Also had to manually remove evil DNS servers (93.188.164.33 and 93.188.160.103) from network adapters.
"Thinking of helping the planet by buying an eco-friendly car? You could do more by going vegan, say Gidon Eshel and Pamela Martin of the University of Chicago... The typical US diet, about 28 per cent of which comes from animal sources, generates the equivalent of nearly 1.5 tonnes more carbon dioxide per person per year than a vegan diet with the same number of calories, say the researchers... By comparison, the difference in annual emissions between driving a typical saloon car and a hybrid car, which runs off a rechargeable battery and gasoline, is just over 1 tonne. If you don't want to go vegan, choosing less-processed animal products and poultry instead of red meat can help reduce the greenhouse load."
Excerpted from a 2005 NewScientist article. Thanks to Mike Mills for sending it in.
If you have a networked Brother MFC-6490CW and are trying to access the Remote Setup program, the password is "access" (without the quotes). This did not appear in the printed or electronic documentation anywhere, and it took Brother tech support about 30 minutes to unearth. A quick Google search had not turned up anything, but now that the password is known, this Google search returns the correct answer.
Unlocking WinXP's setupp.ini explains how to force Windows XP to accept retail, OEM, or volume license keys during installation (as well as how to change the CD's behavior). This is especially useful for installing Windows XP on a computer with an OEM license when you've only got a retail CD handy. Working from a retail ISO image, simply open I386\SETUPP.INI in a text editor and replace the last 3 digits of the Pid with "OEM" (sans quotes). Tested successfully with HP, Gateway, and Toshiba OEM product keys. See also: Editing ISO images and Product IDs (cached copy).
The first 5 digits of the PID are the Microsoft Product Code (MPC), which determines the version of Windows XP that will be installed. The last 3 digits are the channel ID, which determines the type of product keys that the installation wizard will accept.
Generally, the channel ID is 335 for retail, OEM for OEM, and 270 for volume licensing, e.g.,
Windows XP RTM
Retail: 51882335 (Retail edition accepting Retail CD keys)
Volume License: 51883270 (Volume License edition accepting Volume License keys or VLK)
OEM: 82503OEM (OEM edition accepting OEM keys or COA keys)
Windows XP SP2
Retail: 55274335
Volume License: 55274270
OEM: 55277OEM
Windows XP SP3
Retail: 76487335
Volume License: 76487270
OEM: 76487OEM
Newer Windows XP discs may check whether the CD’s volume label matches the type of CD. In this case, the wrong volume label may render the disc unusable. Here’s a brief list of known English version of Windows XP CD volume labels:
XP Home and Professional Combo = WXPHFPP_EN
XP Home Retail = WXHFPP_EN
XP Home Retail with SP1 = XRMHFPP_EN
XP Home Retail with SP1a = X1AHFPP_EN
XP Home Retail with SP2 = VRMHFPP_EN
XP Home Upgrade = WXHCCP_EN
XP Home Upgrade with SP1 = XRMHCCP_EN
XP Home Upgrade with SP1a = X1AHCCP_EN
XP Home Upgrade with SP2 = VRMHCCP_EN
XP Home OEM = WXHOEM_EN
XP Home OEM with SP1 = XRMHOEM_EN
XP Home OEM with SP1a = X1AHOEM_EN
XP Home OEM with SP2 = VRMHOEM_EN
XP Home Volume = WXHVOL_EN
XP Home Volume with SP1 = XRMHVOL_EN
XP Home Volume with SP1a = X1AHVOL_EN
XP Home Volume with SP2 = VRMHVOL_EN
XP Professional Retail = WXPFPP_EN
XP Professional Retail with SP1 = XRMPFPP_EN
XP Professional Retail with SP1a = X1APFPP_EN
XP Professional Retail with SP2 = VRMPFPP_EN
XP Professional Upgrade = WXPCCP_EN
XP Professional Upgrade with SP1 = XRMPCCP_EN
XP Professional Upgrade with SP1a = X1APCCP_EN
XP Professional Upgrade with SP2 = VRMPCCP_EN
XP Professional OEM = WXPOEM_EN
XP Professional OEM with SP1 = XRMPOEM_EN
XP Professional OEM with SP1a = X1APOEM_EN
XP Professional OEM with SP2 = VRMPOEM_EN
XP Professional Volume = WXPVOL_EN
XP Professional Volume with SP1 = XRMPVOL_EN
XP Professional Volume with SP1a = X1APVOL_EN
XP Professional Volume with SP2 = VRMPVOL_EN
XP Professional Tablet PC with SP1 Disc1 = XRMPFPP_EN
XP Professional Tablet PC with SP1a Disc1 = X1APFPP_EN
XP Professional Tablet PC with SP2 Disc1 = VRMPFPP_EN
XP Professional MSDN = WXPFPP_EN
XP Professional MSDN with SP1 = XRMPFPP_EN
XP Professional MSDN with SP1a = X1APFPP_EN
XP Professional MSDN with SP2 = VRMPFPP_EN
XP Professional Evaluation = WXPEVL_EN
We are wont to say that it was not in our power to choose the parents who fell to our lot, that they have been given to men by chance; yet we may be the sons of whomsoever we will. Households there are of noblest intellects; choose the one into which you wish to be adopted; you will inherit not merely their name, but even their property, which there will be no need to guard in a mean or niggardly spirit; the more persons you share it with, the greater it will become. These will open to you the path to immortality, and will raise you to a height from which no one is cast down. This is the only way of prolonging mortality -nay, of turning it into immortality. Honours, monuments, all that ambition has commanded by decrees or reared in works of stone, quickly sink to ruin; there is nothing that the lapse of time does not tear down and remove. But the works which philosophy has consecrated cannot be harmed; no age will destroy them, no age reduce them; the following and each succeeding age will but increase the reverence for them, since envy works upon what is close at hand, and things that are far off we are more free to admire. The life of the philosopher, therefore, has wide range, and he is not confined by the same bounds that shut others in. He alone is freed from the limitations of the human race; all ages serve him as if a god. Has some time passed by? This he embraces by recollection. Is time present? This he uses. Is it still to come? This he anticipates. He makes his life long by combining all times into one.
The Dell Inspiron 600m has a row of display lights just under the LCD panel. From left to right they are: power, hard drive activity, battery, and Bluetooth. When the battery no longer holds a charge, its LED blinks orange four times and then green once. Removing the battery altogether stops the blinking, but then the laptop wobbles as one of its four feet is on the battery. I was able to "disable" the orange flashing by removing the center control cover and covering the tiny LED on the motherboard with electrical tape. Of course, if your battery light is flashing, you should contact Dell immediately since it might explode anytime.
BadReader [160k] + Copies corrupt files (from CDs, for example) by skipping bad blocks. 📺
(via Mike Mills)
/windows | May 06, 2009
OS X: Move data from an old user account to a new one on the same computer #
Migrating data from an old user account to a new one under OS X (without first copying it to another device) can be a little tricky due to permissions issues. This procedure worked well for us, but it might not for you; proceed at your own risk (and joy):
BACKUP all critical data to an external drive and then disconnect that drive. Do not reconnect until you are SURE that everything has worked out.
Create the new user account and log in at least once. Do not create any new data under this account, as it would simply be overwritten in the ensuing steps.
Enable the root account
In Tiger: Applications > Utilities > Netinfo Manager > Security > Enable Root User
In Leopard: Applications > Utilities > Directory Utility > Edit > Enable Root User
In Snow Leopard, Lion, and Mountain Lion: /System/Library/CoreServices > Directory Utility > Edit > Enable Root User
Login as the root user and drag desired directories (iTunes, iPhoto Library, Keychains, etc) from the old user account to the new one. We are moving, not copying, the data.
Login as the new user and open a Finder window.
Right click on the new user's Home directory and select Get Info.
Under Sharing & Permissions, click "Apply to enclosed items" (Leopard users will need to click the gear icon first to reveal it).
That's it! If you run into any troublesome directories, try BatChmod for adjusting permissions (BTW, BatChmod can also remove ACLs added to a folder or file under Leopard). You may want to delete the old user account (System Preferences > Accounts) when you're sure everything is good. Finally, don't forget to disable the root account.
After installing Missing Sync for Palm OS 6.0.4 on Tiger 10.4.11, the application refused to launch. Its icon would simply bounce in the Dock for 20 seconds or so before crashing completely. The Console revealed this error:
Missing Sync for Palm OS[335] An uncaught exception was raised
Missing Sync for Palm OS[335] *** -[NSPlaceholderString initWithString:]: nil argument
fseventer did not turn up any clues as to where it might be hanging, so we made a new OS X user account; sure enough, Missing Sync worked fine there. We moved the old user data to the new user account, and everything worked beautifully. For a while.
After another hour or two worth of installs, data migration, etc, the same error returned. It took a nontrivial amount of time to finally isolate the culprit: the new user's Movies folder had been moved to an external hard drive and that drive was unmounted. When Missing Sync launched, it would crash if it could not find the Movies folder (even though syncing movies had been disabled earlier).
One final problem was with the Mark/Space Notebook: the categories imported just fine, but none of the memos. These instructions did the trick: Overwrite your desktop data with the handheld device. The process makes iSync (which normally doesn't offer an option for the handheld to overwrite the desktop) see all of the memos on the Palm as newer than those in Mark/Space Notebook, which it overwrites.
Looking for a simple way to take screenshots at a set interval, I happened upon this solution which relies on cron. Unfortunately, cron cannot schedule jobs in increments of less than one minute, and I wanted to take screenshots every 3 seconds. Adding delay and repeat to the same script did the trick (note that the save directory has also been changed to the current user's Pictures folder):
repeat
set DATE_TIME to do shell script "date +%Y_%m_%d_%H%M%S"
set fname to DATE_TIME & ".png"
do shell script "/usr/sbin/screencapture -x ~/Pictures/" & fname
delay 3
end repeat
UPDATE: Just found an open source REALbasic app called Timed Screenshot (2.5MB) that apparently does essentially the same thing. Haven't tried it yet since the AppleScript solution worked beautifully.
The Kindle is a swell eBook reader, but where it really shines is in offering free web access anywhere in the U.S. via Sprint's EVDO network. Most reviewers fail to appreciate just how cool this is, instead lamenting over the lack of support for streaming media, etc:
The e-ink screen is a joy to read, like a pillow for tired eyes. Yes, that sounds like really bad advertising copy, but it's true.
The Kindle simply blows away the iPhone (and all backlit LCDs) for reading electronic text with minimal eyestrain (Photo of an iPod Touch and Kindle)
Worst. Keyboard. Ever. It's hard to overstate just how mushy and unresponsive the keyboard is. In short, it makes the Treo 755P thumbboard feel like an IBM Model M. (Photo of the Treo and Kindle side-by-side)
Touch screen desperately needed for better navigation, especially on the web. At the very least, allow scrolling to loop so that you can (for example) jump from the first link to the bottom by pressing up once.
Replace "Home" button with "Prev Page". Virtually all right-handed people will understand this in a few seconds. Even better: make all of the buttons programmable.
ImageOptim 1.0.9 [1268k] {S} Convenient, open source GUI for the following PNG / JPG optimizers: AdvPNG, OptiPNG, PngCrush, JpegOptim, jpegtran, and optionally PNGOUT. All are included in the binary except PNGOUT, which requires a separate download due to licensing restrictions. 📺
🌱XORSearch 1.4.0 [40k] {S}+ Search for a given string in an XOR, ROL or ROT encoded binary file. 📺 🌱FTard Decoder Ring 2.0.1.5 [154k] + Decode rotated ASCII for analysis. Supports ROTX, ROT13, ROT47, XOR, Caesar, Binary, Hex, Octal, Morse, more. 📺
DualEXE Manipulator (Dexem) is a command-line utility written by Eugeny Suslikov (author of Hiew) for splitting or joining dual-executable files, i.e., binaries containing both DOS and Windows programs.
(Keywords: split DOS stub dual exe MZ PE Win32 both DOS and Windows)
John-Paul kindly informs us of his fledgling apps, all of which run under Windows 98 - Vista, require no installation, and do not write to the registry. Current offerings include: Favorites Menu, Process Killer, Random Memory Tester, and Quick File Catalog-UE.
MESS is a free emulator which emulates a large variety of different systems, including the Apple ][, Atari 2600, BeBox Dual603-133, and Commodore 64 among many more.
8086 Microprocessor Emulator - "The interactive system to study assembly language, computer architecture and reverse engineering."
Dupseek - Open source deduper written in Perl. "It starts by grouping files by size. Then it starts reading small chunks of the files of the same size and comparing them. It creates smaller groups depending on these comparisons. It goes on with bigger and bigger chunks (of size up to a hard-coded limit). It stops reading from files as soon as they form a single-element group or they are read completely (which only happens when they have a very high probability of having duplicates). This algorithm is much more efficient than competitors when dealing with large files of the same size. When files differ, reading usually stops after very few reads." $ dupseek -b delete /directory will delete all duplicates recursively (while preserving one original).
DataRescue's DD (DrDD) - Freeware "graphical disk imager intended for data recovery and backup of partially corrupted storage devices... The creation of the copy can be done by reading the device forward or backward... Copying backward may be interesting because, in some cases - typically hard drives - it disables the look ahead buffer and therefore reduces the risk of lock up on a full track." Windows and OS X versions available.
Greenshot - Open source screenshot tool for Windows. Capture windows, regions, or full screen; apply text and shapes to screenshots; more. Installer-free download available; .NET required. (Thanks to Angela for sending this in)
Easy Code - Visual assembly programming environment for building 32-bit Windows applications. Video
Data analysis in WinHex - "Recognize the type of unknown data... by sole use of visual representations"
IZArc2Go unpacked a certain EXE nicely, but could do nothing with the InstallShield cabinet file inside. Universal Extractor was similarly stymied. Thankfully, the SynCE project had coded unshield for just this purpose, and it worked like a charm:
David Malan has generously posted his entire fall 2007 Computer Science 50: Introduction to Computer Science I class online. This includes all video, audio, notes, slides, and source code. One wonders how O'Reilly School of Technology's Learn C Programming and others will fare given this free yet first-class offering. Here's the CS50 blurb:
Computer Science 50: Introduction to Computer Science I is a first course in computer science at Harvard College for concentrators and non-concentrators alike. More than just teach you how to program, this course teaches you how to think more methodically and how to solve problems more effectively. As such, its lessons are applicable well beyond the boundaries of computer science itself. That the course does teach you how to program, though, is perhaps its most empowering return. With this skill comes the ability to solve real-world problems in ways and at speeds beyond the abilities of most humans.
Use the dropper next to "Old color:" to select watermark color
Click box next to "New color:" to select replacement color (generally this would be the background color)
Goodbye watermark!
Does anyone have a method using free or open source tools?
UPDATE:CyberDoc and Mike Mills kindly recommended the freeware PhotoFiltre (installer-free version available), which worked every bit as well as SnagIt. It's as simple as clicking Adjust > Replace color and using the droppers to select. Initially, most menu items were grayed out for the GIF I had opened, but Mike informed me of the solution: Image > Mode > RGB color. Thanks to you both!
After leaving the University, he joined his brother in teaching a private school, which he soon renounced. His father was a manufacturer of lead-pencils, and Henry applied himself for a time to this craft, believing he could make a better pencil than was then in use. After completing his experiments, he exhibited his work to chemists and artists in Boston, and having obtained their certificates to its excellence and to its equality with the best London manufacture, he returned home contented. His friends congratulated him that he had now opened his way to fortune. But he replied that he should never make another pencil. "Why should I? I would not do again what I have done once." He resumed his endless walks and miscellaneous studies, making every day some new acquaintance with Nature, though as yet never speaking of zoology or botany, since, though very studious of natural facts, he was incurious of technical and textual science.
Guy Kirkwood kindly sends word of Prevx Edge, and points out this quote as being especially relevant to TinyApps.Org readers:
Edge has been developed with speed and optimization in mind. The entire program of Edge consists of one executable and one driver. All of the cleanup, realtime protection, self protection, rootkit detection, malware detection, and high-color user interface are tightly integrated into these files, requiring only about 800kb on disk. In the system, Edge only requires one service and one driver to be registered - no other registry keys are required and no other libraries need to be installed, and all user accounts on the local computer are fully supported and protected automatically, even under UAC, with the GUI process of Edge switching between users as they log in.
Installation and un-installation of Edge require only seconds and can take place without rebooting the system and there is no need to uninstall any other security software when installing or using Edge.
The standalone Prevx CSI version is described as a "FREE Malware Scanner", but users should be aware that it will not remove most infections without payment (unlike TrendMicro's SysClean, Kaspersky's Virus Removal Tool, etc, which scan and remove for free). Even though it is a single EXE executable, CSI makes numerous registry and file system changes. Most of these can be removed by running the uninstaller which appears in the Add/Remove Control Panel.
This will be obvious to regular nmap users, but Google did not turn up a quick and ready answer for why MAC addresses were not appearing during a ping scan:
$ nmap -sP 192.168.1.0/24
Starting Nmap 4.68 ( http://nmap.org ) at 2009-04-03 07:05 HST
Host 192.168.1.1 appears to be up.
Host 192.168.1.3 appears to be up.
Host 192.168.1.6 appears to be up.
...
Nmap done: 256 IP addresses (10 hosts up) scanned in 1.373 seconds
I initially just added &&arp -a | grep -v 'incomplete' to get the MAC addresses, but that was rather inelegant (and slow). Finally I stumbled onto the answer in the nmap book:
The -sP option sends an ICMP echo request and a TCP ACK packet to port 80 by default. When executed by an unprivileged user, only a SYN packet is sent (using a connect call) to port 80 on the target. When a privileged user tries to scan targets on a local ethernet network, ARP requests are used unless --send-ip was specified.
I felt the gentle scolding of Holmes ("One more coruscation, my dear Watson ---- yet another brain-wave!") as I realized that most of the nmap examples were from a root prompt - ah!
$ sudo nmap -sP 192.168.1.0/24
Password:
Starting Nmap 4.68 ( http://nmap.org ) at 2009-04-03 07:12 HST
Host 192.168.1.1 appears to be up.
MAC Address: 00:18:39:xx:xx:xx (Cisco-Linksys)
Host 192.168.1.3 appears to be up.
MAC Address: 00:0D:0B:xx:xx:xx (Buffalo)
Host 192.168.1.6 appears to be up.
MAC Address: 00:1F:F3:xx:xx:xx (Apple)
...
Nmap done: 256 IP addresses (10 hosts up) scanned in 4.809 seconds
MAMP is a quick and easy stand-alone AMP environment for Mac. It does not interfere with existing versions, and can be uninstalled by simply deleting the MAMP directory. Primarily intended as a PHP development environment, MAMP should not be used for public-facing servers.
For the very occasional vi / vim user who just wants to edit a config file on a remote server, thank you very much:
Switch to insert mode (from which you can enter text)
i
Switch to command mode (from which you issue the commands below)
ESC
Quit without saving changes
:q!
Save (write) the file
:w
Save (write) the file and quit vi
:wq
Delete characters under and after cursor (like Del key in most apps)
x
Delete characters before the cursor (like Backspace key in most apps)
X
Find previous
?
Find next
/
Cursor up, down, left, right (arrow keys may also work)
k, j, h, l
/nix | Mar 31, 2009
Bypass Dell Inspiron 1100 battery check during BIOS update #
Unfortunately, the BIOS flashing utility (I1100A32.exe) will halt if it does not detect a charged battery:
ERROR
Battery must be installed.
ROM update not performed.
Press any key to exit.
Perhaps there are some documented command line switches or arguments? Apparently not:
A:\>I1100A32 /h
Flash BIOS Update Program - Version A32
Copyright 1990-2003 Dell Computer Corporation. All Rights Reserved.
usage: I1100A32
The scanty documentation was equally unhelpful, as were my attempts to reverse engineer the flasher with IDA Pro and OllyDbg. Running strings for a clue to some switch or other proved fruitless as well.
UPDATE 1: I finally found the hidden switches in I1100A32.exe with a standard hex editor - they were "encrypted" with a ROT-1 Caesar cipher!! The first group is from the DOS app, the second group from Windows (both versions are included in the EXE, which can be split using DualEXE Manipulator):
Additional information on these switches can be found here and here. Don't play with these unless you know exactly what you are doing and are willing to take responsibility for your actions.
UPDATE 2: Didier Stevens kindly updated his open source XORSearch app (which helps uncover obfuscated strings) to support ROT encoding. Usage example: C:\>XORSearch -f file.with.list.of.strings.to.find file.with.obfuscated.strings
Thankfully, Christopher Muto had posed the following question to alt.sys.pc-clone.dell back in 2004:
does anyone know of a way to flash the bios on an
inspiron 3800 that does not have a battery?
I have heard of a /forceit option when executing
the flash. Another option I have seen is /jabil
when forcing it to flash when it thinks it has an
incompatible BIOS update -- maybe try it if the other
option does not work?
Since these batteries are available on eBay for only
$40-50, it is probably not worth the risk of damaging
your system.
Throwing caution to the wind, I decided to give the /forceit option a try (readers: do so at your own risk and joy). Lo and behold, the evil battery check was miraculously bypassed! Hallelujah!
/misc | Mar 29, 2009
Who needs a database when you've got sed and awk? ;-) #
As a simple text-based site, TinyApps.Org is ideal for parsing with *nix text processing commands. Here is a one-liner to calculate the average file size of the Palm apps:
First, grep will return all patterns within palm.html matching an open bracket, followed by anything, followed by a close bracket. The -o option (only-matching) instructs grep to show only the part of a matching line that matches the pattern (as opposed to returning the entire line). This gives us output like:
[58k]
[62k]
[296k]
...
Next, we'll use sed to (s)ubstitute any non-numeric character with nothing, (g)lobally:
sed 's/[^0-9]//g'
which returns:
58
62
296
...
Finally, we'll use awk to total and average the numbers:
awk '{s+=$1}END{print s/NR}'
{s+=$1} sums the first (and only) column. {print s/NR} prints the sum divided by NR (an awk variable that returns the Number of Records (i.e., lines) read so far).
And the result is:
112.324
This worked beautifully on all of the other app pages as well (osx.html, internet.html, etc) save for one: system.html. On that page, one of the entries reads: "[various sizes]". This is the only instance in all of the app pages where a number is not listed within the brackets. As a result
grep -o "\[.*\]" system.html | sed 's/[^0-9]//g'
displays a blank for that line:
...
1454
<-- Note the blank line here
30
...
which means that awk divides (in this case) 18729 by 55 records instead of the correct 54.
In order to remedy this problem, we will add a second command to sed, separated from the first by a semicolon:
sed 's/[^0-9]//g;/./!d'
/./!d deletes any line which does not contain at least one character, thus removing the single blank line. Now awk will divide the total by the correct number of lines to arrive at the true average (346.833). The full one liner is now:
UBIK "is a minimal, console only, utility for managing small fragments of info like your book or CDROM collection, URLs, etc, from the commandline." (via the author, Mike Sanders)
MemPad "is a plain text outliner and note taking program with a structured index. All pages are stored in a single file." Like a mini version of Treepad. (via Mike Mills)
Gaijin.at freeware apps - A rich bounty of neat little tools, from port mapping, to USB write blocking, to offline registry viewing - a must-visit for tiny app fans.
Comparing and merging folders in OS X: via Terminal, Xcode's free FileMerge, and Changes, a very cool shareware app that handles conflicts (like filename collisions) well.
PixaMSN v0.61 - Tiny open source MSN Messenger clone. "It consists of a small executable file and nothing else. Nothing is written to your hard disk, nothing is stored in your registry." (via Corrado)
eXtreme Power Supply Calculator Lite helps you estimate what size power supply might be appropriate for your hardware. Although it is a simple web-based app, the following notice appears at the top in red caps: "ATTENTION: FOR PERSONAL, NON-COMMERCIAL USE ONLY". There is a Pro version for $1.99 which presumedly permits commercial use, though this is not explicitly mentioned in the comparison table.
Seagate Discwizard is now based on Acronis True image 11, which offers cloning (proportional if desired), backup/restore, and wiping of disks. Normally, an internal Seagate/Maxtor brand drive is required for the boot CD to function (otherwise the following message appears: "Error - To use the product, at least one Seagate or Maxtor device should be installed in your system"). This is an unfortunate bug for users of Seagate/Maxtor external devices. Thankfully, fmyhr has posted a workaround on Seagate's Community Forums that was provided by one of their techs: at the error screen, hold down Alt while typing "t" then "o" (for "tech override") and then click OK.
Michael Stumpf kindly informs us of Trevor Caira's Timebook, "a small utility which aims to be a low-overhead way of tracking what you spend time on. It can be used to prepare annotated time logs of work for presentation to a client, or simply track how you spend your free time. Timebook is implemented as a python script which maintains its state in a sqlite3 database."
Mike Sawyer kindly informs us of Everything, a search engine for NTFS volumes that locates files and folders by name instantly. The non-installing version is just a 267k download.
We ascribe beauty to that which is simple;
which has no superfluous parts;
which exactly answers its end;
which stands related to all things;
which is the mean of many extremes.
- Ralph Waldo Emerson in The Conduct of Life, Chapter VIII, Beauty
Palm has instructions (for now) on how to Change or delete your device's User Name. They recommend using Tools > Users > Rename inside of Palm Desktop for changing the user name. If you don't have access to Palm Desktop, you can change the Palm OS username on the device directly with Collin Mulliner's ChangeName.
"Last Changed Files finds the 100 recent changed files on your hard disk or within multiple subdirectories ... takes less than 30 seconds to scan 200 GB." Especially love the following blurb, which could well have been lifted virtually verbatim from our FAQ:
doesn't require runtimes
doesn't require installation
doesn't write to the registry
doesn't modify files outside of its own directories
isn't adware
The only disappointment is an Internet Explorer window with an ad glommed onto the bottom; clicking on a link therein opens a new IE window, regardless of default browser setting.
/windows | Feb 11, 2009
Installing Windows XP on a Sony VAIO laptop with SATA hard drive #
Attempting to install Windows XP from CD-ROM onto a Sony VAIO PCG-3B2L (VGN-FW140E) laptop failed due to XP's lack of SATA drivers. Yes, there are guides like Install Windows XP on SATA without a Floppy which generally recommend using nLite to master a new Windows XP CD with the SATA drivers slipstreamed in. As that seemed like far too much effort, I downloaded the SATA driver from Sony, copied it to a floppy, and inserted it into an IBM USB floppy drive. Unfortunately, the Windows installer did not seem to recognize the drive. Options in the BIOS (F2 to access) were slim; on a hunch I enabled "External Device Boot" and restarted. Low and behold, the installer now recognized the drive! The final problem was which of the dozen or so listed drivers to select (turned out to be "Intel ICH9M-E/M SATA AHCI Controller" in my case).
/windows | Feb 11, 2009
Two passages from W. Somerset Maugham's "The Razor's Edge" #
"Has it occurred to you that transmigration is at once an explanation and a justification of the evil of the world? If the evils we suffer are the result of sins committed in our past lives we can bear them with resignation and hope that if in this one we strive towards virtue our future lives will be less affected. But it's easy enough to bear our own evils, all we need for that is a little manliness; what's intolerable is the evil, often so unmerited in appearance, that befalls others. If you can persuade yourself that it is the inevitable result of the past you may pity, you may do what you can to alleviate, and you should, but you have no cause to be indignant."
"He is without ambition and he has no desire for fame; to become anything of a public figure would be deeply distasteful to him; and so it may be that he is satisfied to lead his chosen life and be no more than just himself. He is too modest to set himself up as an example to others; but it may be he thinks that a few uncertain souls, drawn to him like moths to a candle, will be brought in time to share his own glowing belief that ultimate satisfaction can only be found in the life of the spirit, and that by himself following with selflessness and renunciation the path of perfection he will serve as well as if he wrote books or addressed multitudes."
"The World's Smallest Postal Service (WSPS) is a teeny tiny transcription service and roaming post office based in the San Francisco Bay Area and also available online."
Trifles make perfection and perfection is no trifle. —Michelangelo
If a man is called to be a streetsweeper, he should sweep streets even as Michelangelo painted, or Beethoven composed music, or Shakespeare wrote poetry. He should sweep streets so well that all the hosts of heaven and earth will pause to say, here lived a great Streetsweeper who did his job well. —Martin Luther King, Jr.
Perfection consists not in doing extraordinary things, but in doing ordinary things extraordinarily well. —Angelique Arnauld
/misc | Jan 25, 2009
List of device bandwidths / data transfer speeds #
Wikipedia has an excellent list of device bandwidths. It would be nice to pair with a list of maximum distance / cable lengths, maybe something along the lines of:
Type
Max Speed
Unit
Max distance / cable length
Notes
Bluetooth wireless PAN (2.4 GHz band)
720
Kbps
10-100 meters
Distance depends on device class: Class 1 - 10m, Class 2 - 50m, Class 3 - 100m
Fast Ethernet (100Base-T)
100
Mbps
100 meters
FireWire 400 (IEEE 1394A)
400
Mbps
4.5 meters
Up to 16 cables can be daisy chained using active repeaters
USB 3.0
5
Gbps
5 meters
/misc | Jan 16, 2009
Opening and creating password-protected zip files in OS X #
As of 10.5, the Finder cannot open password-protected zip files. It simply returns the helpful message "Unable to unarchive 'filename' into 'Location'. (Error 1 - Operation not permitted)" as seen here:
You can, however, use the Terminal to both open and create encrypted zip files:
Unencrypt and extract: unzip secret.zip
Compress and encrypt: zip -re new.zip folder_of_secrets/
/mac | Jan 11, 2009
"A duplicate name exists on the network" error when attempting to change Computer Name #
After an HP NAS died, we repurposed a workstation as the new file server. Attempting to change the computer name to match the dead NAS, the following error kept appearing: "A duplicate name exists on the network", even though the NAS was not connected. We deleted all references to the NAS in Network Places and unmapped all drives to no avail. nbtstat -c returned no entries lurking in the NetBIOS cache. Finally, we disabled the workstation's NIC and were able to change the name without errors. Rebooted the workstation, enabled the NIC, and all was well.