Feb 17th, 7hrs | Programming: mysql, php.
Started the website.
-Prepare mysql database to interact with the website.
-Made basic queries to database to display a profile page from information pulled from a mysql database.
echo “<img src='”;
Feb 21st 7hrs | Programming: domain setup, mysql, php.
-Bought a personal domain to temporary host the pyramid website.
-Set up website to use mysql database on the website. Had to actually give it instructions to connect and find it now. Also gave it a location to store sessions
This specific code was required for
mysql_connect(“jackkoocom.fatcowmysql.com”, “jack”, “password”);
-Set up ftp with filezilla and fatcow server
-Began working on features such as login, and upload.
Feb 24th 8hrs | Programming: domain setup, mysql, php.
-Lesson on advance sql queries, php troubleshooting, and some extra work afterwards.
-Fixed 90% of upload errors on filesize by editing the php settings on the server. Still sometime output errors on extra large files.
changed these values @ http://www.fatcow.com/member/cgiManagement/PHPplus.bml
php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_input_time 300
php_value max_execution_time 300
-Finishing up features (login, upload)
-Added registration to input new users into database upon giving invitation codes matching the invitationCodes table in the database.
Feb 26th, 2hrs | Programming: Java
Lesson on java double buffering.
-Learned about double buffering to prepare for java application (the collage application).
Double buffering is basically to prevent seeing black flashes appear when the image has not finished being redrawn during. So you draw the image onto a “buffer” and switch it to the current displaylist when its done drawing. So the drawing process is behind the scene and the change of tearing is significantly reduced.
Jon Heard my tutor also showed me a useful java function to clip images to specific shapes.
Now I should have everything i need for the collage software (although the shape clipping don’t have any anti-alias, i might want to look into that issue)
Feb 28th, 7hrs | Printing, Programming: php
Paul had several big prints that he wanted printed. Everything he wanted printed was in an adobe bridge group so I could print them on my own. I setup the print and printed the fabulous photographs of Paul. The last print had extra space so Paul let me print one of my artworks . The output of my artwork isn’t setup for prints yet but it still came out great.
On the programming side, I was debugging an error that come upon login. Can’t recall the specifics of the error now.
March 2nd, 7hrs | Programming: php, sql.
-Search feature done!
-Used sql queries to return all matching searches and sort them into alphabetical order (wasted a lot of time writing a complex php code that did the same thing). I wrapped the echoed results in hrefs and put the matching id in the url. So then the profile page was editted to check for ids in the url first and generate a page based on that.
$IDsMatchingSearchText = mysql_query(”
SELECT ID, firstName, lastName FROM users WHERE firstName=’$searchText’ UNION
SELECT ID, firstName, lastName FROM users WHERE lastName=’$searchText’ ORDER BY lastName ASC
-Slight tweaks everywhere. (homepage redirect, added about to registration, tested div capabilities etc)
-Was wondering why saic.edu seems to log me off when i close the tab even though everyone on the forums says that it’s impossible to know that you closed the tab. Actually the saic.edu log off is a illusion. If you copy the url, close the browser and paste it in. the session remains. So what it actually does is log you off when you enter the homepage, and is missing a specific element in the url. Paul wanted this feature for security so i know know how to add it.