Posts

Showing posts from November, 2018

ERROR: LoadError: UndefVarError: writedlm not defined

I got this issue when I migrated my code from Julia 0.6.1 to Julia 1.0.1. To solve it you must add to the beginning of your code the following line: using DelimitedFiles Enjoy it!

How to install pgadmin4 in Ubuntu 18.10 throught apt

If you want to install pgadmin4, as the official site said, probably you can't do it if you have Ubuntu Cosmic. You need to add bionic repository, because in cosmic only pgadmin3 is available. Also, you need to specify if you are using 64 bits architecture. sudo apt-get install curl ca-certificates curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo sh -c 'echo "ddeb [arch=amd64] http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main" > /etc/apt/sources.list.d/pgdg.list' sudo apt update sudo apt install pgadmin4 Enjoy it! Official site:  https://wiki.postgresql.org/wiki/Apt

How to install Visual Code from apt in Ubuntu

To get the lastest software versions, is a good idea get it from repositories to upgrade them. To add Visual Code to apt execute the following lines: curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' sudo apt-get install apt-transport-https sudo apt-get update sudo apt-get install code  Enjoy it!

How to use aria2c with chrome as download manager in Linux

In the following site, you can found the source code and the link to the extension for google chrome: https://github.com/robbielj/chrome-aria2-integration After installed aria2, you must run the following sentence: aria2c -s10 -x10 --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all=true Now, you could choose download your files with aria2c from google chrome. Enjoy it!

How to disable power button in Ubuntu 18.10

Image
If you have an Asus notebook, probably you hate the new power button location (right top corner). To disable it and avoid accidently turn off your computer you can do the following steps: Step1: Install dconf-editor sudo apt install dconf-editor Step2: Run dconf-editor and go to org.gnome.settings-daemon.plugins.power.power-button-action Step3: Choose the value 'nothing' Enjoy it! Also, you can try directly with these commands: gsettings list-recursively org.gnome.settings-daemon.plugins.power gsettings set org.gnome.settings-daemon.plugins.power button-power 'nothing'

How to choose a background image for grub2

If you want a background image for grub2, first you need to change the colors and resize it (the larger the image, the longer it takes to start grub2). convert -resize 640x480 -colors 256 image.jpg new_image.png Now, move the image to grub folder sudo mv new_image.png /boot/grub And tell to grub file where  is the path to read the background image: sudo vim /etc/default/grub add the following line: GRUB_BACKGROUND=/boot/grub/new_image.png Now, update your grub sudo update-grub Enjoy it!

How to run Gephi in Ubuntu

If you try to run Gephi in your linux, probably you will see the following issue: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory This appears when you are using openjdk9 or newer. To fix it, you must install openjdk8-jdk and choose it for java and javac sudo apt-get install openjdk-8-jdk with the following command you can see your java installed versions: sudo update-java-alternatives --list Now, choose version 8 for each one: sudo update-alternatives --config javac sudo update-alternatives --config java Enjoy it!

How to install teamviewer from apt in Ubuntu 18.10

We need to add it to apt sources list: cd /tmp && wget https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc sudo apt-key add TeamViewer2017.asc sudo sh -c 'echo "deb http://linux.teamviewer.com/deb stable main" >> /etc/apt/sources.list.d/teamviewer.list' sudo sh -c 'echo "deb http://linux.teamviewer.com/deb preview main" >> /etc/apt/sources.list.d/teamviewer.list' sudo apt update sudo apt install teamviewer Enjoy it!

How to install Sublime Text in Ubuntu 18.10

First, we going to install sublime text from the repositories. To do that, we need to add it to the repositories list: wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list sudo apt update && sudo apt install sublime-text Now, just register it with a valid license! ----- BEGIN LICENSE ----- sgbteam Single User License EA7E-1153259 8891CBB9 F1513E4F 1A3405C1 A865D53F 115F202E 7B91AB2D 0D2A40ED 352B269B 76E84F0B CD69BFC7 59F2DFEF E267328F 215652A3 E88F9D8F 4C38E3BA 5B2DAAE4 969624E7 DC9CD4D5 717FB40C 1B9738CF 20B3C4F1 E917B5B3 87C38D9C ACCE7DD8 5F7EF854 86B9743C FADC04AA FB0DA5C0 F913BE58 42FEA319 F954EFDD AE881E0B ------ END LICENSE ------ For 3.2.2 version:  ----- BEGIN LICENSE ----- TwitterInc 200 User License EA7E-890007 1D77F72E 390CDD93 4DCBA022 FAF60790 61AA12C0 A37081C5 D0316412 4584D136 94D7F7D4 95BC8C1C

How to install shutter on Ubuntu 18.10

Shutter is a software to take screenshots to your desktop. Since 18.10 is not more in repositories, but you can add it with the following command: sudo add-apt-repository ppa:ubuntuhandbook1/shutter Now, just update your repositories and install it. Enjoy it!