I’ve been using Javascript and the youtube API recently. All of the documentation is found here: http://code.google.com/apis/youtube/js_api_reference.html Here are a couple of neat things that can be done with it: Create a music/tv style channel. A single youtube player on a HTML page can be used to play videos continously. The user can then skip [...]
Archive for the ‘coding’ Category
MySQL Replication
October 29th, 2010
Curtis Rutledge A couple of useful links to read if you are interested in doing mysql replication. Often you need to setup a second copy of mysql to do this. Here are some instructions on how to setup another copy of mysql on linux. http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/ Then once you’ve setup this secondary copy of mysql you should look [...]
SQL finding duplicate records.
August 23rd, 2010
Curtis Rutledge When adding unique indexs to tables to prevent data duplication you discover there are already duplicates in the table you wish to fix/improve. Here’s a quick way to list records with duplicates. select count( id ) as cnt, id from table group by id having cnt > 1 You still have to go through and [...]
Web based chat and shout boxes.
July 14th, 2010
Curtis Rutledge Here are some of the solutions I’ve found or have dealt with lately when trying to find the perfect solution to website(s) I’m working on.
PHP Performance.
June 25th, 2010
Curtis Rutledge I’ve noticed the performance of my PHP is dog slow. I’ve since put in some debugging code and performance measuring code. My code might not be as modular or pretty looking but at least it will work in a reasonable amount of time. Object oriented PHP is causing me many performance headaches. It was disgustingly [...]
Yum and Git on Centros 4/4.5
June 22nd, 2010
Curtis Rutledge Trying to install software on linux sometimes can be a real pain. Sure yum is great but some hosts such as MediaTemple don’t have that installed. So here’s a list of the commands I had to run in order to get Yum installed on a Centros 4.* box in an attempt to install another program: [...]
Javascript Libraries and Tools.
May 22nd, 2010
Curtis Rutledge Here are some javascript libraries and tools that I find useful: http://jquery.com/ http://www.bitrepository.com/ajax-login-modal-box.html http://tablesorter.com/docs/
Perforce/VSS/CSV and Subversion: Mistakes Made
May 14th, 2010
Curtis Rutledge A Bug/Version control software story: I figured I would share one of my most embarassing development stories with the whole wide internet. This happened about 10 years ago and never happened again since so I think I’ve learned from the mistake. I had been working on a particularly crappy piece of code that no one [...]
Javascript prompt() replacements
May 9th, 2010
Curtis Rutledge javascript prompt() replacement. I wanted a simple to use function to ask the user for some information. The javascript prompt() function seemed like a good way of doing this until you notice the security issues with IE. So I visited google and started looking for replacements. http://www.anyexample.com/webdev/javascript/ie7_javascript_prompt()_alternative.xml Tried it out. Works. Didn’t like the design. [...]
Finding and Removing duplicate data from SQL Tables
May 9th, 2010
Curtis Rutledge Here’s an decent article with various methods of finding duplicate data in databases with SQL. http://www.delphifaq.com/faq/delphi/database/f20.shtml Removing duplicate data can be a troublesome task as well. One of the fastest ways to do so involves creating a new table with a unique index to the column you wish to purge of duplicate data. Then you [...]


Posted in
Tags: