← Back to blog home

Archive for the ‘Guides’ Category

Using git to deploy to live server based on branch aka how to git push to server

02 Dec

I often see people asking how to push their changes to the dev or live server. I agree with the common sentiment that you should probably use a proper deployment script, but I also think for most simple sites git is fairly sufficient.

To accomplish this I made a git hooks script that executes a pull from the appropriate web root depending on the branch.

Read the rest of this entry »

 
No Comments

Posted in Guides

 

non-fast-forward updates were rejected Merge the remote changes before pushing again

02 Dec

When I first switched from a centralized version control to decentralized (or distributed) version control I ran in to this error:

non-fast-forward updates were rejected Merge the remote changes before pushing again

 Well,

you just have to –force or use a bare repository they told me.

First of all, don't –force. If you just started using git you almost certainly should never need to use the –force command. If you come across something that requires it there is a good chance that you simply don't quite understand git yet.

Read the rest of this entry »

 
 

Dirt cheap diy adjustable projector ceiling mount

22 Oct

I got a new projector a couple of days ago and I needed to get it mounted. My original idea was to put up a shelf and just set the projector on that, but I didn't want to sacrifice wall space. I looked at some adjustable ceiling mounts on Amazon, but most of them looked really cheap or were way to expensive (no middle ground). I had a cheap one for my last projector and I found myself needing to re-aim and re-focus the projector almost every time I used it. So I decided I could do better.

Read the rest of this entry »

 
No Comments

Posted in DIY, Guides

 

Get Facebook Access Token for Graph API

07 Jun

Facebook recently updated their Graph API to require an oAuth access token. Here is a quick guide that explains the easiest way to create an access token for your site.

Read the rest of this entry »

 
 

Easy way to load Facebook news feed through RSS / atom10

05 Jun

Until recently you could import your facebook news feed using a json feed available through the Facebook Graph API without needing to set up an oAuth token. Unfortunately, facebook pulled the rug out from under us all when they started requiring oAuth tokens on the basic graph API. This caused many sites to start receiving the following error: "OAuthException An access token is required to request this resource." Pretty annoying. I was ready to jump through facebook's hoops and create a facebook app dedicated to providing access to the news feed when I realized each page has an rss feed built right in. IMO it's not AS good as the data from the graph API but for most situations it will get the job done.

Read the rest of this entry »

 
14 Comments

Posted in Guides

 

Testing live sites before switching DNS / pointing the domain name

07 May

So, you're ready to launch your site. You've got it all set up on the production server and all you need to do is log in to your domain host and point the domain at your new server and hope everything is working. Hope everything is working? Yes, that seems to be how most developers think. I've encountered several people who use this method for launching a site.

Fear not friends there is a simple solution that will allow you to fully test your site on the live server before switching the DNS to make it live to the rest of the world.

Read the rest of this entry »

 
No Comments

Posted in Guides

 

Get latest status from facebook fan pages in PHP (part 2: multiple entries)

27 Dec

This is a very simple way to get the latest posts from a facebook fan page. I previously wrote a VERY simple guide that just returns the latest single post (as this is all people want a lot of the time). If that is what you are looking for read this guide instead. By popular demand I created this  additional tutorial that will show you how to display the latest 10 posts and display them with date. Also, this code will filter out things posted on your wall by other people and display ONLY things the owner of the facebook page posted.

Read the rest of this entry »

 
19 Comments

Posted in Guides

 

Adding auto-fire to a computer mouse (555 timer)

23 Dec

Remember the auto-fire (turbo) button on old video game controllers? This project adds an auto-fire button to a mouse for use with video games or just clicking random things quickly (if thats what you're in to) using no more than a 555 timer, a capacitor and a couple resistors. My goal was to create it as cheaply as possible and without interfering with the normal functionality of the mouse.

Read the rest of this entry »

 

Install GCC compiler on the Netgear Stora

18 Nov

Installing GCC on your netgear stora will allow you to compile C / C++ code which is needed to create your own applications / scripts or if you want to install anything that requires your to compile it from source. This setup is dependent on first getting root access to your stora and setting up a repository. From there it is extremely easy to install a compiler on your netgear stora.

Read the rest of this entry »

 
1 Comment

Posted in Guides

 

Setup Repository on Netgear Stora

18 Nov

This guide will show you how to set up ipkg (Itsy Package Management System) on your netgear stora. By the end of this article you will have full access to this repository which will allow you to install pretty much anything you want on your Netgear stora.

Read the rest of this entry »

 
3 Comments

Posted in Guides