Space Time complexity

Assymptpmic analysis computing the running time. f(n) means running time will increase linearly with the increase in n, g(n^2) means running time will increase exponentially with the increase in n. 3 measurement: Best case,  Avg. case, worst case. Asymptotic Notations Ο Notation: express the upper bound Ω Notation: express the lower bound θ Notation: express… Continue reading Space Time complexity

Git · Uncategorized

Git undoing mistakes

Often we make mistakes and try to go back to previous status of Git. Here are some important commands to undo some changes safely. Discard changes in the working directory: For example, you just started working after cloning or after some commits. Now, you modified some stuff but want to start fresh and discard what… Continue reading Git undoing mistakes


Run mesos and marathon on 2 node.

on All server: echo 'deb http://repos.mesosphere.io/ubuntu trusty main' > /etc/apt/sources.list.d/mesosphere.list   apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF apt-get install software-properties-common add-apt-repository ppa:webupd8team/java apt-get update apt-get install oracle-java8-installer   Mesos Master sudo apt-get install mesosphere echo 'zk://' > /etc/mesos/zk echo 'zk://' > /etc/marathon/conf/master echo 'zk://' > /etc/mesos/conf/zk   echo 'MyCluster' > /etc/mesos-master/cluster echo 'ip' > /etc/mesos-master/ip… Continue reading Run mesos and marathon on 2 node.


How to install mesos and marathon to run marathon

https://mesosphere.github.io/marathon/docs/ To run marathon, per-requisite is Apache Mesos 1.0.1+ Apache ZooKeeper JDK 1.8+ So, I installed Mesos on my ubun 14.04 machine from http://mesos.apache.org/gettingstarted/ I cloned from git clone https://git-wip-us.apache.org/repos/asf/mesos.git   I installed the requirements: Ubuntu 14.04 Following are the instructions for stock Ubuntu 14.04. If you are using a different OS, please install the… Continue reading How to install mesos and marathon to run marathon


How to configure FS20 ASH 2200 sensors

Open the battery cover. Remove the screw. Then open the round cover. Put 2 screw driver to push the 2 white things inside. The round thing will be open. Remove 2 screw  again, and the whole cover will be open.  Now, configure it as the instructions says: https://files.elv.com/Assets/Produkte/7/736/73605/Downloads/73605_ASH2200_01_um.pdf For example, if you give address '3'.… Continue reading How to configure FS20 ASH 2200 sensors


Docker swarm commands

Start a swarm in the manager node: docker swarm init --advertise-addr To join swarm cluster as worker or manager docker swarm join \ --token SWMTKN-1-49nj1cmql0jkz5s954yi3oex3nedyz0fb0xx14ie39trti4wxv-8vxv8rssmk743ojnwacrr2e7c \ To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions. If you forget above command, run following command to regenerate it from… Continue reading Docker swarm commands


How to install firmware in CUL busware devices

Download the 'culfw' current version from : http://culfw.de/culfw.html. Current version I found is 1.66. Go to 'culfw-1.66/Devices/CUL/' directory and run the following command in the terminal. sudo make usbprogram_v3 The cul device now should start blinking. Test your device by running an application. Another option Install the package dfu-programmer, sudo apt-get install dfu-programmer sudo apt-get install… Continue reading How to install firmware in CUL busware devices


How to install Raspberry Jessie in a sd card + Installing Docker

Download OS Usually, the sd card is pre-installed with NOOBS os for raspberri pi. We are installing raspberrian Jessie here. Go to https://www.raspberrypi.org/downloads/ Select Raspbian. Choose 'Raspbian Jessie with PIXEL' and download Zip. Unzip it. Connect micro sd card Put the micro sd card in a card reader and connect to your computer. If the… Continue reading How to install Raspberry Jessie in a sd card + Installing Docker



TO MANAGE Digi Radio Frequency (RF) modules using GUI. use: add user to usergroup 'dialout'. sudo usermod -a -G dialout Logout, login back. Download xctu. https://www.digi.com/products/xbee-rf-solutions/xctu-software/xctu install:   enter cd /home/user/Downloads enter chmod +x some-app.run enter ./some-app.run   How to configure: Open xctu Connect zigbeestick. Click on Add devices (to add a radio module) Select… Continue reading XCTU