install

Installing MySQLdb for Django on Mac OS X 10.6 Snow Leopard with MAMP

♀尐吖头ヾ 提交于 2020-01-13 03:49:28
问题 So I know this is not a new topic, but its one that nobody has seemed to be able to solve, at least not for Python 2.6 / Snow Leopard. (The Leopard fixes I've found aren't applicable to Snow Leopard.) Situation: I'm trying to get Django installed locally on my Mac OS X Snow Leopard laptop. (10.6.7) I have Python 2.6.1, which is what came preinstalled with Snow Leopard, MySQL-python 1.2.3, and MAMP 1.9.6. All are latest current versions. Without making any changes to the MySQLdb package, if I

FastAI 简介

纵饮孤独 提交于 2020-01-13 03:05:51
Fastai简介 在深度学习领域,最受学生欢迎的MOOC课程平台有三个:Fast.ai、deeplearning.ai /Coursera和Udacity。Fastai作为其中之一,是一个课程平台,一个讨论社区,也是一个PyTorc的顶层框架。Fastai的理念就是:Making neural nets uncool again,让神经网络没那么望而生畏,其课程也是采用项目驱动的方式教学。经过Fast.ai团队和PyTorch团队的共同努力,我们迎来了一个为计算机视觉、文本、表格数据、时间序列、协同过滤等常见深度学习应用提供单一一致界面的深度学习库。这意味着,如果你已经学会用fastai创建实用的计算机视觉(CV)模型,那你就可以用同样的方法创建自然语言处理(NLP)模型,或是软件支持的其他模型。类似Keras,Fastai不只是将PyTorch功能封装了比较“亲切”的API,而是让PyTorch的强大之处易用了。 Fastai安装 首先需要注意的是:fastai v1目前只支持Linux,需要PyTorch v1和Python 3.6或更高版本。Windows支持正处于实验阶段:它应该可以正常工作,但是速度慢得多,测试也不太好。由于macOS目前没有良好的 Nvidia GPU 支持,目前没有优先考虑macOS上的开发。 fastai-1.x可以使用conda或pip包管理器

centos7上PostgreSQL11安装与配置

限于喜欢 提交于 2020-01-13 01:20:51
1、安装epel yum -y install epel-release 2、安装PostgreSQL11 yum -y install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm yum -y install postgresql11 yum -y install postgresql11-server # 附带安装 yum -y install postgresql11-libs postgresql11-contrib postgresql11-devel # 初始化数据,并设置开机自启动 /usr/pgsql-11/bin/postgresql-11-setup initdb systemctl enable postgresql-11 systemctl start postgresql-11 3、修改PostgreSQL创建的linux用户 postgres passwd postgres 4、配置可以访问PostgreSQL的ip( 更多参考此处 ) sudo vim /var/lib/pgsql/11/data/postgresql.conf # '192.168.1.188' 是本机ip listen

how to get Threaded Building Blocks working in Ubuntu 14.04

╄→尐↘猪︶ㄣ 提交于 2020-01-12 23:28:13
问题 I want to get TBB working, but I'm having a little difficulty getting the compiling to work on Ubuntu 14.04. I think it is likely a problem with setting the location of libraries for the compiler. I installed TBB using the following command: sudo apt-get install libtbb-dev I have a small test example that I am now trying to compile. The code is as follows: #include "tbb/task_scheduler_init.h" int main(int argc, char* argv[]) { tbb::task_scheduler_init init; return 0; } The command I am

Google Analytics, Install Tracking android

六月ゝ 毕业季﹏ 提交于 2020-01-12 20:41:51
问题 I want track install referer for my application using google analytics. I don't want use the Tracking Pageviews and Events feature, only install. So I added the sdk jar in my app, add these lines to the manifest : <receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> And publish the app. But how can see the stats ? I never entered my UA

Google Analytics, Install Tracking android

浪尽此生 提交于 2020-01-12 20:41:10
问题 I want track install referer for my application using google analytics. I don't want use the Tracking Pageviews and Events feature, only install. So I added the sdk jar in my app, add these lines to the manifest : <receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> And publish the app. But how can see the stats ? I never entered my UA

Google Analytics, Install Tracking android

断了今生、忘了曾经 提交于 2020-01-12 20:40:59
问题 I want track install referer for my application using google analytics. I don't want use the Tracking Pageviews and Events feature, only install. So I added the sdk jar in my app, add these lines to the manifest : <receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> And publish the app. But how can see the stats ? I never entered my UA

LAMP环境搭建media wiki、dokuwiki

孤街醉人 提交于 2020-01-12 17:51:52
准备工作 安装apache(httpd) 编译安装httpd tar xzvf httpd-2.2.17.tar.gz -C /data/server cd /data/server/httpd-2.2.17 ./configure --prefix=/data/server/httpd --enable-so --enable-rewrite --enable-charset-lite --enable-cgi make -j4 && make install 优化路径并启动: ln -s /data/server/httpd/bin/* /usr/local/bin/ apachectl start 此时启动会提示: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::963a:9ac6:910d:70f2 for ServerName 解决办法:在末行添加:ServerName localhost:80 验证: 安装MySQL 编译安装mysql 提前安好需要的安装环境 yum -y install cmake nucrses-devel yum -y install ncurses-devel 编译安装: tar zxvf mysql-5.5.22

linux 安装Mosquitto

时光怂恿深爱的人放手 提交于 2020-01-12 14:41:44
这篇博客讲的很好: https://www.cnblogs.com/chen1-kerr/p/7258487.html 此处简单摘抄部分内容 1.下载mosquitto安装包 源码地址: http://mosquitto.org/files/source/ 2.安装其他依赖包 yum install gcc gcc-c++ libstdc++-devel yum install openssl-devel -y yum install c-ares-devel -y yum install uuid-devel -y yum install libuuid-devel -y 3.进入到1中下载并解压出来的文件夹中执行 make && make install 安装好之后可进入 /etc 目录查看 4.进入到 /etc/mosquitto 中,执行 cp mosquitto.conf.example mosquitto.conf 5.启动mosquitto服务 mosquitto -c /etc/mosquitto/mosquitto.conf //后台启动 mosquitto -d -c /etc/mosquitto/mosquitto.conf 6.启动的时候会出现以下错误 Error: Invalid user 'mosquitto'. 解决办法:   修改配置文件 /etc