ubuntu-12.04

dtype mismatch in sklearn on k-means

廉价感情. 提交于 2019-12-07 03:33:50
问题 I am attempting to run the first answer to this question Python Relating k-means cluster to instance however I am getting the following error: Traceback (most recent call last): File "test.py", line 16, in <module> model = sklearn.cluster.k_means(a, clust_centers) File "/usr/local/lib/python2.7/dist-packages/scikit_learn-0.14.1-py2.7-linux-i686.egg/sklearn/cluster/k_means_.py", line 267, in k_means x_squared_norms=x_squared_norms, random_state=random_state) File "/usr/local/lib/python2.7/dist

How to make Eclipse to find my jdk in Linux?

孤街醉人 提交于 2019-12-07 02:27:02
问题 I've installed Eclipse and jdk manually. My JAVA_HOME is set, and I am able to run the java -version and javac -version commands, but when I try to run Eclipse, it shows the following message: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /home/$USER/development/eclipse/jre/bin/java java in your current PATH How can I fix this? Distro: Ubuntu 12.0.4 64 bits.

PHP MySql unknown server host

梦想的初衷 提交于 2019-12-07 01:54:27
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 checked the mysql configuration and it is set to that IP and port. I have also checked my server hosts

Eclipse Juno: How to change tab color?

倾然丶 夕夏残阳落幕 提交于 2019-12-07 01:52:12
问题 Unfortunately the latest update of Eclipse plugins discarded Inigo and installed Juno. It took me a lot of time to make it look like the previous version, but I cannot get it managed to change the blue tab color. Any ideas which setting or css this is? [UPDATE] There are settings to change the colors, but these settings don't cause any effect, so can I assumed it is a bug? 回答1: It's not possible with the default themes and Eclipse installation, but there are workarounds: Easy, but restricted:

Shopify + Ubuntu 12.04LTS + Faraday issue = OK to use older OpenSSL?

风格不统一 提交于 2019-12-06 23:07:24
问题 I'm using Ubuntu 12.04LTS Desktop to develop a Shopify App (using the shopify_app gem), and I ran into this problem when processing the callback URL. Faraday::Error::ConnectionFailed (Connection reset by peer - SSL_connect) Looking at the shopify-app-discuss group here and here, it seems that the problem is with Ubuntu 12.04 and its OpenSSL. I tried to install the most up-to-date OpenSSL, but nothing. One alternative that I found was to use a different, older OpenSSL, one that RVM provides. $

[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified

浪尽此生 提交于 2019-12-06 21:27:27
I'm trying to install ODBC on Ubuntu 12.04 for the purpose of using it with Zabbix . I installed unixODBC as per these Zabbix instructions and modified my /etc/odbc.ini to look like this: [eyatest] Description = MySQL connection to 'dbname' database Driver = MySQL Database = dbname Server = localhost UserName = root Password = **** Port = 3306 Socket = /var/lib/mysql/mysql.sock But when I try connecting with isql I get the error in the title of this question: sudo isql -v eyatest [IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified What am I missing?

Meteor app deployed to Digital Ocean stuck at 100% CPU and OOM

烈酒焚心 提交于 2019-12-06 18:38:06
问题 I have a Meteor (0.8.0) app deployed using Meteor Up to Digital Ocean that's been stuck at 100% CPU, only to crash with out of memory, and start up again at 100% CPU. It's been stuck like this for the past 24 hours. The weird part is nobody is using the server and meteor.log isn't showing much clues. I've got MongoHQ with oplog for the database. Digital Ocean specs: 1GB Ram 30GB SSD Disk New York 2 Ubuntu 12.04.3 x64 Screenshot showing issue: Note that the screenshot was captured yesterday

Eclipse shorcuts (F3/ctrl+click) not working for navigation

雨燕双飞 提交于 2019-12-06 15:53:16
Shortcut to access the declaration with the help of this shortcut is not working Installed version of Ubuntu is 12.04 and for Eclipse it is: Version: Juno Release Build id: 20120614-1722 It says:- The Resource is not on the include path of a JavaScript project It works with .jsp files but not with .js files ! These shotcuts works well with this version installed. 来源: https://stackoverflow.com/questions/12212686/eclipse-shorcuts-f3-ctrlclick-not-working-for-navigation

rxtxSerial librxtx-java Ubuntu

戏子无情 提交于 2019-12-06 15:28:30
I am getting the following error when I try to run my Java application: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1878) at java.lang.Runtime.loadLibrary0(Runtime.java:849) at java.lang.System.loadLibrary(System.java:1087) at gnu.io.CommPortIdentifier.(CommPortIdentifier.java:123) at gqueak.GSqueak.connect(GSqueak.java:29) at gsqueak.GSqueak.main(GSqueak.java:67) I have installed

How to setup Vagrant ssh agent forwarding?

泪湿孤枕 提交于 2019-12-06 13:29:31
My goal is to connect from a VirtualBox VM to another machine using the ssh key authentication. I have created the VM with Vagrant (1.0.5). I have also enabled config.ssh.forward_agent = true (as suggested in this post ). Sadly, the ssh forwarding does not seem to be working. These are the steps (on fresh ubuntu with vagrant and virtualbox): Log from the host machine to VM (when I use --debug, I see that the forwarding is enabled) vagrant ssh Log from VM (ubuntu 12.04 with injected vagrant ssh key) to external machine ssh -A sk@192.168.0.1 to get: Permission denied. Do I need to perform any