昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期三, 十月 31, 2012

git using external diff tool

To set git using vim for diff

first add vim path to path enviroment variable
then run git difftool --tool=vimdiff

to emit --tool parameter, you can add these two lines to git config file

[diff]
tool = vimdiff

then, you just run git difftool 

--
Feng

星期一, 十月 22, 2012

ifunbox user appliation

今天才注意到 ifunbox 本身有个 user application 的分类, 可以看到程序名字,而不是去看raw data 里面的 user/application.

--
Feng

星期日, 十月 21, 2012

提取ipad应用里的视频,音乐,图片等

先决条件: 已越狱

越狱后用cydia 安装 ifile (加威锋源)

然后在 ifile 里设置显示应用名

找到应用名对应的那串字符

用ifunbox 在电脑上打开那个文件夹, 导出就行了.

--
Feng

星期六, 十月 20, 2012

BibTex

  1. pdflatex report
  2. bibtex report
  3. pdflatex report
  4. pdflatex report

用 latex 输出 PDF, 怎么都没有 bibliography. 用的是 texmaker 编译的. 记得很久以前也碰到过, 是用上面四行解决的. 很奇怪的顺序.

在texmaker 中, 顺序也很重要, 我是这样解决的. 

1. 删除所有 texmaker 生成的文件. 然后 F1 qucikbuild, 只能build 一次,不要多. 然后运行 bibtex, 再pdflatex build 就可以了.估计第一次用 pdflatex 可能也行, 就跟上面命令行一样了.

--
Feng

Delete empty notes in docear

Preview added bookmarks cannot be read by docear. I deleted all of them.

But docear will still read the preview added bookmarks as empty notes. 

I still don't know how to delete the marks added by preview to the pdf files. 

Here is the work around. After importing the bookmarks in decear, save and reopen in decear. Then use filter Matches regexp ^.{0,1}$ to find out all the empty notes. Then select all matches notes in the Filter menu. Press Del on the keyboard to delete all of them.

--
Feng

星期四, 十月 18, 2012

惊呀的发现佳能mp240,没墨后不能扫描

本来想,打印机便宜, 买来玩玩, 不打算花钱买墨盒. 没想到墨盒用完了, 扫描都不工作. 没搞懂它们之间有什么必然的联系.

最后是按住重置键数秒忽略墨盒错误. 打印机就可以工作了. 不过墨盒指示灯闪烁. 电脑一直提示墨量低.

其实俺用的是连供,墨盒里是有墨水的.

--
Feng

无线路由器做无线AP

直接把无线路由器用线和猫或另一个可以上网的路由器连起来即可。
 
进入无线路由器把DHCP关掉。 IP可以和其它电脑一样给它设一个。 也可以不设。
 
把UPNP也关掉,安全一点。
 
如果DHCP开着,也可以, 这样连这个路由器的网关会变成这个路由器的IP。 如果这个路由器可以设置路由的话, 把默认路由route到 真正的路由的IP。 如果不行的话, 电脑那头就要手动设网关了。所以DHCP关是首选。
 
有些设备不支持太高的频段, 我用channel 13 的时候, 我的 IP 摄像头搜不到。 后来换到 channel 3, 搞定。
 
basic data rate 改成 all, 速度才有 150M, 在N模式的时候。 否则我的WIN8只有65M。 MAC MINI有72M。 不过改成ALL后, MAC MINI还是72M。 WIN8达到150M。

--
Feng

PDF viewer solution

博士学业中,难免要读很多的PDF 文件

我使用一款叫 docear 的思维导图软件来管理这些文件。 docear 可以导入pdf 文件的书签, 这样, 每个文件的重点都可以存成书签,再导入docear 集中管理。

但这个书签却是让人头疼的。

mac os 的 preview, 看PDF 是非常不错的。 它也有书签, 但这个书签是存在电脑上的,而不是存在PDF文件 里边。 所以 docear 读不到。 docear 只能读到书签的位置, 但书签没有内容, 于是会出现空节点。 这些空节点我尚不知如何删除。

acrobat pro 是最理想的, 它加的书签可以被正确导入docear。 它加的书签在 preview 里面是显示成 index (table of content) 的。

在 ipad 里, 我使用 iannotate 来看pdf 文件。 它可以加入我想要的书签。 而类似的软件如 goodreader, pdfpen 等没有办法支持嵌入式的书签。 在goodreader 中, 和 preview中一样, 书签变成了 outlines(table of content). pdfpen for ipad 我却没有发现有书签的功能。

pdfpen pro for mac os 却是在 pdf 在 mac os 上的解决方案。 它可以加我想要的书签。它是我唯一知道的在 mac 上的解决方案。 skim 和 preivew 一样, 书签和 pdf 是分开的。

在 windows 上, foxit pdf viewer 是 acrobat pro 的良好替代品。

linux 被我装在一台旧电脑上, 只是随便玩玩, 曾经充当服务器限制房客 p2p, 但现在不租房间了, 一直就是闲置。 并没有考虑过在 linux 做功课, 所以就没有研究。

所有的这些pdf 文件被我放在 dropbox 里, 我在任何设备上都可以访问,修改并同步。 在 mac os 和 windows 上, 只要安装 dropbox 就可以了。 文件放在 dropbox 文件夹里。 ipad 中, 更简单, iannotate, goodreader, pdfpen 等都是内置 dropbox 同步功能的, 而且可以选择想要同步的文件夹。

--
Feng

星期二, 十月 09, 2012

Mac os allows linebreak in file name

Dropbox will sync the file with linebrak in the name correctly. But on ios or windows side, the dropbox will not be able to fetch the file from dropbox.

--
Feng

星期五, 十月 05, 2012

ios6 number type input change

Now, on ios6, number type input doesn't trigger the numeric keypad. But using the pattern="[0-9]' attribute which is not working on previous ios will do the trick.

And the number type input cannot be controlled the by size attribute. If you have to use a size attribute, you can put a text type input under the number type input, set the size then get the width. Use the css width to control the number type input.

--
Feng

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.