<?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>I’m a 22 years old developer and UI designer from The Netherlands. This is where I share my experiences with mobile and web apps.</description><title>Richard Venneman</title><generator>Tumblr (3.0; @richardvenneman)</generator><link>http://richardvenneman.nl/</link><item><title>If you’re awesome and practice test-driven development and...</title><description>&lt;iframe src="http://player.vimeo.com/video/32424001" width="400" height="300" frameborder="0"&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;If you’re awesome and practice test-driven development and you happen to know interwebs memes like Nyan Cat, you should definitely check out &lt;a href="https://github.com/mattsears/nyan-cat-formatter"&gt;Nyan Cat RSpec Formatter&lt;/a&gt;. It takes your RSpec test results and displays them in the familiar Nyan Cat rainbow. Nyan Cat music not included.&lt;/p&gt;</description><link>http://richardvenneman.nl/post/13596140862</link><guid>http://richardvenneman.nl/post/13596140862</guid><pubDate>Thu, 01 Dec 2011 19:35:00 +0100</pubDate><category>ruby</category><category>rspec</category><category>nyancat</category></item><item><title>"Those who are willing to educate themselves and commit to improving their craft have an amazing..."</title><description>“Those who are willing to educate themselves and commit to improving their craft have an amazing opportunity to be on the forefront of design, to demand higher rates, and work on more interesting projects.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://thinkvitamin.com/events/the-importance-of-compass-sass-an-interview-with-brandon-mathis/"&gt;The Importance of Compass &amp; Sass: An Interview With Brandon Mathis&lt;/a&gt;&lt;/em&gt;</description><link>http://richardvenneman.nl/post/11747416725</link><guid>http://richardvenneman.nl/post/11747416725</guid><pubDate>Sat, 22 Oct 2011 00:24:46 +0200</pubDate></item><item><title>YAML for Ruby documentation</title><description>&lt;a href="http://www.yaml.org/YAML_for_ruby.html"&gt;YAML for Ruby documentation&lt;/a&gt;: &lt;p&gt;Lately I have been working a lot with YAML data in my HAML templates via &lt;a href="http://middlemanapp.com/"&gt;Middleman&lt;/a&gt;. YAML is great for providing data to display on your site. It allows for easy modification and addition trough separate &lt;code&gt;.yml&lt;/code&gt; files instead of having to copy-paste HTML/HAML. YAML is very intuitive to write and work with from Ruby (and templates). But if you are in need of some good documentation, check out this YAML Cookbook.&lt;/p&gt;</description><link>http://richardvenneman.nl/post/11133745915</link><guid>http://richardvenneman.nl/post/11133745915</guid><pubDate>Fri, 07 Oct 2011 09:01:00 +0200</pubDate><category>yaml</category><category>middleman</category><category>haml</category></item><item><title>Scalable and Modular Architecture for CSS</title><description>&lt;a href="http://smacss.com/book/"&gt;Scalable and Modular Architecture for CSS&lt;/a&gt;: &lt;p&gt;Jonathan Snook shares his vision and some good tips and techniques on how to organize your CSS code.&lt;/p&gt;</description><link>http://richardvenneman.nl/post/10985685879</link><guid>http://richardvenneman.nl/post/10985685879</guid><pubDate>Mon, 03 Oct 2011 20:26:38 +0200</pubDate><category>css</category><category>workflow</category></item><item><title>Static site development with Middleman</title><description>&lt;p&gt;It’s great to use innovations such as CoffeeScript, Sass/Less and templating engines like Haml and Slim but they all need to be compiled in order to be understood by browsers. Command-line tools are provided but it can get tedious when working with multiple of these tools at a time. Building a huge rakefile might be a solution but it would be nice to have a flexible and ready to use solution, right? Luckily there is!&lt;/p&gt;

&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_ls6g43s1R61qcnfx6.png" alt=""/&gt;&lt;/p&gt;

&lt;p&gt;Enter &lt;a href="http://middlemanapp.com/"&gt;Middleman&lt;/a&gt;: static site development at its finest. Middleman is static site generator based on Sinatra. It consists of a single command-line tool that watches a directory for changes and runs a server serving the compiled files.&lt;/p&gt;

