Mar 23, 2013

[Solved] File to import not found or unreadable: compass/css3

Posted Mar 23, 2013
I'm on Windows 8 and I tried installing sass and compass and when I tried "compass watch" on an existing project which has an "@import "compass/css3";, I got an error:  File to import not found or unreadable: compass/css3

The solution is to install rails-compass

gem install compass-rails

After that "compass watch" now worked.

Mar 14, 2013

Convert Twitter's created_at to Javascript Date

Posted Mar 14, 2013
There are several solutions found on the web to parse Twitter's date, but some seems outdated, maybe Twitter changed its date format. But as of March 2013, the code below works:

function parseTwitterDate(aDate)
{   
  return new Date(Date.parse(aDate.replace(/( \+)/, ' UTC$1')));
  //sample: Wed Mar 13 09:06:07 +0000 2013 
}

Source