My personal homage to past masters who have had an influence on my growth. To begin an undertaking of a sacred task or work of … Continue Reading Homage to Past Masters
I have compiled the following resources based on my own experience and what I believe would be an effective learning path for beginners to get up to speed on iOS development. 1. Udacity Start with the free iOS courses available at Udacity. They are not only fun and engaging but … Continue Reading A List of Swift and iOS Learning Resources for an Effective Learning Path
Some interesting Swift tidbits with practical code examples. Implications: use them in your projects for more readable and maintainable code. Declaring multiple values in a single line Multiple variables or constants can be declared in a single line using commas to separate them: They can also be declared in … Continue Reading Some Interesting Swift Tidbits
From the Course Programming Methodology CS 106A Offered at Stanford University Having spent more hours than I am willing to admit, finally solved Karel the Robot Problem 3 (from Assignment 1). Please don’t look at the solution until you have solved it yourself. Otherwise you will be depriving yourself of … Continue Reading Solution to Karel the Robot Assignment 1: Problem 3
Platform: iOS 8.x or later Device: iPhone Language: Swift Motivation: when user unplugs their headphones, you wan’t to stop playing audio (iTunes like behavior) in your app The following code snippet shows how to detect if headphones are plugged in (when the app starts or is woken up). The println() … Continue Reading Detecting if Headphones are Plugged-in to an iOS Device in Swift
The problem: From page 42, Exercise 3, Chapter 3, Programming Erlang by Joe Armstrong Try representing a house using a tuple and a street using a list of houses. Make sure you can pack and unpack the data in the representations. This is a very simple problem. Each house is a … Continue Reading Solution to Exercise 3, Chapter 3: Programming Erlang by Joe Armstrong
The problem: From page 37, Exercise 4, Chapter 2, Programming Erlang by Joe Armstrong Run the file client and server code. Add a command called put_file. What messages do you need to add? Find out how to consult manual pages. Consult the manual pages for the file module. Additional Specifications … Continue Reading Solution to Exercise 4, Chapter 2: Programming Erlang by Joe Armstrong
Apple’s latest language Swift provides some nifty behaviors and characteristics. Three things we are loving about Swift so far are: Awesome OOP features: Structs, Enums, Classes can all have methods, optional binding, type safety Cool Functional language features: Closures (the shorthand syntax is a delight to use), nested functions and types … Continue Reading Fun with Apple’s Swift: Using the @prefix operator to mimic Lisp’s + function
Assignment 3 (Set Card Matching Game with History) from “Developing iOS7 Apps for iPhone and iPad (Fall 2013) by Stanford University” took a bit longer than usual to complete. The major highlights of the assignment are: Set card matching in addition to the playing card game implemented in the last … Continue Reading Solution to Assignment 3: Set Card Matching Game with History
Lecture 5 from “Developing iOS7 Apps for iPhone and iPad (Fall 2013) by Stanford University” explained View Controller life cycles. Here is a simple experiment to see it in action. Notice the viewDidLoad method runs only once. Whereas viewWillAppear and viewDidAppear runs every time the view comes alive. And as … Continue Reading A Simple Experiment in View Controller Lifecycle
Attached is the solution to the Assignment 2: Matchismo 2 (3-Card Matching Game) from the course “Developing iOS7 Apps for iPhone and iPad (Fall 2013)” by Stanford University (available in iTunes). The attached solution is not limited to a 2-card or 3-card matching game. The same method can be used … Continue Reading Solution to Assignment 2: Matchismo 2 (3-Card Matching Game)
Here is my solution to Assignment 1: Matchismo from the course “Developing iOS7 Apps for iPhone and iPad” (Fall 2013) by Stanford University. There are just a few differences with the “official” solution as shown in the Lecture 3 video / slide . Did not create a separate method createDeck … Continue Reading Solution to Assignment 1: Matchismo
What’s in iOS7: 4 major layers Starting from the bottom to top: Core OS OS X Kernel Mach 3.0 BSD Sockets Security Power Management Keychain Access Certificates File System Bonjour Core Services Collections Address Book Networking File Access SQLite Core Location Net Services Threading Preferences URL Utilities Media Core Audio … Continue Reading Notes on Lecture 1: Developing iOS7 Apps for iPhone and iPad (Fall 2013) by Stanford University
The Stanford University has released a new course “Developing iOS7 Apps for iPhone and iPad by Stanford University” on iTunes 2 days ago, October 31, 2013. https://itunes.apple.com/us/course/developing-ios-7-apps-for/id733644550 So far, Lecture 1 to 4 has been released. In contrast to the previous semester, this time Paul Hegarty stresses more on the importance of … Continue Reading Developing iOS7 Apps for iPhone and iPad (Fall 2013) by Stanford University
Tested on: Mac OS X Mountain Lion MySQL Community Server 5.6.10 (installed via direct binary download from http://www.mysql.com/downloads) Type the following at the Terminal: sudo /usr/local/mysql/support-files/mysql.server start sudo /usr/local/mysql/support-files/mysql.server stop This is useful for restarting the MySQL server via the command line on Mac.
One should rewrite code for improved performance, structure and design. But how many times? In the beginning my thought was to possibly rewrite code twice. Later I found rewriting my own code three or four times made it better. This lead to very stable code and useful particularly as a … Continue Reading How Many Times Should One Rewrite Code?