<?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>beer planet &#187; find</title> <atom:link href="http://beerpla.net/tag/find/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Thu, 17 May 2012 22:50:53 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/> <item><title>The Easiest (And Best?) Way To Search For Beautiful Wallpapers In Your Specific Screen Resolution And Size</title><link>http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/</link> <comments>http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/#comments</comments> <pubDate>Sun, 10 Jan 2010 00:25:35 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[My Favorites]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[beautiful]]></category> <category><![CDATA[deviant art]]></category> <category><![CDATA[download]]></category> <category><![CDATA[engine]]></category> <category><![CDATA[find]]></category> <category><![CDATA[get]]></category> <category><![CDATA[resolution]]></category> <category><![CDATA[screen]]></category> <category><![CDATA[search]]></category> <category><![CDATA[size]]></category> <category><![CDATA[tip]]></category> <category><![CDATA[trick]]></category> <category><![CDATA[wallpaper]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/</guid> <description><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="Seasonscape - credit alexiuss" alt="Seasonscape - credit alexiuss" align="left" src="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image.png" width="150" height="155" /> There are undoubtedly a lot of wallpaper sites. Even more undoubtedly, most of them suck, both in content and filtering capabilities (by resolution, theme, etc).</p><p>My preferred way until recently was <a
href="http://www.deviantart.com" rel="nofollow">Deviant Art</a>, because it had a lot of content and very nice filtering &#8211; I could specify my exact resolution.</p><p>However, as of some time ago, Deviant Art browsing by resolution disappeared, as evident from trying to find it on their site and from the comments on <a
href="http://news.deviantart.com/article/25502/?offset=25#comments" rel="nofollow">this post</a> announcing the capability in the first place.</p><h2>The Solution</h2><p>Sometimes the solution lies right in front of our eyes &#8211; we just have to open them to see it.</p><p>A while ago, Google Image Search expanded their support for ...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="Seasonscape - credit alexiuss" alt="Seasonscape - credit alexiuss" align="left" src="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image.png" width="150" height="155" /> There are undoubtedly a lot of wallpaper sites. Even more undoubtedly, most of them suck, both in content and filtering capabilities (by resolution, theme, etc).</p><p>My preferred way until recently was <a
href="http://www.deviantart.com" rel="nofollow">Deviant Art</a>, because it had a lot of content and very nice filtering &#8211; I could specify my exact resolution.</p><p>However, as of some time ago, Deviant Art browsing by resolution disappeared, as evident from trying to find it on their site and from the comments on <a
href="http://news.deviantart.com/article/25502/?offset=25#comments" rel="nofollow">this post</a> announcing the capability in the first place.</p><h2>The Solution</h2><p>Sometimes the solution lies right in front of our eyes &#8211; we just have to open them to see it.</p><p>A while ago, Google Image Search expanded their support for image size filtering (small, medium, large) to include the actual image size via this query:</p><div
class="wp_syntax"><div
class="code"><pre>imagesize:NNNNxNNNN</pre></div></div><p>And because it&#039;s Google, you can add search terms to narrow down the subject.</p><p>Here are some examples.</p><h3>Example 1: &quot;wallpaper&quot;</h3><p><a
href="http://images.google.com/images?q=imagesize%3A1920x1200 wallpaper" rel="nofollow">imagesize:1920&#215;1200 wallpaper</a></p><p><a
href="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image_3.png" class="lightview" rel="gallery['1345']" title="imagesize:1920x1200 wallpaper"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="imagesize:1920x1200 wallpaper" alt="imagesize:1920x1200 wallpaper" src="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image_thumb.png" width="700" height="325" /></a></p><p>The image size is so specific that it&#039;s usually not even necessary to include the word &quot;wallpaper&quot; &#8211; most of the results will already be wallpapers, except maybe for a few desktop screenshots.</p><h3>Example 2: &quot;nature&quot;</h3><p><a
href="http://images.google.com/images?q=imagesize%3A1920x1200 nature" rel="nofollow">imagesize:1920&#215;1200 nature</a></p><p><a
href="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image_4.png" class="lightview" rel="gallery['1345']" title="imagesize:1920x1200 nature"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="imagesize:1920x1200 nature" alt="imagesize:1920x1200 nature" src="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image_thumb_3.png" width="700" height="331" /></a></p></p><h3>Example 3: &quot;futuristic&quot;</h3><p><a
href="http://images.google.com/images?q=imagesize%3A1680x1050 futuristic" rel="nofollow">imagesize:1680&#215;1050 futuristic</a></p><p><a
href="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image_5.png" class="lightview" rel="gallery['1345']" title="imagesize:1680x1050 futuristic"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="imagesize:1680x1050 futuristic" alt="imagesize:1680x1050 futuristic" src="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image_thumb_4.png" width="700" height="309" /></a></p></p><h3>Example 4: &quot;cars&quot;</h3><p><a
href="http://images.google.com/images?q=imagesize%3A1680x1050 cars" rel="nofollow">imagesize:1680&#215;1050 cars</a></p><p><a
href="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image_6.png" class="lightview" rel="gallery['1345']" title="imagesize:1680x1050 cars"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="imagesize:1680x1050 cars" alt="imagesize:1680x1050 cars" src="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image_thumb_5.png" width="700" height="320" /></a></p></p><h3>Example 5: &quot;babe&quot;</h3><p><a
href="http://images.google.com/images?q=imagesize%3A1680x1050 babe" rel="nofollow">imagesize:1680&#215;1050 babe</a> (be careful if you have SafeSearch off ;-] )</p><p><a
href="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image_7.png" class="lightview" rel="gallery['1345']" title="imagesize:1680x1050 babe "><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="imagesize:1680x1050 babe " alt="imagesize:1680x1050 babe " src="http://beerpla.net/wp-content/uploads/TheBestWayToSearchForWallpapersInYourScr_FF68/image_thumb_6.png" width="700" height="332" /></a></p></p></p><h2>Starter Links Per Resolution</h2><p>Here are some quick starter links for common resolutions to get you started:</p><p><a
href="http://images.google.com/images?q=imagesize%3A320x396 wallpaper" rel="nofollow">320&#215;396</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A320x480 wallpaper" rel="nofollow">320&#215;480</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A800x600 wallpaper" rel="nofollow">800&#215;600</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1024x600 wallpaper" rel="nofollow">1024&#215;600</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1024x768 wallpaper" rel="nofollow">1024&#215;768</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1152x864 wallpaper" rel="nofollow">1152&#215;864</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1280x1024 wallpaper" rel="nofollow">1280&#215;1024</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1280x720 wallpaper" rel="nofollow">1280&#215;720</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1280x768 wallpaper" rel="nofollow">1280&#215;768</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1280x800 wallpaper" rel="nofollow">1280&#215;800</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1280x960 wallpaper" rel="nofollow">1280&#215;960</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1360x768 wallpaper" rel="nofollow">1360&#215;768</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1366x768 wallpaper" rel="nofollow">1366&#215;768</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1400x1050 wallpaper" rel="nofollow">1400&#215;1050</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1440x900 wallpaper" rel="nofollow">1440&#215;900</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1600x1200 wallpaper" rel="nofollow">1600&#215;1200</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1600x900 wallpaper" rel="nofollow">1600&#215;900</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1680x1050 wallpaper" rel="nofollow">1680&#215;1050</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1920x1080 wallpaper" rel="nofollow">1920&#215;1080</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A1920x1200 wallpaper" rel="nofollow">1920&#215;1200</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A2560x1024 wallpaper" rel="nofollow">2560&#215;1024</a></p><p><a
href="http://images.google.com/images?q=imagesize%3A2560x1600 wallpaper" rel="nofollow">2560&#215;1600</a></p><h2>Conclusion</h2><p>What sites do you use to get your wallpapers, specifically allowing filtering by resolution? No spam links please.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=The+Easiest+%28And+Best%3F%29+Way+To+Search+For+Beautiful+Wallpapers+In+Your+Specific+Screen+Resolution+And+Size&amp;link=http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/&amp;notes=%20There%20are%20undoubtedly%20a%20lot%20of%20wallpaper%20sites.%20Even%20more%20undoubtedly%2C%20most%20of%20them%20suck%2C%20both%20in%20content%20and%20filtering%20capabilities%20%28by%20resolution%2C%20theme%2C%20etc%29.%20%20My%20preferred%20way%20until%20recently%20was%20Deviant%20Art%2C%20because%20it%20had%20a%20lot%20of%20content%20and%20very%20nice%20filtering%20-%20I%20could%20specify%20my%20exact%20reso&amp;short_link=http://bit.ly/6P5KIr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=The+Easiest+%28And+Best%3F%29+Way+To+Search+For+Beautiful+Wallpapers+In+Your+Specific+Screen+Resolution+And+Size&amp;link=http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/&amp;notes=%20There%20are%20undoubtedly%20a%20lot%20of%20wallpaper%20sites.%20Even%20more%20undoubtedly%2C%20most%20of%20them%20suck%2C%20both%20in%20content%20and%20filtering%20capabilities%20%28by%20resolution%2C%20theme%2C%20etc%29.%20%20My%20preferred%20way%20until%20recently%20was%20Deviant%20Art%2C%20because%20it%20had%20a%20lot%20of%20content%20and%20very%20nice%20filtering%20-%20I%20could%20specify%20my%20exact%20reso&amp;short_link=http://bit.ly/6P5KIr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=The+Easiest+%28And+Best%3F%29+Way+To+Search+For+Beautiful+Wallpapers+In+Your+Specific+Screen+Resolution+And+Size&amp;link=http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/&amp;notes=%20There%20are%20undoubtedly%20a%20lot%20of%20wallpaper%20sites.%20Even%20more%20undoubtedly%2C%20most%20of%20them%20suck%2C%20both%20in%20content%20and%20filtering%20capabilities%20%28by%20resolution%2C%20theme%2C%20etc%29.%20%20My%20preferred%20way%20until%20recently%20was%20Deviant%20Art%2C%20because%20it%20had%20a%20lot%20of%20content%20and%20very%20nice%20filtering%20-%20I%20could%20specify%20my%20exact%20reso&amp;short_link=http://bit.ly/6P5KIr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=The+Easiest+%28And+Best%3F%29+Way+To+Search+For+Beautiful+Wallpapers+In+Your+Specific+Screen+Resolution+And+Size&amp;link=http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/&amp;notes=%20There%20are%20undoubtedly%20a%20lot%20of%20wallpaper%20sites.%20Even%20more%20undoubtedly%2C%20most%20of%20them%20suck%2C%20both%20in%20content%20and%20filtering%20capabilities%20%28by%20resolution%2C%20theme%2C%20etc%29.%20%20My%20preferred%20way%20until%20recently%20was%20Deviant%20Art%2C%20because%20it%20had%20a%20lot%20of%20content%20and%20very%20nice%20filtering%20-%20I%20could%20specify%20my%20exact%20reso&amp;short_link=http://bit.ly/6P5KIr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=The+Easiest+%28And+Best%3F%29+Way+To+Search+For+Beautiful+Wallpapers+In+Your+Specific+Screen+Resolution+And+Size&amp;link=http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/&amp;notes=%20There%20are%20undoubtedly%20a%20lot%20of%20wallpaper%20sites.%20Even%20more%20undoubtedly%2C%20most%20of%20them%20suck%2C%20both%20in%20content%20and%20filtering%20capabilities%20%28by%20resolution%2C%20theme%2C%20etc%29.%20%20My%20preferred%20way%20until%20recently%20was%20Deviant%20Art%2C%20because%20it%20had%20a%20lot%20of%20content%20and%20very%20nice%20filtering%20-%20I%20could%20specify%20my%20exact%20reso&amp;short_link=http://bit.ly/6P5KIr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=The+Easiest+%28And+Best%3F%29+Way+To+Search+For+Beautiful+Wallpapers+In+Your+Specific+Screen+Resolution+And+Size&amp;link=http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/&amp;notes=%20There%20are%20undoubtedly%20a%20lot%20of%20wallpaper%20sites.%20Even%20more%20undoubtedly%2C%20most%20of%20them%20suck%2C%20both%20in%20content%20and%20filtering%20capabilities%20%28by%20resolution%2C%20theme%2C%20etc%29.%20%20My%20preferred%20way%20until%20recently%20was%20Deviant%20Art%2C%20because%20it%20had%20a%20lot%20of%20content%20and%20very%20nice%20filtering%20-%20I%20could%20specify%20my%20exact%20reso&amp;short_link=http://bit.ly/6P5KIr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=The+Easiest+%28And+Best%3F%29+Way+To+Search+For+Beautiful+Wallpapers+In+Your+Specific+Screen+Resolution+And+Size&amp;link=http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/&amp;notes=%20There%20are%20undoubtedly%20a%20lot%20of%20wallpaper%20sites.%20Even%20more%20undoubtedly%2C%20most%20of%20them%20suck%2C%20both%20in%20content%20and%20filtering%20capabilities%20%28by%20resolution%2C%20theme%2C%20etc%29.%20%20My%20preferred%20way%20until%20recently%20was%20Deviant%20Art%2C%20because%20it%20had%20a%20lot%20of%20content%20and%20very%20nice%20filtering%20-%20I%20could%20specify%20my%20exact%20reso&amp;short_link=http://bit.ly/6P5KIr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=The%20Easiest%20%28And%20Best%3F%29%20Way%20To%20Search%20For%20Beautiful%20Wallpapers%20In%20Your%20Specific%20Screen%20Resolution%20And%20Size&amp;link=http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/&amp;notes=%20There%20are%20undoubtedly%20a%20lot%20of%20wallpaper%20sites.%20Even%20more%20undoubtedly%2C%20most%20of%20them%20suck%2C%20both%20in%20content%20and%20filtering%20capabilities%20%28by%20resolution%2C%20theme%2C%20etc%29.%20%20My%20preferred%20way%20until%20recently%20was%20Deviant%20Art%2C%20because%20it%20had%20a%20lot%20of%20content%20and%20very%20nice%20filtering%20-%20I%20could%20specify%20my%20exact%20reso&amp;short_link=http://bit.ly/6P5KIr&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/02/20/my-new-desktop-background-on-the-imac-running-window-7-thats-right-its-awesome/" rel="bookmark" title="February 20, 2010">My New Desktop Background On The iMac Running Window 7 &#8211; That&#039;s Right, It&#039;s Awesome</a></li><li><a
href="http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/" rel="bookmark" title="June 9, 2009">How To Make Your Site Lightning Fast* By Compressing (deflate/gzip) Your HTML, Javascript, CSS, XML, etc In Apache</a></li><li><a
href="http://beerpla.net/2008/10/15/more-on-android-a-mobile-os-with-a-clue/" rel="bookmark" title="October 15, 2008">More On Android &ndash; A Mobile OS With A Clue</a></li><li><a
href="http://beerpla.net/2008/03/27/parsing-json-in-perl-by-example-southparkstudioscom-south-park-episodes/" rel="bookmark" title="March 27, 2008">Parsing JSON In Perl By Example &#8211; SouthParkStudios.com South Park Episodes</a></li><li><a
href="http://beerpla.net/2008/08/14/how-to-find-out-the-number-of-videos-on-youtube/" rel="bookmark" title="August 14, 2008">How To Find Out The Number Of Videos On Youtube</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F09%2Fthe-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size%2F&amp;title=The%20Easiest%20%28And%20Best%3F%29%20Way%20To%20Search%20For%20Beautiful%20Wallpapers%20In%20Your%20Specific%20Screen%20Resolution%20And%20Size" id="wpa2a_2"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/09/the-easiest-and-best-way-to-search-for-beautiful-wallpapers-in-your-specific-screen-resolution-and-size/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>[Perl] Finding Files, The Fun And Elegant Way</title><link>http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/</link> <comments>http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/#comments</comments> <pubDate>Wed, 08 Apr 2009 14:00:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Awesomeness]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Perl]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[efficient]]></category> <category><![CDATA[elegant]]></category> <category><![CDATA[file]]></category> <category><![CDATA[find]]></category> <category><![CDATA[follow]]></category> <category><![CDATA[fun]]></category> <category><![CDATA[robust]]></category> <category><![CDATA[search]]></category> <category><![CDATA[skip]]></category> <category><![CDATA[SVN]]></category> <category><![CDATA[symlink]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/</guid> <description><![CDATA[<p>No matter what programming language you use, there comes a time when you need to search for a file somewhere on the file system. Here, I want to talk about accomplishing this task in Perl. There are many ways of doing so, most of them boring, but I want to discuss the fun and elegant way &#8211; using <a
href="http://search.cpan.org/dist/File-Find-Rule/lib/File/Find/Rule.pm" rel="nofollow">File::Find::Rule</a>.</p><p>Let me briefly discuss some of the other methods first.</p><h2>Limited</h2><p>Using glob() (or &#60;&#62;, TODO verify) you can find files in a single directory, using only the limited shell wildcard support. For example,</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>my @files = glob(&#34;tmp*&#34;);</pre></td></tr></table></div><p><div
class="note"><div
class="noteclassic">I prefer glob() to &#60;&#62; because glob()&#039;s parameters can be more than just text (for ex functions) while &#60;&#62; treats everything</div></div>...<div
class=clear></div> <a
href="http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>No matter what programming language you use, there comes a time when you need to search for a file somewhere on the file system. Here, I want to talk about accomplishing this task in Perl. There are many ways of doing so, most of them boring, but I want to discuss the fun and elegant way &#8211; using <a
href="http://search.cpan.org/dist/File-Find-Rule/lib/File/Find/Rule.pm" rel="nofollow">File::Find::Rule</a>.</p><p>Let me briefly discuss some of the other methods first.</p><h2>Limited</h2><p>Using glob() (or &lt;&gt;, TODO verify) you can find files in a single directory, using only the limited shell wildcard support. For example,</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>my @files = glob(&quot;tmp*&quot;);</pre></td></tr></table></div><p><div
class="note"><div
class="noteclassic">I prefer glob() to &lt;&gt; because glob()&#039;s parameters can be more than just text (for ex functions) while &lt;&gt; treats everything inside as text.</div></div></p><h2>Boring</h2><p><a
title="http://search.cpan.org/~nwclark/perl-5.8.9/lib/File/Find.pm" href="http://search.cpan.org/~nwclark/perl-5.8.9/lib/File/Find.pm">File::Find</a> is the de facto standard for searching in Perl.</p><p>This method finds files that end in .pl in &quot;.&quot; and &quot;../SomeDir&quot;, following symlinks:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td
class="code"><pre>#!/usr/bin/perl -w
&nbsp;
use File::Find;
use Data::Dumper;
use File::Basename;
my @directories_to_search = (&quot;.&quot;, &quot;../SomeDir&quot;);
my @file_list = ();
&nbsp;
find(
  { wanted =&gt;
    sub {
      if ( basename($File::Find::name) =~ /\.pl$/i )
      {
        push @file_list, $File::Find::name;
      }
    },
    follow =&gt; 1
  },
  @directories_to_search
);
print Dumper @file_list;</pre></td></tr></table></div><p>It works fine, except it&#039;s horribly ugly and boring. Let&#039;s have a look at something more fun.</p><h2>The Fun And Elegant Way</h2><p><a
title="http://search.cpan.org/dist/File-Find-Rule/lib/File/Find/Rule.pm" href="http://search.cpan.org/dist/File-Find-Rule/lib/File/Find/Rule.pm" rel="nofollow">File::Find::Rule</a>. Just have a look at this beauty.</p><p>Just like above, find all .pl files in &quot;.&quot; and &quot;../SomeDir&quot;, following symlinks:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>print Dumper (File::Find::Rule-&gt;name(&quot;*.pl&quot;)-&gt;file-&gt;extras({ follow =&gt; 1 })-&gt;
in(&quot;.&quot;, &quot;../SomeDir&quot;));</pre></td></tr></table></div><p>Same as above, except bypass .svn directories (shaves off a ton of time with a lot of directories):</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>print Dumper (File::Find::Rule-&gt;not(File::Find::Rule-&gt;directory-&gt;name('.svn')-&gt;
prune-&gt;discard)-&gt;name(&quot;*.pl&quot;)-&gt;file-&gt;extras({ follow =&gt; 1 })-&gt;in(&quot;.&quot;, &quot;../SomeDir&quot;));</pre></td></tr></table></div><p>Find all .log files that are older than 24 hours in &quot;.&quot;</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre>my $epoch_time_1_day_ago = time() - 60*60*24;
print Dumper (File::Find::Rule-&gt;file-&gt;name(&quot;*.log&quot;)-&gt;
mtime(&quot;&lt;$epoch_time_1_day_ago&quot;)-&gt;in('.'));</pre></td></tr></table></div><p>Be sure to read the <a
href="http://search.cpan.org/dist/File-Find-Rule/lib/File/Find/Rule.pm" rel="nofollow">File::Find::Rule</a> perldoc for more options and remember: have fun with your code!<a
href="http://www.weblocal.ca"></a></p><p>Thanks to <a
href="http://perlbuzz.com/" rel="nofollow">Perlbuzz</a> and Andy Lester for <a
href="http://perlbuzz.com/mechanix/2008/05/optimizing-file-searches-with.html" rel="nofollow">pointing me</a> to this library a few months ago.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+Finding+Files%2C+The+Fun+And+Elegant+Way&amp;link=http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/&amp;notes=No%20matter%20what%20programming%20language%20you%20use%2C%20there%20comes%20a%20time%20when%20you%20need%20to%20search%20for%20a%20file%20somewhere%20on%20the%20file%20system.%20Here%2C%20I%20want%20to%20talk%20about%20accomplishing%20this%20task%20in%20Perl.%20There%20are%20many%20ways%20of%20doing%20so%2C%20most%20of%20them%20boring%2C%20but%20I%20want%20to%20discuss%20the%20fun%20and%20elegant%20way%20-%20using%20Fil&amp;short_link=http://bit.ly/caZusS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+Finding+Files%2C+The+Fun+And+Elegant+Way&amp;link=http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/&amp;notes=No%20matter%20what%20programming%20language%20you%20use%2C%20there%20comes%20a%20time%20when%20you%20need%20to%20search%20for%20a%20file%20somewhere%20on%20the%20file%20system.%20Here%2C%20I%20want%20to%20talk%20about%20accomplishing%20this%20task%20in%20Perl.%20There%20are%20many%20ways%20of%20doing%20so%2C%20most%20of%20them%20boring%2C%20but%20I%20want%20to%20discuss%20the%20fun%20and%20elegant%20way%20-%20using%20Fil&amp;short_link=http://bit.ly/caZusS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+Finding+Files%2C+The+Fun+And+Elegant+Way&amp;link=http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/&amp;notes=No%20matter%20what%20programming%20language%20you%20use%2C%20there%20comes%20a%20time%20when%20you%20need%20to%20search%20for%20a%20file%20somewhere%20on%20the%20file%20system.%20Here%2C%20I%20want%20to%20talk%20about%20accomplishing%20this%20task%20in%20Perl.%20There%20are%20many%20ways%20of%20doing%20so%2C%20most%20of%20them%20boring%2C%20but%20I%20want%20to%20discuss%20the%20fun%20and%20elegant%20way%20-%20using%20Fil&amp;short_link=http://bit.ly/caZusS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+Finding+Files%2C+The+Fun+And+Elegant+Way&amp;link=http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/&amp;notes=No%20matter%20what%20programming%20language%20you%20use%2C%20there%20comes%20a%20time%20when%20you%20need%20to%20search%20for%20a%20file%20somewhere%20on%20the%20file%20system.%20Here%2C%20I%20want%20to%20talk%20about%20accomplishing%20this%20task%20in%20Perl.%20There%20are%20many%20ways%20of%20doing%20so%2C%20most%20of%20them%20boring%2C%20but%20I%20want%20to%20discuss%20the%20fun%20and%20elegant%20way%20-%20using%20Fil&amp;short_link=http://bit.ly/caZusS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+Finding+Files%2C+The+Fun+And+Elegant+Way&amp;link=http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/&amp;notes=No%20matter%20what%20programming%20language%20you%20use%2C%20there%20comes%20a%20time%20when%20you%20need%20to%20search%20for%20a%20file%20somewhere%20on%20the%20file%20system.%20Here%2C%20I%20want%20to%20talk%20about%20accomplishing%20this%20task%20in%20Perl.%20There%20are%20many%20ways%20of%20doing%20so%2C%20most%20of%20them%20boring%2C%20but%20I%20want%20to%20discuss%20the%20fun%20and%20elegant%20way%20-%20using%20Fil&amp;short_link=http://bit.ly/caZusS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+Finding+Files%2C+The+Fun+And+Elegant+Way&amp;link=http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/&amp;notes=No%20matter%20what%20programming%20language%20you%20use%2C%20there%20comes%20a%20time%20when%20you%20need%20to%20search%20for%20a%20file%20somewhere%20on%20the%20file%20system.%20Here%2C%20I%20want%20to%20talk%20about%20accomplishing%20this%20task%20in%20Perl.%20There%20are%20many%20ways%20of%20doing%20so%2C%20most%20of%20them%20boring%2C%20but%20I%20want%20to%20discuss%20the%20fun%20and%20elegant%20way%20-%20using%20Fil&amp;short_link=http://bit.ly/caZusS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+Finding+Files%2C+The+Fun+And+Elegant+Way&amp;link=http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/&amp;notes=No%20matter%20what%20programming%20language%20you%20use%2C%20there%20comes%20a%20time%20when%20you%20need%20to%20search%20for%20a%20file%20somewhere%20on%20the%20file%20system.%20Here%2C%20I%20want%20to%20talk%20about%20accomplishing%20this%20task%20in%20Perl.%20There%20are%20many%20ways%20of%20doing%20so%2C%20most%20of%20them%20boring%2C%20but%20I%20want%20to%20discuss%20the%20fun%20and%20elegant%20way%20-%20using%20Fil&amp;short_link=http://bit.ly/caZusS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D%20Finding%20Files%2C%20The%20Fun%20And%20Elegant%20Way&amp;link=http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/&amp;notes=No%20matter%20what%20programming%20language%20you%20use%2C%20there%20comes%20a%20time%20when%20you%20need%20to%20search%20for%20a%20file%20somewhere%20on%20the%20file%20system.%20Here%2C%20I%20want%20to%20talk%20about%20accomplishing%20this%20task%20in%20Perl.%20There%20are%20many%20ways%20of%20doing%20so%2C%20most%20of%20them%20boring%2C%20but%20I%20want%20to%20discuss%20the%20fun%20and%20elegant%20way%20-%20using%20Fil&amp;short_link=http://bit.ly/caZusS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/" rel="bookmark" title="March 5, 2009">[Perl] How To Get The Path Of An Included Library (.pm), Regardless Of Current Directory</a></li><li><a
href="http://beerpla.net/2007/10/28/ftprush-cleanup-script/" rel="bookmark" title="October 28, 2007">FTPRush Cleanup Script</a></li><li><a
href="http://beerpla.net/2008/03/21/quick-snippet-finding-if-a-file-has-a-media-extension-using-regex/" rel="bookmark" title="March 21, 2008">Quick Perl Snippet: Finding If A File Has A Media Extension Using Regex</a></li><li><a
href="http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/" rel="bookmark" title="July 23, 2008">How To Check If The Local SVN Revision Is Up-To-Date</a></li><li><a
href="http://beerpla.net/2008/10/11/how-to-sort-folders-the-same-way-as-files-in-total-commander/" rel="bookmark" title="October 11, 2008">How To Sort Folders The Same Way As Files In Total Commander</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F04%2F08%2Fperl-finding-files-the-fun-and-elegant-way%2F&amp;title=%5BPerl%5D%20Finding%20Files%2C%20The%20Fun%20And%20Elegant%20Way" id="wpa2a_4"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
