While looking for a easy solution to load uitableview images remotely, I came across a great library called SDWebImage. It’s very simple to use and provides a lot of flexibility for loading and caching images in your iOS project. As I started to use it, I ran into a issue when loading inconsistant thumbnail image [...]

JQuery: Sorting JSON results
This is a follow up to a previous post on sorting elements using JQuery. A few people messaged me asking how to modify the code to sort JSON results from a ajax request so here it goes. The JSON (json.php): [{"id":600385,"name":"Featured Titles","url": "http://www.example.com"}, {"id":562680,"parentId":567182,"name":"Business","url": "http://www.example.com"}, {"id":562677,"parentId":567186,"name":"Other Misc.","url": "http://www.example.com"}, {"id":562664,"parentId":567186,"name":"News \u0026 History","url": "http://www.example.com"}, {"id":562678,"parentId":567186,"name":"Men\u0027s General","url": "http://www.example.com"}, [...]
Check image type in PHP
Quick PHP tip: If you’re looking to determine the type of uploaded image you can use the following code: $type = exif_imagetype($_FILES['uploaded_image']['tmp_name']); if ($type == 1 || $type == 2 || $type == 3) { //image type is jpg, gif or png } The code above shows a snippet to check if the uploaded image [...]

Starting iOS development
Over the past couple weeks I’ve shifted to developing more and more for iOS devices. The plan is to share what I learn as I go. The first tutorial i’m working on is creating a “log in” view for your app, along with explaining how to use delegates to notify your application of the results. [...]
AS3 – Scrollbar using MOUSE_MOVE instead of startDrag()
There is a million tutorials on how to create a scrollbar in AS3 but I noticed a lot of them use the startDrag function. While it works, when your mouse leaves the swf it will stop tracking the mouse movement and act a little strange when you return. Here is a quick snippet on how [...]

Google Cr-48 Pics
Today I unexpectedly received a Google Cr-48 in the mail. Sweet – Thank you, Google! For those of you who don’t have the history on this device, Google announced it’s pilot program for their new Chrome OS. It’s a pretty ambitious project, they’re betting the fact that we all live in our browser and use [...]
About The Author
I blog about stuff I learn as a developer. Mostly iOS, AS3, PHP, MySQL. I run a lot, too. Follow @lostincode
- JQuery sort() February 11, 2009
- PHP5 Email Validation February 10, 2009
- Error calling method on NPObject! February 12, 2009
- Getting Upcoming Birthdays From MySQL March 31, 2009
- Customize your Amazon S3 Url February 11, 2009
-
SDWebImage fixed width cell images
November 20, 2011
-
JQuery: Sorting JSON results
November 7, 2011
- Check image type in PHP November 7, 2011
-
Starting iOS development
November 4, 2011
- AS3 – Scrollbar using MOUSE_MOVE instead of startDrag() January 15, 2011
-
Abc: where is the main php piece calling the function?...
-
Ahmed Ragae: thanks for this blog but we chose this mail and tr...
-
Electronic Cigarette: this work for me , thanks for your tips!...
-
Rob: Just found this and it worked perfectly to replace...
-
Adam Reineke: Your sort function is case sensitive, and will sor...
Categories
- Actionscript 2.0 (1)
- Actionscript 3.0 (2)
- Amazon S3 (1)
- Flash (3)
- iPhone (3)
- JavaScript (2)
- JQuery (2)
- MySQL (2)
- PHP (6)
- Uncategorized (2)
