January 2009
4 posts
4 tags
Further PHP Graphing
I’ve improved the php graphs project, improving the Chart and lineChart classes and adding the barChart class. The lineChart now accepts x and y coordinates instead of just y coordinates as it previously did. The data array is now input as follows:
add_data("Label", array(x1, y1, x2, y2, ... ,xN, yN), "#FFFFFF");
The tick mark creation is a little more accurate and less messy now also....
2 tags
PHP access to RT
There are two ways to access RT from a php script:
Direct access to the mysql database, and
Using the rt command-line tool
Using direct access to the database would be quicker and allow anonymous access to the page. Allowing a seperate access point to the RT database is a security risk, but could be alleviated by creating a special database account with SELECT only privileges.
Using the rt...
Line Chart "class" in PHP and GD
For an upcoming project in which I magically turn RT (http://bestpractical.com/rt/) stats into graphical goodness, I whipped up a little php script that creates a line chart given the Y coordinates of each of the lines.
My focus with this script was scalability of the resultant image. Therefore, I had to determine some formulas in order to scale the given data into the given dimensional...
1 tag
Personal Goals for the New Year
I’ve never really been one for goal setting, but this year I’ve decided that I need tomake some goals for myself for the next year. I feel like all the projects I’ve wanted to work on have just stagnated over the last couple of years and I don’t like it. So this year I’ve come up with a list of goals to complete by this time next year. My goals are:
A Basic,...