周末下了两天雪,然后星期日晚上一场雨把雪全部化没了
星期一下了一天雨
今天出了太阳可仍然在下雨,可又暖和的像春天
奇怪的温哥华天气
周末下了两天雪,然后星期日晚上一场雨把雪全部化没了
星期一下了一天雨
今天出了太阳可仍然在下雨,可又暖和的像春天
奇怪的温哥华天气
拍SmallVillie《超人前传》,虽然没看过。
一大早就开始不断的过来大卡车,卸货,装设备。到现在好像还没开始拍,也许是拍夜景。
今天下了班就直奔FedEx去取IPod Touch, 还是从中国寄过来的。
回家后沐浴更衣,洗了三遍手才开始打开itouch的包装,就一个字 “简洁”,几乎没什么附件送的。Apple也够抠得了
确实挺漂亮的,开机连上ITunes,我就不明白ipod为什么就不能直接拷贝,非得要用ITunes。
传了几个G单曲,效果还可以,就是有点低音不足,然后连上WIFI, 用了点时间适应它的输入法。
网页打开速度有点慢,不支持Flash, 不支持Javascript,所以有的网页打开会有问题。
正面的挺玻璃面挺结实的,就是背面已经沾满了手指印,得赶快去掏个Case,要不然枉费我把自己名字刻在背面了
总体来说不错,我的Iriver终于可以光荣下岗了,退居二线当Audio Book了
现在就是等第二个Touch了
今天终于对vista忍无可忍, 重装回了XP
几个月的Vista使用中, 简直真是痛苦的经历。
1. UAC简直没用,无论什么程序都弹出对话框
2. 文件操作简直就是受罪,慢的要死,即使关闭那个什么远程压缩,依然缓慢,尤其是IDE和SATA之间传递文件
3. 系统性能奇差,CPU和内存占用率永远很高。
4. 软件不兼容,驱动不兼容,问题多多
5. 经常无缘无故发生程序不响应,自动重起
MS用五年时间,生产出了这么个失败的产品,感觉就是为了市场,仓促推出的,太多问题都只有
期待SP1,甚至SP2解决了,也许Vista根本就是一个过渡性产品。
Page Directives
@Page
@Assembly
@Import
@Control
@Implements
@Master
@MasterType
@OutputCache
@PreviousPageType
@Reference
@Register
Page Events
PreInit
Init
InitComplete
PreLoad
Load
LoadComplete
PreRender
PreRenderComplete
Unload
Asp.net Application Folders
\App_Code
\App_Data
\App_Themes
\App_GlobalResources
\App_LocalResources
\App_WebReferences
\App_Browsers
Global.asax events
Application_Start
Session_Start
Application_BeginRequest
Application_AuthenticateRequest
Application_Error
Session_End
Application_End
Working with Javascript
1. using control’s ID
2. using Page.ClientScript.RegisterClientScriptBlock
3. using Page.ClientScript.RegisterStartupScript
4. using Page.ClientScript.RegisterClientScriptInclude
Hot Key
using: AccessKey = ” ” AssociatedControlID = ” ”
IE already uses Alt+F, E, V, I, O, T, A, W, H
Web Server Controls
Label, Literal, TextBox, Button, LinkButton, ImageButton, HyperLink,
DropDownList, ListBox, CheckBox, CheckBoxList, RadioButton, RadioButtonList
Image, Table, Calendar, AdRotator, XML, Panel, PlaceHolder
2.0: BulletedList, HiddenField, FileUpload, MultiView/View, Wizard, ImageMap
Validation Controls
RequiredFieldValidator
CompareValidator
RangeValidator
RegularExpressionValidator
CustomVlidator
ValidationSummary
Data Source Controls
SqlDataSource, ObjectDataSource, XmlDataSource, SiteMapDataSource
Bound List Controls
GridView, DetailsView, FormView
DataBinder Syntax
<%# Container.DataItem(”Name”) %>
<%# Eval(”Name”) %>
<%# Bind(”Name”) %>
Check out this http://www.cybertiger.ca/blog/music
馋涎于ituner和iphone的UI已久,终于找到一个free的flash控件改造了一下。
最主要是它支持外部xml, 其他功能比较简单,以后有时间再增强了。
Enjoy It.
Application Structure
namespace ConsoleApplication1
{
class Class1
{
[STAThread]
static void Main(string[] args)
{ … … }
}
}
Block
{ … … ; … … ; }
Comment
/* … … */
// … …
/// … …
Variables
sbyte, byte, short, ushort, int, uint, long, ulong
float, double, decimal
char, bool, string
Escape
\’ , \” , \\ , \0 , \a , \b . \f , \n , \r , \t , \v
or use @”… …”
Mathematical Operators
+, -, *, /, %, ++, –
Assignment Operators
=, +=, -=, *=, /=, %=
Boolean Logic
==, !=, <, >, <=, >=, !, &, |, ^, &&, ||
Bitwise Operators
&, |, >>, <<
Boolean Assignment Operators
&=, |=, ^=, >>=, <<=
Goto Statement
goto myLabel;
myLabel: … …
Ternary Operator
(condition) ? resultiftrue : resultiffalse
IF Statemt
if ( … ) { … … } else { … … }
Switch Statemt
switch ( … )
{
case val1: … …; break;
case val2: … …; break;
default: … …; break;
}
Loops Statemt
do { … … } while ( … );
while ( … ) { … … }
for ( initialization; condition; operation ) { … … }
foreach (type name in array) { … … }
interrupting loops: break, continue, goto, return
Type Conversion
Convert.ToBoolean/ToByte/ToChar/
ToDecimal/ToDouble/ToInt16/ToInt32/ToInt64/
ToSByte/ToSingle/ToString/ToUInt16/ToUInt32/ToUInt64(val)
or use (Type)val
Enumerations
enum typeName : underlyingType { val1, val2, valn }
typeName varName;
varName = typeName.value;
Structs
struct structName
{
accessibility type name;
}
Arrays
type[] name = {, , , };
name[i] = value;
type[, , ,] name = {{, , }, {, , } … …};
name[i, j] = value;
Strings
string.ToCharArray();
string.ToLower/ToUpper();
string.Trim/TrimStart/TrimEnd()
string.PadLeft/PadRight(desiredLength);
string.Split(separator);
Debug
try { … … }
catch ( exceptionType e) { … … }
finally { … … }
Paul Potts,一个普通的手机销售员,在Britain’s got talent选秀中可以看出他是多么的自卑,甚至连评委都有些看不起他,但当他在音乐响起的两分钟里,却另在场所有人都为之震撼,甚至连评委都流下了眼泪。
我开始跟大多数人的感觉一样,认为他只是一个样貌普通又缺乏自信的人,但他唱到第二句就已经打动我了。他对于声音的控制真的很专业,一点不能相信他没有受过任何专业训练。看完之后才真正知道什么是talent。
相比国内这类节目,真的希望他们能选出真正具有天赋的人, not just only a beautiful face with nothing.