Saturday, July 8, 2017

JS Inheritance OOP

See the Pen JS Inheritance OOP by Ariel Barkan (@ArielBarkan) on CodePen.

Creating Array of Objects + search

Tuesday, January 17, 2017

Chrome Developer tools > make readable minified JavaScript with Pretty print {}

Chrome Developer tools >  Sources tab > Select the minified JavaScript > click the curly brackets {}  at the bottom

Thursday, June 2, 2016

Linux mint: can't access a shared partition created by the Windows partition

How yo fix it:
Type in your terminal: : sudo ntfsfix /dev/sda7

Error mounting /dev/sda7 at /media/ariel/shared: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/media/ariel/shared"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sda7': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.

This is the error message:

This is the solution:

Thursday, December 3, 2015

Upgrading from Linux Mint 17.2 “Rafaela” to Linux Mint 17.3 “Rosa”

First of all, run the following commands to update the system to the current stable state:

$ sudo apt update
$ sudo apt upgrade
$ sudo reboot

After updating the system, we need to update the distribution code (change the name of the official repositories for Rosa packages). Run the following commands to do so:

$ sudo sed -i 's/rafaela/rosa/' /etc/apt/sources.list
$ sudo sed -i 's/rafaela/rosa/' /etc/apt/sources.list.d/official-package-repositories.list

Finally, run the commands to update the system files and the distribution package:

$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade

Once the system-update process is complete, restart the system – manually or use the command “sudo reboot” (without quotes).

Check max profit by buying & selling day

See the Pen Check max profit by buying & selling day by Ariel Barkan ( @ArielBarkan ) on CodePen .