2013-05-05

Notes 20130505

'tc' and 'netem' allow you to simulate some network environments
http://www.linuxfoundation.org/collaborate/workgroups/networking/netem#Delay_distribution
For example, I can delay every packet for 1s, such that in some case I can cheat in games.

Google Chrome complains about "profile cannot be opened correctly": remove the 'web data' folder in the config dir
http://www.fourleaftechnology.com/index.php/General/google-chrome-profile-could-not-be-opened-correctly-error.html

To remove PDF password with gs
http://www.cyberciti.biz/faq/removing-password-from-pdf-on-linux/
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf

IE10 would ignore the `word-spacing` CSS rule if the width for the space char is 0, in a TTF font. Is it a bug of IE?

杂记 20130505

使用tc + netem可以模拟一些网络环境
http://www.linuxfoundation.org/collaborate/workgroups/networking/netem#Delay_distribution
比如我可以让每个包都延迟1秒,某些情况下玩游戏还可以作弊

Google Chrome说Profile无法正确打开: 把配置目录里的'Web Data'目录干掉
http://www.fourleaftechnology.com/index.php/General/google-chrome-profile-could-not-be-opened-correctly-error.html

用gs去除PDF的密码:
http://www.cyberciti.biz/faq/removing-password-from-pdf-on-linux/
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf

IE10下如果TTF字体的空格宽度是0,就会无视word-spacing的css规则,不知道是不是IE的bug。