<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brian Klug: Internet Adventures &#187; Gadgets</title>
	<atom:link href="http://www.brianklug.org/category/gadgets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brianklug.org</link>
	<description>Give me technology, or give me death!</description>
	<lastBuildDate>Mon, 09 Jan 2012 21:11:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>A Quick Analysis of EXIF data from Apple&#8217;s iPhone 4S Camera Samples</title>
		<link>http://www.brianklug.org/2011/11/a-quick-analysis-of-exif-data-from-apples-iphone-4s-camera-samples/</link>
		<comments>http://www.brianklug.org/2011/11/a-quick-analysis-of-exif-data-from-apples-iphone-4s-camera-samples/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 22:33:08 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Camera]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[iPhone 4S]]></category>
		<category><![CDATA[Location]]></category>

		<guid isPermaLink="false">http://www.brianklug.org/?p=555</guid>
		<description><![CDATA[Motivation In the course of doing smartphone reviews for AnandTech, I&#8217;ve taken a lot of photos for the expressed purpose of comparing camera quality. I don&#8217;t have an exact number, but it&#8217;s an absurd number of images, and of those, maybe 20% or so actually get published. We reviewed the iPhone 4S and discussed its <a href="http://www.brianklug.org/2011/11/a-quick-analysis-of-exif-data-from-apples-iphone-4s-camera-samples/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<h1>Motivation</h1>
<p>In the course of doing smartphone reviews for AnandTech, I&#8217;ve taken a lot of photos for the expressed purpose of comparing camera quality. I don&#8217;t have an exact number, but it&#8217;s an absurd number of images, and of those, maybe 20% or so actually get published. We reviewed the iPhone 4S and discussed its camera at length in <a href="http://www.anandtech.com/show/4971/apple-iphone-4s-review-att-verizon/11">our review</a>, but one of the things that piqued my attention was Apple&#8217;s claim that they had were sharing untouched, direct-from-the-iPhone samples <a href="http://www.apple.com/iphone/built-in-apps/camera.html">online</a> (at the bottom). In case you want all of the images, I&#8217;ve uploaded a zip <a href="http://www.brianklug.org/wp-content/uploads/2011/11/Sampleimages.zip">here</a> locally.</p>
<p>What&#8217;s interesting is that by default, iOS captures geolocation data on each image capture unless you decline the location services request on initial launch. I was curious to find out just how untouched these images were and whether all the EXIF data was left intact, including the GPS location data. Clearly these photos were taken at places that are either some engineer&#8217;s favorite hideouts, or possibly much more. Also, there&#8217;s that ever looming question of when they were taken, and whether there&#8217;s any chance anyone could&#8217;ve seen Apple employees taking photos with an unreleased iDevice at some scenic location.</p>
<p>You can analyze EXIF data in any number of image manipulation packages, and increasingly desktop OSes are exposing this data directly (Finder, Explorer, e.t.c.) but for quick analysis I turned to <a href="http://exifdata.com/exif.php">exifdata.com</a> which does a nice job visualizing everything. Alternatively one can just dump the EXIF data using libraries like the very popular <a href="http://www.sno.phy.queensu.ca/~phil/exiftool/">exiftool</a>.</p>
<h2>Image 1 &#8211; <a href="http://www.apple.com/iphone/includes/camera-gallery/08.html#zoomerlay-gallery8">IMG1031</a></h2>
<p>Here&#8217;s the dump from one of Apple&#8217;s demo images, &#8220;IMG_1031.JPG&#8221; which is the squirrel photo shown during the announcement event. There&#8217;s all the standard data included in the full headers, and you can see specifications such as focal length, exposure time, ISO, model, and the software (iOS 5) used. There are some other fields as well.</p>
<p>SubjectArea I believe corresponds to either where the face detection routine selected an AE/AF target with highest confidence value (most likely to be a face), or where the image was focused using tap to focus. The iPhone 4S also includes some new fields at the very bottom such as 35mm equivalent focal length, field of view, hyperfocal distance (at half this distance, all objects and further meet image plane blur criterion and appear in focus &#8211; this half trips people up), and even circle of confusion diameter (blur size/circle of confusion). These values at the very end appear to be specific to the iPhone 4S (and possibly its H4 ISP) and aren&#8217;t part of the JEITA EXIF 2.2 specification.</p>
<pre>ExifTool Version Number         : 8.68
File Name                       : IMG_1031.JPG
Directory                       : .
File Size                       : 3.1 MB
File Modification Date/Time     : 2011:10:05 01:43:44-07:00
File Permissions                : rw-r--r--
File Type                       : JPEG
MIME Type                       : image/jpeg
Exif Byte Order                 : Big-endian (Motorola, MM)
Make                            : Apple
Camera Model Name               : iPhone 4S
Orientation                     : Rotate 180
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : 5.0
Modify Date                     : 2011:08:24 13:13:33
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/286
F Number                        : 2.4
Exposure Program                : Program AE
ISO                             : 64
Exif Version                    : 0221
Date/Time Original              : 2011:08:24 13:13:33
Create Date                     : 2011:08:24 13:13:33
Components Configuration        : Y, Cb, Cr, -
Shutter Speed Value             : 1/286
Aperture Value                  : 2.4
Brightness Value                : 6.992671928
Metering Mode                   : Multi-segment
Flash                           : Auto, Did not fire
Focal Length                    : 4.3 mm
Subject Area                    : 1631 1223 881 881
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 3264
Exif Image Height               : 2448
Sensing Method                  : One-chip color area
Exposure Mode                   : Auto
White Balance                   : Auto
Focal Length In 35mm Format     : 35 mm
Scene Capture Type              : Standard
Sharpness                       : Normal
GPS Latitude Ref                : North
GPS Longitude Ref               : West
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 21:08:30
GPS Img Direction Ref           : True North
GPS Img Direction               : 346.4727273
Compression                     : JPEG (old-style)
Thumbnail Offset                : 908
Thumbnail Length                : 12311
Image Width                     : 3264
Image Height                    : 2448
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Aperture                        : 2.4
GPS Altitude                    : 1222 m Above Sea Level
GPS Latitude                    : 37 deg 44' 10.80" N
GPS Longitude                   : 119 deg 35' 58.80" W
GPS Position                    : 37 deg 44' 10.80" N, 119 deg 35' 58.80" W
Image Size                      : 3264x2448
Scale Factor To 35 mm Equivalent: 8.2
Shutter Speed                   : 1/286
Thumbnail Image                 : (Binary data 12311 bytes, use -b option to extract)
Circle Of Confusion             : 0.004 mm
Field Of View                   : 54.4 deg
Focal Length                    : 4.3 mm (35 mm equivalent: 35.0 mm)
Hyperfocal Distance             : 2.08 m
Light Value                     : 11.3</pre>
<p>&nbsp;</p>
<p><span class="Apple-style-span" style="background-color: #ffffff;">If you look at this data a few things pop out. There really is GPS location data inside, and just like before the iDevice also encodes what direction the phone was pointing (compass data) when the image was captured.</span></p>
<p><a href="http://www.brianklug.org/wp-content/uploads/2011/11/squirrel.gif"><img class="aligncenter size-full wp-image-561" title="squirrel" src="http://www.brianklug.org/wp-content/uploads/2011/11/squirrel.gif" alt="" width="590" height="320" /></a></p>
<p>This first photo was captured in <a href="http://g.co/maps/z3497">Yosemite National Park</a> on August 24th 2011, a full one month and 10 days before its announcement on October 4. Interesting.</p>
<h2>Image 2 &#8211; <a href="http://www.apple.com/iphone/includes/camera-gallery/07.html#zoomerlay-gallery7">IMG1664</a></h2>
<p>This second image is of some waves breaking on a rocky beach and shows very nice detail. Just like the first image, it too includes GPS data and the creation date.</p>
<pre>Make                            : Apple
Camera Model Name               : iPhone 4S
Orientation                     : Rotate 180
Date/Time Original              : 2011:08:29 18:50:23
Create Date                     : 2011:08:29 18:50:23
GPS Latitude Ref                : North
GPS Longitude Ref               : West
GPS Altitude Ref                : Below Sea Level
GPS Time Stamp                  : 02:27:00
GPS Img Direction Ref           : True North
GPS Img Direction               : 357.1590909
GPS Altitude                    : 0 m Above Sea Level
GPS Latitude                    : 38 deg 26' 28.20" N
GPS Longitude                   : 123 deg 7' 36.00" W
GPS Position                    : 38 deg 26' 28.20" N, 123 deg 7' 36.00" W</pre>
<p>I&#8217;ve truncated the exported data for this image since the same format as the previous one. Note zero feet above sea level, indeed this checks out.</p>
<p><a href="http://www.brianklug.org/wp-content/uploads/2011/11/beach.gif"><img class="aligncenter size-full wp-image-564" title="beach" src="http://www.brianklug.org/wp-content/uploads/2011/11/beach.gif" alt="" width="590" height="320" /></a></p>
<p>This photo was taken at <a href="http://g.co/maps/hy289">goat rock beach</a> on August 29th, five days after the first image, and one month 5 days before the announcement. What&#8217;s intense about this image is that if you study the google satellite view enough, then take into account the pointing direction, you can actually see the rock in the photograph.</p>
<h2>Image 3 &#8211; <a href="http://www.apple.com/iphone/includes/camera-gallery/04.html#zoomerlay-gallery4">IMG0032</a></h2>
<p>This image is a landscape photo with a waterfall in the distance.</p>
<pre>Make                            : Apple
Camera Model Name               : iPhone 4S
Orientation                     : Horizontal (normal)
Date/Time Original              : 2011:08:25 09:27:36
Create Date                     : 2011:08:25 09:27:36
GPS Latitude Ref                : North
GPS Longitude Ref               : West
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 17:26:10
GPS Img Direction Ref           : True North
GPS Img Direction               : 254.5312024
GPS Altitude                    : 1192 m Above Sea Level
GPS Latitude                    : 37 deg 44' 38.40" N
GPS Longitude                   : 119 deg 35' 30.60" W
GPS Position                    : 37 deg 44' 38.40" N, 119 deg 35' 30.60" W</pre>
<p>This one also includes the GPS location and pointing data.</p>
<p><a href="http://www.brianklug.org/wp-content/uploads/2011/11/waterfall.gif"><img class="aligncenter size-full wp-image-565" title="waterfall" src="http://www.brianklug.org/wp-content/uploads/2011/11/waterfall.gif" alt="" width="590" height="320" /></a></p>
<p>Upon inspection, we can see this photo was taken also at <a href="http://g.co/maps/hafae">Yosemite National Park</a> and on August 25th 2011. It seems very likely this was taken by the same person who took the squirrel photo, given the fact that it&#8217;s a day later and in the same region in the park &#8211; perhaps a camping trip or something?</p>
<h2>Image 4 &#8211; <a href="http://www.apple.com/iphone/includes/camera-gallery/06.html#zoomerlay-gallery6">IMG1295</a></h2>
<p>This image is of a person holding a flower up to the camera showing shallow depth of field and some serious bokeh. The subject is the same as shown in the 1080p video sample Apple provides, and appears to lack GPS data of any kind, but was taken on August 29th.</p>
<pre>Make                            : Apple
Camera Model Name               : iPhone 4S
Orientation                     : Horizontal (normal)
Date/Time Original              : 2011:08:29 15:54:02
Create Date                     : 2011:08:29 15:54:02</pre>
<h2>Image 5 &#8211; <a href="http://www.apple.com/iphone/includes/camera-gallery/05.html#zoomerlay-gallery5">IMG0945</a></h2>
<p>This image looks almost like a test scene, and includes some potted herbs, drawers, fruits, lemons, and a bunch of different knick knacks. The EXIF data for this one includes GPS data.</p>
<pre>Make                            : Apple
Camera Model Name               : iPhone 4S
Orientation                     : Horizontal (normal)
Date/Time Original              : 2011:08:30 14:01:03
Create Date                     : 2011:08:30 14:01:03
GPS Latitude Ref                : North
GPS Longitude Ref               : East
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 13:25:21
GPS Img Direction Ref           : True North
GPS Img Direction               : 21.31747484
GPS Altitude                    : 342.1 m Above Sea Level
GPS Latitude                    : 50 deg 55' 6.60" N
GPS Longitude                   : 14 deg 3' 24.00" E
GPS Position                    : 50 deg 55' 6.60" N, 14 deg 3' 24.00" E</pre>
<p>So far the images we&#8217;ve seen have been from just inside the US &#8211; this image is from the <a href="http://g.co/maps/2mm6b">Königstein Fortress</a> in Germany of all places, and was taken on August 30th.</p>
<p><a href="http://www.brianklug.org/wp-content/uploads/2011/11/germany.gif"><img class="aligncenter size-full wp-image-566" title="germany" src="http://www.brianklug.org/wp-content/uploads/2011/11/germany.gif" alt="" width="590" height="320" /></a></p>
<p>This one is particularly interesting since it&#8217;s a great demonstration photo but also is the only sample image not taken in the US.</p>
<h2>Image 6 &#8211; <a href="http://www.apple.com/iphone/includes/camera-gallery/03.html#zoomerlay-gallery3">IMG1401</a></h2>
<p>This image also has no GPS data, which means it possibly was taken by the same iPhone 4S as number 4 (and this user disabled location services for the camera app), or just someone else who was likewise cautious to not include position. This image is a macro of some flowers.</p>
<pre>Make                            : Apple
Camera Model Name               : iPhone 4S
Orientation                     : Horizontal (normal)
Date/Time Original              : 2011:08:29 17:30:26
Create Date                     : 2011:08:29 17:30:26</pre>
<p>This image was taken on August 29th, however.</p>
<h2>Image 7 &#8211; <a href="http://www.apple.com/iphone/includes/camera-gallery/02.html#zoomerlay-gallery2">IMG1720</a></h2>
<p>Likewise, this one also lacks GPS data, but shows a beach at dusk (thus, west coast) and appears to have been taken likewise on August 29th in the evening.</p>
<pre>Make                            : Apple
Camera Model Name               : iPhone 4S
Orientation                     : Horizontal (normal)
Date/Time Original              : 2011:08:29 19:28:56
Create Date                     : 2011:08:29 19:28:56</pre>
<h2>Image 8 &#8211; <a href="http://www.apple.com/iphone/includes/camera-gallery/01.html#zoomerlay-gallery1">IMG0940</a></h2>
<p>The last image shows the same hot air balloon as shown in the 1080p video sample, and includes GPS data. We can see where this video (and likely image 4) was taken.</p>
<pre>Make                            : Apple
Camera Model Name               : iPhone 4S
Orientation                     : Rotate 180
Date/Time Original              : 2011:08:30 10:33:45
Create Date                     : 2011:08:30 10:33:45
GPS Latitude Ref                : North
GPS Longitude Ref               : West
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 18:48:01
GPS Img Direction Ref           : True North
GPS Img Direction               : 270.9027778
GPS Altitude                    : 31 m Above Sea Level
GPS Latitude                    : 38 deg 30' 13.20" N
GPS Longitude                   : 122 deg 46' 21.00" W
GPS Position                    : 38 deg 30' 13.20" N, 122 deg 46' 21.00" W</pre>
<p>Oddly enough image 4 and image 8 were taken on different days, so this possibly is a different location. That said, the location appears to be the <a href="http://g.co/maps/nfr64">Kendall-Jackson winery</a> right off the 101.</p>
<p><a href="http://www.brianklug.org/wp-content/uploads/2011/11/airballoon.gif"><img class="aligncenter size-full wp-image-567" title="airballoon" src="http://www.brianklug.org/wp-content/uploads/2011/11/airballoon.gif" alt="" width="590" height="320" /></a></p>
<p>Like the beach photo, this is just up the coast from San Francisco. The photo was taken August 30th as well.</p>
<h2>Conclusions</h2>
<p>Apple took sample images for its iPhone 4S presentation between the dates of August 24th and August 30th, a little over one month before the public unveiling. It&#8217;s interesting to note that had you been fortuitous enough to be in Yosemite National Park on the 24th or 25th, you might have by chance seen an iPhone 4S snapping photos of scenery and squirrels. Other locations near San Francisco seem logical given Apple&#8217;s location in Cupertino, CA, leaving the photo from Germany an odd outlier.</p>
<p>It seems that for all the scrutiny placed on bars surrounding 1 infinite loop, being in picturesque locales one month before an iPhone unveiling is quite possibly another logical strategy for spotting an unreleased iPhone.</p>
<p>I have to come full circle and say that I&#8217;m impressed Apple really didn&#8217;t scrub data from its sample images. This is something even I do to provide some location anonymity in the course of uploading sample images, though as of late I&#8217;ve become sloppy with scrubbing all the GPS data from EXIF for each sample image.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianklug.org/2011/11/a-quick-analysis-of-exif-data-from-apples-iphone-4s-camera-samples/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>NiZn PowerGenix Batteries</title>
		<link>http://www.brianklug.org/2010/05/nizn-powergenix-batteries/</link>
		<comments>http://www.brianklug.org/2010/05/nizn-powergenix-batteries/#comments</comments>
		<pubDate>Thu, 13 May 2010 07:48:36 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Don't Hate]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Hate]]></category>
		<category><![CDATA[Battery]]></category>
		<category><![CDATA[Fail]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[NiZn]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[SB600]]></category>

		<guid isPermaLink="false">http://www.brianklug.org/?p=367</guid>
		<description><![CDATA[I&#8217;ve been meaning to write about a set of interesting new rechargeable AA batteries I came across for a while now. Last year (wow, has it really been that long?) I came across a review on engadget of some PowerGenix NiZn (Nickel Zinc) rechargeable batteries which promised better performance, higher voltage than NiMH, and greater <a href="http://www.brianklug.org/2010/05/nizn-powergenix-batteries/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been meaning to write about a set of interesting new rechargeable AA batteries I came across for a while now. Last year (wow, has it really been that long?) I came across a review on <a href="http://www.engadget.com/2009/11/09/powergenix-nizn-rechargeable-aa-batteries-finally-some-cells-w/">engadget</a> of some PowerGenix NiZn (Nickel Zinc) rechargeable batteries which promised better performance, higher voltage than NiMH, and greater capacity. I was compelled to invest in some otherwise experimental and new rechargeables for a few reasons:</p>
<p>Doing indoor photography with my girlfriend &#8211; especially weddings &#8211; it becomes apparent just how many AAs you can go through quickly. So many that it&#8217;s relatively expensive and prohibitive to keep up and carry all those batteries around. They&#8217;re expensive, and just don&#8217;t last long enough. One or two hundred shots or so, if I recall correctly.</p>
<div id="attachment_496" class="wp-caption alignright" style="width: 237px"><a href="http://www.brianklug.org/wp-content/uploads/2010/05/SB600_flash.jpg"><img class="size-medium wp-image-496" title="SB600_flash" src="http://www.brianklug.org/wp-content/uploads/2010/05/SB600_flash-227x300.jpg" alt="" width="227" height="300" /></a><p class="wp-caption-text">SB600 Flash</p></div>
<p>Anyhow, right after getting them and charging them, I decided to shoot a wedding with my SB600 flash and the NiZn batteries. I was immediately floored at how fast the flash recharged and how performance never seemed to fade like alkalines do. Usually, flash performance seems to fall off exponentially with the generic alkaline batteries &#8211; eventually the time it takes to recharge gets so long you can&#8217;t take photos of anything. So what&#8217;s useful about the NiZn was the hugely fast, super quick recharge time.</p>
<p>That&#8217;s also&#8230; the problem. While shooting that wedding, I managed to somehow completely blow out the flash. This thing was under 2 months old, used at a few other weddings, without what I&#8217;d consider very many activations at all. The SB600 apparently has no thermal cutoff at all, allowing the whole thing to overheat. Whatever the case, while shotgunning some photos of the dance floor in low light, it stopped working. The flash didn&#8217;t feel notably hot, but the flash showed an error on the screen and wouldn&#8217;t work from then on. Anyhow, I shipped the flash back into Nikon and had a replacement about a month later, but the point is that I&#8217;m now far too scared to repeat the &#8220;experiment&#8221; again.</p>
<p>It seems that two things are possible:</p>
<ul>
<li>The SB600 lacks adequate/any thermal protection preventing the flash from overheating or being fired too quickly</li>
<li>The SB600 possibly relies on alkaline AA battery performance to prevent the flash from being overheated
<ul>
<li>I realize that the NiZn PowerGenix batteries are 1.6 volts (as opposed to the 1.5 standard for alkaline, and 1.2 for NiMH). At the same time, there should definitely be regulation of some kind preventing failure.</li>
</ul>
</li>
</ul>
<p>The batteries themselves are remarkable in their performance, but it&#8217;s that which scares me out of using them in the flash where they&#8217;re needed most.</p>
<div id="attachment_498" class="wp-caption aligncenter" style="width: 260px"><a href="http://www.brianklug.org/wp-content/uploads/2010/05/41LV9FlMTHL.jpg"><img class="size-medium wp-image-498" title="41LV9FlMTHL" src="http://www.brianklug.org/wp-content/uploads/2010/05/41LV9FlMTHL-250x300.jpg" alt="" width="250" height="300" /></a><p class="wp-caption-text">NiZn PowerGenix AA Batteries</p></div>
<p>What brings this all up is that engadget <a href="http://www.engadget.com/2010/05/12/aa-rechargeable-battery-shootout-energizer-powergenix-and-sany/">compared</a> the PowerGenix batteries to some of the other new (and exotic) choices from Energizer and Sanyo Eneloop, and I left a <a href="http://www.engadget.com/2010/05/12/aa-rechargeable-battery-shootout-energizer-powergenix-and-sany/comments/27848393/">comment</a>.</p>
<blockquote><p>I purchased the NiZn batteries after your initial review and was super  stoked when they came. I&#8217;m an avid digital photographer, and replacing  flash batteries at a wedding actually gets expensive enough to make  buying a bunch of rechargables worthwhile.</p>
<p>That said, I had a  brand new SB600 (just like yours) burn out with no warning while  shooting with the NiZn batteries. I had to ship the whole thing in and  get it replaced. I browsed the Fred Miranda forums some time later and  found a bunch of people with the same issue &#8211; the SB600 relies on  Alkaline batteries simply not being able to drive enough power quick  enough when shotgunning that flash to avoid burning out. There isn&#8217;t any  thermal safeguard.</p>
<p>So be warned, even though you&#8217;re testing on  an SB600, if you actually do go out and abuse the batteries like you  would at a big event firing the flash a lot, you WILL nuke your stuff.  I&#8217;m too scared to use my NiZn batteries now.</p></blockquote>
<p>That Fred Miranda forum thread I mentioned is <a href="http://www.fredmiranda.com/forum/topic/891522/0">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianklug.org/2010/05/nizn-powergenix-batteries/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zoneminder MJPEG and Shared Memory Settings</title>
		<link>http://www.brianklug.org/2010/02/zoneminder-mjpeg-and-memory-settings/</link>
		<comments>http://www.brianklug.org/2010/02/zoneminder-mjpeg-and-memory-settings/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 07:32:06 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Documents]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[207MW]]></category>
		<category><![CDATA[Axis]]></category>
		<category><![CDATA[Axis 207MW]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Shared Memory]]></category>
		<category><![CDATA[MJPEG]]></category>
		<category><![CDATA[Shared Memory]]></category>
		<category><![CDATA[WVC54GCA]]></category>
		<category><![CDATA[ZoneMinder]]></category>

		<guid isPermaLink="false">http://www.brianklug.org/?p=265</guid>
		<description><![CDATA[If you&#8217;ve read my big post on the Zoneminder configuration I have at home, you&#8217;ll notice that I favored capture of JPEG stills over using MJPEG during initial configuration. At the time, the reason was simple; I couldn&#8217;t make MJPEG work. I&#8217;ve now succeed in doing so, and understand why it didn&#8217;t work the first <a href="http://www.brianklug.org/2010/02/zoneminder-mjpeg-and-memory-settings/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve read my big post on the <a href="http://www.brianklug.org/2010/01/zoneminder/">Zoneminder configuration</a> I have at home, you&#8217;ll notice that I favored capture of JPEG stills over using MJPEG during initial configuration.</p>
<p>At the time, the reason was simple; I couldn&#8217;t make MJPEG work. I&#8217;ve now succeed in doing so, and understand why it didn&#8217;t work the first time.</p>
<h2>Memory Settings</h2>
<p>I remembered reading something in the Zoneminder <a href="http://www.zoneminder.com/wiki/index.php/FAQ#What_does_a_.27Can.27t_shmget:_Invalid_argument.27_error_in_my_logs_mean.3F_and_my_cameras_won.27t_display_video_at_higher_resolutions.">documentation</a> about a shared memory setting resulting in capture at higher resolutions failing. Originally, when I first encountered the problem I decided that it was simply me getting something wrong with the path to the .mjpeg streams on the cameras, since I was more familiar with capture of jpeg stills from prior scripting.</p>
<p>However, I stumbled across some documentation <a href="http://cybt.com/linux/325-shared-memory-settings-for-zoneminder.html">here</a> from another tinkerer, which also pointed to the memory sharing issue.</p>
<p>The problem is that the buffer of frames (usually between 50 and 100 for the camera) must be contained in memory for processing. If the size of the image:</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=buffer%5C%2C%20size%5Ctimes%20image%5C%2C%20width%5Ctimes%20image%5C%2C%20height%5Ctimes3_%7Bfor%5C%2C24%5C%2C%20bits%7D%2Boverhead&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='buffer\, size\times image\, width\times image\, height\times3_{for\,24\, bits}+overhead' title='buffer\, size\times image\, width\times image\, height\times3_{for\,24\, bits}+overhead' class='latex' /></p>
<p style="text-align: left;">Exceeds this shared memory maximum, you&#8217;ll run into errors or see the camera status go to yellow/orange instead of green. (It can get pretty confusing trying to troubleshoot based on those status colors unless you&#8217;re checking the logs&#8230; /doh)</p>
<p style="text-align: left;">In fact, the problem I was seeing was likely directly as a result of the large capture image size of my Axis 207mW, as they cite it directly:</p>
<blockquote><p>Note that with Megapixel cameras like the <strong>Axis 207mw</strong> becoming cheaper and more attractive, the above memory settings are not adequate. To get Zoneminder working with a full 1280&#215;1024 resolution camera in full colour, increase 134217728 to, for example, 268424446</p></blockquote>
<p>/facepalm. I really wish I had come across this the first time around. Either way, you&#8217;re going to ultimately run into this problem with either higher framerate connections, color, or higher resolutions.</p>
<p>I followed the tips, <a href="http://cybt.com/linux/325-shared-memory-settings-for-zoneminder.html">here</a>, but doubled them since the machine I&#8217;m running ZM has a pretty good chunk of memory available.</p>
<p>The process is simple. You&#8217;re going to have to edit <strong>/etc/sysctl.conf </strong>to include the following somewhere:</p>
<blockquote><p># Memory modifications for ZoneMinder (kernel.shmall = 32 MB, kernel.shmmax = 512 MB)<br />
kernel.shmall = 33554432<br />
kernel.shmmax = 536870912</p></blockquote>
<p>Now, apply the settings with</p>
<blockquote><p>sysctl -p</p></blockquote>
<p>Which forces a reload of that file. Next, you can check that the memory parameters have been changed:</p>
<blockquote><p>brian@brian-desktop:~$ cat /proc/sys/kernel/shmall<br />
33554432<br />
brian@brian-desktop:~$ cat /proc/sys/kernel/shmmax<br />
536870912</p></blockquote>
<p>Which is successful. You can also check it with <strong>ipcs -l</strong>. Now, reboot ZoneMinder and you shouldn&#8217;t have any problems.</p>
<h2>Motion JPEG Time!</h2>
<p>Having made these changes, I was ready to finally explore whether MJPEG works! I went ahead and decided to use the MJPEG streams from my two respective types of cameras in place of the static video links. These are:</p>
<blockquote><p>Linksys WVC54GCA: http://YOURIPADDY/img/video.mjpeg</p>
<p>Axis 207mW: http://YOURIPADDY/axis-cgi/mjpg/video.cgi?resolution=640&#215;480&amp;clock=0&amp;date=0&amp;text=0</p></blockquote>
<p>I also discovered (by reading the manual) that there&#8217;s a handy utility on the Axis config page (under Live Video Config -&gt; HTML Examples -&gt; Motion JPEG) which generates the proper URL based on a handy configuration tool where you can select size, compression, and other options:</p>
<div id="attachment_267" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/02/config-page.png"><img class="size-medium wp-image-267" title="config page" src="http://www.brianklug.org/wp-content/uploads/2010/02/config-page-300x257.png" alt="" width="300" height="257" /></a><p class="wp-caption-text">Handy config page</p></div>
<p>The idle load on the system has increased, as expected, but that&#8217;s partly from me raising the FPS limit to 10 which seems reasonable, and enabling continual recording with motion detection (mocord).</p>
<div id="attachment_271" class="wp-caption aligncenter" style="width: 265px"><a href="http://www.brianklug.org/wp-content/uploads/2010/02/ZM-Euclid_Linksys_FrontDoor-Feed_1265527700089.png"><img class="size-medium wp-image-271" title="ZM - Euclid_Linksys_FrontDoor - Feed_1265527700089" src="http://www.brianklug.org/wp-content/uploads/2010/02/ZM-Euclid_Linksys_FrontDoor-Feed_1265527700089-255x300.png" alt="" width="255" height="300" /></a><p class="wp-caption-text">Nice, 10 FPS! (still a gaping hole though...)</p></div>
<p>I&#8217;m making a lot of tweaks as I get ready to transition everything onto a VM on a faster computer with much more disk space (on the order of 8 TB). If you&#8217;re interested in reading more about the Linux kernel shared memory settings, I found some good documentation:</p>
<ul>
<li>IBM/RedHat settings: <a href="http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.uprun.doc/doc/t0008238.htm">here</a></li>
<li>Configuring shared memory: <a href="http://rwitkop.com/VistA/ConfigureSysctl4Cache.html"></a><a href="http://rwitkop.com/VistA/ConfigureSysctl4Cache.html">here</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.brianklug.org/2010/02/zoneminder-mjpeg-and-memory-settings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>7 Wishes for iPhone OS 4.0</title>
		<link>http://www.brianklug.org/2010/01/7-wishes-for-iphone-os-4/</link>
		<comments>http://www.brianklug.org/2010/01/7-wishes-for-iphone-os-4/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 01:20:28 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Don't Hate]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[4.0]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Apple Tablet]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[Google Voice]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone OS]]></category>
		<category><![CDATA[Multitasking]]></category>
		<category><![CDATA[scheduling]]></category>

		<guid isPermaLink="false">http://www.brianklug.org/?p=223</guid>
		<description><![CDATA[Tomorrow&#8217;s big unveiling will likely be focused around the much-hyped, illusory tablet (whose name nobody even knows), but a large part of its launch will be iPhone OS 4.0. Much debate has taken place regarding whether the tablet will run OS X, iPhone OS, or something in-between. Thanks in large part to an errant comment by <a href="http://www.brianklug.org/2010/01/7-wishes-for-iphone-os-4/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Tomorrow&#8217;s big unveiling will likely be focused around the much-hyped, illusory tablet (whose name nobody even knows), but a large part of its launch will be iPhone OS 4.0.</p>
<p>Much debate has taken place regarding whether the tablet will run OS X, iPhone OS, or something in-between. Thanks in large part to an <a href="http://www.engadget.com/2010/01/26/mcgraw-hills-ceo-confirms-apple-tablet-debuting-tomorrow/"><span style="color: #000000;">errant comment</span></a> by the McGraw Hill CEO on MSNBC, I think it&#8217;s safe to assume that iPhone OS was the right guess all along.</p>
<p>Or was it? It&#8217;s likely that instead of releasing the tablet running the 3.x line OS, apple will launch a 4.x fork to bridge the handheld iPhone/iPod Touch experience with that of the tablet, and in so doing bring the mobile OS closer to its desktop counterpart. It makes sense considering keeping two disparate app stores running could cause a colossal flustercuck.</p>
<p>Since its launch in March of 2009, OS 3.x has begun showing some signs of age, especially compared Android 2.x. Here&#8217;s a list of what I think OS 4.0 needs to really keep the platform competitive:</p>
<h2>1- Google Voice integration</h2>
<p>Although Google just launched an HTML5 version of the <a href="http://voice.google.com">google voice interface</a> (no doubt specifically targeted at the iPhone and WebOS platforms), it still pales in comparison with how seamless Google Voice integration is on Android. Users of that platform can completely transition to their new number.</p>
<p>Plus, let&#8217;s be honest, using a web based version is just hackety compared to being able to use a much more responsive app without having to jailbreak. Until the day comes, I&#8217;ll stick with using the still-banned <a href="http://www.seankovacs.com/index.php/gv-mobile/">GV Mobile</a>.</p>
<h2>2- Google Latitude integration</h2>
<p>This is the one that actually started the whole Google &#8211; Apple divorce, in case you have forgotten. It&#8217;d be amazing to finally see latitude integrated into the maps app the way it should have been the same month latitude launched.</p>
<p>Even better, the maps application (maintained by google) on BlackBerry OS and Android allows for seamless background position updating. As it is right now, iPhone OS users have to go to an HTML5-based version of the same application to update their position. Or jailbreak and use a solution like longitude (some screenshots/info <a href="http://www.funkyspacemonkey.com/longitude-bigbrother-informed-locate-lost-iphone">here</a>) and have it done on a schedule by a persistent background process. This is the solution I ultimately decided on</p>
<p>Perhaps this functionality isn&#8217;t allowed because of &#8220;duplication of functionality&#8221; with Mobile Me? Whatever.</p>
<h2>3- Better gmail integration in the mail app</h2>
<p>Let&#8217;s just come out and say it, the mail app on the iPhone is extremely barebones. Coming from Windows Mobile, I was kind of shocked at how barebones, in fact. No ability to change font, underline, bold, italicize, or do anything regarding formatting. As it is right now, the best you can do is some copy paste.</p>
<p>ArsTechnica really did a good job highlighting a number of subtleties that I&#8217;ve noticed in their article <a href="http://arstechnica.com/apple/news/2010/01/five-things-we-want-to-see-in-iphone-os-40.ars">here</a>. The most annoying of which is that folders aren&#8217;t fully synchronized until you go into them. For example, opening a sent folder will cause all the sent emails to load chronologically. This can get frustrating if you&#8217;ve sent a lot and just want to look at one; instead, you&#8217;ll have to wait for all of them to load. I can do without a unified inbox or unified messaging app, because honestly I view that as a more of a nightmare to be avoided than a feature.</p>
<p>But those aren&#8217;t my main gripe, it&#8217;s that there isn&#8217;t a gmail app (like what Android has) that supports Labels, Stars, or any of the features that make Gmail integration with email clients over IMAP or Exchange difficult. It&#8217;s that whole decision they made to not use &#8220;folders&#8221; and instead use labels that drives me crazy, and to this day, I&#8217;m lucky if I can find any sent email in my google apps account.</p>
<p>Forget about background and push, just fix the email client.</p>
<h2>4- Notification customizations for SMS, scheduling</h2>
<p>Even though the platform has good customization for ringtones, the alert sounds for system events such as email and new SMSes are surprisingly limited. In fact, at first, I assumed I was &#8220;doing it wrong&#8221; and failing at finding the proper way to load them. Nope, turns out, what you have is what you have, and what you will have forever.</p>
<p>That default &#8220;Tri-tone&#8221; sound is what everyone uses, and it&#8217;s annoying as hell to have it go off in a crowded room and watch 8 people all go for their phones (myself included). Allow some variety, without the need to jailbreak.</p>
<p>A lot of the other platforms also have alert profile scheduling. Namely, you can specify whether you should be alerted audibly, with vibration, or not at all, on a time schedule throughout the day. I&#8217;ve defaulted to always leaving my phone on vibrate simply because this is missing.</p>
<h2>5- Background apps done right</h2>
<p>This is probably everyone&#8217;s #1 wish for OS 4.0. Multitasking done right. Sure, you can jailbreak and do it, but it doesn&#8217;t lend itself to having a nice task-switcher. Instead, you&#8217;re left using what amounts to a task manager, which is completely the wrong way to do it.</p>
<p>Every other platform has it, only one platform (WebOS) has done it right so far. Can you, apple?</p>
<h2>6- Better App organization</h2>
<p>If you&#8217;re like me, you have 9 pages of applications that you&#8217;ve tediously organized. But sometimes, categories that are logical don&#8217;t come in sets of 16 (how many you can fit on one &#8216;page&#8217;). The real solution is to allow some sort of management. Be that folders, a menu, or something else.</p>
<div id="attachment_226" class="wp-caption aligncenter" style="width: 210px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/IMG_0382.png"><img class="size-medium wp-image-226" title="IMG_0382" src="http://www.brianklug.org/wp-content/uploads/2010/01/IMG_0382-200x300.png" alt="" width="200" height="300" /></a><p class="wp-caption-text">My Layout</p></div>
<p>Also, there&#8217;s no reason that people should be limited to 4 apps on the bottom row just for aesthetics when you have the room for 5. I couldn&#8217;t live without having 5 anymore.</p>
<h2>7- Better power management &#8211; centralized reporting, on/off, scheduling</h2>
<p>Something that I think Android really executed properly was the centralized power management screen. HTC has added this to virtually every single device in recent memory as well. That feature is centralized management of radio hardware and other large current draws.</p>
<p>This is something that, if executed properly, could also be a selling point for making hardware &#8220;green.&#8221; Hell, as a potential EE, I&#8217;d be absolutely in love with a screen showing current consumption from all the chipsets in the hardware that report it, plots of use vs. time, and more intelligent prediction of how much life I&#8217;ll get out of the device with current use.</p>
<p>But on a more basic level, what we really need is a feature that allows users to schedule the hardware itself. Imagine you&#8217;re on a trip without your charger; odds are, you don&#8217;t need the radio hardware on while you&#8217;re sleeping, but you do need the device on so the alarm works. Allowing users to schedule power events lets you balance use ahead of time.</p>
<p>But a feature I think is really needed is a so-called &#8220;last legs&#8221; setting. Basically, after the battery has crossed a user-defined threshold (say 15-25%), the software automatically does everything it can to preserve battery life; WiFi is turned off, 3G is turned off in favor of EDGE, screen brightness is reduced to 20%, push services are put on hold, email fetch intervals are doubled or quadrupled, background processes are killed.</p>
<p>The hardware and software essentially would work together to squeeze every last minute of use out of the hardware when battery gets low. This is especially important for when you cross the threshold while the phone is in your pocket, when you probably don&#8217;t even know it&#8217;s dangerously close to death.</p>
<h2>Conclusions</h2>
<p>Historically, Apple delivers products that have extremely polished, working features. Essentially, they err on the side of only releasing features that work, always work, and work well, instead of releasing features that don&#8217;t always work, or lack polish.</p>
<p>That said, a lot of the market has caught up since 2009. It&#8217;s time to address all of those gripes, and I&#8217;m hoping OS 4.0 fills some of the glaring holes in the feature set tomorrow. We&#8217;ll find out soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianklug.org/2010/01/7-wishes-for-iphone-os-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mobile Phone Signal Bars &#8211; Thoughts</title>
		<link>http://www.brianklug.org/2010/01/mobile-phone-signal-bars-thoughts/</link>
		<comments>http://www.brianklug.org/2010/01/mobile-phone-signal-bars-thoughts/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 04:58:45 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Documents]]></category>
		<category><![CDATA[Don't Hate]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Self Referential]]></category>
		<category><![CDATA[dB]]></category>
		<category><![CDATA[dBm]]></category>
		<category><![CDATA[GSM]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[RF]]></category>
		<category><![CDATA[Signal Strength]]></category>
		<category><![CDATA[WCDMA]]></category>

		<guid isPermaLink="false">http://www.brianklug.org/?p=197</guid>
		<description><![CDATA[Something that&#8217;s bugged me for a long time is how crude and arbitrary signal bars on mobile phones are. With a few limited exceptions, virtually every phone has the exact same design: four or five bars in ascending order by height, which correspond roughly to the perceived signal strength of the radio stack. Or does it? Let <a href="http://www.brianklug.org/2010/01/mobile-phone-signal-bars-thoughts/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Something that&#8217;s bugged me for a long time is how crude and arbitrary signal bars on mobile phones are. With a few limited exceptions, virtually every phone has the exact same design: four or five bars in ascending order by height, which correspond roughly to the perceived signal strength of the radio stack.</p>
<p><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Signal.png"><img class="aligncenter size-full wp-image-199" title="Signal" src="http://www.brianklug.org/wp-content/uploads/2010/01/Signal.png" alt="" width="91" height="18" /></a></p>
<p>Or does it? Let me just start by saying this is an absolutely <em>horrible</em> way to present a quality metric, and I&#8217;m shocked that years later it still is essentially the de-facto standard. Let me convince you.</p>
<h2>It isn&#8217;t 1990 anymore&#8230;</h2>
<p>Let&#8217;s start from the beginning. The signal bar analogy is a throwback to times when screens were expensive, physically small, monochromatic if not 8 shades of grey, and anything over 100&#215;100 pixels was outrageously lavish. Displaying the actual RSSI (Received Signal Strength Indicator) number would&#8217;ve been difficult and confusing for consumers, varying between 8 already difficult to distinguish shades of grey would have been hard to distinguish, and making one bar breathe in size could have sacrificed too much screen real estate.</p>
<p>It made sense in that context to abstract the signal quality visualization into something that was both simple, and readable. Thus, the &#8220;bars&#8221; metaphor was born.</p>
<p>Since then, there have been few if any deviations away from that design. In fact, the only major departure thus far has been Nokia, which has steadfastly adhered to a visualization that makes sense:</p>
<div id="attachment_200" class="wp-caption aligncenter" style="width: 235px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Screenshot0012.jpg"><img class="size-medium wp-image-200" title="Screenshot0012" src="http://www.brianklug.org/wp-content/uploads/2010/01/Screenshot0012-225x300.jpg" alt="" width="225" height="300" /></a><p class="wp-caption-text">Ascending Strength Bars</p></div>
<div id="attachment_202" class="wp-caption aligncenter" style="width: 178px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/nunlock_2.jpg"><img class="size-medium wp-image-202" title="nunlock_2" src="http://www.brianklug.org/wp-content/uploads/2010/01/nunlock_2-168x300.jpg" alt="" width="168" height="300" /></a><p class="wp-caption-text">Another Example</p></div>
<p>Namely, their display metaphor is vertically ascending bars that mirror call quality/strength. This makes sense, because it&#8217;s an optimal balance between screen use and communicating the quality in an easy to understand fashion. Moreover, they have 8 levels of signal, 0-7 bars showing. Nokia should be applauded for largely adhering to this vertical format. (In fact, you could argue that the reason nobody has adopted a similar metaphor is because Nokia has patented it, but I haven&#8217;t searched around)</p>
<p>It&#8217;s 2010, and the granularity of the quality metric on most phones is arbitrarily limited to 4 or 5 levels at best.</p>
<h2>Better designs?</h2>
<p>Thus, an optimal design balances understandability with level of detail. On one hand, you could arguably simply display the RSSI in dB, or on the other hand sacrifice all information reporting and simply report something boolean, &#8220;Can Call&#8221; Yes/No.</p>
<p>Personally, I&#8217;m waiting for something that either leverages color (by sweeping through a variety of colors corresponding to signal strength) or utilizes every pixel of length for displaying the signal strength in a much more analogue way.</p>
<div id="attachment_204" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/signaling.png"><img class="size-medium wp-image-204" title="signaling" src="http://www.brianklug.org/wp-content/uploads/2010/01/signaling-300x98.png" alt="" width="300" height="98" /></a><p class="wp-caption-text">Excuse the crudity of this rendering</p></div>
<p>Green and red are obvious choices for color, given their nearly universal meaning for OK and OH NOES, respectively. Something that literally takes advantage of every pixel by breathing around instead of arbitrarily limiting itself to just 4 or 5 levels also wouldn&#8217;t be hard to understand.</p>
<p>Fundamentally, however, the bars still have completely arbitrary meaning. What constitutes maximum &#8220;bars&#8221; on one network and device has a totally different meaning on another device or carrier. Even worse, comparing the same visual indicator across devices on the same network can often be misleading. For example, the past few months I&#8217;ve made a habit of switching between the actual RSSI and the resulting visualization, and I&#8217;ve noticed that the iPhone seems to have a very optimistic reporting algorithm.</p>
<p>There&#8217;s an important distinction to be made between the way signal is reported for WCDMA versus GSM as well:</p>
<blockquote><p>First off one needs to understand that WCDMA (3G) is not the same thing  as GSM (2G) and the bars or even the signal strength can not be compared  in the same way, you are not comparing apples to apples. The RSCP  values or the signal strength in WCDMA is not the most important value  when dealing to the quality of the call from a radio point of view, it&#8217;s  actually the signal quality (or the parameter Ec/No) that needs also to  be taken into account. <a href="http://forums.macrumors.com/archive/index.php/t-88126.html%5B/t-777353.html">Source</a></p></blockquote>
<p>That said, the cutoff for 4 bars on WCDMA seems to be relatively low, around -100 dB or lower. 3 bars seems around -103 dB, 2 bars around -107 dB, and 1 bar anything there and below. Even then, I&#8217;ve noticed that the iPhone seems to run a weighted average, preferring to gradually decrease the report instead of allowing for sharp declines, as is most usually the case.</p>
<div id="attachment_205" class="wp-caption aligncenter" style="width: 104px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/signal-dB.png"><img class="size-full wp-image-205" title="signal dB" src="http://www.brianklug.org/wp-content/uploads/2010/01/signal-dB.png" alt="" width="94" height="19" /></a><p class="wp-caption-text">Signal in dB</p></div>
<h2>Use dB if you&#8217;re not averse to math</h2>
<p>What you&#8217;re reading isn&#8217;t really dBm, dBmV, or anything really physical, but rather a quality metric that also happens to be reported in dB. For whatever reason, most people are averse to understanding dB, however, the most important thing to remember is that 3 dB corresponds to a factor of 2. Thus, a change  of -3 dB means that your signal has halved in power/quality.</p>
<p>The notation dBm is refrrenced to 1 mW. Strictly speaking, to convert to dBm given a signal in mW:</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=Signal_%7BdB%7D%3D10%5Clog%5Cleft%28%5Cfrac%7BSignal_%7BmW%7D%7D%7B1%5C%2C%20mW%7D%5Cright%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Signal_{dB}=10\log\left(\frac{Signal_{mW}}{1\, mW}\right)' title='Signal_{dB}=10\log\left(\frac{Signal_{mW}}{1\, mW}\right)' class='latex' /></p>
<p style="text-align: left;">Likewise, to convert a signal from dBm back to mW:</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=Signal_%7BmW%7D%3D10%5E%7B%5Cleft%28%5Cfrac%7BSignal_%7BdB%7D%7D%7B10%7D%5Cright%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Signal_{mW}=10^{\left(\frac{Signal_{dB}}{10}\right)}' title='Signal_{mW}=10^{\left(\frac{Signal_{dB}}{10}\right)}' class='latex' /></p>
<p style="text-align: left;">But even directly considering the received power strength or the quality metric from SNR isn&#8217;t the full picture.</p>
<p style="text-align: left;">In fact, most of the time, complaints that center around iPhones failing to make calls properly stem from overloaded signaling channels used to setup calls, or situations where even though the phone is in a completely acceptable signal area, the node is too overloaded. So, as an end user, you&#8217;re left without the quality metrics you need to completely judge whether you should or should not be able to make a data/voice transaction. Thus, the signal quality metric isn&#8217;t entirely a function of client-tower proximity, but rather node congestion.</p>
<p style="text-align: left;">Carriers have a lot to gain from making sure their users are properly informed about network conditions; both so they can make educated decisions about what to expect in their locale, as well as to properly diagnose what&#8217;s going on when the worst happens. Worse, perhaps, carriers have even more to gain from misreporting or misrepresenting signal as being better than reality. Arguably, the cutoffs I&#8217;ve seen on my iPhone 3GS are overly optimistic and compressed into ~13 dB. From my perspective, as soon as you&#8217;re below about -105 dB, connection quality is going to suffer on WCDMA, however, that shows up as a misleading 3-4 bars.</p>
<h2 style="text-align: left;">Conclusions:</h2>
<p style="text-align: left;">What we need is simple:</p>
<ol>
<li><strong>Transparency and standardization of reporting</strong> &#8211; Standardize a certain visualization that is uniform across technology and devices. Choose something that makes sense, so customers can compare hardware in the same area and diagnose issues.</li>
<li><strong>Advanced modes</strong> &#8211; For those of us that can read and understand the meaning of dB and real quality metrics from the hardware, give the opportunity to display it. Hell, perhaps you&#8217;ll even encourage some people to delve deeper and become RF engineers in the future. It&#8217;s annoying to have to launch a Field Trial application every time we want to know why something is the way it is.</li>
<li><strong>Leverage recent advances in displays </strong>- Limiting display granularity to 4 or 5 levels doesn&#8217;t make sense anymore; we aren&#8217;t constrained by tiny monochromatic screens.</li>
<li><strong>Tower load reporting </strong>- Be honest with subscribers and have the tower report some sort of quality metric/received SNR of its own so we know which path of the link is messed up. If a node is congested, tell the user. Again, people are more likely to be happy if they&#8217;re at least made aware of the link quality rather than left in the dark.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.brianklug.org/2010/01/mobile-phone-signal-bars-thoughts/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WVC54GCA Firmware v1.1</title>
		<link>http://www.brianklug.org/2010/01/wvc54gca-firmware-v1-1/</link>
		<comments>http://www.brianklug.org/2010/01/wvc54gca-firmware-v1-1/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 07:57:09 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Documents]]></category>
		<category><![CDATA[Don't Hate]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[802.11g WVC54GCA]]></category>
		<category><![CDATA[Firmware]]></category>
		<category><![CDATA[Linksys]]></category>
		<category><![CDATA[WiFi]]></category>
		<category><![CDATA[WVC54GCA]]></category>

		<guid isPermaLink="false">http://www.brianklug.org/?p=187</guid>
		<description><![CDATA[Fix Some, Break Others I noticed a strange but rather interesting problem the other night while working on one of my WVC54GCA cameras which was accidentally reset to defaults. But before I explain, I should back up a bit. I mentioned in my previous post about ZoneMinder that I had not completely finished reviewing or <a href="http://www.brianklug.org/2010/01/wvc54gca-firmware-v1-1/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<h1>Fix Some, Break Others</h1>
<p>I noticed a strange but rather interesting problem the other night while working on one of my WVC54GCA cameras which was accidentally reset to defaults. But before I explain, I should back up a bit.</p>
<p>I mentioned in my previous post about <a href="http://www.brianklug.org/2010/01/zoneminder/">ZoneMinder</a> that I had not completely finished reviewing or evaluating the new <a href="http://downloads.linksysbycisco.com/downloads/firmware/1224638324172/DYFF08-407-110002.zip">V1.1 firmware</a> that Linksys made available just recently. I now can, with a bit more certainty.</p>
<p>In the Linksys Release Notes, it states:</p>
<blockquote><p>Version v1.1.00 build 02, Jun 15, 2008</p>
<p>- Support of Setup Wizard is temporarily disabled to address security issue</p>
<p>- Fix security issues</p>
<p>- Fix Camera stability issues</p>
<p>- Fix VLC multicast playback issues</p>
<p>- Update TZO DDNS client</p>
<p>- Change Firmware version format</p>
<p>- Enable HNAP protocol support</p>
<p>- Fix OCX stability issues</p>
<p>- Update valid value range of RTP Data Port. New range is even value of 1024~65514.</p>
<p>Version v1.00R24, Jan 7, 2008</p>
<p>- Updated TZO DDNS client code to resolve an issue with incorrect TZO server address being used to resolve the customers FQDN.</p></blockquote>
<p>Now, this all sounds fine and dandy, but I think Linksys has fixed some issues and broken some others at the same time.</p>
<p>Concerned about the <a href="http://www.gnucitizen.org/blog/hacking-linksys-ip-cameras-pt-1/">security issues</a> (which are supposedly fixed in 1.1), I upgraded both cameras from my previous trusty (but somewhat unstable) V1.0 R24 build. At the time, everything worked. The cameras continued functioning over WiFi, all of my previous settings were preserved, everything seemed fine. However, I noticed that the wireless configuration page shows something a bit odd: &#8220;undefined.&#8221; Take a look:</p>
<div id="attachment_188" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Wireless-G-Internet-Home-Monitoring-Camera_1263972947277.png"><img class="size-medium wp-image-188" title="Wireless-G Internet Home Monitoring Camera_1263972947277" src="http://www.brianklug.org/wp-content/uploads/2010/01/Wireless-G-Internet-Home-Monitoring-Camera_1263972947277-300x75.png" alt="" width="300" height="75" /></a><p class="wp-caption-text">Undefined? Nice.</p></div>
<p>Well, that&#8217;s odd. But WiFi worked. For the record, I&#8217;m using a Linksys WRT54G-TM running Tomato 1.27 with WPA/WPA2 AES and an alphanumeric key over 20 digits long.</p>
<p>The other night, my roommate inadvertently reset one of the cameras to default running the new V1.1 firmware. When I brought it back over ethernet and configured it to connect to WiFi, I noticed the configuration screen had changed, subtly:</p>
<div id="attachment_189" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Screen-1-1.00R24.png"><img class="size-medium wp-image-189" title="Screen 1 1.00R24" src="http://www.brianklug.org/wp-content/uploads/2010/01/Screen-1-1.00R24-300x266.png" alt="" width="300" height="266" /></a><p class="wp-caption-text">1.00 build 24 </p></div>
<div id="attachment_190" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/v1.1.00-build-02.png"><img class="size-medium wp-image-190" title="v1.1.00 build 02" src="http://www.brianklug.org/wp-content/uploads/2010/01/v1.1.00-build-02-300x266.png" alt="" width="300" height="266" /></a><p class="wp-caption-text">1.1.00 build 02</p></div>
<p>The fields had changed. In addition to making the password field now the proper type (showing only bullets or whatever character your browser uses), there are two drop downs for which WPA version you&#8217;re using, as opposed to one. That seems fine, until after about a half hour of trying, I couldn&#8217;t make the 1.1 camera connect to my wireless. Arrgh.</p>
<p>Much tinkering, taking the thing apart, making sure the wireless card was seated, e.t.c. later, I tried something else. I remembered how much of a hassle the previous release was and how flashing to some strange German version of the firmware and then back made wireless magically work.</p>
<p>Amazingly, Linksys doesn&#8217;t keep a nice repo around (or, at least I couldn&#8217;t find one, perhaps there&#8217;s an FTP dump somewhere). I found the old 1.00 R24 build <a href="http://forums.linksysbycisco.com/linksys/board/message?board.id=Cameras&amp;thread.id=11237">here</a>, and for backup&#8217;s sake, <a href="http://www.brianklug.org/wp-content/uploads/2010/01/WVC54GCA_FW_100R24.zip">here</a>&#8216;s a version I&#8217;ll host and keep around forever.</p>
<p>I flashed back to 1.00 R24, and immediately was able to connect. In addition, flashing back up to V1.1 after configuring wifi on 1.00 R24 makes everything work just fine. It&#8217;s a mess, but that&#8217;s the only way I can make it work.</p>
<p>I have a feeling that Linksys hasn&#8217;t completely nailed down the configuration settings/supplicant for that Ralink card they have in there, or that the open source drivers just aren&#8217;t that great. I strongly suspect this is partly the reason for the introduction of the WVC80N, although <a href="http://www.myhomeserver.com/?page_id=328">reviews</a> do look promising. I&#8217;d like to get my hands on one of those!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianklug.org/2010/01/wvc54gca-firmware-v1-1/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Scanning Books &#8211; My Take</title>
		<link>http://www.brianklug.org/2010/01/scanning-books-my-take/</link>
		<comments>http://www.brianklug.org/2010/01/scanning-books-my-take/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 03:05:04 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Don't Hate]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Adobe Acrobat]]></category>
		<category><![CDATA[Book]]></category>
		<category><![CDATA[Digital Camera]]></category>
		<category><![CDATA[eBooks]]></category>
		<category><![CDATA[OCR]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[Scanning]]></category>
		<category><![CDATA[Scanning Books]]></category>
		<category><![CDATA[Snapter]]></category>
		<category><![CDATA[Unpaper]]></category>

		<guid isPermaLink="false">http://www.brianklug.org/?p=155</guid>
		<description><![CDATA[Why Scan Books? With the prevalence of eBook readers like the Nook, Kindle, Spring Design Alex and others, comes the necessity of building and maintaining a vast digital library. There are more resources online than one can easily list for both purchasing (and downloading) books in a suite of electronic formats, from PDF to DJVU, <a href="http://www.brianklug.org/2010/01/scanning-books-my-take/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<h1>Why Scan Books?</h1>
<p>With the prevalence of eBook readers like the Nook, Kindle, Spring Design Alex and others, comes the necessity of building and maintaining a vast digital library. There are more resources online than one can easily list for both purchasing (and downloading) books in a suite of electronic formats, from PDF to DJVU, but what if you already own a book of the traditional dead-tree sort? What if you aren&#8217;t willing to purchase it again just for the convenience and ease of reading it on your brand new eBook reader?</p>
<p>Scanning becomes your only option.</p>
<p>I&#8217;ll be honest, the process isn&#8217;t easy, quick or glamorous. But it beats spending a day craning over your flatbed scanner or cutting the spine out of your expensive book to feed it through an equally expensive loose-leaf scanner (speaking of which, what the heck is up with how expensive they are?!). If the book is sufficiently expensive, it becomes an economical prospect quickly given the few hours required from start to finish.</p>
<p>I&#8217;m not going to address the legal/ethical/moral considerations. You could argue that making a PDF copy for yourself constitutes Fair Use, but the law being what it is, who the heck knows? Regardless, just exercise some moral introspection and decide for yourself.</p>
<h2>Equipment</h2>
<ul>
<li>A relatively decent Digital SLR with wide to normal focal length lens</li>
<li>Large sheet of black construction paper</li>
<li>Tripod/Monopod and a way to hold the camera</li>
<li>Snapter or other image processing software</li>
<li>Adobe Acrobat/other PDF creating utility</li>
<li>2-4 hours of your time, depending on the book complexity</li>
</ul>
<p>The specific equipment I use is:</p>
<ol>
<li>Nikon D80 with Tamron 17-50 f/2.8 lens</li>
<li>Nikon SB600 flash (optional)</li>
<li>Nikon remote shutter release (IR)</li>
<li>Large piece of black construction paper from Michael&#8217;s</li>
<li>Monopod, table, and a copy of my CRC Handbook (more on that weird combo later)</li>
<li><a href="http://snapter.atiz.com/">Snapter</a> for processing images</li>
<li>Adobe Acrobat 9 Pro for making PDF and OCR</li>
</ol>
<h2>Software</h2>
<p>I&#8217;ve already mentioned Snapter twice, and although they&#8217;re commercial software (with a very generous 15 day free trial that gives you all the functionality of the real book), don&#8217;t let that fool you. I&#8217;ve had a lot of success with their software just because of how easy and functional it&#8217;s been in my experience. So much so that I went ahead and got the paid version.</p>
<p>That said, there are a few open source alternatives that do a pretty good job and are worth mentioning:</p>
<ul>
<li>Scan Tailor &#8211; <a href="http://scantailor.sourceforge.net/">http://scantailor.sourceforge.net/</a></li>
<li>Unpaper &#8211; <a href="http://unpaper.berlios.de/">http://unpaper.berlios.de/</a></li>
</ul>
<p>Scan Tailor is pretty good, has a nice GUI, and is very active. Unpaper doesn&#8217;t have a GUI but offers a lot for a command line tool. There&#8217;s always the advantage both OSS solutions offer that you can either code/propose functionality changes in the software itself with the active developers.</p>
<p>Another relevant <a href="http://ask.slashdot.org/story/09/09/27/199251/Software-To-Flatten-a-Photographed-Book">article </a>with tips is from /. , which posted ironically the week after I had already embarked on and discovered the ins and outs of scanning with a digital camera myself.</p>
<h2>Setup</h2>
<p>My setup is simple: I mount the camera on the monopod, stick it on the table, and balance it there with my trusty CRC handbook and some other heavy books.</p>
<p>You might be wondering why I didn&#8217;t just use a tripod. The reason is that it&#8217;s a much more challenging prospect to carefully both tilt the tripod and balance it so the camera is completely perpendicular to the book&#8217;s surface. For the best photo quality, one needs the book to be as close to coplanar with the camera sensor as possible. It makes sense, otherwise we&#8217;ll have a more challenging time getting the book totally in focus (depth of field will come into play), and have a harder time flattening the book in software.</p>
<p>I generally tape the black paper down to the floor, snap photos of the cover and back cover, and then tape those down as well. More on positioning later.</p>
<p>The whole thing looks like the following:</p>
<div id="attachment_161" class="wp-caption aligncenter" style="width: 235px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Camera-Setup.jpg"><img class="size-medium wp-image-161" title="Camera-Setup" src="http://www.brianklug.org/wp-content/uploads/2010/01/Camera-Setup-225x300.jpg" alt="" width="225" height="300" /></a><p class="wp-caption-text">Doing this in my office</p></div>
<p>I have the flash set to bounce from the ceiling, just because in practice this yields the most readable photos. I also use all the light I can from the room itself.</p>
<p>A difficult consideration is that sometimes the print/copy itself has glare. This seems a lot more common with newer books than older ones; it&#8217;s almost like the print has a layer of varnish atop it. Just make sure you preview a few images and can actually read the copy.</p>
<p>Positioning the book is the tricky part; it&#8217;s difficult to balance between filling the frame with the book (so you have good resolution), and leaving enough space at the edges so that your software can do edge detection. Leave too little space around, and you&#8217;ll have a nightmarish time trying to field flatten. Leave too much, and you&#8217;ll be throwing away a ton of your image. Even worse, if you don&#8217;t tape the book down, it will gradually creep out of the frame.</p>
<p>Another big consideration is rotation. I&#8217;ve discovered that Snapter doesn&#8217;t really account that well for material that has even subtle rotation. You end up with slight skew in the resulting images. It isn&#8217;t a big problem, but rotation will immediately cause you headaches.</p>
<p>I usually go for something like this:</p>
<div id="attachment_162" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/TTL.jpg"><img class="size-medium wp-image-162" title="TTL" src="http://www.brianklug.org/wp-content/uploads/2010/01/TTL-300x236.jpg" alt="" width="300" height="236" /></a><p class="wp-caption-text">Pretty good for taken with my 3GS</p></div>
<p>You could zoom in a bit more in this case if you wanted; in practice you&#8217;ll discover for yourself what works best.</p>
<p>I set the camera to use a relatively big F/# (in this case F/5.6) so there&#8217;s as much depth of field as possible. You want the whole book in focus.</p>
<h2>Now just snap away</h2>
<p>This is the grueling part, capture images of every page. Snag a friend or something as having two people makes this process go much faster. One can turn the page and crease stubborn ones into place, and the other can trigger the shutter with the remote and make sure the book isn&#8217;t creeping out of the frame.</p>
<p>I find this can take anywhere between a half hour to much longer, depending on how much trouble the book gives you. The most challenging parts are the very beginning and the end. At these points, the pages have the most curve to them, sometimes sticking up. This is where sometimes creasing them down or using some tape on the stubborn ones can make or break your day.</p>
<p>Eventually, you&#8217;ll have a directory full of images somewhere you need processed.</p>
<h1>Processing</h1>
<h2>Snapter-ing?</h2>
<p>At this point, you can use whatever tool suits your fancy, but if you&#8217;re using Snapter, read on.</p>
<p>Click Book, grab all your photos, and go make yourself a drink as you wait for it to do initial edge detection and processing on images. Nothing is being changed, it&#8217;s just generating the initial traces around the book it finds.</p>
<p>After this is done comes the only other bothersome part. It&#8217;s very worthwhile to manually go through each page and make sure you&#8217;re happy with the edge detection. Frequently, pages that have black or dark color at the edge cause headaches. Drag the handles around until they match closer. This can be grueling, but it&#8217;s important.</p>
<p>Click Input, change the background color to black (since we&#8217;re using a black piece of paper, or at least I did). Under Output, I also generally turn cropping each page off since I&#8217;d rather deal with a spread. Grayscale output will save on space later, and I keep the DPI the same since I&#8217;ll compress and downsample later in Acrobat. Now, you can click process and have yourself another drink.</p>
<div id="attachment_166" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Snapter-Processing.png"><img class="size-medium wp-image-166" title="Snapter - Processing" src="http://www.brianklug.org/wp-content/uploads/2010/01/Snapter-Processing-300x223.png" alt="" width="300" height="223" /></a><p class="wp-caption-text">Processing Images</p></div>
<p>After this is done, you can preview the results on the right. If everything is right, click Save and wait a little longer.</p>
<div id="attachment_167" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Snapter-Saving.png"><img class="size-medium wp-image-167" title="Snapter---Saving" src="http://www.brianklug.org/wp-content/uploads/2010/01/Snapter-Saving-300x223.png" alt="" width="300" height="223" /></a><p class="wp-caption-text">Saving flattened images</p></div>
<p>Now you should have a directory full of images waiting to be made into a PDF.</p>
<h2>Adobe Acrobat</h2>
<p>You can use whatever you&#8217;d like to make the PDF from the resulting JPEGs, however, I&#8217;ve had luck just using Acrobat.</p>
<p>Click Create -&gt; Merge Files into a Single PDF, and then grab all those images you have.</p>
<p>Combine them, and you should now have a huge PDF. Save it, but you aren&#8217;t done yet. At this point, I generally take a look at the PDF Optimizer under the Advanced tab, and click Audit Space Usage. Yeah, it should be pretty huge.</p>
<div id="attachment_170" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Space-Use.png"><img class="size-medium wp-image-170" title="Space Use" src="http://www.brianklug.org/wp-content/uploads/2010/01/Space-Use-300x262.png" alt="" width="300" height="262" /></a><p class="wp-caption-text">I cheated; this is actually after compression</p></div>
<p>If you absolutely need color, just skip this. If your book is black and white, converting is going to save you a ton of space.</p>
<p>To convert pages to grayscale, under Advanced click Print Production -&gt; Convert Colors. Check &#8220;Convert Colors to Output Intent&#8221; and select &#8220;Gray Gamma 1.8.&#8221; I usually then exclude the front and back covers from the page range, unless you don&#8217;t care about that pretty color you&#8217;ll be missing out on.</p>
<div id="attachment_171" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Convert-to-gray.png"><img class="size-medium wp-image-171" title="Convert to gray" src="http://www.brianklug.org/wp-content/uploads/2010/01/Convert-to-gray-300x210.png" alt="" width="300" height="210" /></a><p class="wp-caption-text">This will take a while...</p></div>
<p>This process also will take some time. Adobe is multithreaded, but still doesn&#8217;t use all my 8 logical cores on my i7 920. Just be patient.</p>
<p>After this finishes, you should now see a dramatic difference under the space audit report for Images. There might be a lot of document overhead, however. Don&#8217;t worry, this is normal.</p>
<p>At this point, it usually makes the most sense to do some OCR if you want, just to make the document searchable. Document -&gt; OCR Text Recognition -&gt; Recognize Text Using OCR does the trick.</p>
<div id="attachment_173" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Scan-to-OCR1.png"><img class="size-medium wp-image-173" title="Scan to OCR" src="http://www.brianklug.org/wp-content/uploads/2010/01/Scan-to-OCR1-300x207.png" alt="" width="300" height="207" /></a><p class="wp-caption-text">Adobe&#39;s OCR works quite well</p></div>
<p>Click Edit and select Searchable Image (Exact). This won&#8217;t resize your images or do compression; we&#8217;ll do that later. Now, wait a long time while it consumes CPU cycles and hopefully makes your document so much more powerful and useful.</p>
<p>After this finishes, you&#8217;re ready to do some compression and hopefully make your document small enough to not be an embarrassment, you storage hog, you. I usually downsample to around 300 DPI, leave monochromatic images alone (since we don&#8217;t have any), and opt for JPEG2000. Check everything in the Discard Objects, Discard User Data, and Clean Up tabs.</p>
<div id="attachment_174" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/JPEG2000-FTW.png"><img class="size-medium wp-image-174" title="JPEG2000 FTW" src="http://www.brianklug.org/wp-content/uploads/2010/01/JPEG2000-FTW-300x248.png" alt="" width="300" height="248" /></a><p class="wp-caption-text">JPEG 2000 is amazing</p></div>
<p>Click Ok, and now be prepared to wait the longest you have yet. Even on my rig, this takes an hour or two.</p>
<p>Check the space audit once more, and you should now have a reasonable sized, fully searchable, readable PDF, ready for your enjoyment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianklug.org/2010/01/scanning-books-my-take/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My ZoneMinder Configuration</title>
		<link>http://www.brianklug.org/2010/01/zoneminder/</link>
		<comments>http://www.brianklug.org/2010/01/zoneminder/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 17:05:37 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Don't Hate]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Self Referential]]></category>
		<category><![CDATA[207MW]]></category>
		<category><![CDATA[Axis]]></category>
		<category><![CDATA[Axis 207MW Review]]></category>
		<category><![CDATA[Axis 207W]]></category>
		<category><![CDATA[Camera]]></category>
		<category><![CDATA[Home Monitoring]]></category>
		<category><![CDATA[Linksys WVC54GCA]]></category>
		<category><![CDATA[Motion Detection]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Wireless]]></category>
		<category><![CDATA[WVC54GCA Review]]></category>
		<category><![CDATA[x86]]></category>
		<category><![CDATA[ZoneMinder]]></category>

		<guid isPermaLink="false">http://www.brianklug.org/?p=18</guid>
		<description><![CDATA[Why Home Security? In recent months, home security and monitoring has become a matter of increasing concern across the country. Whether the reason is local downturn due to a spike in crime or just peace of mind, the price and difficulty of setting up an enterprise-level security system at home is lower than ever. That <a href="http://www.brianklug.org/2010/01/zoneminder/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<h1>Why Home Security?</h1>
<p>In recent months, home security and monitoring has become a matter of increasing concern across the country. Whether the reason is local downturn due to a spike in crime or just peace of mind, the price and difficulty of setting up an enterprise-level security system at home is lower than ever.</p>
<p>That said, the variety of hardware, open and closed source monitoring software, and configuration options makes it a bit daunting to jump right into. I&#8217;ve worked and experimented with a number of configurations and finally settled on one that I think works best (at least for my needs).</p>
<h1>Camera Hardware</h1>
<h2>Camera 1 &#8211; Linksys WVC54GCA</h2>
<p style="text-align: left;">
<div id="attachment_98" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Wireless-G-Internet-Home-Monitoring-Camera_1263024159423.png"><img class="size-medium wp-image-98 " title="Wireless-G Internet Home Monitoring Camera_1263024159423" src="http://www.brianklug.org/wp-content/uploads/2010/01/Wireless-G-Internet-Home-Monitoring-Camera_1263024159423-300x181.png" alt="" width="300" height="181" /></a><p class="wp-caption-text">Wireless-G Internet Home Monitoring Camera</p></div>
<p>I originally started out with just one Linksys WVC54GCA. It&#8217;s a 640&#215;480, wired/wireless 802.11b/g network camera with built in web server for stills and video, and some simple motion detection and alert functionality. The reason for its choice was simple; price. It&#8217;s Linksys&#8217; primary network camera offering, and you can find it as of this writing for $89 at <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16881334003&amp;cm_re=Linksys_camera-_-81-334-003-_-Product">newegg</a>. In addition, there&#8217;s a newer camera with 802.11n, the <a href="http://www.linksysbycisco.com/US/en/products/WVC80N">WVC80N</a>.</p>
<p>However, it isn&#8217;t perfect. To quote the cons of my newegg <a href="http://www.newegg.com/Product/ProductReview.aspx?Item=81-334-003&amp;SortField=1&amp;SummaryType=0&amp;Pagesize=10&amp;SelectedRating=-1&amp;PurchaseMark=&amp;VideoOnlyMark=False&amp;VendorMark=&amp;Page=1&amp;Keywords=(keywords)">review</a>:</p>
<blockquote><p><strong>Cons:</strong> Wireless range isn&#8217;t excellent; I have a very powerful wireless AP with a 12 dBi omnidirectional antenna and a 6 dBi directional antenna, and I had to reposition it so the camera could send video back at a decent bitrate (around 2 megabits is where it sits).</p>
<p>An important thing to note is that the latest .24 firmware breaks WPA/WPA2 support. Mine shipped with .24 and I had to downgrade back to .22 for it to work. A bit disappointing, but hopefully future firmware will fix this glaring problem. The linksys forums have the link to a custom built .22 (oddly enough with german language selected by default, but don&#8217;t worry, all the menus are still english).</p>
<p>Motion detection isn&#8217;t perfect, sometimes false positives will get annoying. I have sensitivity set all the way down and still get a few random videos of nothing going on.</p></blockquote>
<p>More recently, I discovered that the software (despite being open source and a *nix derivative) locks up after anywhere between 6-24 hours when the camera is connected wirelessly. This is fixable (in a haphazard sort of way) by calling an internal page that reboots the camera every 3 hours through a schedule in my Tomato router:</p>
<div id="attachment_92" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/reboot_script.png"><img class="size-medium wp-image-92" title="reboot_script" src="http://www.brianklug.org/wp-content/uploads/2010/01/reboot_script-300x99.png" alt="" width="300" height="99" /></a><p class="wp-caption-text">Tomato Scheduler Screenshot</p></div>
<p>Thus far, this has proven a robust fix and makes the cameras entirely usable. I&#8217;ve notified Linksys and even had a chat online with a higher level tech that passed my findings on to a firmware engineer. They&#8217;ve recently released an <a href="http://www.linksysbycisco.com/US/en/support/WVC54GCA/download">update</a> which purports to fix stability issues:</p>
<blockquote>
<pre>Version v1.1.00 build 02, Jun 15, 2008
- Support of Setup Wizard is temporarily disabled to address security issue
-<strong> Fix security issues
</strong>- Fix Camera stability issues</pre>
</blockquote>
<p>I have yet to fully test it. As an aside, the cameras are actually embedded x86 inside, sporting an AMD Geode SC1100 processor, 32? MB of SDRAM (2x TSOP marked <a href="http://www.psc.com.tw/english/product/product_1c.html">PSC A2V28S40CTP</a>), and Ralink 802.11b/g/a(?) chipset (<a href="http://www.ralinktech.com/product.php?s=34">RT2561T</a>) as pictured.</p>
<div id="attachment_119" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/AMD-Geode.jpg"><img class="size-medium wp-image-119" title="AMD-Geode" src="http://www.brianklug.org/wp-content/uploads/2010/01/AMD-Geode-300x228.jpg" alt="" width="300" height="228" /></a><p class="wp-caption-text">AMD Geode SC1100</p></div>
<div id="attachment_120" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Camera-Front.jpg"><img class="size-medium wp-image-120" title="Camera-Front" src="http://www.brianklug.org/wp-content/uploads/2010/01/Camera-Front-300x200.jpg" alt="" width="300" height="200" /></a><p class="wp-caption-text">Camera visible, other SoC</p></div>
<div id="attachment_121" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Plain-ol-MiniPCI.jpg"><img class="size-medium wp-image-121" title="Plain-'ol-MiniPCI" src="http://www.brianklug.org/wp-content/uploads/2010/01/Plain-ol-MiniPCI-300x223.jpg" alt="" width="300" height="223" /></a><p class="wp-caption-text">RaLink MiniPCI card</p></div>
<p>Image quality is a little above average but nothing wonderful due to the relatively tiny plastic fixed focus lens system. Low light sensitivity is ok, but nothing stellar; you still need moonlight or ambient street lighting to get usable results at night. If you don&#8217;t mind those caveats, you&#8217;ve basically got the beginnings of a very robust (and cheap) network camera.</p>
<div id="attachment_106" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/WVC54GCA.jpg"><img class="size-medium wp-image-106" title="WVC54GCA" src="http://www.brianklug.org/wp-content/uploads/2010/01/WVC54GCA-300x124.jpg" alt="" width="300" height="124" /></a><p class="wp-caption-text">Night versus day performance</p></div>
<p>There are a number of relevant pages that are undocumented on the camera itself:</p>
<blockquote><p>Reboot: http://USER:PASS@ADDRESS/adm/reboot.cgi</p>
<p>MJPEG stream: http://USER:PASS@ADDRESS/img/mjpeg.jpg</p>
<p>JPEG still: http://USER:PASS@ADDRESS/img/snapshot.cgi?size=3 (3- 640&#215;480, 2- 320&#215;240, 1-  160&#215;120)</p></blockquote>
<p>The options offered in the camera&#8217;s internal setup pages aren&#8217;t very robust, but offer just enough for you to do almost everything you&#8217;d want to.</p>
<div id="attachment_101" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Wireless-G-Internet-Home-Monitoring-Camera_1263024185059.png"><img class="size-medium wp-image-101" title="Wireless-G Internet Home Monitoring Camera_1263024185059" src="http://www.brianklug.org/wp-content/uploads/2010/01/Wireless-G-Internet-Home-Monitoring-Camera_1263024185059-300x185.png" alt="" width="300" height="185" /></a><p class="wp-caption-text">Image Settings</p></div>
<h2>Camera 2 &#8211; AXIS 207W and MW</h2>
<p>After acquiring another Linksys camera for myself (and another 3 for the parents), trudging my way through the reboot issue, and reasonable but not stellar image quality, I decided I was ready for something more. Axis seems to have very good support, choice, and performance, in addition to heaps more customization and options for the camera itself. The catch? Price.</p>
<p>I decided to start off with Axis&#8217; cheapest offering, the 207-series of network cameras. I managed to snag an Axis 207MW that had been used just once at a trade show that was being sold as used on eBay, and my dad went ahead and just purchased outright a 207W from Newegg. The distinction between the 207W and MW is that the 207MW has a 1.3 megapixel camera supporting resolutions of up to 1280&#215;1024, whereas the 207W is just 640&#215;480. They&#8217;re both 802.11b/g so you can move them throughout the house, and have almost identical setup and configuration pages. Of course, like the Linksys WVC54GCA, there&#8217;s optional ethernet support as well. Virtually all the other features are the same between the 207W and 207MW.</p>
<div id="attachment_103" class="wp-caption aligncenter" style="width: 254px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/axis-207mw.jpg"><img class="size-medium wp-image-103" title="axis-207mw" src="http://www.brianklug.org/wp-content/uploads/2010/01/axis-207mw-244x300.jpg" alt="" width="244" height="300" /></a><p class="wp-caption-text">Axis 207MW (the 207W looks identical)</p></div>
<p>As of this writing, the 207MW is $328 at <a href="http://www.amazon.com/Axis-Network-Camera-Wireless-Megapixel/dp/B000J6D9XK">Amazon</a>, and the 207W is $286 at <a href="http://www.amazon.com/Axis-Network-Camera-Wireless-802-11G/dp/B000E6UKE6/ref=pd_cp_e_1">Amazon</a>.</p>
<p>Right off the bat, you can tell this camera is much different. It&#8217;s got an actual glass lens system, focusing ring, and a compact form factor with a longer cable. In addition, the antenna is external and swivels and snaps out so you can position it however suits getting the best signal. There are a variety of status LEDs on the back that make troubleshooting limited wireless connectivity simpler. The front clear ring is actually a large lightguide for four LEDs that can be either green or amber depending on the status of the camera. These can be disabled as well.</p>
<div id="attachment_107" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/207MW.jpg"><img class="size-medium wp-image-107" title="207MW" src="http://www.brianklug.org/wp-content/uploads/2010/01/207MW-300x148.jpg" alt="" width="300" height="148" /></a><p class="wp-caption-text">Day versus night performance on the 207MW</p></div>
<p>Image quality is also much better on the Axis 207MW than the Linksys. Originally, I had a WVC54GCA mounted where the Axis is now inside the garage. The Axis is both much more stable, and also gets better wireless reception outside in an otherwise difficult to reach trouble spot.</p>
<p>Among other things, the Axis offers many more configuration options within its internal administrative pages, as well as (if you&#8217;re interested in running it) many more options for built in motion detection. One of the more important things I&#8217;ve come across is the ability to change exposure prioritization so the otherwise very well lit driveway doesn&#8217;t come out a homogeneous white from pixels saturating as often. This kind of exposure prioritization can be done on the Axis, but not on the Linksys as shown:</p>
<div id="attachment_109" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Image-Settings-Advanced-Camera-Settings-AXIS-207MW-Network-Camera_1263073399722.png"><img class="size-medium wp-image-109" title="Image Settings-Advanced Camera Settings - AXIS 207MW Network Camera_1263073399722" src="http://www.brianklug.org/wp-content/uploads/2010/01/Image-Settings-Advanced-Camera-Settings-AXIS-207MW-Network-Camera_1263073399722-300x223.png" alt="" width="300" height="223" /></a><p class="wp-caption-text">Exposure settings</p></div>
<p>There are just a wealth of options that really make the Axis shine over the cheaper Linksys if you delve deeper. I could write pages about the differences that the extra nearly $200 makes (if you can afford it). Both cameras offer the ability to upload images and 5-10 second video clips of motion detection events to an FTP share, or attach them to an email. Detailing the differences between the two (and the ultimate shortcomings of both) is another article in and of itself.</p>
<p>At the end of the day, I found motion detection somewhat unreliable on both the Axis and Linksys; either I wound up with far too many motion event video clips or nearly nothing. Even worse, downloading and then watching hundreds if not thousands of false positives a grueling task. If you&#8217;re a basic user or just interested in having a camera for temporary purposes while you&#8217;re away on a trip, perhaps just the in-camera features are enough. However, if you&#8217;re looking for something more robust for a number of permanent cameras with much better motion detection, keep reading. At the end of the day, I use both types of camera just as inputs for ZoneMinder as you&#8217;ll see later on.</p>
<h1>ZoneMinder Setup</h1>
<p>ZoneMinder is a GPL&#8217;d, LAMP-based web tool for managing and monitoring virtually every kind of possible video source. Its supported sources span everything from cheap USB Logitech webcams, to network security cameras with built in webservers (like the two I&#8217;ve covered), to traditional video sources through a video capture card. Their documentation is a bit overly complicated (you can get to their supported hardware list <a href="http://www.zoneminder.com/wiki/index.php/Supported_hardware">here</a>), and at the end of the day you&#8217;re going to either need to have local linux driver support (and a path to video like you&#8217;d expect for a webcam/TV tuner), or a path for JPEG, MJPEG, or another kind of MPEG4 stream.</p>
<p>The aim of ZoneMinder is to do all motion detection, video archiving, and image processing in one centralized place; simplifying use and making it easier to keep track of new events as they happen. Of course, the only downside to this is that all that motion detection and video capture requires a relatively powerful computer. Official documentation claims that even an ancient Pentium II should be able to do motion detection and capture for one camera at 25 FPS.</p>
<p>On the old computer I&#8217;ve configured (with a Pentium 4 Northwood 2.8 GHz and 2 GB of RAM), I&#8217;ve found that adding an 8 FPS VGA network camera and doing motion detection and capture adds between 10-20% CPU load.</p>
<h2>Installation</h2>
<p>Luckily ZoneMinder is relatively easy to setup if you&#8217;ve ever been near a modern linux distro with aptitude. As I noted earlier, ZoneMinder should ideally be run on a LAMP or similar web server, however, they claim that distro, web server, and SQL database support is actually quite <a href="http://www.zoneminder.com/documentation.html">diverse</a>. I performed my installation on a fresh install of Ubuntu 9.10 Karmic by following instructions similar to <a href="http://www.linuxscrew.com/2007/11/05/howto-home-video-security-with-zoneminder-and-ubuntu/">Linux * Screw&#8217;s</a>:</p>
<blockquote><p><code>sudo apt-get install zoneminder apache2 php5-mysql libapache2-mod-php5 mysql-server ffmpeg</code></p></blockquote>
<p>Once that was finished, the following:</p>
<blockquote><p><code>sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf<br />
sudo</code><code> /etc/init.d/apache2 force-reload</code></p></blockquote>
<div id="TixyyLink">If everything worked correctly, you should now be able to see the ZoneMinder configuration panel at:</div>
<blockquote>
<div>http://_YOUR WEBSERVER ADDRESS_/zm/</div>
</blockquote>
<p>At this point, I&#8217;d encourage you to enable user authentication in Options -&gt; System -&gt; ZM_OPT_USE_AUTH. Ticking this box and saving will enable another tab, Users. I generally configure one  admin for making changes and a less privileged &#8220;User&#8221; account for simply viewing the cameras and motion detection events as shown:</p>
<div id="attachment_116" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Options_1263104091429.png"><img class="size-medium wp-image-116" title="ZM - Options_1263104091429" src="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Options_1263104091429-300x59.png" alt="" width="300" height="59" /></a><p class="wp-caption-text">Users configuration</p></div>
<p>The remainder of options are largely fine in their defaults; the only major thing that you should be concerned with are the paths if you care about certain disks being used. I&#8217;ve recorded almost 800 events so far in VGA resolution and have used up an additional 1% of the meager 80 GB HDD on the system.</p>
<h2>Adding Sources</h2>
<p>Now, to add some video sources. This is where you really have to either know the path to either JPEGs or a MJPEG stream on the camera.</p>
<p>Click &#8220;Add New Monitor&#8221; in the bottom right. Now, if you have an Axis or Panasonic network camera (arguably the two de-facto industry standards) there are some presets that are worth checking out that you can use by clicking &#8220;Presets&#8221; in the top right. Change the source type to Remote (if it isn&#8217;t already from using a preset), and name it appropriately. I also usually set the FPS to either 5 or 8; from what I&#8217;ve seen, higher really isn&#8217;t feasible.</p>
<p>Now click the &#8220;Source&#8221; tab. This is where if you used a preset, your life is much easier, as the remote host path is already filled in. If not, it&#8217;s still simple, you just have to know how to get the relevant data from your source. In my example, I have the following:</p>
<div id="attachment_117" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Monitor-Euclid_Axis_Garage_Outside_1263104308194.png"><img class="size-medium wp-image-117" title="ZM - Monitor - Euclid_Axis_Garage_Outside_1263104308194" src="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Monitor-Euclid_Axis_Garage_Outside_1263104308194-300x287.png" alt="" width="300" height="287" /></a><p class="wp-caption-text">Adding Axis network camera</p></div>
<p>From the above screenshot:</p>
<blockquote><p>Remote Host Name: user:pass@_PATH TO YOUR CAMERA_</p>
<p>Remote Host Port: 80 (Or something else, if you&#8217;ve changed it)</p>
<p>Remote Host Path: /axis-cgi/jpg/image.cgi?resolution=640&#215;480</p></blockquote>
<p>Note that this is for the Axis 207 series cameras, although in general all the Axis cameras follow the same syntax (nice, isn&#8217;t it?). You can&#8217;t use whatever resolution you want, however, all the major and obvious choices work. You&#8217;ll notice I&#8217;ve just used VGA instead of the full 1.3 MP 1280&#215;1024 resolution image from the 207MW. This is because using full resolution does seem to generate too much network traffic for my 802.11g network (despite my best efforts, the garage remains a dead zone thanks to chicken wire stucco construction), and FPS takes a large hit. No doubt that if the connection were wired, higher would be feasible. However, VGA is more than enough for now.</p>
<p>Adding the Linksys sources are just as easy given the paths I outlined previously. I haven&#8217;t added any internal sources, personally, however I imagine that configuration is the same if not easier; it requires knowing the path and setting a few additional constraints so you don&#8217;t overload your server.</p>
<h2>Configuration</h2>
<p>Now that you&#8217;ve added sources, you can configure their function.</p>
<div id="attachment_125" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/Function.png"><img class="size-thumbnail wp-image-125" title="Function" src="http://www.brianklug.org/wp-content/uploads/2010/01/Function-150x150.png" alt="" width="150" height="150" /></a><p class="wp-caption-text">Video source functions</p></div>
<p>You would think these options would be intuitive, however, they caused a bit of confusion for myself personally due to their shortened names. They are as follows, from the ZM <a href="http://www.zoneminder.com/wiki/index.php/Main_Documentation">documentation</a>:</p>
<ul>
<li> None – The monitor is currently disabled and no streams can be viewed or events generated.</li>
<li> Monitor – The monitor will only stream feeds but no image analysis is done and so no alarms or events will be generated,</li>
<li> Modect – or MOtion DEteCTtion. All captured images will be analysed and events generated where motion is detected.</li>
<li> Record – In this case continuous events of a fixed length are generated regardless of motion which is analogous to a convention time-lapse video recorder. No motion detection takes place in this mode.</li>
<li> Mocord – This is a hybrid of Modect and Record and results in both fixed length events being recorded and also any motion being highlighted within those events.</li>
<li> Nodect – or No DEteCTtion. This is a special mode designed to be used with external triggers. In Nodect no motion detection takes place but events are recorded if external triggers require it</li>
</ul>
<p>In practice, my cameras are generally set to Modect, unless I have an indoor camera with particularly high traffic, in which case Monitor makes more sense since all the motion detection events would be me moving around and about (take it from experience, you see yourself doing some pretty strange things). This is also a nice way of judging how much load each camera adds, as the setting is pretty immediate if you&#8217;re watching htop.</p>
<p>With time, you should now have a zoneminder console similar to mine:</p>
<div id="attachment_126" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Console_1263104118697.png"><img class="size-medium wp-image-126" title="ZM - Console_1263104118697" src="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Console_1263104118697-300x79.png" alt="" width="300" height="79" /></a><p class="wp-caption-text">ZM Main Console</p></div>
<p>I&#8217;ve noted in particular how offline hosts appear red, while online hosts appear green or orange depending on their function.</p>
<p>Perhaps the only last area of configuration are the zones themselves (finally, the zone in ZoneMinder!) These define the regions of interest, in each video source, that will be used for event detection. Clicking on &#8220;1&#8243; under Zones will allow you to modify the default zone for the video source. This is where you&#8217;re really given a lot of control far beyond anything in-camera will ever offer from even Axis.  You can add points and create polygons, as well as tweak sensitivity on an interface that looks like this:</p>
<div id="attachment_131" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Zone_1263108663254.png"><img class="size-medium wp-image-131" title="ZM - Zone_1263108663254" src="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Zone_1263108663254-300x187.png" alt="" width="300" height="187" /></a><p class="wp-caption-text">Here, I&#39;ve rejected a region that gives false positives; cars going by on the road.</p></div>
<p>Returning to the main &#8220;Console&#8221; view, the rest of the interface itself is relatively self explanatory.</p>
<h2>Daily Use/Monitoring</h2>
<p>If you&#8217;re interested in viewing all of the video sources currently enabled, clicking &#8220;Montage&#8221; should give a view similar to the following:</p>
<div id="attachment_127" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Montage_1263104528470.png"><img class="size-medium wp-image-127" title="ZM - Montage_1263104528470" src="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Montage_1263104528470-300x176.png" alt="" width="300" height="176" /></a><p class="wp-caption-text">Montage view, including author</p></div>
<p>You&#8217;re also given the FPS below each camera, this is also handy. Lower resolution (eg I show a 320&#215;240 source blacked out) cameras are somewhat intelligently tiled as well, using the available space pretty well.</p>
<p>Clicking on any of the events back on the console page should bring up something similar to the following, showing details about all the motion detection events from the given source (or all sources):</p>
<div id="attachment_128" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Events_1263104342358.png"><img class="size-medium wp-image-128" title="ZM - Events_1263104342358" src="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Events_1263104342358-300x264.png" alt="" width="300" height="264" /></a><p class="wp-caption-text">Hope nobody studies this in too much detail...</p></div>
<p>Clicking on any of the event IDs or names pulls up a window where you can review the event, from a few seconds before, to just after. You can also click anywhere below on the scrub bar to jump ahead or back, as expected. It isn&#8217;t perfect, but does a surprisingly good job:</p>
<div id="attachment_129" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Event_1263104330854.png"><img class="size-medium wp-image-129" title="ZM - Event_1263104330854" src="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Event_1263104330854-300x277.png" alt="" width="300" height="277" /></a><p class="wp-caption-text">A car enters my driveway at night...</p></div>
<p>Perhaps the coolest is &#8220;Timeline&#8221; view, a high-level plot of motion detection activity across all cameras overlaid on a timeline. This gives you an at-a-glance overview of whether the same events were being detected across all cameras at the same time, or to quickly pick out what time of day generates the most activity. In this view, mousing over times and activity as demarked by red on the plot refreshes the thumbnail appropriately, as well as with the detection region highlighted in red.</p>
<div id="attachment_135" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Dec-2009-Jan-2010_1263104420718.png"><img class="size-medium wp-image-135" title="ZM - Dec 2009 - Jan 2010_1263104420718" src="http://www.brianklug.org/wp-content/uploads/2010/01/ZM-Dec-2009-Jan-2010_1263104420718-300x213.png" alt="" width="300" height="213" /></a><p class="wp-caption-text">My timeline for all zones</p></div>
<p>It isn&#8217;t always the most useful way to review events, but perhaps one of the more unique. I&#8217;ve found it useful for reviewing a few days or weeks at a glance when I&#8217;m gone. There&#8217;s also certainly a nice pattern that emerges over time, at least for me.</p>
<h2>Mobile</h2>
<p>ZoneMinder supposedly has a nice mobile view available, however, I&#8217;ve had relatively little experience with it and had difficulty enabling it on my iPhone 3GS. Viewing the normal ZM site works fine, however, motion detection playback doesn&#8217;t work all the time.</p>
<p>In the meantime, I continue to use IP Vision for monitoring all my MJPEG sources:</p>
<div id="attachment_138" class="wp-caption aligncenter" style="width: 210px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/IMG_03132.png"><img class="size-medium wp-image-138" title="IMG_0313(2)" src="http://www.brianklug.org/wp-content/uploads/2010/01/IMG_03132-200x300.png" alt="" width="200" height="300" /></a><p class="wp-caption-text">IP Vision on the iPhone. Streaming MJPEG!</p></div>
<p>If you&#8217;re interested in me detailing this, just let me know. Setup is again straightforward and merely involves knowing the correct paths and forwarding a few ports in your router. Also, it&#8217;s a great way to quickly consume tons of 3G bandwidth!</p>
<h1>Conclusions</h1>
<p>Setting up a robust, nearly commercial-level reliability home video surveillance system is now easier than ever thanks to the huge variety of video hardware and open source software available. I&#8217;ve moved from one single camera with in-camera motion detection sending alert emails with 5 second video clips to a gmail account (which quickly filled to the limit), to a secure and expandable motion detection suite monitoring at times 7 cameras that is accessible virtually anywhere I can get online.</p>
<p>If you&#8217;re only interested in home monitoring during a vacation or time away, setting up a system like this might not be the best solution, so long as you&#8217;re willing to sift through either an FTP dump full of videos and stills or a gmail account choc-full of videos. However, if you&#8217;re serious about having a manageable system with a number of fixed (or PTZ!) cameras that you need constantly monitored, ZoneMinder makes sense and gets the job done. In the future, for serious users, it can even be hosted commercially or simply store the event cache on a network share elsewhere to prevent physical tampering or theft.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianklug.org/2010/01/zoneminder/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>How Not to do a Live Stream</title>
		<link>http://www.brianklug.org/2010/01/how-not-to-do-a-live-stream/</link>
		<comments>http://www.brianklug.org/2010/01/how-not-to-do-a-live-stream/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 03:13:01 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Hate]]></category>
		<category><![CDATA[CES]]></category>
		<category><![CDATA[DRM]]></category>
		<category><![CDATA[Fail]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Streaming]]></category>

		<guid isPermaLink="false">http://www.brianklug.org/?p=77</guid>
		<description><![CDATA[Censorship Like many others yesterday, I eagerly awaited the Microsoft CES keynote and the chance to see Steve Ballmer once again have a Developers Developers Developers moment on stage.  Although it was initially marred by a power outage which delayed the conference some 20 minutes and damaged a Media Center TV and an ASUS eeeTV <a href="http://www.brianklug.org/2010/01/how-not-to-do-a-live-stream/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<h1>Censorship</h1>
<p>Like many others yesterday, I eagerly awaited the Microsoft CES keynote and <span style="text-decoration: line-through;">the chance to see Steve Ballmer once again have a Developers Developers Developers moment on stage</span>.  Although it was initially marred by a power outage which delayed the conference some 20 minutes and damaged a Media Center TV and an ASUS eeeTV demo, what really made me pull the plug was what Microsoft did to the live stream itself.</p>
<p>Initially it was plagued with audio problems. The stream started too quiet, then suddenly lost the left channel, then the left channel came back but killed the right channel. At one point I&#8217;m certain there was some sort of loop in a volume normalization system, as gain increased continually for at least an entire minute. Of course, these issues are technical and completely understandable given the fact that nearly everything needed to be restarted after the power outage.</p>
<p>So imagine my disgust, and the disgust of others, when during the Microsoft Xbox 360 part of the keynote, the following comes up right as they prepare to show the Halo Reach trailer:</p>
<div id="attachment_78" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/55438668.png"><img class="size-medium wp-image-78" title="Halo Reach Microsoft CES" src="http://www.brianklug.org/wp-content/uploads/2010/01/55438668-300x167.png" alt="" width="300" height="167" /></a><p class="wp-caption-text">Microsoft LiveStreams, now with DRM</p></div>
<p>Absolutely incredible, censoring a live keynote because of IP concerns from the very company throwing the keynote. Even better, apparently the Xbox team wasn&#8217;t made aware that there was any problem at all with what was going to be shown:</p>
<blockquote><p>Sorry that had to black that out&#8230;.I did not know <img src='http://www.brianklug.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> t -<a href="http://twitter.com/majornelson/status/7466160309">Major Nelson</a></p></blockquote>
<p>Even more strange, the content that was shown wasn&#8217;t new, in spite of the fact that the announcer lead-up to the video made it sound like it was going to be. It was nothing more than the Halo Reach <a href="http://www.microsoft.com/presspass/events/ces/videoGallery.aspx?contentID=360_gameroom#channel_contentListTop">trailer</a> released over a month ago.</p>
<blockquote><p>It&#8217;s a video&#8230;not a #haloreach demo. -<a href="http://twitter.com/majornelson/status/7466130876">Major Nelson</a></p></blockquote>
<p>Why then did this content merit censoring the live stream for nearly 3 minutes? Is Microsoft not comfortable with using the public spectacle and attention that is CES to promote its own products and games? Is it honestly concerned that showing a trailer for a game in a live video stream constitutes some sort of breach in IP? What?</p>
<p>That, by itself wouldn&#8217;t be noteworthy, it was what followed that really iced the proverbial cake for the Keynote.</p>
<div id="attachment_79" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/55439855.png"><img class="size-medium wp-image-79" title="Microsoft Censored Livestream 2" src="http://www.brianklug.org/wp-content/uploads/2010/01/55439855-300x200.png" alt="" width="300" height="200" /></a><p class="wp-caption-text">Fool me once, shame on you; fool me twice...</p></div>
<p>Yes. They did it again. If you&#8217;re so inclined, the video is <a href="http://www.microsoft.com/presspass/events/ces/videoGallery.aspx?contentID=360_gameroom#channel_contentListTop">here</a> for everyone to view, now that we&#8217;ve been all made feel like children.</p>
<p>There is seriously so much wrong with doing something like this to the thousands of people watching the live stream that <em>aren&#8217;t </em>at CES but are still interested, that I don&#8217;t even know where to begin. In fact, I don&#8217;t even have to, because so much of that is obvious. But not, apparently, to Microsoft. Shortly after was when I stopped watching.</p>
<p>Nice of Microsoft to leave end-user-facing employees that work and try hard like Major Nelson to pick up all the pieces:</p>
<blockquote><p>Reagarding[sic] the Reach blackout on the stream&#8230;..I am going to talk to some folks about that #notcool -<a href="http://twitter.com/majornelson/status/7466344327">Major Nelson</a></p>
<p>Ok, I need to take a walk and have a little chat with some folks. -<a href="http://twitter.com/majornelson/status/7466632288">Major Nelson</a></p></blockquote>
<h1>Fast Forward to Today</h1>
<p>Imagine how shocked I was today, when during Paul Otellini&#8217;s Intel CES keynote the following popped up on the livecast:</p>
<div id="attachment_81" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/55646596-72cb688793e526a163545b16569fbf2b.4b469ae0-full.png"><img class="size-medium wp-image-81" title="Intel Livecast Censorship" src="http://www.brianklug.org/wp-content/uploads/2010/01/55646596-72cb688793e526a163545b16569fbf2b.4b469ae0-full-300x207.png" alt="" width="300" height="207" /></a><p class="wp-caption-text">/facepalm</p></div>
<p>I&#8217;m still not entirely certain whether, once again, the stream had been interrupted due to intellectual property concerns, DRM, or simply because they didn&#8217;t want to show more 3D parallax (despite having done so just minutes before).</p>
<p>Whatever the case, this seriously needs to stop.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianklug.org/2010/01/how-not-to-do-a-live-stream/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Challenge of Marketing 3D</title>
		<link>http://www.brianklug.org/2010/01/marketing-3d/</link>
		<comments>http://www.brianklug.org/2010/01/marketing-3d/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 02:09:57 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Don't Hate]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[CES]]></category>
		<category><![CDATA[Displays]]></category>
		<category><![CDATA[Marketing]]></category>

		<guid isPermaLink="false">http://www.brianklug.org/?p=73</guid>
		<description><![CDATA[Although I couldn&#8217;t make it to CES this year, I have been following it pretty closely through reading liveblogs, news items, press releases, and unsurprisingly live webcasts. Unsurprisingly, probably the main highlight of the conference this year is popularization of 3D media. Displays, cameras, movies, and all the compute power to render, edit, and distribute <a href="http://www.brianklug.org/2010/01/marketing-3d/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Although I couldn&#8217;t make it to CES this year, I have been following it pretty closely through reading liveblogs, news items, press releases, and unsurprisingly live webcasts. Unsurprisingly, probably the main highlight of the conference this year is popularization of 3D media. Displays, cameras, movies, and all the compute power to render, edit, and distribute it.</p>
<p>What&#8217;s become immediately obvious, however, are the challenges that this new format will face before becoming widespread. The most glaring of which, is how all the 3D I&#8217;ve been able to see so far is this:</p>
<div id="attachment_74" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.brianklug.org/wp-content/uploads/2010/01/intel-keynote-ces10-0046-rm-eng.jpg"><img class="size-medium wp-image-74" title="Bono at Intel Keynote" src="http://www.brianklug.org/wp-content/uploads/2010/01/intel-keynote-ces10-0046-rm-eng-300x199.jpg" alt="" width="300" height="199" /></a><p class="wp-caption-text">Parallax</p></div>
<p>No, not Bono or how content providers hope this will sell yet another copy of media we already have, or how 3D is somehow the end of movie piracy ( this time in a 3D format. <a href="http://en.wikipedia.org/wiki/Parallax">Parallax</a>.</p>
<p>Of course, parallax is fundamental to how 3D displays work; you present different images to each eye with the subject shifted proportional to how much depth should be perceived. The chief problem that I think adoption will face is that, ultimately, you need to <em>see</em> an example of 3D to become a fan of 3D. In essence, it&#8217;s impossible to convey what 3D displays look and seem like (especially over print or 2D monitors) until you already <em>have</em> one.</p>
<p>Forget the primary hurdle to 3D, the glasses (unless you have a <em>very special</em> 3D monitor that doesn&#8217;t require them because it uses voxels or a surface pattern to create the parallax). It seems to me like, already, you&#8217;re going to have to go either see a 3D movie or find a very lucky friend who has a 3D monitor to make an educated decision about it yourself. And although it seems like the industry has already decided this is the next big trend, consumers must first be convinced it&#8217;s the way to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianklug.org/2010/01/marketing-3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

