Gitty for GitHub

Today is a special day for me as I get the privilege to announce the release of Gitty for GitHub. Gitty is everything you love about GitHub right in your pocket. Access all of your Issues, Repositories and even search for new ones. I hope that Gitty becomes your go to way to use GitHub on the iPhone or iPod Touch.

If you are interested in checking it out you can purchase your copy here.

No app is released without the countless help of others so I have a few thank you’s.

  • God for giving me the talent and breath to create.
  • My wife and family for allowing me free time to make this beautiful product.
  • My team of testers who were awesome throughout the process in providing feedback and bug reports.
  • All of the open source projects listed in the application that helped make it great.
  • GitHub for making a great product that millions of developers love to use daily.
  • Apple for creating a great device and ecosystem for developers.
  • Shaun Moynihan for a great app icon.

Some Gitty statistics:

  • 402 commits, first was on 4/6/2013
  • 65,148 lines of code
  • 122 issues by 10 testers
  • 19 PR’s
  • 1 Developer

I plan on doing a series of posts in the future talking about how I built Gitty. Stay tuned and happy GitHubbin’

A .NET Developer in an iOS World

Last night I had the wonderful opportunity of speaking at a local user group about iOS Development from a .NET Developer’s prospective. iOS Development can be pretty intimidated, but last’s night goal was to encourage everyone to give it a shot with some nice steps of making that easier.

If you are interested in checking out the slides, you can do so here.

Here are a list of links I mentioned in my talk last night:

Resources

Open Source

If you have any questions, feel free to leave a comment or send me a tweet on Twitter – @strickland

Enjoy!

Free WordPress Hosting with Heroku

Note: Before you get started hosting your next WordPress site for free, you will need to know how to use Git and Heroku.

Hosting WordPress on Heroku is not only free but easy thanks to this repository on GitHub. By completing the following steps you will end up with a free WordPress site hosted on Heroku using Postgres for the backend instead of MySQL. If you have any questions, feel free to ask in the comments or send me a message on Twitter.

Installation

Clone the repository from Github

$ git clone git://github.com/mhoofman/wordpress-heroku.git

With the Heroku gem, create your app

$ cd wordpress-heroku
$ heroku apps:create mycoolsite
> Creating mycoolsite... done, stack is cedar
> http://mycoolsite.herokuapp.com/ | git@heroku.com:mycoolsite.git
> Git remote heroku added

Add a database to your app

$ heroku addons:add heroku-postgresql:dev
> Adding heroku-postgresql:dev to strange-turtle-1234... done, v2 (free)
> Attached as HEROKU_POSTGRESQL_COLOR
> Database has been created and is available
> Use `heroku addons:docs heroku-postgresql:dev` to view documentation

Promote the database (replace COLOR with the color name from the above output)

$ heroku pg:promote HEROKU_POSTGRESQL_COLOR
> Promoting HEROKU_POSTGRESQL_COLOR to DATABASE_URL... done

Create a new branch for any configuration/setup changes needed

$ git checkout -b production

Copy the wp-config.php

$ cp wp-config-sample.php wp-config.php

Clear .gitignore and commit wp-config.php

$ >.gitignore
$ git add .
$ git commit -m "initial commit for wordpress"

Deploy to Heroku

Deploying your site to Heroku is fairly simple. Because you are working in the production branch and you want your code to live in master branch on Heroku, you will issue the following command.

$ git push heroku production:master
> -----> Heroku receiving push
> -----> PHP app detected
> -----> Bundling Apache v2.2.19
> -----> Bundling PHP v5.3.6
> -----> Discovering process types
>        Procfile declares types -> (none)
>        Default types for PHP   -> web
> -----> Compiled slug size is 24.9MB
> -----> Launcing... done, v5
>        http://mycoolsite.herokuapp.com deployed to Heroku
>
> To git@heroku:mycoolsite.git
> * [new branch]    production -> master 

After deployment, navigate to your url that you setup and walk through the normal WordPress installation steps.

Updating

Inevitably you are going to want to update your installation of WordPress as time goes on. The maintainer of this repository is pretty timely in updating it for future releases of WordPress. You will want to watch this repository for updates on GitHub and then follow these steps to update your installation.

$ git pull origin master # Get the latest

Using the same branch name from our installation:

$ git checkout production # Checkout your local branch
$ git merge master # Merge latest
$ git push heroku production:master # Update Heroku with your local changes.

WordPress needs to update the database. After push, navigate to:

http://your-app-url.herokuapp.com/wp-admin

WordPress will prompt for updating the database to correspond to the newest version and then you’ll be finished.

Adding Themes and Plugins

Adding Themes and Plugins to your WordPress site that is hosted on Heroku is simple. First add the folder for your theme or plugin to the appropriate directory ~/wp-content/themes || ~/wp-content/plugins. Next you will need to commit your changes to your local git repository and then deploy to Heroku.

$ git add --all
$ git commit -m "adding my cool theme/plugin"
$ git push heroku production:master

Custom Domains

Heroku allows you to add custom domains to your site hosted with them. To add your custom domain, enter in the follow commands.

$ heroku domains:add www.example.com
> Added www.example.com as a custom domain name to myapp.heroku.com

You’ll also want to cover the non “www” side of the url.

$ heroku domains:add example.com
> Added example.com as a custom domain name to myapp.heroku.com

Once Heroku recognizes your custom domain(s) you’ll then need to setup separate DNS A records for the following ip addresses to point to your domain:

75.101.163.44
75.101.145.87
174.129.212.2

Once the DNS A records propagate, then simply test out your change by hitting the url in the browser to make sure you are good to go. If you are in need of cheap DNS hosting then I would recommend DNSimple.

The last step is updating your WordPress installation to recognize the new domain. You’ll need to open up the WordPress Admin Dashboard and go to Settings –> General. From there just update the URL for the WordPress address and you’re done.

If you find yourself running into problems, there is a guide posted in the Heroku Docs which can be found here.

Summary

I hope this post on helping you get free WordPress hosting on Heroku up and running was helpful. If you found this useful, please feel free to share this article with your friends and followers. Thanks!

Easily run Ruby tests with Sublime Text 2

One of my favorite text editors is Sublime Text 2. Not only does it provide great syntax highlighting but it also allows you to execute bash commands from the program. In this blog, I want to walk you through how to setup Sublime Text 2 to easily run your Ruby tests.

Installation

First you will need to install Sublime Text 2 which you can download here.

Next, go to your Sublime Text 2 Packages directory

  • OS X: ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
  • Windows: %APPDATA%/Sublime Text 2/Packages/
  • Linux: ~/.config/sublime-text-2/Packages/

and clone the repository using the command below:

$ git clone https://github.com/maltize/sublime-text-2-ruby-tests.git RubyTest

Color Setup

Edit the file “Theme – Default/Widget.sublime-settings” in the Library/Application\ Support/Sublime\ Text\ 2/Packages directory:

$ subl "Theme - Default/Widget.sublime-settings"

In that file, change

"color_scheme": "Packages/Theme - Default/Widgets.stTheme"

to

"color_scheme": "Packages/RubyTest/TestConsole.tmTheme"

Usage

  • Run single ruby test: Command-Shift-R
  • Run all ruby tests from current file: Command-Shift-T
  • Run last ruby test(s): Command-Shift-E
  • Show test panel: Command-Shift-X
  • Check RB, ERB file syntax: Alt-Shift-V
  • Switching between code and test:
    • Single View: Command-.
    • Split View: Command+Ctrl+.

Keys: ‘Command’ (OSX) ‘Ctrl’ (Linux / Windows)