ubuntu-12.04

Python OpenCV - waitKey(0) does not respond?

笑着哭i 提交于 2019-12-18 14:06:15
问题 I'm using opencv 2.4.7 on ubuntu 12.04. I'm programming with python and I have a problem when i run this script: import cv2 img = cv2.imread('347620923614738322_233985812.jpg') cv2.namedWindow("window") cv2.imshow("window", img) cv2.waitKey(0) The problem is that the script doesn't stop when I close the image. I searched information about waitKey and I found that using cv2.waitKey(0) is correct. I don't understand, where is the problem? 回答1: This code works for me from IDLE: # -*- coding: utf

Impossible to run web application in debug mode with intelliJ on ubuntu with glassfish server

一曲冷凌霜 提交于 2019-12-18 13:30:28
问题 In intelliJ 12.0 on ubuntu 12.04 with glassfish 3.1.2.2, I'm trying to launch my web application in debug mode but I've got this error message: Error starting domain domain1. The server exited prematurely with exit code 134. Before it died, it produced the following output: FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize,

What is a robust installation process for Nokogiri (on Ubuntu)?

让人想犯罪 __ 提交于 2019-12-18 12:36:13
问题 I tried to install Nokogiri on my Ubuntu 12.04 system, and got an error that said " libxslt is missing ", but the libxslt-dev and libxml2-dev are installed. Is there a robust installation process? How can I check the links to dependent libraries? I used RVM, and the RVM pkg is installed too. ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /home/victor/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb checking for libxml/parser.h... yes checking for libxslt/xslt.h.

Upgrade GCC 4.6.3 on Ubuntu 12.04 to 4.8.2

本小妞迷上赌 提交于 2019-12-18 12:08:20
问题 I'm about to update default GCC (version 4.6.3) shipped by Ubuntu 12.04 to 4.8.2, though the compilation requires a standalone C++ compiler admin@ubuntu: /usr/local/gcc_build$ sudo make ends up with configure: error: C++ compiler missing or inoperational make[2]: *** [configure-stage1-libcpp] Error 1 Therefore I turn to the process of g++ installation with a preference to the latest version, which means that I would like to compile from source directly rather than apt-get . But seriously, I

How to install CLang using precompiled binaries?

与世无争的帅哥 提交于 2019-12-18 11:09:10
问题 How do I install CLang on Ubuntu, using precompiled binaries of CLang that I downloaded? Here's how I downloaded CLang: "LLVM Download Page" -> "Download LLVM 3.2" -> "Clang Binaries for Ubuntu-12.04/x86_64" ( http://llvm.org/releases/3.2/clang+llvm-3.2-x86_64-linux-ubuntu-12.04.tar.gz .) Then, I expanded the archive into a folder on my Ubuntu 12.04 LTS 64-bit machine. The contents of the expanded folder look like this: $ ls clang+llvm-3.2-x86_64-linux-ubuntu-12.04 bin docs include lib share

Can't start MySQL5.5 on Ubuntu 12.04 - “dpkg: dependency problems”

可紊 提交于 2019-12-18 11:04:30
问题 This appears to be a common problem on 12.04. I've tried everthing in this thread including: sudo apt-get clean sudo apt-get autoclean sudo apt-get remove --purge mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 sudo apt-get install mysql-server I still get the same old error. Installing/starting MySql5.5 looks like this: apt-get install -f mysql-server Reading package lists... Done Building dependency tree Reading state information...

Docker apt-get update fails

扶醉桌前 提交于 2019-12-18 10:41:08
问题 Can somebody help me get apt-get working in my docker container? Whenever I try running any apt-get command in my docker container, the command fails. I'm running Docker version 1.1.1, build bd609d2 on ubuntu 12.04. When I do $ sudo docker run -i -t ubuntu:14.04 /bin/bash # apt-get update I get errors saying Could not resolve 'archive.ubuntu.com' I tried uncommenting the line below in /etc/default/docker DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4" but I still can't ping google.com ping: unknown

SSH Disable Password Authentication

被刻印的时光 ゝ 提交于 2019-12-18 10:13:25
问题 I'm looking for a way to disable ssh clients from accessing the password prompt as noted here I am unable to disable the password: prompt for Root Login. I have change the sshd_config file to read: ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no and have also changed the permissions chmod 700 ~/.ssh and chmod 600 ~/.ssh/authorized_keys . What am I missing? Does this require I have a passphrase? Verbose dump: debug1: Authentications that can continue: publickey,password

What is the difference between sites-enabled and sites-available directory?

折月煮酒 提交于 2019-12-18 09:57:02
问题 What is use of these two directories in apache2 and how can we do it? 回答1: The difference is that virtual sites listed in the sites-enabled directory are served by apache. In the sites-available directory there are the virtual sites that exist on your server but people can't access them because they are not enabled yet. sites-available: this directory has configuration files for Apache2 Virtual Hosts. Virtual Hosts allow Apache2 to be configured for multiple sites that have separate

How to start debug version of project in nsight with optirun command?

ε祈祈猫儿з 提交于 2019-12-18 09:28:30
问题 I'we been writing some simple cuda program (I'm student so I need to practice), and the thing is I can compile it with nvcc from terminal (using Kubuntu 12.04LTS) and then execute it with optirun ./a.out (hardver is geforce gt 525m on dell inspiron) and everything works fine. The major problem is that I can't do anything from Nsight. When I try to start debug version of code the message is "Launch failed! Binaries not found!". I think it's about running command with optirun but I'm not sure.