javascript

TwitterFacebook
Get flash to fully experience Pearltrees
This module implements version 1 and 2c of the Simple Network Management Protocol (SNMP) . This module is installed using node package manager (npm) : It is loaded using the require() function: var snmp = require ( "net-snmp" ); Sessions to remote hosts can then be created and used to perform SNMP requests and send SNMP traps or informs: var session = snmp . createSession ( "127.0.0.1" , "public" ); var oids = [ "1.3.6.1.2.1.1.5.0" , "1.3.6.1.2.1.1.6.0" ] ; session . get ( oids , function ( error , varbinds ) { if ( error ) { console . error ( error ); } else { for ( var i = 0 ; i < varbinds . length ; i ++ ) if ( snmp . isVarbindError ( varbinds [ i ] ) console . error ( snmp . varbindError ( varbinds [ i ] ) else console . log ( varbinds [ i ] . oid + " = " + varbinds [ i ] . value ); } }); session . trap ( snmp .

stephenwvickers / node-net-snmp

https://bitbucket.org/stephenwvickers/node-net-snmp
Public constructors are problematic for a number of reasons, but chief among them for me is that they couple the calling code to the constructor implementation. In other words, it forces you to break the open/closed principle . Later on, if you need to make your object instantiation polymorphic, you’ll end up invalidating all of the code that used new directly. You might want to create a function that acts a bit like a constructor function, only it’s capable of returning multiple types of objects which will satisfy the contract of the interface (this is a lot like the purpose of an abstract class in other OO languages). This design sensibility is true in all OO languages (several of the GoF design patterns address this very issue), but in JavaScript, it gets even worse. http://ericleads.com/2012/09/stop-using-constructor-functions-in-javascript/

Stop Using Constructor Functions in JavaScript | Eric Elliott - JavaScript Architect (A JavaScript Blog)

Harmony of Dreams Come True | Brendan Eich

https://brendaneich.com/2012/10/harmony-of-dreams-come-true/ This blog focuses on portions of the new-in-ES6 stuff I presented in my Strange Loop 2012 closing keynote , which was well-received ( reveal.js -based HTML slides, some from my Fluent 2012 keynote, many of those originally from Dave Herman ‘s Web Rebels 2012 talk [thanks!], can be viewed here ; notes courtesy Jason Rudolph ). UPDATE: the Strange Loop keynote video is up. I blogged early in 2011 about Harmony of My Dreams , to try to fit in one page some dream-sketches (if not sketchy dreams — the # -syntax ideas were sketchy) of what I thought were the crucial elements of ECMAScript Harmony , the name I coined for the standardized future of JavaScript. Now this dream is coming true, not just in ES6 draft specs but in prototype implementations in top browsers. Here I’ll tout Firefox 15 , which released almost six weeks ago (yes, this means Firefox 16 is tomorrow, and Firefox 17 beta and 18 aurora too — these all have yet more new goodies in them — isn’t Rapid Release fun?).
http://cr.openjdk.java.net/~briangoetz/lambda/lambda-state-4.html December 2011 4th edition This is an informal overview of the enhancements to the Java programming language specified by JSR 335 and implemented in the OpenJDK Lambda Project .

lambda-state-4

Mousetrap. bind ( '4' , function () { highlight ( 2 ); }); Mousetrap. bind ( 'x' , function () { highlight ( 3 ); }, 'keyup' ); Mousetrap. bind ( 'command+shift+k' , function (e) { highlight ([ 6 , 7 , 8 , 9 ]); return false ; }); Mousetrap. bind ([ 'command+k' , 'ctrl+k' ], function (e) { highlight ([ 11 , 12 , 13 , 14 ]); return false ; }); Mousetrap. bind ( 'g i' , function () { highlight ( 17 ); }); Mousetrap. bind ( '* a' , function () { highlight ( 18 ); }); Mousetrap. bind ( 'up up down down left right left right b a enter' , function () { highlight ([ 21 , 22 , 23 ]); }); Introduction Mousetrap is a standalone library with no external dependencies. It weighs in at around 1.7kb minified and gzipped and 3kb minified. What are you waiting for? Throw away your mouse and download it now .

Mousetrap - Keyboard shortcuts in Javascript

http://craig.is/killing/mice

Walrus

A bolder kind of mustache. View this readme on documentup . About Walrus is a templating library inspired by mustache , handlebars , ejs and friends, but with a couple of important differences in philosophy and style: View logic is different than business logic (and that's okay!). http://documentup.com/jeremyruppel/walrus/
http://smus.com/mouse-touch-pointer/ Mouse will soon cease to be the dominant input method for computing, though it will likely remain in some form for the forseeable future. Touch is the heir to the input throne, and the web needs to be ready. Unfortunately, the current state of input on the web is... you guessed it: a complete mess!

Generalized input on the cross-device web | Boris Smus

It’s official! We’re getting a new function syntax! The TC39 group (the panel charged with delivering ES 6) has reached consensus on an abbreviated syntax for JavaScript function expressions. Its popularly known as the fat arrow syntax, and is based on a similar construct found in CoffeeScript. Make no mistake, I’m delighted that we will finally have an alternative to the unnecessary clunkiness and verbosity of the present grammar, but I can’t shake a nagging feeling that this proposal (in its current form) is flawed to the extent that it might actually make new developers more confused than they already were.

JavaScript Fat City « JavaScript, JavaScript…

https://javascriptweblog.wordpress.com/2012/04/09/javascript-fat-city/
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html Ruby has taken over the ninth position of Perl. Thanks to this Ruby is now the third interpreted programming language that leaves Perl behind. The other two are PHP and Python. Is Perl on its way out of the top 10? Time will tell.

TIOBE Software: The Coding Standards Company

There are a few threads available on the web with regard to how to test if a font is installed on a client machine, but I'm not satisfied with any of those that I found. The reason being that they each seem to use a single common font as a baseline measurement and compare the dimensions of some reasonably complex string rendered in the common font against the same string rendered in the test font. This irks me for a number of reasons: http://lucassmith.name/2009/05/test-if-a-font-is-installed-via-javascript.html

Test if a font is installed via JavaScript : ls.n

guybrush's gist: 1749439

var assert = require ( 'assert' ) var op = require ( './' ) var result = op ( this , 'foo.bar' , 'blub' ) assert . equal ( this . foo . bar , 'blub' )

zui53 @ GitHub

ZUI53 is a JavaScript Library to create powerfull webbased Zoomable User Interfaces (ZUIs) with new technologies like HTML5 and CSS3. Demos Scroll Mousewheel to zoom.

URI.js

URI.js is a javascript library for working with URLs. It offers a "jQuery-style" API ( Fluent Interface , Method Chaining) to read and write all regular components and a number of convenience methods like . directory () and . authority (). URI.js offers simple, yet powerful ways of working with query string, has a number of URI-normalization functions and converts relative/absolute paths. While URI.js provides a jQuery plugin . URI.js itself does not rely on jQuery.

JigLibJS2 Javascript 3D Physics Engine

JigLibJS2 Javascript 3D Physics Engine Javascript port of JiglibFlash (which is a port of c++ JigLib). The code is generated automatically from the AS3 code so all functionality should work exactly like the AS3 version.

language-detection - Language Detection Library for Java

This is a language detection library implemented in plain Java. (aliases: language identification, language guessing) Generate language profiles from Wikipedia abstract xml Detect language of a text using naive Bayesian filter 99% over precision for 53 languages 01/12/2012 Migrate the repository of language-detection from subversion into git for Maven support 09/13/2011 Add language profile of Estonian, Lithuanian, Latvian and Slovene. Support retrieving a list of loaded language profiles as getLangList() ( issue 20 ) support generating a language profile from plain text ( issue 23 ) Fixed a bug of issue 21 . 02/02/2011 fixed bugs (no profile directory / long text detectation) 01/24/2011 4x faster detection (thanks to elmer.garduno ) 12/22/2010 Support Apache Nutch's plugin 11/18/2010 Provide a package file. import java . util . ArrayList ; import com . cybozu . labs . langdetect .
mootools