Tuesday, February 14, 2012

W3C DOM Level 2 version 1.0 - Java API: Interface HTMLUListElement

W3C DOM Level 2 version 1.0 - Java API: Interface HTMLUListElement: "org.w3c.dom.html2
Interface HTMLUListElement

"

'via Blog this'

Increase font size chrome console - Stack Overflow

Increase font size chrome console - Stack Overflow: "body.platform-linux .monospace, body.platform-linux .source-code {
font-size: 11px !important;
font-family: dejavu sans mono, monospace;
}"

'via Blog this'

Backbone.js: Getting The Model For A Clicked Element | ThoughtStream.new :derick_bailey

Backbone.js: Getting The Model For A Clicked Element | ThoughtStream.new :derick_bailey: "If you’re dealing with a large number of models you may run into performance problems having to instantiate a new view for every object.  I haven’t found a good rule of thumb yet to say when you’ll run into problem, but I’m going to guess that you would need hundreds if not thousands (or more) of models and views in memory to cause serious performance problems. This is, of course, dependent on the platform your app runs on. You’ll likely have less memory in a mobile browser than a desktop browser. Either way, you’ll run into zombie problems before memory usage problems, and cleaning these up will greatly improve your app’s ability to deal with larger lists of items."

'via Blog this'

often





This:

Uncaught TypeError: Cannot call method 'replace' of null

often means that you just forgot to type the name of the template wrong.



Setting up Emacs as a Javascript editing environment for Fun or Profit « Deadpan Sincerity

