20
2011
Twitter framework for ios5
In this post i’ll walkthrough how to implement the ios5 Twitter framework in your app. The first thing we need to do is of course import the new Twitter Framework and the Account Framework into our project. In Xcode, tap on the project, under ‘Build Phases’, add the two frameworks needed. To use the framework, we will import them into our controller like this: #import <Twitter/Twitter.h> #import <Accounts/Accounts.h> In this demo, i’ll just create a [...]
15
2011
IOS & Mac OS Communication with AsyncSocket
AsyncSocket is an asynchronous socket networking library for Cocoa. Using this library, I’ve created a client with is an iPhone app and the server (or remote host) which is a Mac app. The video below shows a demo of socket communication between the iPhone and Mac app. You may download the source code from my github.
15
2011
Turn Off Automatic Reference Counting For IOS5
Automatic Reference Counting (ARC) for Objective-C makes memory management the job of the compiler. By enabling ARC with the new Apple LLVM compiler, you will never need to type retain or release again, dramatically simplifying the development process, while reducing crashes and memory leaks. The compiler has a complete understanding of your objects, and releases each object the instant it is no longer used, so apps run as fast as ever, with predictable, smooth performance. [...]
12
2011
Build a custom UITableViewCell
Customize the UITableViewCell for ios app is simple. You can download the source code from my github. First create a project with UITableViewController. The create a new subclass of UITableViewCell named ‘CustomCell’. @interface CustomCell : UITableViewCell { } Add the UI components to be displayed on the table cell. For example UILabel, UIImageview, etc. In this example, we add 2 labels and an image. @interface CustomCell : UITableViewCell { UILabel *leftLabel; UILabel *rightLabel; UIImageView [...]
10
2011
Introducing Node.js
Node.js is a server-side JavaScript environment that uses an asynchronous event-driven model. It runs on V8 engine which used in Google Chrome. You can download and install Node.js from github. For Mac user like me, you can download the precompiled package for simplicity. Once install, open up your terminal as type ‘node’ then ‘enter’, like screenshot below. You are now in node environment. Try out some javascript code like adding numbers just like in the [...]
10
2011
Apache HTTP server benchmarking tool
ab is a tool for benchmarking the performance of your Apache HyperText Transfer Protocol (HTTP) server. It does this by giving you an indication of how many requests per second your Apache installation can serve. Simply type the command below in your Terminal: ab -n 100 http://localhost/ Result:
Ads
Facebook Page
Categories
- Apache (1)
- Apps (2)
- Blog (19)
- IOS (20)
- IOS Library (5)
- iPhone Tutorial (17)
- Javascript (1)
- Node.js (1)
- Twitter (1)


An article by


