<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6874929289213402413</id><updated>2011-09-08T09:44:22.704+08:00</updated><category term='c#'/><category term='packer'/><category term='.net'/><category term='css'/><category term='javascript'/><title type='text'>rezblog</title><subtitle type='html'>Our trip of a lifetime!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rez-sa.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rez-sa.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>rez</name><uri>http://www.blogger.com/profile/05551993655269424226</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_sULFbnPoCTo/SURa-yohIUI/AAAAAAAAANA/XCz6nBNddgM/S220/IMG_0918.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6874929289213402413.post-9218163909901565800</id><published>2009-02-13T10:47:00.003+09:00</published><updated>2009-02-13T10:57:49.237+09:00</updated><title type='text'>Opening links in a new window</title><content type='html'>&lt;p&gt;Like it or not, people often expect certain documents (i.e. PDFs) to open in a tab or window. Often enough, the ugly solution of &lt;code&gt;target="top"&lt;/code&gt; or similar is used otherwise JavaScript is employed to redirect links. Both methods are a wonderful source of confusion and annoyance.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;With this in mind, I cobbled together my own solution employing the wonders of &lt;a href="http://www.jquery.com/"&gt;jQuery&lt;/a&gt; to handle the selectors:&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;$(function(){&lt;br /&gt;  $("a[href$='.pdf']").click(function(e){&lt;br /&gt;    //don't interfere with modifier keys&lt;br /&gt;    if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) {&lt;br /&gt;      return true;&lt;br /&gt;    }&lt;br /&gt;    window.open($(this).attr("href"));&lt;br /&gt;    return false;&lt;br /&gt;  }).attr("title", function(){&lt;br /&gt;    return this.title + " (Opens in a new window)"&lt;br /&gt;  });&lt;br /&gt;});&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;Two key things happen here: modifier keys are left alone so power users are happy and the anchor&amp;rdquo;s title is altered to give users a hint of what&amp;rsquo;s going on.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6874929289213402413-9218163909901565800?l=rez-sa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rez-sa.blogspot.com/feeds/9218163909901565800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6874929289213402413&amp;postID=9218163909901565800' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/9218163909901565800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/9218163909901565800'/><link rel='alternate' type='text/html' href='http://rez-sa.blogspot.com/2009/02/opening-links-in-new-window.html' title='Opening links in a new window'/><author><name>rez</name><uri>http://www.blogger.com/profile/05551993655269424226</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_sULFbnPoCTo/SURa-yohIUI/AAAAAAAAANA/XCz6nBNddgM/S220/IMG_0918.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6874929289213402413.post-8881937268226184866</id><published>2009-01-04T07:47:00.002+09:00</published><updated>2009-01-04T08:00:33.617+09:00</updated><title type='text'>Portugal and beyond</title><content type='html'>We are now in warm Portugal (compared to the rest of the trip, it is really warm!)&lt;br /&gt;&lt;br /&gt;But first, a little recap as we were last in Berlin.&lt;br /&gt;&lt;br /&gt;For those who aren´t aware, we spent a white Christmas in Levi, Finland. It´s the home of crazy reindeer, lots of snow and Santa!!! We had the most fantastic time in which we got pulled around by reindeer in sleds, rode snowmobiles at fantastic speeds (sort of), met some huskies who enjoyed eating people´s hands, elf-skippd in the snow-covered forest at night and caught some fish on a lake that had 30cm of frozen ice. It was incredible - photos will come later.&lt;br /&gt;&lt;br /&gt;Berlin was also a fantastic experience. It involved eating and sampling lots of the local delicasies which were generally Berliners or gummy bears. Saw lots of the local historical areas - museums of ancient Egypt and Babylonian times (the Pokemon museum!) and staying in Checkpoint Charlie, saw that important area. New Year´s was an amazing experience in which we were packed into the Tiergarten with stages, food, fireworks and 1 million people. The fireworks were the most interesting as people are allowed to set them off everywhere, including in the street right next to you. &lt;br /&gt;We ended our time in Berlin with some snowfall and maybe a couple of snowballs being thrown..&lt;br /&gt;&lt;br /&gt;We are now in Portugal, staying about an hour out of Lisbon with Sarah´s aunt and cousins. Today we went to Obidos - a castle (a real castle) which still had its wall and village inside the wall intact and functioning. An amazing sight for people who come from a country that definately doesn´t have any castles. We will be staying in Lisbon on Tuesday and Wednesday and then we start our journey home.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6874929289213402413-8881937268226184866?l=rez-sa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rez-sa.blogspot.com/feeds/8881937268226184866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6874929289213402413&amp;postID=8881937268226184866' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/8881937268226184866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/8881937268226184866'/><link rel='alternate' type='text/html' href='http://rez-sa.blogspot.com/2009/01/portugal-and-beyond.html' title='Portugal and beyond'/><author><name>rez</name><uri>http://www.blogger.com/profile/05551993655269424226</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_sULFbnPoCTo/SURa-yohIUI/AAAAAAAAANA/XCz6nBNddgM/S220/IMG_0918.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6874929289213402413.post-7400760675515909766</id><published>2008-12-27T21:34:00.000+09:00</published><updated>2008-12-27T21:35:21.565+09:00</updated><title type='text'>Ich bin ein Berliner</title><content type='html'>We've made it this far to Berlin.&lt;br /&gt;&lt;br /&gt;Christmas in Levi was cold but incredible.&lt;br /&gt;&lt;br /&gt;Running out of time... until next time!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6874929289213402413-7400760675515909766?l=rez-sa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rez-sa.blogspot.com/feeds/7400760675515909766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6874929289213402413&amp;postID=7400760675515909766' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/7400760675515909766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/7400760675515909766'/><link rel='alternate' type='text/html' href='http://rez-sa.blogspot.com/2008/12/ich-bin-ein-berliner.html' title='Ich bin ein Berliner'/><author><name>rez</name><uri>http://www.blogger.com/profile/05551993655269424226</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_sULFbnPoCTo/SURa-yohIUI/AAAAAAAAANA/XCz6nBNddgM/S220/IMG_0918.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6874929289213402413.post-6289970654700966847</id><published>2008-11-26T10:22:00.003+09:00</published><updated>2008-11-26T14:27:54.070+09:00</updated><title type='text'>Pattern Recognition</title><content type='html'>&lt;a href="http://patterns.ava7.com/"&gt;AVA7 Patterns&lt;/a&gt; is an interesting site with hundreds of patterns with a friendly licence. The only problem I see is finding a pattern you like means crawling through the lot. While it's technically impossible to search abstract images, perhaps some tags on the site might add helpful metadata. (Via &lt;a href="http://veerle.duoh.com/"&gt;Veerle&lt;/a&gt;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6874929289213402413-6289970654700966847?l=rez-sa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rez-sa.blogspot.com/feeds/6289970654700966847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6874929289213402413&amp;postID=6289970654700966847' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/6289970654700966847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/6289970654700966847'/><link rel='alternate' type='text/html' href='http://rez-sa.blogspot.com/2008/11/pattern-recognition.html' title='Pattern Recognition'/><author><name>rez</name><uri>http://www.blogger.com/profile/05551993655269424226</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_sULFbnPoCTo/SURa-yohIUI/AAAAAAAAANA/XCz6nBNddgM/S220/IMG_0918.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6874929289213402413.post-7972582520752936243</id><published>2008-11-24T08:13:00.000+09:00</published><updated>2008-11-24T15:14:59.130+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='packer'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>Packing it in</title><content type='html'>&lt;p&gt;Having finally tackled the relatively complex art of compressing JavaScript and CSS in ASP.NET, I found most of the work had already been done in the form of &lt;a href="http://www.smallsharptools.com/Projects/Packer/"&gt;Packer for .NET&lt;/a&gt;. As I found it, Packer featured methods to compress via Dean Edward's &lt;a href="http://dean.edwards.name/packer/"&gt;Packer&lt;/a&gt; and and Doug Crockford's &lt;a href="http://javascript.crockford.com/jsmin.html"&gt;JSMin&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Since I wanted to combine and minify my CSS, a hunt around revealed an efficient method written by &lt;a href="http://foohack.com/"&gt;Isaac Schlueter&lt;/a&gt; which was incorporated into the &lt;a href="http://developer.yahoo.com/yui/compressor/"&gt;YUI Compressor&lt;/a&gt;. Working from two &lt;a href="http://www.dimebrain.com/2008/03/a-better-css-mi.html"&gt;C#&lt;/a&gt; &lt;a href="http://regexadvice.com/blogs/mash/archive/2008/04/27/Update-to-CSS-Minification.aspx"&gt;ports&lt;/a&gt; of Isaac's code, I added CSSMinify to the pot and the result is now available.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Want more? Send a request or, even better, fetch the &lt;a href="http://svn.offwhite.net/trac/SmallSharpTools.Packer/browser/branches"&gt;source&lt;/a&gt; and contribute your own magic.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6874929289213402413-7972582520752936243?l=rez-sa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rez-sa.blogspot.com/feeds/7972582520752936243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6874929289213402413&amp;postID=7972582520752936243' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/7972582520752936243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/7972582520752936243'/><link rel='alternate' type='text/html' href='http://rez-sa.blogspot.com/2008/11/packing-it-in.html' title='Packing it in'/><author><name>rez</name><uri>http://www.blogger.com/profile/05551993655269424226</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_sULFbnPoCTo/SURa-yohIUI/AAAAAAAAANA/XCz6nBNddgM/S220/IMG_0918.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6874929289213402413.post-6544681337744445109</id><published>2008-09-15T10:17:00.001+08:00</published><updated>2008-12-07T11:41:54.100+09:00</updated><title type='text'>Welcome to the world of tomorrow</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_sULFbnPoCTo/STs3uf14p1I/AAAAAAAAAM0/jHjK-p8BAuI/s1600-h/snow.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 343px; height: 400px;" src="http://3.bp.blogspot.com/_sULFbnPoCTo/STs3uf14p1I/AAAAAAAAAM0/jHjK-p8BAuI/s400/snow.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5276872660355688274" /&gt;&lt;/a&gt;&lt;br /&gt;Snow!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6874929289213402413-6544681337744445109?l=rez-sa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rez-sa.blogspot.com/feeds/6544681337744445109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6874929289213402413&amp;postID=6544681337744445109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/6544681337744445109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6874929289213402413/posts/default/6544681337744445109'/><link rel='alternate' type='text/html' href='http://rez-sa.blogspot.com/2008/09/welcome-to-world-of-tomorrow.html' title='Welcome to the world of tomorrow'/><author><name>rez</name><uri>http://www.blogger.com/profile/05551993655269424226</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_sULFbnPoCTo/SURa-yohIUI/AAAAAAAAANA/XCz6nBNddgM/S220/IMG_0918.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_sULFbnPoCTo/STs3uf14p1I/AAAAAAAAAM0/jHjK-p8BAuI/s72-c/snow.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
