Major upgrade to Evernote Clipper for Google Chrome

I am a huge fan of Evernote for a few years now, and one of the reasons behind my support is the Clipper.  Instead of just saving the bookmarks the old (Delicious?) way, Evernote allows to save full or partial pages.  With this, even if the original site removes content or disappears completely, you’d still have the clip in your notes.

A couple of days ago Evernote announced that they are releasing an updated version of the Clipper for Google Chrome.  Here is the quick video with some new features.

[youtube=http://www.youtube.com/watch?v=Rq_mEcWvCik]

It looks like they’ve merged in some of the functionality of their other applications and browser extensions, such as Clearly – a browser extension that can cleanup noisy pages leaving just the content of the article to read, and Skitch – a simple annotations and graphical editing tool.  While it sounds complicated, the functionality actually makes sense.

There are also some other new features, such as setting reminder on the note directly from the Clipper (rather than from the Evernote), and a Share button.  When all is combined, it makes Evernote into a really powerful too.  For example, emailing someone an annotated screenshot is now a quick task of just a few clicks.

Very, very handy tool!

Beautifying PHP’s json_encode() output

I’ve been working a bit more with PHP and JSON recently and one of the things that annoyed me quite a bit was the single line output of the json_encode() function.  Here is an example:

<?php
$data = array(
'foo' => 'bar',
'bar' => 'qux',
'blah' => 'blah',
);

echo json_encode($data);
?>

Poorly readable result (imagine having larger, more complex data structures like nested arrays):

{"foo":"bar","bar":"qux","blah":"blah"}

Apparently, since PHP 5.4.0 it became much easier to optionally format the output with some indentation.  json_encode() function has an $options parameter, which was given an extra option – JSON_PRETTY_PRINT.  Here is an updated example:

<?php
$data = array(
 'foo' => 'bar',
 'bar' => 'qux',
 'blah' => 'blah',
);

echo json_encode($data, JSON_PRETTY_PRINT);
?>

And an updated output:

{
 "foo": "bar",
 "bar": "qux",
 "blah": "blah"
}

Very handy for debugging and for those bits of JSON that should be editable by hand.