<?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 living in Copenhagen with my wife and Dogs.

Drupal developer for a living.</description><title>Ramlev.dk</title><generator>Tumblr (3.0; @ramlev)</generator><link>http://ramlev.dk/</link><item><title>On track (Taken with instagram)</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_lyk9qjptjg1qb23gio1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;On track (Taken with &lt;a href="http://instagr.am"&gt;instagram&lt;/a&gt;)&lt;/p&gt;</description><link>http://ramlev.dk/post/16693315300</link><guid>http://ramlev.dk/post/16693315300</guid><pubDate>Sun, 29 Jan 2012 08:06:18 -0500</pubDate></item><item><title>#coffeecollective #latteart (Taken with instagram)</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_lyk9jdyCkV1qb23gio1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;#coffeecollective #latteart (Taken with &lt;a href="http://instagr.am"&gt;instagram&lt;/a&gt;)&lt;/p&gt;</description><link>http://ramlev.dk/post/16693202901</link><guid>http://ramlev.dk/post/16693202901</guid><pubDate>Sun, 29 Jan 2012 08:02:01 -0500</pubDate><category>latteart</category><category>coffeecollective</category></item><item><title>My Vim configuration on GitHub.com</title><description>&lt;p&gt;Since i have done a few blogposts (&lt;a href="http://ramlev.dk/post/16222138502/vim-and-drupal-code-validation"&gt;1&lt;/a&gt;, &lt;a href="http://ramlev.dk/post/15966480414/my-vim-configuration-and-plugins"&gt;2&lt;/a&gt;) about my Vim installation, I think it’s about time i show you guys my configuration.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/ramlev/vim"&gt;project&lt;/a&gt; is on &lt;a href="http://github.com"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;</description><link>http://ramlev.dk/post/16418880686</link><guid>http://ramlev.dk/post/16418880686</guid><pubDate>Tue, 24 Jan 2012 14:53:32 -0500</pubDate></item><item><title>Vim and drupal code validation</title><description>&lt;p&gt;I have been using the &lt;a href="https://github.com/scrooloose/syntastic"&gt;Syntastic&lt;/a&gt; plugin for vim for a long time. Syntastic does what it have to, in php files it validates the file by in short terms do a&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ php -l FILENAME&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And present the error(s) in the statusbar, and with a little marker at the line(s).&lt;/p&gt;

&lt;p&gt;If you install the &lt;a href="http://pear.php.net/package/PHP_CodeSniffer/"&gt;PHP_CodeSniffer&lt;/a&gt; via the pear installer, Syntastic automatic validates the code against the default code standards setup in php_codesniffer.&lt;/p&gt;

&lt;p&gt;I found &lt;a href="http://drupal.org/project/drupalcs"&gt;DrupalCS&lt;/a&gt; module by &lt;a href="http://drupal.org/user/244460"&gt;Ericduran&lt;/a&gt; which is a PHP code sniffer addon, and tests your active code on-the-fly when saving.&lt;/p&gt;

&lt;p&gt;The DrupalCS and phpcs (php code sniffer) is integrated into the Syntastic plugin.&lt;/p&gt;

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

&lt;p&gt;The installation of PHP Code Sniffer and Drupal CS is quite simple, and it’s nicely documented on the &lt;a href="http://drupal.org/project/drupalcs"&gt;DrupalCS&lt;/a&gt; module page.&lt;/p&gt;

&lt;p&gt;After installing it, you can test if the DrupalCodingStandard work by test if it’s loaded in your terminal&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ phpcs -i&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If you want to test a file from your terminal, you can fire the command&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;phpcs --standard=DrupalCodingStandard --extensions=php,module,inc,install,test,profile,theme FILENAME.module&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The result will look something like this &lt;a href="https://gist.github.com/1652469"&gt;output&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you execute the phpcs without the Drupal specific validator&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ phpcs --extensions=php,module,inc,install,test,profile,theme FILENAME.module &lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The result &lt;a href="https://gist.github.com/1652460"&gt;output&lt;/a&gt; is a bit more scary.&lt;/p&gt;

&lt;h1&gt;Vim configuration&lt;/h1&gt;

&lt;p&gt;The configuration for vim im using to get it working is.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;let g:syntastic_enable_signs=1 " Enable markers on the line containing a problem.
let g:syntastic_auto_jump=0 " Dont jump to the first line with a problem
let g:syntastic_phpcs_conf='--standard=DrupalCodingStandard --extensions=php,module,inc,install,test,profile,theme' " Test php,module,inc,install ... files with the DrupalCodingStandard
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The first days after using it on a daily basis, it was quite annoying, but it have made me more aware of how i code.&lt;/p&gt;</description><link>http://ramlev.dk/post/16222138502</link><guid>http://ramlev.dk/post/16222138502</guid><pubDate>Sat, 21 Jan 2012 06:43:00 -0500</pubDate><category>vim</category><category>syntastic</category><category>drupal</category><category>development</category><category>PHP_CodeSniffer</category></item><item><title>My Vim configuration and plugins</title><description>&lt;p&gt;My primary editor for PHP/Drupal programming have been &lt;a href="https://github.com/b4winckler/macvim"&gt;MacVim&lt;/a&gt; for years, and therefore my editor have been tweaked and customized to my needs, you can see my &lt;a href="https://gist.github.com/1616985"&gt;.vimrc&lt;/a&gt; file.
I’m always ready for new plugins, new branches of existing repositories and to learn new.&lt;/p&gt;

