background preloader

DailyJS: A JavaScript Blog

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

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

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.

google/nogotofail Face detection using HTML5, javascript, webrtc, websockets, Jetty and OpenCV Through HTML5 and the corresponding standards, modern browsers get more standarized features with every release. Most people have heard of websockets that allows you to easily setup a two way communication channel with a server, but one of the specifications that hasn't been getting much coverage is the webrtc specificiation. With the webrtc specification it will become easier to create pure HTML/Javascript real-time video/audio related applications where you can access a user's microphone or webcam and share this data with other peers on the internet. For instance you can create video conferencing software that doesn't require a plugin, create a baby monitor using your mobile phone or more easily facilitate webcasts. Update: in the newest versions of the webrtc spec we can also access the microphone! As with a lot of HTML5 related specification, the webrtc one isn't quite finished yet, and support amongst browsers is minimal. For this we need to take the following steps:

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.

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

The Best Plugins for Sublime Text Good day, everyone! I tried to collect the best ST plugins, which really allows to improve your workflow. I searched many sites and here's what I did. WebInspector Amazing tool for debagging JavaScript, the full-fledged inspector of a code for Sublime. Emmet One of the most popular plugins for editors. Video with the best techniques from the author of the project: Git The essence of this plugin is clear from the name - the opportunity to work with Git directly in your favorite editor. If from Git you only need a opportunity of take content from remote repositories, then I recomend a Nettuts+ Fetch. There is Glue, that displays at the bottom the small window, where you can write on the Shell. GitGutter & Modific These plugins highlights the rows changed by the last commit, in other words diff tools in real-time. EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs. Sublimall AllAutocomplete SublimeREPL DocBlockr Floobits AutoFileName PlainTasks

Q&A: Why io.js decided to fork Node.js Node.js devotees who are dissatisfied with Joyent's control over the project are now backing their own fork of the server-side JavaScript variant, called io.js or iojs. To get the lowdown on what and who was behind this move, InfoWorld Editor at Large Paul Krill on Wednesday asked Mikeal Rogers, who has been involved with the fork and is director of evangelism at cloud hosting service vendor DigitalOcean, about the effort. InfoWorld: Are you the person in charge of the fork? Rogers: Not even close. Indutny (listed as a Node.js code team member)Trevor Norris (also a Node.js core team member)Isaac Schlueter (cited as a Node.js core team alumni)Ben Noordhuis (also an alumni)Bert Belder (another alumni and a Node.js maintainer) Rod Vagg (Node.js supporter) also participates in the calls as he is creating and managing the build system. InfoWorld: Why did this fork happen? InfoWorld: What goals do you have for io.js? Rogers: Well, the first and most obvious goal is to get a release out.

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 npmjs.org, 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:  javascriptlpitteloudnicolaschenet