Linux Notes
2017.11.13
Shell 脚本中的循环语句
结构化循环命令在编程中很常见。通常需要重复一组命令直到触及某个特定条件。比如处理某个目录下的所有文件、系统上的所有用户或某个文本文件中的所有内容。bash shell 提供了三个常用的循环命令 for、while 和 until,就来好好研究研究吧。
Linux Notes
2017.11.13
结构化循环命令在编程中很常见。通常需要重复一组命令直到触及某个特定条件。比如处理某个目录下的所有文件、系统上的所有用户或某个文本文件中的所有内容。bash shell 提供了三个常用的循环命令 for、while 和 until,就来好好研究研究吧。
Web Notes
2017.11.06
A few days ago, I built a website for showing traditional Chinese colours with bootstrap cards. Several issues I encountered during this process, just write them down for records.
Python Notes
2017.10.30
It is said Yahoo finance closed the historical data API on May 18th 2017, but we can still download the data from the webpage. Here shows the way to download data using python request.
Tutorials
2017.10.26
Recently when installing some gems, it popped out errors that telling the Ruby version is lower than required... I have to upgrade the shipped Ruby, version 2.0.0p648 (2015-12-16 revision 53162), on my machine. There are a few methods dealing with this, but I found the easiest way is using Homebrew.
Linux Notes
2017.10.07
Linux 采用复杂的位系统来判定文件和目录的访问权限。每个文件都有三个安全等级:文件的属主、能够访问文件的默认属组以及系统上的其他用户。每个安全等级通过三个访问权限位来定义:读取、写入以及执行,对应于符号 rwx。如果某种权限被拒绝,权限对应的符号会用单破折线代替。
Linux Notes
2017.10.04
当程序在系统上运行时,会开启一个进程(process)。可以通过 ps 命令输出进程的许多信息,但是 ps 有数不清的可选参数,让 ps 成为最难掌握的命令之一。当然,熟悉并掌握一组常用参数满足需要就可以了。