&lt;h2&gt;Installing Middleman&lt;/h2&gt;

&lt;p&gt;To install Middleman and initialize a project:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ cd my_project
$ gem install middleman
$ middleman init my_project --bundler --template=html5
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I used two flags: &lt;code&gt;--bundler&lt;/code&gt; creates a Gemfile containing a fixed version of middleman itself. &lt;code&gt;--template=html5&lt;/code&gt; adds &lt;a href="http://html5boilerplate.com/"&gt;HTML5 Boilerplate&lt;/a&gt; as a starting point. You can use the added &lt;code&gt;index.html&lt;/code&gt; and &lt;code&gt;style.css&lt;/code&gt; if you are OK with using plain HTML and CSS. I prefer HAML and SASS. You can &lt;a href="https://gist.github.com/1240780"&gt;drop in these HAML/SASSified versions&lt;/a&gt; of HTML5 Boilerplate I created. Or download the latest versions from this &lt;a href="https://github.com/sporkd/compass-html5-boilerplate"&gt;actively maintained Compass version of HTML5 Boilerplate&lt;/a&gt; at GitHub.&lt;/p&gt;

&lt;p&gt;Start the server from the command-line:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ cd my_project
$ middleman server
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;.. and open &lt;code&gt;http://localhost:4567&lt;/code&gt; in your browser.&lt;/p&gt;

&lt;p&gt;Now just start developing your site! Any file you drop in your projects source folder will be automatically compiled by Middleman. The terminal will also notify you of any errors in your files.&lt;/p&gt;

&lt;h2&gt;Exporting your site&lt;/h2&gt;

&lt;p&gt;When you are done developing your site you will need to build it. Building means compiling all the source files for a production environment. This can be achieved by running the &lt;code&gt;middleman build&lt;/code&gt; command:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ cd my_project
$ middleman build
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You will find the compiled site in the &lt;code&gt;build&lt;/code&gt; folder.&lt;/p&gt;

&lt;h3&gt;Compressing assets&lt;/h3&gt;

&lt;p&gt;Middleman will optionally minify CSS &amp; Javascript and compress images. You can enable these optimizations by editing the &lt;code&gt;config.rb&lt;/code&gt; file to include the following lines:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;configure :build do
  activate :minify_css
  activate :minify_javascript
  activate :smusher
end
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Smusher image compression requires for the &lt;code&gt;middleman-smusher&lt;/code&gt; gem to be installed:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ gem install middleman-smusher
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If you’re using Bundler, just add &lt;code&gt;gem "middleman-smusher"&lt;/code&gt; to your Gemfile and run &lt;code&gt;bundle&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;Automatic browser reloads with LiveReload&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mockko/livereload"&gt;LiveReload&lt;/a&gt; is a Ruby gem and browser extension which automatically reloads your browser when you make changes to source files.&lt;/p&gt;

&lt;p&gt;This is how to install it on OSX:&lt;/p&gt;

