admin
6 years ago no comment
Tags:CSS

CSS

Cascading Style Sheets CSS is code that changes the appeareance of HTML. One place you can put CSS in a style tag that's a child of the head tag. <!DOCTYPE html><html lang="en"><head> <style type="text/css">


 

admin
6 years ago no comment
Tags:Redis

Nodejs part 7 Redis

Redis is an open source, BSD licensed, advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs.Redis command using : "npm inst


 

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
6 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
6 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
6 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
6 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