摘要: ``` ``` ``` $(".star").raty({ number: 5, numberMax:10, score:function(){ return $(this).attr("data-num"); }, starOn:'/static/vendor/raty/image... 阅读全文
posted @ 2018-02-09 14:18 geek程序员 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 1. 使用自带终端或iterm2,iterm2界面和用户体验更好一点 2. 服务端:/etc/profile文件中配置TMOUT=0, export TMOUT=0 设置变量 source /etc/profile生效,重新登录用户 3. 客户端:~/.ssh/config文件中配置 Host Se 阅读全文
posted @ 2018-02-08 22:20 geek程序员 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 安装python3 ============= 安装仓库软件 sudo apt get install software properties common python software properties 添加仓库 sudo add apt repository ppa:jonathonf/p 阅读全文
posted @ 2018-02-08 20:24 geek程序员 阅读(929) 评论(0) 推荐(0) 编辑
摘要: ``` import requests import os import time url = 'http://www.ydyigo.com/findPwd.php' def get_server_status(url): try: res = requests.head(url,timeout=30) return res.status_code ... 阅读全文
posted @ 2018-02-08 19:10 geek程序员 阅读(322) 评论(0) 推荐(0) 编辑
摘要: ab命令 1, cd进入目录apache bin目录 2, ·ab n 5000 c 200 http://admin.dzj.local/publics/login.html D:\1.html· 阅读全文
posted @ 2018-02-01 16:34 geek程序员 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 安装 安装软件 1,mysql5.7最好内存2G以上 thinkphp虚拟机配置 1,要在目录加一个public目录 2,解锁public下 .user.ini权限 修改执行目录权限 sudo vim .user.ini 3,也可以不加public, 但要配置执行目录为public 数据库建一个超管 阅读全文
posted @ 2018-02-01 09:07 geek程序员 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 修改方法 http://jsb.php php.com/2016/05/472/ 修改数据库配置 data/config.php 阅读全文
posted @ 2018-01-31 09:20 geek程序员 阅读(1087) 评论(0) 推荐(0) 编辑
摘要: flask 开发配置 一:在虚拟机里面安装ubuntu系统.略 二: apt install python3 pip 安装pip, pip3 install upgrade pip 三: pip3 install virtualenv 安装虚拟环境 virtualenv ENV 创建环境 virtu 阅读全文
posted @ 2018-01-29 08:02 geek程序员 阅读(135) 评论(0) 推荐(0) 编辑
摘要: CSS ` .main div { width: 14%; min width: 160px; padding: 2%; height: 60px; border: 1px solid f4f4f4; float: left; background: fff; } .main div img,.ma 阅读全文
posted @ 2018-01-28 12:13 geek程序员 阅读(836) 评论(0) 推荐(0) 编辑
摘要: 框架修改的地方 vendor/topthink/think captcha/src/Captcha.php api验证码入库 196行 $img_code = strtoupper(implode('', $code)); $model = new \app\common\model\ComCode 阅读全文
posted @ 2018-01-12 09:53 geek程序员 阅读(197) 评论(0) 推荐(0) 编辑
摘要: layuiAdmin修改 index.js 修改登录url user/login= publics/login config.js 修改 name 项目名称, tokenName token字段 src/views/layout.html 获取用户信息,和导航menu数据 src/lib/view. 阅读全文
posted @ 2018-01-11 11:42 geek程序员 阅读(10463) 评论(0) 推荐(0) 编辑
摘要: sudo apt get install python pip python dev libmysqlclient dev pip install MySQL python 阅读全文
posted @ 2018-01-09 11:42 geek程序员 阅读(1929) 评论(0) 推荐(1) 编辑
摘要: 插件列表 atom beautify docblockr autocomplete python goto definition platformio ide terminal symbols tree view 阅读全文
posted @ 2018-01-09 10:19 geek程序员 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 安装python安装pip安装djangopip install Django==1.11.31,创建项目django-admin startproject mysite 阅读全文
posted @ 2017-07-17 17:50 geek程序员 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 安装python 1,打开连接https://www.python.org/downloads/release/python-361/2,下载安装3,安装之后, (安装目录)4, 把python的安装目录,加入到系统环境变量里面去, 右键我的电脑=》系统(高级系统设置)=>高级(环境变量)=>点击p 阅读全文
posted @ 2017-06-27 15:19 geek程序员 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 保存未check.py启动监控 执行run.pypython3 check.py run.py当目录下面代码有变化时会重启run.py 阅读全文
posted @ 2017-05-17 14:38 geek程序员 阅读(2242) 评论(0) 推荐(0) 编辑
摘要: 把Git在最新2.9.2,合并pull两个不同的项目,出现的问题如何去解决fatal: refusing to merge unrelated histories 我在Github新建一个仓库,写了License,然后把本地一个写了很久仓库上传。 先pull,因为两个仓库不同,发现refusing 阅读全文
posted @ 2017-05-12 10:48 geek程序员 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 安装virtualenv mac: pip3 install virtualenv ubuntu: apt install virtualenv新建项目 mkdir myappcd myapp 命令virtualenv就可以创建一个独立的Python运行环境,我们还加上了参数--no-site-pa 阅读全文
posted @ 2017-05-09 21:04 geek程序员 阅读(421) 评论(0) 推荐(0) 编辑
摘要: https://docs.python.org/3.7/library/concurrency.htmlpython程序默认是单线程的,也就是说在前一句语句执行完之前后面的语句不能继续执行先感受一下线程,一般情况下: 但是如果用了threading的话: 得到这样的结果是因为这样的,在start之后 阅读全文
posted @ 2017-05-07 16:11 geek程序员 阅读(4721) 评论(0) 推荐(0) 编辑
摘要: https://docs.python.org/3/library/logging.html1、日志级别 日志一共分成5个等级,从低到高分别是:DEBUG INFO WARNING ERROR CRITICAL。 DEBUG:详细的信息,通常只出现在诊断问题上INFO:确认一切按预期运行WARNIN 阅读全文
posted @ 2017-05-06 19:25 geek程序员 阅读(6753) 评论(1) 推荐(0) 编辑
摘要: 官网: http://jupyter.org/ 阅读全文
posted @ 2017-05-02 09:47 geek程序员 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 去掉数据库字段单引号 update company_info set company=REPLACE(company,"'",""); 阅读全文
posted @ 2017-05-02 09:13 geek程序员 阅读(184) 评论(0) 推荐(0) 编辑
摘要: delete from user where id not in ( select * from ( select min(id) from user group by username,email ) ) as tmp; 阅读全文
posted @ 2017-05-01 13:37 geek程序员 阅读(106) 评论(0) 推荐(0) 编辑
摘要: mac升级了mysql,没有替换原来的链接的情况下,启动mysql restart 会失败解决方法,找到mysql真正的安装目录 mysql.server start 阅读全文
posted @ 2017-04-30 13:11 geek程序员 阅读(650) 评论(0) 推荐(0) 编辑
摘要: 在mysql 工具 搜索或者插入数据时报下面错误: ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'database_tl.em 阅读全文
posted @ 2017-04-22 10:56 geek程序员 阅读(190) 评论(0) 推荐(0) 编辑
摘要: MySQL的sql_mode合理设置 sql_mode是个很容易被忽视的变量,默认值是空值,在这种设置下是可以允许一些非法操作的,比如允许一些非法数据的插入。在生产环境必须将这个值设置为严格模式,所以开发、测试环境的数据库也必须要设置,这样在开发测试阶段就可以发现问题 sql_mode常用值如下:  阅读全文
posted @ 2017-04-22 10:48 geek程序员 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #显示模块pip list #显示过期模块pip list --outdated #安装模块pip install xxx#升级模块pip install --upgrade xxx 阅读全文
posted @ 2017-04-18 21:45 geek程序员 阅读(7539) 评论(0) 推荐(0) 编辑
摘要: Python项目中经常会带requirements.txt文件,里面是项目所依赖的包的列表,也就是依赖关系清单,这个清单也可以使用pip命令自动生成。 pip命令:pip freeze > requirements.txt 这样就自动生成requirements.txt了。 在很多Python项目中 阅读全文
posted @ 2017-04-18 08:20 geek程序员 阅读(776) 评论(0) 推荐(0) 编辑
摘要: 一、Os Python的标准库中的os模块主要涉及普遍的操作系统功能。可以在Linux和Windows下运行,与平台无关。 os.sep 可以取代操作系统特定的路径分割符。 os.name字符串指示你正在使用的平台。比如对于Windows,它是'nt',而对于Linux/Unix用户,它是'posi 阅读全文
posted @ 2017-04-18 08:06 geek程序员 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1. 安装python sudo add-apt-repository ppa:fkrull/deadsnakessudo apt-get updatesudo apt-get install python3.6sudo apt-get install python3-pip 2.安装pycharm 阅读全文
posted @ 2017-04-03 10:36 geek程序员 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 下载navicat解压到opt目录创建桌面快捷方式sudo vim /usr/share/applications/navicat.desktop 阅读全文
posted @ 2017-02-26 08:50 geek程序员 阅读(250) 评论(0) 推荐(0) 编辑
摘要: crontab -l #查看详情crontab -e #设置定时任务 * * * * * command 分 时 日 月 周 命令 第1列表示分钟1~59 每分钟用*或者 */1表示 第2列表示小时1~23(0表示0点) 第3列表示日期1~31 第4列表示月份1~12 第5列标识号星期0~6(0表示 阅读全文
posted @ 2017-02-25 15:59 geek程序员 阅读(8232) 评论(0) 推荐(0) 编辑
摘要: wget https://downloads.php.net/~ab/php-7.0.0alpha2.tar.bz2 //用winscp把下载好的文件上传到网站中 tar jxf php-7.0.0alpha2.tar.bz2 安装: sudo apt-get update sudo apt-get install libxml2-dev 安装gcc ... 阅读全文
posted @ 2017-02-21 19:41 geek程序员 阅读(525) 评论(1) 推荐(0) 编辑
摘要: 安装mysql sudo apt install mysql-server #5.7版本安装php sudo apt install php #php7.0版本安装nginx sudo apt install nginx #nginx/1.10.0service nginx start #启动ngi 阅读全文
posted @ 2017-02-20 17:42 geek程序员 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 区块网址 比特币API 私钥: 发送比特币,和签名。 能导入导出到钱包 阅读全文
posted @ 2017-02-20 14:13 geek程序员 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Ubuntu16.04换源 阅读全文
posted @ 2017-02-16 10:43 geek程序员 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 购买网址:https://www.vpnhot.com购买后的,使用教程。https://www.vpnhot.com/tutorial.htmlubuntu配置教程: https://www.vpnhot.com/ubuntu-ipsec.htmlubuntu默认只有pptp模式, 没配置起. 1 阅读全文
posted @ 2017-02-15 11:39 geek程序员 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 删除已安装的nodejs #查看已经安装在全局的模块,以便删除这些全局模块后再按照不同的 node 版本重新进行全局安装npm ls -g --depth=0 #删除全局 node_modules 目录sudo rm -rf /usr/local/lib/node_modules #删除 nodes 阅读全文
posted @ 2017-02-14 15:18 geek程序员 阅读(6566) 评论(0) 推荐(0) 编辑
摘要: sudo su #切换到root账户sudo passwd root #输入密码 阅读全文
posted @ 2017-02-14 14:36 geek程序员 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 官网 https://bitcore.io先安装好 node.js v4, npmsudo npm install -g bitcore --unsafe-perm=true 阅读全文
posted @ 2017-02-14 14:22 geek程序员 阅读(301) 评论(0) 推荐(0) 编辑