Stopped the twittertools plugin

I don’t know why but the twittertools plugin went crazy on me again yesterday.  I turned it off and deleted the rogue postings.  Sorry for the trouble and the spam to your RSS readers.

Posted under Twitter

This post was written by Michael Tougeron on January 20, 2009

Tags: ,

Twitter Updates for Week of Jan 12th, 2009

  • Watching some Robotech while waiting for WoLK to dl & install. #
  • ugh, i really need a better internet connection. 450 KB/s is not acceptable… #
  • Wait! The saints be praised! I just remembered the free 10 day trial in my inbox. woohoo! #
  • crude, just realized I need to buy Wrath of the Lich King in order to create a death knight. 🙁 so much for that plan tonight… #
  • Just got a haircut #
  • omg, why can’t they make a new movie?!? why all the remakes? http://tinyurl.com/7mal84 #
  • way to go Google! http://tinyurl.com/89blxn # Read More…

Posted under Twitter

This post was written by Michael Tougeron on January 19, 2009

Tags: ,

Validating HTML with tidy

If you ever have to do HTML validation or parsing in PHP the tidy extension is the way to do it! This extension lets you use the abilities of tidy in some pretty powerful ways. The extension, written by John Coggeshall, has been around for several years now. I can see how if someone just took a quick glance at it they could think it was nice, but not really something they need. How wrong they would be! If you take a few minutes and look under the hood, tidy is an extremely powerful tool. Not only can it format html to standards (what most people use it for), it can also be a powerful parser and validation tool.

When I’m dealing with user inputted data where I want to allow HTML I have two concerns. First, I don’t want to allow XSS (some xml parsers think <p kkk=”></p>” closes the <p> tag). Second, the user frequently enters invalid html (e.g., doesn’t close the <a> tag). Fortunately tidy can easily deal with both. The second issue is the easiest to solve by running tidy->cleanRepair() on the html. The first is taken care of by looping through the tidy nodes and rebuilding the html using a whitelist. More about how to do this after the break. Read More…

Posted under PHP, Security, Tips & Tricks, Web Development

This post was written by Michael Tougeron on January 15, 2009

Tags: , , , , ,

Twitter Updates for 2008-11-19

  • another day / another bad night’s sleep. I was paranoid that my eye was going to bleed again all night. #
  • yuck very gross. My eye just filled and started dripping blood. #
  • Probably shouldn’t be but I’m drinking Seghesio “Lumetta” Zinfandel. Pretty good. I really like the Zins from the Rockpile area. #
  • ack, my eye is itching like crazy right now #
  • time to ice my eye again. #
  • @JFP it isn’t so bad if you have a book or a movie to watch… in reply to JFP #
  • trying to play video games but my eye makes the screen awfully blurry. 🙁 #
  • trying to figure out what to do today. I’m home alone and bored again. #
  • watching “Get Smart” with Steve Carell #
  • weird, my life revolves around June. Major June events for me: Got married, Justin was born, started work for CNET & CNET was bought by CBS #
  • I’m somewhat excited. I can see out of my right eye a lot better than the doctor implied before the surgery. Pretty blurry but not too bad. #
  • on my way home from the eye surgery. I feel like I’ve been punch in the eye by the heavy weight boxing champion. #
  • @JFP hope you feel better quickly. #
  • waiting in the doc’s office. Pretty bored. #
  • finally headed to bed. I need my rest before the eye surgery tomorrow. #
  • I agree with what http://apps.facebook.com/causes/143907 is trying to do, but they are doing it for all of the wrong reasons… #

Powered by Twitter Tools.

Posted under Twitter

This post was written by Michael Tougeron on November 19, 2008

Tags: ,

Scaling MySQL powered Web Sites by Sharding and Replication – SF MySQL Meetup Nov 2008

Peter Zaitsev will be giving his excellent presentation “Scaling MySQL powered Web Sites by Sharding and Replication” to the upcoming SF MySQL 6:00pm on November 3rd @ the CBS Interactive (formerly CNET Networks) building in SOMA San Francisco (235 2nd St).

RSVP here: http://mysql.meetup.com/30/calendar/8912109/

Description from the 2008 Velocity conference:
When your application grows beyond capacity of a single MySQL server there are few ways to scale, with most typical being Replication and Sharding.

In this presentation you will learn how, depending on your application performance scalability and high availability goals, you can choose what proper scaling strategy will be good for you.

We also will speak about scalability limitations of replication of Replication and Sharding, implementation complexities, and aspects of operation.

Peter Zaitsev’s bio:
MySQL Performance Blog

Peter helped many companies ranging from one man startups to Fortune 500 companies with their Performance and Scaling problems on various stages starting from architecture design and down to queries and schema optimization.

Over cause of the years Peter has spoken on many International conferences focused on MySQL, Open Source, Databases or High Performance Web applications.

Before co-founding Percona Peter worked for MySQL AB as head of High Performance Group being involved in Support, Consulting, Development and working with vendors helping to optimize their software or hardware to perform well with MySQL.

Peter also was involved in number of Web Startups in the roles ranging from CTO to Consultant and has a lot of experience in MySQL and Web Applications Operations, Deployment, Quality Assurance and Development.
Please join us!

Map to CNET Networks, Inc.
When you arrive, please look for the PHP/MySQL Meetup sign pointing you to the conference room.

Look forward to seeing you there!

Posted under Events, Internet, mysql, Technology, Tips & Tricks, Web Development

This post was written by Michael Tougeron on October 23, 2008

Tags: , , , ,