Posts

Showing posts from 2019

Linux by Ripudaman Singh

Image
Customize the Bash [Linux] Your terminal window generally has username@hostname but you can change that we will discuss here how to change it.   link for details: Read-1 Read-2 Read-3 Let's make the Example setup as in above picture with live time cp ~/.bashrc ~/.bashrc.bak  In case of a problem it will help to get back the old file  nano ~/.bashrc Add the follwing line at the Last PS1="\e[0;35m\w\e[m\n\@ \e[0;35m$\e[m " close the nano by ctrl X, Y enter. making Changes active by source ~/.bashrc To customize in your own way see the above links. Get the localhost at some other name [Linux] Open your terminal and type  sudo nano /etc/hosts map your name with localhost address like 127.0.0.1       localhost 127.0.1.1       ripudaman # The following lines are desirable for IPv6 capable hosts ::1 ctrl X, y enter All done you can access the localhost at your describe name for me its ripudaman (helpful when making twitt...

Popular Online Platform in Daily Life

Image
You must have your online Presence @ Instagram: To follow the entertainment, trends fitness, etc Quora (Find the Answer) Medium Twitter Slack LinkedIn Telegram WhatsApp https://dev.to/ E-mail Github Coding Platforms This post is not complete will complete it soon

Online Platform for study

Image
Top online platform for study online are: This post is the extension of  best-online-tuitors  in which, I will discuss some places for Learning new technology in short. 1) Youtube 2) Udacity 3) Udemy 4) Coursera 5) (For download free udemy) Courses Daddy  -> 6) Eduonix learning Solution 7) For BigData Tools Installation  -> 8) Guru99  -> 9) NPTL 10)  https://getfreecourses.me/ 11) GeeksForGeeks 12) w3Schools 13) Find the Cheat Sheet and road Maps on google 14)  https://swayam.gov.in/ Conclusion:  IT Trade is one of the most Overwhelming Field, You have to complete your job and Enjoy for Life somehow, so Explore all as much as you can, You can't do all. Don't Try to be perfect, Enjoy your life and TAKE SHORTCUTS, and make the base strong. ALL THE BEST

RabbitMQ

Image
INSTALL RabbitMQ sudo apt-get update -y sudo apt-get upgrade sudo apt-get install erlang sudo apt-get install rabbitmq-server sudo systemctl enable rabbitmq-server sudo systemctl start rabbitmq-server sudo systemctl status rabbitmq-server sudo rabbitmq-plugins enable rabbitmq_management http://localhost:15672  username guest  password guest by default Tuitorial Get Started CHANGING User Will All Permisssions Small Implementation HelloWorld Github   sender and receiver for message Workers and Task Github   new_task.js sends the tasks to the worker.js and if the multiple worker.js is started it will be evenly distributed and execute the task. All the persistence is added so the chances of data loss can be stoped. Producer consumer Github  Producer sends the message which is received by all the receiver connected emit_log.js >>>>>>>>>> producer and receive_log.js >>>>>> cons...

Redis

Image
REDIS sudo apt-get update sudo apt-get upgrade sudo apt-get install redis-server sudo cp /etc/redis/redis.conf /etc/redis/redis.conf.default redis-server redis-cli What is Redis? Redis is a KeyValue based datastore which is an in-memory type dataStore that implies all the data is stored in memory i.e RAM of the server. Since or Due to the in-memory structure of Redis it is extremely fast. Due to the use of RAM to make it persistent RDB (Snapshots) or AOF is used. Generally, snapshots are used for the Backups and  AOF is used for the Data regular persisting. Redis has lots of data structure which makes it easy to store data in most effientWay. It is used in Caching of our data for fast access and as a message broker like Kafka. To use Redis with our code Client is used.  Small implementation. Task manager WebApp with NodeJs and Redis  Github-ripu502

ElasticSearch

Image
ElasticSearch: ElasticSearch is an analysis, store, search product. It can be locally installed on the server or it can be cloud-hosted. ElasticSearch is like a NoSQL database, data is stored as a document that is indexed. ElasticSearch let us perform various operations on the document very easily and in near real-time.  ElasticSearch has REST API which allows you to integrate, manage and query the indexed data. Some of the API Call: Document API: Used to create a document in an index, update them, move them to another index or remove them. Index API: This API allows users to manage indices, mapping, and templates. Cluster API: These are cluster-specific API calls that allow you to manage and monitor your Elasticsearch cluster.  Search API: These API calls can be used to query indexed data for specific information What is the ELK stack? ELK stack is ElasticSearch, Logstash, and Kibana. Logstash is used to ingest the data in ElasticSearch so that it can be...

Recover the password of WIFI

Image
Windows: use CMD netsh wlan show profile name=wifi_nameShowing key=clear Linux UBUNTU: use Terminal sudo grep psk= /etc/NetworkManager/system-connections/* Mac OS X: use Terminal security find-generic-password -wa wifi_nameShowing

ML | K-NN

BASICS KNN is a classification algo for SuperVised Learning K - nearest neighbour if we have 2 type of class and a point out of class we have To tell which class that [oint belongs then we use K-NN algo K is the parameter which tell how many near neighbour we have to see if the max near neighbour is of class A then the point will belong to class A  generelly used for small dataset  K = squt of all the numbers of point (all take odd value of K)  we plot he Validation and error curve of our data Set :  the minimum value of K for both the curve is taken as value of K PSEUDO CODE 1 Load the data 2 Initialise the value of k 3 For getting the predicted class, iterate from 1 to total number of training data points     Calculate the distance between test data and each row of training data.     Here we will use Euclidean distance as our distance metric since it’s the most     popular method. The other metrics that can be u...