<?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>Eimer Music &#187; The Pensive</title> <atom:link href="http://www.eimermusic.com/category/the-pensive/feed/" rel="self" type="application/rss+xml" /><link>http://www.eimermusic.com</link> <description>been here since 2002</description> <lastBuildDate>Tue, 13 Dec 2011 13:09:53 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>Looping through large and slow datasets in Ruby</title><link>http://www.eimermusic.com/code/looping-through-large-and-slow-datasets-in-ruby/</link> <comments>http://www.eimermusic.com/code/looping-through-large-and-slow-datasets-in-ruby/#comments</comments> <pubDate>Wed, 09 Nov 2011 14:09:14 +0000</pubDate> <dc:creator>martin</dc:creator> <category><![CDATA[Code]]></category> <category><![CDATA[The Pensive]]></category> <category><![CDATA[ruby]]></category><guid
isPermaLink="false">http://www.eimermusic.com/?p=182</guid> <description><![CDATA[I recently had the pleasure of needing to load 30&#8217;000 records from MongoDB and then performing slow and memory intensive processing on them. Basically you can imagine it as a database of videos and MongoDB was holding the metadata and other bits but the actual video files were on disk somewhere. My parsing involved loading&#8230;]]></description> <wfw:commentRss>http://www.eimermusic.com/code/looping-through-large-and-slow-datasets-in-ruby/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Quick Tip: iOS and web graphics in Illustrator</title><link>http://www.eimermusic.com/the-pensive/quick-tip-ios-and-web-graphics-in-illustrator/</link> <comments>http://www.eimermusic.com/the-pensive/quick-tip-ios-and-web-graphics-in-illustrator/#comments</comments> <pubDate>Thu, 03 Nov 2011 09:01:26 +0000</pubDate> <dc:creator>martin</dc:creator> <category><![CDATA[The Pensive]]></category> <category><![CDATA[design]]></category> <category><![CDATA[iphone]]></category><guid
isPermaLink="false">http://www.eimermusic.com/?p=178</guid> <description><![CDATA[I wanted to make a note of one of these things I keep forgetting in Adobe Illustrator. It is very simple, obvious and keeps me sane while drawing UI elements. Make sure &#8220;Align to Pixel Grid&#8221; is actually selected! That gets you out of so much trouble. Problem is, you need to keep an eye&#8230;]]></description> <wfw:commentRss>http://www.eimermusic.com/the-pensive/quick-tip-ios-and-web-graphics-in-illustrator/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Rails migration of indexes</title><link>http://www.eimermusic.com/code/rails-migration-of-indexes/</link> <comments>http://www.eimermusic.com/code/rails-migration-of-indexes/#comments</comments> <pubDate>Wed, 24 Nov 2010 09:26:59 +0000</pubDate> <dc:creator>martin</dc:creator> <category><![CDATA[Code]]></category> <category><![CDATA[The Pensive]]></category><guid
isPermaLink="false">http://www.eimermusic.com/?p=167</guid> <description><![CDATA[A small gotcha when changing indexes in a migration. To change an index one has to first remove it and then add it again. Removing an index is the tricky part. The documentation states: remove_index(table_name, index_name): Removes the index specified by index_name. This is not strictly true as it turns out. The docs should probably&#8230;]]></description> <wfw:commentRss>http://www.eimermusic.com/code/rails-migration-of-indexes/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Nginx + WordPress caching that actually works</title><link>http://www.eimermusic.com/code/nginx-wordpress-caching-that-actually-works/</link> <comments>http://www.eimermusic.com/code/nginx-wordpress-caching-that-actually-works/#comments</comments> <pubDate>Wed, 11 Aug 2010 17:13:25 +0000</pubDate> <dc:creator>martin</dc:creator> <category><![CDATA[Code]]></category> <category><![CDATA[The Pensive]]></category> <category><![CDATA[nginx]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://www.eimermusic.com/?p=136</guid> <description><![CDATA[I spent a lot of time yesterday trying to enable WP Super Cache, and subsequently W3 Total Cache for this website. SInce none of the hits I got on Google did the trick I thought I&#8217;d post my working settings for page caching with W3 Total Cache. I went with this plugin mainly because it&#8230;]]></description> <wfw:commentRss>http://www.eimermusic.com/code/nginx-wordpress-caching-that-actually-works/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Why isset() in PHP can be misleading</title><link>http://www.eimermusic.com/the-pensive/why-isset-in-php-can-be-misleading/</link> <comments>http://www.eimermusic.com/the-pensive/why-isset-in-php-can-be-misleading/#comments</comments> <pubDate>Fri, 04 Dec 2009 08:57:46 +0000</pubDate> <dc:creator>martin</dc:creator> <category><![CDATA[The Pensive]]></category> <category><![CDATA[array]]></category> <category><![CDATA[php]]></category><guid
isPermaLink="false">http://www.eimermusic.com/?p=93</guid> <description><![CDATA[I thought this was worth noting even though <a
href="http://www.php.net/manual/en/function.isset.php#89651">a comment on php.net explain it very well</a>.<strong>You can not rely on isset() for associative arrays unless you know for a fact you are checking an array.</strong>]]></description> <wfw:commentRss>http://www.eimermusic.com/the-pensive/why-isset-in-php-can-be-misleading/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Javascript variable definitions</title><link>http://www.eimermusic.com/the-pensive/javascript-variable-definitions/</link> <comments>http://www.eimermusic.com/the-pensive/javascript-variable-definitions/#comments</comments> <pubDate>Mon, 29 Jun 2009 17:31:50 +0000</pubDate> <dc:creator>martin</dc:creator> <category><![CDATA[The Pensive]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[scope]]></category> <category><![CDATA[variables]]></category><guid
isPermaLink="false">http://next.eimermusic.com/?p=65</guid> <description><![CDATA[The variable scope in javascript can still surprise me. This is a nice one I debugged today: A variable that is not defined by &#8220;var&#8221; have a global scope. This can be a real pain since the globalization is implicit and easy to forget. I forgot the &#8220;var&#8221; when writing a for loop and could&#8230;]]></description> <wfw:commentRss>http://www.eimermusic.com/the-pensive/javascript-variable-definitions/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Finding ordered position of a row in MySQL</title><link>http://www.eimermusic.com/the-pensive/finding-ordered-position-of-a-row-in-mysql/</link> <comments>http://www.eimermusic.com/the-pensive/finding-ordered-position-of-a-row-in-mysql/#comments</comments> <pubDate>Mon, 02 Feb 2009 17:29:24 +0000</pubDate> <dc:creator>martin</dc:creator> <category><![CDATA[The Pensive]]></category> <category><![CDATA[find]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[position]]></category><guid
isPermaLink="false">http://next.eimermusic.com/?p=62</guid> <description><![CDATA[This is slightly modified from something I found @ http://www.kirupa.com/forum/archive/index.php/t-263260.html Using high-score lists or similar you often have a large number of rows where you want to know who is in 7th place or how well is id:254 doing. This eliminates the slow looping in php of big result-sets by making a sub-query in MySQL.&#8230;]]></description> <wfw:commentRss>http://www.eimermusic.com/the-pensive/finding-ordered-position-of-a-row-in-mysql/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Duplicating a mysql database</title><link>http://www.eimermusic.com/the-pensive/duplicating-a-mysql-database/</link> <comments>http://www.eimermusic.com/the-pensive/duplicating-a-mysql-database/#comments</comments> <pubDate>Wed, 08 Oct 2008 17:55:49 +0000</pubDate> <dc:creator>martin</dc:creator> <category><![CDATA[The Pensive]]></category><guid
isPermaLink="false">http://www.eimermusic.com/?p=84</guid> <description><![CDATA[This is another MySQL trick I keep coming back to. mysqldump -u root --password=pass db1 &#124; mysql -u root --password=pass db2 found @ http://mywheel.net/blog/index.php/2006/01/05/mysql-duplicate-database-quick-tip/]]></description> <wfw:commentRss>http://www.eimermusic.com/the-pensive/duplicating-a-mysql-database/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Locating potential duplicate before switching collation in MySQL</title><link>http://www.eimermusic.com/the-pensive/locating-potential-duplicate-before-switching-collation-in-mysql/</link> <comments>http://www.eimermusic.com/the-pensive/locating-potential-duplicate-before-switching-collation-in-mysql/#comments</comments> <pubDate>Tue, 07 Oct 2008 17:27:50 +0000</pubDate> <dc:creator>martin</dc:creator> <category><![CDATA[The Pensive]]></category> <category><![CDATA[collation]]></category> <category><![CDATA[duplicates]]></category> <category><![CDATA[mysql]]></category><guid
isPermaLink="false">http://next.eimermusic.com/?p=60</guid> <description><![CDATA[When you need to switch a fields collation you can check if any existing data will conflict with this change. For example a keyword-field might contain data that is considered unique in one collation but not in another. The Swedish character ä is considered a unique character in swedish collation but in general collation it&#8230;]]></description> <wfw:commentRss>http://www.eimermusic.com/the-pensive/locating-potential-duplicate-before-switching-collation-in-mysql/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Copy files while preserving permissions</title><link>http://www.eimermusic.com/the-pensive/copy-files-while-preserving-permissions/</link> <comments>http://www.eimermusic.com/the-pensive/copy-files-while-preserving-permissions/#comments</comments> <pubDate>Mon, 06 Oct 2008 17:26:22 +0000</pubDate> <dc:creator>martin</dc:creator> <category><![CDATA[The Pensive]]></category> <category><![CDATA[copy]]></category> <category><![CDATA[permissions]]></category><guid
isPermaLink="false">http://next.eimermusic.com/?p=58</guid> <description><![CDATA[The unix cp command makes you the owner of the copied files. You can set flags but this is supposedly a more complete way to keep any attributes. mkdir /var/backup/michael cd /home/michael tar cf - . &#124; (cd /var/backup/michael &#038;&#038; tar xBfp -) found @ http://info.michael-simons.eu/2007/03/18/copy-directories-and-preserve-permissions/]]></description> <wfw:commentRss>http://www.eimermusic.com/the-pensive/copy-files-while-preserving-permissions/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/15 queries in 0.004 seconds using disk: basic

Served from: www.eimermusic.com @ 2012-02-06 13:44:25 -->