&lt;ol&gt;&lt;li&gt;Add &lt;code&gt;rb-fsevent&lt;/code&gt; and &lt;code&gt;guard-livereload&lt;/code&gt; to your Gemfile&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;bundle&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Install a browser extension (&lt;a href="https://github.com/downloads/mockko/livereload/LiveReload-1.6.2.safariextz"&gt;Safari&lt;/a&gt;, &lt;a href="https://chrome.google.com/extensions/detail/jnihajbhpnppcggbcgedagnkighmdlei"&gt;Google Chrome&lt;/a&gt;, &lt;a href="https://addons.mozilla.org/firefox/addon/livereload/"&gt;Firefox&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;middleman server --livereload&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;If you’re using Safari, right-click the page and click ‘Enable LiveReload’&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Your browser will now automatically reload upon file changes!&lt;/p&gt;

&lt;p&gt;Follow the installation instructions on the &lt;a href="https://github.com/mockko/livereload#readme"&gt;LiveReload Github page&lt;/a&gt; for instructions on how to install on Linux and Windows.&lt;/p&gt;

&lt;h2&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Working with Middleman is a really pleasant experience. It definitely changed the way how I work on static sites. Its flexible system allows you to swap any templating or markup language and there are a whole lot of other features to discover like YAML data, templates &amp; layouts and a ‘blog mode’. I tried a whole lot of other solutions like &lt;a href="http://nanoc.stoneship.org/"&gt;Nanoc&lt;/a&gt; and writing my own rakefiles, but in the end I definitely recommend Middleman. For more information, check out the excellent documentation over at &lt;a href="http://middlemanapp.com/"&gt;middlemanapp.com&lt;/a&gt;.&lt;/p&gt;</description><link>http://richardvenneman.nl/post/10723870753</link><guid>http://richardvenneman.nl/post/10723870753</guid><pubDate>Tue, 27 Sep 2011 12:53:17 +0200</pubDate><category>middleman</category><category>workflow</category><category>haml</category><category>sass</category><category>coffeescript</category></item><item><title>Responsive Video Embeds with FitVids</title><description>&lt;a href="http://fitvidsjs.com/"&gt;Responsive Video Embeds with FitVids&lt;/a&gt;: &lt;p&gt;I am currently working on a responsive design which contains an embedded Vimeo video. After spending an hour trying to get the damn video to scale (while maintaining aspect ratio) I found this wonderful jQuery plugin called FitVids. It handles it all in just one line:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;($ '#videoContainer').fitVids()
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Check it out!&lt;/p&gt;</description><link>http://richardvenneman.nl/post/10650943417</link><guid>http://richardvenneman.nl/post/10650943417</guid><pubDate>Sun, 25 Sep 2011 20:21:00 +0200</pubDate><category>responsive web design</category><category>jQuery</category></item><item><title>HOWTO Use UTF-8 Throughout Your Web Stack</title><description>&lt;a href="http://rentzsch.tumblr.com/post/9133498042"&gt;HOWTO Use UTF-8 Throughout Your Web Stack&lt;/a&gt;: &lt;p&gt;&lt;a href="http://rentzsch.tumblr.com/post/9133498042"&gt;rentzsch&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;em&gt;Good is the enemy of Great
  Latin-1 is the enemy of UTF-8&lt;/em&gt;&lt;/p&gt;
  
  &lt;p&gt;You write web apps. You understand the web is global, and want to support internationalization. You want UTF-8.&lt;/p&gt;
  
  &lt;p&gt;&lt;a href="http://href=" http:&gt;UTF-8&lt;/a&gt; is extremely sane. Well, as sane as an encoding can be that features backwards-compatibility with ASCII.
  Everything…&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://richardvenneman.nl/post/9286470830</link><guid>http://richardvenneman.nl/post/9286470830</guid><pubDate>Tue, 23 Aug 2011 10:00:05 +0200</pubDate><category>utf-8</category></item><item><title>Android GUI PSD (High-Density)</title><description>&lt;a href="http://www.teehanlax.com/downloads/android-gui-psd-high-density/"&gt;Android GUI PSD (High-Density)&lt;/a&gt;: &lt;p&gt;It came to my attention that teehan+lax, the team behind the excellent iPhone GUI PSD did an Android GUI PSD too. This PSD contains all Android interface elements so you can use them in your Photoshop mockups. Check out &lt;a href="http://www.teehanlax.com/downloads/"&gt;their downloads page&lt;/a&gt; too, sweet!&lt;/p&gt;</description><link>http://richardvenneman.nl/post/9120879705</link><guid>http://richardvenneman.nl/post/9120879705</guid><pubDate>Fri, 19 Aug 2011 15:00:05 +0200</pubDate><category>android</category><category>photoshop</category></item><item><title>Automated Jasmine Javascript testing</title><description>&lt;p&gt;Last week I went on a bootcamp with my team to build a prototype for an upcoming web app. We decided on a test-driven approach to the project. I feel like this is one of the best decisions we’ve ever made. It might be slow to get into, but once you are you never want to go back to regular ‘ol programming style. Never I’ve had so much faith in the code I’ve written. It also really is a huge step forward in productivity.&lt;/p&gt;

&lt;p&gt;I’m working quite a lot with Javascript as I’m the front-end developer on the team. In this tutorial I will now explain how I handle with tests in Javascript and I hope I can convince you of the awesomeness that is test-driven development!&lt;/p&gt;

&lt;h1&gt;The ingredients&lt;/h1&gt;

&lt;p&gt;There are a couple of ingredients to the automated testing workflow I’ve come to love:&lt;/p&gt;

&lt;ol&gt;&lt;li&gt;&lt;a href="https://github.com/pivotal/jasmine"&gt;Jasmine&lt;/a&gt; - A testing framework for Javascript&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/velesin/jasmine-jquery"&gt;Jasmine-jquery&lt;/a&gt; - Some sweet Jasmin selectors and fixture support&lt;/li&gt;
&lt;li&gt;&lt;a href="http://jashkenas.github.com/coffee-script/"&gt;CoffeeScript&lt;/a&gt; - Programmer happiness++&lt;/li&gt;
&lt;li&gt;&lt;a href="http://johnbintz.github.com/jasmine-headless-webkit/"&gt;Jasmine Headless Webkit&lt;/a&gt; - Outputs feedback into the terminal&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/guard/guard"&gt;Guard&lt;/a&gt; - Makes it possible to run tests directly when you save them&lt;/li&gt;
&lt;/ol&gt;&lt;h1&gt;Prerequisite&lt;/h1&gt;

&lt;p&gt;Jasmine Headless Webkit uses a QTWebKit Widget to run the tests in. Therefor we’ll need QT on our system. If you’re on OSX, the easiest way to install it is via &lt;a href="http://mxcl.github.com/homebrew/"&gt;Homebrew&lt;/a&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ brew install qt
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If you’re on another OS check the &lt;a href="http://johnbintz.github.com/jasmine-headless-webkit/"&gt;Jasmine Headless Webkit website&lt;/a&gt; and look in the &lt;em&gt;Qt 4.7.X&lt;/em&gt; section for instructions.&lt;/p&gt;

&lt;h1&gt;Setting up the Ruby environment&lt;/h1&gt;

&lt;p&gt;If you haven’t already done so, install &lt;a href="https://rvm.beginrescueend.com/"&gt;RVM&lt;/a&gt; by reading the &lt;a href="https://rvm.beginrescueend.com/rvm/install/"&gt;installation documentation&lt;/a&gt;. Now create a new RVM configuration by running the following commands in a terminal in your project directory:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ rvm use 1.9.2@myproject --create
$ echo 'rvm use 1.9.2@myproject' &gt; .rvmrc
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This will create and use an enclosed Ruby 1.9.2 environment within your project and will make sure it will use the correct Ruby version every time you enter your project via the command line. Try this by &lt;code&gt;cd ..&lt;/code&gt; and &lt;code&gt;cd myproject&lt;/code&gt;. The first time, you’ll be asked to confirm you want to use the &lt;code&gt;.rvmrc&lt;/code&gt; file we just created.&lt;/p&gt;

&lt;p&gt;We will now create a Gemset using &lt;a href="http://gembundler.com/"&gt;Bundler&lt;/a&gt;. With Bundler we will create a “Gemfile” which will list the gems needed for our project. Installing it is as easy as running:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ gem install bundler
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now create a file called &lt;code&gt;Gemfile&lt;/code&gt; (yes, without an extension) in your project directory root and add the following lines to it:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;source 'http://rubygems.org'

gem 'jasmine'
gem 'jasmine-headless-webkit'
gem 'guard-jasmine-headless-webkit'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Save the file and run the following command:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ bundle
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This will download and install the gems and their dependencies to a contained gemset within the RVM environment. It will also create a new file called “Gemfile.lock” which is kind of a binary file containing the gems.&lt;/p&gt;

&lt;p&gt;We’re now ready to configure our environment. Let’s get started!&lt;/p&gt;

&lt;h1&gt;Setting up Jasmine&lt;/h1&gt;

&lt;p&gt;Jasmine comes with an &lt;code&gt;init&lt;/code&gt; function which will set up a directory structure for you. Run the following command from your project root directory:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ bundle exec jasmine init
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;With bundle exec, the jasmine executable will be called from the gemset.&lt;/p&gt;

&lt;p&gt;Download the &lt;a href="http://jquery.com/"&gt;latest release of jQuery&lt;/a&gt; and drop it into &lt;code&gt;public/javascripts/vendor&lt;/code&gt; (you’d have to create the ‘vendor’ folder). Next download &lt;a href="https://github.com/velesin/jasmine-jquery"&gt;jasmin-jquery&lt;/a&gt; to &lt;code&gt;spec/javascripts/helpers&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;We’re now going to edit the Jasmine configuration file. Open up &lt;code&gt;spec/javascripts/support/yasmine.yml&lt;/code&gt; and replace the contents with the following:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;src_files:
  - 'public/javascripts/vendor/jquery-1.6.2.min.js'
  - 'public/javascripts/*.{coffee,js}'

spec_files:
  - '**/*[sS]pec.{coffee,js}'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This ensures that jQuery is picked up at the start so we can use it in our tests. We’ll also tell Jasmine to look for .coffee files since Jasmine Headless Webkit supports CoffeeScript!&lt;/p&gt;

&lt;p&gt;You could actually start testing right now but there’s one more thing..&lt;/p&gt;

&lt;h1&gt;Configuring Guard to automate testing&lt;/h1&gt;

&lt;p&gt;Guard lets us start a process when filesystem events occur. In our case, Jasmine will run the tests when we edit them. To enable Guard for our project, run the following command:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ guard init jasmine-headless-webkit
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This creates a “Guardfile” with all configuration we need. To start watching your project, simply run &lt;code&gt;guard&lt;/code&gt; from your project root. This will automatically run all tests when you save a spec file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bonus (Growl notifications):&lt;/strong&gt; Add the gems &lt;code&gt;rb-fsevent&lt;/code&gt; and &lt;code&gt;growl_notify&lt;/code&gt; to your Gemfile and run &lt;code&gt;bundle&lt;/code&gt; to enable Growl notifications for Guard!&lt;/p&gt;

&lt;h1&gt;Let’s test our testing setup&lt;/h1&gt;

&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lq0hii6b1Q1qcnfx6.jpg" alt=""/&gt;&lt;/p&gt;

&lt;p&gt;Finally we’ve got our testing environment all set up so it’s time to test if our setup works.. The actual writing of tests is beyond the scope of this tutorial but for now I’ve provided a spec and an implementation file. I might do an in-depth testing tutorial soon.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://gist.github.com/1148099#file_pwd_spec.coffee"&gt;spec/javascripts/pwd_spec.coffee&lt;/a&gt;&lt;/p&gt;

&lt;script src="https://gist.github.com/1148099.js?file=pwd_spec.coffee"&gt;&lt;/script&gt;&lt;p&gt;&lt;a href="https://gist.github.com/1148099#file_password.coffee"&gt;public/javascripts/Password.coffee&lt;/a&gt;&lt;/p&gt;

&lt;script src="https://gist.github.com/1148099.js?file=Password.coffee"&gt;&lt;/script&gt;&lt;p&gt;If you’ve run &lt;code&gt;guard&lt;/code&gt; already, you should see that the 5 tests that came with Yasmine passed. Once you’ve created above files there should be 8 passing tests.&lt;/p&gt;

&lt;h1&gt;Further reading&lt;/h1&gt;

&lt;p&gt;We had to do quite some research to find the optimal testing workflow and I believe we succeeded in finding our way in this. I hope this setup will make the awesome test-driven development that everyone should practice somewhat easier.&lt;/p&gt;

&lt;p&gt;If you’d like to learn more about this workflow, you’ll like these resources:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;&lt;a href="http://peepcode.com/products/coffeescript"&gt;Meet CoffeeScript Peepcode&lt;/a&gt; - all about writing Jasmine tests in CoffeeScript!&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/pivotal/jasmine-ajax"&gt;jasmine-ajax&lt;/a&gt; - Easy AJAX testing&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/pivotal/jasmine/wiki"&gt;Jasmine wiki&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><link>http://richardvenneman.nl/post/8990741701</link><guid>http://richardvenneman.nl/post/8990741701</guid><pubDate>Tue, 16 Aug 2011 10:56:00 +0200</pubDate><category>coffeescript</category><category>guard</category><category>jasmine</category><category>javascript</category><category>workflow</category><category>rvm</category><category>bundler</category></item><item><title>Content-Aware Fill watermarks</title><description>&lt;p&gt;Just discovered a great use for Photoshop’s Content-Aware Fill function: hiding watermarks in stock images!&lt;/p&gt;

&lt;p&gt;For a design I’m working on I needed a soil background. I was planning on just trying different ones but I didn’t want to buy them all. E.g. &lt;a href="http://www.dreamstime.com/royalty-free-stock-photos-soil-background-image18223728"&gt;this photo&lt;/a&gt; on Dreamstime has this big Dreamstime logo in the center. Content-Aware Fill-ing this section hid the watermark perfectly. This way I could easily try several images in my comp before buying a larger size.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lpek5g5uur1qcnfx6.png" alt=""/&gt;&lt;/p&gt;</description><link>http://richardvenneman.nl/post/8593723762</link><guid>http://richardvenneman.nl/post/8593723762</guid><pubDate>Sun, 07 Aug 2011 10:00:06 +0200</pubDate><category>Photoshop</category></item><item><title>WhatFont Tool</title><description>&lt;a href="http://chengyinliu.com/whatfont.html"&gt;WhatFont Tool&lt;/a&gt;: &lt;p&gt;Fantastic browser extension (Safari, Chrome) to identify fonts. Works by hovering text, clicking reveals detailed info such as font-size and line-height.&lt;/p&gt;</description><link>http://richardvenneman.nl/post/8469177668</link><guid>http://richardvenneman.nl/post/8469177668</guid><pubDate>Thu, 04 Aug 2011 14:05:03 +0200</pubDate><category>fonts</category></item><item><title>Photoshop New Doc iOS &amp; Android presets</title><description>&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_lq0ijyc4UH1qcnfx6.png" alt=""/&gt;&lt;/p&gt;

&lt;p&gt;Photoshop gives you the ability to create custom “New Document” presets. These come in quite handy when you’re designing for multiple (mobile) screen resolutions. From the “New Document” dialog you can create and delete presets, but for some reason there are no edit or export options. Fortunately we can add and edit these presets by editing a specific TXT file.&lt;/p&gt;

&lt;p&gt;The default New Document presets get stored in a file called &lt;code&gt;Default New Doc Sizes.txt&lt;/code&gt; located in &lt;code&gt;Applications/Adobe Photoshop CS5/Locales/en_US/Support Files&lt;/code&gt;. If you’re on Windows it should be in &lt;code&gt;/Program Files/Adobe/Adobe Photoshop CS5/Required/&lt;/code&gt;.
You can edit this file to your likings, by adding new presets and deleting any unneeded presets. Below are the presets I use for Mobile (iOS and Android) design. You can add them  between “Standard screen sizes” and “Generic mobile device sizes”, somewhere around line 189:&lt;/p&gt;

&lt;script src="https://gist.github.com/1145353.js?file=Default%20New%20Doc%20Sizes.txt"&gt;&lt;/script&gt;&lt;p&gt;These values are taken directly from the &lt;a href="https://developer.apple.com/library/prerelease/ios/#documentation/UserExperience/Conceptual/MobileHIG/Characteristics/Characteristics.html#//apple_ref/doc/uid/TP40006556-CH7-SW1"&gt;iOS HIG&lt;/a&gt; and the &lt;a href="http://developer.android.com/guide/practices/screens_support.html#qualifiers"&gt;Android Developers Guide&lt;/a&gt;. Note that these lines include the correct resolutions (pixels/inch) which could come in handy if you’re going to print your designs. Also, Color Profile: “Don’t Color Manage this Document”. Read &lt;a href="http://www.smashingmagazine.com/2009/10/12/setting-up-photoshop-for-web-app-and-iphone-development/"&gt;Setting Up Photoshop For Web, App and iPhone Development on Smashing Magazine&lt;/a&gt; for more information on that subject.&lt;br/&gt; The presets are currently subsets of the “Mobile &amp; Devices” section. Unfortunately due to localization restrictions, it seems you cannot create your own sections. Hope it is of some help anyways!&lt;/p&gt;</description><link>http://richardvenneman.nl/post/8350933451</link><guid>http://richardvenneman.nl/post/8350933451</guid><pubDate>Mon, 01 Aug 2011 22:01:00 +0200</pubDate><category>Photoshop</category><category>iOS</category><category>Android</category><category>workflow</category></item></channel></rss>

