Log systems

Log systems

Seems the most popular is ELK(elasticsearch+logstash+kibana) which also need redis or Kafka.

Splunk

Commercial. Most powerful.

graylog

https://github.com/Graylog2/graylog2-server
Java,ElasticSearch+MongoDB+Graylog-server+WEB UI
Support user authentication and Alert,which is commercial support in ELK stack.

elasticsearch

Java

logstash

Ruby

kibana

https://github.com/elastic/kibana

kafka

Java
Message system with log aggregation solution

fluentd

http://www.fluentd.org/
Ruby

flume

https://github.com/apache/flume

sumologic

Commercial

Loggly

Commercial

Pdf tools

PDF generation tools

mozilla pdf.js

Best clint side PDF render libarary.

jsPDF

Does not support UTF8.Can be used on server side.

Chrome

Chrome can save HTML page as PDF output.

Phantom

parse HTML to PDF.

wkhtmltopdf

calibre

stackedit

marked?

Odoo erp

Open Source ERP: Odoo

Installation on Windows from souce code

  1. Install Python2.7

  2. Install PostgreSQL, and create login role odoo/odoo, grant ‘CREATEDB’ priviledge to ‘odoo’ account

  3. git clone https://github.com/odoo/odoo.git

  4. Install psycopg using the installer here

psycopg

  1. Install python dependancy

    remove ldap pip install -r requirements.txt

  2. Install LESS CSS via Node.JS

    C:> npm install -g less less-plugin-clean-css

  3. Run odoo

    C:\YourOdooPath> python odoo.py -w odoo -r odoo –addons-path=addons –db-filter=odoo$

Where odoo, odoo are the postgresql login and password, and odoo is the default db to serve on localhost:8069

  1. Access odoo and create sample database

    http://localhost:8069

Reference

odoo

Javascript data binding

Data binding is rather different than what jQuery did(DOM manipulation).

The most popular frameworks for now

React

React is One-way data binding library.

  • Lots of people use React as the V in MVC.

  • Virtual DOM to boost performance

  • one-way reactive data flow: React will automatically manage all UI updates when your underlying data changes. It uses a fast, internal mock DOM to perform diffs and computes the most efficient DOM mutation for you.

  • Composable Components: With React the only thing you do is build components. Since they’re so encapsulated, components make code reuse, testing, and separation of concerns easy.

  • JSX: a JavaScript syntax extension that looks similar to XML which lets you create JavaScript objects using HTML syntax

  • props vs state: “props” which is immutable parameter passed from parent, “state” is internal state of component.

  • What Components Should Have State? Most of your components should simply take some data from props and render it. However, sometimes you need to respond to user input, a server request or the passage of time. For this you use state.

Try to keep as many of your components as possible stateless. By doing this you’ll isolate the state to its most logical place and minimize redundancy, making it easier to reason about your application.

A common pattern is to create several stateless components that just render data, and have a stateful component above them in the hierarchy that passes its state to its children via props. The stateful component encapsulates all of the interaction logic, while the stateless components take care of rendering data in a declarative way.

AngularJS

AngularJS is a full MVC framework

  • two-way data binding

  • reusable components

Polymer

Google Polymer is the de-factor starndard for JS web components SPEC.

Reference

Node.js mvc and rest framework

Node.JS MVC & REST frameworks

Express

The most popular framework,it is rather easy to go with express for web development. But still callback hell.

Meteor

Meteor is the best real time framework so far, currently is tight bound with MongoDB. Also

  • DDP

  • Mongodb&Minimongo

  • ACL

Sails

Sails is another full stack framework based on Express, it default bundles ORM Waterline to support both DBMS and

MongoDB.Sails comes with blueprints that help jumpstart your backend REST API without writing any code.

Loopback

loopback is backed by commercial company StrongLoop(which is behind Express), which is based on Express and mainly focus on buildindg REST

API, support both DBMS and MongoDB.

Koa

TJ created Koa to complete with Express,no middleware is locked in by default. It internally use ES6 generators to avoid

callback hells.

The problem for Koa seems lack of a good document.

Reference