<?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>apocryph.org &#187; gallery2</title>
	<atom:link href="http://apocryph.org/tag/gallery2/feed/" rel="self" type="application/rss+xml" />
	<link>http://apocryph.org</link>
	<description>Notes to my future self</description>
	<lastBuildDate>Mon, 21 Jun 2010 15:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Migrating gallery from Gallery2 to Flickr</title>
		<link>http://apocryph.org/2008/10/18/migrating_gallery_gallery2_flickr/</link>
		<comments>http://apocryph.org/2008/10/18/migrating_gallery_gallery2_flickr/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 02:03:37 +0000</pubDate>
		<dc:creator>anelson</dc:creator>
				<category><![CDATA[Migrated from Drupal]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[gallery2flickr]]></category>
		<category><![CDATA[tech diary]]></category>

		<guid isPermaLink="false">http://apocryph.org/?p=587</guid>
		<description><![CDATA[I&#8217;m finally moving apocryph.org over to FutureHosting from DreamHost.  I&#8217;ve put it off for so long because my 35+GB photo gallery will be a real pain to move over, and will use most of the 40GB of storage I have allotted on one of my two VPS accounts.
I really wanted to move my photo [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m finally moving <code>apocryph.org</code> over to FutureHosting from DreamHost.  I&#8217;ve put it off for so long because my 35+GB photo gallery will be a real pain to move over, and will use most of the 40GB of storage I have allotted on one of my two VPS accounts.</p>
<p>I really wanted to move my photo hosting to Picasa Web Albums, on account of the awesome new face detection/recognition feature they have in beta, but in the end I was swayed by value.</p>
<p>Here&#8217;s the price schedule for Picasa Web Albums:</p>
<ul>
<li>10 GB ($20.00 USD per year)   </li>
<li>40 GB ($75.00 USD per year)</li>
<li>150 GB ($250.00 USD per year)</li>
<li>400 GB ($500.00 USD per year) </li>
</ul>
<p>Here&#8217;s the schedule for Flickr:</p>
<ul>
<li>Unlimited ($24.95/yr)</li>
</ul>
<p>Since I&#8217;m almost at 40GB, inside of a year I would be spending $250/yr for Picasa storage.  Sorry, but face recognition coolness isn&#8217;t worth that sort of a premium.</p>
<p>I&#8217;m currently in the process of migrating my entire gallery over to Flickr using the Gallery2Flickr plug-in for Gallery 2.  It&#8217;s slow going; I&#8217;ll have a separate post about the jigger-pokery required to make that work.  Once I&#8217;m done, I&#8217;ll use my Gallery 2 install solely for hosting photos for my family, which is a small enough dataset that I can fit it on my VPS without difficulty.</p>
]]></content:encoded>
			<wfw:commentRss>http://apocryph.org/2008/10/18/migrating_gallery_gallery2_flickr/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lesson Learned: Face Detection is Hard</title>
		<link>http://apocryph.org/2008/02/17/lesson_learned_face_detection_hard/</link>
		<comments>http://apocryph.org/2008/02/17/lesson_learned_face_detection_hard/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 18:20:31 +0000</pubDate>
		<dc:creator>anelson</dc:creator>
				<category><![CDATA[Migrated from Drupal]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[tech diary]]></category>

		<guid isPermaLink="false">http://apocryph.org/?p=546</guid>
		<description><![CDATA[A while back I thought it would be a good idea to implement face detection in Gallery2, based on a similar feature in Facebook.  I downloaded the OpenCV computer vision toolkit and ran the facedetect sample app against a collection of 60 photos from my gallery, some with no faces, others with a single [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I thought it would be a good idea to <a href="project_idea_face_detection_gallery2">implement face detection in Gallery2</a>, based on a similar feature in Facebook.  I downloaded the <a href="http://sourceforge.net/projects/opencv/">OpenCV</a> computer vision toolkit and ran the <code>facedetect</code> sample app against a collection of 60 photos from my gallery, some with no faces, others with a single face, still others with multiple faces, faces in profile, etc.  No matter which training file I used, the face detection was horribly unreliable.  I would estimate 10% of actual faces were detected, and of all the faces reported by the tool, maybe 5% were actual faces.</p>
<p>This was pretty disappointing, so I uploaded the same corpus of photos to Facebook to see how well it did with them.  Imagine my surprise when it didn&#8217;t detect any!  The face detection I was seeing on my sister&#8217;s profile was due to manual tagging of the photos from within the upload applet, and was not driven by computer vision algorithms.  That explains that.</p>
<p>I still think a similar feature in Gallery would be nice, but with the CV aspect removed it doesn&#8217;t seem quite so fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://apocryph.org/2008/02/17/lesson_learned_face_detection_hard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Upgraded Gallery 2.1 RC2a to Gallery 2.2 RC1</title>
		<link>http://apocryph.org/2007/01/14/upgraded_gallery_2_1_rc2a_to_gallery_2_2_rc1/</link>
		<comments>http://apocryph.org/2007/01/14/upgraded_gallery_2_1_rc2a_to_gallery_2_2_rc1/#comments</comments>
		<pubDate>Sun, 14 Jan 2007 18:26:32 +0000</pubDate>
		<dc:creator>anelson</dc:creator>
				<category><![CDATA[Migrated from Drupal]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[tech diary]]></category>

		<guid isPermaLink="false">http://apocryph.org/?p=311</guid>
		<description><![CDATA[I just upgraded the Gallery install on bonzo to 2.2 RC1, which has some cool new features like dynamic albums, and (supposedly) performance improvements.  It seems to have worked fine.
]]></description>
			<content:encoded><![CDATA[<p>I just upgraded the <a href="http://gallery.menalto.com/">Gallery</a> install on <code>bonzo</code> to 2.2 RC1, which has some cool new features like dynamic albums, and (supposedly) performance improvements.  It seems to have worked fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://apocryph.org/2007/01/14/upgraded_gallery_2_1_rc2a_to_gallery_2_2_rc1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More fallout from disk full problem on /var</title>
		<link>http://apocryph.org/2006/08/02/more_fallout_from_disk_full_problem_on_var/</link>
		<comments>http://apocryph.org/2006/08/02/more_fallout_from_disk_full_problem_on_var/#comments</comments>
		<pubDate>Wed, 02 Aug 2006 15:45:31 +0000</pubDate>
		<dc:creator>anelson</dc:creator>
				<category><![CDATA[Migrated from Drupal]]></category>
		<category><![CDATA[bonzo]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[tech diary]]></category>

		<guid isPermaLink="false">http://apocryph.org/?p=259</guid>
		<description><![CDATA[A while back I had some problems with MySQL running out of space on /var.  Today I found out my Gallery2 was down, responding to all requests with &#8220;An error has occurred while interacting with the database.&#8221;
In the config.php file in the gallery2 install folder, there&#8217;s a line that sets the debug mode.  [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I had some problems with <a href="more_mysql_and_disk_full_problems">MySQL running out of space on <code>/var</code></a>.  Today I found out <a href="/gallery2">my</a> <a href="http://gallery.menalto.com/">Gallery2</a> was down, responding to all requests with &#8220;An error has occurred while interacting with the database.&#8221;</p>
<p>In the <code>config.php</code> file in the <code>gallery2</code> install folder, there&#8217;s a line that sets the debug mode.  By default it&#8217;s:</p>
<pre><code>$gallery-&gt;setDebug(false);
</code></pre>
<p>For debugging I changed it to:</p>
<pre><code>$gallery-&gt;setDebug('buffered');
</code></pre>
<p>and reloaded the Gallery main page.  That displays a shitload of debug messages at the end of the page.  In my case, I saw the familiar MySQL message about a table being corrupted.  This time, it was <code>g2_CacheMap</code>.  I did a quick <code>repair table g2_CacheMap</code> in <code>mysql</code>, and <em>voila!</em>, Gallery is back up.</p>
<p><a href="http://en.wikipedia.org/wiki/Insha'Allah"><em>insha&#8217;allah</em></a>, this is the last such problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://apocryph.org/2006/08/02/more_fallout_from_disk_full_problem_on_var/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How big is too big for upload_max_filesize?</title>
		<link>http://apocryph.org/2005/12/28/how_big_is_too_big_for_upload_max_filesize/</link>
		<comments>http://apocryph.org/2005/12/28/how_big_is_too_big_for_upload_max_filesize/#comments</comments>
		<pubDate>Wed, 28 Dec 2005 17:56:36 +0000</pubDate>
		<dc:creator>anelson</dc:creator>
				<category><![CDATA[Migrated from Drupal]]></category>
		<category><![CDATA[bonzo]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tech diary]]></category>

		<guid isPermaLink="false">http://apocryph.org/?p=112</guid>
		<description><![CDATA[I recently kicked up the upload_max_filesize parameter to 16MB so I could upload big 7MP images.  However, now I&#8217;ve taken to shooting incriminating video with my Z750, which gets into the hundreds of megabytes.  So, how big is too big?  I&#8217;m going to try 500MB.
In /usr/local/etc/php.ini:
; Maximum allowed size for uploaded files.
upload_max_filesize [...]]]></description>
			<content:encoded><![CDATA[<p>I recently <a href="cant_upload_large_files_to_gallery2">kicked up the <code>upload_max_filesize</code> parameter</a> to 16MB so I could upload big 7MP images.  However, now I&#8217;ve taken to shooting incriminating video with my Z750, which gets into the hundreds of megabytes.  So, how big is too big?  I&#8217;m going to try 500MB.</p>
<p>In <code>/usr/local/etc/php.ini</code>:</p>
<pre><code>; Maximum allowed size for uploaded files.
upload_max_filesize = 512M
</code></pre>
<p>Let&#8217;s see what happens&#8230;</p>
<p>UPDATE: Nothing happened.  The latest beta of Gallery Remote seems to not care for enormous video files; it just hangs at &#8216;Preparing to upload&#8230;&#8217; indefinitely.  I&#8217;ll have to FTP my videos up for the time being.</p>
]]></content:encoded>
			<wfw:commentRss>http://apocryph.org/2005/12/28/how_big_is_too_big_for_upload_max_filesize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&apos;t upload large files to Gallery2</title>
		<link>http://apocryph.org/2005/11/06/cant_upload_large_files_to_gallery2/</link>
		<comments>http://apocryph.org/2005/11/06/cant_upload_large_files_to_gallery2/#comments</comments>
		<pubDate>Sun, 06 Nov 2005 21:41:24 +0000</pubDate>
		<dc:creator>anelson</dc:creator>
				<category><![CDATA[Migrated from Drupal]]></category>
		<category><![CDATA[bonzo]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tech diary]]></category>

		<guid isPermaLink="false">http://apocryph.org/?p=36</guid>
		<description><![CDATA[When I upload large files to Gallery (meaning roughly &#62; 2MB) from Gallery Remote I get an upload error.  Upon checking /var/log/httpd-error.log, I see:

PHP Warning:  POST Content-Length of 8503267 bytes exceeds the limit of 8388608 bytes

In /usr/local/etc/php.ini there&#8217;s this line:

  ; Maximum size of POST data that PHP will accept.
  post_max_size [...]]]></description>
			<content:encoded><![CDATA[<p>When I upload large files to Gallery (meaning roughly &gt; 2MB) from Gallery Remote I get an upload error.  Upon checking <code>/var/log/httpd-error.log</code>, I see:</p>
<blockquote><p>
<code>PHP Warning:  POST Content-Length of 8503267 bytes exceeds the limit of 8388608 bytes</code>
</p></blockquote>
<p>In <code>/usr/local/etc/php.ini</code> there&#8217;s this line:</p>
<pre>
  ; Maximum size of POST data that PHP will accept.
  post_max_size = 8M
</pre>
<p>8M seems plenty, but apparently there&#8217;s a helluva lot of overhead associated with uploading an image.  I&#8217;ll double it, to 16M:</p>
<pre>
  ; Maximum size of POST data that PHP will accept.
  post_max_size = 16M
</pre>
<p>Hmm&#8230;.the error msg is gone but I&#8217;m still getting meaningless &#8216;upload failed&#8217; errors&#8230;I think the error msg was from a couple of <span class="caps">MPEG</span> videos which were in fact more than 8MB; my photos are &lt;3M but still failing&#8230;<br />
I&#8217;ve uncommented <code>error_log = syslog</code> in <code>php.ini</code>; perhaps that will clarify things.<br />
No; nothing new in <code>httpd-error.log</code>&#8230;<br />
Aha, there&#8217;s another <code>php.ini</code> settings.  <code>post_max_size</code> is the maximum length of the <span class="caps">POST</span> form data, but <code>upload_max_filesize</code> controls the max size of a single file uploaded via <span class="caps">POST</span>.  On bonzo, it&#8217;s 2M.  I&#8217;ll make it 16M:</p>
<pre>
  ; Maximum allowed size for uploaded files.
  upload_max_filesize = 16M
</pre>
<p>Yup, that did it.  Works now.  I wish the error msg would&#8217;ve been somehow apparent; it&#8217;s as though Gallery or <span class="caps">PHP</span> simply eat the failure.</p>
]]></content:encoded>
			<wfw:commentRss>http://apocryph.org/2005/11/06/cant_upload_large_files_to_gallery2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gallery Remote and ImageMagick</title>
		<link>http://apocryph.org/2005/10/16/gallery_remote_and_imagemagick/</link>
		<comments>http://apocryph.org/2005/10/16/gallery_remote_and_imagemagick/#comments</comments>
		<pubDate>Sun, 16 Oct 2005 17:56:01 +0000</pubDate>
		<dc:creator>anelson</dc:creator>
				<category><![CDATA[Migrated from Drupal]]></category>
		<category><![CDATA[gallery-remote]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[tech diary]]></category>

		<guid isPermaLink="false">http://apocryph.org/?p=19</guid>
		<description><![CDATA[I installed the new Gallery Remote 1.5 on Prospertine, so I could upload some pictures.  When I was researching the upgrade to Gallery 2 that Gallery Remote 1.5 was alot faster if you install the latest ImageMagick on the client, so it can pre-process some of the image stuff.
I downloaded ImageMagick 6.2.5-2-Q16-windows-dll, which is [...]]]></description>
			<content:encoded><![CDATA[<p>I installed the new Gallery Remote 1.5 on Prospertine, so I could upload some pictures.  When I was researching the upgrade to Gallery 2 that Gallery Remote 1.5 was alot faster if you install the latest ImageMagick on the client, so it can pre-process some of the image stuff.<br />
I downloaded ImageMagick 6.2.5-2-Q16-windows-dll, which is the 16-bpp dynamic version for Windows.  From <a href="http://wiki.ehow.com/Get-Imagemagick-to-Work-With-Gallery-Remote">this article</a>, you have to munge the im.properties file for Gallery Remote in order to make it use convert.exe in the ImageMagick distribution.<br />
I opened <code>c:\program files\gallery remote\imagemagick\im.properties</code> as instructed.  I set the im.convertPath to:<br />
<code>im.convertPath=C:\Program Files\ImageMagick-6.2.5-Q16\convert.exe</code><br />
Not surprisingly, this didn&#8217;t work; instead I got:</p>
<blockquote><p>
&#8220;An optional part of Gallery Remote, <em>ImageMagick</em>, could not be found&#8230;&#8221;
</p></blockquote>
<p>This is due to my inability to follow instructions; the docs specifically use the short form of the path, with &#8216;~1&#8217;s and all, presumably because spaces in file names are too much to handle.  So:<br />
<code>im.convertPath=C:\Progra~1\ImageMagick-6.2.5-Q16\convert.exe</code><br />
Hmm, same message.  This time I even ignored the comment in the <code>im.properties</code> file <em>directly above</em> the line I was editing:</p>
<blockquote><p>
# path to the convert executable installed with ImageMagick, including the name of the executable (jpegtran)<br />
# use forward slashes (/) rather than back slashes (\) even on Windows
</p></blockquote>
<p>So, forward slashes matter too:<br />
<code>im.convertPath=C:/Progra~1/ImageMagick-6.2.5-Q16/convert.exe</code><br />
That seems to work.  Now let&#8217;s see if it resizes faster on the client&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://apocryph.org/2005/10/16/gallery_remote_and_imagemagick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
