Tears and rain(lyrics)

2009年3月20日

1207883399860_26151越来越多的体会很多人的悲伤,
都有着自己无法言语的曾经,
那些哀伤和难过隐藏得极为仔细,
也许只有在下雨的时候
泪水才能尽情的流
一首歌认识一个人 -> James Blunt

How I wish I could surrender my soul;
Shed the clothes that become my skin;
See the liar that burns within my needing.
How I wish I’d chosen darkness from cold.
How I wish I had screamed out loud,
Instead I’ve found no meaning.

I guess it’s time I run far, far away; find comfort in pain,
All pleasure’s the same: it just keeps me from trouble.
Hides my true shape, like Dorian Gray.
I’ve heard what they say, but I’m not here for trouble.
It’s more than just words: it’s just tears and rain.

How I wish I could walk through the doors of my mind;
Hold memory close at hand,
Help me understand the years.
How I wish I could choose between Heaven and Hell.
How I wish I would save my soul.
I’m so cold from fear.

阅读全文…

admin 生活, 英文学习

c#蜂鸣报警系列声音函数.

2009年3月20日

在C#中可以通过以下四种方式来实现蜂鸣或者报警,播放声音之类的功能.
1). Beep的报警实现

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
   // 添加引用
   using System.Runtime.InteropServices;
 
   [DllImport("user32.dll")]
   public static extern int MessageBeep(uint uType);
   uint beepI = 0x00000030;
 
    //发出不同类型的声音的参数如下:
    //Ok = 0x00000000,
    //Error = 0x00000010,
    //Question = 0x00000020,
    //Warning = 0x00000030,
    //Information = 0x00000040
 
    // 然后在程序中调用
    MessageBeep(beepI);

2) 调用Microsoft.ViualBase中的Beep():
1.先引入命名空间:using Microsoft.VisualBasic;
2.调用:Interaction.Beep();
在编译时注意要引用Microsoft.VisualBasic.dll程序集,否则编译不能通过。
另外,如果是Console应用,可以用Console.WriteLine(”\a”);来代替Beep()。

3) 通过主板蜂鸣器发出蜂鸣

1
2
3
4
5
6
7
8
9
10
[DllImport("kernel32.dll",   EntryPoint="Beep")]   
   // 第一个参数是指频率的高低,越大越高,第二个参数是指响的时间多长
  public   static   extern   int   Beep   (   
  int   dwFreq,   
  int   dwDuration   
  );   
 
  private   void   button1_Click(object   sender,   System.EventArgs   e)   {   
  Beep(500,100);   
  }

4) 调用PlaySound(string pszSound,int hmod,int fdwSound)来播放声音

1
2
3
4
5
6
  [DllImport("winmm.dll")]
  public static extern bool PlaySound(string pszSound,int hmod,int fdwSound);
  public const int SND_FILENAME = 0x00020000;
  public const int SND_ASYNC = 0x0001; 
 
  PlaySound("alarm8.wav",0,SND_ASYNC|SND_FILENAME);

admin CSharp

Tears and rain

2009年3月19日

如果你听过You’re beautiful, 那么你也许知道James Blunt.

f814aee7a425044cc7f58bf4ab5631a0詹姆斯·布朗特(James Blunt)是2005年英国涌现出的最有实力的歌手之一,也是最受欢迎的新人之一。他的首张个人专辑《Back to Bedlam》在2004年年底在英国发行之后开始逐渐得到歌迷的喜爱,一举成为2005年度全英销量冠军专辑。而自从这张《Back to Bedlam》2005年10月在美国发行以来,专辑在Billboard 200专辑榜的排名也稳步上升,最高曾名列第九位。

James Blunt的嗓音带有明显的中性化特征,但和安东尼和约翰逊(Antony And The Johnsons)Jazz老奶奶一般的唱腔不同的是,James Blunt的“尖嗓”并不被很多人看好,这其中就包括获得今年全英音乐奖(Brit Awards)音乐杰出贡献奖的前果酱乐队(The Jam)的保罗·维勒(Paul Weller)。Paul Weller甚至曾公开侮辱James Blunt,并公开表示不愿与其同台演出,但这一切都不能阻止James Blunt成功的脚步。依靠极具感染力的歌词以及上佳的歌曲旋律,James Blunt赢得了广大歌迷的心。说道《Back to Bedlam》专辑的成功,一定要说的就是这位英国“上尉诗人”真实而能打动人心的歌词。

爱情是所有艺术作品永恒的主题。在本张专辑最出色的单曲之一《You’re Beautiful》当中,James Blunt唱到:“我的爱纯洁无暇,我在人群中一眼就能够将你认出,但我不知道该做什么,因为我将不能和你在一起。”《You’re Beautiful》曾在英国单曲榜中称霸多周,目前也已经在Billboard Hot 100单曲榜中上升到了亚军位置。在另一首凄美的伤心情歌《Goodbye My Lover》,James Blunt在对即将离去的爱人真情告白:“宝贝,我让你失望了么?你让我魂不守舍,你改变了我的生活和人生目标。没有人比我更了解你,更熟悉你的体香,我已经完全沉迷于你。再见,我的爱,再见,我的朋友,你始终是我的唯一。请记得我,记住我们曾经拥有的一切,我想和你共度余生,我发誓我爱你,我不能没有你。”这不就是每个渴望爱情重燃的人心里的话么。James Blunt的成功可能就在于他的真实,他一个个真实的故事打动无数有共鸣的人。最后一首《No Bravery》也是也是来源于James在服役时的生活。在《Back to Bedlam》的制作方面,堪称重量级的Linda Perry以及Guy Chambers的加入使得《Back to Bedlam》的整体品质更有保障。

