7. OS X
sed - convert regex pattern matches to lowercase #
In this example, we'll convert text within bold tags to lowercase. Let's have a look first to make sure our search pattern returns the desired results:
$ grep '<b>.*<\/b>' foo.html <p><a href="/">tinyapps.org</a> / <b>Graphics</b></p> <p><b>Viewing & Editing</b></p> <p><b>Measuring</b></p> <p><b>Optimizing</b></p> <p><b>Screen Capture</b></p> <p><b>Fonts</b></p> <p><b>Other</b></p>Next, a test run, sending output to stdout:
$ sed 's/<b>.*</b>/\L&/g' foo.htmlAs expected, all characters between bold tags were converted to lowercase. (In the replacement pattern, "&" corresponds to the pattern found, and "\L" converts the text to lowercase.) Now let's use -i to write the changes in place (apparently introduced around GNU sed version 4):
$ sed -i 's/<b>.*</b>/\L&/g' foo.htmlFor batch processing multiple files:
$ grep '<b>.*<\/b>' *.html ... $ for i in '*.html'; do sed -i "s/<b>.*</b>/\L&/g" $i; doneTwo related tips by Karoly: 1. Use double quotes so the shell can substitute variables. 2. If your search or replace string contains special characters you need to escape them.
/nix | May 19, 201313.3" E Ink tablet #
Sony is planning to release an A4-sized E Ink tablet later this year using E Ink's Mobius display. Until then, the Kindle DX makes a good computer monitor. (Note to hardware manufacturers: still waiting for a plug-and-play E Ink monitor for text-intensive tasks and perhaps even video/animation).
/eink | May 19, 2013Download and combine F4F files into FLV #
"Chug a Bug" kindly details how to download and merge F4F files into a single FLV file with URL Snooper and AdobeHDS.php (PyURLSnooper offers a cross-platform alternative to the Windows-based URL Snooper, though any app that captures HTTP traffic will work, including Firefox's Web Console). The gist is to locate the F4M (Flash Media Manifest) file and feed it to AdobeHDS.php.
/misc | May 18, 2013Windows 7 Firewall - Cannot disable or remove exceptions #
If attempting to disable or remove Windows Firewall exceptions using the standard method fails, try this: Control Panel > Administrative Tools > Windows Firewall with Advanced Security > select "Inbound Rules" or "Outbound Rules" > right click and delete or disable rule. (Thanks moogly!)
/windows | May 17, 2013Rugged E Ink Android tablet for the backcountry #
Earl is an E Ink tablet built for outdoor use:
/eink | May 11, 2013For fans of pixelated art and Hayao Miyazaki #
Russell Thomson has crafted two charming wallpaper collections of Studio Ghibli films, including:
/misc | May 08, 2013Money #
/misc | May 07, 2013"This may be the finest piece of word processing code ever written" #
VDE 1.96A [90k] + DOS/console text editor with an essential core of word processing features, including support for WordStar, WordPerfect, and Microsoft Word formats.
Dvorak quote from 1990:
"This may be the finest piece of word processing code ever written. I have never been as impressed with anything as I have with VDE 1.5... writing software in 100 percent assembly language still pays off in performance and reduced code size. It's an astonishing product, believe me. It's more than the perfect laptop word processor... I cannot give a higher recommendation for any product that I have seen in ten years... Top recommendation."
/windows | May 05, 2013Batch crop a stack of visually overlaid images like Briss #
Briss allows cropping a stack of visually overlaid PDF pages to remove extraneous space.
I searched high and low for an app that could do the same for images. The only thing I found was PixEdit, which does the job admirably, but at a cost of £1,250. ImageMagick's awesome command line tools were not well-suited to the task, as the images were highly variable.
I posted a plea for help on SuperUser that was promptly downvoted and closed, but not before ForeverWintr kindly pointed me in the right direction: ImageJ. Johannes Schindelin generously filled in the details that I was dark on. Here is the complete walkthru:
/misc | May 03, 2013Drag and drop network file transfer #
Similar to the previously mentioned Dukto, Mover Connect enables configureless drag and drop network file transfer between Macs (and optionally iOS devices). Tested under 10.5 through 10.8.
/mac | May 01, 2013
2013: 5 4 3 2 1
2012: 12 11 10 9 8 7 6 5 4 3 2 1
2011: 12 11 10 9 8 7 6 5 4 3 2 1
2010: 12 11 10 9 8 7 6 5 4 3 2 1
2009: 12 11 10 9 8 7 6 5 4 3 2 1
2008: 12 11 10 9 8 7 6 5 4 3 2 1
2007: 12 11 10 9 8 7 6 5 4 3 2 1
2006: 12 11 10 9 8 7 6 5 4 3 2 1
2005: 12 11 10