&lt;p&gt;The installed version of my MacVim is the &lt;a href="https://github.com/downloads/b4winckler/macvim/MacVim-snapshot-64.tbz"&gt;snapshot-64&lt;/a&gt;. Which is installed with &lt;a href="https://github.com/mxcl/homebrew"&gt;Homebrew&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;First of all the colorscheme is very important, since we’re looking at it for (way too many) hours a day. I toggles between &lt;a href="https://githu.com/telamon/vim-color-github"&gt;github&lt;/a&gt; and &lt;a href="https://github.com/vim-scripts/Mustang2"&gt;Mustang2&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Below theres a list of all the installed plugins im using these days. All plugins, syntax and colorschemes is handled by &lt;a href="https://github.com/tpope/vim-pathogen"&gt;pathogen.vim&lt;/a&gt; which in short terms makes it very easy to install new plugins, colorshemes and so on.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mileszs/ack.vim"&gt;&lt;strong&gt;Ack&lt;/strong&gt;&lt;/a&gt; is an alternative grep command, which is more effective and fast. Use this plugin to search recursivly from the current path for a text-string.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;:Ack 'function hook_node_info'&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Will look in current path for the written text string.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/kien/ctrlp.vim"&gt;&lt;strong&gt;CTRLP.vim&lt;/strong&gt;&lt;/a&gt; is described in this &lt;a href="http://ramlev.dk/post/15688088695/ctrlp-vim"&gt;blogpost&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/sjl/gundo.vim"&gt;&lt;strong&gt;Gundo.vim&lt;/strong&gt;&lt;/a&gt; gives you a little window, where you will se a visualized view of your undo-tree.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/vim-scripts/jsbeautify"&gt;&lt;strong&gt;Jsbeautifier&lt;/strong&gt;&lt;/a&gt; is a little tool, which can format / indent your .js code nice, an online version can be found here &lt;a href="http://jsbeautifier.org/"&gt;jsbeautifier&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/walm/jshint.vim"&gt;&lt;strong&gt;JSHint&lt;/strong&gt;&lt;/a&gt; is a little nodeJS tool, so you can test your .js code for code errors.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;:JSHint %&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Will run jshint on the current file and open a little scratch window, which describes all errors with linenumbers.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/scrooloose/nerdcommenter"&gt;&lt;strong&gt;NERDCommenter&lt;/strong&gt;&lt;/a&gt; provides a nifty feature to easy change a block of text to a comment block, supports a lot of different filetypes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/scrooloose/nerdtree"&gt;&lt;strong&gt;NERDTree&lt;/strong&gt;&lt;/a&gt; have been the most important plugin for me, the plugin creates a window where you can explore your filesystem, open files and create/delete files/directories.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/vim-scripts/php.vim-for-php5"&gt;&lt;strong&gt;Php.vim-for-php5&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Syntax highlight file for php5, which can be configured a bit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ervandew/supertab"&gt;&lt;strong&gt;Supertab&lt;/strong&gt;&lt;/a&gt; works when hitting &lt;TAB&gt; when typing a word, it will display a box with text suggestions, and you can browse through suggestions with &lt;TAB&gt; and &lt;S-TAB&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/scrooloose/syntastic"&gt;&lt;strong&gt;Syntastic&lt;/strong&gt;&lt;/a&gt; checks your sourcecode for syntax errors. It checks your code through external syntax checkers. You will be notified by a little mark on all lines containing an error. And shows a window where information about the error is shown.&lt;/p&gt;

&lt;p&gt;Check &lt;a href="http://ramlev.dk/post/16222138502/vim-and-drupal-code-validation"&gt;this blogpost&lt;/a&gt; for a lot more info on this subject.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/majutsushi/tagbar"&gt;&lt;strong&gt;Tagbar&lt;/strong&gt;&lt;/a&gt; shows a sidebar with functions, variable definitions generated by ctags. Classes, properties, methods and functions in javascript.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/jeetsukumaran/vim-buffergator"&gt;&lt;strong&gt;vim-buffergator&lt;/strong&gt;&lt;/a&gt; lets you see a window on the left, with all open buffers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ap/vim-css-color"&gt;&lt;strong&gt;vim-css-color&lt;/strong&gt;&lt;/a&gt; will highlights color definitions in css-files. a color will be shown with the color as background for the text, #f00 will be shows as white text on red background.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/tpope/vim-fugitive"&gt;&lt;strong&gt;Vim-fugitive&lt;/strong&gt;&lt;/a&gt; Handle various git commands from within vim.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/henrik/vim-indexed-search"&gt;&lt;strong&gt;Vim-indexed-search&lt;/strong&gt;&lt;/a&gt; shows a “Match x of y” when searching in buffers.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="httsp://github.com/itspriddle/vim-jquery"&gt;&lt;strong&gt;Vim-jquery&lt;/strong&gt;&lt;/a&gt; is a syntax file to add some colorations for jQuery keywords and css selectors.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/tsaleh/vim-matchit"&gt;&lt;strong&gt;Vim-matchit&lt;/strong&gt;&lt;/a&gt; - The % in normal vi/vim will jump between matching [ ( {’s, with matchit you will be able to jump between keywords as if, then, else, foreach, you can decide yourself, the configuration goes into the .vimrc file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/jinfield/vim-nginx"&gt;&lt;strong&gt;Vim-nginx&lt;/strong&gt;&lt;/a&gt; is as simple as syntax colors for nginx configuration files.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Lokaltog/vim-powerline"&gt;&lt;strong&gt;Powerline&lt;/strong&gt;&lt;/a&gt; is a utility plugin which allows you to create better-looking, more functional vim statuslines.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/tpope/vim-surround"&gt;&lt;strong&gt;Vim-surround&lt;/strong&gt;&lt;/a&gt; is all about “surroundings”: parentheses, brackets, quotes, XML tags, and more. The plugin provides mappings to easily delete, change and add such surroundings in pairs&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/vim-scripts/ZoomWin"&gt;&lt;strong&gt;ZoomWin&lt;/strong&gt;&lt;/a&gt; you easy makes your window zoom in/out of full screen with &lt;c-w&gt;o. This is very useful if you have a split screen going on, and you want to give a window full attention.&lt;/c-w&gt;&lt;/p&gt;</description><link>http://ramlev.dk/post/15966480414</link><guid>http://ramlev.dk/post/15966480414</guid><pubDate>Mon, 16 Jan 2012 16:13:00 -0500</pubDate><category>vim</category><category>editor</category><category>development</category><category>javascript</category><category>php</category><category>ack</category></item><item><title>CTRLP.vim</title><description>&lt;p&gt;A fuzzy file, tag, recently used files finder plugin for the vim editor, which makes my day so more easy.&lt;/p&gt;

