Month: April 2011

  • git log – good summary

    I have recently started using git and have struggled to find a good short summary of recent changes. This command does the trick: git log –name-status HEAD^..HEAD commit 1x3ga6g08f1c4324141f966d9766i86c6a790921 Author: Josh Miller Date: Tue Apr 19 07:19:15 2011 -0700 removing this file to test post-receive delete operation, take 1 D var/www/application/css/test07.css Using the –name-status and […]

  • PHP Fatal error: Uncaught exception ‘RequestCore_Exception’ with message ‘The stream size for the streaming upload cannot be determined.’

    While attempting to upload some large files (>2GB) to S3 yesterday, I ran across this error (on both sdk 1.2.3 and 1.3.2): php s3-upload.php Uploading file: myfile.bak PHP Fatal error: Uncaught exception ‘RequestCore_Exception’ with message ‘The stream size for the streaming upload cannot be determined.’ in /home/josh/aws/sdk-1.2.3/lib/requestcore/requestcore.class.php:771 Stack trace: #0 /home/josh/aws/sdk-1.2.3/services/s3.class.php(722): RequestCore->prep_request() #1 /home/josh/aws/sdk-1.2.3/services/s3.class.php(1342): AmazonS3->authenticate(‘db-backup-resto…’, […]

  • Configuring Apache to Proxy Requests to Tomcat

    A very common task when administering apache and/or tomcat is to setup apache to proxy requests to tomcat.  The primary driver to using this configuration is to get apache to handle all of the front-end requests and some caching with tomcat serving up dynamic content (which is proxied through apache). This also allows apache to […]

  • HTTP Caching in yum…

    yum is great to work with when it works and a pain in the ass when it does not. I recently had a problem where I would get the dreaded metadata does not match checksum warning while trying to update a CentOS 5.3 system I was working on. filelists.xml.gz: [Errno -1] Metadata file does not […]