All posts in Tools

Sublime Text 2 Upgrade Problem

搞了半天发现好还毕竟不是sublime本身的错,要不就完全毁了这几个星期来对之的美好印象了……

btw,sublime text 2着实是个相当promising的editor,各位看官有闲情雅致且有信心记住更多的key shortcuts的话不妨一试(其实也没有多少啦),鄙人highly recommended(路人甲:你算哪跟葱……;我:……),除了其License价格不菲之外(比textmate多1刀),其余很多feature都可圈可点,好消息是beta版可以免费使用,就是时不时会有dialog跳出来提醒抑或是恶心一下你,呵呵。

废话有点多,不过鉴于某些同学口味比较重比较独特只喜欢看本人的废话部分,所以现在我基本把重要的事情都放在废话部分讲……

anyway,本次遇到的问题是sublime无法启动,报出以下颇为technical的error dialog,然后便quit,想必是目前用此editor的大多还是developer居多,所以报这种样式的error通常会被认为更为friendly:

Unable to run package setup:

Traceback (most recent call last):
File "./PackageSetup.py", line 155, in upgrade
upgradePackage(pkg, pristinedir, datadir, backupdir)
File "./PackageSetup.py", line 148, in upgradePackage
os.path.join(backupdir, base), inhibitOverwrite)
File "./PackageSetup.py", line 31, in upgradeArchive
newar = zipfile.ZipFile(src)
File ".\zipfile.py", line 696, in __init__
File ".\zipfile.py", line 716, in _GetContents
File ".\zipfile.py", line 728, in _RealGetContents
zipfile.BadZipfile: File is not a zip file

Continue reading →

OpenExplorer Eclipse Plugin 1.5.0

Thanks to jdkcn, Open Explorer now supports multiple file managers (not only nautilus) in Linux, it will detect your system file manager and use that by default i. I also added a preferences page for this, so you can customize it if the default doesn’t make you happy.

To upgrade, simply replace the plugin jar file, you can always download the latest versionii from here.

[Footnotes]
  1. dolphin (KDE), nautilus (Gnome), thunar (xfce), pcmanfm (lxde), rox, xdg-open, etc []
  2. 1.5.0.v201108051513 []

OpenExplorer Eclipse Plugin 1.4.0

Alright, this time I will let all the screenshots speak, as they’re inherently international.

So, what’s new?

anything else? Yeah!


Continue reading →

Full Screen Mode for TextMate and MacVim

继续用wordpress的fullscreen mode写关于fullscreen的东西…… 不要怪我火星,你要允许孤陋寡闻的井底之蛙(比如我)慢慢发现以前一直很annoying的fulscreen mode原来可以真的让我相对focus一些,暂且不管这到底持续的时间能有多长……

For those who cares, it’s all about focus and productivity. (really? are you crazy?)

[MacVim]
火星旅程开始,先别急着google,turns out 人家MacVim已经自带了这个功能,奈何我是眼睛大还是压根没注意…
打开MacVim,然后:
Window -> Toggle Full Screen Mode

You got it:


Continue reading →

再来一个更geeky的fullscreen editor

前几天说到wordpress 3.2的 fullscreen editor 让我欲罢不能,于是一发不可收拾……

今天再来一个更geeky一点的fullscreen editor,叫做writeroom,很适合需要的人带去星巴克;你还别说,任何东西对需要它的人而言就总是有用的。

截图一张:

我的SQL.tmbundle fork

今天两篇post之后,还是对wordpress 3.2的full screen editor爱不释手 i,所以再来一篇……;这不是0day,所以请expect一切都会可能有延迟.

话说这还是上周一的事情了……

插入一个闪回:
我平时一般工作或是自己开发都开着两个editor,一个是macvim,这个目前看来是完全为了vim-task了,我用它来GTD;另外一个是textmate,我大部分的code,除了java和obj-c外 ii都是在textmate里面完成;可能你会觉得好奇,话说这已经牵涉到信仰的问题了,要知道textmate是我两年前我买mac的first bullet,如果抛弃textmate,我两年前的行为就似乎失去了意义;请不要告诉我mac的ui怎么怎么fancy,界面怎么怎么友好,我不是果粉,这些对我其实都没有杀伤力;我更不是那些个喜欢抱着macbook pro在星巴克靠窗的座位前展现各种独特品味的伙计,话说我到非常希望我能有如此的定力……

