e^t

我是风的歌

正在浏览标签为 software 的文章

还是那句话——不要偏执!

 

和我们这人间所有相对稀有的东西一样(IPhone算不算?),Linux这种东西也是会培养出一些牛气烘烘的人。不管是真牛,还是个高高鼓起的充气牛皮。至少说话的口气,那个调子、那个场!不由得让你噔噔噔后退起步,倒吸一口冷气。这个人——不一般;再一看,这个人——不?正?常?

 

说什么Linux是一种信仰。信仰是好事,可惜排斥异己的信仰总会培养出一群偏执狂。这种例子多的实在让人烦心,就不举了。更甚的是,很多伙计其实是嘴上的信仰。就像“清高”的人一看到钱就赶快双手遮眼大叫“哟,拿走,咱嫌脏!”,其实手上不知道“脏”了多少次了——可能各位已经猜到,我最反对的是对Windows以及其他商业软件莫名的抵制和攻击。

 

当然,这种事情本来该是“你走你的阳关道,我过我的独木桥”,谁也不欠谁,谁也别说谁。无奈就是看不惯那些在新人面前指手画脚的嘴脸,新人没有形成自己的观点谦虚求教——学习精神十分可嘉。你倒好,上去二话不说一通火炮,自己爽够了,可是把别人搞得云里雾里——严重影响、延迟、甚至断送别人的学习道路!这个,还真不行!

 

先举个最流行的例子,就是不少人喜欢到处说“那些高手都是用记事本、用VIM写程序;那个啥VS是给草鸟/民工用的,和前面那几个杀手级比起来就是个垃圾”。我想请问说“高手都用VIM,民工采用VS”这种话的人,你自己信这个吗?你见过这种高手吗?如果见过,他们在整个“高手群体”里面占了多大比例?那些从事大型项目的程序员是不是在用VS系列?这些个问题我会爽快回答“不知道”,不过我也不会蛊惑群众。那你这个宣传家呢——有事实证明自己是对的吗?我个人是VIM用户(另外还有Code:Blocks),用它写东西是很爽,原因就一个字——“快”,读程序也很不错。可是调试什么的我是屡试“不爽”,同时本人也没有大型项目经历。所以在此建议一下:你自己不会、或者只是写个Helloworld、再或者虽然用你的杀手神器级开发过大型项目但是没有个详细的配置合作过程来分享——就不要说这种不负责任的话。个人愚钝,知道VIM的学习曲线,过去几年里试了放然后又试、断断续续至少四五次才终于上手,所以不会贸然把它往别人怀里塞。还有,按这个说,想当年MS vs. Borland岂不成了争夺草鸟的战役……这个恐怕不可能吧。

 

还有人拿网页设计说事:“哦,那些高级设计师都是用文本编辑器设计网页,而且还要好的多”。糊弄人的吧?比较好奇网页上面的东西种类比一般意义上的程序设计多多了,而且还涉及到视觉设计,一个纯Editor是怎么比Dreamweaver等工具更好的。个人不懂行,不多说。再举个我稍微了解的设计的例子,那些拿着GIMP和PS比较强弱的人简直是白痴;而盲目推荐Blender的人也不知道他们碰过Maya/Max/Houdini没有,更不知道是不是了解业内行情。还曾经见过向搞飞行器设计的人推荐Blender的,真造出来什么不用飞就可以直接叫“坠毁号”了。个人不认为Linux适合专业级别的艺术设计,自己外行的偏颇观点就是最起码显卡驱动就无法满足高质量的图像要求。不过特别说一下,Blender的发展很是惊人,现在配合别的开源渲染器已经可以做出一些专业的静帧了,虽然影视级别的要求恐怕暂时还达不到。另外还有更实际的一点,三维设计基本都需要彼此配合,除非自由艺术家或者业余爱好,否则你一切开源而别人用主流的商业软件的话,那么work根本无法flow——你根本找不到工作。关于工业设计(CAD)我也不倾向于Linux,AutoCAD这种旗舰没有Linux版本就更别提其他公司的产品了,就连最后产品的展示恐怕也是问题(用Autodesk和Adobe的软件制作华丽丽作品,展示或者技术文档的创建编辑甚至MS Powerpoint的Presentation)。再重复一下,大型设计软件往往需要充分发挥硬件性能,所以驱动依然是个影响。不客气说,这些在Linux上的替代品玩玩可以,想严肃(或者为了糊口,或者为了梦想)就别纠结于开源。当然大型CAE计算的话Linux环境很有优势,顶尖的科学计算集群也会使用Linux——这些不假。可是除了系统管理员谁去亲密接触它呢?一个终端软件ssh发出计算命令,然后命令行或者干脆FTP软件下载计算结果然后本地分析就可以满足很多需要了。就像集体厨房里面的师傅使用特大号的铁锅炒菜——难道这就意味着你也要手端着这种铁锅吃饭?当然,如果你有时间有兴趣并且是个喜欢学东西的人,我自然推荐尝试Linux。

 

