Cocoapod Error After Computer Restart


For some bizarre reason I was getting this error after I restarted my mac.  I finally figured a way to fix the issue, maybe it’s a hack, but it works.


/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs’: Could not find ‘cocoapods’ (>= 0) among 92 total gem(s) (Gem::LoadError)

from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec’

from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem’

from /usr/bin/pod:22:in `<main>’


1.  Uninstall cocoapods – gem uninstall cocoapods

2.  Enter into command prompt – /bin/bash –login

3.  Install ruby 2.0

4. Switch to ruby 2.0

5. rvm reset

6. Reinstall cocoapods – gem install cocoapods

Helios – Could not connect to database


Error connecting to database: “PG::ConnectionBad: could not connect to

server: Connection refused

Is the server running on host “localhost” ( and accepting

TCP/IP connections on port 5432?

could not connect to server: Connection refused

Is the server running on host “localhost” (::1) and accepting

TCP/IP connections on port 5432?

could not connect to server: Connection refused

Is the server running on host “localhost” (fe80::1) and accepting

TCP/IP connections on port 5432?”

To fix this error I had to:

1) Install Postgresql on my machine using Homebrew.

2) Enter brew info postgres into the command line to receive help for postgres.

3) Run the line that this help doc said to run – postgres -D /usr/local/var/postgres

4) Then fire up Helios.

iOS Dev Tools



Developing for iOS, you end up finding some really nice tools to help make your life easier as a developer, and also that make a faster, more efficient developer.  Here’s some tools that I’ve used that have helped me tremendously.

1. Masonry

Masonry is a great tool to use for AutoLayout.  AutoLayout has some pretty frustrating aspects about it.  Masonry helps curb some of these issues.  Check it out here.

2. Cocoapods

If you’re not familiar with cocoapods yet, I pity you.  This is a must use for any iOS developer.  Here’s their description of what they do.

“CocoaPods is the dependency manager for Objective-C projects. It has thousands of libraries and can help you scale your projects elegantly.”

It’s so easy to add libraries with cocoapods.  Definitely a must have.

3. Test Flight

Pushing beta apps to your testers used to be such a pain!  Test Flight makes it so easy you’ll feel like your cheating.  Another must have.  All you need to do is upload your .ipa, which is a no-brainer, and then push it to your testers.  It’s epic!  Check it out for yourself if you haven’t yet.

4. Jenkins

With Jenkins you can run your unit test, archive, and push to Test Flight all with a few keystrokes, if you use the CLI, or with a few clicks of the mouse.

5. Chef

Chef is an automation platform that transforms infrastructure into code.” –

What does this mean?  This means that now you can write in code the set up that you desire of your server, and then create as many servers as you want all with the same set up.  It’s a pretty awesome tool.  What used to take days, can now be done in minutes.

If you use just these four tools, you’ll notice that you save tons of time on things that used to take so much longer.  Less time equals more money, for less work!

Let me know any tools you like to use personally.

There’s some good tools for Mockups in another post I wrote here.

iOS Mockups



Mockups are essential in iOS development.  You have to make sure that the customer likes the way the application looks, before you start implementing, because if you don’t, you add a lot more time to your project.

I personally love using, but there’s other great tools out there.  The blog post by Grace Smith showed a ton of them.  This list is a few of the ones that I particularly prefer.

  1. – As I mentioned, great for mockups.
  2. lucidchart – Another great tool, easy to organize all your projects, and very simple to use.
  3. – Cool because you can view on your device.
  4. – Another good example of being able to test and then share your mockups.

I didn’t want to make the list too long so you can really explore these four and see what you think!

How do you balance it all!




If you do any work for yourself, you’ve definitely asked yourself this question.  How in the world do I balance everything that I need to do?!  This can be one of the most difficult things to do, because if you don’t balance everything out, you’ll either get burned out, or the time needed for the more important things will start to slip away into non existence.  So here’s some tips that I think will help you to learn the trick like my friend the Cat in the Hat here.

1. “The plans of the diligent ones surely head for advantage” – Plan out what you’re going to accomplish every single day, and when you’re going to tackle it.  This will make sure that you handle everything as you’re supposed to, and ensures that nothing slips through the cracks.  Make sure that you also schedule in important things like spending time with friends and family too.  Those are probably the most important things that you don’t want to miss.  Make sure that you write your plan as a list too.

2. Actually stick to the plan – A plan means absolutely nothing if you don’t execute properly.  So make sure that your plan is actually achievable, and then resist the urge to not do something that you had planned out already.  Remember, reasonableness is a mark of wisdom, so again, don’t create a list that you’re not capable of completing, that will make it easier for you to stick to it.  And once your done with one item, check it off of your list.

3.  “Only two things are needed, maybe one…” – Don’t feel like you have to accomplish everything this very minute.  Break tasks up into smaller ones and spread them across a few days if possible.  A lot of times if you do this, you’ll accomplish much more than just frantically trying to complete something at one sitting.  Take your time.  Slow down, and just make sure that you do a good job.

4. Work on one project at a time – What I mean is work on one work project, one family project, one hobby, etc.  Don’t have three work projects and eight hobby projects, you’ll stress yourself out, and you won’t be able to give each tasks the attention it deserves.  If you focus on just doing a good job at a few things, you’ll be much happier in the long run.

5.  “Eat, drink, and see good for all your hard work” – This is my favorite part.  At the end of the day, relax, and just look at all that you accomplished that day.  Look at where you wrote down what you wanted to do that day, and smile at the fact that you finished the list, or at least accomplished some of the things you wanted to.  Grab some food, get a good drink, and enjoy your success.  Then go to sleep, and wake up the next day ready to repeat the process again.

I hope this helps you out some.  Fortunately I’ve had some really good friends and I have been able to receive some very good advice along my path of self-employment.  But I’ve also had to learn many things the hard way.  Hopefully this post will help you not have to go through some of the headaches that I had to experience.

3 Apps For Design Inspiration


I love design!! To me, an app needs to be simple and elegant, and nothing less should even be allowed.  Now granted, it’s difficult, and often times beauty is in the eye of the beholder, but, it’s so important.  Here are some Apps that I feel simply take the cake of simplicity, and elegance.

1. Elevatr


You guys have probably seen me mention this app in a previous post, but I just can’t get enough of it.  What makes this app so awesome.

  1. Simplicity – Everything on the screen is pretty much necessary, and when you use the app, everything is so simple and straightforward.
  2. Elegance – The app is beautiful.  The color scheme is awesome, and nothing is clashing with each other.

2.  Pinterest


I like Pinterest because once again

  1. Simple and elegant.  It’s not overly fancy, not complicated, it just does what it’s supposed to do.
  2. Loading Images – I love the way that the pins have random colors as the backgrounds while the image is loading.  That is such a nice touch.
  3. Easy to follow – You’ll notice when you use Pinterest, it’s very obvious how to do everything.  You don’t need a manual.  The UI, mainly the image selections for icons, kind of explains everything you need to know.

3. Yahoo Weather App


Does this even need any explanation.  Well I guess so.  Why do I love this?

  1. Great Font selection – The sizes and the type of font they used for everything was impeccable.
  2. Flows well –  The app is so easy to use, and they use the UI in a wonderful way to explain everything to you.  I actually like to use this weather app as opposed to many others.
  3. Image selection – You can tell they spent time finding each and every image they used, making sure that each one was just right for what they needed.  They paid close attention to every detail.

Well these are three apps that I love and just wanted to share.  Do you have any apps that you feel are beautiful.  Let me know!

When is the App is Ready?


When working with clients, and working for yourself, it can be very tough to know when the app is ready to be put on the app store. Why is that? Well as puts it,

“Building an app is a little like raising a child: first you bring it into the world, and then you help it take its first steps, watch as it learns to talk, and revel in parental pride at every little milestone along the way. It’s a great feeling. But then that scary moment arrives when it’s time for them to leave for school.”

And this is where it gets tough. You love the app, but the last thing you want to happen is for the app to go to school, aka the App Store, and fail miserably. So what do you do? Do you wait forever, making sure that every little detail is perfected to the highest levels of awesomeness. That can be easy to do, but often times not the wisest decision. Put simply here’s what you should keep in mind when deciding when the app is ready.

1. A beautiful app is a process. The likelihood of you getting it right the first shot is slim to none. Instead of wasting your time spending hours tweaking every small non-essential detail, why not get a good looking product that functions as it’s supposed, then put it on the app store.  Then you can add features, and enhance it later.  If you do this it will help you too…

2. Test the waters out – See if first of all, anyone even wants an app like this. That’s the greatest advantage of putting the app on the app store early. As you see what people are saying and their view of your app, it will allow you to make tweaks as you go. (Just make sure people know that the initial release is the beta version.)  By doing this you can answer the question…

3. Should I even be doing this? – There is a possibility that the app you’re working on is not really needed, nor wanted. It would be horrible to find that out after 1 1/2 years of working on the app. By following the steps above, you can find this out earlier, and save yourself time and headaches.

Well, I hope this helps some people. Just remember: A beautiful app is a process, test the waters out, and answer the question early, “Should I even be doing this?”

Most of this post came from, which is an awesome Mobile Development company, check out their blog post!

Design in Time


There’s something very interesting about design that’s very unique to software development, and that is its subjectiveness.  The interesting thing about graphics is that beauty is really in the eye of the beholder.  What one person may think is amazing, another may think is okay.

Now there’s nothing wrong with this, but it can become an issue when developing an application.  Why?  Because it’s hard to figure out what is in the mind of your customer, and therefore it is hard to give them just what they want without having to make a million changes during the implementation phase.  Now how can you make sure that the customer gets what they desire, but that you still finish the project in good time.  Let’s look at a few very important things to keep in mind in order to finish your designs in time.

1.  Ask! Ask! Ask! – I’d say that the most important thing to do when trying to come up with the design for a customer’s application is to ask them enough questions to gather a good idea of what they want the application to look like.  When a customer explains an application the first time, very rarely will you have enough to build a mock up.  But you have to remember, often times, a mock up is the first thing that a customer wants to see.  So how can you make sure that you have enough information after the first few conversations, preferably the first.  Ask questions like these?

  • What style best represents this company?
  • What conclusion about your company do you want people to come to after viewing this application/website?
  • What application/website do you feel has the most similar feel to the application that you want built?
  • What do you want the overall feel or atmosphere of your website to be?

2.  Mock it up – The previous step will give you a general idea of where to start. Once you have a starting point, you can actually do a few quick and simple mock ups.  Make them not too specific, and don’t spend too much time on them.  You can do this in black and white.  The purpose of this mock up is just to get the ball rolling.  Chances are the finished product won’t look anything like the initial mock ups, but it will give the client some direction to go in.

3.  Consult with the customer – This step is extremely important.  This is where you speak with the customer, and you really start to get the full idea of what the end product will look like.  The customer will most likely have a million changes that he wants.  It’s very important that you write down each and every change that they want.  Remember though, at this point you haven’t actually started building out the actual UI.  You’re still doing all mock ups using some sort of an illustrator.  Remember, DON’T ACTUALLY START IMPLEMENTATION YET.

4.  Make the changes – Make every single change that the customer asks you for.  Make sure that the mock up is beautiful and looks almost like a finished product.  Now show this to the customer.  If the customer wants changes, make sure you make the changes only to the mock up.  At this point still do not actually start implementing the UI.

5.  Finalize the mock up – Once you’ve got the actual mock up looking just right, ensure that the customer wants no more changes whatsoever.  Make it known to the customer, that this is exactly how the end product will look.  Once the customer has agreed, and he is fully aware that after this there will be absolutely no more changes, start implementing.  It’s important that the customer understands that there are to be no more changes because making changes to UI once you’ve begun implementation is a real drag and slows things down tremendously.

6.  Start implementing – Now that you’re done with the mock up.  Implement the UI.  

That was simple, wasn’t it?  It’s important that you have definite steps with something like UI, because otherwise you will be working on it forever, and both you and the customer are bound to get irritated.  So don’t forget these six simple steps and you’ll have your DESIGN IN TIME.

Installing NodeJS on Linux EC2 Instance and Viewing from a Web Browser

Web Development

I was actually pretty disappointed when I noticed that there aren’t really any good tutorials for how to install and run Node on a Linux machine.  So I thought that I would help people out here by writing something for all you facing this issue right now.  So here we go.


What do you need before you can do this?

1) Some form of an SSH client, I’m using OpenSSH for Windows.  If you’re using a Mac there is already one by default.

2) ip Address of the remote Linux Instance.  I’m using an Amazon EC2 instance running Linux.  So I get my ip address from the EC2 Management Console.

3) Your .pem file for the Linux instance.

Let’s Begin

1) SSH onto your Linux instance.

2) Run the following commands

sudo mkdir node 
cd node 
sudo wget 
sudo tar -xzf node-v0.6.6.tar.gz

3) Now you need to install the Development Tools needed to compile Node.

yum groupinstall "Development Tools"

Now install openssl-devel:

yum install openssl-devel

4) Now cd into the node folder you created ‘/node/node-vx.x.x’ and run these commands to configure and compile node.

sudo ./configure
sudo make
sudo make install

Now there’s a chance that when you uploaded your folder containing your node server and website to your Linux instance, that the folder was set to only allow super user access.  If that’s the case, you’ll see an error saying that access to your node file is denied.  Actually you won’t even be able to cd into the folder.  If that happens, simply enter in this command.

chmod -R 777 dir_name/

5) You should now be able to run node and have access to the folder and files necessary to run your app.  Navigate to the directory that contains your node file, and run this command.

node nodefile.js

You should now have your server up and running.  The only thing though is that the server can only be reached on the local machine.  What we’re going to do now is make it so that you can reach your nodejs server from anywhere.  This gets a tad bit more complicated.

Allow Remote Access From Browser to Web Server

So here’s what we need to do:

1) Open the right ports using the Amazon EC2 Management Console.  To do this, go to your EC2 Management Console, click on Security Groups, and select the Security Group you’re using for your EC2 instance.  Now you need to add a rule.  Open up port 80 (http) to allow connections from all ip addresses.

1) Good.  Now, you’re app is most likely listening on port 8080, right?  What we now need to do is set up port forwarding, from port 80 to 8080.  If you’re running on another port, then simply make a note of that in the following commands asking for the port to route to.  So first of all, run this command to see if you have port forwarding enabled.

cat /proc/sys/net/ipv4/ip_forward

2) It will most likely return 0.  If it does, that means that port forwarding is not enabled.  To enable it, enter the following command.

sudo nano /etc/sysctl.conf

If you want to you can use vim to edit this file, but that’s up to you.

3) Now change this line from

net.ipv4.ip_forward = 0


net.ipv4.ip_forward = 1

4) Now we need to enable these changes.  Enter this command to do that.

sudo sysctl -p /etc/sysctl.conf

5) Now check and make sure that port forwarding is enabled.

cat /proc/sys/net/ipv4/ip_forward

This should now return a 1.

6) Now lets set up forwarding from port 80 to port 8080.  Enter in the following command.

sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080

7) Next, let’s open the Linux firewall to allow connections on port 80:

sudo iptables -A INPUT -p tcp -m tcp --sport 80 -j ACCEPT
sudo iptables -A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT

8) Now try and enter the public ip address of your EC2 instance in your web browser, and you should see that your server is up and running!

Upload Folder from Local Machine to EC2 Instance


This was a problem that I was trying to figure out on my Windows Machine.  Here’s the steps it took for me to be able to do it.

1.  Download an SSH client.  I downloaded OpenSSH.  It’s a free download that you can get from here.

2.  Now check and see if you can SSH into your EC2 instance.   To do this, open up powershell and navigate to the folder where you store your .pem file.  This isn’t necessary, but it’s easier for the tutorial.  Now try to SSH into the instance like so.

ssh -i PemFile.pem

If it was successful you’ll see a screen that looks like this.

The authenticity of host ‘ (’ can’t be established.
RSA key fingerprint is 1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f.
Are you sure you want to continue connecting (yes/no)?

Type in yes.  And you’re logged in.

3.  Now type “exit” so you can leave your remote instance.

4.  Now here’s the command line prompt to actually copy the folder to your remote instance.

scp -i PemFile.pem -r folder/to/copy/

You’ll now see the same screen you saw before.

The authenticity of host ‘ (’ can’t be established.
RSA key fingerprint is 1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f.
Are you sure you want to continue connecting (yes/no)?

Type yes, and you’ll see the contents of the folder copying. After it’s done, SSH into your instance and check to see if your folder is where you wanted it to be.

And that’s it!