ubuntu-11.04

Permission denied (public key) during fetch from GitHub with Jenkins user on Ubuntu

本秂侑毒 提交于 2019-12-02 20:13:20
Here is my setup: Jenkins is running on my linux machine as 'jenkins' user. I have generated a ssh key-pair as described in Linux - Setup Git , for the 'jenkins' user. When I sudo su jenkins and try ssh -vT git@github.com , I am always asked my passphrase, but I am always eventually authenicated. (the verbose option shows which key is used, among others). I could clone my repo from GitHub using jenkins: Thusly: jenkins@alpm:~/jobs/test git/workspace$ git pull Enter passphrase for key '/var/lib/jenkins/.ssh/id*_rsa': Already up-to-date. Up to this point I have followed the instructions to the

/etc/apt/sources.list\" E212: Can't open file for writing

百般思念 提交于 2019-12-02 13:50:37
I am trying to edit sources.list using vi editor but getting the following error while saving the file: /etc/apt/sources.list" E212: Can't open file for writing Zsolt Botykai For some reason the file you are writing to cannot be created or overwritten. The reason could be that you do not have permission to write in the directory or the file name is not valid. Vim has a builtin help system. I just quoted what it says to :h E212 . You might want to edit the file as a superuser as sudo vim FILE . Or if you don't want to leave your existing vim session (and now have proper sudo rights), you can

How to setup zend auto complete in NetBeans on Ubuntu

不羁的心 提交于 2019-12-02 13:33:41
问题 I was stuck in setup Zend auto-complete code in NetBeans 7.1 on Ubuntu 11.04 A little help would be great ! I set in Tools->Options->PHP->Zend /usr/bin/zf.sh as Zend script , pressed "register Provider" and restart NetBeans, I thought it would be enough. But when I create simple form class, the auto complete doesn't work(simple example is below): class Application_Form_AddIp extends Zend_Form { public function init(){ $ip = new Zend_Form_Element_Text("ip"); $ip-> // THERE I SHOULD GET AUTO

Rails is broken after upgrading to Ubuntu 11.04

时光怂恿深爱的人放手 提交于 2019-12-02 10:14:36
问题 I'm still relatively new to Rails and Ruby - and after upgrading to the new version of Ubuntu (11.04), my rails installation is not working correctly. I've tried updating Rails, and updating the versions I have installed using RVM, none of which worked. Here is the terminal output: /usr/share/rails-ruby1.8/railties/lib/rails_generator/options.rb:32:in `default_options': undefined method `write_inheritable_attribute' for Rails::Generator::Base:Class (NoMethodError) from /usr/share/rails-ruby1

Rails is broken after upgrading to Ubuntu 11.04

谁说我不能喝 提交于 2019-12-02 04:14:53
I'm still relatively new to Rails and Ruby - and after upgrading to the new version of Ubuntu (11.04), my rails installation is not working correctly. I've tried updating Rails, and updating the versions I have installed using RVM, none of which worked. Here is the terminal output: /usr/share/rails-ruby1.8/railties/lib/rails_generator/options.rb:32:in `default_options': undefined method `write_inheritable_attribute' for Rails::Generator::Base:Class (NoMethodError) from /usr/share/rails-ruby1.8/railties/lib/rails_generator/base.rb:90:in `<class:Base>' from /usr/share/rails-ruby1.8/railties/lib

How to setup zend auto complete in NetBeans on Ubuntu

蹲街弑〆低调 提交于 2019-12-02 03:07:55
I was stuck in setup Zend auto-complete code in NetBeans 7.1 on Ubuntu 11.04 A little help would be great ! I set in Tools->Options->PHP->Zend /usr/bin/zf.sh as Zend script , pressed "register Provider" and restart NetBeans, I thought it would be enough. But when I create simple form class, the auto complete doesn't work(simple example is below): class Application_Form_AddIp extends Zend_Form { public function init(){ $ip = new Zend_Form_Element_Text("ip"); $ip-> // THERE I SHOULD GET AUTO COMPLETE-THE LIST OF POSSIBLE FUNCTIONS } } Does NetBeans have auto-complete like this example, and is it

How to provide your own delimiter for cin?

一个人想着一个人 提交于 2019-12-01 17:00:34
In c, I can use newline delimeter ([^\n]) with scanf. Using which I can store the line. Similarly for cin, I can use getline. If I have to store a paragraph, I can simulate the functionality using my own special char delimiter like [^#] or [^\t] with scanf function in c. char a[30]; scanf("%[^\#]",a); printf("%s",a); How to achieve the similar functionality with cin object in cpp. istream.getline lets you specify a deliminator to use instead of the default '\n' : cin.getline (char* s, streamsize n, char delim ); or the safer and easier way is to use std::getline . With this method you don't

How to provide your own delimiter for cin?

こ雲淡風輕ζ 提交于 2019-12-01 16:52:19
问题 In c, I can use newline delimeter ([^\n]) with scanf. Using which I can store the line. Similarly for cin, I can use getline. If I have to store a paragraph, I can simulate the functionality using my own special char delimiter like [^#] or [^\t] with scanf function in c. char a[30]; scanf("%[^\#]",a); printf("%s",a); How to achieve the similar functionality with cin object in cpp. 回答1: istream.getline lets you specify a deliminator to use instead of the default '\n' : cin.getline (char* s,

DataNode failing to Start in Hadoop

帅比萌擦擦* 提交于 2019-12-01 09:30:36
问题 I trying setup Hadoop install on Ubuntu 11.04 and Java 6 sun. I was working with hadoop 0.20.203 rc1 build. I am repeatedly running into an issue on Ubuntu 11.04 with java-6-sun. When I try to start the hadoop, the datanode doesn't start due to "Cannot access storage". 2011-12-22 22:09:20,874 INFO org.apache.hadoop.hdfs.server.common.Storage: Cannot lock storage /home/hadoop/work/dfs_blk/hadoop. The directory is already locked. 2011-12-22 22:09:20,896 ERROR org.apache.hadoop.hdfs.server

C++ boost libraries shared_memory_object undefined reference to 'shm_open'

不想你离开。 提交于 2019-11-30 17:30:28
I tried to compile the following code on ubuntu 11.04: #include <boost/interprocess/shared_memory_object.hpp> #include <iostream> int main() { boost::interprocess::shared_memory_object shdmem(boost::interprocess::open_or_create, "Highscore", boost::interprocess::read_write); shdmem.truncate(1024); std::cout << shdmem.get_name() << std::endl; boost::interprocess::offset_t size; if (shdmem.get_size(size)) std::cout << size << std::endl; } only to get the following errors: /tmp/cc786obC.o: In function `boost::interprocess::shared_memory_object::priv_open_or_create(boost::interprocess::detail: