ubuntu-14.04

shared library problems with eclipse on Ubuntu

不羁岁月 提交于 2019-12-06 11:08:23
I am using ubuntu 14.04 LTS 64 bits. and i installed eclipse Mars. and created "hello world" App. but the R class is always missing and never generated. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);//R cannot be resolved to a variable } and i did the folowing: -clean project. -delete the files in gen folder to be regenerated automatically -checked the XML files in your resource folders and all has no errors -right-click on the project->properties->Android to check that i am using the correct API but

Docker daemon does not start or restart

[亡魂溺海] 提交于 2019-12-06 10:17:18
I am on ubuntu 14.04 and I also upgrade docker to recent version. Whenever I do a sudo /etc/init.d/docker start I get a successful pid as follows, docker start/running, process 16267 When I view the PID details, I see nothing - ps -p 16267 PID TTY TIME CMD And when I try to do a sudo docker version I see the below - Client API version: 1.16 Go version (client): go1.2.1 OS/Arch (client): linux/amd64 2015/01/10 10:30:49 Cannot connect to the Docker daemon. Is 'docker -d' running on this host? The output of sudo docker -d is as follows, [2015-01-12T21:05:59.889680188+08:00] [info] docker daemon:

\\copy permission denied while importing CSV to Postgres on Ubuntu

萝らか妹 提交于 2019-12-06 09:55:19
I'm using Postgres on Ubuntu 14.04 and I've been trying to import a csv file to a table in Postgres called 'weather'. I've looked at the question Postgres ERROR: could not open file for reading: Permission denied and tried using the \copy command instead of the regular copy, but I still get the same Permission Denied error. I'm somewhat hesitant to modify ownership permissions for all files for that directory for all the users (as suggested in the first answer). Here's the copy statement: \copy weather from '/home/user1/Dropbox/Development/Databases/SQL/Codeschool/TrySQL/temp_data.csv' HEADER

aws ec2: how to know public ip from inside ubuntu instance [closed]

梦想与她 提交于 2019-12-06 09:13:47
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I created a amazon-web-services instance and used the Ubuntu 14.04 amazon machine image. now I can ssh into that machine and use the shell to run different commands. my question is now, how I can find out the public IP from that machine from inside that ssh-session? I tried using netstat and ifconfig but cannot find out the public IP I locked in with via ssh. Is there somebody who can tell me how to find out,

Toolchain to crosscompile Applications for BBB

做~自己de王妃 提交于 2019-12-06 07:30:01
My native machine is ubuntu based 14.04 LTS x86_64 system, I want to cross-compile applications and QT programs for Beaglebone black, which is an armv7 based system running on Debian 2015 distribution. Which toolchain I should install on my native system, to get this done? Here is a very usefull link how to set up the crosscompiler, uboot, kernel and the filesystem for a beaglebone black. If you only want to crosscompiler, then just follow the few code lines in the Crosscompiler chapter https://eewiki.net/display/linuxonarm/BeagleBone+Black To cross-compile applications you need to use the '

What can I do against 'CUDA driver version is insufficient for CUDA runtime version'?

好久不见. 提交于 2019-12-06 05:54:28
When I go to /usr/local/cuda/samples/1_Utilities/deviceQuery and execute moose@pc09 /usr/local/cuda/samples/1_Utilities/deviceQuery $ sudo make clean rm -f deviceQuery deviceQuery.o rm -rf ../../bin/x86_64/linux/release/deviceQuery moose@pc09 /usr/local/cuda/samples/1_Utilities/deviceQuery $ sudo make "/usr/local/cuda-7.0"/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch

How to send big chunk of data in one UDP packet?

半城伤御伤魂 提交于 2019-12-06 05:30:14
trying to send UDP packets using Netcat nc -u 127.0.0.1 1234 And using tcpdump to see actual packets tcpdump -i any -vv -n udp dst port 1234 In theory the UDP packet size can be about 64K, however when I'm sending a message with size bigger than 2048 the Netcat splits the data and sends in 2 separate UDP packets. For example if I send the following long string

There was an error while trying to write to `/opt/wpscan/.bundle/config`. It is likely that you need to grant write permissions for that path

三世轮回 提交于 2019-12-06 05:00:32
Hello I use a google cloud instance to run my codes, techonepl@instance-1:/opt/wpscan$ sudo gem install bundler && bundle install --without test Fetching: bundler-1.14.6.gem (100%) Successfully installed bundler-1.14.6 Parsing documentation for bundler-1.14.6 Installing ri documentation for bundler-1.14.6 Done installing documentation for bundler after 7 seconds 1 gem installed There was an error while trying to write to /opt/wpscan/.bundle/config . It is likely that you need to grant write permissions for that path. Even if I am running it using sudo, what else I need to grant? System info:

AWS EC2: How to remount previous EBS volume using pivot_root?

折月煮酒 提交于 2019-12-06 04:31:53
I launched an EC2 Spot Instance and unchecked the "Delete On Termination" option for the EBS root volume. I chose the Ubuntu 14.04 64-bit HVM AMI. At some point the instance got terminated due to max price and the EBS volume stayed behind as intended. Now eventually when the Spot Instance is relaunched it creates a brand-new EBS root volume. The old EBS root volume is still sitting out there. Actually I simulated the above events for testing purposes by manually terminating the Spot Instance and launching a new one, but I assume the result would be the same in real usage. So now, how can I get

Django Logging Rotating files not working

六月ゝ 毕业季﹏ 提交于 2019-12-06 04:10:32
问题 So i am having some issues with Django logging when it gets to the maxBytes size. Basically when that happens the file does not seem to rotate and create a new file. Someone told me this could have something to do with the writing permissions of the server but i am not sure how to set that properly so that django is able to create a new log file when the old one is full. my settings: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'filters': { 'require_debug_false': { '()':