Friday, October 24, 2008

calendar validation .net

using System;
using System.Web.UI;
using System.ComponentModel;

namespace ExtendCalendar
{

[ValidationProperty("Text")]
public class VCalendar : System.Web.UI.WebControls.Calendar
{
public string Text
{
get
{
string dateString = this.SelectedDate.ToString("yyyy/MM/dd");
if (dateString == "0001/01/01")
return "";
return dateString;
}
}

}
}

Monday, October 6, 2008

随笔

男女朋友这种事,似乎不能太浪漫,也不能太现实,尺寸很难把握。有时候一个人生活 习惯了,突然多出来一个人在自己日常作息中,反而感觉像眼里进了沙子。有人总劝我,说这种东西需要缘分,但是守株待兔也不是办法。每天独来独往的日子,最 多跟同事和室友寒暄几句。生活这就过得这样平淡且丰富。没有空虚,没有无聊,但总是觉得这样反反复复的日子似乎缺少什么。
人总是希望得到肯定,这也就是我国教育界最欠缺的。只有不停的向正确的方向鼓励,才 能健康的发展。如果一味的埋怨错误和失败,最后只有灰心丧气,碌碌无为。优点应该大力表扬,缺点应该认为是需要改进的失误,而不是给人鞭策的对象。
生气并不是因为别人批评你,或者别人惹你生气,关键在于你自己在气自己,最后受伤的 只有你自己。有时心情不好的时候,就静下心来好好想想,这种事情是不是值得动火伤身体。把心里话说出来,说给父母或者最好的朋友。你就会发现,原来生活可 以非常不同。
又拾起了我画画的老本行,素描本上简单的线条,生活似乎更加悠闲充实了。。。
P1010924

Thursday, April 17, 2008

First Day

Have a good day, mate.

Saturday, July 15, 2006

这次坐够飞机了~

本以为这个假期可以快快乐乐的回国度假, 19个小时的艰苦飞行忍一忍也就过去了。可谁知由于一系列的意外原因,本应在北京时间23日晚上11点半抵达北京,被推迟到北京时间25日凌晨4点。
23日早晨6点就从Hamilton出发前往Auckland国际机场,多亏那98年的Skyline动力强劲,4个人加两个大行李箱的负重也 是一路狂飙。我是第一次开这个车,非常顺手,没想到2.0的车这么带劲~~
开始还算顺利,登上了飞往Sydney的Qantas QF164N, 经过4个半小时的颠簸,总算到达了Sydeny。 可是天公不作美,弥漫的大屋笼罩着本应降落的机场,面对大自然的力量,渺小的飞机不得不在天空一圈又一圈的盘旋,等待着雾气的散去。 飞机大约原地旋转7、8圈后,看到雾气还没有散去的意思,最后不得不迫降到Melbourne补充燃料。3小时后,当我们再次飞回Sydeny时,天空已 经是一片晴朗,终于可以顺利降落了。可是这时第一个不幸的事情发生了:我们本应乘坐的国航CA176X已经在我们降落前半小时飞走了。这下我们被滞留在那 破烂的Sydeny机场,3天的过境签证限制了我们一定要在这段时间内想到办法逃离这个印度洋的孤岛。
这是Qantas和国航开始推卸责任了。 Qantas说飞机晚点很正常,是天气原因造成的。国航说他们的飞机正点起飞,没有任何过错。结果好像错的是我们,只能在机场等候到第二天。幸好有世界杯 看,空旷无人的候机大厅总算有点乐趣。
第二天刚刚8点,我们一帮人就到国航办事处的办公室门前等候了。总算等来一个管事的,好像是个小经理。不管 那么多了,能解决问题的就是神。等我们把情况说清楚后,她就立刻联系今天飞回国内的飞机,但是国航的飞机都没有位子了。但是发现Qantas在9点有一趟 去上海的飞机。要是错过这个飞机,就要等到2天后了。时间不等人啊,我们抓紧时间换了机票就登上了飞机。
10个小时的颠簸,总算来到了上海。到了 祖国,心里就有底了,最起码不用为签证的事情担心了。但是当天晚上只有国航一班飞机去北京,而且还要我们自负机票。我们的机票本来已经包括去北京的行程了 啊,为什么要再买一份?没办法,就认倒霉吧,要不然还不知何年何月才能回家。可谁知我们再一次被天气愚弄了。这架本应降落的飞机由于上海的雷雨被迫降到了 厦门!我们还能干什么?只有等阿~
4个小时过后,飞机总算来了。可是当所有乘客登上飞机后,乘务员又说目的地(北京)有雷阵雨,不能降落。所以我 们又要在上海等到北京的雨停了在起飞。天啊!我得罪谁了?老天就是跟我的飞机不去?困意终于占领了我那疲惫的大脑,不管飞机走不走了,先睡一觉再说。
朦 胧中隐约听到飞机要起飞的声音,揉揉眼睛,原来已经2小时过去了。
终于,来到了北京机场。原来坐飞机是这么“幸福”阿~

