Skip to main content

Posts

Showing posts with the label software

Hardware Password Manager

[Updates 2025-01-20] The original blog post assumes that all passwords are stored in one password manager, and the password manager either unlocks everything or nothing (e.g. Keepass). After discussing with friends, I realized that if I use something like pass , and I use a hardware GPG token, I can actually store and sync all encrypted passwords to all devices, because I will only decrypt the passwords on demand, and the computer will not see the GPG private key. The compromise is that the computer will see the list of all password entries (e.g. accounts), as well as a few other issues . I've been using Keepass for many years. I don't use online password services because I cannot fully trust them. Besides, I may not always have Internet connection, which is why I also don't use a self-hosted service. Everything has been working fine, until I turn my paranoid knob to the max. Here's the thought experiment . The Imaginary Scenario Let's say I have 100 PCs for differe...

Windows的KVM软件

 KVM即是共享鼠标键盘。 之前Windows和Ubuntu我都是用Synergy,不过最近一查发现变成收费软件了。 Github上有个fork叫Barrier,下载以后配了好久也不好用。有可能跟我的屏幕配置有关系,一个电脑连了多个显示器,而且有的显示器还是禁用。最后放弃了。 后来搜到了微软的Mouse without Borders,简单配一下就能用了,还是不错。 网址是http://aka.ms/mm

Notes

surface pro stylus calibration http://www.reddit.com/r/Surface/comments/18cd96/improved_pen_accuracy_with_a_100_point/ http://www.reddit.com/r/Surface/comments/1cy8hn/this_pen_calibration_is_so_far_the_best_solution/ Search for 'UserLinearityData' in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet and remove 'devicekind=pen'   merge tool: meld   linux虚拟机的硬盘大小不够,扩容以后又调整了分区,于是grub就不能进入了。启动说unknown filesystem然后进入grub rescue。 根据 http://askubuntu.com/questions/142300/fixing-grub-error-error-unknown-filesystem 在grub rescue输入 set prefix=(hd0,5)/boot/grub insmod linux linux (hd0,5)/boot/vmlinuz-3.11.0-15-generic initrd (hd0,5)/boot/initrd.img-3.11.0-15-generic boot 然后grub这步正常了,但是会卡到initramfs/busybox,说找不到init 于是在linux命令后面加上root=/dev/sda5就可以正常进入系统 进入系统以后赶紧用grub-install和update-initramfs再修正一下。

杂记 2013.10.23

png优化工具:pngnq(有损)和 pngcrush(无损) ubuntu gnome 13.10的input source里找不到输入法:手动修改dconf键值 org.gnome.desktop.input-sources.sources ,在数组里添加 ('ibus','sunpinyin') 和 ('ibus', 'anthy') 。 但是mozc似乎不行,原因不明。观望。 mozc在dconf里要打('ibus', 'mozc-jp')

杂记 20120205 | Misc Notes 20120205

1. Javascript 图表库比较 Ext JS 各种模型比较折腾,画出来还不错。 flot,配合jQuery写着比较顺手,但是功能不够多,内置符号只有圆圈,加个插件发现图例中不能显示符号。logscale还有坐标的分点都要自己实现。。。 2.gnuplot编译时报错,libpng冲突 http://harvey.nu/compiling_gnuplot_on_mac_os_x_libpng_conflict.html 3.Excel中方向键不工作 按一下ScrollLock试试 http://www-cs-students.stanford.edu/~edlee/microsoft_excep_tip_1.html 4.Linux播放白噪音 http://dirk.net/2009/07/14/white-noise-generator-for-linux/ install sox play -n synth 60:00 whitenoise 1. A few JS libraries for plotting Ext JS, with rather complicated data models, but worthy. Produced figures look good. flot, a smooth coding experience with jQuery, but also lack of features. E.g. by default the only available symbol is circle. There are plugins available for extra symbols, but only in legend...Also I have to specify all the ticks... 2. libpng confliction when compiling gnuplot. http://harvey.nu/compiling_gnuplot_on_mac_os_x_libpng_conflict.html 3. Arrow keys not working in excel Try to press t...

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...

