Make WordPress 3.4.2 show double hyphens

By default WordPress shortens two dashes or hyphens (–) to a single dash (-). Not very practical if you need to show a command that uses double-dash options such as the  “–all-databases” in the previous post about mysqldump over ssh.

I found that this behavior could be altered by editing wp-includes/formatting.php and removing the third element of each of the arrays on line 73 and 74 ($static_characters and $static_replacements).

 

Posted in Technical | Tagged | Leave a comment

Ubuntu 12.04 – Ruby on Rails Production

This looks to be a smooth guide for setting up a Ruby on Rails production environment on Ubuntu 12.04.

http://excid3.com/blog/setting-up-ubuntu-12-04-with-ruby-1-9-3-nginx-passenger-and-postgresql-or-mysql/

Posted in Technical | Tagged , , , | Leave a comment

The simplest of mysql backups

Running mysqldump over ssh is a simple way to copy or back up a mysql database from a remote system. Granted, it’s not suited for every scenario, but for a quick dump of the small database on my remote webserver, it’s just the thing.

Quick and dirty, got to love it 🙂

ssh -C webserver01 mysqldump -u root –password=mysecret –all-databases > mydumpfile.dmp

Posted in Technical | Tagged , | Leave a comment

Back on the air!

Doli Capax is back on the air, running off of a Virtual Private Server in Frankfurt. I’ve decided to give vps.net a try, after both VPSLand and CloudPeople have failed to create a virtual server within 24 hours of ordering.

The service from vps.net is just a little bit more expensive, and customer reviews I’ve seen around the net name them a better alternative when it comes to all of availability, performance and support.

I’ve yet to add back any old articles, but I’ll get to it somtime in the near future. Truth is, I’ve been unable to locate any backups of the site, so I need to physically retrieve the old server and get my stuff from there.

Posted in General | Tagged | Leave a comment