background preloader

Mastering Node - Open Source Nodejs eBook

Mastering Node - Open Source Nodejs eBook

Understanding JavaScript’s this keyword | JavaScript, JavaScript (In Portugese) The JavaScript this keyword is ubiquitous yet misconceptions abound. What you need to know Every execution context has an associated ThisBinding whose lifespan is equal to that of the execution context and whose value is constant. 1. 2. a) Invoke as a methodthis is the baseValue of the property reference b) Invoke as baseless function callthis is the global object (or undefined in strict mode) The same applies to self invoking functions: c) Invoke using Function.prototype.callthisis passed by argument d) Invoke using Function.prototype.applythis is passed by argument e) Invoke a constructor using newthis is the newly created object 3. What you might want to know This section explores the process by which this gets its value in the functional context – using ECMA-262 version 5.1 as a reference. Lets start with the ECMAScript definition of this: The this keyword evaluates to the value of the ThisBinding of the current execution context. from ECMA 5.1, 11.1.1 How is ThisBinding set? 1.

Felix's Node.js Guide How to Virtualize OS X Lion on Windows Update: Fixed down hard drive files (February 8, 2012). Sorry about the delay guys, this page has been updated so that Xcode 4.1 does not crash anymore. (August 17, 2011). If you've tried to virtualize previous versions of OS X, you know that it is a very tedious and time consuming process. This new guide works by giving you a simple VMWare Image. This means that the OS has already been pre-configured on a hard drive. This guide will show how to setup a fully working OS X Lion 10.7 on a Windows machine. Requirements A laptop or desktop computer that supports virtualization (most newer computers do). An updated video has been made of all the new steps: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.

Google Closure: How not to write JavaScript At the Edge of the Web conference in Perth last week I got to catch up with Dmitry Baranovskiy, the creator of the Raphaël and gRaphaël JavaScript libraries. Perhaps the most important thing these libraries do is make sophisticated vector graphics possible in Internet Explorer, where JavaScript performance is relatively poor. Dmitry, therefore, has little patience for poorly-written JavaScript like the code he found in Google’s just-released Closure Library. Having delivered a talk on how to write your own JavaScript library (detailed notes) at the conference, Dmitry shared his thoughts on the new library over breakfast the next morning. “Just what the world needs—another sucky JavaScript library,” he said. When I asked him what made it ‘sucky’, he elaborated. For the rest of the day, to anyone who would listen, Dmitry cited example after example of the terrible code he had found when he went digging through Closure. “I’ll make you a deal,” I told him. The Slow Loop return ! return !

7 Free E-Books and Tutorials for Learning and Mastering Node.js OK, we won't bore you by telling you what Node.js is again or why it's so dang hot. You want to learn Node.js? There's no completely finished Node.js book out there that we're aware of. No more excuses: Try Node.js for $0.02 or less in just a few minutes No more excuses: Try Node.js for $0.02 or less in just a few minutes is a short tutorial from the developers of NowJS. Up and Running With Node.js Up and Running with Node.js by Tom Hughes-Croucher hasn't been officially released yet, but O'Reilly Media has released a free text preview of the book as part of its Open Feedback Publishing System. Our previous coverage of the book is here. The Node Beginner Book The Node Beginner Book by by Manuel Kiessling is a new Node.js e-book. Kiessling's work is aimed for developers "experienced with at least one object-oriented language like Ruby, Python, PHP or Java, only little experience with JavaScript, and completely new to node.js." Felix's Node.js Guide Mastering Node Bulletproof Node.js Coding

Titanium Tutorials – Building an app part 3 – let’s start coding. « Triptych From here on out I’m going to basically going to describe the process I’m going through to build my Titanium app. As I build it out, I’ll try to describe the things I learn and encounter and hopefully I’ll be able to save you a little time in your own application development. First off, let’s take a look at what we have. We’ve got Titanium, which is basically our Webkit rendering engine + file system access and cross-os application packaging. We have EXTJS which gives us a layout framework, widgets, and overall a nice presentation layer. I’m basically creating an app with a persistent toolbar across the top, a collapsible panel on the left, and a main information area in the bottom right. Also, if you are interested in tips for building Ext apps – check out this site: Anyway let’s look at getting Ext working in Titanium: After I extracted my EXTJS library I renamed the topmost folder to ext and placed it within the Resources folder of my app.

A JavaScript Module Pattern Eric Miraglia (@miraglia) is an engineering manager for the YUI project at Yahoo. Eric has been at Yahoo since 2003, working on projects ranging from Yahoo Sports to YUI. For the past several years, Eric and his colleagues on the YUI team have worked to establish YUI as the foundation for Yahoo’s frontend engineering work while open-sourcing the project and sharing it with the world under a liberal BSD license. Eric is an editor and frequent contributor to YUIBlog; his personal blog is at ericmiraglia.com. Prior to working at Yahoo, Eric taught writing at Stanford and elsewhere and led frontend engineering teams at several startups. Global variables are evil. Douglas Crockford has been teaching a useful singleton pattern for achieving this discipline, and I thought his pattern might be of interest to those of you building on top of YUI. 1. YAHOO.namespace("myProject"); This assigns an empty object myProject as a member of YAHOO (but doesn’t overwrite myProject if it already exists). 2.

