The Linux mogrify command (part of ImageMagick) is a handy way to compress / resize a image, or multiple images easily using the CLI. mogrify can also be used for convert or compress images.
- Home
- Blog (Page 10)
Blog
Using Amazon S3 to Backup Your Server
Amazon S3 provides a cheap solution and easy to use solution to back up your Linux server or files on the cloud. The Linux s3cmd script lets you use rsync to backup folders and files easily.
Amazon Web Services, Backup, Linux, SecurityGeolocation Using HTML5, jQuery and Google Maps
Geolocating a user using their browser (if supported) is quite easy using HTML5 and JavaScript / jQuery. In fact, it can be done in under 50 lines of code. Here’s my quick and dirty tutorial on doing just that.
Geolocation, HTML5, JavaScript, jQuery, TutorialFacebook API: Posting a Status Update
The Facebook API lets you post status updates (message, links, photos etc) to your timeline via the API. This is handy if you want to have automatic sharing in your application (assuming users have consented to it) to post uploaded photos, links etc.
Facebook, Facebook Graph API, TutorialFacebook API: App Notifications API for Facebook Canvas Apps
Use the new Facebook Notifications API to send app notifications to your users, instead of using emails or requests. No additional permissions required.
Facebook, Facebook Graph API, NotificationsTwitter API: Tweet Button Callbacks
I wanted to reward users for tweeting, but didn’t want to use the full Twitter API and OAuth authentication. I found a simple solution that triggers a callback when a user tweets using the standard Tweet button.
JavaScript, Twitter, Twitter APIFacebook API: Generating a Large Square Profile Image
Facebook still restrict the “square” image to 50px by 50px. Here is a clever way of generating a new thumbnail image for the user (on the fly) using the Facebook Graph API and the PHP GD2 library.
Facebook, Facebook Graph API, GD2, Image Manipulation