什么是闭包(closures)

什么是闭包(closures): 闭包就是内部函数通过某种方式使其可见范围超出了其定义的范围,这就产生了一个在其定义范围内的闭包. 这是我理解后的一个定义,呵呵!很晦涩吧!不过没关系,可以先看看下面的讲解. 一... Read More | Share it now!

linux下passwd命令设置修改用户密码

1、passwd 简单说明; 我们已经学会如何添加用户了,所以我们还要学习设置或修改用户的密码;passwd命令的用法也很多,我们只选如下的几个参数加以说明;想了解更多,请参考man... Read More | Share it now!

VNC远程登录树莓派的图形界面

VNC远程登录树莓派的图形界面 安装VNC需要使用命令行。如果需要远程操作安装VNC,就必须通过SSH登录到命令行界面。 安装 树莓派命令行: 1 sudo apt-get install... Read More | Share it now!

Json Format

Redirecting to http://tool.oschina.net/codeformat/json ... Read More | Share it now!

Android HTTP request

You should make your HTTP request in a separate thread. NetworkOnMainThreadException says that you are trying to make your network operation on the main thread. docs at developer.android.com 1] Use simple Thread Thread t = new Thread(new Runnable()... Read More | Share it now!

编写高性能HTML网页应用

你怎么能提高网页性能? 大多数开发者会通过JavaScript和图片来优化,通过服务器配置,压缩文件和合并文件 – 甚至调整CSS(合并小图片)。 注*参见 CSS... Read More | Share it now!

linux nohup 关终端不中断进程

感谢各路大神帮忙,使用nohup让程序后台跑起来。 不想看的直接输入 $ nohup yourapps & e.g $nohup node app.js & 不要log: nohup yourapps >/dev/null 2>&1... Read More | Share it now!