&lt;p&gt;I use to use the &lt;a href="https://github.com/wincent/Command-T"&gt;Command-T&lt;/a&gt; plugin, but found &lt;a href="http://kien.github.com/ctrlp.vim/"&gt;CTRLP.vim&lt;/a&gt; on &lt;a href="http://thechangelog.com/post/15573551543/ctrlp-fuzzy-file-buffer-mru-and-tag-finder-for-vim"&gt;The Changelog&lt;/a&gt;.
The &lt;a href="https://github.com/wincent/Command-T"&gt;Command-T&lt;/a&gt; plugin is a quite more simple than &lt;a href="http://kien.github.com/ctrlp.vim/"&gt;CTRLP.vim&lt;/a&gt;, and needs ruby to be installed. But the major reason for changing is that &lt;a href="http://kien.github.com/ctrlp.vim/"&gt;CTRLP.vim&lt;/a&gt; is more advanced, and the features is&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Full support for Vim’s regexp as search pattern.&lt;/li&gt;
&lt;li&gt;Built-in Most Recently Used (MRU) files monitoring and search.&lt;/li&gt;
&lt;li&gt;Built-in root directory finder.&lt;/li&gt;
&lt;li&gt;Open multiple files at once.&lt;/li&gt;
&lt;li&gt;Create new files and directories.&lt;/li&gt;
&lt;li&gt;Execute Ex-commands on an opening file (jump to a line, a string or do anything).&lt;/li&gt;
&lt;li&gt;Optional cross-sessions caching and history allow for fast initialization.&lt;/li&gt;
&lt;li&gt;Mappings and usage conform to Vim’s conventions.&lt;/li&gt;
&lt;/ul&gt;</description><link>http://ramlev.dk/post/15688088695</link><guid>http://ramlev.dk/post/15688088695</guid><pubDate>Wed, 11 Jan 2012 17:16:42 -0500</pubDate><category>vim</category><category>plugin</category></item><item><title>Endless (Taken with instagram)</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_lwyvevZagG1qb23gio1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Endless (Taken with &lt;a href="http://instagr.am"&gt;instagram&lt;/a&gt;)&lt;/p&gt;</description><link>http://ramlev.dk/post/14972174711</link><guid>http://ramlev.dk/post/14972174711</guid><pubDate>Thu, 29 Dec 2011 08:13:43 -0500</pubDate></item><item><title>OSX Lion as the awësome php developing environment</title><description>&lt;h1&gt;Make your OSX Lion a dream of a php dev environment&lt;/h1&gt;

&lt;h2&gt;This will be installed and configurered.&lt;/h2&gt;

&lt;ul&gt;&lt;li&gt;Homebrew + Homebrew alternatives&lt;/li&gt;
&lt;li&gt;git&lt;/li&gt;
&lt;li&gt;Iterm2&lt;/li&gt;
&lt;li&gt;zsh + oh-my-zsh&lt;/li&gt;
&lt;li&gt;Macvim&lt;/li&gt;
&lt;li&gt;named&lt;/li&gt;
&lt;li&gt;nginx

&lt;ul&gt;&lt;li&gt;Configure nginx for wildcard local domains.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;php 5.3.8&lt;/li&gt;
&lt;li&gt;mariaDB&lt;/li&gt;
&lt;li&gt;Real life example

&lt;ul&gt;&lt;li&gt;Another site&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Linux note&lt;/li&gt;
&lt;/ul&gt;&lt;h1&gt;Homebrew&lt;/h1&gt;

&lt;p&gt;&lt;a href="http://mxcl.github.com/homebrew/"&gt;&lt;strong&gt;Homebrew&lt;/strong&gt;&lt;/a&gt; - as told on the website, &lt;strong&gt;The missing package manager for OSX&lt;/strong&gt;, it’s the easiest and most flexisble way to install various tools Apple didn’t include with OSX. The HomebrewAlt is an addon to the normal homebrew, with a lot of new apps to install. We’re using it to get php upgraded to 5.3.8.&lt;/p&gt;

&lt;p&gt;There are a few requirements to be able to install Homebrew, and it’s:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;OSX 10.5+ (which should be fully updated).&lt;/li&gt;
&lt;li&gt;Xcode 4.x&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;It’s pretty simple to install Homebrew, it’s done with this oneliner.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/usr/bin/ruby -e "$(curl -fsSL &lt;a href="https://raw.github.com/gist/323731"&gt;https://raw.github.com/gist/323731&lt;/a&gt;)"
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If you want to &lt;a href="https://gist.github.com/323731"&gt;see&lt;/a&gt; the script.&lt;/p&gt;

&lt;p&gt;Homebrew it now installed in /usr/local and it’s path is writeable by the user who have installed it, so you can acutally install with homebrew without sudo’ing.&lt;/p&gt;

&lt;p&gt;Download and install Homebrew-alt into /usr/local/LibraryAlt&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;git clone &lt;a href="https://github.com/adamv/homebrew-alt.git"&gt;https://github.com/adamv/homebrew-alt.git&lt;/a&gt; /usr/local/LibraryAlt
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Add /usr/local/bin and /usr/local/sbin to your path.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;vim ~/.zshrc 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Paste the following into the very buttom of the file and [esc]:wq&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;export PATH=$(brew --prefix)/bin:$(brew --prefix)/sbin:$PATH;
&lt;/code&gt;&lt;/pre&gt;

&lt;h1&gt;Git&lt;/h1&gt;

&lt;p&gt;&lt;a href="http://git-scm.com/"&gt;Git&lt;/a&gt; is a free &amp; open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.&lt;/p&gt;

