Old_posts
Deprecated linux commands
What are deprecated? ifconfig netstats route What are the better options? ip ss lsof -iTCP Basic usages Command ip Show / manipulate routing, network devices, interfaces and tunnels Show ip adresses: ip address or ip a Show network devices: ip link or ip l Show routing table entry: ip route or ip r …
Get started with sed
What is sed? sed is a “stream editor for filtering and transforming text”. Here is a very detailed tutorial. Basic usages Use “s” for substitution Basic syntax: echo "Sunday Monday" | sed 's/day/night/' Sunnight Monday Note that only the first occurrence of …
How to boot from …
Today I tried to fix an old issue with an old laptop having dual boot - windows / ubuntu. This issue occurred one day out of nowhere (someone from forums said it was caused by a windows update). While the windows system still boots, the laptop cannot boot into ubuntu and always gets stuck at a grub …
100 Days Of Machine …
Here I pledge to dedicate 1 hour to coding or learning Machine Learning for the next 100 days! Day 0: July 06, 2018 Today’s Progress Learned about word embedding in Sequence Models course on Coursera, such as Word2Vec, negative sampling, GloVe word vectors and sentiment classification. …
How to reassign a static …
This post is a revised version of link. The following steps should be followed: Edit the file /etc/dnsmasq.conf on your router, and update the mac address associated with the intended ip address. dhcp-host=<mac address>,<ip address> Stop dnsmasq service sudo systemctl stop …
How to configure DHCP …
Here are the steps for configuring a DHCP server in a local network. Set static IP to the second network card enp9s3 (this name can be different on a different PC) on the DHCP server PC. Run sudo vi /etc/network/interfaces Edit the file according to this sample: # interfaces(5) file used by ifup(8) …
Ethernet …
Problem Ethernet RTL8111/8168/8411 is not recognized by kernel 4.4.39-rt50. Running ifconfig shows only the other network interface and lo. Solution It turns out the realtime kernel does not have module r8168. Instead it contains r8169. However, by installing r8168-dkms the r8169 module is …
Keyword auto with Eigen …
Today I encountered a weird problem when using Eigen library with keyword auto. The scenario is as follows: Eigen::Affine3d aff; // aff is assigned with a valid value ... auto r = aff.rotation(); auto res = r * r; In the end, the result variable res contains a 3x3 matrix with only zero values, no …
Setup hotspot on Ubuntu …
Disable WIFI and plug in an internet cable to your laptop so that your Ubuntu is connect to a wired internet and wireless is disabled. Go to Network Icon on top panel -> Edit Connections …, then click the “Add” button in the pop-up window. Choose Wi-Fi from the drop-down menu when …
Setup Kinect on Ubuntu …
The following steps are needed for Kinect to work properly in Ubuntu 14.04. Prerequisites OpenNI Kinect Sensor Module Possible user group tuning Prerequisites The necessary packages: $ sudo apt-get install git build-essential python libusb-1.0-0-dev freeglut3-dev openjdk-7-jdk Optional: sudo apt-get …