Friday, December 4th, 2009
So I’ve started on my new little project Proxie. In order for it to be scalable, I’ve started using Capistrano for the development and deployment processes. Furthermore, I’m also using Phing and DBDeploy to handle the database migrates.
But that’s not where the fun stops, I’m also making use of some great Ruby Gems, locally rather than on the server, to compress static assets, such as CSS, JS and images.
(more…)
Tags: cap, capify, capistrano, codeignitor, compress, dbdeploy, lesscss, optipng, phing, PHP, task, yui
Posted in APIs, CSS, Development, JavaScript, PHP |
No Comments »
Friday, July 10th, 2009
So recently I’ve been playing around with GZIP compression on Apache and PHP to see how fast I can get my assets to load. Now I’ve written a post already on how to compress sites with GZIP.
Now I’ve taken my script to a new level, that is the asset loader script that compresses text-based assets using GZIP. I’m not using any sort of code compressor on the assets, yet, as I’ve already compressed the scripts using YUI. More importantly, I’ve now added the ability for me to cache a number of files into one rather than loading several, as we all know: less HTTP request = more fun.
(more…)
Tags: cache, caching, compress, compression, CSS, gzip, JavaScript, PHP, text, XML, zip
Posted in APIs, Actionscript 3, CSS, Development, JavaScript, PHP, XML |
No Comments »
Saturday, June 6th, 2009
Every now and then you’ll need to compress files. When it comes to creating new web projects where I’m using frameworks, I find it much faster to compress the base framework and upload that to my server rather than uploading each file individually.
Since I’m on a Mac, I had hidden files. So, if I simply OS X’s built in archiver, I’m left with a load of .DS_Store and hidden files, and that’s not nice. So I’ve been looking at the best ways I can compress folders and files and exclude all those nasty hidden files I don’t want to be on my server.
(more…)
Tags: automator, bash, compress, files, hidden, mac, osx, Terminal, workflow, zip
Posted in Development, OS X, Terminal |
No Comments »
Thursday, May 28th, 2009
Web sites need to be fast! Recently I’ve had some time on my hands so I’ve done some tests to see which is the best solution. I’ve had a read about different ways that web sites can be sped up, from compression before you upload files to server side compression.
Whenever it comes to speeding things up, I always remember the saying that “loading data from a flat file is slow, a database is slower, but memory is the quickest”. So that means if you’ve using server-side scripting such as PHP or Python, the best thing to do is to use memory caching such as APC or MemCache.
(more…)
Tags: apache, apc, caching, compress, compression, compressor, CSS, gzip, htaccess, JavaScript, memcache, PHP, XML
Posted in CSS, Development, JavaScript, PHP, XML |
No Comments »