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

星期五, 九月 17, 2010

rail


这是什么鬼地方呀, 好恐怖的铁路....
--
Feng

星期四, 九月 02, 2010

google desktop took ctrl_alt_G



I don't even know what this key does...

Just disable it.

 
"HKEY_CURRENT_USER\Software\Google\Google Desktop\Preferences"
create a DWORD value named "hot_key_flags".
Setting this value to:
- "0" disables both Ctrl-Alt-G and Windows-G
- "1" disables Windows-G, but leaves Ctrl-Alt-G enabled
- "2" disables Ctrl-Alt-G, but leaves Windows-G enabled
- Removing the key or setting the value to "3" or higher will enable
both keys.

You must restart Google Desktop for this change to take effect. Sorry
for this inconvenience and thanks for your feedback.

- Google Desktop Team

--
Feng



--
Feng

星期四, 八月 26, 2010

ghotkeys 查不出热键的原因

用 ghotkeys ,一个热键也查不出

最后发现原因居然是它不能在subst 出来的虚拟盘里面运行....

最后查出占用 ctrl+alt+g 的是 google desktop.

--
Feng

run batch command in TC

when add custom command in usercmd.ini

notice that the environment variable will not be expanded in the parameters field. 

It's a good way to put this in the Command filed. 

%comspec% /k echo start... & "%_dropbox%\Settings\vim\gvimtab.bat"

--
Feng

星期三, 八月 25, 2010

皮好吃吗?

刚才带皮吃了一个, 方便是方便,不过皮的味道倒不是太好...

呵呵, 绿肉的我估计不敢吃, 那也太多毛了....

--
Feng

弥猴桃是可以吃皮的.

我靠, 我今天才知道弥猴桃的皮是可以吃的....

害我每次嫌麻烦,都不吃弥猴桃....

--
Feng

星期二, 八月 24, 2010

生病一个多月了

咳嗽一个多月了,也不见好.

看了四次医生

前三回是开抗生毒

最后一回开抗过敏

好像都没什么作用.

每次都有开止咳药.

后两次开的是可待因, 效果比前两次开的糖浆好一点. 不过可待因副作用大一些.

大前天晚上睡觉时突然胸痛, 感觉很难呼吸. 好像胸前压了块石头. 侧睡好一点.

第二天胸痛好转了一些, 停用了可待因. 所以喉咙在睡觉前突然很痒, 于是服用可待因. 然后睡觉了, 这次还是有点胸痛的,不过倒不影响睡觉了.

昨天晚上, 胸痛不怎么明显了. 喉咙有点痒, 但我没有服用可待因, 不是很严重, 忍着就睡着了. 但是睡觉的时候, 我梦到自己听到奇怪的声音. 我老婆把我拍醒.

于是,我相信是我自己发出了什么奇怪的声音.

不知道这些症状和我最初的咳嗽是否有联系.

--
Feng

星期二, 八月 10, 2010

linqpad 网络验证

运行过linqpad 正式版再运行破解版就无效了...

破解版打开后, 会在短时间内连网验证是不是正版....不是的话, 又要激活了.

于是我用Freecap 屏蔽它上网.

但是虽然显示是激活的,却还是一样不能auto complelation....

--
Feng

星期五, 八月 06, 2010

千好不抵一恶

君有千千好, 愿您伴我老,唯君有一坏,让我很无奈.

当我饿时,你给我吃. 当我冷时,你给我穿.

于是,世界变得美好,我给这个世界加20分,给你加20分.

当我困时,你不让我睡觉. 我给这个世界扣100分. 给你扣10000分, 于是, 我给你打 -9980 分.

千好不抵一恶. 仗着自己的好而作恶, 那你就只剩下恶.

好人就是不做坏事的人, 并不需要是一个会做好事.

如果世界上没有坏人, 那就够了, 又需要谁去做好事呢.

闹情绪无所谓, 发泄没关系, 但是时间也要把握好,不然只有适得其反. 你那里水龙头开了,我这里盖子还没有打开呢. 这样只会把房间的淹了. 对谁都没好处.

上帝会感谢你, 因为你做了一千件好事.

而我, 宁愿你没有做那一千件好事, 只要你不做一件坏事.

--
Feng

星期二, 七月 20, 2010

html support

http://html5test.com/


google chrome is best for this test, 197
IE is worst for this test, 27

opera is 159, 
firefox is 139
--
Feng

星期四, 七月 08, 2010

Nokia 5800 Mac address

simple way to find MAC address for Nokia 5800 is to "dial" *#62209526#

--
Feng

星期三, 七月 07, 2010

Add chinese font to your english xp

Well, as I want to type chinese, I need at least one chinese font. This can be done in win7 easily as chinese fonts are shipped with it. The only thing you need to do is adding any Chinese IME, then the fonts will be added automatically. 

