<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Blog about programming, creating web stuff and computer geekery.</description><title>code-fu.pl | Grzesiek Kołodziejczyk</title><generator>Tumblr (3.0; @grzesieq)</generator><link>http://blog.code-fu.pl/</link><item><title>AnandTech - The Apple iPad Review (2012)</title><description>&lt;a href="http://www.anandtech.com/show/5688/apple-ipad-2012-review"&gt;AnandTech - The Apple iPad Review (2012)&lt;/a&gt;: &lt;p&gt;AnandTech’s very detailed review of the new iPad.&lt;/p&gt;</description><link>http://blog.code-fu.pl/post/20183767987</link><guid>http://blog.code-fu.pl/post/20183767987</guid><pubDate>Fri, 30 Mar 2012 22:22:20 +0200</pubDate></item><item><title>There's no speed limit. (The lessons that changed my life.) | Derek Sivers</title><description>&lt;a href="http://sivers.org/kimo"&gt;There's no speed limit. (The lessons that changed my life.) | Derek Sivers&lt;/a&gt;</description><link>http://blog.code-fu.pl/post/20014213351</link><guid>http://blog.code-fu.pl/post/20014213351</guid><pubDate>Tue, 27 Mar 2012 19:31:00 +0200</pubDate></item><item><title>CSS tip: Spot unsized images during development - (37signals)</title><description>&lt;a href="http://37signals.com/svn/posts/2979-css-tip-spot-unsized-images-during-development"&gt;CSS tip: Spot unsized images during development - (37signals)&lt;/a&gt;: &lt;p&gt;Then any images without width and height attributes will be drawn with a red border so they’re easy to spot.&lt;/p&gt;</description><link>http://blog.code-fu.pl/post/8055141957</link><guid>http://blog.code-fu.pl/post/8055141957</guid><pubDate>Mon, 25 Jul 2011 22:43:54 +0200</pubDate></item><item><title>Running PDFKit on Heroku</title><description>&lt;p&gt;If you try to run &lt;a href="https://github.com/jdpace/PDFKit/"&gt;PDFKit&lt;/a&gt; on Heroku               you will run into a problem with starting a request to the stylesheets               from within a request - thin can&amp;#8217;t handle that.&lt;/p&gt;
&lt;p&gt;Instead of running the PDFKit middleware, you&amp;#8217;ll need to add a pdf               format in your &lt;code&gt;respond_to&lt;/code&gt; block.&lt;/p&gt;
&lt;p&gt;First, register PDF as a mime-type in               &lt;code&gt;config/initializers/mime_types.rb&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;span class="no"&gt;Mime&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;Type&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;register&lt;/span&gt; &lt;span class="s2"&gt;"application/pdf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;:pdf&lt;/span&gt;
&lt;/pre&gt;
&lt;p&gt;Next, create the responder. The trick is to render the view you want to               use to a string, create a PDFKit object from that, and add stylesheet               paths instead of loading them through the problematic separate request.&lt;/p&gt;
&lt;pre&gt;&lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pdf&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="n"&gt;kit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;PDFKit&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;render_to_string&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;:template&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"controller/view.html"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                                    &lt;span class="ss"&gt;:layout&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"layout.html"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
  &lt;span class="c1"&gt;# stylesheets in tmp because I'm using compass&lt;/span&gt;
  &lt;span class="n"&gt;kit&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stylesheets&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="no"&gt;Rails&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'tmp'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'stylesheets'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'style.css'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to_s&lt;/span&gt;
  &lt;span class="n"&gt;render&lt;/span&gt; &lt;span class="ss"&gt;:text&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;kit&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;to_pdf&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/pre&gt;
