PHP: ImageHelper

ImageHelper is a simple PHP class that save, resize and/or crop photos. You can download the script in the links listed below. ImageHelper download link Gist Sample Usage : $image = new ImageHelper(); $imageThumb = ‘../images/thumb/’ . $imageID . ‘.jpg’; $image->saveImage( $url , $imageURL ); $image->resizeCrop( $imageThumb , $imageThumb , ‘1:1′ , ’75x’ ); $imagePreview … Continue reading PHP: ImageHelper

Shell: Reindexing Spotlight on your Mac

Spotlight indexing can slow your machine if you have low memory. Doing it repeatedly may stop your machine from working. This problem is a common occurrence with Mac machines. As I am a Mac user, I wrote a simple shell script that will help your Spotlight to stop reindexing your installed drive(s). This Shell script … Continue reading Shell: Reindexing Spotlight on your Mac

Snippets: NSLog and Macros Tips and Tricks

Tricks Some NSLog tricks I’m using on my escapade. These snippets are preprocessor macros that will help your debugging moments easier if not a lot. ALog This snippet will log everything every time you use it in a line. It will display the method name, the line number and the argument you gave. #define ALog(fmt, … Continue reading Snippets: NSLog and Macros Tips and Tricks

iOS: Venues using Foursquare API and iOS MapKit

Foursquare (foursquare) in their own words is a location-based mobile platform that makes cities easier to use and more interesting to explore. By “checking in” via a smartphone app or SMS, users share their location with friends while collecting points and virtual badges. Foursquare guides real-world experiences by allowing users to bookmark information about venues … Continue reading iOS: Venues using Foursquare API and iOS MapKit

iOS: Table View using Property List

Table Views are the most common object used to display lists of data to the user. This objects are highly configurable, they can be made to look different things. Mail, Contacts, and Messages to name a few apps using the Table View. Mail uses table view to display lists of accounts, folders, and messages, but table views are not limited to display text, they are also used in YouTube, Settings, and other applications, even though this applications has many different appearances.

iOS: AVHexColor

AVHexColor is a class for iOS (iPhone & iPad) and OS X (Mac), inspired by the lack of hexadecimal colour integration of iOS. Install Recommended Podfile via CocoaPods platform :ios pod ‘AVHexColor’, ‘~> 1.2.0’ Alternatives Using git subtree git subtree add –prefix=AVHexColor –squash master Using git submodule git submodule add AVHexColor Download Copy … Continue reading iOS: AVHexColor

Snippets: Set Network Activity Indicator On and Off

This little snippet will let you show the network activity indicator using ShowActivityIndicator(); and hide it with HideActivityIndicator();. #define ShowActivityIndicator() [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible: YES]; #define HideActivityIndicator() [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible: NO]; If you work with network in your app, then this little code will be an invaluable asset. This will save you a lot of retyping. … Continue reading Snippets: Set Network Activity Indicator On and Off

iOS: Hello World using Objective-C Class and IBAction

iOS applications use Cocoa classes, and these classes use the Objective-C programming language so one must know Objective-C if he/she does wish to develop iOS apps. We all know shifting from a loss, non-strict programming language might find iOS’s syntax seem strange and difficult. Don’t worry, this strangeness and difficulties will give way to an … Continue reading iOS: Hello World using Objective-C Class and IBAction

iOS: Hello World

iOS is one of the most known programming language today in the mobile industry. The first iPhone was release date back June 2007 and has 350,000+ apps as of January 2011. Certainly, it is the most interesting mobile platform to date, and in the release of iOS SDK 4, things just got better. Things you … Continue reading iOS: Hello World

Objective-C: Categories

When writing our own program, you’ll often want to add some new method to an existing class. You can always add a subclass to an existing class if you want to add some more method to it. But there are limitations to that, not every time subclassing is convenient enough for people to subclass. For … Continue reading Objective-C: Categories