josh.code

Posts

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

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.

Facebook SDK with Backbone pt 3

Finally we are getting to the backbone of this app Backbone Backbone is a javascript library that creates an MVC(Model, View, Controller) structure. Earlier I said this was not a great tutorial and that is because we are only using the view and controller portions of backbone. The model is coming from Facebook. We probably could abstract this out and create a backbone model for Facebook, but I chose just to use the Facebook API directly.

Facebook SDK using only javascript – pt 2

This part will cover setting up the Facebook SDK, initializing the SDK, and getting users authenticated. Facebook SDK setup We covered this in the last post, but I will touch on it again. We are going to use XFBML. Facebook used to have FBML, but they have deprecated this. We use XFBML to create the login button. If you look at Facebook’s Social Plugins you will see that you can implement many of them through the javascript SDK and XFBML.

Facebook SDK using only javascript pt 1

It uses javascript and only javascript Setup your Facebook App First thing you will need to do is to create an app through Facebook. Start at the Facebook Developers site. There will be a button to create a new app. A modal window will popup. Fill this out. You may have to play with the App namespace to find something that isn’t taken. You now will have to fill out the App Domain and Site URL.

Pixelize photos with HTML 5 canvas and Javascript

What would a browser look like on the NES? The canvas element Canvas is a new element that was part of HTML5. Canvas opens a lot of doors in HTML5 and there are a lot of amazing examples of what is possible with the canvas element, but we are only using a small portion of it’s capabilities. We can add a canvas to a web page very easily <pre class="brush: xml; title: ; notranslate" title=""><canvas id="myCanvas" width="500" height="500">Fallback content</canvas> We can now manipulate it with Javascript.