January 2012
6 posts
2 tags
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.
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...
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...
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...
December 2011
2 posts
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...
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.
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...
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.
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.
December 2010
2 posts
November 2010
1 post
2 tags
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...
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:
May 2010
3 posts
2 tags
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....
Trentemoller XLR8R Mix →
April 2010
7 posts
3 tags
How to calculate date quarter in php
2 tags
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...
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.
3 tags
3 tags
Customize file input field via css
3 tags
jQuery - Check if a field is visible
March 2010
3 posts
2 tags
February 2010
3 posts
1 tag
1 tag
2 tags