Tuesday, May 16, 2006

iRiver H10 5/6GB firmware

Original from http://www.misticriver.net/

H10 MTP (PFD) firmware

An H10 player with Media Transfer Protocol (MTP) firmware is recognized as a portable device (e.g., "Windows Portable devices") by default. MTP is a key technology for PlaysForSure-compatible devices (PFD). Therefore, MTP mode has more compatibility with online music services than UMS. Although you can still access the content of the player working on MTP mode, the access is so limited that no application can access directly media database files. However, you can change the player mode from MTP to UMS temporarily by the UMS Trick. If you have MTP 2.51 firmware installed in your player, "PFD INITIALIZE" are displayed at the right bottom in a boot screen.

H10 UMS firmware

An H10 player with a Universal serial bus Mass Storage class (UMS) firmware is always recognized as an external HDD (e.g., "RIVER Mass Storage Device") by an operating system. Windows 98SE/2000/ME/2000 automatically assigns a drive letter (e.g., "D:") to the player. You can copy your music files or whatever freely as if you were handling a storage media. UMS mode has less compatibility with online music services, but we can transfer DRM-protected WMA files via iriver plus or Windows Media Player 10. Players working on UMS mode are compatible with a number of operating systems that support USB storage devices.

H10 5/6GB MTP 2.51 firmware to UMS 2.51