说了这么多,我的目的是什么——就是想劝劝那些分不清工具和能力的区别,还乐滋滋靠着工具自以为是并贬损他人的人。实话说:别拿这些个玩意儿说事——否则你就OUT了!都什么时代了,搞自然搞工程的人几个没有玩过Linux?

 

当然,我更希望拿这个话题长篇大论说事的我其实才是out了,世界其实已经很美好,已经没有不该有的偏执狂了……

-clarifications

By digital painting I mean paint the traditional way on a computer, excluding the way you would use MS Paint, that is you have pencils, watercolors, albeit all digital version.

Photoshop
So far my own experience with Photoshop is limited to amature level photo retouching following some random tutorials step by step, but I’ve already felt the unlimited freedom and how both beginners and masters can enjoy it.

Previously the main use of PS is photo editing, but apparently Adobe tried to extend this territory. From recent version (Since CS5 or earlier?) PS added a brand new digital painting perspective, together with the assortments of brushes (i.e., draw media and wet media) to simulate traditional media, PS is becoming a more and more suitable and pleasant environment for digital painting.

-Tip: if you want to learn digtial painting, STOP trying different fancy brushes! Stick to one (like chalk) and learn all thing define the word “painting”: perspetive, value, composition, through that single brush. Trying different brushes at the begining is same as steping at the same location – you feel you are learning but you aren’t!

I haven’t started using PS yet, but for anyone want to take digital drawing/painting seriously, I think PS is a must-have. And please see some videos of masters’ using it before you give it up (for its price).

-Tip: classic ways are always crucial, although there are no undo-redo, no layer mode, but these ‘deficiencies’ simply can never undermine its value. It is the way has been followed by great artists all over the world, all through the time. Besides, this is no distraction from modern electronic device, believe me, it feels really ‘quiet’ when you are holding a pencil and draw traditionally.

-Tip: you can’t have your laptop and tablet everywhere with you, but it’s possible with a pencil and sketchpad, I think the first step towards an artist is to start carry your drawing tools with you when you start a trip.

Corel Painter
Simply, it is not suitable for my needs. The reason is I have mypaint and Photoshop already. I once tried Painter but felt it’s user-unfriendly, and the softwere is slow on my machine. So I don’t think I’m going to use it, though the brushset is more complete than any other software and many artist like it.