Setting up Emacs as a Javascript editing environment for Fun or Profit « Deadpan Sincerity: "(add-to-list 'load-path "~/path/to/lintnode")
(require 'flymake-jslint)
;; Make sure we can find the lintnode executable
(setq lintnode-location "~/path/to/lintnode")
;; JSLint can be... opinionated
(setq lintnode-jslint-excludes (list 'nomen 'undef 'plusplus 'onevar 'white))
;; Start the server when we first open a js file and start checking
(add-hook 'js-mode-hook
(lambda ()
(lintnode-hook)))"

'via Blog this'

Code Conventions for the JavaScript Programming Language

Code Conventions for the JavaScript Programming Language: "This is a set of coding conventions and rules for use in JavaScript programming. It is inspired by the Sun document Code Conventions for the Java Programming Language. It is heavily modified of course because JavaScript is not Java.

The long-term value of software to an organization is in direct proportion to the quality of the codebase. Over its lifetime, a program will be handled by many pairs of hands and eyes. If a program is able to clearly communicate its structure and characteristics, it is less likely that it will break when modified in the never-too-distant future.

Code conventions can help in reducing the brittleness of programs."

'via Blog this'

JSLint: The JavaScript Code Quality Tool

JSLint: The JavaScript Code Quality Tool: "What is JSLint?

JSLint is a JavaScript program that looks for problems in JavaScript programs. It is a code quality tool.

When C was a young programming language, there were several common programming errors that were not caught by the primitive compilers, so an accessory program called lint was developed that would scan a source file, looking for problems.

"

'via Blog this'

Things to Look at When You Are Using a PhoneGap Plugin

Things to Look at When You Are Using a PhoneGap Plugin: "Makeup Of a Plugin

PhoneGap plugins consist of 2 things.

JavaScript File
Native Code File
If you download a plugin from somewhere, and it doesn’t have at least those two things then you are missing something. It is a fairly simple thing to do you write your native code and then write a JavasSript interface for it which executes the native code."

'via Blog this'

Simon Mac Donald: Using the Media Class in PhoneGap

Simon Mac Donald: Using the Media Class in PhoneGap: "myMedia = new Media("/android_asset/www/test.mp3");
The second way to create a media object is by referencing a file on your devices file system. Say for instance, you have a file at "/sdcard/test.mp3" of your device you would create the media object by doing:
myMedia = new Media("test.mp3");"

'via Blog this'

PhoneGap Build

PhoneGap Build: "Apps built using PhoneGap Build can be set up either through our web interface, or by using a config.xml. The config.xml file, as specified in the W3C widget specification, allows developers to easily specify metadata about their applications. You can see a sample config.xml with our PhoneGap Start application.
In our beta period, we will have mixed support for the various features of config.xml, depending on which platform we're building for. If you have any specific features you would like us to support, please let us know.

"

'via Blog this'

SavageLook.com » 9 things to know about PhoneGap

SavageLook.com » 9 things to know about PhoneGap: "A PhoneGap project toolchain that automates common tasks for building cross platform mobile projects with OS X.

Automate common development workflow tasks such as: compiling, debugging, testing, releasing and other things in between. As an added benefit projects generated with Cordova create a consistent, predictable, easy to understand and therefor extend software project. A number of conventions are introduced removing the need for mobile developers to relearn their tools or, worse, rebuild them for every project."

'via Blog this'

NatureInstruct - Dendroica Canada : Guest Version

NatureInstruct - Dendroica Canada : Guest Version: "
Song: During display males produce a nasal grating "kaaKAA...kaKAA" higher pitched than calls of Ring-necked Duck, very different from Common Goldeneye. Female's guttural "guck" almost identical to female Common Goldeneye's call but slightly higher pitched. Wing whistle is quieter and less whining than Common's.
Sound: Robert C. Stein (Macaulay Library, Cornell # 3711); 1958 Jul 9; Canada, British Colum"

'via Blog this'

NatureInstruct - Dendroica

NatureInstruct - Dendroica:

'via Blog this'

Backbone.js: Getting The Model For A Clicked Element | ThoughtStream.new :derick_bailey

Backbone.js: Getting The Model For A Clicked Element | ThoughtStream.new :derick_bailey: "The usual source of this question is that the developer has decided to use a single View object and template to render the entire list of Backbone Models. There’s nothing necessarily wrong with this approach. It has it’s advantages but it also presents a set of challenges and limitations. There is another way of approaching this which eliminates some of those limitations, but also has it’s own challenges: rendering one View object per Model. Instead of trying to choose one or the other all the time, it’s best to understand each of these approaches and be able to recognize the scenarios where each fits best."

'via Blog this'

Quick Tip: Spaces instead of Tabs | M-x all-things-emacs

Quick Tip: Spaces instead of Tabs | M-x all-things-emacs: "FRONT PAGEARCHIVESABOUTSITEMAPRSS← Newbie Tip: Visual Emacs Keybinding CheatsheetDeclaring .emacs Bankruptcy →
Quick Tip: Spaces instead of Tabs
September 30th, 2007 by Ryan McGeary · 11 Comments

Tab characters used as indentation of source code is a pet peeve of mine. Add this to your emacs initialization to make sure all indentation uses spaces instead.

;; I hate tabs!
(setq-default indent-tabs-mode nil)"

'via Blog this'

jslint4java command line usage

jslint4java command line usage: "$ java -jar jslint4java-${project.version}.jar
usage: jslint [options] file.js ...
--adsafe If adsafe should be enforced
--bitwise If bitwise operators should not be allowed
--browser If the standard browser globals should be predefined
--cap If upper case html should be allowed
--css If css workarounds should be tolerated
--debug If debugger statements should be allowed
--devel If logging should be allowed (console, alert, etc.)
--eqeqeq If === should be required
--es5 If es5 syntax should be allowed
--evil If eval should be allowed"

'via Blog this'

jslint4java command line usage

jslint4java command line usage: " --nomen If names should be checked"

'via Blog this'

Jslint Is Not A Code Quality Tool For 3rd Party Code

Jslint Is Not A Code Quality Tool For 3rd Party Code: "1.3 A Note On Optional Parameters

If it is assumed that Crockford’s suggestion implied code should be ‘quality checked’ in JSLint with its default options, a myriad of purely aesthetic constraints are applied as well. For instance, of the three following if statements, only one is acceptable in JSLint:"

'via Blog this'

v8jslint the JSLint command line tool powered by v8 | Steve's stuff

v8jslint the JSLint command line tool powered by v8 | Steve's stuff: "v8jslint is a command line tool that uses JSLint to verify the quality of other JavaScript programs. v8jslint uses Google’s v8 open source, high performance JavaScript engine. v8jslint supports all JSLint options on the command line."

'via Blog this'

Monday, February 13, 2012

EmacsWiki: Flymake Java Script

EmacsWiki: Flymake Java Script: "There are multiple options for checking Javascript syntax that can be used within flymake. The javascript engines SpiderMonkey and Rhino can both check Javascript syntax. Alternatively, you can use Douglas Crockford’s rather handy JSLint, which is much less forgiving of bad syntax, and can enforce a sensible coding style. Another option is JSHint, which is a fork of JSLint, modified to be not as strict and more configurable in its requirements than the original. The following describe some of these options.

"

'via Blog this'