josh.code

Posts

node.js, socket.io, and redis: Beginners Tutorial Server side

node.js, socket.io, and redis: Beginners Tutorial  Server side
This is a simple application that I have used to try my hand at node.js, socket.io, and redis. The idea came from a co-worker who asked me if I could build an application to collect the votes of our other co-workers to determine where to eat. An initial inspiration came from geoloqi through a game they created. It introduced me to using node.js, socket.io, and redis together to keep multiple browsers in sync.


Facebook SDK Login for Zend Framework Tutorial part 2

AuthController The controller is called from a route. The path /oauth maps to the oauthAction and /ajax maps to the ajaxAction. The main difference between these two actions is how they respond. Oauth redirects the page and ajax responds in JSON. init() The init() function is run every time the controller loads before any actions. This is a great place to put code that is shared between all actions.

Facebook SDK Login for Zend Framework Tutorial

Zend Framework Setup This is a basic Zend Framework 1.11 install. I did make a few modifications to it. Because one of the authentication methods is OpenId using Google you have to patch the Zend_Openid_Consumer. You can see this why in the Zend Framework issue browser. The other is a way to read attributes from OpenID. This was written by Chris Bisnett. That is the only modifications to the core of Zend Framework.

Google Event Tracking

I will talk about event tracking in Google Analytics today. Almost everyone has heard of Google Analytics and I am guessing you are currently using it to track page views. All you have to do is pop a little javascript on your page and you have hundreds of ways to view the traffic your site receives. If you are not using event tracking though, you are missing out on quite a few data points.


My new Desk

I previously had a spot in the basement where I had my desk setup to write code. My wife and decided to remodel our two upstairs bedrooms. After a lot of work and a trip to Ikea I now have this room to write code.

HTML 5 run tracking application

HTML 5 run tracking application
An idea that I have had for awhile is a RunKeeper like application that runs completely in the browser. This is not due to any inherit issues with the RunKeeper application, just more of a proof-of-concept. HTML 5 makes this easy. We can save old runs and run without an Internet connection making it almost a native app. The only phone I have tested this with is an iPhone 4S as that is the only phone I have access to.

Facebook SDK and Backbone Final Post

I will show how to deal with paged data and some other tricks Paged Facebook Data Let’s use photos for example. To see what would be returned for an API call to /me/photos we will use the Graph API explorer. You will see that there are two top level keys data and paging. Inside of data is all the information about each photo. In the lofPictureView I loop through the photos adding them to the page

Google Music, I mean Play, as an App on Windows 7

I have been using Google Music ever since I was able to get an account. I have already synced all the my music to it. It works great in my browser. I have one issue though. This: It becomes just another tab in my browser. It could even be just another tab in just another instance of Chrome. This is a pain. A song I don’t like comes up and I want to go to the next or my phone rings and I need to pause the song.