Cut to the system clipboard from Vim on Ubuntu
Question I am using Ubuntu 12.04 Beta and Vim that has come with it. I am trying to use Vim to copy the content of a text file to Chrome browser.
I have tried +, * y and all its variants. I have tried to :set clipboard=unnamed and :set clipboard=unnamedplus. Not working.
I am not trying to use xclip, or GVim or any of that. I tried with xclip (not a standard package in Ubuntu 12.…
Read more ⟶libjvm.so: cannot open shared object file: No such file or directory
Question Trying to install the rJava package on R, on my 14.10 ubuntu, using this code
if (!require(rJava)) install.packages('rJava')
got few errors related to java including jni problems, after reinstalling the jdk, and tried to run the same code again, got that error
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/usr/local/lib/R/site-library/rJava/libs/rJava.so':
libjvm.so: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/rJava’
Warning in install.…
Read more ⟶Best Method for Jar Extraction in Unix/Linux?
Question How do you extract the contents of a JAR file in (Ubuntu) Linux?
Answer Fun fact: A .jar file is actually just a .zip file
unzip file.jar
…
Read more ⟶Why does pip freeze report some packages in a fresh virtualenv created with --no-site-packages?
Question When I create a fresh virtualenv, pip freeze shows that I have a couple of packages installed even though I've not installed anything into the environment. I was expecting pip freeze to return empty output until after my first pip install into the environment. wsgiref is part of the standard library isn't it, so why does it show up at all? day@garage:~$ mkdir testing
day@garage:~$ cd testing
day@garage:~/testing$ virtualenv --no-site-packages .…
Read more ⟶Neo4j WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual
Question I installed Neo4j on Ubuntu 12.04 using these instructions: http://www.neo4j.org/download/linux
wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add - echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list
apt-get update
apt-get install neo4j
I made sure to have the right jdk:
root@precise64:~# java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
And when I startup neo4j I get this error:
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended.…
Read more ⟶QT6: "qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found."
Question I know that there is a great amount of answers regarding this topic, however none of them helped me. I'm using Ubunty 20.04 via Oracle VM Virtual Box and I faced exactly the same error as all other people.
After building Qt6 source code using official Qt manual I'm trying to run different projects to test if everything works properly. Console-type projects build and run properly. There are no errors.…
Read more ⟶venv doesn't create activate script python3
Question When trying to create a virtulenv using venv with python 3 on ubuntu it isn’t creating an activate script. It conitunally exits with an error 1.
Following docs and other posts on SO such as https://stackoverflow.com/a/19848770
I have tried creating it 2 different ways.
sayth@sayth-TravelMate-5740G:~/scripts$ python3 -m venv test4
Error: Command '['/home/sayth/scripts/test4/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
sayth@sayth-TravelMate-5740G:~/scripts$ source test4/bin/activate
bash: test4/bin/activate: No such file or directory
sayth@sayth-TravelMate-5740G:~/scripts$ ls test4/bin/
python python3
or…
Read more ⟶