To Anyone Wanna Buy My Domains

Posted in 赚钱 on March 23rd, 2015 by adam

Currently (2015) my available domains ares:

zhaiduo.com
hairfans.com
1f1t.com
hr81.com
zizuyou.com
BIZLAYOUT.COM
Ivnidea.com
LPXQ.NET
shader3D.com
qcDog.com
xfdyc.com
pinlenaicha.com
nbriji.com
vv81.com

Leave me messages if any questions. [4-6-9-1 6597 at qq.com]

PHP出错:json_encode: Invalid UTF-8 sequence in argument

Posted in PHP on March 19th, 2015 by adam

json打包出错:

json_encode(): Invalid UTF-8 sequence in argument

解决办法:检测非法UTF8

mb_check_encoding($strs,’UTF-8′)

然后

mb_convert_encoding($strs,’UTF-8′,’UTF-8′);

即可保证不会出现Invalid UTF-8的错误,但是可能结果字符串中会有问号等乱码。

spmjs运行构建命令出错

Posted in 前端 on March 6th, 2015 by adam

npm update以后,运行spm build提示:
spm Deprecated: buildArgs.include is deprecated, using sea, standalone and umd instead.:

构建失败。貌似spm不小心被升级为3的版本。

试着重装spm@2.x
cnpm cache clean 清理缓存
cnpm uninstall spm -g 卸载模块
cnpm uninstall spm@2.x -g 卸载模块

cnpm install spm@2.x -g
cnpm install spm-build@0.x -g

spm build
//////////////
….
Done: without errors.

问题解决。

更多参考:
迁移 spm2 的模块到 spm3

https://github.com/spmjs/spm/wiki/%E8%BF%81%E7%A7%BB-spm2-%E7%9A%84%E6%A8%A1%E5%9D%97%E5%88%B0-spm3

Tags: ,

再次把博客移回国内

Posted in 网站维护 on January 29th, 2015 by adam

兜兜转转,总要适应环境,过去的就过去吧,未来就在眼前~你好! 2015~

Virtualbox安装window10的64位预览版错误

Posted in windows on December 26th, 2014 by admin

错误代码如下:
error code 0x0000005d

根据这里的解释:

我升级了VB,然后下载VT-x support check,

http://www.intel.com/support/processors/tools/piu/sb/cs-014921.htm

并且运行了:

“C:Program FilesOracleVirtualBoxVBoxManage.exe” setextradata global VBoxInternal/CPUM/CMPXCHG16B 1

问题解决。

Tags:

Grunt Build Error: require.js blocks are no more supported

Posted in webapp on December 22nd, 2014 by admin

When I use Yo to test Backbone webapp, I get thie error:

Running "useminPrepare:html" (useminPrepare) task
Fatal error: require.js blocks are no more supported.

According to the discuss in grunt-usemin, I update Gruntfile.js with requirejs.dis.options:

Insert the following options:

,
include: '../bower_components/requirejs/require',
mainConfigFile: yeomanConfig.app + '/scripts/main.js',
out: yeomanConfig.dist + '/scripts/app.min.js'

Then update index.html in app category from

<!-- build:js scripts/main.js -->
<script data-main="scripts/main" src="bower_components/requirejs/require.js"></script>
<!-- endbuild -->
</code>
to

<!-- REMOVE THIS AFTER `grunt build` -->
<script data-main="scripts/config" src="bower_components/requirejs/require.js"></script>

<!-- UNCOMMENT THIS AFTER `grunt build` -->
<!-- <script src="scripts/app.min.js"></script> -->

The problem should be resolved.

And after build app to dist category, don't forget to change index.html, use app.min.js to replace requirejs/require.js.

Tags: ,

Mysql5.7 start mysqld.service失败的问题

Posted in Mysql on December 18th, 2014 by admin

根据日志的错误提示:
innoDB pthread_create returned 13

这里给出了mysqld无法启动的相似描述:

http://community.sitepoint.com/t/cannot-set-up-innodb-support-in-mysql-due-to-pthread-create-returned-11-error/44560

系统是centos7。

PHP5.4.35的php_curl.dll问题

Posted in PHP on December 16th, 2014 by admin

php_curl出现curl_init错误。

Windows下64位可以看这里:

http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/

XP 32位下:
可以下载PHP5.4.34的php_curl.dll,直接替换即可。

Tags:
RSS Feed