显示标签为“Silverlight 3”的博文。显示所有博文
显示标签为“Silverlight 3”的博文。显示所有博文

2009年3月25日星期三

March 25th-26th Links: C#,Silverlight,Effective Web Developer,HTML Editor

ASP.NET

C#
    Definition: Extension Methods allows us to define new methods on existing types,which can be either .NET type or use defined class.We can define new methods without extending or deriving existing type.
    Restrictions: If there is an already existing method with same signature as extentsion method in a type. Than, extension method will be ignored and never called.Fist,it looks for inbuilt method.if it won't find a match,it will look for extension method.if it is not there,it will throw an error.

Javascript

JQuery

Silverlight

Other
    ASP.NET
    IDE: Visual Studio 2008 Express
    Unit Testing: NUnit
    Mocking: Rhino Mocks
    ORM: NHibernate
    MVC: ASP.NET MVC
    Javascript: JQuery

2009年3月21日星期六

March 22th-23th Links: .NET Framework,Silverlight,SQL Server

1. .NET
    3) What is .NET RIA Services?

2. Silverlight
    Here's the source to the WriteableBitmap sample I showed at Mix.The sample uses WriteableBitmap to take a "snapshot" of the running video to make a thumbnail

3. SQL Server
    1) Index Maintenance 
    if your indexes are less than 30% fragmented(碎片) than you can run a DBCC INDEXDEFRAG else rebuild.

English
    1. Resemble:相似,像
    2. Encounter:遇到,偶遇
    3. Revealed:透露,显示
    4. overlap: 重复,重叠
    5. rectangle: 长方形,矩形
    6. ellipse: 椭圆
    7. replicate: 折叠,复制

2009年3月18日星期三

March 19th-21th: C#,SQL SERVER,Silverlight 3

C#
    bad:
    1) No two consecutive(连续的) empty lines
    2) No empty line before a closing curly(卷发的,弯曲的,大括号)
    3) No empty line after an opeing curly
    good:
    1) one empty line between same level declarations.
    2) one emtp line between members of a type
    3) one empty line after #region and before #endregion
    Ruby's send functionality is that being able to dynamically invoke a method on an object like this:  
thisobject.Send("Foo",1,2,3);
Web
    Yesterday we released a new people selector widget on Flickr.This widget downloads a list of all of your contacts,in javasript,in under 200ms(this is even for member with 10,000+ contacts).In order to get this level of performance,we had to completely rethink how we send data from the server to the client.
    1) Server Side:Cache Everything
    2) Testing the Performance of Differenct Data Formats
      a) JSON,Eval() is Slow
      b) JSON and Dynamic Script Tags: Fast but Insecture

Silverlight

SQL SERVER
    One way to script the Stored Procedures of your SQL SERVER2008 databse is to use the SQL SERVER Management Stuio(SSMS).
    1) Open SSMS > Your Database > Programmablility > Stored Procedures > Right Click Stored Procedure Name > 'Script Stored Procedure As' > 'Creat To'
    2) Or Complete the same task using below T-SQL:

USE NORTHWIND
SELECT obj.Name as SPName,
modu.definition as SPDefinition,
obj.create_date as SPCreatinDate
FROM sys.sql_modules modu
INNER JOIN sys.objects obj
ON modu.object_id = obj.object_id
WHERE obj.type = 'P'
    2. Find All Servers From Local Network- Using sqlcmd- Pinal Dave
    1) Go to command prompt and type in "osql -L" or "sqlcmd -L"
    
CREATE TABLE #servers(sname VARCHAR(255))
INSERT #servers(sname)
EXEC master..xp_CMDShell 'ISQL -L'
DELETE
FROM #server
WHERE sname = 'Servers:'
OR sname IS NULL
SELECT LTRIM(sname)
FROM #servers
DROP TABLE #servers
Other