今天我才知道php脚本用php直接执行的时候是可以传入参数的,这样本地共享session就不需要建个服务器再访问啊什么的。
这里放个例子
文件a.php
<?php
$args = getopt('a:b:');
print_r($args);
?>
执行 `php a.php -a miao -b 123`
结果
Array
(
[a] => miao
[b] => 123
)
今天我才知道php脚本用php直接执行的时候是可以传入参数的,这样本地共享session就不需要建个服务器再访问啊什么的。
这里放个例子
文件a.php
<?php
$args = getopt('a:b:');
print_r($args);
?>
执行 `php a.php -a miao -b 123`
结果
Array
(
[a] => miao
[b] => 123
)
带电脑,带玩具,带平板,带猴子抱枕,带颜文字君,想带的都带上。
这三个月过得还不算太费,虽然基本上也没搞出什么东西来。。。
这就要开始4年的大学生活了,大学会活成什么样呢。
去了再说吧
从node分离出来农民起义的iojs终于取得了革命胜利。现在node的版本一下从0.12.x飞升到了4.0.0。
Node.js ChangeLog 2015-09-08, Version 4.0.0 (Stable), @rvagg Notable changes This list of changes is relative to the last io.js v3.x branch release, v3.3.0. Please see the list of notable changes in the v3.x, v2.x and v1.x releases for a more complete list of changes from 0.12.x. Note, that some changes in the v3.x series as well as major breaking changes in this release constitute changes required for full convergence of the Node.js and io.js projects. child_process: ChildProcess.prototype.send() and process.send() operate asynchronously across all platforms so an optional callback parameter has been introduced that will be invoked once the message has been sent, i.e. .send(message[, sendHandle][, callback]) (Ben Noordhuis) #2620. node: Rename "io.js" code to "Node.js" (cjihrig) #2367. node-gyp: This release bundles an updated version of node-gyp that works with all versions of Node.js and io.js including nightly and release candidate builds. From io.js v3 and Node.js v4 onward, it will only download a headers tarball when building addons rather than the entire source. (Rod Vagg) #2700 npm: Upgrade to version 2.14.2 from 2.13.3, includes a security update, see https://github.com/npm/npm/releases/tag/v2.14.2 for more details, (Kat Marchán) #2696. timers: Improved timer performance from porting the 0.12 implementation, plus minor fixes (Jeremiah Senkpiel) #2540, (Julien Gilli) nodejs/node-v0.x-archive#8751 nodejs/node-v0.x-archive#8905 util: The util.is*() functions have been deprecated, beginning with deprecation warnings in the documentation for this release, users are encouraged to seek more robust alternatives in the npm registry, (Sakthipriyan Vairamani) #2447. v8: Upgrade to version 4.5.103.30 from 4.4.63.30 (Ali Ijaz Sheikh) #2632. Implement new TypedArray prototype methods: copyWithin(), every(), fill(), filter(), find(), findIndex(), forEach(), indexOf(), join(), lastIndexOf(), map(), reduce(), reduceRight(), reverse(), slice(), some(), sort(). See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray for further information. Implement new TypedArray.from() and TypedArray.of() functions. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray for further information. Implement arrow functions, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions for further information. Full ChangeLog available at https://github.com/v8/v8-git-mirror/blob/4.5.103/ChangeLog
以上是搬过来的changeLog,同时在changeLog页面往下翻一番,全都是iojs之前的版本号,很明显node原本的项目是直接被iojs项目覆盖掉了,注意这一行
node: Rename "io.js" code to "Node.js" (cjihrig) #2367.
iojs重命名为nodejs,革命军变成了正规军,推翻了原本的帝国统治。
现在点开iojs.org官网里的changelog也是直接跳转到https://github.com/nodejs/node/blob/master/CHANGELOG.md,也就是node的changelog。
这对native mod开发者来说是个福音,不用再去考虑兼容iojs和node携带的两个版本差距悬殊的v8版本了。
入手了个N9,拍照留念
本图册约7.29MB
继续阅读Nexus9开包
(笑
继续阅读
我在macbook上虚拟机里装了个Win10,装好了之后发现,一切都是那么的小,小的几乎看不清。因为这个macbook是Retina屏的,所以dpi比较高,于是东西都变小了。
我的标题里不直接写win10是因为我也不知道自定义项目大小是从哪个系统开始有的,没有这个功能的系统很简单,就是把分辨率按比例调低即可。
出现这个错误表示端口绑定失败,需要提高权限来运行程序。
我在安装`webkit-devtools-agent` 模块的时候node-gyp rebulid过程中碰到了这个错误,node版本为0.12.7。
把node换成版本为0.10.x的就可以通过编译了。
手动安装node的时候一不注意就会出现这个错误,装好了之后使用命令`npm` 测试一下出来了这个错误:`Error: Cannot find module ‘npmlog’` 。
这一般是放在/bin里的链接不对导致的。
链接指向的不是`node_modules/npm/bin/npm-cli.js` ,初次手动安装难免会搞不清要链接哪个文件,把链接指向正确的位置即可。
使用的不是软链接,由于npm-cli.js中使用的是相对路径,要是你一不小心链了个硬链接,那么npm就会从/bin解析相对路径,所以就找不到npmlog模块了。要使用软链接,在ln命令后加上`-s` 选项:`ln -s node_modules/npm/bin/npm-cli.js /bin/npm`
嘛,终于考完科目二了呢,一直到寒假都不用再去驾校受罪了。
今天第一次开考一开始就热昏了头,方向盘没打到位置,倒车入库直接倒到外面去了。于是。。。。开头就补考。。。。
不过第二次是万无一失地过了。不过一组里四个人只有两个人过,教练也是气飞了。
刚刚我把SPDY装到全局,`npm -g install spdy` ,
spdy@2.0.4 /usr/local/lib/node_modules/spdy ├── http-deceiver@1.2.4 ├── handle-thing@1.2.4 ├── select-hose@2.0.0 ├── debug@2.2.0 (ms@0.7.1) └── spdy-transport@1.1.8 (obuf@1.1.1, wbuf@1.7.0, hpack.js@2.1.4, readable-stream@2.0.2)
可以看到这个模块被装到/usr/local/lib/node_modules里了
然后开个环境测试一下,结果
> require('spdy')
Error: Cannot find module 'spdy'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at repl:1:1
at REPLServer.defaultEval (repl.js:154:27)
at bound (domain.js:254:14)
at REPLServer.runBound [as eval] (domain.js:267:12)
at REPLServer.<anonymous> (repl.js:308:12)
at emitOne (events.js:77:13)
吓得我满脑子都是doge!!!这是为什么?
看完以后其实什么也不想说,用心感受。

附带一首Glory老早就让我听过然而我原本并不知道是哪来的的OP:优しさの理由
不过什么都不说有些对不起这篇博文。。。。。所以表面的东西说一点。
这番表面上看起来就是一部推理剧,男主推理能力超群。
虽然实际上还有深层意义,不过就不写出来了,还是自己看了感受比较好。
剁手买了Otamatone小蝌蚪,然后。。。。。。。。。。。。。。。。。。。教练我的演奏效果和网上视频里的不一样!
基本上就和一只鬼叫的鸡一样。。。。
这是第一次不画线稿直接涂色画的,10天前,她还是一团色块,经过我每天晚上花一点时间修理后,终于变成了好像是夏娜的样子∠( ᐛ 」∠)_
实在不想再画了,所以就这个样子丢出来吧,细节也不想处理了(什么时候水平够了再说∠( ᐛ 」∠)_)
这次是我第一次全画在同一个图层上呢∠( ᐛ 」∠)_
图片971KB
你们看这是之前114事件带来的访问量,这是多说记录的,虽然很明显并不是很准,不过也算能表现出趋势。

大概就是,现在那篇文章已经被大量采集网站采集了,基本上都是有指向我这里原文的链接的,再加上有些人获取信息的滞后性,给这里带来了保温访问效果,风波过去后基本上每日访问保持在上百(虽然谷歌记录的每天都有上千,不排除多说自己故障遗漏记录),到目前那篇文章还是总是至少有十几个人同时在看的,访问量也快到两万了(我总觉得postview插件有问题,实际上应该老早就过两万了)。
随着信息逐渐被淹没,来到这里的访客也慢慢变少了,不过每天几百还是可以保持的,毕竟我也不是只有那一个值得关注的内容嘛。