&lt;p&gt;Next, you need to make sure that all partials are called as               &lt;code&gt;render :partial =&amp;gt; 'partial.html'&lt;/code&gt; since &lt;code&gt;render_to_string&lt;/code&gt; doesn&amp;#8217;t know the proper format then.&lt;/p&gt;</description><link>http://blog.code-fu.pl/post/12480842037</link><guid>http://blog.code-fu.pl/post/12480842037</guid><pubDate>Sun, 15 May 2011 00:00:00 +0200</pubDate></item><item><title>ZeroMQ: Modern &amp; Fast Networking Stack - igvita.com</title><description>&lt;a href="http://www.igvita.com/2010/09/03/zeromq-modern-fast-networking-stack/"&gt;ZeroMQ: Modern &amp; Fast Networking Stack - igvita.com&lt;/a&gt;: &lt;blockquote&gt;
&lt;p&gt;Wouldn’t it be nice if we could abstract some of the low-level details of different socket types, connection handling, framing, or even routing? This is exactly where the ZeroMQ (ØMQ/ZMQ) networking library comes in: “it gives you sockets that carry whole messages across various transports like inproc, IPC, TCP, and multicast; you can connect sockets N-to-N with patterns like fanout, pubsub, task distribution, and request-reply”. That’s a lot buzzwords, so lets dissect some of these concepts in more detail.&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://blog.code-fu.pl/post/1063600179</link><guid>http://blog.code-fu.pl/post/1063600179</guid><pubDate>Sat, 04 Sep 2010 13:45:58 +0200</pubDate></item><item><title>Frank Chimero: There is a Horse in the Apple Store</title><description>&lt;a href="http://blog.frankchimero.com/post/1059696119/there-is-a-horse-in-the-apple-store"&gt;Frank Chimero: There is a Horse in the Apple Store&lt;/a&gt;: &lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_l86q4v9ACC1qz5dkl.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;There is a horse in the Apple Store and no one sees it but me.&lt;/p&gt;
&lt;p&gt;I think, “Why?” What is the villain here that blinds all of these people to this situation? Am I nuts for thinking this is exceptional? Does anyone else see this? Did I accidentally drop acid and not realize? I must take a photo….&lt;/p&gt;</description><link>http://blog.code-fu.pl/post/1063589027</link><guid>http://blog.code-fu.pl/post/1063589027</guid><pubDate>Sat, 04 Sep 2010 13:41:55 +0200</pubDate></item><item><title>Stuff I love: Muji Chronotebook — Jack Cheng</title><description>&lt;a href="http://jackcheng.com/stuff-i-love-muji-chronotebook"&gt;Stuff I love: Muji Chronotebook — Jack Cheng&lt;/a&gt;: &lt;p&gt;&lt;img height="278" width="400" src="http://img.skitch.com/20080929-gbyhn49d46pjp6hmfr6jw5gb1u.jpg"/&gt;&lt;/p&gt;</description><link>http://blog.code-fu.pl/post/1058543943</link><guid>http://blog.code-fu.pl/post/1058543943</guid><pubDate>Fri, 03 Sep 2010 16:08:16 +0200</pubDate></item><item><title>This is how I feel about buying apps - The Oatmeal</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_l86c3lJuhO1qz7317o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://theoatmeal.com/blog/apps"&gt;This is how I feel about buying apps - The Oatmeal&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.code-fu.pl/post/1058501415</link><guid>http://blog.code-fu.pl/post/1058501415</guid><pubDate>Fri, 03 Sep 2010 15:57:20 +0200</pubDate></item><item><title>ColorBlendy - Blend colors with different modes like multiply, overlay, dodge.</title><description>&lt;a href="http://colorblendy.com/"&gt;ColorBlendy - Blend colors with different modes like multiply, overlay, dodge.&lt;/a&gt;</description><link>http://blog.code-fu.pl/post/1058490790</link><guid>http://blog.code-fu.pl/post/1058490790</guid><pubDate>Fri, 03 Sep 2010 15:54:32 +0200</pubDate></item><item><title>Simplicity Is Highly Overrated | Don Normand</title><description>&lt;a href="http://www.jnd.org/dn.mss/simplicity_is_highly.html"&gt;Simplicity Is Highly Overrated | Don Normand&lt;/a&gt;: &lt;p&gt;&lt;a href="http://mnmal.org/post/1057607423/simplicity-is-highly-overrated-don-normand"&gt;mnmal&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This is a fantastic article.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“Why can’t products be simpler?” cries the reviewer in the New York Times, the Wall Street Journal, the local newspaper. “We want simplicity” cry the people befuddled by all the features of their latest whatever. Do they really mean it?  No.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;</description><link>http://blog.code-fu.pl/post/1057733605</link><guid>http://blog.code-fu.pl/post/1057733605</guid><pubDate>Fri, 03 Sep 2010 11:32:33 +0200</pubDate></item><item><title>Ruby Weekly: A Ruby E-mail Newsletter</title><description>&lt;a href="http://rubyweekly.com/"&gt;Ruby Weekly: A Ruby E-mail Newsletter&lt;/a&gt;: &lt;p&gt;One e-mail per week with news selected by the &lt;a href="http://www.rubyinside.com/"&gt;RubyInside&lt;/a&gt; guy.&lt;/p&gt;</description><link>http://blog.code-fu.pl/post/1013921569</link><guid>http://blog.code-fu.pl/post/1013921569</guid><pubDate>Thu, 26 Aug 2010 13:38:44 +0200</pubDate></item><item><title>Jekyll fix for Ruby 1.9.2</title><description>&lt;a href="http://github.com/grk/jekyll/commit/b3e48eabe8791218b28a9b11eebeedb9938e255c"&gt;Jekyll fix for Ruby 1.9.2&lt;/a&gt;: &lt;p&gt;Time#parse changed a bit in Ruby 1.9.2. This change fixes &lt;a href="http://github.com/mojombo/jekyll"&gt;jekyll&lt;/a&gt;.&lt;/p&gt;</description><link>http://blog.code-fu.pl/post/999198350</link><guid>http://blog.code-fu.pl/post/999198350</guid><pubDate>Mon, 23 Aug 2010 20:58:01 +0200</pubDate></item><item><title>simpledesks:

