August 2011
12 posts
3 tags
To remove the exif data you need to call Imagick::stripImage() on the populated...
– How to strip exif data using Imagick - James Morris - JMOZ
» If you need to resize an image, you can also use Imagick::resizeThumbnail to strip the exif data in one call!
2 tags
PHP 5.4 includes a new feature called traits which allow us to do something that...
– Zutto development - Horizontal reusability with traits
Great explanation and example of traits. PHP 5.4 is looking to be a nice release.
1 tag
rentzsch.tumblr.com: HOWTO Use UTF-8 Throughout... →
rentzsch:
Good is the enemy of Great Latin-1 is the enemy of UTF-8 You write web apps. You understand the web is global, and want to support internationalization. You want UTF-8. UTF-8 is extremely sane. Well, as sane as an encoding can be that features backwards-compatibility with ASCII. Everything…
3 tags
Implementing Twitter sign-in with Silex and PHP |... →
» Silex is awesome and it’s great to see an example using the OAuth library. We recently had a third party spend over a week trying to connect with our web service using OAuth. I couldn’t believe the struggles that they had.
Then today I see an article that shows just how simple it really is :).
4 tags
Scripting Languages: PHP, Perl, Python, Ruby -... →
» Looking at these comparisons, it makes me wonder why I chose Python instead of Ruby as an additional scripting language. Python has some weird naming conventions (and I’ve grown a fond hatred for the indentation-based syntax).
4 tags
MAMP + Xdebug + Lion
In Part 1 of my MAMP + Lion series, I set up my MAMP installation so that I could use the included PECL installer. Then we installed OAuth. In Part 2, we installed MacPorts, then used PECL to install the ImageMagick “Imagick” extension. I decided to give you a breather and make this piece much simpler, so we’re going to install Xdebug. Originally this post was much longer since...
5 tags
MAMP + ImageMagick + Lion
In Part 1 of my MAMP + Lion series, I set up my MAMP installation so that I could use the included PECL installer. In this piece, I am going to explain how to install the php imagick extension. It’s going to be a little more work, but it builds on the foundation established in part one.
Install MacPorts
To begin, I followed the advice given by Mike Leo @ Unreal Expectations on installing...
4 tags
MAMP + OAuth + Lion
I recently updated my MBP to Lion and decided that while I was upgrading applications, I might as well upgrade my MAMP to version 2.0.1. When installing MAMP 2, make sure to choose the appropriate install. Since this article focuses on Lion, you should just choose the 64 bit version. I had hesitated doing this in the past since there are some unusual steps I had to take in the past to set it up. ...
4 tags
[Using annotations] is a very nice and clean way of handling validation, it...
– Filtering objects using annotations « Rafael Dohms
» Doctrine and Symfony has opened my eyes to the power of annotations. Check out Rafael’s example of his filter class. I love how easy it is to understand how each element of the user object should be filtered.
<?php
namespace...
2 tags
Not able to login to sftp server using key pair :... →
» Found this nugget after updating my EC2 instance and still being unable to log in via SFTP with phpStorm.
4 tags
Amazon recently launched the ability to upload your own ssh public key to EC2 so...
– Uploading Personal ssh Keys to Amazon EC2 - Alestic.com
Ok, so it’s not recent any more, but it still seems pretty unknown. I use PHPStorm for my IDE and needed to have a private/public key in order to connect via SFTP.
With this change I should be able to connect now!
2 tags