ubuntu-12.10

Cursor shifted from position

▼魔方 西西 提交于 2021-02-07 12:27:17
问题 On a given line of the RStudio console or script writing area, the cursor as it flashes on the screen is shifted from its true position, where text is inserted. Say I want to delete a character on a given line. I click right in front of it, and the red cursor flashes where it should. But when I press backspace, the character six spots to the left gets deleted instead. This behaviour gets worse as the line goes on, so near the end of a long line, the offset is of 13 characters while it is only

Cursor shifted from position

♀尐吖头ヾ 提交于 2021-02-07 12:27:06
问题 On a given line of the RStudio console or script writing area, the cursor as it flashes on the screen is shifted from its true position, where text is inserted. Say I want to delete a character on a given line. I click right in front of it, and the red cursor flashes where it should. But when I press backspace, the character six spots to the left gets deleted instead. This behaviour gets worse as the line goes on, so near the end of a long line, the offset is of 13 characters while it is only

Postgresql initial configuration: How to access as the postgres user?

拜拜、爱过 提交于 2021-02-05 11:02:41
问题 After installing postgresql, I tried it out, typing createdb mydb, like it's written in the documentation. Then the following error occured: createdb: could not connect to database postgres: FATAL: role "xxx" does not exist I studied the documentation, where is said: You will need to become the operating system user under which PostgreSQL was installed (usually postgres) to create the first user account I tried this by accessing psql (in my case with sudo -u postgres psql, using Ubuntu 12.10)

PHP warning : Module 'mcrypt' already loaded

早过忘川 提交于 2020-01-12 06:30:08
问题 When I run a command with PHP, it shows me an error. E.g when I run php -v to see my PHP-version it shows me an error then the informations about PHP: Module 'mcrypt' already loaded in Unknown on line 0 zied@ubuntu:~$ php -v PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0 PHP 5.4.25-1+sury.org~quantal+2 (cli) (built: Feb 12 2014 11:11:30) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies 回答1: Your php.ini contains two or more

why doesn't NumPy import in idle 3.30 on Ubuntu 12.10 64 Bit

笑着哭i 提交于 2019-12-25 04:11:09
问题 I installed NumPy by running the following in a linux shell: sudo apt-get install python-numpy In Idle for python 3.30 when I import numpy it outputs the following: Python 3.3.0 (default, Sep 29 2012, 17:14:58) [GCC 4.7.2] on linux Type "copyright", "credits" or "license()" for more information. >>> import numpy Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import numpy File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 137, in <module> from . import

R not using more than 4GB of memory

本小妞迷上赌 提交于 2019-12-23 09:26:22
问题 I'm running 64 bit R on Ubuntu 12.10 AMD64. I recently added additional 8GB of memory to my system making it a total of 12GB. But I notice that R gives me an error whenever the memory usage (of a single R session) goes above 4GB. When I ran 6 R sessions in parallel, each consuming ~ 3 GB of memory, my over all memory usage increased up to 11 GB. But a single R session is not able to use more than 4GB! I need to train a random forest model over a large data set and I need > 4GB with a single R

Wordpress Permalinks never work on localhost Ubuntu 12.10

十年热恋 提交于 2019-12-22 07:00:10
问题 Wordpress permalinks aren't working, except for the default. How do I enable this rewriting? I've tried: sudo a2enmod rewrite sudo service apache2 restart The permalinks are saving to the .htaccess in /localhost/wordpress: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L] </IfModule> # END WordPress and I copy to root

Debugging native code in android under eclipse fails

北战南征 提交于 2019-12-19 12:37:11
问题 I'm trying to debug the native code in the "csipsimple" android app using the Debug As->Android Native Application option. I used this tutorial to do it. I keep getting these errors: [2013-06-09 17:24:24 - SipHome] Unknown Application ABI: [2013-06-09 17:24:24 - SipHome] Android [2013-06-09 17:24:24 - SipHome] Unknown Application ABI: [2013-06-09 17:24:24 - SipHome] NDK: [2013-06-09 17:24:24 - SipHome] Unknown Application ABI: [2013-06-09 17:24:24 - SipHome] Uses [2013-06-09 17:24:24 -

adb error on Android SDK. Using Linux Ubuntu 64 bit 12.10

北城余情 提交于 2019-12-18 10:45:02
问题 I looked on this site for this error I'm encountering: Stopping ADB server failed (code -1). Unable to run 'adb': Cannot run program "/home/ariel/Downloads/adt-bundle-linux-x86_64/sdk/platform-tools/adb": error=2, No such file or directory. Starting ADB server failed (code -1). I've used this command on the terminal provided from this topic. Android SDK on a 64-bit linux machine EDIT: I've tried using this command on terminal: sudo apt-get install ia32-libs Sadly, it did nothing and it showed

I screwed up the system version of Python Pip on Ubuntu 12.10

六月ゝ 毕业季﹏ 提交于 2019-12-18 09:59:04
问题 I wanted to update pip on my main install of Python, specifically to get the list command. Which also includes the list- updates capability. So I ran: sudo pip install --upgrade pip All looked good on the install but then I went to run pip and got this: (end of install included if it helps) Installing pip script to /usr/local/bin Installing pip-2.7 script to /usr/local/bin Successfully installed pip Cleaning up... tom@tom-sam:~$ pip list -o bash: /usr/bin/pip: No such file or directory tom