The Node Beginner Book » A comprehensive Node.js tutorial About The aim of this document is to get you started with developing applications with Node.js, teaching you everything you need to know about "advanced" JavaScript along the way. It goes way beyond your typical "Hello World" tutorial. Status You are reading the final version of this book, i.e., updates are only done to correct errors or to reflect changes in new versions of Node.js. It was last updated on July 1, 2013. The code samples in this book are tested to work with Node.js version 0.10.12. This site allows you to read pages 1-21 of this book for free. Intended audience This document will probably fit best for readers that have a background similar to my own: experienced with at least one object-oriented language like Ruby, Python, PHP or Java, only little experience with JavaScript, and completely new to Node.js. However, because functions and objects in JavaScript are different from their counterparts in most other languages, these will be explained in more detail. Table of contents

How To Install Fully Functional Mac OS X Lion Virtual Machine inside Windows 7 [UPDATE: 10.7.3] Apple released its latest Mac OS X, Mountain Lion, at the end of July, 2012. That means, “Hackintosh” community has a new kid in town to play around. If you are new to the topic of Hackintosh, then be SURE to check out some of our awesome guide on What is hackintosh? How to build a hackintosh from hardware selection to software installation. This guide will help you go through step-by-step installation of the latest Mac OS X Mountain Lion. Requirements: You must have an Intel CPU, if you have an AMD CPU then this will NOT working for you.Check make sure your Intel CPU has virtualization technology and is enabled from your BIOS, find out how click here? How To Install Mac OS X Mountain Lion in VMware Workstation on Windows Machine Step 1 Extract the OS X 10.8 Mountain Lion Retail VMware Image.7z file. OS X 10.8 Mountain Lion folder contains the Mountain Lion vmdk and vmx file for your VMware. Step 2, Run VMware Workstation Unlocker Run install.cmd. Navigate to OS X 10.8 Mountain Lion. Open it.

css3-mediaqueries-js - Project Hosting on Google Code css3-mediaqueries.js by Wouter van der Graaf is a JavaScript library to make IE 5+, Firefox 1+ and Safari 2 transparently parse, test and apply CSS3 Media Queries. Firefox 3.5+, Opera 7+, Safari 3+ and Chrome already offer native support. UPDATE: Google discontinued the downloads section. Usage: just include the script in your pages. (And you should combine and compress with other scripts and include it just before </body> for better page speed - but you already knew that). Write your media queries like you would for browsers with native support. Note: Doesn't work on @import'ed stylesheets (which you shouldn't use anyway for performance reasons). Happy media querying!

Understanding node.js Node.js has generally caused two reactions in people I've introduced it to. Basically people either "got it" right away, or they ended up being very confused. If you have been in the second group so far, here is my attempt to explain node: It is a command line tool. "But I can do everything I need in: ruby, python, php, java, ... !". I hear you. "Get to the point!" Alright, I will. "Huh?" That's right, everything runs in parallel, except your code. The day starts by one servant waking up the king and asking him if he needs anything. Once a servant finishes a task, he lines up outside the kings quarter to report. Life is good, for the king's servants carry out all of his tasks in parallel, but only report with one result at a time, so the king can focus "That's fantastic, but could you quit the silly metaphor and speak geek to me?" Sure. var fs = require('fs') , sys = require('sys'); fs.writeFile('letter-to-princess.txt', ' You got it! "Very nice, but why should I use it?" Yes and no. No. --fg

jQuery Mobile – Entwicklung einer kleinen Website / App (Tutorial) » Seite, jQuery, Mobile, Website, Kontakt, Attribut » iPhone Entwicklung und Programmierung Ich hatte ja bereits vor einiger Zeit über das Framework “jQuery Mobile” berichtet. Die Handhabung ist nicht besonders schwer und jeder, der etwas Ahnung von HTML hat, kann in relativ kurzer Zeit seine eigene, mobile Website erstellen. Die Funktionsweise von jQuery möchte ich an dieser Stelle in einem kurzen Tutorial vorstellen. Wer möchte, scheint sich vorab die fertige Beispiel Version an. Bücher zu jQuery Mobile Wer sich nach dem Tutorial etwas genauer mit der Materie befassen möchte und gerne etwas festes in der Hand hat, der hat momentan schlechte Karten. Erste Schritte – jQuery Implementierung Zunächst können die benötigten Dateien (jQuery und jQuery Mobile + CSS) heruntergeladen werden, sofern man diese selber hosten möchte. Wer die Dateien selber hosten möchte, muss hier entsprechend die Links ändern. Rufen wir jetzt die bestehende Seite auf, gibt es leider noch allzu viel zu sehen – bis auf eine leere weiße Seite. Grunstruktur der Mobile Website Ergebnis: ) angezeigt werden.

Sylvester - Vector and Matrix math for JavaScript

Related: