Let me start out by saying that the Amazon’s Route 53 (R53) is new… brand new. In fact, it’s still tagged with “beta” after the name. As well, know before hand that this method isn’t for the faint of heart; it’s very in depth and will take some time to get started. I assume at some point that a software developer will create an “app” that will set this up automatically – if not get you well on your way. For now, you’re stuck with my awesomeness…
Here’s how you get things rolling. I am using a Linux – CentOS 5.5 machine to do my work but this is NOT mandatory in any way. Others are using Windows machines and some have used Solaris to work with R53. As you will see, this all revolves around your Perl install and the modules that go with it. Continue Reading…
Every so often, I come across a situation where I need to use some commands that, because I haven’t used them in so long, I end up asking for Google’s help. I’m posting them here for easy retrieval:
- cPanel – force a backup instance to run: /scripts/cpbackup –force
- Linux – kill a specific running process (using “cpbackup” as an example) – 2 different methods you can use:
- ps aux | grep cpbackup
- returns something like “cpbackup 3486 0.0 0.1 4248 1432 ?”
- you type: kill 3486 (or whatever the process id is)
- pidof cpbackup
- returns something like “3486″
- you type: kill 3486 (or whatever the process id is)
I’m using Cent OS 5 here, so your mileage may vary.
This applies to both Windows Server 2003 and 2008, but you have to separately install this program from the CD/DVD for 2008 servers.
dnscmd your_server_name /clearcache
I created a short URL (ulh.us) that points back to localhost for those of you who want to develop web applications locally, without having to edit your hosts file. Specifically, using ULH will allow you to use sub-domains for various development purposes, as the wildcard DNS entry will handle anything you throw at it.
Let me know if you have any problems with it.
If you’re using the WordPress.com Stats plugin, you’ll notice that annoying “smiley face” at the bottom of your page. To remove this quickly, place this line of CSS code into your stylesheet:
img#wpstats { overflow: hidden; padding: 0px; margin: 0px; border: none; height: 0px; width: 0px; }
Don’t like how the WordPress Tag Cloud widget sizes the fonts for tags? It’s a rather easy change. Edit the file /wp-includes/category-template.php and find:
function wp_tag_cloud( $args = '' ) {
$defaults = array(
'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45,
'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC',
'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag', 'echo' => true
);
Notice the “smallest” (8) and “largest” (22) key’s and their respective values? Change those numbers to the font sizes you want and re-upload the file.