Using Sphinx search engine with Chinese, Japanese, and Korean language documents Unicode Character Set Tables
fedora登录开启numlock
在登录Gnome 桌面时打开小键盘的Num Lock
sudo yum install numlockx
sudo cp /etc/gdm/Init/Default /etc/gdm/Init/Default_backup
sudo gedit /etc/gdm/Init/Default
在文档末尾增加
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi
保存退出,重启X server或下次登录Gnome就可以发现num lock灯亮了
go get 使用代理
目前仅支持http以及https代理,不支持socks,所以如果是用ssh需要参考另外一篇文章:使用privoxy+ssh实现共享科学上网
#https
https_proxy=127.0.0.1:8118 go get url
#http
http_proxy=127.0.0.1:8118 go get url
Setting proxies for source code used by go get (listed in GoGetTools)
git
$ git config [--global] http.proxy http://proxy.example.com:port
mercurial
Edit ~/.hgrc and add the following:
[http_proxy]
host=proxy.example.com:port
svn
Edit ~/.subversion/servers and add the following:
[Global]
http-proxy-host=proxy.example.com
http-proxy-port=xxxx
linux crontab 文件位置和日志位置
文件位置
位置一般在/var/spool/cron/下,如果你是root用户,那下面有个root文件,建议日常备份,避免误删除导致crontab 文件丢失;
日志文件位置
默认情况下,crontab中执行的日志写在/var/log下,如:
#ls /var/log/cron*
/var/log/cron /var/log/cron.1 /var/log/cron.2 /var/log/cron.3 /var/log/cron.4
crontab的日志比较简单,当crond执行任务失败时会给用户发一封邮件。恰巧在我们的一台服务器上发现一个任务没有正常执行,而且crond发邮件也失败了。通过看mail的日志,看到是磁盘空间不足造成的。
可以将每条 crontab中的任务增加自己的日志,有利于查找执行失败原因。
0 6 * * * /root/script/ss.sh >> /root/for_crontab/mylog.log 2>&1
把错误输出和标准输出都输出到mylog.log中。
如crontab 没有成功,检测crontab 服务是否启动,
/etc/init.d/crond status
/etc/init.d/crond restart
cron 是系统守护进程,位置:
/etc/init.d/crond
参数:
start
stop
restart
reload
等等
iOS development
https://github.com/vsouza/awesome-ios
Apple 开发资源 https://developer.apple.com/support/development/cn/
iPhone Tutorials http://www.raywenderlich.com/tutorials
iOS Dev Weekly http://iosdevweekly.com/
NSHipster 中文版 http://nshipster.cn/
objc中国 http://objccn.io/
awesome-ios https://github.com/vsouza/awesome-ios
Mac 开发配置手册 https://aaaaaashu.gitbooks.io/mac-dev-setup/content/
Go的50度灰:Golang新开发者要注意的陷阱和常见错误
http://colobu.com/2015/09/07/gotchas-and-common-mistakes-in-go-golang/
原文: 50 Shades of Go: Traps, Gotchas, and Common Mistakes for New Golang Devs
翻译: Go的50度灰:新Golang开发者要注意的陷阱、技巧和常见错误, 译者: 影风LEY
Go是一门简单有趣的语言,但与其他语言类似,它会有一些技巧。。。这些技巧的绝大部分并不是Go的缺陷造成的。如果你以前使用的是其他语言,那么这其中的有些错误就是很自然的陷阱。其它的是由错误的假设和缺少细节造成的。
如果你花时间学习这门语言,阅读官方说明、wiki、邮件列表讨论、大量的优秀博文和Rob Pike的展示,以及源代码,这些技巧中的绝大多数都是显而易见的。尽管不是每个人都是以这种方式开始学习的,但也没关系。如果你是Go语言新人,那么这里的信息将会节约你大量的调试代码的时间。
Graylog – 日志聚合工具中的后起之秀
http://my.oschina.net/fitnessefan/blog/464351
awesome-go
https://github.com/avelino/awesome-go
TOML parser for Golang with reflection
https://github.com/BurntSushi/toml
https://github.com/naoina/toml