Submitted by Deborah Kunzie.
</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_l6yal9Kzgh1qbs5deo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://simpledesks.tumblr.com/post/941763039/submitted-by-deborah-kunzie"&gt;simpledesks&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Submitted by &lt;a href="http://deborahkunzie.com/"&gt;Deborah Kunzie&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://blog.code-fu.pl/post/999030543</link><guid>http://blog.code-fu.pl/post/999030543</guid><pubDate>Mon, 23 Aug 2010 20:15:21 +0200</pubDate></item><item><title>Fixing Common Bundler Problems - Intridea Blog</title><description>&lt;a href="http://intridea.com/2010/8/23/fixing-common-bundler-problems"&gt;Fixing Common Bundler Problems - Intridea Blog&lt;/a&gt;: &lt;blockquote&gt;
&lt;p&gt;When bundler first came out, I really wanted to like it. It promised a clean way to declare dependencies for your application in a single and definitive place, regardless of what kind of box your app was running on. Unfortunately, bundler has not lived up to the hype, and I’ve had plenty of headaches from bundler problems. Read on for a list of tips I’ve pulled together to save you some headache.&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://blog.code-fu.pl/post/999019173</link><guid>http://blog.code-fu.pl/post/999019173</guid><pubDate>Mon, 23 Aug 2010 20:12:34 +0200</pubDate></item><item><title>Inkling - Interactive textbooks for iPad.</title><description>&lt;a href="http://www.inkling.com/"&gt;Inkling - Interactive textbooks for iPad.&lt;/a&gt;: &lt;p&gt;This makes me sad that I’ve got only one year of studying left.&lt;/p&gt;
&lt;p&gt;(via &lt;a href="http://www.tuaw.com/2010/08/23/textbooks-for-ipad-progress-with-inkling/"&gt;TUAW&lt;/a&gt;)&lt;/p&gt;</description><link>http://blog.code-fu.pl/post/998064396</link><guid>http://blog.code-fu.pl/post/998064396</guid><pubDate>Mon, 23 Aug 2010 15:33:03 +0200</pubDate></item><item><title>Discussion with a Java switcher | Merbist</title><description>&lt;a href="http://merbist.com/2010/08/22/discussion-with-a-java-switcher/"&gt;Discussion with a Java switcher | Merbist&lt;/a&gt;</description><link>http://blog.code-fu.pl/post/998058127</link><guid>http://blog.code-fu.pl/post/998058127</guid><pubDate>Mon, 23 Aug 2010 15:30:14 +0200</pubDate></item><item><title>Github File Finder</title><description>&lt;a href="http://sr3d.github.com/GithubFinder/"&gt;Github File Finder&lt;/a&gt;: &lt;p&gt;Finally a clean way to browse github repos. Built in JS, under 10K compressed, so qualifies for the &lt;a title="10K Apart" href="http://10k.aneventapart.com/"&gt;10K Apart contest&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;(via &lt;a title="The Changelog" href="http://thechangelog.com/post/995873400/githubfinder-github-repository-finder-now-powered-by-git"&gt;The Changelog&lt;/a&gt;)&lt;/p&gt;</description><link>http://blog.code-fu.pl/post/996913720</link><guid>http://blog.code-fu.pl/post/996913720</guid><pubDate>Mon, 23 Aug 2010 08:30:37 +0200</pubDate></item><item><title>Minimal Mac | Via: The Endangered Species</title><description>&lt;a href="http://minimalmac.com/post/989762186/via-the-endangered-species"&gt;Minimal Mac | Via: The Endangered Species&lt;/a&gt;: &lt;blockquote&gt;
&lt;p&gt;Attribution and acknowledgement of sourcing are not only the right thing to do, the honorable thing to do, they are the very strands in the thing we call the web. They are what connect it all together. They help to explain how I got here from there and why. They also help you navigate back down that thread and, hopefully, onto other places filled with wonder, curiosity and delight.&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://blog.code-fu.pl/post/995423270</link><guid>http://blog.code-fu.pl/post/995423270</guid><pubDate>Mon, 23 Aug 2010 02:44:00 +0200</pubDate></item><item><title>Less.js Will Obsolete CSS</title><description>&lt;a href="http://fadeyev.net/2010/06/19/lessjs-will-obsolete-css/"&gt;Less.js Will Obsolete CSS&lt;/a&gt;: &lt;blockquote&gt;There are other cool features built into Less.js. For example, there’s a “watch” feature available in development mode. This feature will refresh the CSS on your page whenever your .less file is saved with new changes. The best thing is, it won’t refresh the whole page, just the right bits of CSS, live.&lt;/blockquote&gt;
&lt;p&gt;How awesome is that?!&lt;/p&gt;</description><link>http://blog.code-fu.pl/post/718156597</link><guid>http://blog.code-fu.pl/post/718156597</guid><pubDate>Sun, 20 Jun 2010 13:58:11 +0200</pubDate></item><item><title>Marco.org: How I write and time-manage</title><description>&lt;a href="http://www.marco.org/691438863"&gt;Marco.org: How I write and time-manage&lt;/a&gt;: &lt;blockquote&gt;
&lt;p&gt;I was asked a few times by some very nice people at WWDC this week how I manage my time between Instapaper and Tumblr, and how I write essays here that occasionally make sense. If you’ll forgive my auto-back-patting, here’s the answer I gave, and I think it’s worth sharing with you because you can…&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://blog.code-fu.pl/post/691599202</link><guid>http://blog.code-fu.pl/post/691599202</guid><pubDate>Sat, 12 Jun 2010 23:25:34 +0200</pubDate></item></channel></rss>