杂记 | Misc Notes

1. fontregister: Windows 下没有管理员权限时安装字体的小工具 2. 在Windows下Putty用Linux字体时可能需要选上Cleartype选项 3. x11vnc: 可以在终端开一个vnc server连接到一个已有的X会话上去 4. pomodoro: 工作25分钟,休息5分钟。一个有趣的工作模式 5. network-manager的共享网络模式(shared to other computers)似乎变的好用了(以前我这完全不能用) 6. Firefox添加书签时没有“在边栏显示”的选项,但是去书签管理看属性还是有的。 1. fontregister: a tool that allows you to register new fonts in Windows without admin privilege. 2. In putty on Windows, you may need to choose the "Cleartype" option when using Linux fonts 3. x11vnc: to create a vnc server that connects to a existing X session 4. pomodoro: work for 25 minutes, then rest for 5 minutes. A good way of time managing. 5. The "shared to other computers" mode in network-manager works well now. 6. In recent Firefox, there's no "load this bookmark in the sidebar" option when you add a new bookmark. However you can still find it, by checking the properties of an existing bookmark in the bookmark manager.

杂记 | Misc Notes

1.gnome-shell 默认按一下winkey会出main menu, 这问题不大,但是其他我设的winkey+..的快捷键很多不能用了。比如f和空格都不行,但是t可以,很诡异。 解决办法是 system settings -> region and language -> layouts -> options -> alt/win key behaior -> meta is mapped to win keys 2.python的urllib记得是直接直接支持https的,但是不能验证证书(据说以后会实现的)。于是我找到了m2cypto这个模块,里面包装了urllib,证书有问题时会抛异常,但是证书没问题时会卡死。。。后来想了想,还是调用wget比较靠谱 3.gnome 3的控制面板里找不到startup applications了,但是可以直接运行gnome-session-properties 4.maximus:一个小软件,可以去掉最大化窗口的标题栏,配合gnome shell很不错。 5./usr/share/gnome-shell/js/ui/dateMenu.js还有panel.js可以对gnome shell顶部条进行hack,比如我把Activities改了名,自定义了时钟格式,去掉了accessibility图标。 1. By deault press the winkey once in gnome-shell will call up the main menu, this is not a big problem, but some shortcuts 'winkey + somekey' I set are not functional. For example 'f' and 'space' do not work, however 't' works, weird. To solve it: system settings -> region and language -> layouts -> options -> alt/win key behaior -> meta is mapped to win ...

杂记 | Misc Notes

1. tidy, csstidy,两个小工具,可以优化html和css 2. perl安装模块: perl -MCPAN -e shell 3. python安装模块: easy_install 或 pip 4. gcc 查看本机CPU类型 gcc -v -mtune=native 5. bash 里面二重替换变量: eval B="$"$A, 举例来说如果A=X,X=100,那么这个语句之后B=100 6. Linux From Scratch: 详解从无到有编译一套Linux,值得一看 1. tidy & csstidy: 2 small tools for optimizing html and css files 2. to install perl modules: perl -MCPAN -e shell 3. to install python modules: use easy_install or pip 4. to view how gcc detects local cpu: gcc -v -mutune=native 5. to recursively substitute variables in bash: eval B="$"$A, for example when A=X and X=100, then the previous statement results in B=100 6. Linux From Scratch: describing how to build a complete Linux from nothing, worth reading.

杂记 | Misc Notes

