Gearing for Drupal 7 Release Party in 2011 at IIT, Delhi (8-9 Jan)

Originally posted on £earn €arn and $hare:

Hello Diary!

So from where should I start. To celebrate the spirit of community and the new year;

It was so necessary for Drupal’s  think tanks to let the new year celebrate with no better than Drupal 7 Release party.

And see the map here

The Drupal smiles all across the world. And the date decided was 7th Jan 2011. But every region celebrating to its convenience, gathering, collaboration so date been adjusted accordingly.

Folks here in NCR region are also doing there part to gain KARMA points. Toing!

Diary,  I will also be presenting on Day 2 and hoping not to screw noobs around me :P

Picking up a session outline which is comfortable to both experienced and new comers was not at all easy to me.

But then spending some quality hours on weekend was able to do some favor to learners and to me.


View original 187 more words

The JavaScript Comma Operator

Originally posted on JavaScript, JavaScript...:

(на русском, 日本)

Let’s begin with a funny tweet:

The ‘c’ at the end is for the lowly comma operator. Last in the line of operator precedence and rarely documented, the comma operator hides its light under a bushel. It may not be a JavaScript heavy-hitter but I like it anyway. Its simple, elegant and you should make it your friend. So, here we go – more than you’ll ever need to know about JavaScript’s bashful hero:

View original 902 more words

If Hemingway Wrote JavaScript: Explained.

Originally posted on JavaScript, JavaScript...:

I wrote a book called If Hemingway Wrote JavaScript in which I imagine 25 famous novelists, poets and playwrights solving simple problems in JavaScript. It’s part homage to my favorite writers and part love letter to JavaScript, the only language I know with enough freedom, creative potential and downright quirkiness to pique the interest of the literary greats.

Screen Shot 2015-01-04 at 4.33.55 PM

This post contains original material that’s not in the book (think of it as one of those “behind the scenes” bonus features). It’s the first in a series of deep technical dives into each author’s solution. Some solutions require more explanation than others.


View original 1,603 more words

Extending JavaScript Natives

Originally posted on JavaScript, JavaScript...:

Most built-in JavaScript types are constructors whose prototypes contain the methods and other properties that define their default behavior:

You can’t delete or replace a native prototype, but you can edit the values of its properties, or create new ones:

Et voila! Our code gets a useful array extension for free. However if you brag about doing this in production code, expect to get pummeled by a wave of fierce disapproval. Some of it carries weight. Let’s sift the danger from the dogma and try to reach an honest conclusion:

View original 1,946 more words

A fresh look at JavaScript Mixins

Originally posted on JavaScript, JavaScript...:

(Russian, Japanese)

In this article I’ll explore JavaScript mixins in detail, and introduce a less conventional, but to my mind more natural mixin strategy that I hope you’ll find useful. I’ll finish up with a profiler matrix summarizing the performance impact of each technique. [A big Thank You to the brilliant @kitcambridge for reviewing and improving the code on which this blog is based!]

View original 1,236 more words

Maps example with Google Maps and Nodejs

Originally posted on Prash's Blog:

This is a short piece of code to show maps in a nodejs application.

We will need some 3rd party modules, so install these modules

  • EJS is a dependency for Express.
  • Express is a framework ExpressJS built on top of ConnectJS, it allows robust routing, view rendering, and templating. ExpressJS Details here.
  • GeoHash module is needed to convert geohashes to latitude and longitude coordinates. Geohash is used to uniquely identify a geographical point, it uses latitude and longitude to create a composite string that can be transmitted, stored. Datastores that do not have strong spatial indexing support, geohashes can be used. But having said that, in our application below, there is nothing stopping you from directly entering lat and lon coordinates in url querystring, it is just that geohashes will make the url shorter. Just to note that with a geohash you can trim characters from the right side…

View original 128 more words

Webapplications with node.js – Jade

Originally posted on iPROFS Technology Blog:

In my previous post I described how you can install node.js and how to use express.js to create a webapplication for the node.js server. Now it is time to look into the templating engine – Jade – that express uses for outputting html to the browser.

As I did not have any knowledge yet of jade, it was time for me to do a quick study of jade. As a lot of github projects, the initial documentation is rather sparse, since it only showed an example of the jade template language will be translated into html. But luckily clicking on the github fork ribbon showed some more documentation on github. Basically it looked pretty easy, it’s just html with indentation meaning something and with all the >’s and <‘s. replaced by ‘(‘ and ‘)’. At least that makes it easier to type in html

View original 1,175 more words