css (1) jQuery (7) linux (38) mac (70) php (29) python (1) svn/git (9) trac (4) ubuntu (1) virtualbox (6) vista (2) windows (14)

Sunday, 26 April 2009

Vista Windows winsxs folder

Recently while preparing my desktop for a full OS backup I noticed the folder c:\windows\winsxs was 14.6GB (note I'm on vista64 bit this will become relevant later).

After some research I found this folder keeps copies of old .dll files for programs. Since I'm on x64 this means 32 bit and 64 bit dlls...that's a lot!

Now a way to shrink this is to run a file called VSP1CLN.exe (assuming you have vista service pack 1 installed). This removes the ability to uninstall Vista Service Pack 1 and cleans up some old files, it removed 2.6GB of files..not bad. Warning running this file will disable your ability to remove vista service pack one the only way to remove it will be to reinstall windows make sure you know what you're doin!

Wednesday, 8 April 2009

PHP Compiling Oddness

I've just been compiling Easy Mac Apache MySQL and PHP and when compiling the php for the system package came across a very very odd error, when running php on a mac without xcode and not compiling with bz2 it would bring up an error unable to find libltdl.3.dylib which is a libtool dynamic library, now what's really odd is when I compile --with-bz2 the problem goes away, why I have no idea!

Friday, 3 April 2009

PHP Flush

I was writing a script that needed to show download progress so flushing content to the users browser was required...oddly enough flush() alone didn't work. I found this is a solution

echo "Downloading...";
/* download code goes here */
sleep(3) //simulate a download
echo "Download complete";

Why does this work? Dunno but for some reason ob_end_flush(); before a flush made it work.