Ultimate Web Tips

your Wordpress, jQuery, PHP, MySQL, Linux and CSS guide to a successful website
Read more:

use WordPress Thickbox native supportThickbox is as jQuery plugin that WordPress use as it’s main popup window or modal view. It’s already built-in in WordPress so why not use that in front end. No need to download or import any extra files.
More

Make custom columns sortableWordPress has had the ability since a long time ago to add custom fields to posts. Also called as meta-data. It’s also possible to add these values to your table list and make them sortable.
More

February 14th, 2012

Connect with a public key to SSH with PHP

No Comments, PHP, by Joakim Ling.

Connect with a public SSH keyNot a lot of people knows that PHP supports SSH. I use it to execute remote commands, auto configure of web server configurations etc.

If you need to SSH to a server that only accepts a public key, the connection procedures get a bit more complicated.
More

February 13th, 2012

Style HTML5 placeholder color with CSS

No Comments, CSS, by Joakim Ling.

Placeholder CSS stylingFor now this is only possible in Webkit and Mozilla browsers, the discussion about best implementation is still an ongoing project.

You’ll have to use 2 rules, as the standards for this is not been set yet.
More

IPv6 when targeting AsiaFor a long time we all have known that IPv4 limitations has come to an end. In the western world we are still heavily depending on IPv4 in a traditional way. However when it comes to younger and bigger Internet nations such as China and India, relaying on IPv4 is a disaster.
More

February 9th, 2012

Use ssh-copy-id on a different port

No Comments, Linux, by Joakim Ling.

Copy ssh-copy-id different portssh-copy-id is a script that uses ssh to log into a remote machine and install your public key. I recently had to do this on a server that had ssh on a different port. Normally as you do “-p 6000″ but in this case a bit tricky
More

Auto scaling with Amazon EC2 ELBUsing the Amazon Web services is a modern way to have your environment in the Cloud. It supports load balancing between your instances and thanks to Auto Scaling you’ll never need to pay for more than you use.

Basically the Auto Scaling launches additional instances to meet your demand, usually with help of a CPU alarm. Later removes them when not needed any more.
More

WP Easy Backup“WP Easy Backup” is a WordPress plugin that will create a database dump and zip all your media, theme and plugin files.
More

Sudo echo to file with teeI wasted a good few hours trying to find a good solution on how to save an echoed string with sudo. I tried “sudo echo ..” and lots of different combinations before I made it work.
More

Get Custom TaxonomyIf you’ve registered a custom taxonomy it’s a bit different to get data from than how you’d normally do for categories.
More