January 2012
6 posts
Jan 29th
2 tags
Jan 29th
My Vim configuration on GitHub.com
Since i have done a few blogposts (1, 2) about my Vim installation, I think it’s about time i show you guys my configuration. The project is on GitHub.
Jan 24th
5 tags
Vim and drupal code validation
I have been using the Syntastic 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 $ php -l FILENAME And present the error(s) in the statusbar, and with a little marker at the line(s). If you install the PHP_CodeSniffer via the pear installer, Syntastic automatic validates the code against the default code standards setup...
Jan 21st
1 note
6 tags
My Vim configuration and plugins
My primary editor for PHP/Drupal programming have been MacVim for years, and therefore my editor have been tweaked and customized to my needs, you can see my .vimrc file. I’m always ready for new plugins, new branches of existing repositories and to learn new. The installed version of my MacVim is the snapshot-64. Which is installed with Homebrew. First of all the colorscheme is very...
Jan 16th
2 notes
2 tags
CTRLP.vim
A fuzzy file, tag, recently used files finder plugin for the vim editor, which makes my day so more easy. I use to use the Command-T plugin, but found CTRLP.vim on The Changelog. The Command-T plugin is a quite more simple than CTRLP.vim, and needs ruby to be installed. But the major reason for changing is that CTRLP.vim is more advanced, and the features is Full support for Vim’s regexp as...
Jan 11th
December 2011
2 posts
Dec 29th
10 tags
OSX Lion as the awësome php developing environment
Make your OSX Lion a dream of a php dev environment This will be installed and configurered. Homebrew + Homebrew alternatives git Iterm2 zsh + oh-my-zsh Macvim named nginx Configure nginx for wildcard local domains. php 5.3.8 mariaDB Real life example Another site Linux note Homebrew Homebrew - as told on the website, The missing package manager for OSX, it’s the easiest...
Dec 18th
4 notes
November 2011
1 post
Drush command, show some module info.
Was tired of doing a 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. Outputs Download https://gist.github.com/1354686 Installation See comment in the file.
Nov 10th
May 2011
1 post
4 tags
Coder tip of the day
In the Alfred.App 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 Lorem Ipsum fetcher. Which i can execute by accessing Alfred.App and type “lorem” + [Enter] - and a random lorem ipsum paragraph is sent to my clipboard. The command is: curl...
May 10th
1 note
April 2011
1 post
2 tags
F.lux App
F.lux makes the color of your computer’s display adapt to the time of day, warm at night and like sunlight during the day.
Apr 29th
January 2011
1 post
2 tags
Vagrant →
Vagrant is a tool for building and distributing virtualized development environments. 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.
Jan 13th
2 notes
December 2010
2 posts
Dec 31st
Dec 1st
115 notes
November 2010
1 post
2 tags
Nov 12th
136 notes
August 2010
1 post
3 tags
Awesome Mac OSX tool - Alfred.app
I have in my ~3 years with a mac, tried alot of different applaunchers, from osx’s internal spotlight, over Google Quick Search Bar and Quicksilver. QSB and Quicksilver have a lot of features, but neither of them is as well designed as the brand new Alfred.app which is build by Andrew Pepperrell. AlfredApp is just launched in a .7beta release, which is so packed with features: The...
Aug 27th
July 2010
1 post
2 tags
Set your screensaver as background in OSX
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:
Jul 20th
May 2010
3 posts
2 tags
May 16th
2 tags
Google Analytics with new features
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....
May 15th
Trentemoller XLR8R Mix →
May 11th
April 2010
7 posts
3 tags
How to calculate date quarter in php
Apr 19th
2 tags
Apr 17th
2 tags
OSX Tip: Use Console.app to view cusom log files
I have been using my terminal to watch apache/php log files, but found out that the OSX app Console.app can do the work for you. The app is really missing the feature to add new log files, but there’s a few workarounds. First workaround 1. Start your Terminal.app 2. ln -s ~/Library/log/Apache /path/to/logfiles/ 3. Open Console.app 4. And you can see an “Apache” folder...
Apr 15th
2 tags
Making the switch
I’ve flirted with Tumblr for a while now and my WordPress have been updated too little. In an attempt to get blogging again, I’m making the switch.
Apr 14th
3 tags
Apr 14th
3 tags
Customize file input field via css
Apr 14th
3 tags
jQuery - Check if a field is visible
Apr 14th
1 note
March 2010
3 posts
Mar 14th
2 notes
Mar 8th
2 tags
Mar 4th
1 note
February 2010
3 posts
1 tag
Feb 20th
1 tag
Feb 19th
2 tags
Feb 16th