闪回完了回来,回到上周一;如果你像我这样用textmate编辑维护总和超过10000+行的 sql stored procedure (单文件3000+行)iii 代码,你会明白textmate默认自带的SQL.tmbundle其实做的蛮烂的,作为一种语言的bundle,它竟然不支持symbol list,这让本身在TM里面navigate就不方便的用户情何以堪……

一般语言定义的function或是method都会被作为symbol list的item,方便用户直接跳转到该function/method的definition处;没有symbol list的情景下,这意味着你只能search,还要人为或自动的filter掉一些不是definition的match字串,这在你debug的正high,正心急如焚抑或火冒三丈的时候,无疑不是种尴尬,接下来便是不情愿的敲上 ⌘ + F,然后嘴里嘀咕着:”人生啊”;这,就是我上周一之前一直的状态……
Continue reading →

[Footnotes]
  1. 美中不足,fullscreen模式下少一个preview的按钮,但瑕不掩瑜 []
  2. java当然eclipse了,obj-c更是当仁不让于xcode []
  3. for the record, 这是postgresql的pl/pgsql代码 []

Vim-Task overhauled with native vim script support

Thanks to anfernee, vim-task now supports vim native script, which means +ruby compile option is not required any more in your vim instance.

This is great because the default vim package some Linux distributions (debian, ubuntu etc) distribute do NOT build with +ruby feature by default, which makes very frustrated experiences for these users. This commit simplifies the process and will eventually provide benefit in the long run.

If you’re a user of vim-task and not so into ruby, upgrade is highly recommended.

vim-task on vim.org

很多事情很难预料,比如 vim-task 这个两个小时捣鼓出来,写readme和 blog intro 都比写code来的时间长的玩物竟然是我个人在github上最 “popular” 的 project(其余的都鲜有人watch和fork),真是有意栽花花不成,无心插柳柳成荫,悲哉悲哉;

如此这般说明这东西值得更广的分享,于是10分钟前便有了放到 vim.org 的想法,然后2分钟后它便成功上了 vim.org i,最后还是希望它对真正感兴趣的人有用吧.

[Footnotes]
  1. wordpress你情何以堪…… []

推荐一个reader app和一个Greasemonkey脚本

今天推荐的两个东东都和阅读有关,一个是google reader的offline阅读器,还有一个是方便大家卓越当当京东购书,然后顺便查看豆瓣评论的Greasemonkey脚本。

[Google Reader app: Reeder]

Reeder据说是iphone/ipad等idevice上蛮流行的google reader app(具体我也不清楚),作者承诺过出for mac的版本,现在虽说还是beta版,但我这几天用下来感觉还是相当稳定的,有一些feed显示的小bug,不过无关痛痒。

功能现在还有点弱,所以一般管理feed的工作还是要在google reader里面进行,reeder只是作为consumer专门消费sync过来的content,在reeder里面标记为read的文章之后也会同步到google reader,所以不用担心reeder看过了google reader里面还是unread(即便是beta,这个功能还是必须的,所以我前面说的offline阅读器其实也不大准确…)


Continue reading →

From TextMate to MacVim: Markdown File Editing

Sunng号召大伙用markdown书写文档,这里积极响应一下~

TextMate out of box bundle了Markdown.tmbundle,所以默认就支持markdown file syntax,vim里面貌似默认没有那么幸运,也不是很确定,不过anyway,vim里面的default就是让你改的…

[Markdown Syntax Support]
具体markdown的syntax可以参见这里,这里不赘述。
市面上找到了不少关于vim markdown syntax的plugin(这个算不算是vim user幸福的烦恼?):
1. http://www.vim.org/scripts/script.php?script_id=1242 (http://github.com/plasticboy/vim-markdown)
2. http://github.com/tpope/vim-markdown
3. http://github.com/hallison/vim-markdown
4. http://github.com/mikewest/vim-markdown

make your choice then install it,你选择,你喜欢.

[Markdown Preview Support]
TextMate有个很nice的markdown preview功能,截图如下:


Continue reading →