ubuntu-11.04

Eclipse freezes on android related autocomplete

时间秒杀一切 提交于 2019-12-23 01:13:53
问题 I've got a vanilla Eclipse, installed the ADT and started following some tutorials. Mostly it works fine. It will build the project fine, launch the emulator and run the compiled android app, I can edit the XML, and some portions of the java files, but once the autocomplete box pops up, that's it. Eclipse freezes totally. The CPU usage of eclipse drops to 0% and nothing happens. I've waited a couple of minutes, but with 0% CPU I don't see the point. And even 10 seconds wait that frequently

Facing error installing mysql2 gem

我们两清 提交于 2019-12-22 12:19:53
问题 Rails ask me to succeed with gem install mysql2 and on trying I got the following error.So what is mostly problem with such error? Detail of error is below: Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt

How to setup a OpenGL developement environment without Mesa

元气小坏坏 提交于 2019-12-22 12:07:28
问题 According to what i read here: http://www.linuxquestions.org/questions/linux-software-2/opengl-vs-mesa-whats-the-diff-351037/ Mesa is software rendering, while driver OpenGL is hardware rendering. Every tutorial i came accross only show how to install Mesa. How can i set up a true (hardware accelerated) openGL? Does installing driver install the header? If so, which header? If i have a program compilled with mesa, do i have to recompile it to take the advantage of hardware accelerated? If

Calling Chrome web browser from the webbrowser.get() in Python

杀马特。学长 韩版系。学妹 提交于 2019-12-22 04:39:06
问题 How I should call webbrowser.get() function so I open the chrome web browser? I'm running Ubuntu 11.04 and Python version 2.7. Using webbrowser.get('chrome') yields an error. 回答1: The quick workaround is to make Chrome the default browser in your system and then use simply webbrowser.get(). I've just checked that on ubuntu 10.10 and it worked just fine. EDIT Just reviewed the code of /usr/lib/python2.6/webbrowser.py. You should do like this: In [5]: webbrowser.get('/usr/bin/google-chrome %s')

Virtual host not working in zend framework

狂风中的少年 提交于 2019-12-21 21:40:56
问题 Following is my virtual host in /etc/apache2/sites-available: <VirtualHost *:80> DocumentRoot "/var/www/roomstays/public" ServerName roomstays #This should be omitted in the production environment SetEnv APPLICATION_ENV development <Directory "/var/www/roomstays/public"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Also it enabled on /etc/apache2/sites-enabled folder And following is my host file: 127.0.0.1 localhost

Enable PHP support for postgresql in Ubuntu 11.04 server

孤人 提交于 2019-12-18 14:09:12
问题 I've installed Apache2 with php5 support and everything works there. I've installed PostgreSQL and am able to connect to it using the terminal and execute SQL statements. PROBLEM: I can't get a working connection between my php scripts and the PostgreSQL database. I have installed the php5-pgsql packaged from the repositories, but the connection just won't work. I get the following error message: PHP Fatal Error: Call to undefined function pg_connect() in /var/www/[myfile].php on line [X] How

String comparison in bash. [[: not found

北战南征 提交于 2019-12-17 15:12:31
问题 I am trying to compare strings in bash. I already found an answer on how to do it on stackoverflow. In script I am trying, I am using the code submitted by Adam in the mentioned question: #!/bin/bash string='My string'; if [[ "$string" == *My* ]] then echo "It's there!"; fi needle='y s' if [[ "$string" == *"$needle"* ]]; then echo "haystack '$string' contains needle '$needle'" fi I also tried approach from ubuntuforums that you can find in 2nd post if [[ $var =~ regexp ]]; then #do something

How to run a script at the start up of Ubuntu? [closed]

感情迁移 提交于 2019-12-17 08:28:30
问题 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 7 years ago . I want to run some Java programs in the background when the system boots in Ubuntu. I have tried to add a script in /etc/init.d directory but failed to start a program. i.e programs are not started. What should I do for that? 回答1: First of all, the easiest way to run things at startup is to add them to the file

Why do we need to format HDFS after every time we restart machine?

空扰寡人 提交于 2019-12-11 06:43:10
问题 I have installed Hadoop in pseudo distributed mode on my laptop, OS is Ubuntu. I have changed paths where hadoop will store its data (by default hadoop stores data in /tmp folder) hdfs-site.xml file looks as below : <property> <name>dfs.data.dir</name> <value>/HADOOP_CLUSTER_DATA/data</value> </property> Now whenever I restart machine and try to start hadoop cluster using start-all.sh script, data node never starts. I confirmed that data node is not start by checking logs and by using jps

Get android debugging to work on Ubuntu 11.04 Natty

我的未来我决定 提交于 2019-12-11 03:15:17
问题 I put a file named "70-android.rules" in /etc/udev/rules.d/ with SUBSYSTEM=="usb", SYSFS{22b8}=="22b8", MODE="0666" but it still wont read my Motorola Atrix, is there something I'm doing wrong? most of the guides I found where for 10.10 回答1: Just to rule out anything really simple, did you enable USB debugging on your phone? 回答2: Change the SYSFS tag to ATTRS, works for me. Apparently they've changed the syntax. This is what mine looks like: SUBSYSTEM=="usb" ATTRS{idVendor}=="0bb4" MODE="0666