Getting Set Up with Your Projects on Github

So you want to use git to manage your projects? Make sure you’ve installed git: https://help.github.com/articles/set-up-git To make a new repo: https://help.github.com/articles/create-a-repo Once you’ve created the repo on github follow the “next steps” it gives you. There are just a bunch of one liners you can enter into your terminal. If the repo already exists? cd {to the directory where you wan

Cinder Problems Compiling/Building Kinect Library

For those of you with  this problem “‘Obj’ is a protected member of ‘cinder::Kinect’”. You’ve got a couple build settings that need to be updated Here’s scenerio. You’ve installed Cinder, installed Cinder Kinect library (https://github.com/cinder/Cinder-Kinect) in blocks and rebuilt. Now you’re getting build errors when you try to run the sample projects. Here’s what I did: Changed the default SDK

Get redis to work on heroku

if you’ve tried to install toolbelt and then run redis but following these instructions: https://devcenter.heroku.com/articles/nodejs Then you know that you can just run redis. It errors out wit a message: Redis connection to 127.0.0.1:6379 failed – connect ECONNREFUSED something like that… follow this instead: https://devcenter.heroku.com/articles/redistogo#using-with-node so install x-code command line tools from x-code preferences. then download redis: http://redis.io/download then follow these instructions: http://jasdeep.ca/2012/05/installing-redis-on-mac-os/ to

Multiple ssh keys with heroku

http://www.karan.org/blog/index.php/2009/08/25/multiple-ssh-private-keys read it Also, if you’re having problems with multiple ssh keys there a solution here: http://stackoverflow.com/questions/8786564/cannot-push-to-heroku-because-key-fingerprint Look for the one that talks about modding your .git/config file Or if you don’t want to deal with all that: http://martyhaught.com/articles/2010/12/14/managing-multiple-heroku-accounts/

How the fuck does vertical align work?

I normally don’t curse online since it gets saved to the ether of the universe and will forever haunt me if I try to go into politics…but this question probably gets asked on google a thousand times a day and I want some search engine traffic. So there. Anyway, read this: http://css-tricks.com/vertically-center-multi-lined-text/ And remember to give the table a height if

Javascript Objects: Survival 101

So there are a lot of ways to create an object in Javascript. If you have some helper functions that should be called statically from time to time all over your script you might do something like this: var myObjectLiteral = { variable1: “my variable”, function1: function() { return this.variable1; } }; Think of object literals as a toolbox for

Failed to Load an Image? Load a Default

I know I know, before I even get started most of you are thinking this is pretty beginner stuff. But it’s good to refresh every once in a while. Here’s how I do it: <img src=”profile-photo.jpg” alt=”profile” onerror=”this.src=’default.jpg'” /> The important part is the “onerror=” that basically says if we get an error instead of the photo, change the image

CakePHP Hints 1.0: A Refresher

Hey all, as usual I don’t have a whole lot of time to explain myself or go into detail. I’ve been getting back into cakephp and I’ve forgotten so much shit that I’m finding it useful to log all of this stuff. As a result, here’s what to remember if you’re just getting started with cakephp (again…). Hint #1: In

Running PHP from XAMPP manually through Terminal

I have been spending some time with CakePHP today and in order to execute php through the terminal to get it to connect to XAMPP’s correct mysql port, I need to run terminal. The problem is if you execute plain old php in terminal like “php –info” or “which php” you’ll get a response from the default installation of PHP

cURL won’t work locally

We setup up two brand spankin’ new installations of XAMPP on two computers here at work and tried to run a PHP script that uses cURL to get some facebook data…. Low and behold it didn’t work, but when I loaded it on my old machine and the server everything was fine! My first thought was to check and make