Posts

How to create RESTful API usig Node for processing HTTP requests.

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries.
Follow : Create RestFul API node.js and mysql : http://www.9lessons.info/2017/02/create-restful-api-nodejs-mysql.html

Manipuler des chaine avec Bash (Linux)

MySQL multiple instances on Ubuntu

Assumptions
OS: Ubuntu 16.x edition– up to dateAlready has MySQL installed that comes default – you can easily install LAMP MySQL Server version: > 5.5You have OS root privilegesDefault MySQL is running on port 3306What will we do
Set up 1 more MySQL instances on ports 3407 Each instance will have their own config files, data directories and log directoriesStopping default MySQL instance
sudo service mysql stop sudo ps -A | grep mysqlCreating data directories
MySQL cannot share data directories, so we need to set up new onesdefault basedir = /usr, this can be shared across instancesdefault instance port = 3306 and data dir = /var/lib/mysqlnew instance       port = 3408 and datadir = /var/lib/mysql3408MySQL must own data dirswe need to set rules in apparmor to let MySQL access the new dirssudo mkdir /var/lib/mysql3408 sudo chown -R mysql /var/lib/mysql3408 Creating log directories
create separate log dirs for new MySQL instancesdefault log dir = /var/log/mysqlnew log dir for 3307 = /var/…

Lebanese Java User Group: How to Install Oracle Java 8 on Ubuntu 16.10 via P...

Lebanese Java User Group: How to Install Oracle Java 8 on Ubuntu 16.10 via P...: If you want to run a program written in Java, then you will need to install JRE (Java Runtime Environment); if you want to begin developin...

Setting up MySQL SSL and secure connections

There are different articles on how to setup MySQL with SSL but it’s sometimes difficult to end up with a good simple one. Usually, setting up MySQL SSL is not really a smooth process due to such factors like “it’s not your day”, something is broken apparently or the documentation lies...

Read this article : Setting up MySQL SSL and secure connections

Pre-requisite :
Creating SSL Certificates and Keys Using openssl

New Language Expands on Google's Go

InfoWorld (09/23/16) Serdar Yegulalp

Polish developer Marcin Wrochniak has introduced Have, a computer language that transpiles to and expands on Google's Go. Wrochniak developed Have as a hobby project, with the goal of the language becoming a "companion" to Go that addresses some of its common "landmines." One of the most obvious differences between Have and Go is the formatting; Go uses curly braces similar to C/C++, while Have uses block indents like Python. Other differences address idiosyncrasies in Go. For example, the way that variable declaration, structs, and interfaces work have all been modified in Have to be more consistent with each other and to avoid internal inconsistencies that are a common source of bugs. The new language also plans to add generics to Go, which will enable programmers to create constructs in the language that use type parameters and make it possible to extend Have in ways not readily possible in Go. Have also features "spe…

Lebanese Java User Group: First time git config

Lebanese Java User Group: First time git config: The first thing you should do when you install Git is to set your user name and email address. This is important because every Git commit ...