ubuntu-12.04

Neos Performance

ⅰ亾dé卋堺 提交于 2019-12-08 05:25:05
问题 I´m new at Neos and the concept is perfect for my needs! So thank you for developing this. But I installed the cms on my vServer and ist takes about 7.4sec to load the page! When I open the Backend menu it takes about 30sec to load all things from there. I have no idea why this takes so long. I´ve included a picture of the chrome developer tools network section, you can see there the long loading time. I`ve already checked my server and no other processes running and could slow down the

Compiling VIM with breakindent patch

余生颓废 提交于 2019-12-08 05:02:36
问题 In Ubuntu 12.04 Precise the only way to get breakindent patch working in VIM seems to be compiling VIM itself after patching it. Here's what I've done: Install pbuilder and create local environment sudo apt-get install pbuilder debootstrap sudo pbuilder create --debootstrapopts --variant=buildd Get the sources sudo apt-get source vim Patch them with breakindent patch retrieved from the official repo cd vim-7.3.429 patch -p1 < vim-breakindent.patch sudo pbuilder build vim_7.3.429-2ubuntu2.1

shared object ‘RCurl.so’ not found

瘦欲@ 提交于 2019-12-08 04:28:23
问题 Data about my system R version 3.2.1 (2015-06-18) (World-Famous Astronaut) Ubuntu 12.04 LTS $ locate RCurl.so : ~/R/i686-pc-linux-gnu-library/2.15/RCurl/libs/RCurl.so ~/R/i686-pc-linux-gnu-library/3.0/RCurl/libs/RCurl.so ~/R/i686-pc-linux-gnu-library/3.1/RCurl/libs/RCurl.so /usr/local/lib/R/site-library/RCurl/libs/RCurl.so $ r -pie '.libPaths()' : [1] "~/R/i686-pc-linux-gnu-library/3.2" [2] "/usr/local/lib/R/site-library" [3] "/usr/lib/R/site-library" [4] "/usr/lib/R/library" $ R CMD ldd /usr

PHP MySql unknown server host

旧巷老猫 提交于 2019-12-08 04:10:47
问题 I am running Ubuntu 12.04.4 LTS with MySQL 5.5.38 and PHP 5.3.10, using Webmin 1.680 (although I do use the terminal for administration as well). I am on a dynamic IP so I have been using dyndns to host a website, which has been working flawlessly. I want to expand my website to access a mysql database. I am attempting to use PHP to connect to mysql, specifically a specific database I set up using Webmin. However, I keep getting the error: "Unknown MySQL server host '127.0.0.1:3306'" I have

Ubuntu 12.04 Installation on java for netbeans IDE 6.9.1

瘦欲@ 提交于 2019-12-08 03:35:30
I am using ubuntu 12.04 on virtual machine but when i try to install java its gives me error like this sudo apt-get sun-java6-jdk sun-java6-jre [sudo] password for samkt: E: Invalid operation sun-java6-jdk so now i am not able to install netbeans also because its required java and JVM for installing netbeans. As I can see you forgot the "install" command. sudo apt-get install <<type packages here>> For example: sudo apt-get install ubuntu-restricted-extras chromium-browser python And the full code for installing Gava Java: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo

wifstream with imbue, locale produces valgrind errors

别说谁变了你拦得住时间么 提交于 2019-12-08 03:30:20
问题 I implemented a language detector using ngrams and all works fine so far. In order to detect a bunch of languages I have a set of language dependent ngrams files for each supported language my detector needs to read in before the actual detection is started. For reading these files I set the systems default locale (which on my ubuntu machine is en_US.UTF-8) like so. These code snippets are in my language_identifier constructor: std::locale def_lc(""); // --- line 37 (see valgrind) const utf8

Characters encoding wrong in terminal using git

混江龙づ霸主 提交于 2019-12-08 03:05:56
问题 Any time I try to make a "git diff" command to see a file change, it shows me problem in special characters, like accented ones, but if I see the file with "cat" it shows me everything ok. I am using Ubuntu 12.04 LTS. ex: WHERE `T<C3><A9>cnico` IS NOT NULL I tried to put these lines in .gitconfig, close terminal e open again, but still didn't work. [i18n] logoutputencoding = utf8 commitencoding = utf8 Anyone have other suggestion? 回答1: Make sure of your git version. For Ubuntu12.0.4 (precise)

Ubuntu encrypted home directory | Errno 36 File Name too long

天大地大妈咪最大 提交于 2019-12-08 00:25:10
问题 Working on a python scraper/spider and encountered a URL that exceeds the char limit with the titled IOError. Using httplib2 and when I attempt to retrieve the URL I receive a file name too long error. I prefer to have all of my projects within the home directory since I am using Dropbox. Anyway around this issue or should I just setup my working directory outside of home? 回答1: The fact that the filename that's too long starts with '.cache/www.example.com' explains the problem. httplib2

Canonical Header Links for PDF and Image files in .htaccess

时间秒杀一切 提交于 2019-12-07 20:54:15
问题 I'm attempting to setup Canonical links for a number of PDF and images files on my website. Example Folder Structure: /index.php /docs/ file.pdf /folder1/ file.pdf /folder2/ file1.pdf file2.pdf /img/ sprite.png /slideshow/ slide1.jpg slide2.jpg Example PDF URL to Canonical URL: http://www.example.com/docs/folder1/file.pdf --> http://www.example.com/products/folder1/ I am trying to avoid having to put individual .htaccess files in each of the sub-folders that contain all of my images and PDFs.

Numpy loadtxt encoding

丶灬走出姿态 提交于 2019-12-07 20:33:57
问题 I am trying to load data with numpy.loadtxt... The file im trying to read is using cp1252 coding. Is there a possibility to change the encoding to cp1252 with numpy? The following import numpy as np n = 10 myfile = '/path/to/myfile' mydata = np.loadtxt(myfile, skiprows = n) gives: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 189: invalid start byte The file contains metadata (first n rows) followed by a table of floats. Edit: This problem only occurs when running this