Authenticate and request a user’s timeline with Twitter API 1.1 oAuth

Here is what I did to get this working in a simple example. I had to generate an oAuth consumer key and secret from Twitter at: https://dev.twitter.com/apps/new I deserialized the authentication object first to get the token and type back in order to authenticate the timeline call. The timeline call simply reads the json as … Read more

What’s the shebang/hashbang (#!) in Facebook and new Twitter URLs for?

This technique is now deprecated. This used to tell Google how to index the page. https://developers.google.com/webmasters/ajax-crawling/ This technique has mostly been supplanted by the ability to use the JavaScript History API that was introduced alongside HTML5. For a URL like www.example.com/ajax.html#!key=value, Google will check the URL www.example.com/ajax.html?_escaped_fragment_=key=value to fetch a non-AJAX version of the contents.

Find objects between two dates MongoDB

Querying for a Date Range (Specific Month or Day) in the MongoDB Cookbook has a very good explanation on the matter, but below is something I tried out myself and it seems to work. items.save({ name: “example”, created_at: ISODate(“2010-04-30T00:00:00.000Z”) }) items.find({ created_at: { $gte: ISODate(“2010-04-29T00:00:00.000Z”), $lt: ISODate(“2010-05-01T00:00:00.000Z”) } }) => { “_id” : ObjectId(“4c0791e2b9ec877893f3363b”), “name” … Read more

tech