
HOME

0. Internet
1. Text
2. Graphics
3. System
4. File
5. Misc
6. Palm
7. OS X

BLOG

DOCS

FAQ

RSS (?)
|
Newly added to the Docs section: #
Mounting partitions from full disk images. Covers several methods for mounting with or without a specified offset.
/nix | Aug 29, 2010 Running Roadkil's Unstoppable Copier in Ubuntu Linux #
Roadkil's Unstoppable Copier can copy files from failing media while skipping files that are corrupt or unrecoverable. The Windows version has been listed for many years; here's how to get the Linux version working under Ubuntu 9.10:
- Download the Linux version
- Extract unstopcp from unstopcp.gz
- chmod +x unstopcp or from the GUI: right click unstopcp > Properties > Permissions > check "Allow executing file as a program" > Close
- Kubuntu users (or others running KDE) can simply double click unstopcp to launch it. GNOME users may find nothing happens after double clicking. Running unstopcp from the Terminal reveals: unstopcp: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory. libqt-mt is the Trolltech Qt library, necessary for running KDE3 apps.
- Head to System > Administration > Synaptic Package Manager, do a quick search for "libqt3-mt" and install it.
- Now GNOME users should be able to launch unstopcp successfully:

- Notes:
- Logging and auto skipping of damaged files can be enabled under the "Settings" tab.
- Had to launch with sudo in order to copy user files from an OS X HFS+ volume (as permissions are maintained across platforms).
- To copy directories instead of a single file, put a trailing asterisk in the Source path (see screenshot above), otherwise nothing will be copied.
/nix | Aug 24, 2010 Generate HTML index page of images or other HTML files #
Pich [7k] + Generates an HTML page of all images (JPG, GIF, PNG) in the current directory and (optionally) subdirectories. 
HTI (Hyper-Text Index) 0.5 [16k] {S}+ Generates an index page of HTML files. Includes titles, meta descriptions, and H1 - H6 headings. ANSI C source code available on request, on a "don't laugh" basis. 
(via Mike Mills)
/windows | Aug 23, 2010 Dwelling #
- Small rooms or dwellings set the mind in the right path, large ones cause it to go astray. -- Leonardo da Vinci
- For my part, as I grow older I am more and more inclined to reduce my baggage, to lop off superfluities. I become more and more in love with simple things and simple folk -- a small house, a hut in the woods, a tent on the shore. The show and splendor of great houses, elaborate furnishings, stately halls, oppress me, impose upon me. They fix the attention upon false values, they set up a false standard of beauty; they stand between me and the real feeders of character and thought. -- John Burroughs
- Simplicity of life, even the barest, is not a misery, but the very foundation of refinement. -- William Morris
- There is an old story about a famous rabbi living in Europe who was visited one day by a man who had traveled by ship from New York to see him. The man came to the great rabbi's dwelling, a large house on a street in a European city, and was directed to the rabbi's room, which was in the attic. He entered to find the master living in a room with a bed, a chair, and a few books. The man expected much more. After greetings, he asked, "Rabbi, where are your things?" The rabbi asked in return, "Well, where are yours?" His visitor replied, "But, Rabbi, I'm only passing through," and the master answered, "So am I, so am I." -- Jack Kornfield
- Turn yourself into gold and then live wherever you please. -- Sri Ramakrishna
/misc | Aug 20, 2010 OS X: Mount disks as read only or block automounting altogether #
Aaron Burghardt's open source Disk Arbitrator provides a simple GUI for changing OS X's automount behavior. Automounting can be disabled completely (especially handy for drive imaging / data recovery via ddrescue, etc) or mounts can be forced as read-only (for forensics, etc, though a hardware write-blocker is still recommended).

This little app replaces the following hacks I've been using to prevent automounting of USB / Firewire drives in OS X:
- biovizier's sudo chflags uchg /Volumes
- Ryan Kubasiak's backup and removal of /etc/mach_init.d/diskarbitrationd.plist for Tiger. This one was new to me, and Ryan kindly informs us that it is the only way to disable Disk Arbitration under 10.4.
- Charles Edge's launchctl stop 0×10abe0.diskarbitrationd for Leopard
- Matt's sudo launchctl unload /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist for Snow Leopard. This method (and probably the one above) has the unfortunate side effect of disabling diskutil: "Unable to run because unable to use the DiskManagement framework. Common reasons include, but are not limited to, the DiskArbitration framework being unavailable due to being booted in single-user mode."
UPDATE 1: Aaron kindly replied to my email, pointing out that the "stop" command (since removed) isn't necessary in the fourth method above and that pausing/resuming diskarbitrationd with SIGSTOP and SIGCONT offers another option (though it too disables diskutil):
$ sudo launchctl list | grep diskarbitrationd
188 - com.apple.diskarbitrationd
$ sudo kill -SIGSTOP 188 # pauses diskarbitrationd, disabling automount
$ sudo kill -SIGCONT 188 # resumes diskarbitrationd, reenabling automount
UPDATE 2: More on disabling Disk Arbitration from Apple Examiner.
/mac | Aug 17, 2010 Web browser security analysis #
Qualys BrowserCheck checks your browser as well as browser plugins and add-ons to identify insecure and out-of-date versions that put you at risk. Runs under Windows / Mac OS X, and detects:
- Windows OS support expiration
- Browser version (IE 6.0+, Firefox 3.0+, Chrome 4.0+)
- Adobe Flash Player
- Adobe Reader 5.x and above
- Adobe Shockwave Player
- Apple Quicktime
- BEA JRockit
- Microsoft Silverlight
- Microsoft Windows Media Player
- Real Player
- Sun Java
- Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
/misc | Aug 14, 2010 OS X: Get OS version info in Terminal #
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.6.4
BuildVersion: 10F569
$ sw_vers -productVersion
10.6.4
Especially handy when resetting a password in single user mode, since the method varies based on which version of OS X is running.
/mac | Aug 14, 2010 Getting Google to index your Blosxom blog correctly #
I originally asked (and answered) this question on Doctype, and reproduce it here (with slight modifications) for other Blosxom users:
Blosxom creates multiple copies of the same entry in different directories. For example, a given entry would have:
- its own unique URL
- a place in the topic index
- a place in the month index
- a place in the year index
I wanted Google to prefer the first entry, since it makes finding content easier. I tried using robots.txt to exclude indexing of the topic and date indexes, but then Google ignores or cannot find the unique URLs either.
I ended up adding
<meta name="robots" content="noindex, follow">
to the blog index pages via this this one-liner
find -name index.html -print0 | xargs -0 perl -pi -e 's/<head>/<head>\n<meta name="robots" content="noindex, follow">/g'
at the end of my static publishing routine.
That way, search engines can find the canonical URLs, but will ignore all of the topic and date index pages.
UPDATE 1: Just found someone with the same issue who also solved it with "noindex, follow".
UPDATE 2: After a few weeks Google was properly indexing my site, and continues to do so after more than a month.
UPDATE 3: Another report of using robots meta tag to fix search engine indexing.
/blosxom | Aug 13, 2010 OS X: Printing in grayscale #
A quick search turned up a number of guides on how to print in greyscale under OS X, but they all entailed saving to PDF first and then opening in Preview. The following method worked directly from the print dialog in Snow Leopard (image) with a printer driver that did not include a native grayscale option:
- Paper Type/Quality
- Color Options
- Grayscale
- Black Print Cartridge Only
For easy access in the future, just click the "Presets:" pop-up menu and save as "grayscale" or what have you.
/mac | Aug 07, 2010
|
Categories
Blosxom Archive
Blogger Archive
Ezine Archive
|