1. Firefox 全屏时显示地址栏和标签栏,设置browser.fullscreen.autohide=false 2. 禁用一个upstart的服务: echo "manual" >> xxx.conf,natty的upstart版本支持了override文件,于是可以 echo "manual" >> xxx.override 3. bootchart小工具可以分析开机时各程序启动,资源占用等情况,另有pybootchartgui可以将结果转换成图片查看 4. colortest 用于测试终端对颜色支持情况 5. synapse 一个 gnome-do 替代品,不依赖mono,重启compiz也不会崩溃 6. vimperator 最近又用了一下,比以往好了很多,装上以后多了各种快捷键,同时也不影响原来的界面。对gmail和google reader有冲突,之需要按一下ctrl+z 7. solarized 一个很不错的颜色主题,可以用于vim mutt terminal等等,很不错。也有对gnome-teriminal的移植,但是我这里显示效果不是很好 8. Terminus 一个很不错的终端字体,适用于小字号 1. To show the location bar and tab bar when Firefox is in fullscreen mode, set browser.fullscreen.autohide=false 2. To disable an upstart service: echo "manual" >> xxx.conf. Staring from Natty, upstart has supported the override files, so we may use: echo "manual" >> xxx.override 3. bootchart is a small tool to visualize the performance (of programs, resources) in the boot process, and pybootchartgui is availabl...

Mutt 初探 | My first attempt at Mutt

早就听说过Mutt,但是之前每个教程都是大长篇的关于mutt, fetchmail/getmail, sendmail的配置,令人畏惧。 最近下决心试试这个所谓最好的邮件客户端,搜了几个教程发现sendmail不怎么要配,而mutt有收邮件功能(我只用gmail),所以只需要配mutt。 研究了两天终于配好了muttrc,而后几天慢慢研究新功能,现在基本功能都会了,确实很好用! 我的.muttrc放在了github上 然后需要提的一些 1.取消命令需要按Ctrl+g 2.默认w3m不能很好的识别编码,解决方法是在~/.mailcap里加入一行 text/html; /usr/bin/w3m -I %{charset} -dump -T text/html '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html 注意"-I %{charset}"这个参数 3.需要用smime_keys init建立需要的有关smime证书的目录,然后信任的根证书放在mutt的变量smime_ca_location里。我放到了~/.smime/ca-bundle.crt 4.mailto的配置,gnome有个小bug,preferred application选了mutt后不能默认勾上run in terminal,导致mutt不能正常运行。解决办法就是选custom,勾上run in terminal再选mutt 5.搜到了muttator,里面说mutt如何如何不好,呵呵。这个thunderbird插件也挺有趣的,回头再看看。 6.在全屏的guake里开一个tmux,然后再在tmux里开mutt,太爽了。 最后是一些link 关于muttrc配置 /usr/share/doc/mutt/* http://crunchbanglinux.org/wiki/howto/howto_setup_mutt_with_gmail_imap http://wiki.muttqq:s.org/?UserStory/GMailOverIMAP https://github.com/redondos/mutt http://therandymon.com/woodnotes/mutt/usi...

最近发现的小技巧 | Tips I found recently

1. compiz 可以用alt+中键调整窗口大小,特别适合用窄边框的我,在也不用在那一个像素周围纠结了。 2. 软件 auto-apt, 可以自动安装 ./configure 报出的缺失的依赖包 3. 软件 simple-ccsm, 调节compiz特效一步到位,省时省力 1. In compiz, we can adjust the size of the windows by pressing alt+ , which is quite suitable for people like me who are using thin window borders. Now I'm free from struggling at that 1 pixel. 2. The software 'auto-apt' can install those missing packages reported by ./configure 3. The software 'simple-ccsm' can set the effects of compiz within one-click.

guake 类quake的下拉终端 | guake: a quake-alike drop-down terminal

