Posts Tagged “PHP”
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 »
Monday, July 6th, 2009
Update: after a disastrous morning, I’m going to try and upload everything tomorrow!
When I first started this blog, I had every intention of releasing my code as open source for everyone to take and use. I’m still going to do this, in fact I’m just getting my repositories ready for uploading.
I’ve decided to use Github rather than SVN’ing to Google Code. I do prefer git a lot more over svn, but if you really want me to use Google Code, I’m sure I can upload to there too, only by popular demand though!
(more…)
Tags: Actionscript 2, Actionscript 3, as2, as3, code, git, github, open, os, PHP, source, svn
Posted in APIs, Actionscript 2, Actionscript 3, Development, General, PHP |
No Comments »
Tuesday, June 16th, 2009
This is a really handy tip if you use jQuery frequently and are receiving JSON data back. jQuery’s “$.post” allows you to do a POST call to your application and get the data back, but you have to flag the type of data being received by jQuery so that it can parse it.
(more…)
Tags: ajax, ci, code, codeignitor, ignitor, JavaScript, jquery, JSON, PHP, post
Posted in Development, JSON, JavaScript, PHP |
No Comments »
Friday, May 29th, 2009
As soon as I had written the entry about my success with AMFPHP and AS3, I had a crack about sorting it out with CodeIgnitor. It’s been a painful few hours, but I soon realised that my failing was this line in “index.php”:
It needs to be this, to suppress any blank spaces so that the content type is “application/x-amf”:
Awesome! Here’s the CI Wiki page about integrating AMFPHP and CI.
Tags: actionscript, Actionscript 3, amf, amfphp, code, codeignitor, ignitor, PHP
Posted in APIs, Actionscript 3, Development, PHP |
No Comments »
Friday, May 29th, 2009
If you’re an Actionscript developer then there’s a chance that you would have used AMFPHP in your time. It’s a shame that the project isn’t being maintained – since the last release was in 2008 – nevertheless, it works and that’s what matters. I’ve been having a crack at making AS3 and AMFPHP play nice together and it’s turned out quite well, apart from a few issues, with AS3 mainly.
I’m a firm believer of reusing code, so instead of creating some functions for projects, I create sets of classes so that when I go to do other projects, development time is reduced as I’ve written scalable and usable code rather than re-writing all my stuff. So I’ve done about creating a set of AMFPHP Service classes that I’d like to share with you.
(more…)
Tags: actionscript, Actionscript 3, amf, amf3, amfphp, arguments, Flash, JSON, netconnection, PHP, remoting, rest, serialisation, service, XML
Posted in APIs, Actionscript 3, Development, JSON, PHP, XML |
1 Comment »
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 »
Sunday, May 17th, 2009
Recently I joined a debate started by the editor of Flashtuts+ regarding coding conventions. Now I’m a strong believer that if you’re going to code, you best do it right. Yet on a day to day level I still see sloppy code. Gone are the days of Actionscript 1 and 2 coding when you didn’t have to declare variable’s type or a function’s return value, but still people continue this in their coding of Actionscript 3.
The fun doesn’t stop there. I admit, when I first started coding yes I was very sloppy with my convention, but I’ve cleaned up my act, honest. With other languages such as PHP and JavaScript, you see how easy it is to just keep typing and typing and through any sort of convention out of the window. But when the client turns around as says: “Why can’t that be 3D?” you’re then going to have to go through all your sloppy code and make it 3D.
(more…)
Tags: actionscript, Actionscript 2, Actionscript 3, code, coding, convention, CSS, debate, guide, JavaScript, PHP, Python, style, tutorial
Posted in Actionscript 2, Actionscript 3, CSS, Development, General, JavaScript, PHP, Python |
No Comments »