OS X Lion: Disable internal laptop display when external display is attached

A real lifesaver. Why would you not want to be able to have your Macbook open for better airflow while not using it’s built-in display?

From macworld.com:

Before Lion it was possible to run an external display off a laptop and have the internal display disabled, even if you opened the lid. This can be useful for a myriad of reason including energy saving and better wifi reception. With Lion the internal display will always turn on when the lid is opened, even if there is already an external display connected.

A solution was posted on the Apple support forums by user chenga.8.

To go back to pre-Lion behaviour enter the following command in Terminal:

sudo nvram boot-args=”iog=0x0”

To undo this change type type the following command or zap the PRAM (press Cmd+Opt+p+r at power up):

sudo nvram -d boot-args

This was posted 4 months ago. It has 1 note.

Using Protocol Relative URLs to Switch between HTTP and HTTPS

A great piece on using protocol relative url-s to include those 3rd party resources while not compromising the page load time for your site.

http://blog.httpwatch.com/2010/02/10/using-protocol-relative-urls-to-switch-between-http-and-https/

This was posted 4 months ago. It has 30 notes.

Wordpress plugin development

It’s time to take on writing my first Wordpress plugin. The task is simple, a 25 questions survey with relatively easy calculations for the results. Possibly some integration with iContact api.

I know, it should be easier to just install a plugin, but after approx. an hour of research i found only reasons for not using them. They were either a) not doing what i wanted b) last maintained 4 years ago and c) often overly complex for my needs. Also i’ve been wanting to write my own plugin for a while now.

Since i have no experience in writing wp plugins i guess this is as good a place to start as any: Plugin API documentation on Wordpress Codex.

This was posted 1 year ago. It has 3 notes.
userflow:

UXd, IA, UI, IXd ?

userflow:

UXd, IA, UI, IXd ?

This was posted 1 year ago. It has 15 notes. .
userflow:

Ten Principles Of Good Design. The principles were written in 1995, and the team at Inksie went out to illustrate these principles and put them into today’s context. 

userflow:

Ten Principles Of Good Design. 
The principles were written in 1995, and the team at Inksie went out to illustrate these principles and put them into today’s context. 

This was posted 1 year ago. It has 7 notes. .

Programming Amazon EC2

O’Reilly Media released a new book called “Programming Amazon EC2”. It’s covering everything you need for creating your application using the AWS infrastructure. Mostly focused on EC2 it seems though.

It’s also the deal of the day on O’Reilly today so use coupon code “DDPAZ” to get 50% off and you get a final price of $13.99 for the e-book.

I did get myself the e-book version (i like Kindle). Hopefully it will give me a kickstart in launching one of my upcoming products on Amazon’s services. I’m thinking EC2, S3, CloudFront?

You can get your copy of the book here (not an affiliate link): http://oreilly.com/catalog/9781449393687

This was posted 1 year ago. It has 6 notes.

SVN revert

Why you can’t just simply revert to a previous revision in SVN is beyond me. In any case, here’s a good tip from Johan, on how to “unmerge” the changes from specific revision.

svn merge -c X SOURCE merges commit X from SOURCE repository to working copy. If X is negative it will be regarded as an inverse merge and the commit removed instead of added.

svn merge -c -34 .

So that basically reverts revision 34 in your working copy.

Maybe there’s a better way but this seems to do the trick.

This was posted 1 year ago. It has 2 notes.

Posting to Tumblr from TextMate

Now it seems that i got it working - this post is written in TextMate and published to Tumblr using a custom command in Markdown bundle and the tumblr-rb gem.

The custom command for TextMate is very basic authentication:

tumblr -a email:password

Not the most secure solutions, but i’ll work on that another day perhaps. Another option would be to create a dotfile and post with —credentials flag.

Big thanks to Tim Gourley for this solution.

This was posted 1 year ago. It has 10 notes.

Excluding internal traffic from Google Analytics using cookies

Apparently with google’s asynchronous tracking code it’s not that easy to use the “exclude traffic by cookie” as it was before. Google’s offical analytics help is just giving plain wrong instructions as of 03/02/2010.

So i found a better solution. Here are very detailed instructions on how to properly set the cookie.

This was posted 1 year ago. It has 0 notes.

Hacked

One of my wp sites got hacked today by russians apparently (russian comments in php). Must take better care of updating wp.

This was posted 1 year ago. It has 0 notes.