平时需要个顺手的终端,希望呼之即来,挥之即去的。gnome-terminal 本身不错,但是呼叫用鼠标太慢了,最近考虑绑定个super+t之类的,但是每次开启也比较慢,另外不好隐藏,而且如果运行一个程序就想隐藏了,一会儿再回来找它看结果也不方便。 于是就想起了guake,以前装过,没好好设置,这次设了一下,还不错,主要是设了透明,去了tab和滚动条,失焦自动隐藏,绑定呼出/隐藏快捷键为super+`。 于是感觉生活太美好了,而且这样呼出一个terminal确实如quake系fps游戏一样,感觉在和系统核心打交道。 [Update] 刚看了一下guake源码,原来还有很多隐藏的gconf可以调整。现在把resizer也去了,完美了~ I really need a handy terminal in my daily life, I want it to appear as soon as I call it, and I want it to disappear when I do not need it any more. gnome-terminal itself is good, I've been using it, but maybe it is not quite suitable for this task, as it's too slow to call it, and I've considered to bind a shortcut super+t to call it, but it will not be convenient when I run something on it, hide it and want to see the result later. The I recalled guade, I had tried it before, but without a deeper look. This time I went through the settings and make it a really handy terminal. Basically I adjusted the transparent background, hide the tar bar and scroll bar, ...

tesseract 一个ocr软件 | tesseract: an ocr application

最近需要写bot,要搞验证码,于是想到了ocr,搜到了几个,然后就找到了tessearact。看上去还不错,用了用确实不错。 Recent I needed to write a bot for some automation works, I needed to break some captchas, then I thought about an ocr appliction. I found a number of them from google, then I pick up tesseract among them. It looks good, and is really good as I have been using it.

Empathy 不能连 MSN 的问题 | Empathy cannot get MSN accounts online

症状是总报 Network Error, 重连也不行 根据 http://aslakjohansen.wordpress.com/2009/07/27/empathy-gives-network-error/ 把telepathy-butterfly杀掉就可以了。 So it always report "Network error", reconnecting has no luck. According to http://aslakjohansen.wordpress.com/2009/07/27/empathy-gives-network-error/ , just simply kill the "telepathy-butterfly" process, then it'll be fine.

Google Reader 总显示 "kept unread" 列表的问题 | Solution to the annoying "kept unread" list in Google Reader

不知道从什么时候开始我的Google Reader首页上总会显示一个kept unread列表,但是进去以后却是显示已读,此时点mark all as read或者挨个浏览这些item都没有任何效果。 今天在 http://groups.google.com/group/google-reader-howdoi/browse_thread/thread/a68ae3f9a7761e26/11eb862ab44a67c3 找到了解法: 给每个kept unread的条目加星 去加星条目列表,挨个浏览每个条目(不要点mark all as read) 去掉这些条目的星 然后就正常了。 这个应该是Google Reader的bug吧。。。 There's been a "kept unread" list in my Google Reader home page for some time, and I didn't know why. In the list, each item seems be already ready, and clicking "mark all as read" or navigating each of them have no effect. Today I found the solution on http://groups.google.com/group/google-reader-howdoi/browse_thread/thread/a68ae3f9a7761e26/11eb862ab44a67c3 Add start for each of them In "starred items", navigate each of them (don't click "mark all as read") Remove these temporary stars Then that list would be gone. This must be a bug of Google Reader...

gnome桌面便笺 | best sticky note application

最近需要搞个桌面上的todo list, 以前是用screenlets,现在不用了,而且为一个插件就开这个庞然大物太浪费了。 我在用gnote,但是这个不适合放在桌面上。gnome-panel的一个小插件也是sticky note,但是不能锁定在桌面上,一点就消失了。 另外搜到的xpad,但是我这里有bug,一个灰色的窗口,什么都么有。网上搜到了解决的patch,但是不想折腾了。 最后看到某人论坛留言: 在桌面建一个文本文件,然后把图标放大。。。顿时豁然开朗,一开始遇到这个特性时还觉得有些烦人,但是现在需要时反而想不起来了。。。 效果不错,缺点是不能弄太多文字。 Recently I found that I need a sticky note on my desktop. I used screenlets before, but not anymore now. It's a waste to enable it only for such a gadget. Now I'm using gnote, which is rather a nice software, but it's not suitable for 'sticky' notes. There's also a stickynote applet for gnome-panel, but I don't know how to attach the notes to desktop -- every time I click somewhere, the notes disappear. I googled some software called 'xpad', but on my computer it's nothing but a gray empty window -- an annoying bug, although I've googled a patch for this, I've got no feeling for it. Finally I got someone's comment on some bbs -- "create a paint text ...

linux 光盘镜像挂载工具

虽说linux下挂载iso一个mount就搞定,可是对于平时常见的镜像cue/bin, mdf/mds就没啥好办法了。 今天偶然发现furius iso mount这个软件,还不错,虽然路径中有中文字符就不识别,但总算是有一个能用的工具了。 值得期待。