会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
秋风落叶.
博客园
首页
新随笔
联系
订阅
管理
2017年8月18日
windows composer 设置
摘要: composer clearcache composer global require -vvv --profile fxp/composer-asset-plugin linearsoft/composer-svn-export { "config": { "secure-http": false
阅读全文
posted @ 2017-08-18 11:40 秋风落叶.
阅读(231)
评论(0)
推荐(0)
2017年3月7日
Ubuntu 安装中文输入法
摘要: 安裝IBus框架: sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4 安装拼音 sudo apt-get install ibus-pinyin 找到IBUS目录 which ibus 重启ibus /usr/bin
阅读全文
posted @ 2017-03-07 14:09 秋风落叶.
阅读(132)
评论(0)
推荐(0)
2017年2月21日
Yii model rules 验证
摘要: public function rules() { return array( //必须填写 array('email, username, password,agree,verifyPassword,verifyCode', 'required'), //检查用户名是否重复 array('emai
阅读全文
posted @ 2017-02-21 10:29 秋风落叶.
阅读(272)
评论(0)
推荐(0)
2016年10月28日
linux 队列守护进程工具 supervisor
摘要: 命令行supervisorctlstatus: 查看当前运行的进程列表stop xxx: 停止某一个进程(xxx),xxx为[program:theprogramname]里配置的值。start xxx: 启动某个进程restart xxx: 重启某个进程stop groupworker: 重启所有
阅读全文
posted @ 2016-10-28 16:15 秋风落叶.
阅读(244)
评论(0)
推荐(0)
2016年10月27日
github 发布repository 通过 composer 加载
摘要: 相关网站 https://github.com https://packagist.org 步骤: 1、现在上面两个网站注册账号 2、在github 创建 repository 生成后的地址为 https://github.com/RainLi/chuan 3、在packagist 提交在githu
阅读全文
posted @ 2016-10-27 18:29 秋风落叶.
阅读(1360)
评论(0)
推荐(0)
2016年10月21日
中文英文字符串截取 指定个数
摘要: public static function arr_split_zh($tempaddtext){ $tempaddtext = iconv("UTF-8", "gb2312", $tempaddtext); $cind = 0; $arr_cont = []; for($i = 0; $i <
阅读全文
posted @ 2016-10-21 15:58 秋风落叶.
阅读(292)
评论(0)
推荐(0)
2016年9月27日
手机号码归属地
摘要: composer 获取 Yii配置 hughcube/yii2-mobile-attribution $config['components']['mobile_attribution'] = [ 'class' => 'hughcube\mobileAttribution\Component',
阅读全文
posted @ 2016-09-27 15:38 秋风落叶.
阅读(155)
评论(0)
推荐(0)
2016年9月19日
通过 file_get_contents 输出图片
摘要: $url='http://static.assets.local.51rwb.com/caibeitv/html/caibeitv_hao/dev/images/logo.png';$content= file_get_contents($url,true);header("Content-Type
阅读全文
posted @ 2016-09-19 19:57 秋风落叶.
阅读(1007)
评论(0)
推荐(0)
2016年8月25日
前端小知识
摘要: 图片裁剪 http://code.ciaoca.com/jquery/jcrop/ 下拉框搜索 http://silviomoreto.github.io/bootstrap-select/
阅读全文
posted @ 2016-08-25 11:10 秋风落叶.
阅读(89)
评论(0)
推荐(0)
2016年8月23日
文本框只能输入数字或者字母
摘要: 正则表达式限制输入框只能输入数字 代码如下: <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,'') " onafterpaste="this.value=this.value.replace(/[^\d]/g,'
阅读全文
posted @ 2016-08-23 17:10 秋风落叶.
阅读(2095)
评论(0)
推荐(1)
下一页
公告