Javascript use of “this” in OOP

I’ve been using javascript more seriously for the past 2 or 3 years, and today i decided to write on one of the most common pitfalls when trying to OOP in javascript, scope… using this can be really tricky, lets consider the following example once you have run this ill explain it a little bit further: the solution here is to pass reference to the parent object on the calling...
read more

Geocoding API

its a simple API Wrapper for both Yahoo PlaceFinder and The Google Geocoding API . I think i am going to add a new class on top of both to use a single interface for both API’s, seamlessly switching between them when the rate limit on any has been met. Google Rate limit is: 5000 Requests per IP per Day, and Yahoo offers 50,000 Requests per App per Day. ( it is unclear to me if a day is 24 hours from the moment you reach your limit or if you start fresh every new day. ) Source can be found here on github Geocoding API...
read more

Screenutil.js

is a simple javascript “object” or “class” that can be used to get the center position of your screen, it was originally created to help in displaying modal windows and making sure they are always on the middle of the page. Source can be found here on github screenutil.js...
read more

Print File size

if you ever want to know the print file size of some images ( or PDF’s like me) try using the ImageMagick `identify` tool, here is an example of what helped...
read more

New Years resolution

i know every year we try to do something cool and new, but this year ill try to keep it simple, listen to music with my last.fm app turned on so i get statistics by the end of next year, and on my holidays for next year ill make a set of visualisations, ill gather data depending on my mood, to try and print a picture of what happened and who i was I during this coming year. Lets just hope the mayans where wrong and that the...
read more

Pipe Viewer

Found a great command that shows the progress of a command its called Pipe Viewer and you can find it here. Here are some examples on usage: found on this great...
read more
Page 2 of 3123