sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
sudo update-alternatives --config javac
java -version
I ran into this problem myself. I fixed it by editing the google-chrome.desktop file found in /usr/share/applications
sudo vi /usr/share/applications/google-chrome.desktop
You'll find a line
Exec=/usr/bin/google-chrome-stable %U
I changed mine to
Exec=google-chrome %U
After restarting Google Chrome the icon was all shiny and nice :) Hope this helps.
lscpu The lscpu command reports information about the cpu and processing units. It does not have any further options or functionality.
lshw A general purpose utility, that reports detailed and brief information about multiple different hardware units such as cpu, memory, disk, usb controllers, network adapters etc. Lshw extracts the information from different /proc files.
Use: sudo lshw -short
hwinfo Hwinfo is another general purpose hardware probing utility that can report detailed and brief information about multiple different hardware components, and more than what lshw can report.
lspci The lspci command lists out all the pci buses and details about the devices connected to them.
The vga adapter, graphics card, network adapter, usb ports, sata controllers, etc all fall under this category.
lsscsi Lists out the scsi/sata devices like hard drives and optical drives.
lsusb This command shows the USB controllers and details about devices connected to them. By default brief information is printed. Use the verbose option "-v" to print detailed information about each usb port.
Inxi Inxi is a 10K line mega bash script that fetches hardware details from multiple different sources and commands on the system, and generates a beautiful looking report that non technical users can read easily.
lsblk List out information all block devices, which are the hard drive partitions and other storage devices like optical drives and flash drives.
df Reports various partitions, their mount points and the used and available space on each.
Pydf An improved df version written in python, that displays colored output that looks better than df.
fdisk Fdisk is a utility to modify partitions on hard drives, and can be used to list out the partition information as well.
mount The mount is used to mount/unmount and view mounted file systems.
free Check the amount of used, free and total amount of RAM on system with the free command.
dmidecode The dmidecode command is different from all other commands. It extracts hardware information by reading data from the SMBOIS data structures.
/proc files Many of the virtual files in the /proc directory contain information about hardware and configurations.
hdparm The hdparm command gets information about sata devices like hard disks.node-inspector could save the day! Use it from any browser supporting websockets. Breakpoints, profiler, livecoding etc... It is really awesome...
Install it with
sudo npm install -g node-inspector
then run
node-debug app.js
Function calls are expensive in Javascript, for maximal performance, replace
filterwith a loop and get rid of other function calls:
function uniq(a) {
var seen = {};
return a.filter(function(item) {
return seen.hasOwnProperty(item) ? false : (seen[item] = true);
});
}
function uniq_fast(a) {
var seen, out, len, i, item, j;
seen = {};
out = [];
len = a.length;
j = 0;
for(i = 0; i < len; i++) {
item = a[i];
if(seen[item] !== 1) {
seen[item] = 1;
out[j++] = item;
}
}
return out;
}