But what about winxp? Before you can add any Chinese IME, you have to install east Asia language support. Unfortunately, I don't have a winxp iso in my hand. I can use Vim with chinese input plugin to type chinese. The problem is that without a chinese font, all the chars are displayed as a rectangle. Then, I need a chinese font. 

I didn't find a font file directly. I got the following. This package contains a font called NSimSum-18030. After installing it, I got the font I need.

GB18030 Support Package (English)


Two alternatives for typing Chinese:

1. Web input, for example, dict.cn 's PinYin webpate.
2. NJSTAR input or NJSTAR Word processor.

--
Feng

星期四, 六月 10, 2010

win7 datagridview scroll problem.


My app works fine in xp. 

Recently, we moved to win7. 

The datagridview refresh very slow when we scroll the scrollbar. 

To solve this issue, do this:



  public static class ExtensionMethods {     public static void DoubleBuffered(this DataGridView dgv, bool setting)     {         Type dgvType = dgv.GetType();         PropertyInfo pi = dgvType.GetProperty("DoubleBuffered",             BindingFlags.Instance | BindingFlags.NonPublic);         pi.SetValue(dgv, setting, null);     } }
  
  dataGridView1.DoubleBuffered(true);


--
Feng

星期三, 六月 09, 2010

encoding 转换

encoding 转换

用GVIM 转换不是不可以, 但却有点麻烦.
"%_vimpath%\gvim.exe" -U "%_gvimrc%" -e -c "so s.vim" %filename%.bsh
s.vim 的内容:

redir! > log.txt
0
i
//converted
.
set fenc=cp1252
wq

这样可以转换,但是会有界面出来,还要关掉

加入 -s 后, 界面不在了,但是转换没有成功, 只是那个 //converted 被成功插入第一行了. 说明so 成功了也保存成功了. 但就是encoding 没有转成功.
"%_vimpath%\gvim.exe" -U "%_gvimrc%" -e -s -c "so s.vim" %filename%.bsh


搞不懂呀...


没有试   w ++enc , 不知道会不会比 set fenc 更有效果.

我最后还是用 iconv 解决问题



iconv -f UTF-8 -t cp1252 %filename%.java > %filename%.bsh



--
Feng

星期五, 五月 28, 2010

Mixed mode assembly is built against version 'v2.0.50727...


把 vs 2008 的 C# 程序 转成 vs 2010 后出现这样一个消息. 上网找了解决方案

Mixed mode assembly is built against version 'v2.0.50727

在app.config 文件中(没有的话,加一个,用右键加,不要自己建), 然后加入

<?xml version="1.0" encoding="utf-8" ?>

<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
</startup>
</configuration>


问题解决



--
Feng

win7 中文字体


今天想用VIM 打中文的时候才发现, WIN7 英文版没有中文字体, 晕了我一下, 后来发现, 只要调一个中文输入法出来, 字体就被自动安装了,不需要装门上网去找.


--
Feng

星期五, 五月 21, 2010

who is faster?

LINQ is slowest, as it create a object for each record.

dataset is much more faster than dataset. 

but my app still have to run more than 10 days, I would like to try sqldatareader, as people say that it's 2.5 faster than dataset.

--
Feng

星期六, 五月 15, 2010

解决虚拟机下不能运行游戏的问题

  环境, VMWARE 虚拟机
  
  运行汉之云或幻想三国志出现以下字样
  
  
  sorry,this application cannot run under a virtual machine
  
  
  后来找到解决方法, 在VMX 文件里面加入这行
  monitor_control.restrict_backdoor = TRUE 

  
  然后再启动虚拟机, 再打开幻想三国志就成功了。
  


--
Feng

星期五, 五月 07, 2010

ERWIN ERROR 3012

因为 relationship 重名, 而创建失败。 由于是generalization, 关系名的自动的, 所以重名 Is a person.

在 logic 中, 把左边栏里的 relationship 名字改一下好了。 居然不用改physical 中的 relationship 的名字。

--
Feng

星期二, 四月 20, 2010

// 和 descendant 的唯一区别:

// 和 descendant 的唯一区别:

只是给找出来的NODE 赋不同的 POSITION 值而已.

// 给 POSITION 是根据 家里的排行
descendant:: 是根据家族的排行


tr
tr  家里排行老大  position() = 1
tr  家里排行老二  position() = 2
tr  家里排行老大  position() = 1
tr  家里排行老二  position() = 2
tr  家里排行老三  position() = 3
tr   家里排行老大 position() = 1
tr  家里排行老二 position() = 2


If use tr//tr[1] then, all tr with position()=1 will be selected.



tr
tr  族里排行老大  position() = 1
tr  族里排行老二  position() = 2
tr  族里排行老三  position() = 3
tr  族里排行老四  position() = 4
tr  族里排行老五  position() = 5
tr   族里排行老六 position() = 6
tr  族里排行老七 position() = 7


If use tr/descendant::tr[1] then, only the first tr will be selected.


--
Feng

其它博客地址

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