摘要: ~~~ ~~~ python很好用,尤其是用过easy_install的朋友更是觉得它的便捷, 卸载命令也很简单 easy_install m package name 但是面对源码安装的怎么办呢? setup.py 帮助你纪录安装细节方便你卸载 python setup.py install re 阅读全文
posted @ 2018-12-21 15:04 Jonky 阅读(1445) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ 在编译kenlm的时候需要安装boost,去官网下载boost安装包,然后按照以下步骤安装。 "boost官网" 以下内容,网上转载 boost中,用到了别的函数库,所以为了使用boost中相应的功能,需要先安装系统中可能缺失的库 apt get install mpi defaul 阅读全文
posted @ 2018-12-21 15:02 Jonky 阅读(2906) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ word2vec官网:https://code.google.com/p/word2vec/ 利用中文数据跑Google开源项目word2vec:http://www.cnblogs.com/hebin/p/3507609.html word2vec使用指导:http://blog. 阅读全文
posted @ 2018-12-21 15:00 Jonky 阅读(390) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ 1、安装apache sudo apt get install apache2 为了测试apache2是否正常,访问http://localhost/或http://127.0.0.1/,出现It Works!即是安装成功。 sudo /etc/init.d/apache2 rest 阅读全文
posted @ 2018-12-21 14:57 Jonky 阅读(359) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ 1.Ubuntu 一、 apt get 代理设置 由于公司通过代理上网,firefox的代理设置很容易就搞定了,但是通过apt get安装软件还是不行,于是,查阅了很多资料,最多的方法就是网上流传的三种方法,试了一下还是失败,最后在详细阅读了apt get的man之后终于成功了,与大 阅读全文
posted @ 2018-12-21 14:54 Jonky 阅读(2376) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ tmux常用命令与快捷键 http://www.111cn.net/sys/linux/59058.htm http://www.360doc.com/content/13/0709/13/13047933_298691438.shtml 安装 sudo apt get instal 阅读全文
posted @ 2018-12-21 14:51 Jonky 阅读(5495) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ 官网资料,具有各语言的例子 https://thrift.apache.org/tutorial/ https://thrift.apache.org/tutorial/py 阅读全文
posted @ 2018-12-21 14:49 Jonky 阅读(107) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ Sublime Text 全程指南 http://zh.lucida.me/blog/sublime text complete guide/ Sublime官网Package安装 https://packagecontrol.io/installation Sublime综合资料 阅读全文
posted @ 2018-12-21 14:45 Jonky 阅读(293) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ 查看版本 $ ssh V OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 用SSH登录到远程主机 localhost$ ssh l jsmith(用户名) remotehost.example.com(IP地址) 用SSH退出符切换SSH会话 这个 阅读全文
posted @ 2018-12-21 14:37 Jonky 阅读(13490) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ 标准库的安装路径 在import模块的时候,python是通过系统路径找到这些模块的,我们可以将这些路径打印出来: pprint.pprint(sys.path) ['', '/Library/Python/2.7/site packages/pip 1.4.1 py2.7.egg' 阅读全文
posted @ 2018-12-21 14:31 Jonky 阅读(209) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ 阅读全文
posted @ 2018-12-21 14:30 Jonky 阅读(600) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ Thread类定义了以下常用方法与属性: Thread.getName() \Thread.setName():老方式用于获取和设置线程的名称,官方建议用Thread.name替代 Thread.ident:获取线程的标识符。只有在调用start()方法执行后才有效,否则返回None 阅读全文
posted @ 2018-12-21 14:28 Jonky 阅读(276) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ 测试系统ubantu16.04 该系统已经默认安装了python3.5, 当然了python2.7也同时存在着。 可以用如下命令安装pip(如下命令会默认安装pip到python2.7库中) $ sudo apt get install python pip python dev b 阅读全文
posted @ 2018-12-21 14:26 Jonky 阅读(804) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ pip install proxy="user:password@server:port" packagename origin url: http://xiuxixiuxi.blogspot.jp/2013/04/how to install packages with.html 阅读全文
posted @ 2018-12-21 14:24 Jonky 阅读(23759) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ MySQL查询语句大全集锦 http://www.jb51.net/article/85889.htm linux下mysql命令大全 http://www.cnblogs.com/mfryf/archive/2012/02/12/2348164.html linux下的mysql语 阅读全文
posted @ 2018-12-21 14:16 Jonky 阅读(223) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ "MySQL索引原理及慢查询优化" "Mysql explain用法和性能分析" "MySQL 索引优化全攻略" 1.索引作用 在索引列上,除了上面提到的有序查找之外,数据库利用各种各样的快速定位技术,能够大大提高查询效率。特别是当数据量非常大,查询涉及多个表时,使用索引往往能使查询 阅读全文
posted @ 2018-12-21 14:03 Jonky 阅读(451) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ 一、导入导出.sql文件for Linux: 1、从mysql中导出数据库test: 在终端运行:mysqldump h localhost u root p test /home/chuzj/daochu.sql 其中localhost是服务器名字 test是数据库名字,其后可以直 阅读全文
posted @ 2018-12-21 13:58 Jonky 阅读(36276) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ mysql5.7以后,查看是否支持分区表的命令: show plugins; 在mysql控制台中执行 常用的分区命令举例: 查看表分区信息: SELECT partition_name part, partition_expression expr, partition_descr 阅读全文
posted @ 2018-12-21 13:50 Jonky 阅读(863) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ When install ”matplotlib” with ”pip”, if you get the following error, it means the “freetype” and “png” libraries needed by matplotlib are not 阅读全文
posted @ 2018-12-21 13:43 Jonky 阅读(1785) 评论(0) 推荐(0) 编辑
摘要: ~~~ ~~~ 查找当前路径文件内容: find ./ name " " | xargs grep "kaka" 查找文件位置: locate 查看系统磁盘空间: df h 查看某目录占用空间: du h ./ 查看某文件夹内占用磁盘空间: du sh 查看指定文件夹占用磁盘空间:du sh /co 阅读全文
posted @ 2018-12-21 13:41 Jonky 阅读(234) 评论(0) 推荐(0) 编辑