Archive for September, 2008

Embed Images into your PHP Code

2 comments

While troubleshooting a Wordpress plugin earlier today I discovered a neat little trick with PHP.  This particular Wordpress plugin (Brians Threaded Comments) has several tiny images it uses.  Rather than distributing the images as seperate files, the author has written them directly into his script!  How’s he do it?

Read the rest of this entry »

September 27th, 2008 at 2:01 pm  

Posted in Discoveries, PHP

Beautiful Registration Page Design

no comments

I’ve been looking into DNSSEC since reading an article on Slashdot about irs.gov beginning to support the protocol.  Surfing around this morning I stumbled upon an excellent article over at the Matasano Security Blog.  Great reading!

Anyway, the blog uses a service called Disqus to let you log in and leave comments, so obviously, being a bit of a nut for blogs and blog related services, I signed up.  And let me tell you, they have one of the best designed signup pages/processes I’ve ever seen!  I just had to share it.

Read the rest of this entry »

September 25th, 2008 at 10:08 am  

Posted in DNS, Design

MySQL Database Not Replicating

2 comments

Setting up a MySQL replication the other day, I came across a little gotcha with the config file on the slave.  Took me several minutes of Googling to find the answer, hopefully this helps someone find it a bit quicker.

The issue is with specifying which databases you want the slave to be replicating.  

Read the rest of this entry »

September 19th, 2008 at 11:04 am  

Posted in Databases, Discoveries

Recovering a Crashed MySQL Table

4 comments

Tonight I was attempting a mysqldump on a production database I deal with, and got a weird error message.  The dump halted and gave me a message…

mysqldump: Got error: 144: Table ‘./DBNAME/TABLENAME’ is marked as crashed and last (automatic?) repair failed when using LOCK TABLES 

It’s an easy fix.  Here’s how I did it.

Read the rest of this entry »

September 17th, 2008 at 9:08 pm  

Posted in Databases

Great Tool to Simplify Amazon EC2 Management

no comments

If you’ve read through a few of my articles, or worked with Amazon EC2 a bit, you are probably getting a sense that a lot of the administrative tasks need to be performed via command line.  Well, Amazon does offer alternative interfaces to interact with their services… SOAP and REST interfaces are exposed.  One tool that takes great advantage of these to ease EC2 management is ElasticFox.

Read the rest of this entry »

September 17th, 2008 at 9:18 am  

Posted in Discoveries, Servers