Baby one more time rock version October 29th, 2009
Yes, I'd been impressed by this rock song which song by Marty Casey since I saw the move Freaky Friday. It's really rock even I absolutely like the Britney version. I know it's a little hard to get a listen or a download for this rock version, so I put the download link here and you guys can listen and download. Enjoying!
Baby one more time Rock:
Sony Ericsson M608c Shortcut Confluence October 28th, 2009
·键盘输入等号"=" :长按OK键的左边
·是和否的选择:当出现提示选择是和否的时候,按Y键代表是,N键代表否;
·删除短信:L键旁边的向左指的箭头键按一下,会提示是否删除该条短信,按Y删除,按N不删除
·输入法切换:左下角"上"键+"0"键,同时按,或依次按,在拼音、笔画、英文输入法间循环切换
·插入符号:按住","或者"。",会弹出符号对话框
·英文大写:在输入英文时,按一次"上",第一个字母大写,两次"上",锁定大写
·数字输入:在输入文本时,按一次"ALT",再按相应数字键,可输入一个数字,按两次"ALT",锁定输入多个数字,再按解除锁定
·返回桌面:在子菜单视图,按住"返回"键快速返回待机桌面视图,^
·手动键盘锁:在待机桌面视图,按住左侧的"返回"键,开关键盘锁;
·按左下角的"左"键,然后快速按屏幕右下角的开关键盘提示静音:按住右下角的"右"键,开关静音
·语音信箱:按住"1"键,访问语音信箱语音拨号:按住滚轮或"OK"键,使用语音标签
·通讯录:待机状态下,按住除特殊定义的键(如"OK"、"1"和滚轮等)外的其他键,可访问通讯录
·工程模式:滚轮上>*键>滚轮下>滚轮下>*键>滚轮下>*键
·文本选择:使用"向上"和"左""右"键配合选择要编辑的文本
·Web浏览:打开浏览器后,按Alt+1新建标签页;按Alt+2关闭当前标签页;按Alt+7在多个标签页间切换
·键盘的复制粘贴键:在你编辑短信或是文本的时候,同时按住键盘最下排的 "向上"和 "向左" 或 "向上"和 "向右" 键,选中你要复制或剪切的内容
·通讯录中修改中间部分号码:比如 12334567890 !如果要把3去掉一个,如果按←键
只会显示*号
但是按住ALT键再按
←键
就可以左移光标了
·手写输入:
从右至左划"一",删除最近输入字;从下至上划"l",在中文和英文输入法间切换。点击已输入字左侧,向右拖动笔,可框选至笔抬起位置的文字,进行删除或编辑
屏幕右侧中间的三角符号为分屏符,虚拟将屏幕分成两个区域,在上半区域书写,被识别为数字在下半区域或跨两区书写,识别为汉字或英文(取决于所选输入语言)。
在手写识别模式下,在屏幕上由下至上划两竖,就是在多字符识别和单字符识别之间切换,这个功能在用笔输入英文单词和数字的时候很好用,可以一下输入多个,而且识别率很高
应用管理器:使用应用管理器可以查看最近打开的应用程序,并在这些程序间快速切换;使用应用管理器可以关闭一些或者全部已打开的应用程序,以释放被这些应用程序占用的内存,提高机器的运行速度;适当保留已打开常用应用程序,可提高再次访问这些应用程序的速度。
Deference between IComparer and IComparable October 21st, 2009
Sort an array of class type respectively with IComparer and IComparable interface. Here we can see the difference between IComparer and IComparable. In order to write a IComparer approach to sort an array requires a separate interface class:
IComparer:
1: using System;
2:
3: class UseIComparer
4: {
5: void Page_Load()
6: {
7: sortObject();
8: }
9: public class clsPoint
10: {
11: public int x;
12: public int y;
13: public clsPoint(int x, int y)
14: {
15: this.x = x;
16: this.y = y;
17: }
18: public override string ToString()
19: {
20: return "x=" + x + ",y=" + y;
21: }
22: }
23:
24: //implement the separate interface class
25: public class MyComparer : IComparer
26: {
27: int IComparer.Compare(object a, object b)
28: {
29: clsPoint aa = (clsPoint)a;
30: clsPoint bb = (clsPoint)b;
31: if (aa.x == bb.x)
32: {
33: if (aa.y == bb.y)
34: {
35: return 0;
36: }
37: else if (aa.y > bb.y)
38: {
39: return 1;
40: }
41: else
42: {
43: return -1;
44: }
45: }
46: else if (aa.x > bb.x)
47: {
48: return 1;
49: }
50: else
51: {
52: return -1;
53: }
54: }
55: }
56:
57: IComparer objComparer = new MyComparer();
58:
59: //Sort
60: public void sortObject()
61: {
62: clsPoint[] arrPot = new clsPoint[4];
63: arrPot[0] = new clsPoint(10, 10);
64: arrPot[1] = new clsPoint(5, 25);
65: arrPot[2] = new clsPoint(5, 15);
66: arrPot[3] = new clsPoint(15, 30);
67: foreach (clsPoint p in arrPot)
68: {
69: Response.Write("pre-sorting output:" + p.ToString() + "<br />");
70: }
71: Response.Write("<br />"+"<br />");
72:
73: Array.Sort(arrPot, objComparer);
74: foreach (clsPoint p in arrPot)
75: {
76: Response.Write("After sorting the output:" + p.ToString() + "<br />");
77: }
78: }
79: }
Remember you would need a another separate class implemented IComparer to help sorting the array.
IComparable:
1: using System;
2:
3: class UseIComparable
4: {
5: void Page_Load()
6: {
7: sortObject();
8: }
9: public class clsPoint:IComparable
10: {
11: public int x;
12: public int y;
13: public clsPoint(int x, int y)
14: {
15: this.x = x;
16: this.y = y;
17: }
18: public override string ToString()
19: {
20: return "x=" + x + ",y=" + y;
21: }
22: int IComparable.CompareTo(object obj)
23: {
24: clsPoint bb = (clsPoint)obj;
25: if (this.x == bb.x)
26: {
27: if (this.y == bb.y)
28: {
29: return 0;
30: }
31: else if (this.y > bb.y)
32: {
33: return 1;
34: }
35: else
36: {
37: return -1;
38: }
39: }
40: else if (this.x > bb.x)
41: {
42: return 1;
43: }
44: else
45: {
46: return -1;
47: }
48: }
49:
50: }
51:
52: //Sort
53: public void sortObject()
54: {
55: clsPoint[] arrPot = new clsPoint[4];
56: arrPot[0] = new clsPoint(10, 10);
57: arrPot[1] = new clsPoint(5, 25);
58: arrPot[2] = new clsPoint(5, 15);
59: arrPot[3] = new clsPoint(15, 30);
60: foreach (clsPoint p in arrPot)
61: {
62: Response.Write("pre-sorting output:" + p.ToString() + "<br />");
63: }
64: Response.Write("<br />"+"<br />");
65: Array.Sort(arrPot);
66: foreach (clsPoint p in arrPot)
67: {
68: Response.Write("After sorting the output:" + p.ToString() + "<br />");
69: }
70: }
71: }
Differently, you only have to get the class itself implemented the IComparable interface.