ubuntu-12.04

VAGRANT SHARED FOLDERS DO NOT MOUNT - Windows 7 - Vagrant 1.7.4 - Ubuntu 12.04 precise64 - VirtualBox 5.0.10 with Guest Additions

断了今生、忘了曾经 提交于 2020-01-07 03:08:07
问题 I'm following the old tutorials off of gettingstartedwithdjango.com . This series is quite old and I'm new to Django which is why I hit that site in the first place. It became my first introduction to Vagrant. Because the series is old and there are now new versions of Django, Vagrant, etc, I've found just getting through the first tutorial was quite difficult. This was mainly just the gap between Django v1.4 and the current version 1.9 which is what I'm running, including some syntax

Call expect file from C

旧街凉风 提交于 2020-01-06 19:14:09
问题 I coded a ftp.exp file which sends a log file of a C application to a server. #!/usr/bin/expect set timeout -1 spawn ftp xxx.xxx.xxx 21 match_max 100000 expect -re {[2]{2,}[0]{1,}} send -- "usrxxxx" expect -exact "usrxxxxx" send -- "\r" expect -re {[3]{2,}[1]{1,}} send -- "xxxx\r" expect -exact "\r 230 Access granted for xxxxxxxxxx !\r Remote system type is UNIX.\r Using binary mode to transfer files.\r ftp> " send -- "put /home/User/test.txt test2.txt\r" expect -exact "put /home/User/test

Unable to install Rails using RVM on Ubuntu 12.04 LTS

和自甴很熟 提交于 2020-01-06 15:14:24
问题 I am using Ubuntu 12.04 LTS x86_64 Minimal and I have installed Ruby and RVM according to these instructions. Ruby installs fine, and RVM installs fine and works perfectly. I have visited just about every SO question I can find, and article on this issue and nothing has worked. Rails still won't install, and I am unable to do anything to get it to work thus far. gem install rails -v 4.0.0 returns either 'success' (it returns nothing, and rails remains unusable) or fails giving: [ tsujp ~ 437

How to resolve these unresolved imports in PyDev ( eclipse )?

北战南征 提交于 2020-01-06 09:55:10
问题 I get unresolved imports for these, from gi.repository import GLib, GObject, Gio from gi.repository import Dee from gi.repository import Unity I've been learning to write lens for unity(ubuntu). Where/How to get these modules and link them? 回答1: Are those in your PYTHONPATH? Have you tried adding 'gi' to the forced builtins? See: http://pydev.org/manual_101_interpreter.html for details. 回答2: Right click on the project node and choose Properties . Choose PyDev - PYTHONPATH and the External

How to resolve these unresolved imports in PyDev ( eclipse )?

℡╲_俬逩灬. 提交于 2020-01-06 09:53:38
问题 I get unresolved imports for these, from gi.repository import GLib, GObject, Gio from gi.repository import Dee from gi.repository import Unity I've been learning to write lens for unity(ubuntu). Where/How to get these modules and link them? 回答1: Are those in your PYTHONPATH? Have you tried adding 'gi' to the forced builtins? See: http://pydev.org/manual_101_interpreter.html for details. 回答2: Right click on the project node and choose Properties . Choose PyDev - PYTHONPATH and the External

ImportError: No module named couchbase._libcouchbase

≯℡__Kan透↙ 提交于 2020-01-06 02:16:26
问题 This only happens for me in Travis under the pypy build. Here's the exact error string: Traceback (most recent call last): File "app_main.py", line 75, in run_toplevel File "app_main.py", line 581, in run_it File "<string>", line 1, in <module> File "tests/test_pycouchbase.py", line 15, in <module> from pycouchbase.utils import * File "pycouchbase/__init__.py", line 8, in <module> from .connection import Connection File "pycouchbase/connection.py", line 3, in <module> from couchbase.bucket

Hadoop datanode fails to start throwing org.apache.hadoop.hdfs.server.common.Storage: Cannot lock storage

三世轮回 提交于 2020-01-03 17:14:21
问题 I have some problems trying to start a datanode in Hadoop, from the log I can see that datanode is started twice (partial log follows): 2012-05-22 16:25:00,369 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG: /************************************************************ STARTUP_MSG: Starting DataNode STARTUP_MSG: host = master/192.168.0.1 STARTUP_MSG: args = [] STARTUP_MSG: version = 1.0.1 STARTUP_MSG: build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1

Hadoop datanode fails to start throwing org.apache.hadoop.hdfs.server.common.Storage: Cannot lock storage

一笑奈何 提交于 2020-01-03 17:14:18
问题 I have some problems trying to start a datanode in Hadoop, from the log I can see that datanode is started twice (partial log follows): 2012-05-22 16:25:00,369 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG: /************************************************************ STARTUP_MSG: Starting DataNode STARTUP_MSG: host = master/192.168.0.1 STARTUP_MSG: args = [] STARTUP_MSG: version = 1.0.1 STARTUP_MSG: build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1

Google Analytics API forces browser open when authenticating in Python

末鹿安然 提交于 2020-01-03 17:10:09
问题 I'm attempting to query data from the Google Analytics API. I've setup my credentials, and I am able to get the following code to run on my Windows local machine. However, when I run from the Ubuntu command line, it forces an SSL browser window to open at the following step: service = initialize_service() All code is below: import httplib2 from apiclient.discovery import build from oauth2client.client import flow_from_clientsecrets from oauth2client.file import Storage from oauth2client.tools

Google Analytics API forces browser open when authenticating in Python

北城余情 提交于 2020-01-03 17:09:07
问题 I'm attempting to query data from the Google Analytics API. I've setup my credentials, and I am able to get the following code to run on my Windows local machine. However, when I run from the Ubuntu command line, it forces an SSL browser window to open at the following step: service = initialize_service() All code is below: import httplib2 from apiclient.discovery import build from oauth2client.client import flow_from_clientsecrets from oauth2client.file import Storage from oauth2client.tools