RxJS Series - Observables
RxJS (on Github) is a reactive programming library for Javascript, and in this series, I would like to expose my way of learning it with you.
RxJS (on Github) is a reactive programming library for Javascript, and in this series, I would like to expose my way of learning it with you.
How to create custom selenium webdriver classes dynamically with a parametrized browser binary path?
Working on website functional testing using selenium webdriver, generates the urge to run tests using different versions of the most commonly used browsers these days, in parallel on the same machine.
When I tried to update from the fedora23 to fedora24, I faced the issue that the home
directoy lost its labeling:
> ls -lZ /home/
drwxr-x---. 83 username username system_u:object_r:unlabeled_t:s0 4096 Jun 22 14:55 username
drwx------. 2 root root system_u:object_r:lost_found_t:s0 16384 Sep 30 2015 lost+found
drwx------. 5 root root system_u:object_r:unlabeled_t:s0 4096 Jan 13 11:48 testuser
And the issue prevents the user username
from logging in to its home directory, instead it directs the user to the root directory with an error message regarding permission issues.
I searched for the solution and found it here in this helpful answer.
The command to re-label the directory is:
sudo restorecon -R /home
After that everythig went ok and logging is back to normal:
> ls -lZ /home/
drwxr-x---. 83 username username system_u:object_r:user_home_dir_t:s0 4096 Jun 22 14:55 username
drwx------. 2 root root system_u:object_r:lost_found_t:s0 16384 Sep 30 2015 lost+found
drwx------. 5 root root system_u:object_r:user_home_dir_t:s0 4096 Jan 13 11:48 testuser
Many times when I want to use vim which comes within the main repo of any Linux distro, I find that it is missing some kind of support, either python or client-server mode, or any other feature. And there for I have to build it manually from source and install it.
During my experiments with the powerball lightweight lwa4p robot arm from Schunk, I faced many difficulties in order to make it move using moveit. In this post I share this experience.
I collected all the steps needed in one bash script, and here I am going to go into the details of the process that I followed.
In this post I'm going to take you in an adventure in my previously vimrc
and currently init.vim which I collected from using vim then neovim along the last few years. I will explain the feature or the function, then include the configurations or code that should be inserted in the vimrc
(init.vim
) file to activate that feature.
When I wanted to intall opencv on my python-2.7 openshift online cartridge I faced the problem of quota limitation to 1GB.
I found this blog post by Stephen Nneji discussed how to use DIY cartridge and install python and opencv manually. Another blog post by Nikhil Kumar used the Python-2.7 cartridge template to reduce the size of compiled opencv.
I collected the complete steps and put them in a single bash script.
To run this script in your openshift Python-2.7 cartridge, run the following command:
$ wget https://raw.githubusercontent.com/ammarnajjar/opencv_on_openshift_online/master/install.sh && bash install.sh
Then test importing opencv:
> python
Python 2.7.11 (default, Mar 31 2016, 20:46:51)
[GCC 5.3.1 20151207 (Red Hat 5.3.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>>