background preloader

DailyJS: A JavaScript Blog

DailyJS: A JavaScript Blog
Related:  Node JSWeb, Programming and Tech

impress Impressive totalitarian style Multipurpose Application Server for node.js. All decisions are made. Solutions are scaled. Tools are provided and optimized for high load. The main difference from others that Impress core is monolithic and its approach is to make all in one solution with high code coupling for obligatory things and leave not obligatory to be integrated by applied developers optionally. Installation $ npm install impress Features Configuration Install module using "npm install impress" in new directory. Handler examples and file system url mapping Example Following "server.js" is stating file. require('impress'); impress.server.on("start", function() { }); impress.server.start(); File "access.js" is something line ".htaccess", you can easily define access restrictions for each folder, placing "access.js" in it. File "request.js": place such file in folder to be executed on each request (GET, POST, PUT, etc.). <! Contributors Timur Shemsedinov (marcusaurelius)See github License

Storm Documentation This page lists the main concepts of Storm and links to resources where you can find more information. The concepts discussed are: Topologies Streams Spouts Bolts Stream groupings Reliability Tasks Workers Topologies The logic for a realtime application is packaged into a Storm topology. A Storm topology is analogous to a MapReduce job. Resources: TopologyBuilder: use this class to construct topologies in Java Running topologies on a production cluster Local mode: Read this to learn how to develop and test topologies in local mode. Streams The stream is the core abstraction in Storm. Every stream is given an id when declared. Tuple: streams are composed of tuples OutputFieldsDeclarer: used to declare streams and their schemas Serialization: Information about Storm’s dynamic typing of tuples and declaring custom serializations ISerialization: custom serializers must implement this interface CONFIG.TOPOLOGY_SERIALIZATIONS: custom serializers can be registered using this configuration Spouts

The Node Beginner Book » A comprehensive Node.js tutorial Using Google's Closure to Compile and Verify your JavaScript 7, Mar 2013 A large application is nearly guaranteed to come with an equally large amount of JavaScript attached to it. During development it makes sense to divide the JavaScript of the application into multiple sensibly named files both to make finding specific functionality in the code base easier, and to keep the file length to a reasonable size for readability/comprehension purposes. More importantly though, this allows you to build modular, reusable components by separating functionality and sharing common methods within the application. However, when it comes time to move your site to the production environment, this development processes' inefficiencies become noticeable in slow loading pages. The most obvious pitfall is the fact that having multiple different files means that new HTTP requests have to be issued for each file, bringing with it an additional round trip time. Introducing Google Closure The Google Closure Compiler is a tool designed to solve these problems. npm How to keep up with the Javascript Landscape Trends | Orizen Designs – Oren Farhi – Javascript Blog, Backbone Blog, HTML5, CSS3 Often, friends ask me how I keep up with all the news and trends in the javascript world. They wonder about the extensive knowledge, answers and information I have about web development today, and specifically – front end web development. Well, It’s not a secret – there is a certain path you can follow along and be point of reference by yourself. Resources The first step is to get the news and trends from reliable, external resources. Social Networks Besides, I use social networks to follow such websites or syndications from various interesting sources. Practicals Althought it’s a lot of information to grasp, it’s not enough just to be aware of it. Timing I know it’s a lot. The main point is for one to realize is to keep up with follow the flow – be familiar with the trending various solutions out there, how to find it and how to get it.

Studio The professional, open source development tool for the open web It's ready. It's time. Core Features HTML, CSS, and JavaScript Code Assist Aids in authoring of HTML, CSS, JavaScript, PHP, and Ruby. Code Assist Deployment Wizard Support for one-shot as well as keep-synchronized setups. Deployment Wizard Support for one-shot as well as keep-synchronized setups. Integrated Debugger Set breakpoints, inspect variables, control execution. Integrated Debugger Git Integration Easily put your projects under git source code control. Git Integration Easily put your projects under git source code control. Built-in Terminal Quickly access a command line terminal for execution of operating system commands and language utilities such as gem, rake, etc. Built-in Terminal IDE Customization Setup your development environment exactly the way you want it by extending the core capabilities through scripting of custom commands. IDE Customization

Documentation JSHint is a program that flags suspicious usage in programs written in JavaScript. The core project consists of a library itself as well as a CLI program distributed as a Node module. More docs: List of all JSHint options · CLI flags · Writing your own reporter · FAQ Basic usage The easiest way to use JSHint is to install it as a Node program. To do so, simply run the following command in your terminal (flag -g installs JSHint globally on your system, omit it if you want to install JSHint in the current working directory): $ npm install jshint -g After you've done that you should be able to use the jshint program. $ jshint myfile.js myfile.js: line 10, col 39, Octal literals are not allowed in strict mode. 1 error If a file path is a dash (-) then JSHint will read from standard input. Configuration JSHint comes with a default set of warnings but it was designed to be very configurable. This setup allows you to have different configuration files per project. Inline configuration Directives jshint

Dive Into HTML5 Modules · joyent/node Wiki This page is deprecated. Feel free to add to it, but be advised that it is, at best, a faded relic of Node modules that were written before npm was a dominant force in the Node.js ecosystem. It is not all that useful any more. If you are a newcomer, it can be handy to at least get a starting point. However, note that there are many tens of thousands of modules in the npm registry, and only just under 2,000 modules here. So, this list is long enough to be intimidating, but still only captures a tiny sliver of the Node.js modules you can use with your program. Search for modules with, node-modules, node-toolbox and nipster. The archaic contents of this once-useful page now follow. Adding to this page When you add a framework to this page, have a look at how others have done so, it should be a single item, with a link to the project's source code, and a short description (one line after formatting has been applied). Table of contents Modules Web frameworks Routers Static file servers

5 Ways that CSS and JavaScript Interact That You May Not Know About CSS and JavaScript: the lines seemingly get blurred by each browser release. They have always done a very different job but in the end they are both front-end technologies so they need do need to work closely. We have our .js files and our .css, but that doesn't mean that CSS and JS can't interact more closely than the basic JavaScript frameworks will allow. Here are five ways that JavaScript and CSS work together that you may not know about! Get Pseudo-Element Properties with JavaScript We know that we can get basic CSS style values for an element with the style property, but what about pseudo-element properties? var color = window.getComputedStyle( document.querySelector('.element'), ':before').getPropertyValue('color'); var content = window.getComputedStyle( document.querySelector('.element'), ':before').getPropertyValue('content'); You can see how I access the content property value in my blog post about Device State Detection. classList API Add and Remove Rules Directly to Stylesheets

Related:  javascriptJavascriptlibs and FrameworksJavascript Librarieshackgnicolaschenet