1. with Web Sharing on, copy the files to /Library/WebServer/Documents

2. with Web Sharing on, copy the files to ~user/Sites

3. install and configure MAMP: http://www.mamp.info/en/index.html

4. use python to transform your project release, or any folder into a SimpleHTTPServer
see this article: http://www.macworld.com/article/140370/2009/05/pythonserver.html

a. in Terminal, cd to the folder you’d like to serve
b. activate Mac OS X’s built in Python web server: type in “python -m SimpleHTTPServer” and hit Return
c. you’ll see a message “stating Serving HTTP on 0.0.0.0 port 8000 …”
d. you can use a different port number by simply including it at the end of the command, like so: “python -m SimpleHTTPServer 8080″
e. set up a Run configuration in FlashBuilder{{ that points to: http://localhost:8000}}
f. when finished, return to Terminal and type Cntrl-C to stop the webserver{}

Tagged with:
 

My recent plunge into the world of git has been really fun. It has led me down several mysterious hallways where I have found just as many useful nuggets as unsanitary ones. After much hand-washing I have stumbled upon another universe to explore – ruby gems.

Basically, I have been trying to understand git and how to work with branches, both locally and remotely, and I found git_remote_branch, a ruby gem that enables an intuitive, single-line syntax for branch management.

What other gems await? I’m so excited!

Tagged with:
 

First, if you did not create the project with ‘create git repository’ selected, then you will need to do the following to set up your local git repo for the project:
1. terminal cd to the project directory
2. enter commands:
>git init
>git add .
>git commit -m “Initial commit”

You can now commit changes to that local repo:
1. terminal cd to the project directory
2. enter command:
>git commit -m “some incremental commit message”

To store the project in a remote repository on GitHub:
1. create the repository on GitHub (give it a name, description, readme, and gitignore)
2. terminal cd to the project directory
3. enter commands:
>git remote add origin git@github.com:yourUsername/yourRepo.git
>git push -u origin master

If you get ‘![rejected] master -> master (non-fast-forward)’, do a pull:
1. terminal cd to the project directory
2. enter command:
> git pull git@github.com:yourUsername/yourRepo.git master

To reduce typing for this repo, you can set a couple of config items:
1. terminal cd to the project directory
2. enter commands:
>git config branch.master.remote origin
>git config branch.master.merge refs/heads/master
3. now you can simply type ‘git push’

Tagged with:
 

In my iOS travels, I have found the following resources to be incredible.

Apple Developer Center for the horses mouth.
StackOverflow for the community response.
GitHub for inspiration and bootstrapping.
Lynda.com for clear, useful lessons.
iTunesU for long, in-depth lectures.

If all else fails, I shout the problem out loud for all my co-workers to hear and wait for the flurry of eager solutions : )

Tagged with:
 

Switch to our mobile site