MyPaint (http://mypaint.intilinux.com/)

MyPaint screenshot (work by David)

Free and powerful, that’s my impression of this software. Mypaint is a free, open source software that I with to recommand to everyone. Everything was designed to be as simple as possible (GUI is the simplest of all I’ve seen, also there are many single-key shortcuts calling the most-used functions like eraser, canvas flip, color pick, etc.), so when you work, there is no need to look for any functionality (whick is distractiong, by the way) – they are right under your left hand (assuming that you are right-handded and your right hand is holding your digital stylus.

The are also many choices of papers and brushes. Personally I like David’s brushset a lot, which is embeded in mypaint by default, along with other well made brushes.

-Tip: as to paper, I would suggest you NOT to stay on the default white paper for ever. Try something else, like the yellow-tinted paper which some professional designers use to show their production level work. Sometimes, a change of paper do give you a ‘pro’ feeling :-/

Another thing worth mentioning is this is a fast evolving software. On youtube and its offical website, the number of artworks created with mypaint is steadly increasing. The development is very active too (you can check their git commit log if you wish to look into the code), and new funtions are being added. The next big step to take for the developers seems to be layermode, some of which are already implemented. I havn’t chekc that out because currently I only use pencil, but for people working with colors, you may want to download the source code and compile the newest version.

Simplicity does not mean function limited, you can create professional drawings with this software.

One Great Resource

Please Google Fengzhu if you don’t know about him, you can find his blog and the school of design he tutors. Also search him in YouTube for about his 46 free video tutorials (http://www.youtube.com/user/FZDSCHOOL).

Fengzhu is not only great in his art skills, but also in that he shares all his experiences, including how he use certain tools and the real-time working process. There are ~40 videos in his YouTube channel and new upload generally comes every two or three weeks. I can assure that you can learn a lot.

-Tip: all videos are accompanied by vocal explanations, so many tips are ‘hiden’ in a random minute of a random video. For me, as a beginner, I would watch them all so nothing would be missed.

1. Cygwin Assembler Error

My situation: I’ve configure my gVim to compile all programming languages I commonly use by pressing one key (F3 for object file, F4 for executable for example). But recently (under Win 7) this handy shortcut stopped working, with the recurring and annoying error message:
Assembler messaes: FATAL can’t create ***, no such file or directory
As always, I quickly began to blame Windows 7 — “what’s the problem with you, I can’t make modifications of my own computer?”
It was Google, instead of the madness, gave me the answer.
According to my understanding: Cygwin is more like a smaller ecosystem residing inside Windows, rather than an installed software. Being a ported version of Linux, it certainly has a stronger notion of user privilege or authorization control. my gVim was configured to call gcc-4 for compilation, and gcc requires a location for storing temporary files, which it should have the right to modify. The directory I had used was C:/tmp, which is on the system disk and the path interpreted by Cygwin is /cygdrive/c/tmp — not quite ‘natural’, I can only say.
So the solution is:
export TEMP=/tmp
Again, something still confusing is my original configuration actually worked for quite a while, and broke down all of a sudden — I can only attribute this to my own Windows’ long existing unknown problem.

Change Matlab Directory
I often close my Matlab with several files opening, so they are automatically opened the next time I start Matlab. There is a small problem: the default directory Matlab opens is its installation directory, not the one containing the opened scripts.

Normally I would use cd command or the file explore, or just run it… Today a much faster trick came to me accidently. It is:

  1. Set a breakpoint in your editor – Matlab will ask you if you want to switch directory.
  2. Click yes.
  3. Unset the breakpoint.

哎,Chrome也抽了

抢沙发

超级担疼无聊文……

今天忽然发现Chrome的Tab显示有些不正常,字体往右渐隐了。上网一查发现竟然是更新的特性。比较惊讶,因为之前Chrome的每次更新都是锦上添花,从来没有出现过这种几乎是带有恶意的情形。

添加了直接影响用户浏览体验的新功能,同时没有给出任何选择——这是非常不明智的。简单的说就是强加,而且是这种主观性很强的东西。
先说说这个Fade给我的感觉,我常常就某个问题打开多个网页,除了上下滚动外,彼此来回切换对我而言就是最频繁的操作了。之前切换几乎是不用想的,向上瞟一眼就行,花的时间<1s。现在好,每个Tab上都多了花哨的装饰——字体颜色从黑到白或者从白到黑。扫视的时候每个Tab都要停留那么一下——就像目光被“一路绊倒”似的。

这个其实还好,关键是注意力被分散了,这是不可容忍的!如果浏览器市场你是一家独大,那么你做出这些变化用户可能没有什么怨言——有也没用,可是事实不是这样。另外很多用户的网龄都超过十年,而且是多浏览器用户。浏览器的作者想凭借一己之力改变这么多人长久的习惯,有些妄自尊大了。退一步说,即使用户想接受这个特立独行的改变,但因为别的浏览器都没有这个特点,在不同浏览器之间切换的时候这种差异感肯定无法消除。根据网上的讨论,这个问题最早在四月的开发版被反映,可是到了今日的稳定版还存在。恐怕Chrome的设计者认定这不是个问题而是个很酷的东西、并且决意加以保持了。不过对我Chrome这个“新特性”顿时让Firefox好看了不少,恐怕二者使用的时间比例要互换了。

If you are using Win7 and Wacom tablet together, you have a good chance to suffer  from the extremely annoying ring that appears whenever you press your stylus , even very slightly.

The result is your painting stroke becomes very intermittent or sticky, and of course, with a series of blinking rings. Plainly, this is a disaster for your creativity and mood :)

I know there must be people searching the web for the answer every day, so I write the solution here to increase the possibility of encounting an useful answer.

So, let’s take a few steps to get rid of it!

  1. Press Win+R (R for “run”)Type in “msconfig” (omit the quote when you type!)
  2. Select the “Service” tab and take your time to find the “Tablet PC Input Service”
  3. Notice the checkbox? Uncheck it and press apply!

4. After restart, you can try your Wacom stylus – the ring once drove you crazyno longer appears, so enjoy your smooth stroke!

2010-12-13 16:16 us time

很早就忍着一口“怨气”,在本人确定上网时间从95%Firefox到95%Chrome后,一书为快。以下讨论不考虑使用IE的人。

FF自己的优势是什么似乎都不清楚,是历史!长久以来积蓄下来的扩展和用户群只要好好维持,Chrome是无法轻易赶上的。在现今这个智慧可以迅速交换吸收的时代,想要靠速度或者兼容等等技术层面的东西领先是不可能的。而那些久经批评建议优化淘汰考验的扩展却恰恰是无法模仿到的个性化财富。现在OK,扩展死了一堆, 除了功能的折损之外个人认为这也会大伤忠诚用户的感情。

和追求新版本号方面的急功近利彻底相反的是用户体验上面的裹足不前。无法理解Firefox 4的保守丑陋的界面设计。我个人而言是反反复复安装卸载了好几次beta版,最后受不了最上方的那片突兀之极的空旷一咬牙再也不去理睬。浏览器方面我还没听说有人像苹果那种垃圾把设计也专利化(不过和苹果一比,其他公司的设计大部分都会变成垃圾)。Firefox似乎是把自己的特征寄托到了GUI设计上并加以保持,这是十分让人失望的。此外还有两个让人很不满的地方:

第一是地址框的自动完成,网址前面的“www”必须自己输入才可以——而IE9和Chrome就无须如此,baidu.com直接就是百度,而非Firefox那样直接打不开(关于这一点最新的3.6似乎改进了,但是输入的时候依然没有自动完成)。这个看似微小,微小到连本人似乎都可以用代码实现,微小到只是输入网址时候那几秒钟的体验,可是却非常恼人——我相信不止我有这种感觉。

第二是搜索,天啊!古老陈旧落后已经不足以描述我对那一行设计的感觉。首先match case我不知道有没有谁用过,我几年之间从来没用过。其次搜索结果高亮本来就应该默认打开。而相比Chrome的定位提示就更是古董了。

另外不要妄想这方面用户的loyalty起多大作用,注重浏览器的人一般都有技术崇尚的心理,你是革新者就真诚的拥护你;你渐渐成为一个老顽固——对不起,再见。最后套用本人一句话:

没有永恒的王者,只有永恒的王道

又发现一些无语的毛病(2011-03-25 us time)

鼠标悬停到链接上时候,浏览器的链接提示都是显示在左下角,Firefox例外了一些——正常时候也是在左下角,如果打开搜索框,那么鼠标再悬停到链接上时候,链接提示跑到了右下角。也就是说你一会儿向左看,一会儿又要向右看。话说之前beta的时候曾经把提示显示在标题栏,开发组真是闲着没事干,一个提示也值得搞来搞去。这次的呢?是遗传病还是新特性?

我Chrome为主,不过习惯了用两个浏览器,前些日子尝试了Opera,相当不爽,ie 9宣传的再好感觉就那样,重振旗鼓的希望我看不到。于是第N次装了Firefox——果不其然,还真没让人爽快。

另外这四个浏览器只有Firefox搜索时候不全部高亮了——除非你亲自点那个按钮。Chrome的提示最为体贴,你找一个词语直接到位,Opera是页面变暗而搜索的词语高亮,IE9至少也是关键词全部高亮了,顶多拉拉滚动条就可以找到目标,只有Firefox需要一个一个吭哧吭哧的找。什么是让人无法容忍的丑陋,这就是。

Zotero咋不赶快搞一个Chrome版本啊?那样我就可以早早地和Firefox说永别了~~

firefox的连续不给力没什么,关键是不给力的地方都是匪夷所思——这不得不让人怀疑开发组到底有没有为用户负责的态度。作为一个靠用户支持而慢慢发展起来的机构,到后来却有了一个靠不断想方设法的炒作来“挽留”用户的嘴脸——这种脱离用户只为自我的腐化堕落才是我本质上讨厌的东西吧!

再次更新 (2011-05-22 11:17 us time)

Firefox 4始终无法解决pdf插件问题,我用的是PDF-XChange,FireFox 3.6的时候还好好的,可是自从使用4就从来没有正常工作过。每次pdf插件都是先要crash一下然后重新刷新了页面才可以载入。今天实在受不了,就直接把Firefox进程kill了,然后重新打开——结果页面竟然无法恢复?!

羊驼!那么多准备阅读的页面就这样丢失了!Chrome的话首先不会崩溃,其次即使崩溃只要重启然后Control+Shift+T就行了。Firefox之前似乎也这样过,结果现在鼓吹了这么久的新版竟然这种基本功能都没有,这种名不副实让我极其反感。还有就是Firefox那个记住密码的功能似乎是摆设,每次记住一段时间然后就会忘记,而需要重新输入,浪费生命了。最后也是大家同时都Suffer的就是那种卡的感觉,每次所谓的升级后最明显的感觉就是卡的越来越严重:地址栏卡、页面滚动卡、甚至在文本输入框里面移动光标也卡!还有个小不爽:Firefox最下面的插件栏每次打开都需要手动隐藏,不能设置?不要跟我说about:config这类的东西,研究这个对我而言是浪费生命。

行了,再写这种文章同样是浪费生命。Firefox给我的经历已经让我连小熊猫都看着觉得面目可憎了,真是岂有此理。一句话:希望Firefox赶快去死。

再次更新(2011年6月23日18:36:27 us time)

FireFox最新的更新机制让人十分无语,看不出对于开发有什么好处,只是让人感觉急功近利慌不择路。可以肯定这是Chrome的影响导致的。刚刚三个月的、花了多少唾沫大加炒作的4就玩完了,而且可以肯定死透了——因为连安全更新都不再发布。不爽的话就不多说了,请看Slashdot评论:

http://news.slashdot.org/story/11/06/22/172229/No-Additional-Firefox-4-Security-Updates

Add the following line into your vim configuration file _vimrc(mswin) or .vimrc (linux). Then after any searching

or replacing work you can click backspace key to remove all the highlights.

nmap <BS> :noh<CR>

BS is BackSpace key, nmap means normal mode. noh is short for ‘no highlight’. <CR> means Return key in MS Windows.

Reference (talks about diverse maps in Vim. My own _vimrc only uses nmap and already achieved much functions)

http://www.linux.com/archive/feed/54936

Cheers~