ubuntu-14.04

Python - Node.js (V8) runtime is not available on this system

老子叫甜甜 提交于 2019-12-05 02:21:59
I'm getting the following error when trying to use ExecJS: execjs.RuntimeUnavailable: Node.js (V8) runtime is not available on this system I have node.js installed on my machine (Ubuntu 14.04). Which Node outputs /usr/bin/node Any ideas? kmandov Have you seen this similar issue They resolve the problem by linking node under /usr/local/bin/node ln -s /usr/local/bin/node /usr/bin/node Hamza Tahboub Hello I've had the same issue before and this solved it: Node.js not found by Rails / execjs PS: if this solves you issue mark my answer as correct! :P When you are trying to use ExecJS, what user are

Why did matrix multiplication using python's numpy become so slow after upgrading ubuntu from 12.04 to 14.04?

百般思念 提交于 2019-12-05 00:53:05
问题 I used to have Ubuntu 12.04 and recently did a fresh installation of Ubuntu 14.04. The stuff I'm working on involves multiplications of big matrices (~2000 X 2000), for which I'm using numpy. The problem I'm having is that now the calculations are taking 10-15 times longer. Going from Ubuntu 12.04 to 14.04 implied going from Python 2.7.3 to 2.7.6 and from numpy 1.6.1 to 1.8.1. However, I think that the issue might have to do with the linear algebra libraries that numpy is linked to. Instead

Curl - Request with wp_remote_get() responds 500, curl_exec responds 200

为君一笑 提交于 2019-12-04 21:14:52
I am getting an odd server php curl error in both my local and production servers ( Ubuntu 14.04.2 LTS, PHP 5.5.9-1ubuntu4.11, Apache 2.4.7 ). Basically, a curl request to a remote API returns a status code 500 response, ONLY in wp_remote_get() , where it returns status 200 in both curl_exec() and a browser request. My debug code: <?php $url = 'https://yoast.com?edd_action=activate_license&license=my-license-key-here&item_name=WooCommerce+Yoast+SEO&url=https://google.com'; // this return status 200: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION

How to build a project using Crypto++ library in kdevelop

 ̄綄美尐妖づ 提交于 2019-12-04 17:43:25
I wrote a small program that uses the crypto++ library using kdevelop in Ubuntu . I get the output correctly when I compile it from the terminal using -lcryptopp . I would like to build and execute the program using the cmake from kdevelop itself. How can I include the CRYPTOPP_DIR in the cmake configuration for doing this. Any help will be appreciated. Thankyou. Adding the following piece of code to cmake file helped me: FIND_LIBRARY(CRYPTOPP crypto++ /usr/lib) ## location of libcryptopp.so or libcryptopp.a IF ( CRYPTOPP ) TARGET_LINK_LIBRARIES(${PROGRAM_NAME} cryptopp ) ## Specifying

Packaging with Pyinstaller: PyQt4.QtGui.setStyle ignored?

社会主义新天地 提交于 2019-12-04 17:11:39
Question: How do I set the PyQt style for my app using Pyinstaller on Ubuntu 14.04? Details: I have packaged a PyQt4/Python app using pyinstaller on Windows and it seems to work fine with no difference between the package and when running just in my IDE. I have tried to reproduce this process using Ubuntu 14.04 and I have some issues that I can't solve. I can set the PyQt style when running in my IDE by using: app = QtGui.QApplication(sys.argv) app.setStyle('sgi') This is ignored during the build process, though. Everything else is working in the same way as the Windows build, but the packaged

Unable to compile “hello world” program with Swift on Ubuntu 14.04

醉酒当歌 提交于 2019-12-04 16:16:55
Using Ubuntu 14.04 Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty and trying to compile a hello world Swift program. print("Hello World!") I have verified the download: gpg --verify swift-2.2-SNAPSHOT-2015-12-10-a-ubuntu14.04.tar.gz.sig gpg: Signature made Thu 10 Dec 2015 07:17:37 PM PST using RSA key ID 412B37AD gpg: Good signature from "Swift Automatic Signing Key #1 <swift-infrastructure@swift.org>" gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key

Mongodb installation in Ubuntu 14.04 Failed

瘦欲@ 提交于 2019-12-04 16:05:38
问题 I followed the steps as mentioned in the official site of mongodb. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list sudo apt-get update sudo apt-get install -y mongodb-org Running the last command I get an error: E: Unable to locate package mongodb-org Please help. 回答1: Just try sudo apt-get install -y mongodb 回答2: For

no target device found android studio 2.1.1

强颜欢笑 提交于 2019-12-04 14:56:38
问题 i'm using android studio 2.1.1 in ubuntu 14.04.Now my question is,i want to run the program through my phone without emulator. so i chose the target as usb device but whenever i run this,below mentioned error is rasing. Error running app : No target device found. i checked my device by using adb devices command in terminal. adithya@adithya-Lenovo-B460e:~$ adb devices List of devices attached 59V8I7HEJJWGGMK7 device i also tried with selecting of MTP & PTP.but nothing worked out. kindly anyone

Unicorn service upstart script throws “-su: bundle: command not found”

余生颓废 提交于 2019-12-04 14:46:52
I recently created a VPS on DigitalOcean to host a rails app. I followed their guide to setup Unicorn with my application. https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-unicorn-and-nginx-on-ubuntu-14-04 A problem occurred when I ran sudo service unicorn_appxyz start . The error given was -su: bundle: command not found I traced the init.d script and pasted the evaluated server start up command in terminal and it works fine when executed under the user joe (the user which rbenv is install and the owner of the app). The evaluated command is su - joe -c cd /home

MonoDevelop and libpjsipDll.so library on Ubuntu. System.DllNotFoundException

孤街浪徒 提交于 2019-12-04 14:36:22
i am trying to use a dll for Linux called: libpjsipDll_v44.so I got it from here http://code.google.com/p/sipeksdk/downloads/list It's a port for Linux of the http://www.pjsip.org/ is a VOIP library This site claims that is posible to use the library in Linux https://sites.google.com/site/sipekvoip/Home/documentation/pjsipwrapper/pjsipwrapper-for-linux The code in MonoDevelop 4.0.12 with C# the code is like this: internal const string PJSIP_DLL = "libpjsipDll.so"; [DllImportAttribute(PJSIP_DLL, EntryPoint = "onRegStateCallback")] private static extern int onRegStateCallback(OnRegStateChanged