I was having to look at the logs for our project often and the jquery one we had before seemed a little heavy weighted to me. In fact, it would basically make my browser unusable while I was running in. In light of both of these facts, I made my own...and Devlin put it up on the TA server. Hopefully it will be a little nicer to our browsers. You can find it at http://imaj.lddi.org:8080/sandberg_log.html
Hope you enjoy!
Friday, April 10, 2009
Wednesday, April 8, 2009
Monday, February 16, 2009
php SimpleDB files
It took me a while longer to find anything good and the only thing I found was this http://objectcentral.com/paws/ I did find some problems with this script and so I made a few changes myself. I have put everything you need into a zip file. The paws stuff depends on the Amazon folder and they both need to be in the same directory. I didn't want to bother to figure out the include stuff so I just put another copy of both folders in my list directory. Just add the amazon keys to the config file in paws directory and the line include 'paws/pawsSDB.php' into your php files. Then you can make use of all methods on the pawsSDB object.
The changes I made were two small things: 1) on the query method I added a parameter to tell it how many objects you wanted returned at a time. Currently, it defaults to 11 (because of the project) but you can pass in any number you want. 2) The getNextItemName method used to keep calling the last query until all the items that the query returned were sent back to you no matter what you set as the max number of items. I made it so that if you tell it to only return 11 from the query, you only get 11.
Anyway, go forth and do good stuff.
The changes I made were two small things: 1) on the query method I added a parameter to tell it how many objects you wanted returned at a time. Currently, it defaults to 11 (because of the project) but you can pass in any number you want. 2) The getNextItemName method used to keep calling the last query until all the items that the query returned were sent back to you no matter what you set as the max number of items. I made it so that if you tell it to only return 11 from the query, you only get 11.
Anyway, go forth and do good stuff.
Thursday, February 12, 2009
SimpleDB and sorting comments
I was chatting with Dave Wilcox as I was working on my lab tonight and he is a life saver. (A wild cherry one, I would guess.) Anyway, as I was working on my query for comments he gave me the greatest tip ever!
If you want to sort by something in your SimpleDB query, it has to be referenced in the query.
For example, if I wanted to sort by coolness in my made up SimpleDB domain, you might think the query "['submitdate' > 'some param
Picture from : http://ecx.images-amazon.com/images/I/519DTFXWQ6L._SL500_AA280_PIbundle-12,TopRight,0,0_AA280_SH20_.jpg
Wednesday, February 11, 2009
PHP s3 Objects
I have looked through a few php5 objects that will do all the s3 stuff for me and the best one I have found so far is http://code.google.com/p/php-aws/source/browse/trunk/class.s3.php# I have yet to actually use it so we will see how that goes. It seems like it works pretty well. Don't forget to install php5-curl (that is what it is on ubuntu anyway) because it uses that.
Thursday, February 5, 2009
use PHP without mod_rewrite
In a previous post I talked about how apache just magically found my php files even when I didn't enter /submit.php but only /submit. Apparently, by default in Ubuntu 8.10 with apt-get apache2/php5 install this behavoir is enabled automatically. However, on the Fedora image it appears that this is not enabled. From a comment posted by Artan in the origional post you need to do a little httpd.conf editing. His comment follows:
"I was trying to get my Apache to do the same thing, but it wasn't working. I finally found a way to do that and it's as simple as putting one option in the options directive in your httpd.conf file. This is called MultiViews.
If you look in the .conf file, among others, there will be a section called Directory "/var/www/html" or whatever the path to your directory is.
The Options directive will most likely be there and will have some options set. All I did was add MultiViews to the list of Option directive and it all magically worked.
This is what my Options directive looks like now:
Options Indexes FollowSymLinks Includes ExecCGI MultiViews
(that is all supposed to be in one line)"
Hope that helps!
"I was trying to get my Apache to do the same thing, but it wasn't working. I finally found a way to do that and it's as simple as putting one option in the options directive in your httpd.conf file. This is called MultiViews.
If you look in the .conf file, among others, there will be a section called Directory "/var/www/html" or whatever the path to your directory is.
The Options directive will most likely be there and will have some options set. All I did was add MultiViews to the list of Option directive and it all magically worked.
This is what my Options directive looks like now:
Options Indexes FollowSymLinks Includes ExecCGI MultiViews
(that is all supposed to be in one line)"
Hope that helps!
Wednesday, February 4, 2009
Fedora Shutdown Script
Someone was asking me for this in class today : http://www.linuxforums.org/forum/redhat-fedora-linux-help/64580-where-shutdown-script.html If it works or not I know not since I am not using fedora. Good luck!
Subscribe to:
Posts (Atom)