Nodejs part 6 Socket.io

Socket.io Socket.IO enables real-time bidirectional event-based communication.It works on every platform, browser or device, focusing equally on reliability and speed. Example 1 chats with express app.js var express = require('express'), app =


 

Nodejs Part 5 Express

Routing Routing refers to the definition of end points (URIs) to an application and how it responds to client requests. A route is a combination of a URI, a HTTP request method (GET, POST, and so on), and one or more handlers for the endpoint. It t


 

admin
5 years ago no comment
Tags:NodeJS

Nodejs Part 4 Modules

Modules Node has a simple module loading system. In Node, files and modules are in one-to-one correspondence. As an example, app.js loads the module hello.js  and custom_goodbye.js in the same directory. //hello.jsvar hello = function(){


 

admin
5 years ago no comment
Tags:NodeJS

Nodejs Part 3 Streaming

Streaming A stream is an abstract interface implemented by various objects in Node. For example a request to an HTTP server is a stream, as is stdout. Streams are readable, writable, or both. All streams are instances of EventEmitter You can load t


 

admin
5 years ago no comment
Tags:NodeJS

Nodejs Part 2 events

Events and EventEmitter  Many objects in Node emit events: a net.Server emits an event each time a peer connects to it, a fs.readStream emits an event when the file is opened. All objects which emit events are instances of events.EventEmit


 

admin
5 years ago no comment
Tags:NodeJS

Nodejs Part 1 http server

What is Nodejs  Allows you to build scalable network applications using Javascript on the server side. What could you build - Websocket Server (like chatting system)- Fast File Upload Client- Ad Server- Any Real-Time Data Apps What i


 

create vpn

wget https://raw.github.com/viljoviitanen/setup-simple-pptp-vpn/master/setup.sh sudo sh setup.sh


 

Backup Files dan Database di Linux ke dropbox

Backup database dan file cukup mudah dengan menggunakan uploader dari andrea fabrizi, dengan asumsi anda sudah punya account dropbox. Langsung buka console anda, contohnya adalah saya masuk ke folder home di linux dan coba buat file dengan nama back


 

MongoDB World

Install MongoDB : windows : Download .msi file at http://www.mongodb.org/downloads  double click in your  .msi file, and then choise your destination folder.   Configuration : Open your console, windows Run -> cmd . go to


 

Meteor JS The Best Tutorial Completed Part I

Kalau anda masih bingung dengan konsep bahasa ini, anda bisa bayangkan gambar di samping ini, karena meteorjs sangat mudah dan cepat dalam proses production dibandingkan dengan bahasa lain semisal PHP yang sudah menjamur di dunia ini. Saya tidak aka