Before start:

  • This guide is only for H10 5GB and 6GB models. There's no UMS firmware released for H10 20GB models.
  • Installing UMS firmware into MTP player and vice versa are not guaranteed by the manufacturer (iRiver). Do it at your own risk.
  • Be sure to charge the battery fully in advance so that the player will not lose the power during the procedure.
  • Do not omit a process. Above all, do not copy a boot loader (BL_H10.rom) and firmware (H10.mi4) file at the same time.
  • This tutorial assumes H10 player to be recognized as "G:" drive by a PC. Replace "G:" in this tutorial to the drive letter with which your player is recognized.
  • Configure the folder option in advance to see hidden folders with Explorer.
  • Procedure

    1. Use the UMS trick and connect the player to a PC with “Emergency Connect” mode. To enter UMS mode with the player off connect player to computer via usb. Disconnect battery for a second or so. Re-connect the battery and press and hold the "o" button and at the same time press the power button. You're now in UMS mode.

    2. Copy the boot loader (BL_H10.rom) into the root folder (G:\) of the player.

    3. Disconnect the player. The player will still boot in MTP mode at this moment.

    4. Do nothing but connect the player without the UMS trick.

    5. After the player is recognized as a MTP device, just disconnect the player. The player will show a message “Firmware Upgrade” and the boot loader will be updated.

    6. Connect the player without the UMS trick because it now works on UMS mode by default.

    7. Enter “G:\System” into the address bar of Explorer to open the hidden folder.

    8. Copy the firmware (H10.mi4) into the folder (“G:\System”).

    9. Disconnect the player. The player will be woking with the UMS firmware. However, you may get an error: “DB Open Error. Connect iriver plus And DB Update”. Don’t worry about this error because a media database generated in MTP mode is not compatible with UMS mode. Use iriver plus or EasyH10 to recover this error.

    Database reconstruction with EasyH10

    1. Connect the player to the PC.

    2. Transfer music files into “G:\Media\Music” folder. If you have already transferred music files when the player was working on MTP mode, you may just move all music files from “G:\Music” folder to “G:\Media\Music” folder.

    3. Run EasyH10. Make sure to use an appropriate UMS model template.

    4. After EasyH10 completes the processing, disconnect and enjoy the H10 2.51 UMS player.


    Windows Media Play synchronize music files to the player:
    1. Connect the player to your computer via USB cable
    2. The computer will find the new hardware and jump a window for choose sync with Windows Media Player, RealPlayer or no action. Double click Windows Media Player.
    3. Choose the music you want to copy the player and add them to the sync list.
    4. start sync. If Windows Media Player ask "Your device's clock must be updated before the device can play protected files that have an expiration date. Do you want Windows Media Player to update the clock? " select cancel.
    5. Wait until all of the sync music to the player.
    6. This is the most important step: enjoy your music:-)

    Copy music to H10 UMS frimware

    The UMS H10 can be used as a removable disk. You can copy music files to the player straight away just like copy normal files to a removable disk. However, like iPod, the player can not add all of the new files to the music library automatically. It need database reconstruction by easyH10 or iRiver plus. (Just like iPod need iTune)

    Friday, November 4, 2005

    诺基亚通用秘籍


    一、*#06#:显示IMEI

      二、*#0000#:显示软件版本

      (部分型号如果不起作用,可按*#型号代码#,如
    *#6110#)
      第一行--软件版本;

      第二行--软件发布日期;
      第三行--手机型号

      三、*#92702689#:显示序列号和IMEI,带滚动菜单
      第一屏表示 - 手机出厂时间:1197(月 月年年)
      第二屏表示 - 串号和IMEI
      第三屏表示 - 购 买时间:1197(月月年年)可以更 改一次
      (但一经输入就不能再作更改, 日期会被永久记录)
      第四屏表示 - 最后修理时间:0000(月 月年年)维修时设置。
      第五屏表示 - 传输用户数据:退出关闭电话,然后返回。
      如果以上工作不正常,并且电话要求您输入一个合法的代码,可试试:
      1).6232OK):显示制造的月和年

      2).7832OK):显示手机购买时间的月和年

      3).7332OK):显示最近维修时间的月和年:0000(月 月年年)维修时设置
      4).9268OK):显示系列号
      5).37832OK):设置购买时间的月和年(警告:只允许做一次)
      6).87267OK):确认传输,与软件更新有关

      四、速率编码

      *3370#*efr#:开启(EFR)全速率编码
      #3370##efr#:关闭全速率编码
      (开启全速增强型编码模式, 可改善话音质量但会耗电)
      *4720#*hra0#:开启(HR)半速率编码
      #4720##hra0#:关闭半速率编码
      (话音质量降低,但可延长电池大概30%左 右使用时间,需网络支持)
      键入这些代码后,会关机重开, 然后才能生效。

      五、SIM卡锁信息
      *#746025625# (= *#sim0clock#):如果SIM卡能被锁,进行检测时键入 该指令后,手机显示"SIM CLOCK STOP ALLOWED" or "SIM CLOCK STOP NOT ALLOWED",这取决于你的SIM卡。
      SIM卡锁信息:包括四种不同的锁
      1).国家锁--锁指定的国家

      2).网络锁--锁指定的网络
      3).供应商锁--锁服务提供商
      4).SIM卡锁--锁指定的SIM

      六、查询手机是否锁频
      首先必须找出设 定手机时必须使用的几个键。其中,连续按*键二次即出现"+";连续按*键三次即出现"p";连续按*键四次即出现"w"。然后,你就可以依次顺序输入相应组合键。
      #pw+1234567890+1#: 查询是否锁国家码
      #pw+1234567890+2#: 查询是否锁网络码

      #pw+1234567890+3#:查询是否锁网络提供者锁定的码
      #pw+1234567890+4#: 查询是否锁SIM

      七、电源按键
      轻触电源键,屏幕将显示情景模式的选单,你可以通过上下键快速地在各个模式中切换。在键盘锁模式 下打开屏幕灯,你曾感受过在夜晚摸黑想打开手机的键盘锁的烦恼吗?其实你可以轻触电源键,这时屏幕和键盘的夜灯将会打开,这样你就可以从容地分辨按键打开 键盘锁了。
      
      八、查看手机状态
      操作指令:#pw+(mastercode)+X#
      (mastercode)是一10位数(没有括号) X是一个14的数, 它显示以上的锁,还不确定何数对应何锁。

      SIM卡不限制信息,意味着你的电 话还没锁。
      1).VIN CHARGER INPUT VOLTAGE 8.4V 0.8A
      
    2).CHRG CTRL CHARGER CONTROL PWM 32Khz
      
    3).XMIC MIC INPUT 60mV - 1V
      
    4).SGND SIGNAL GROUND
      
    5).XEAR EAR OUTPUT 80mV - 1V
      
    6).MBUS 9600 B/S
      
    7).FBUS_RX 9.6 - 230.4 KB/S
      
    8).FBUS_TX 9.6 - 230.4 KB/S
      
    9).L_GND CHARGER / LOGIC GND
      

      九、NOKIA 9000/9000i
       1).显示IMEI号:
    *#06#
      2).显示软件版本号:*#682371158412125# 最新版本在电话信息下面

      3).显示制造星期和年: *#3283#
      4).电话类型: GE8

    IMEI*#06#)的第七八两位号码为产地代码: 10 : 芬兰   20 : 德国   30: 韩国   40 : 北京市   60 : 广东省东莞市