TinyApps.Org
Small is beautiful


 HOME

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

 BLOG

 DOCS

 FAQ

 RSS (?)





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.html
As 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.html
For batch processing multiple files:
$ grep '<b>.*<\/b>' *.html
...
$ for i in '*.html'; do sed -i "s/<b>.*</b>/\L&/g" $i; done
Two 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, 2013

13.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, 2013

Download 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, 2013

Windows 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, 2013

Rugged E Ink Android tablet for the backcountry #
Earl is an E Ink tablet built for outdoor use:
  • Android 4.1
  • Flexible 6" E-ink screen (1024x768)
  • Sunlight viewable with lunar lantern mode
  • Glove friendly IR touchscreen
  • Waterproof shell
  • Kickstand
  • Solar (or USB) charging
  • i.MX 6 DualLite 1GHz Cortex A9
  • 1GB ram
  • 16GB memory + microSD
  • WiFi b/g/n
  • BT 4.0
  • ANT+
  • NFC
  • FRS/GMRS/MURS
  • GPS + GLONASS
  • Accelerometer
  • Gyroscope
  • Magnetometer
  • Temperature
  • Barometer
  • Humidity
  • Anemometer
  • AM/FM/SW/LW
  • IR blaster
  • 20+ hour battery
  • 20" USB lanyard
  • 303 grams (10.8 oz)
  • 183mm x 121mm x 15mm (7.2" x 4.75" x 0.6")

/eink | May 11, 2013

For fans of pixelated art and Hayao Miyazaki #
Russell Thomson has crafted two charming wallpaper collections of Studio Ghibli films, including:

Ghibli Pixel Wallpaper Pack

Ghibli Pixel Wallpaper Pack
  • Castle in the Sky 天空の城ラピュタ
  • Howl's Moving Castle ハウルの動く城
  • Kiki's Delivery Service 魔女の宅急便
  • My Neighbor Totoro となりのトトロ
  • Nausicaä of the Valley of the Wind 風の谷のナウシカ
  • Ponyo 崖の上のポニョ
  • Princess Mononoke もののけ姫
  • Spirited Away 千と千尋の神隠し
  • The Cat Returns 猫の恩返し
  • Whisper of the Heart 耳をすませば

Ghibli Pixel Wallpaper Collection 2

Ghibli Pixel Wallpaper Pack
  • Castle in the Sky 天空の城ラピュタ
  • Howl's Moving Castle ハウルの動く城
  • My Neighbor Totoro となりのトトロ
  • Princess Mononoke もののけ姫
  • The Cat Returns 猫の恩返し
  • The Secret World of Arrietty 借りぐらしのアリエッティ
  • Whisper of the Heart 耳をすませば

/misc | May 08, 2013

Money #
  • "It does not require money to be neat, clean, and dignified." -- Mahatma Gandhi
  • "Nothing that really helps towards perfection costs more than is within the means of every person who reads these pages. The expenses connected with daily meditation, with the building-up of mental habits, with the practice of self-control and of cheerfulness, with the enthronement of reason over the rabble of primeval instincts--these expenses are really, you know, trifling." -- Arnold Bennett
  • "I am absolutely convinced that no wealth in the world can help humanity forward, even in the hands of the most devoted worker in this cause. The example of great and pure characters is the only thing that can produce fine ideas and noble deeds. Money only appeals to selfishness and always tempts its owners irresistibly to abuse it. Can anyone imagine Moses, Jesus, or Gandhi armed with the money-bags of Carnegie?" -- Albert Einstein

/misc | May 07, 2013

"This may be the finest piece of word processing code ever written" #
Green Award 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.  Screenshot

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, 2013

Batch crop a stack of visually overlaid images like Briss #
Briss allows cropping a stack of visually overlaid PDF pages to remove extraneous space.Briss cropping a stack of visually overlaid pages

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:

  1. Open desired images in ImageJ (To enable multiple selection in the open file dialog box: Edit > Options > Input/Output... > Use JFileChooser to open/save > OK. Alternatively, simply drag and drop multiple files onto ImageJ's toolbar.)
  2. Image > Stacks > Images to Stack > OK
  3. Image > Stacks > Z Project... > OK
  4. Click the rectangle icon in the toolbar
  5. Click and drag over desired area (called a "region of interest" in ImageJ) in the Z projection
  6. Click on the stack created in step 1 > Edit > Selection > Restore Selection
  7. Image > Crop
  8. File > Save As > Image Sequence... > choose desired image format and options > OK

/misc | May 03, 2013

Drag 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.  Screenshot Download

/mac | May 01, 2013



Categories
/blosxom
/eink
/mac
/misc
/nix
/palm
/windows

Blosxom Archive
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

Blogger Archive
2005: 10 9 8 7 6 5 4 3 2 1
2004: 12 11 10 9 8 7 6 5 4 3 2 1
2003: 12 11 10 9 8 7 6

Ezine Archive
2004: 4 3 2 1
2003: 12 9 8 7 6 5 4 2 1
2002: 12 10 9 8 7 6 5 3 2 1
2001: 12 11 10