I wrote a simple tool to visualize numbers in different bases to help solve a math problem I was thinking about the other day. It uses PHP. click here to use <html> <head> </head> <body> <h1> Convert numbers </h1> Use this form to convert numbers between different bases. <br/> This can be useful for visualizating [...]
Archive for the ‘coding’ Category
Visual Basic Datagrid Sort + Filter
January 3rd, 2012
Curtis Rutledge How to: Group, Sort, and Filter Data in the DataGrid Control http://msdn.microsoft.com/en-us/library/dd833072(v=vs.95).aspx I couldn’t set a filter function in my case but I could use a customfilter which worked pretty good. http://msdn.microsoft.com/en-us/library/system.windows.data.bindinglistcollectionview.customfilter.aspx For some reason this link is the 3rd or 4th page or worse when searching on google. It should be higher up then [...]
Apache cache control samples
May 30th, 2011
Curtis Rutledge I found these apache cache configurations useful. Sample apache cache configurations. Some other links: Mod Expires apache documentation . Website optimization cache tweak.
Optimizing MySQL MyIsam tables
May 26th, 2011
Curtis Rutledge Found this interesting thread on myisam table optimizations. MyIsam optimization This is useful for me as I’ve used these tables for fulltext support/searchs.
Regular Expressions with PHP
April 20th, 2011
Curtis Rutledge Here’s a pretty useful website to use when you are looking up what regular expressions are doing exactly with PHP or when you are writing your own. http://www.webcheatsheet.com/php/regular_expressions.php I try to avoid using complicated regular expressions and prefer writing the conditional statements using the native language instead of the regular expressions parser since I find [...]
MySQL Optimization. Join, Limit and Order By.
March 11th, 2011
Curtis Rutledge I will never ever ever forget this. (Because I wrote it down here) I have a lot of queries with joins. (join or left join) Select * from table1 join table2 on ( table1.table2_id = table2.id ) join table3 on ( table1.table3_id = table3.id ) order by table1.id limit 50; What this does under mysql [...]
PHP mysql_connect is slow (1 second) for localhost windows 7
December 11th, 2010
Curtis Rutledge I recently moved my development from XP to Windows 7 and found that webpages I had developed were taking 5 seconds long to load. This was unacceptable of course so I had to track down the problem. I eventually tracked down the offending function/method pdo::construct. I also found that mysql_connect was taking about 1 second [...]
PHP strtotime issues
November 11th, 2010
Curtis Rutledge strtotime is a broken php function in my opinion.
Adding Google Ad Banners To PHPBB Forum
November 7th, 2010
Curtis Rutledge It’s pretty simple to add header/footer banners to PHPBB. I just recently added banners to my version of PHPBB running here.
The Youtube Javascript Player API
November 6th, 2010
Curtis Rutledge 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 [...]


Posted in
Tags: