- Install hostapd(hotspot server) and dnsmasq (dns dhcp server) :
sudo dhclient eth0 or sudo dhclient wlan0
- Prevent the installed services starting at the start up :
sudo service hostapd stop
sudo service dnsmasq stop
sudo update-rc.d hostapd disable
sudo update-rc.d dnsmasq disable
- Setup the configuration file of dnsmasq :
sudo gedit /etc/dnsmasq.conf
- paste the code below :
//Author : 5hfT | |
//data:11th Feb,2020 | |
//Task:shortcut to run a cpp file which will take input and show output of the programme automatically with programme runtime status such as memory comsume and execution time | |
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Compile and run", | |
"type": "shell", | |
"command": "", |
The Apache Hadoop software library is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage. Rather than rely on hardware to deliver high-availability, the library itself is designed to detect and handle failures at the application layer, so delivering a highly-available service on top of a cluster of computers, each of which may be prone to failures.
There are two ways to install Hadoop, i.e. Single node and Multi node.
Single node cluster means only one DataNode running and setting up all the NameNode, DataNode, ResourceManager and NodeManager on a single machine. This is used for studying and testing purposes. For example, let us consider a sample data set inside a healthcare industry. So, for testing whether the Oozie jobs have scheduled all the processes like collecting,
- install conda (miniconda or anaconda)
conda create --name env_name django
conda activate env_name
- Check virtual environment list :
conda info --envs
- Viewing a list of the packages in an environment :
conda list -n envirnment_name
or
- Judge Name : judge_name
- Problem Name : problem_name
- Problem Number : problem_number
- Problem Link
import os | |
import sys | |
## assuming your django settings file is at '/home/jspw/mysite/mysite/settings.py' | |
## and your manage.py is is at '/home/jspw/mysite/manage.py' | |
path = '/home/jspw/mysite' #path of your project | |
if path not in sys.path: | |
sys.path.append(path) | |
os.chdir(path) | |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', "food_menu_project.settings") #projectname.settings | |
import django |
PPPoE refers to Point-to-Point Protocol over Ethernet is a network protocol for encapsulating PPP frames inside Ethernet frames. It appeared in 1999, in the context of the boom of DSL as the solution for tunneling packets over the DSL connection to the ISP's IP network, and from there to the rest of the Internet.
In Ubuntu 20.04LTS I have found that in setting>network
you just cant setup a new connection of dsl/ppoe type (I don't know why!)
So you can use nmcli(network managerment command line)!
-
Name DSL/PPPoE connection :
nmcli con edit type pppoe con-name "Your DSL name"
-
IPS provided username :
set pppoe.username your_username