首张专辑就能够获得如此的反响,对James Blunt来说,这是个梦幻般的开局,祝愿这位浪漫的“上尉”一路走好,因为他给我们带来的是一壶疗伤的好酒,可以供所有需要疗伤的人享用。(转自网络)

阅读全文…

admin 音乐

Rockets forward Carl Landry wounded in shooting

2009年3月19日

每日一学, 生活多姿彩. :)

标题: 火箭前锋卡尔兰德里遭枪击受伤.

24556b582cd9033cad4a56f1f6e22efaHouston, March 17 — Houston Rockets forward Carl Landry was injured in the left leg Tuesday morning in a possible drive-by shooting or failed robbery near downtown, police said, Landry suffered a minor gunshot wound to his lower left leg and was released after treatment at Memorial Hermann - Texas Medical Center, the team said.
据警方称:休斯顿火箭队前锋卡尔兰德里在一起可能是驾车枪击或抢劫未遂事件中伤到了左腿, 该起事件发生于周二早晨距离市中心不远处.

“We are very thankful and relieved(放心的) that Carl’s injuries were relatively minor and that he is doing well,” Rockets General Manager Dary Morey said in a statement.
火箭队总经理达里尔.莫雷在一次公开声明中称:”我们非常庆幸卡尔的伤不是很严重,而且他现在的状况也不错.”

He said the 25-year-old player was the victim of “an apparent(显然的) random act of violence”(显然无意的暴力行为), Landry is expected to return to action in one to three weeks, he said. The shooting reportedly(据报道) happened early Tuesday morning after the Rockets returned from a game at New Orleans.
他说这位25岁的球员显然是这次无意暴力枪击事件的受害者, 兰德里预计在1-3周后恢复健康, 这起枪击案是在火箭队参加完与新奥尔良队的比赛后返回休斯顿后的周二凌晨发生的.

Police said a car with two occupants(占有人) hit Landry’s vehicle(交通工具,车辆) from behind. Landry got shot when he went out to inspect the damage. The Rockets also said Landry dislocated(脱臼) a finger on his left hand in the incident(事故,暴力事件). Landry has become a valuable player of the bench for the rockets, averaging 9.3 points and 5 rebounds in his second professional season. He totaled 12 points and six rebounds and played a key role in the Rockets’ 95-84 win over the Hornets at New Orleans.
警方称一辆载有2个人的汽车从后面撞击了兰德里的车, 当兰德里下车检查汽车损坏情况时遭遇枪击. 火箭队也称在这起暴力事件中兰德里左手的一个手指脱臼了.对于火箭队来说, 兰德里是球队板凳席上的非常重要的球员, 在他的第二个NBA赛季, 他场均拿到9.3分和5个篮板. 在同新奥尔良黄蜂队的比赛中,他贡献了12分6个篮板, 在这场95:84的胜利中发挥了关键作用.


今日一句:
The way i see it, you should keep your promise.
我认为你应该信守承诺。
e.g
If i were in your position, i would not break my promise..这句使用虚拟语气,设身处地地从对方的角度看问题. it will do you good if your quit smoking.句中的do you good在这里相当于be good for your health.

admin 英文学习

DELL D630之蓝牙安装记

2009年3月16日

买D630的时候忘了配个蓝牙模块, 一直觉得非常不爽, 前几天偶尔上淘宝翻了翻, 40块, 便宜的很, 于是一激动买了一个, 今天快递刚送过来, 迫不及待, 装上去了试了试, 感觉很爽. 呵呵, 顺手拍了几张照片.




阅读全文…

admin 生活

jQuery插件之json篇

2009年3月12日

今天来说说jquery的json插件, json(javascript object notation)是一种轻量级的数据交换格式, 易于阅读和编写, 同时也易于机器解析和生成. 关于更多json的知识可以查看这里. jquery的json插件查看这里

这里以前几天写的一个程序为例来说明一下.
首页现在HTML页面中引用2个JS文件

<script type="text/javascript"  src="/js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="/js/jquery.json.js"></script>

假设我们现在有一个全局文字对象变量

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// 全局文字对象变量
gts = {	"p":[], 
		"imgsrc":"", 
		"avatar":{"show":"0", "width":"73", "height":"85", "x":"0", "y":"0"},
		"shantu":{"make":"0", "type":"1", "val":""}
		};
 
// 默认文字对象
dt = function(_txtid, _cnname) {
	this.txtid = _txtid;
	this.cnname = _cnname;
 
	this.fontface		= "fzzhiyi.ttf";
	this.fontsize		= "14";
	this.fontcolor		= "#FF0099";
	this.altercolor		= "#ffffff";
	this.x				= "0";
	this.y				= "0";
	this.wordlimit		= "10";
	this.textdirection	= "0";
	this.effect			= "0";
	this.jump			= "0";
	this.txt			= "示范文字";
	this.isstroke		= "0";
	this.strokecolor	= "#ff0000";
	this.borderx		= "1";
	this.bordery		= "1";
	this.angle			= "0"
}
 
// 文字对象数组中添加一个默认文字对象
gts.p.push(new dt('txt1', '文字1'));

阅读全文…

admin Javascript ,