&lt;p&gt;It’s simply installed with&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;brew install git
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And you’re good to go.&lt;/p&gt;

&lt;h2&gt;Iterm2&lt;/h2&gt;

&lt;p&gt;&lt;a href="http://www.iterm2.com/#/section/home"&gt;iTerm2&lt;/a&gt; is a replacement for Terminal. iTerm2 has a rich collection of features.&lt;/p&gt;

&lt;p&gt;Go to &lt;a href="http://www.iterm2.com/#/section/home"&gt;&lt;a href="http://www.iterm2.com"&gt;www.iterm2.com&lt;/a&gt;&lt;/a&gt; and download and install the app.&lt;/p&gt;

&lt;h1&gt;ZSH &amp; Oh-my-zsh&lt;/h1&gt;

&lt;p&gt;The &lt;a href="http://www.zsh.org/"&gt;ZSH&lt;/a&gt; is a shell designed for interactive use, although it is also a powerful scripting language, it will be installed along with [oh-my-zsh)[https://github.com/robbyrussell/oh-my-zsh] which is a framework for managing your ZSH configuration, theres a lot of plugins, which adds tab-completion for ex, git homebrew, and a lot of terminal themes to spice it all up with.&lt;/p&gt;

&lt;p&gt;First we need to install wget and a never version of zsh, to download and execute the oh-my-zsg install script, it’s so easy done with homebrew.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;brew install wget zsh
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Fire this command to install oh-my-zsh&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;wget --no-check-certificate &lt;a href="https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh"&gt;https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh&lt;/a&gt; -O - | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;h1&gt;MacVim&lt;/h1&gt;

&lt;p&gt;To get &lt;a href="http://code.google.com/p/macvim/"&gt;Macvim&lt;/a&gt; installed we again simply use Homebrew, we add a little something to homebrew, to learn a new sub command.&lt;/p&gt;

&lt;p&gt;We want to search the homebrew library to see if MacVim is available to install.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;brew search macvim
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And we’re getting:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ brew search macvim
macvim
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Which means that it’s available, and ready for installation&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;brew install macvim
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You can now start MacVim from your terminal with&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mvim FILE
&lt;/code&gt;&lt;/pre&gt;

&lt;h1&gt;Named&lt;/h1&gt;

&lt;p&gt;&lt;a href="http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds4/named.htm"&gt;named&lt;/a&gt; is a domain name daemon, which can act as a local dns server.&lt;/p&gt;

&lt;p&gt;We need to set up named (bind), to handle wildcard DNS for our development TLF (top level domain) and using OpenDNS as secondary DNS lookup for all other requests.&lt;/p&gt;

&lt;p&gt;Everything is set up in your terminal as &lt;strong&gt;root&lt;/strong&gt; user.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo -i
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To be sure, backup the original configuration&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cp /etc/named.conf /etc/named.conf.orig
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create a keyfile which is read by named on startup.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;rndc-confgen -a
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Edit the named.conf file&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;vim /etc/named.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Somewhere inside options {} block, add OpenDNS as DNS forwarder.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;forwarders {
    208.67.222.222 // OpenDNS primary
    208.67.220.220 // OpenDNS secondary
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Add the following before the “0.0.127.in-addr.arpa” IN { zone&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;zone "dev" IN {
   type master;
   file "dev.zone";
};
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Save your named.conf file [esc]:wq&lt;/p&gt;

&lt;p&gt;Now we need to create the dev.zone file, so bind (named) could read the dns configuration for that tld.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;vim /var/named/dev.zone
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And paste this block into that file.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;dev. 7200    IN       SOA     dev. root.dev. (
              2008031801 ;    Serial
              15      ; Refresh every 15 minutes
              3600    ; Retry every hour
              3000000 ; Expire after a month+
              86400 ) ; Minimum ttl of 1 day
              IN      NS      dev.
              IN      MX      10 dev.

              IN      A       127.0.0.1
*.dev.        IN      A       127.0.0.1
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Save the file, agagin, with [esc]:wq&lt;/p&gt;

&lt;p&gt;Run the following commands to ensure configuration is ok&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;named-checkconf /etc/named.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;named-checkzone dev /var/named/dev.zone
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now set your computer dns to use localhost as primary dns handler, in System Preferences -&gt; Network for both Wireless and Ethernet connections by clicking Advanced and selecting the DNS tab, and add 127.0.0.1.&lt;/p&gt;

&lt;p&gt;Set Bind (named) to load when computer starts, and load it now.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;launchctl load -w /System/Library/LaunchDaemons/org.isc.named.plist
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Let’s flush the internal DNS cache first,&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo dscacheutil -flushcache
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Lets test that everything is working as planned.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;dig test.dev
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Should return something like&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ dig test.dev

; &lt;&lt;&gt;&gt; DiG 9.7.3-P3 &lt;&lt;&gt;&gt; test.dev
;; global options: +cmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 4384
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;test.dev.          IN  A

;; ANSWER SECTION:
test.dev.       7200    IN  A   127.0.0.1

;; AUTHORITY SECTION:
dev.            7200    IN  NS  dev.

;; ADDITIONAL SECTION:
dev.            7200    IN  A   127.0.0.1

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Dec 18 10:51:34 2011
;; MSG SIZE  rcvd: 72
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And we can see it’s resolved as a local domain. All ok.&lt;/p&gt;

&lt;p&gt;And a ping test,  should return&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ ping test.dev                                                                                                  

PING test.dev (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.041 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.110 ms
&lt;/code&gt;&lt;/pre&gt;

&lt;h1&gt;Nginx&lt;/h1&gt;

&lt;p&gt;&lt;a href="http://wiki.nginx.org/Main"&gt;Nginx&lt;/a&gt; is an awesome alternative to Apache Web Server, more lightweight, very customizable, and thats for good use with this setup.&lt;/p&gt;

&lt;p&gt;This Nginx vhost configuration is mostly for Drupal installations, but works with other frameworks and homemade stuff, almost out-of-the-box, but changes to the vhost.conf file, depending on configration in your .htaccess file used in Apache, can appear.&lt;/p&gt;

&lt;p&gt;First of all we need to ensure that Apache wont be started when booting.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now we need nginx to be installed via Homebrew.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;brew install nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;When nginx is compiled, we need to backup the original nginx.conf file.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cp /usr/local/etc/nginx/nginx.conf /usr/local/etc/nginx/nginx.conf.orig
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Open and configure your nginx.conf file to your needs.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;vim /usr/local/etc/nginx/nginx.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Look for user in the file, and make it look like&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;user YOUR_NAME staff;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Save the file [esc]:wq&lt;/p&gt;

&lt;p&gt;Create the nginx log directory, to make it show up in Console.app&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo mkdir /var/log/nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;Configure nginx for wildcard local domains.&lt;/h2&gt;

&lt;p&gt;Edit your nginx.conf&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;vim /usr/local/etc/nginx/nginx.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And add the following line in the http {} section just before the closing }&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;include /usr/local/etc/nginx/vhosts.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Save and exit the file [esc]:wq&lt;/p&gt;

&lt;p&gt;Create the vhosts.conf file, in this example it’s confiugred for drupal development, but will work for the most.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;vim /usr/local/etc/nginx/vhosts.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And paste the following into the file.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;server {
    listen 80 default;
    server_name _;
    index  index.php;

    if ($host ~* "^(.+)+.dev$") {
        set $site $1;
    }

    root   /Users/[USERNAME]/www/$site;

    access_log  /var/log/nginx/$host.access.log combined;
    error_log   /var/log/nginx/$host.error.log crit;

    add_header X-Frame-Options SAMEORIGIN;

    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    location /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    location = /backup {
        deny all;
    }

    location ~ \..*/.*\.php$ {
        return 403;
    }

    location / {
        try_files $uri $uri/ @rewrite;
    }

    location @rewrite {
        rewrite ^/(.*)$ /index.php?q=$1;
    }

    location ~ \.php$ {
        fastcgi_read_timeout 600;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_pass   127.0.0.1:9000;
    }

    # Fighting with ImageCache? This little gem is amazing.
    location ~ ^/sites/.*/files/styles/ {
        try_files $uri $uri/ @rewrite;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create a www folder in your homedir&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mkdir ~/www
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Restart your nginx&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo nginx -s reload
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And now you should be able to create new local sites without configurering and restarting nginx everytime.&lt;/p&gt;

&lt;h1&gt;PHP 5.3.8&lt;/h1&gt;

&lt;p&gt;The version of PHP in OSX Lion is upgraded to 5.3.6, but we will install &lt;a href="http://php.net"&gt;PHP 5.3.8&lt;/a&gt; with Homebrew, and with that it would be upgradeable, when new and awesome releases appear.&lt;/p&gt;

&lt;p&gt;Now for the PHP 5.3.6 -&gt; 5.3.8 upgrade. We will start by backing up the originally installed php.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo mv /usr/bin/php /usr/bin/php.orig
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Run homebrew installer with the php brew file from the alternative brew directory.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;brew install /usr/local/LibraryAlt/duplicates/php.rb --with-mysql --with-fpm
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;When php is compiled and ready, create your own php-fpm.conf file.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cp /usr/local/Cellar/php/5.3.8/etc/php-fpm.conf.default /usr/local/Cellar/php/5.3.8/etc/php-fpm.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create symbolic link for it in /usr/local/etc/&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo ln -s /usr/local/Cellar/php/5.3.8/etc/php-fpm.conf /usr/local/etc/php-fpm.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Edit the file&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;vim /usr/local/etc/php-fpm.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Add the following line below ;pid = run/php-fpm.pid&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;pid = /usr/local/var/run/php-fpm.pid
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Update the user and group section as follows&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;user = _www
group = _www
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Remove the ; from the start of the following lines then save using Ctrl+X then Y&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;pm.start_servers = 3
pm.min_spare_servers = 3
pm.max_spare_servers = 5
pm.max_requests = 500
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create directory for php-fpm log&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mkdir /usr/local/Cellar/php/5.3.8/var/log/
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and the file&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;touch /usr/local/Cellar/php/5.3.8/var/log/php-fpm.log
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Make our log file visible in Console app&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo ln -s /usr/local/Cellar/php/5.3.8/var/log/php-fpm.log /var/log/nginx/php-fpm.log
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Set your timezone in php.ini&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;vim /usr/local/etc/php.ini
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Look for ;date.timezone, and add following below&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;date.timezone = Europe/Copenhagen
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And update the memory_limit&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;memory_limit = 256M
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Save the file [esc]:wq&lt;/p&gt;

&lt;h1&gt;MariaDB&lt;/h1&gt;

&lt;p&gt;&lt;a href="http://mariadb.org/"&gt;MariaDB&lt;/a&gt; is an alternative to MySQL, it’s created and maintained by some original authors of MySQL.&lt;/p&gt;

&lt;p&gt;Install MariaDB from terminal and with homebrew&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;brew install mariadb
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After installation is done, unset TMPDIR&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;unset TPMDIR
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then install database&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mysql_install_db
&lt;/code&gt;&lt;/pre&gt;

&lt;h1&gt;Make all of the services (nginx, php-fpm and MariaDB run on boot)&lt;/h1&gt;

&lt;p&gt;Start iterm2 and become root.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo -i
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Download the LaunchDaemon to load nginx on boot&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;curl &lt;a href="http://realityloop.com/sites/realityloop.com/files/uploads/nginx.plist_.txt"&gt;http://realityloop.com/sites/realityloop.com/files/uploads/nginx.plist_.txt&lt;/a&gt; &gt; /System/Library/LaunchDaemons/org.homebrew.nginx.plist
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Download LaunchDaemon for php-fpm&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;curl &lt;a href="http://realityloop.com/sites/realityloop.com/files/uploads/php-fpm.plist_.txt"&gt;http://realityloop.com/sites/realityloop.com/files/uploads/php-fpm.plist_.txt&lt;/a&gt; &gt; /System/Library/LaunchDaemons/org.homebrew.php-fpm.plist
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Copy the LaunchDaemon to load MariaDB on boot into place&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cp /usr/local/Cellar/mariadb/5.2.8/com.mysql.mysqld.plist /System/Library/LaunchDaemons/com.mysql.mysqld.plist
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now it’s time to reboot your computer, to make sure everything is working.&lt;/p&gt;

&lt;p&gt;After reboot, open iterm and run this command.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo /usr/local/Cellar/mariadb/5.2.8/bin/mysql_secure_installation
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Answer the prompts as follows, replace [password] with a password of your own chosing&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Enter current password for root (enter for none): [Enter]
Set root password? [Y/n] y
New password: [password]
Re-enter new password: [password]
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
&lt;/code&gt;&lt;/pre&gt;

&lt;h1&gt;Real life example&lt;/h1&gt;

&lt;p&gt;Now for an example by installing a drupal site with a few tools.&lt;/p&gt;

&lt;p&gt;Download &lt;a href="http://drupal.org/project/drush"&gt;drush&lt;/a&gt; which is a command line tool for Drupal, this will install &lt;a href="http://drupal.org/project/drush_make"&gt;drush_make&lt;/a&gt; as well.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;brew install drush
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Go to ~/www&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cd ~/www
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And download Drupal core.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;drush dl drupal --drupal-project-rename=drupal7
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Open your favorite browser and go to&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;a href="http://drupal7.dev"&gt;http://drupal7.dev&lt;/a&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You should see the installation page of Drupal. We could install drupal with a oneliner.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cd ~/www/drupal7
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And we use drush to install with default settings.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;drush site-install --db-url=mysql://root:PASSWORD@localhost/drupal7
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And if you visit&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;a href="http://drupal7.dev"&gt;http://drupal7.dev&lt;/a&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;you will see a default installed drupal site, and you will be able to login with user: admin, pass: admin.&lt;/p&gt;

&lt;h2&gt;Another site&lt;/h2&gt;

&lt;p&gt;We’ll just try another site&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cd ~/www/
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Install a drupal 6.x site&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;drush dl drupal-6.x --drupal-project-rename=drupal6
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And again use drush site-install to install the site.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;drush site-install --db-url=mysql://root:PASSWORD@localhost/drupal6
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And visit&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;a href="http://drupal6.dev"&gt;http://drupal6.dev&lt;/a&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You will see an installed drupal 6 site.&lt;/p&gt;

&lt;p&gt;** And everything without reloading Nginx **  - &lt;strong&gt;MAGIC&lt;/strong&gt;&lt;/p&gt;

&lt;h1&gt;Linux note&lt;/h1&gt;

&lt;p&gt;As a little note, it would quite easy install on a unix based platform as well, skip the homebrew parts and install through your preferred install util (apt-get or whatever).&lt;/p&gt;

&lt;p&gt;The paths would in most cases deviate a bit from the ones on OSX.&lt;/p&gt;

&lt;p&gt;I just tested it on a Ubuntu 10.04, and took me around 10 mins to install from this guide.&lt;/p&gt;</description><link>http://ramlev.dk/post/14399852496</link><guid>http://ramlev.dk/post/14399852496</guid><pubDate>Sun, 18 Dec 2011 07:18:00 -0500</pubDate><category>drupal</category><category>drush</category><category>git</category><category>homebrew</category><category>iterm2</category><category>macvim</category><category>mariadb</category><category>oh-my-zsh</category><category>zsh</category><category>linux</category></item><item><title>Drush command, show some module info.</title><description>&lt;p&gt;Was tired of doing a &lt;/p&gt;

&lt;p&gt;&lt;script src="https://gist.github.com/1355768.js?file=gistfile1.txt"&gt;&lt;/script&gt;&lt;/p&gt;

&lt;p&gt;Every time i have to know which version is installed of a drupal module or theme. So i made a (very beta) little custom drush command, which shows some info about the chosen module.&lt;/p&gt;

&lt;p&gt;&lt;script src="https://gist.github.com/1355779.js?file=gistfile1.txt"&gt;&lt;/script&gt;&lt;b&gt;Outputs&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;script src="https://gist.github.com/1355782.js"&gt; &lt;/script&gt;&lt;b&gt;Download&lt;/b&gt;&lt;br/&gt;&lt;a href="https://gist.github.com/1354686"&gt;&lt;a href="https://gist.github.com/1354686"&gt;https://gist.github.com/1354686&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;br/&gt;
See comment in the file.&lt;/p&gt;</description><link>http://ramlev.dk/post/12605761504</link><guid>http://ramlev.dk/post/12605761504</guid><pubDate>Thu, 10 Nov 2011 14:05:18 -0500</pubDate></item><item><title>Coder tip of the day</title><description>&lt;p&gt;In the &lt;a href="http://www.alfredapp.com/"&gt;Alfred.App&lt;/a&gt; 0.9 release it’s now possible to execute shell commands (Thank you).
For that i have made a few custom commands which makes my day a lot easier.

The most important for now is my &lt;a href="http://en.wikipedia.org/wiki/Lorem_ipsum"&gt;Lorem Ipsum&lt;/a&gt; fetcher. Which i can execute by accessing Alfred.App and type “lorem” + [Enter] - and a random lorem ipsum paragraph is sent to my clipboard.
&lt;img src="http://media.tumblr.com/tumblr_lkzchkBXIB1qagf85.png"/&gt;

The command is:

&lt;pre&gt;
curl --silent &lt;a href="http://loripsum.net/api/1/medium"&gt;http://loripsum.net/api/1/medium&lt;/a&gt; | pbcopy
&lt;/pre&gt;

And remember to tick the ‘silent’ then it should be all good.&lt;/p&gt;</description><link>http://ramlev.dk/post/5359449523</link><guid>http://ramlev.dk/post/5359449523</guid><pubDate>Tue, 10 May 2011 08:41:12 -0400</pubDate><category>osx</category><category>alfredapp</category><category>shell</category><category>tips</category></item><item><title>F.lux App</title><description>&lt;p&gt;&lt;a href="http://stereopsis.com/flux/"&gt;F.lux&lt;/a&gt; makes the color of your computer’s display adapt to the time of day, warm at night and like sunlight during the day.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://stereopsis.com/flux/"&gt;&lt;img src="http://media.tumblr.com/tumblr_lkfits02nw1qagf85.png"/&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://ramlev.dk/post/5047791459</link><guid>http://ramlev.dk/post/5047791459</guid><pubDate>Fri, 29 Apr 2011 15:44:00 -0400</pubDate><category>osx</category><category>app</category></item><item><title>Vagrant</title><description>&lt;a href="http://vagrantup.com/"&gt;Vagrant&lt;/a&gt;: &lt;p&gt;Vagrant is a tool for building and distributing virtualized development environments.&lt;/p&gt;

&lt;p&gt;By providing automated creation and provisioning of virtual machines using Oracle’s VirtualBox, Vagrant provides the tools to create and configure lightweight, reproducible, and portable virtual environments.&lt;/p&gt;</description><link>http://ramlev.dk/post/2733766459</link><guid>http://ramlev.dk/post/2733766459</guid><pubDate>Thu, 13 Jan 2011 16:50:18 -0500</pubDate><category>vagrant</category><category>webserver</category></item><item><title>Happy newyear internet</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_leadhjjjUw1qb23gio1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Happy newyear internet&lt;/p&gt;</description><link>http://ramlev.dk/post/2540570698</link><guid>http://ramlev.dk/post/2540570698</guid><pubDate>Fri, 31 Dec 2010 04:39:19 -0500</pubDate></item><item><title>minimalmac:

Reeder for Mac – Public Beta
Even though it is...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lcq9bcd5kh1qzjb7co1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://minimalmac.com/post/2054932176/reeder-for-mac-public-beta-even-though-it-is" class="tumblr_blog"&gt;minimalmac&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://madeatgloria.com/brewery"&gt;Reeder for Mac – Public Beta&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Even though it is still in beta, if you have need for any RSS reader on the Mac, I’d check out this one. It’s as wonderful as it’s iPhone and iPad counterparts and the first non-Apple app that I’m aware of to take on the new design direction Mac OS 10.7 (Lion) is heading in.&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://ramlev.dk/post/2059087272</link><guid>http://ramlev.dk/post/2059087272</guid><pubDate>Wed, 01 Dec 2010 06:40:18 -0500</pubDate></item><item><title>sparrowmail:

Sparrow Beta 5

Labels! Here they are! 
Thanks for...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lbqev9NN4Z1qbptnpo1_r1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://sparrowmail.tumblr.com/post/1547251939/beta5" class="tumblr_blog"&gt;sparrowmail&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;Sparrow Beta 5&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Labels! Here they are! &lt;/p&gt;
&lt;p&gt;Thanks for your patience. &lt;/p&gt;
&lt;p&gt;Label implementation on Beta 5 is really basic but be sure that we will add a lot more useful features in the next release.&lt;/p&gt;
&lt;p&gt;Sparrow Beta 5 will begin a new full sync between your gmail account and your Mac. Labels will be the last thing to sync so don’t panic if they don’t show up right away. &lt;/p&gt;
&lt;p&gt;The app should be syncing for some time at first launch. We had to do this in order to improve Sparrow’s behavior and overhaul performance.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;New features&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Labels&lt;/li&gt;
&lt;li&gt;Quicklook on attachments&lt;/li&gt;
&lt;li&gt;Save Cc/Bcc state&lt;/li&gt;
&lt;li&gt;Click on a sidebar icon (inbox, favorite…) get you to the top of the list&lt;/li&gt;
&lt;li&gt;‘Move to inbox’ from archive and search sections&lt;/li&gt;
&lt;li&gt;Memorize main window size&lt;/li&gt;
&lt;li&gt;Attachments saved in ‘downloads’ folder&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Shortcuts&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Cmd + Enter for send&lt;/li&gt;
&lt;li&gt;Esc to close the window&lt;/li&gt;
&lt;li&gt;Space to open/close a message in the message list&lt;/li&gt;
&lt;li&gt;Open link in background (cmd + click)&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;General improvements&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;‘Me’ in conversations&lt;/li&gt;
&lt;li&gt;CPU/ memory usage&lt;/li&gt;
&lt;li&gt;Scroll speed&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;UI&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;New toolbar&lt;/li&gt;
&lt;li&gt;New message list buttons&lt;/li&gt;
&lt;li&gt;New sounds&lt;/li&gt;
&lt;li&gt;Label and alias icons in preferences&lt;/li&gt;
&lt;li&gt;New selected cell color&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Bug fix&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Single account alias&lt;/li&gt;
&lt;li&gt;Avatar transparency&lt;/li&gt;
&lt;li&gt;Email auto-scrolling to the bottom bug&lt;/li&gt;
&lt;li&gt;Sending issues&lt;/li&gt;
&lt;li&gt;Removing account crash&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;We’ve done a lot more than what you see in Beta 5. We’ve got to surprise you with Sparrow 1.0.&lt;/p&gt;
&lt;p&gt;Beta 6 will be the last Beta. After this, Sparrow will go 1.0.&lt;/p&gt;
&lt;p&gt;Thanks for following.&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://ramlev.dk/post/1550542861</link><guid>http://ramlev.dk/post/1550542861</guid><pubDate>Fri, 12 Nov 2010 02:11:58 -0500</pubDate><category>osx</category><category>apps</category></item><item><title>Awesome Mac OSX tool - Alfred.app</title><description>&lt;p&gt;I have in my ~3 years with a mac, tried alot of different applaunchers, from osx’s internal &lt;a href="http://www.apple.com/macosx/what-is-macosx/spotlight.html"&gt;spotlight&lt;/a&gt;, over &lt;a href="http://code.google.com/p/qsb-mac/"&gt;Google Quick Search Bar&lt;/a&gt; and &lt;a href="http://docs.blacktree.com/quicksilver/quicksilver"&gt;Quicksilver&lt;/a&gt;.&lt;br/&gt;
QSB and Quicksilver have a lot of features, but neither of them is as well designed as the brand new &lt;a href="http://www.alfredapp.com/"&gt;Alfred.app&lt;/a&gt; which is build by &lt;a href="http://www.alfredapp.com/#meet-the-team"&gt;Andrew Pepperrell&lt;/a&gt;.&lt;/p&gt;

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

&lt;p&gt;AlfredApp is just launched in a .7beta release, which is so packed with features:&lt;/p&gt;

&lt;p&gt;The app also contains a ‘&lt;a href="http://www.alfredapp.com/powerpack/"&gt;Powerpack&lt;/a&gt;’ feature, which could be enabled if you buy the app (£12) (all 0.x and 1.x updates will then be free). When this feature is enabled you are getting a lot of features - with alot more to come.&lt;/p&gt;

&lt;p&gt;* Launch apps with a few clicks&lt;br/&gt;
* Search the web (Google, Amazon, Wikipedia etc.)&lt;br/&gt;
* Open or find a document, image or other file on your filesystem, in your favorite app (press tab and see more info)&lt;br/&gt;
* Do calculations&lt;br/&gt;
* Spellcheck your writings&lt;br/&gt;
* Manage your files (open, delete, copy, move, email etc)&lt;br/&gt;
* Control iTunes - see Covers, search, play, pause etc.&lt;br/&gt;
* Make your own custom shortcuts (searches, post to twitter, open websites etc.)&lt;/p&gt;

&lt;p&gt;Upcoming features:&lt;br/&gt;
* Clipboard history&lt;br/&gt;
* AppleScript actions&lt;br/&gt;
* Address book integration&lt;br/&gt;
* Web service integration&lt;br/&gt;
* 3rd party integration&lt;/p&gt;

&lt;p&gt;The app is so amazing, fast, no delays when browsing and very nice designed.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://media.tumblr.com/tumblr_l7tnsydCHM1qagf85.png"/&gt;&lt;img src="http://media.tumblr.com/tumblr_l7tnt7TBAN1qagf85.png"/&gt;&lt;img src="http://media.tumblr.com/tumblr_l7tntgUctG1qagf85.png"/&gt;&lt;img src="http://media.tumblr.com/tumblr_l7tntqzVlw1qagf85.png"/&gt;&lt;img src="http://media.tumblr.com/tumblr_l7tnummhT01qagf85.png"/&gt;&lt;/p&gt;</description><link>http://ramlev.dk/post/1020680848</link><guid>http://ramlev.dk/post/1020680848</guid><pubDate>Fri, 27 Aug 2010 13:50:47 -0400</pubDate><category>osx</category><category>apps</category><category>tips</category></item><item><title>Set your screensaver as background in OSX</title><description>&lt;p&gt;Have you ever wanted to set a screensaver as your desktop background? Well that’s a horrible idea for more reasons than I care to list. However, it turns out that it’s perfectly possible. Just use the following command in Terminal: &lt;/p&gt;

&lt;p&gt;&lt;script src="http://gist.github.com/483327.js?file=screensaver_background.sh"&gt;&lt;/script&gt;&lt;/p&gt;</description><link>http://ramlev.dk/post/837219064</link><guid>http://ramlev.dk/post/837219064</guid><pubDate>Tue, 20 Jul 2010 14:20:44 -0400</pubDate><category>osx</category><category>tips</category></item><item><title>Rest In Peace - Ronnie James Dio passed away at 7:45am 16th May...</title><description>&lt;iframe width="400" height="300" src="http://www.youtube.com/embed/LmSt1oEIshE?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Rest In Peace - Ronnie James Dio passed away at 7:45am 16th May 2010.&lt;/p&gt;</description><link>http://ramlev.dk/post/604851418</link><guid>http://ramlev.dk/post/604851418</guid><pubDate>Sun, 16 May 2010 17:34:51 -0400</pubDate><category>music</category><category>legends never die</category></item><item><title>Google Analytics with new features</title><description>&lt;p&gt;The latest version of the Analytics tracking code offers an improved way to track website visitors with Google Analytics. It takes advantage of browser support for asynchronous JavaScript to enhance the speed in which the tracking code is loaded. With this version of the tracking code, you can also place the Analytics snippet higher in the page without delaying subsequent content from rendering. &lt;/p&gt;

&lt;p&gt;1. Place the code as the last bit of the &lt;head&gt; section of your page&lt;br/&gt;
2. Modify the UA-XXXXX-X with your key.&lt;/p&gt;

&lt;p&gt;&lt;script src="http://gist.github.com/402446.js?file=Google_Analytics_Asynchronous_Code.js"&gt;&lt;/script&gt;&lt;/p&gt;</description><link>http://ramlev.dk/post/601933755</link><guid>http://ramlev.dk/post/601933755</guid><pubDate>Sat, 15 May 2010 18:24:36 -0400</pubDate><category>javascript</category><category>google analytics</category></item><item><title>Trentemoller XLR8R Mix</title><description>&lt;a href="http://www.berri.dk/2010/05/11/trentemoller-mixtape/"&gt;Trentemoller XLR8R Mix&lt;/a&gt;</description><link>http://ramlev.dk/post/590011213</link><guid>http://ramlev.dk/post/590011213</guid><pubDate>Tue, 11 May 2010 13:30:08 -0400</pubDate></item></channel></rss>

