Showing posts from 2012

Webhosting services with infinite plans
or Bluehost

Terminal Commands

UIViewController Container APIs

To add a child view controller(VC) to a parent VC
[selfaddChildViewController:tradeVC]; [tradeVCdidMoveToParentViewController:self]; [tradeVCrelease]; // and then add as a subview [self.viewaddSubview: tradeVC.view];
while removing: [self.viewremoveFromSuperview]; // and then remove from the parent VC [selfremoveFromParentViewController];

Using core plot

An excellent tutorial on getting started with core-plot for adding graphs to mac and iOS apps.

Postgres on Mac

> brew install postgresql

Initialize database
> initdb /usr/local/var/postgres

Changing ownership > sudo chown $USER /var/pgsql_socket/
Add to startup items > mkdir -p ~/Library/LaunchAgents > cp /usr/local/Cellar/postgresql/9.0.4/org.postgresql.postgres.plist ~/Library/LaunchAgents/
Now, edit ~/Library/LaunchAgents/org.postgresql.postgres.plist in a text editor and look for this line: /usr/local/var/postgres/server.log
Paste in the following lines immediately below it: -c unix_socket_directory=/var/pgsql_socket -c unix_socket_group=_postgres -c unix_socket_permissions=0770
Start the DB > launchctl load -w ~/Library/LaunchAgents/org.postgresql.postgres.plistAdd the _postgres account as a database user (with no password): > createuser -a -d _postgres Finally, verify that it’s all working by connecting: > psql templ…

Kiosk Mode for iOS

via: Disabling store demo modeIf you consider installing the configuration file included below make sure you understand how to disable this mode first. Mobile configuration files are used to configure phones in enterprises. Apple provides an app called the iPhone Configuration Utility (IPCU) to install and remove configurations. To disable store demo mode: Use IPCU to remove the configuration from the phoneReboot your device Installation The easiest way to enable Store Mode is to install the .mobileconfig file listed below. Installing using the IPCU did not work for me, but opening the file in Safari worked fine. Point Mobile Safari to: Mobile configuration file to disable the home button (AppLock.mobileconfig, 1.8kb) Contents of the file available below, configure to your likings if you intend to distribute it yourself.
PayloadContentPayloadDescriptionDisables the home button.PayloadDisplayNameApp Home Button LockPayloadIdent…

Private Frameworks

Use Class-Dump to generate the header files for Private Frameworks


./class-dump -H /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary -o /Applications/class-dump/class-dump-iPhone5.0-PhotoLibrary.framework

otx tool reads out the the same information but along with machine code.

JavaScript Tutorials

To begin with JavaScript

JavaScript tutorials for people who already know how to program

Mozilla Dev Network

JavaScript Book

Getting started with JQuery

Blocks Guide