[ CSS ] hand cursor

cursor: pointer;

ref : https://stackoverflow.com/questions/3087975/how-can-i-make-the-cursor-a-hand-when-a-user-hovers-over-a-list-item

Advertisements

[ HTML5 ] sessionStorage

The sessionStorage object is equal to the localStorage object, except that it stores the data for only one session. The data is deleted when the user closes the specific browser tab.

The following example counts the number of times a user has clicked a button, in the current session:

if (sessionStorage.clickcount) {
sessionStorage.clickcount = Number(sessionStorage.clickcount) + 1;
} else {
sessionStorage.clickcount = 1;
}
document.getElementById("result").innerHTML = "You have clicked the button " +
sessionStorage.clickcount + " time(s) in this session.";

In google chrome javascript console, we can list key-value of session storage.

Go to Application tab > Session Storage

ref : https://www.w3schools.com/html/html5_webstorage.asp

[ mysql ] datatype size TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT

 

Type | Approx. Length | Exact Max. Length Allowed
-----------------------------------------------------------
TINYTEXT | 256 Bytes | 255 characters
TEXT | 64 Kilobytes | 65,535 characters
MEDIUMTEXT | 16 Megabytes | 16,777,215 characters
LONGTEXT | 4 Gigabytes | 4,294,967,295 characters

ref : https://stackoverflow.com/questions/6766781/maximum-length-for-mysql-type-text

[ macOS ] appcfg.py

In App Engine launcher there is a menu option called “Make Symlinks…”

 

Symbolic links in /usr/local/bin have been created for the following commands:

_php_runtime.py _python_runtime.py appcfg.py backends_conversion.py bulkload_client.py bulkloader.py dev_appserver.py download_appstats.py endpointscfg.py gen_protorpc.py php_cli.py remote_api_shell.py run_tests.py wrapper_util.py

In addition, /usr/local/google_appengine points to the SDK.

ref : https://stackoverflow.com/questions/5187602/cannot-find-appcfg-py-or-dev-appserver-py

[ meanjs 0.6.0 ] on ubuntu 14.04

Prerequisite

Mongodb installation

nodejs : version >=6.10.0 ( ref : https://github.com/meanjs/mean/blob/eb9cdd784c40ec9d98a72dab35da3de34f845e06/package.json )

 

Installation

$ git clone https://github.com/meanjs/mean.git meanjs
$ npm install

 

Start Server

export NODE_ENV=development
export DOMAIN=localhost

NOTE : config.domain will be used in config/env/default.js

First run

$ MONGO_SEED=true npm start

later

$ npm start

or

$ node --debug server.js

or start the development environment with

$ gulp

Test URL

http://localhost:3000

 

Yo Generator : Scaffold

The Yeoman Generator is currently not maintained. It is based on an older version of MEAN.JS (0.4.2).

 

ref : https://github.com/meanjs/mean, http://meanjs.org