Skip to main content

Posts

Showing posts from 2012

杂记 20121008 | Misc Notes 20121008

1. 添加新的MANPATH的正确方法 MANPATH=NEWPATH:$(manpath) 来自 http://ubuntuforums.org/showthread.php?t=1180950 2. 如果DOCTYPE前面有注释,IE9就会进入暴走模式 感谢W3C Validator 3. 删除远端git分支 git push origin :1234 4. 删除远端git标签 git push origin :refs/tags/1234 来自 http://nathanhoad.net/how-to-delete-a-remote-git-tag 1. The correct way to add a new MANPATH: MANPATH=NEWPATH:$(manpath) From http://ubuntuforums.org/showthread.php?t=1180950 2. IE9 would go into the quirks mode, if there is any comment before DOCTYPE Thanks to W3C Validator 3. To remove a remote git branch: git push origin :1234 4. To remove a remote git tag: git push origin :refs/tags/1234 From http://nathanhoad.net/how-to-delete-a-remote-git-tag

pdf2htmlEX 一个pdf至html的转换工具 | pdf2htmlEX: A pdf to html converter

最近在写一个玩具,pdf到html的转换器 主页 http://coolwanglu.github.com/pdf2htmlEX 演示 http://coolwanglu.github.com/pdf2htmlEX/demo/demo.html 有很多feature,主要针对学术论文进行优化 详情请参阅项目页面 Recently I've been working on a 'toy' called pdf2htmlEX, which is a pdf to html converter.   Homepage http://coolwanglu.github.com/pdf2htmlEX Demo http://coolwanglu.github.com/pdf2htmlEX/demo/demo.html There are many featuers, and the tool is optimized for scientific papers. Please find more details in the home page.

杂记 20120820 | Misc Notes 20120820

1. ifuse & ideviceinstaller 可以很好的查看和管理iOS的程序和目录,比windows方便多了。 2. c:\users\USERNAME\appdata\local\vitualstore\program files (x86)\ 是对Program Files的虚拟映射。有的程序会试图在自己安装目录写入文件,但是win7中普通用户没有权限,所以大概是为了兼容搞了这么个目录 3. ssh-keygen -l  查看自己的fingerprint 4. testdisk 一个非常强劲的磁盘工具。之前我的硬盘分区表乱掉了就是用这个工具复活的。 5. chrome某个版本显示中文句号只能显示一半。一个临时办法是放大到110% 1. ifuse & ideviceinstaller are great tools managing Apps and folders of iOS devices, which are much convenient than accessing them in Windows. 2. c:\users\USERNAME\appdata\local\vitualstore\program files (x86)\ is a virtual mapping to the "program files" folders. In Win 7, a program run as a normal user cannot write to its installation folder, but probably for compatibility, this virtual folder is provided. 3. ssh-keygen -l : to view the fingerprint of your ssh keys 4. testdisk is a very powerful tool for hard drive. Last time I messes up the partition table of my hard drive, and then fixed it using this tool 5. In some versi...

VNC服务器在开启compiz时不工作 | VNC server won't work with compiz

症状是VNC远程连接后,画面显示一帧就不再刷新了 (但是鼠标键盘在本机好像是有响应的) 以前讨论过这个问题 http://coolwanglu.blogspot.com/2011/01/compizfglrxvnc-problem-of-vnc-server.html 今天再次遇到了,只是现在我的电脑是ATI的卡 vino不太好用,用x11vnc的时候出现消息 29/04/2012 21:14:17 XDAMAGE is not working well... misses: 166/216 29/04/2012 21:14:17 Maybe an OpenGL app like Beryl or Compiz is the problem? 29/04/2012 21:14:17 Use x11vnc -noxdamage or disable the Beryl/Compiz app. 29/04/2012 21:14:17 To disable this check and warning specify -xdamage twice. 用 x11vnc -noxdamage -once -display :0 可以正常使用,但是由于不是增量显示的,网络压力会很大 在 https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/772873 看到一个 workaround 是说在ATI Catalyst Control Center (Administrative)里打开 tear free 这个选项 我试了一下,果然管用。 以后不用-noxdamage也能正常使用了 另外-once这个选项太好用了  The symptom is after a successful vnc connection, the window stopped refreshing after the first frame. (But the keyboard and mouse seems to be responded on the remote machine) I've discussed about the problem before: h...

杂记 20120428 | Misc Notes 20120428

1. Google Chrome 强制开启GPU加速 google-chrome --ignore-gpu-blacklist 2. 删除不用的locale 安装localepurge 3. 带电源的外置硬盘不能识别 dmesg显示错误信息 device not accepting address NN, error -110 device descriptor read/64, error -110 unable to enumerate USB device on port N 参见 http://www.noah.org/wiki/USB_error_-110_in_dmesg_log https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/54273 切断硬盘电源,等几秒后重新连接得以解决 1. To force enable GPU acceleration of Google Chrome google-chrome --ignore-gpu-blacklist 2. To remove redundant locale files Install localepurge 3. An external hard drive with it own power cannot be recognized Messages shown in dmesg device not accepting address NN, error -110 device descriptor read/64, error -110 unable to enumerate USB device on port N See http://www.noah.org/wiki/USB_error_-110_in_dmesg_log https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/54273 Power off the hard drive and wait for a few seconds. Then reconnect everything ...

杂记 20120107 | Misc Notes 20120107

1. 让c#程序崩溃时的堆栈信息显示行号: 把相应的pdb文件放到同一目录 2. Ubuntu 莫名启动慢,硬盘无反应 我的原因是这个 https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/839595 需要在 /etc/network/interfaces 文件中删除 "auto eth0" 3 .Firefox 词典插件推荐 Dictionary Tooltip。配合我常用的dict.cn效果不错 参数 site url: http://dict.cn/mini.php?q=$$ scroll to element: word-key 4. Firefox 显示 MathML 最好安装 STIX 字体, 另推荐安装 Asana 字体 5. gnome-raw-thumbnailer 不能给 Nautilus 正确创建缩略图: 根据 https://bugs.launchpad.net/ubuntu/+source/gnome-raw-thumbnailer/+bug/852923 添加/修改文件 /usr/share/thumbnailers/raw.thumbnailer 为 [Thumbnailer Entry] Exec=/usr/bin/gnome-raw-thumbnailer -s %s %u %o MimeType=image/x-canon-cr2; 按自己需要另添加 MimeType 进去 6.GMail 的 Preview Pane 右边阅读区域过于狭窄 在AdBlock里添加规则 mail.google.com##.Bu:last-child 推荐使用 Element Hiding Helper 1. To show line numbers in the backtrace when a C# program crashes: put the corresponding pdb file into the same directory. 2. Ubuntu starts very slow, and seems that it's not working, but simply waiting M...