ubuntu-14.04

VIM: Use python3 interpreter in python-mode

女生的网名这么多〃 提交于 2019-12-20 09:44:53
问题 I have recently switched to vim and configured it for Python-programming using this tutorial. Before, I have made sure that vim supports python3 (vim --version shows +python/dyn and +python3/dyn) using this article. But when executing a file from python-mode, still the python2.7 interpreter is chosen. How can I configure vim (or the python-mode) to run files on the python3 interpreter? My OS is Ubuntu 14.04 x64. Thanks in advance! 回答1: Try adding this to your .vimrc file let g:pymode_python =

Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

吃可爱长大的小学妹 提交于 2019-12-20 07:38:44
问题 I was trying to upgrade VLC player on my Ubuntu 14.04. Below are the commands I've executed. (https://askubuntu.com/questions/105587/how-to-update-vlc-to-the-latest-version) But facing issues like Wrong sources.list entry or malformed file. I'v tried multiple solutions but not able to fix it. Please help. After going through multiple forums, I did tried to add this line deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main But it was already present on my machine. Mine is a 64

RuntimeError: populate() isn't reentrant in Django

早过忘川 提交于 2019-12-20 04:13:06
问题 I am trying to deploy django website.Project name is pom. I am trying to run django website in ec2 server using apache2 and getting the following error: Apache error file: [Fri Jul 24 12:37:33.621285 2015] [:info] [pid 20446:tid 140024755709824] mod_wsgi (pid=20446): Attach interpreter ''. [Fri Jul 24 12:37:33.621462 2015] [:info] [pid 20446:tid 140024755709824] mod_wsgi (pid=20446): Adding '/home/ubuntu/.virtualenvs/edusamosa/lib/python2.7/site-packages/' to path. [Fri Jul 24 12:37:44.145762

Start Node JS application when server reboots with pm2

北城余情 提交于 2019-12-20 02:35:22
问题 I am trying to use the module pm2 to start my node js app everytime the server boots. I have used the command pm2 startup ubuntu but each time I restart the server, my application is not running and I have to start it manually again. Any ideas what is causing this issue? 回答1: Make sure you do save your processes: pm2 start app.js pm2 startup ubuntu pm2 save Once you have started the apps and want to keep them on server reboot do: pm2 save Source: https://github.com/Unitech/PM2/blob/master

How can I adjust pip3 using python3.6 not python3.4 on Ubuntu 14.04?

a 夏天 提交于 2019-12-19 09:07:45
问题 Default python3 on Ubuntu 14.04 is of 3.4.3 but I want to use 3.6.3 instead. I followed commands below to install 3.6.3 : $ sudo apt-get update $ sudo apt-get install build-essential libpq-dev libssl-dev openssl libffi-dev zlib1g-dev $ sudo apt-get install python3-pip python3-dev $ sudo add-apt-repository ppa:jonathonf/python-3.6 $ sudo apt-get update $ sudo apt-get install python3.6 3.6.3 was then available on my Ubuntu: $ which python3.6 /usr/bin/python3.6 For sure, python3 was still

Can cython be compiled with icc?

*爱你&永不变心* 提交于 2019-12-19 08:29:50
问题 I am trying to build cython from source with icc compiler on Ubuntu 14.04 as my python is compiled with Intel icc compiler. When I tried to install cython using pip3 install cython and then ran cython I got following error Traceback (most recent call last): File "/usr/local/bin/cython", line 9, in <module> load_entry_point('Cython==0.24', 'console_scripts', 'cython')() File "/usr/lib/python3/dist-packages/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load

Vundle - E492: Not an editor command: PluginInstall

随声附和 提交于 2019-12-19 07:38:07
问题 I am having trouble getting Vundle for Vim to work (I am on Ubuntu 14.04). Here the relevant part from my .vimrc 4 " For Vundle$ 5 filetype off$ 6 set rtp+=~/.vim/bundle/vundle$ 7 call vundle#rc()$ 8 $ 9 " Let Vundle manage Vandle$ 10 Plugin 'gmarik/vundle'$ 11 $ 12 Plugin 'honza/vim-snippets'$ 13 Plugin 'bling/vim-airline'$ 14 Plugin 'tpope/vim-fugitive'$ 15 Plugin 'tpope/vim-rails.git'$ 16 Plugin 'tomtom/tcomment_vim'$ 17 Plugin 'altercation/vim-colors-solarized'$ 18 Plugin 'tomasr/molokai'

How to start redis-server on a different port than the default port 6379 in ubuntu

微笑、不失礼 提交于 2019-12-19 05:16:24
问题 How to start redis-server on a different port than the default port 6379 in ubuntu I have used the following steps to install the redis sudo add-apt-repository ppa:rwky/redis sudo apt-get update sudo apt-get -y install redis-server I installed, but I don't know how to how to start redis-server on a different port than the default port 6379 So kindly tell me the steps to change the default port to different port ? 回答1: redis-server --port 6380 will start a Redis server listening to port 6380.

postgres in vagrant(ubuntu14.04)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 03:12:19
问题 I tried to create simple dev environment with vagrant but fall in problem with postgres. My Vagrantfile is simple: # -*- mode: ruby -*- # vi: set ft=ruby : # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "ubuntu/trusty64" config.vm.network "forwarded_port", guest: 8000, host: 8000 config.vm.network :public_network config.vm.provision "ansible" do |ansible|

Unable to clean project in Android Studio

走远了吗. 提交于 2019-12-18 18:37:22
问题 OS version: Ubuntu 14.04 LTE 64 Bit Java JRE/JDK version: Oracle JDK 1.8.0_11 Project directory is on a NTFS based drive. Whenever I try to clean my project I get something like below. :app:clean FAILED Error:Execution failed for task ':app:clean'. Unable to delete file: /media/DriveA/AndroidStudioWorkspace/DNA/app/build/intermediates/classes/debug/.../mechandising/MerchandizingActivity$3.class When I try to delete the build folder manually I get the following error. Error when getting