摘要:在Win7用VirtualBox虚拟机安装Ubuntu后,共享文件夹再也不用手工mount了 安装增强工具包 设置共享文件夹后 VB已经自动挂载Windows文件夹到 /media/sf_*** 目录中,***是在VB中设置的挂载名 翻遍Google Baidu找到的办法都是 mount ,其实已经 阅读全文
PhpStorm添加PHP代码规范检查CodeSniffer(phpcs)和PHP代码静态分析工具Mess Detector(phpmd)
2017-07-12 19:32 by 斌哥tobin, 5665 阅读, 0 推荐, 收藏,
摘要:一、安装 添加镜像,加速下载 ./composer.phar config -g repo.packagist composer https://packagist.phpcomposer.com CodeSniffer composer.phar global require "squizlabs 阅读全文
php的三个常用判断函数
2017-02-27 20:57 by 斌哥tobin, 1015 阅读, 0 推荐, 收藏,
摘要:emptytrue,true,true,true,true,true, issetfalse,true,true,true,false,true, is_nulltrue,false,false,false,true,false, is_null($a) 时会报一个Notice告警:PHP Noti 阅读全文
php计算字符串长度
2017-01-03 17:16 by 斌哥tobin, 398 阅读, 0 推荐, 收藏,
摘要:/** * 计算字符串的长度(非字节) * 先用正则将字符串分解为个体单元,然后再计算单元的个数即得出字符串的长度 * from wordpress * @param string $string * @return int */public static function getUtf8CharL 阅读全文
mac brew 安装php扩展报错:parent directory is world writable but not sticky
2016-11-04 00:55 by 斌哥tobin, 1879 阅读, 0 推荐, 收藏,
摘要:$ brew install php70-mcrypt 报错: Error: parent directory is world writable but not sticky 搜索到github的答案 https://github.com/Homebrew/legacy-homebrew/issu 阅读全文
Mac iTerm2命令行快捷操作
2016-08-12 10:08 by 斌哥tobin, 2772 阅读, 0 推荐, 收藏,
摘要:control + R 搜索之前输入过的命令 control + U 删除整行命令 control + W 删除光标前面的命令 control + K 删除光标后面的命令 阅读全文
System.Web.AspNetHostingPermission 类型的权限已失败
2016-08-11 01:06 by 斌哥tobin, 1389 阅读, 0 推荐, 收藏,
摘要:System.Security.SecurityException: 请求“System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”类型 阅读全文
优化phpstorm运行卡顿问题!
2016-06-18 10:47 by 斌哥tobin, 10170 阅读, 0 推荐, 收藏,
摘要:在PHPSTORM中点击导航菜单:Help -> Edit Custom VM Options 如果是第一次点击,会提示是否新建配置文件,点击“是” 在弹出的编辑框末尾加上以下配置 -Dawt.usesystemAAFontSettings=lcd-Dawt.java2d.opengl=true D 阅读全文
composer [ReflectionException] Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist
2016-05-06 23:12 by 斌哥tobin, 1638 阅读, 0 推荐, 收藏,
摘要:在执行composer update时报错[ReflectionException]Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist是因为 fxp/composer-asset-plugin 升级导致的,所以 阅读全文
nginx1.8安装nginx_concat_module及400错误解决办法
2016-04-19 20:12 by 斌哥tobin, 1671 阅读, 1 推荐, 收藏,
摘要:nginx安装concat模块可以合并js,css等静态资源,减少http请求 在nginx源码目录执行命令: 编译成功后还要注意合并js时的400 Bad Request错误 由于Nginx在新版本中,使用了标准的 MIME-Type:application/javascript。而在nginx_ 阅读全文
浙公网安备 33010602011771号