今天太高兴了。
不知道哪个恶魔嫉妒了。
结果,
中午在西站的时候手机就有点问题。自动关机了一回。
下午回来居然连连系统错误,终于不能开机了。
只好来个格式化,按了几个高难度的键,Formatting...
名片夹还没来得及备份,软件,短信息,Formatting...
联系方式和短信息,痛啊~~
2008年1月31日星期四
2008年1月30日星期三
大雪纷纷落地
大雪纷纷落地,
再下三天何妨,
大雪纷纷落地
有人来到公路
有人来到车站
他们呼天,他们喊地
我们仰望着视线
电线结冰了,我们赶紧停电
铁塔折断了,我们关上手机
高速封路了,我们耐心等待
铁路晚点了,我们慢慢忍耐
飞机延误了,我们自谋他路
啊,有人来了
我们饿不死了
也冻不死了
铁塔上的冰,锤子
一下,两下
一下,两下
一下,两下
电线,几十双手
一下,两下
一下,两下
一下,两下
重复着
重复着
重复着
我毫无意义地重复着
我说这次早回来要是找不好工作就亏大了,错过了这么难得的大雪。有人说我得庆幸走得早,没被大雪困住。可是,没有下大雪的时候,车票还不是在瞬间就卖完?
大雪,转移了我的注意力,从人类大迁移到了老天爷上,可是老天爷还是那个老天爷。
再下三天何妨,
大雪纷纷落地
有人来到公路
有人来到车站
他们呼天,他们喊地
我们仰望着视线
电线结冰了,我们赶紧停电
铁塔折断了,我们关上手机
高速封路了,我们耐心等待
铁路晚点了,我们慢慢忍耐
飞机延误了,我们自谋他路
啊,有人来了
我们饿不死了
也冻不死了
铁塔上的冰,锤子
一下,两下
一下,两下
一下,两下
电线,几十双手
一下,两下
一下,两下
一下,两下
重复着
重复着
重复着
我毫无意义地重复着
我说这次早回来要是找不好工作就亏大了,错过了这么难得的大雪。有人说我得庆幸走得早,没被大雪困住。可是,没有下大雪的时候,车票还不是在瞬间就卖完?
大雪,转移了我的注意力,从人类大迁移到了老天爷上,可是老天爷还是那个老天爷。
面试就像梦游
刚刚经历了面试。
面试就是在聊天,聊着聊着就把你的注意力给放松了,目标不明确了,都忘了该说啥了,就像被灌了迷幻药。面试官就暗自高兴了,小样,这下就套出你的真话了吧。面试出来,冷风里一吹,清醒了,原来面试就像去梦游了一场。
没想到面试官对我到其他哪些地方面试过这么有兴趣。也难怪,世界本来就很小的样子,行业圈子更小,没准大家隔三差五一起开开会,今天你当家,明天我坐庄,谈谈公事,聊聊私事,心知肚明着呢。
面试就是在聊天,聊着聊着就把你的注意力给放松了,目标不明确了,都忘了该说啥了,就像被灌了迷幻药。面试官就暗自高兴了,小样,这下就套出你的真话了吧。面试出来,冷风里一吹,清醒了,原来面试就像去梦游了一场。
没想到面试官对我到其他哪些地方面试过这么有兴趣。也难怪,世界本来就很小的样子,行业圈子更小,没准大家隔三差五一起开开会,今天你当家,明天我坐庄,谈谈公事,聊聊私事,心知肚明着呢。
2008年1月14日星期一
2007年11月18日星期日
刚刚看到的
刚刚在2ccc上看到的
[2007-11-17]
股市暴跌,猪肉暴涨,站长顶不顺了,做了近十年程序员,唯一值点钱的也许就这个十年苦心血经营的网站了,现含泪转让本站套点现,感谢所有关心本站的朋友,有意者请联系:webmaster@delphibox.com,站长将发送相关信息给您。
2007年10月16日星期二
Color! What Color!
Free personality analysis from ColorQuiz.com.
Generated on Mon Oct 15 18:09:39 2007.
Your Existing Situation
Having difficulty in standing up to the demands imposed on him. Finds a great effort is involved and wishes to have the situation eased.
Your Stress Sources
An existing situation or relationship is unsatisfactory, but he feels unable to change it to bring about the sense of belonging which he needs. Unwilling to expose his vulnerability, he therefore continues to resist this state of affairs, but feels dependent on the attachment. This not only depresses him, but makes him irritable and impatient, producing considerable restlessness and the urge to get away from the situation, either actually or, at least, mentally. Ability to concentrate may suffer.
Your Restrained Characteristics
Willing to become emotionally involved as he feels rater isolated and alone. Egocentric and therefore quick to take offense, though he tries to avoid open conflict.
Feels that things stand in his way, that circumstances are forcing him to compromise and forgo some pleasures for the time being.
Your Desired Objective
His need to feel more causative and to have a wider sphere of influence makes him restless and he is driven by his desires and hopes. May try to spread his activities over too wide a field.
Your Actual Problem
Anxiety and restless dissatisfaction, either with circumstances or with unfulfilled emotional requirements, have produced stress. He feels misunderstood, disoriented, and unsettled. This drives him into a search for new conditions or relationships, in the hope that these might offer greater contentment and peace of mind.
Generated on Mon Oct 15 18:09:39 2007.
Your Existing Situation
Having difficulty in standing up to the demands imposed on him. Finds a great effort is involved and wishes to have the situation eased.
Your Stress Sources
An existing situation or relationship is unsatisfactory, but he feels unable to change it to bring about the sense of belonging which he needs. Unwilling to expose his vulnerability, he therefore continues to resist this state of affairs, but feels dependent on the attachment. This not only depresses him, but makes him irritable and impatient, producing considerable restlessness and the urge to get away from the situation, either actually or, at least, mentally. Ability to concentrate may suffer.
Your Restrained Characteristics
Willing to become emotionally involved as he feels rater isolated and alone. Egocentric and therefore quick to take offense, though he tries to avoid open conflict.
Feels that things stand in his way, that circumstances are forcing him to compromise and forgo some pleasures for the time being.
Your Desired Objective
His need to feel more causative and to have a wider sphere of influence makes him restless and he is driven by his desires and hopes. May try to spread his activities over too wide a field.
Your Actual Problem
Anxiety and restless dissatisfaction, either with circumstances or with unfulfilled emotional requirements, have produced stress. He feels misunderstood, disoriented, and unsettled. This drives him into a search for new conditions or relationships, in the hope that these might offer greater contentment and peace of mind.
2007年10月6日星期六
2007年8月1日星期三
Undocumented MessageBoxTimeOut function
From: http://www.delphi3000.com/articles/article_4808.asp
There are lots of neat little things that are in many of the DLLs that Microsoft has installed in Windows. Most of them are documented in the Win32 API. However, there are a lot of them that are undocumented. This article shows how to use one of the undocumented functions available in user32.dll, MessageBoxTimeOut.
This type of functionality for a MessageBox has been requested on the Delphi newsgroups many times and there have been several solutions written. After being introduced in XP, this functionality is now available to developers using this undocumented API.
Since this function is not documented, it is not found in Windows.pas, so it has to be defined. It is identical to the MessageBox API definition except it has two more parameters, wLanguageID and dmMilliseconds.
function MessageBoxTimeOut(
hWnd: HWND; lpText: PChar; lpCaption: PChar;
uType: UINT; wLanguageId: WORD; dwMilliseconds: DWORD): Integer; stdcall;
function MessageBoxTimeOutA(
hWnd: HWND; lpText: PChar; lpCaption: PChar;
uType: UINT; wLanguageId: WORD; dwMilliseconds: DWORD): Integer; stdcall;
function MessageBoxTimeOutW(
hWnd: HWND; lpText: PWideChar; lpCaption: PWideChar;
uType: UINT; wLanguageId: WORD; dwMilliseconds: DWORD): Integer; stdcall;
implementation
// this const is not defined in Windows.pas
const
MB_TIMEDOUT = 32000;
function MessageBoxTimeOut; externaluser32 name 'MessageBoxTimeoutA';
function MessageBoxTimeOutA; external user32 name 'MessageBoxTimeoutA';
function MessageBoxTimeOutW; external user32 name 'MessageBoxTimeoutW';
Now, to call the function, it is as easy as setting the flags and making the call. There may be other results returned that I am not aware of besides the standard IDxxx return values and the MB_TIMEDOUT result defined above.
var
iResult: Integer;
iFlags: Integer;
begin
// Define a MessagBox with an OK button and a timeout of 2 seconds
iFlags := MB_OK or MB_SETFOREGROUND or MB_SYSTEMMODAL or MB_ICONINFORMATION;
iResult := MessageBoxTimeout(
Application.Handle,
'Test a timeout of 2 seconds.',
'MessageBoxTimeout Test', iFlags, 0, 2000);
// iResult will = 1 (IDOK)
ShowMessage(IntToStr(iRet));
// Define a MessageBox with a Yes and No button and a timeout of 5 seconds
iFlags := MB_YESNO or MB_SETFOREGROUND or MB_SYSTEMMODAL or MB_ICONINFORMATION;
iResult := MessageBoxTimeout(
Application.Handle,
'Test a timeout of 5 seconds.',
'MessageBoxTimeout Test', iFlags, 0, 5000);
// iResult = MB_TIMEDOUT if no buttons clicked, otherwise
// iResult will return the value of the button clicked
case iResult of
IDYES: // Pressed Yes button
ShowMessage('Yes');
IDNO: // Pressed the No button
ShowMessage('No');
MB_TIMEDOUT: // MessageBox timed out
ShowMessage('TimedOut');
end;
end;
I presume Borland will not put this into Windows.pas until Microsoft documents it but developers can get a head start on them by using the code above. It is unlikely that Microsoft will depricate this function for quite some time because all of the standard MessageBox API calls actually call MessageBoxTimeOutA or MessageBoxTimeoutW and pass $FFFFFFFF as the timeout period meaning the dialog will wait a very long time, approx 49 days!
=======
This function could be useful, however, since it is not documenten, there is no guarantee whether or not this function will continue to exist. Even the fact that other APIs indirectly call it, does not quarantee this. Microsoft could easily remove the function, and write a different implementation for message boxes.
But until then, you can use it of course. :)
$FFFFFFFF could also mean -1, when the parameter is actually an integer value. In this case, it probably means 'indefinate' instead of 49 days, which makes more sense. I can hardly imagine that every MessageBox will automatically close after 49 days. :)
2007年7月19日星期四
时间如流水
再来看看昨天的时间
07:30 起床,奔赴实验室
08:30 查看邮件、新闻
09:00 看书:Writing English Language Tests
11:00 吃午饭、休息
12:00 写日志
13:00 睡午觉
14:00 处理视频
17:00 吃晚饭、休息
17:30 视频处理
18:30 看足球赛
23:00 聊天、打电话
00:00 吃夜宵
01:00 写程序、听英语
02:00 游戏
03:00 睡觉
从起床到睡觉共19.5小时,其中:
顺便把今天的也总结一下吧
07:30 起床、查看邮件
08:30 看书:设计模式
09:30 处理题库
10:00 看书:wxPython in Action
12:00 睡午觉
14:00 开会
16:30 修改程序
17:00 吃晚饭
17:30 休息、聊天
18:00 踢球、洗澡
20:30 写日志
从起床到现在共15小时,其中:
07:30 起床,奔赴实验室
08:30 查看邮件、新闻
09:00 看书:Writing English Language Tests
11:00 吃午饭、休息
12:00 写日志
13:00 睡午觉
14:00 处理视频
17:00 吃晚饭、休息
17:30 视频处理
18:30 看足球赛
23:00 聊天、打电话
00:00 吃夜宵
01:00 写程序、听英语
02:00 游戏
03:00 睡觉
从起床到睡觉共19.5小时,其中:
- 有效学习工作时间7小时
- 半有效学习工作时间1.5小时
- 生活琐事5小时
- 娱乐休闲6小时
- 电脑屏幕前12小时
- 有效工作还不错
- 娱乐时间真长啊,与其说是娱乐还不如说是郁闷。想起有人在BBS上问的一句话:谁告诉我今天有比赛的?
顺便把今天的也总结一下吧
07:30 起床、查看邮件
08:30 看书:设计模式
09:30 处理题库
10:00 看书:wxPython in Action
12:00 睡午觉
14:00 开会
16:30 修改程序
17:00 吃晚饭
17:30 休息、聊天
18:00 踢球、洗澡
20:30 写日志
从起床到现在共15小时,其中:
- 有效学习工作时间6.5小时
- 半有效学习工作时间2.5小时
- 生活琐事3.5小时
- 休闲娱乐2.5小时
- 电脑屏幕前9小时
- 有计划就好了
翻译 协作 问题
在教育中文翻译 的各位热心的“老”人们的帮助下,翻译了一篇文章。当文章出现在网站上时,才发现除了文字的翻译外,还要插入图片、文章分类等工作要做。感谢编辑们的同时,也想到如果只是草草翻译一下文字,恐怕只是给审校和编辑徒增麻烦。所以以后翻译须格外认真。通过这次翻译,也清楚了工作流程,下次就可以集中精力在内容上了。
说 到翻译,有了一点感触。一定要熟悉文章内容。翻译时,也不能只看这一篇文章。文章中的内容,如果不是很清楚,就需要阅读相关的资料;文章中的引用、链接有 时也需要找原文来看。自己阅读的时候,可能有的单词拿不准什么意思就忽略过去了,可是翻译的时候如果找不到准确的意思,恐怕翻出来的就与原意风马牛不相 及。
这次通过GD共享文档是算是第一次真正的协作吧。以前虽然在TRAC和SVN上作项目,但大家都基本上是在一起,有什么问题主要是当面讨论,靠SVN控制 源码,TRAC的作用非常小。这次就不一样了,体会出了协作的概念和力量。GD也是第一次真正使用,感觉确实比较方便,瞬间已经成了我的主要工作环境,想 不通以前为什么看了一眼就把它抛在脑后了。
关注教育中文翻译很久了,先是订阅RSS,到现在开始参与翻译,但是没有发现多少自己很感兴趣的内容。也许是我对这个领域了解的太少了,看的东西不多,而 自己其实更象是一个程序员。但我对此还是很有信心的,也相信做这样的事是很值得的,希望能找到更多自己比较熟悉的内容,来参与翻译。
除了翻译,我更希望看到原创的内容。我不是在意原创这个词的意义,只是觉得国外的情况跟我们有不少差距,我们在了解国外的同时,需要关注身边的情况。
OLDaily上每天的条目都不少,如果想了解清楚每个条目,光是看简短的评述肯定不够,一定要花时间阅读原文。可是,我对于究竟有多少人在阅读这个网站很不乐观,也不知道网站有没有什么统计数据。
突然发现网站上有统计的,平均日22IP,62PV,估计每天都是那些人在看吧。虽然比我预想的要好,但还是很少的。
说 到翻译,有了一点感触。一定要熟悉文章内容。翻译时,也不能只看这一篇文章。文章中的内容,如果不是很清楚,就需要阅读相关的资料;文章中的引用、链接有 时也需要找原文来看。自己阅读的时候,可能有的单词拿不准什么意思就忽略过去了,可是翻译的时候如果找不到准确的意思,恐怕翻出来的就与原意风马牛不相 及。
这次通过GD共享文档是算是第一次真正的协作吧。以前虽然在TRAC和SVN上作项目,但大家都基本上是在一起,有什么问题主要是当面讨论,靠SVN控制 源码,TRAC的作用非常小。这次就不一样了,体会出了协作的概念和力量。GD也是第一次真正使用,感觉确实比较方便,瞬间已经成了我的主要工作环境,想 不通以前为什么看了一眼就把它抛在脑后了。
关注教育中文翻译很久了,先是订阅RSS,到现在开始参与翻译,但是没有发现多少自己很感兴趣的内容。也许是我对这个领域了解的太少了,看的东西不多,而 自己其实更象是一个程序员。但我对此还是很有信心的,也相信做这样的事是很值得的,希望能找到更多自己比较熟悉的内容,来参与翻译。
除了翻译,我更希望看到原创的内容。我不是在意原创这个词的意义,只是觉得国外的情况跟我们有不少差距,我们在了解国外的同时,需要关注身边的情况。
OLDaily上每天的条目都不少,如果想了解清楚每个条目,光是看简短的评述肯定不够,一定要花时间阅读原文。可是,我对于究竟有多少人在阅读这个网站很不乐观,也不知道网站有没有什么统计数据。
突然发现网站上有统计的,平均日22IP,62PV,估计每天都是那些人在看吧。虽然比我预想的要好,但还是很少的。
订阅:
博文 (Atom)