Posts

Showing posts from 2019

How to set the Gnome Default Terminal Emulator on Ubuntu 18.04 LTS

Image
A terminal emulator is an application that is used to execute Bash commands, work with files, communicate with other computers, perform administrative tasks and configurations, etc., all in text form. It uses the command line so that Unix users of all shades can enjoy it. It gives you the feeling of a real physical emulator equipped with a keyboard and monitor. You can install and use multiple emulator terminals on Ubuntu. Ubuntu also allows you to set the standard terminal emulator according to your needs and wishes. In this tutorial, we will learn how to do this. We will execute the commands below in Ubuntu 18.04 LTS (Bionic Beaver). Open the default terminal emulator on your Ubuntu by pressing Ctrl+Alt+T . The standard terminal on our machine is the Gnome Terminal . Change Terminal Emulator from Gnome Terminal to Xterm Run the following command: $ sudo update-alternatives --config x-terminal-emulator Tip: You can also copy this command from the tutori

OpenMPI and MPI4py installation instructions for Ubuntu 16.04.

The instructions are to install MPI4Py by building from source. MPI4Py requires OpenMPI or similar mpicc compiler wrapper. So let us first install OpenMPI. For that, download the installation files first. wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.0.tar.gz Extract the file and open it. tar -zxf openmpi-3.1.0.tar.gz cd openmpi-3.1.0/ Configure the installation files by running the following code: ./configure --prefix="/home/$USER/.openmpi" Now, we can make and install the files. sudo make -j4 sudo make install If there are no errors, OpenMPI is successfully installed. To get the env paths linked correctly, include the following in the .bashrc file. export PATH="$PATH:/home/$USER/.openmpi/bin" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/$USER/.openmpi/lib/" Run source ~/.bashrc to make the changes available in current session. Confirm that OpenMPI is successfully installed run: mpiexec -V This will print y

Bracket Validator

You're working with an intern that keeps coming to you with JavaScript code that won't run because the braces, brackets, and parentheses are off. To save you both some time, you decide to write a braces/brackets/parentheses validator. Let's say: '(', '{', '[' are called " openers ." ')', '}', ']' are called " closers ." Write an efficient function that tells us whether or not an input string's openers and closers are properly nested. Examples: "{ [ ] ( ) }" should return True "{ [ ( ] ) }" should return False "{ [ }" should return False Simply making sure each opener has a corresponding closer is not enough —we must also confirm that they are correctly ordered . For example, "{ [ ( ] ) }" should return False , even though each opener can be matched to a closer. We can do this in O ( n ) O(n) O ( n ) time and space

Free Stock Market Trading Tools, References, and Resources:

Image
Original post - https://www.tradinganalysisresources.com/2020/05/free-references-and-resources.html?m=1 - May 08, 2020 Free Stock Market Trading, Tools, References and Resources ( You're Going to want to Save this to your Favorites ! )  Please copy this URL and share the knowledge with your friends! Facebook, Twitter, Instagram, Pinterist, and old fashioned smoke signals. Link it to your blog. They will no doubt thank you for it.  I've seen a lot of paid services that charge for the information these sites provide for free.   To make the research experience best for visitors the author of this blog has chosen not to run ads and refuses to accept donations, though many have offered. You can support the author of this blog by subscribing to Webull and beginning your trading journey with a successful deposit of $100.   CLICK HERE  (Trade from 4:00 AM to 8:00 PM Eastern) Table of Contents: 1.       Screeners 2)        Econ

CUDA-9.0-CUDN-7.0 script

nvidia-smi: Control Your GPUs

Most users know how to check the status of their CPUs, see how much system memory is free, or find out how much disk space is free. In contrast, keeping tabs on the health and status of GPUs has historically been more difficult. If you don’t know where to look, it can even be difficult to determine the type and capabilities of the GPUs in a system. Thankfully, NVIDIA’s latest hardware and software tools have made good improvements in this respect. The tool is NVIDIA’s System Management Interface ( nvidia-smi ). Depending on the generation of your card, various levels of information can be gathered. Additionally, GPU configuration options (such as ECC memory capability) may be enabled and disabled. As an aside, if you find that you’re having trouble getting your NVIDIA GPUs to run GPGPU code, nvidia-smi can be handy. For example, on some systems the proper NVIDIA devices in /dev are not created at boot. Running a simple nvidia-smi query as root will initialize all the c