Today is a gift!

 

2011年7月7日

SQL Max Min

摘要: SELECT MAX(column_name) FROM table_nameLinq to sql:var intMaxPosition = (from maxPos in photos.classNotesPhotos select maxPos.position).Max(); var tb = (from t in tbName orderby t.ID descending select t).FirstOrDefault() 阅读全文

posted @ 2011-07-07 09:52 Biao Wang 阅读(162) 评论(0) 推荐(0)

ASP.NET enable the details of this specific error message to be viewable on remote machines

摘要: Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have it 阅读全文

posted @ 2011-07-07 09:31 Biao Wang 阅读(1161) 评论(1) 推荐(0)

2011年4月29日

Splitter控件和Lable autoFill

摘要: Lable Auto fill: AutoEllipsis = true; AutoSize =false; Dock = top; Anchor: top, left;Splitter:左右型: 1. 画 Left Panel, 设置 Dock= Left 2. 在 Left Panel,外边画 Splitter1 Dock= Left 3. 另外画 Right Panel 设置 Dock=Fill同样,上下型的: 1. 画 Top Panel, 设置 Dock= Top 2. 在 Top Panel,外边画 Splitter1 Dock= Top 3. 另外画 Bottom Panel 设 阅读全文

posted @ 2011-04-29 15:35 Biao Wang 阅读(175) 评论(0) 推荐(0)

Tencent Intern Interview

摘要: ?地址运算:int a[] = {1,2,3,4,5,6,7,8,9};short *p = (short *)(a + 2);short *q = (short *)a;a[p -q] ??求两个集合的交集(两个集合 要排序):?求26个英文字母的所有子集? 单链表逆转?new 和malloc, delete和free的区别 阅读全文

posted @ 2011-04-29 15:31 Biao Wang 阅读(137) 评论(0) 推荐(0)

TopCoder Single Round Matches -- 3(1100 point)

摘要: Problem StatementNOTE: There are images in the examples section of this problem statement that help describe the problem. Please view the problem statement in the HTML window to view them.Given a picture composed entirely of horizontal and vertical line segments, calculate the minimum number of time 阅读全文

posted @ 2011-04-29 15:24 Biao Wang 阅读(318) 评论(0) 推荐(0)

TopCoder Single Round Matches -- 2(550 point)

摘要: Problem StatementIn most states, gamblers can choose from a wide variety of different lottery games. The rules of a lottery are defined by two integers (choices and blanks) and two boolean variables (sorted and unique). choices represents the highest valid number that you may use on your lottery tic 阅读全文

posted @ 2011-04-29 15:23 Biao Wang 阅读(261) 评论(0) 推荐(0)

TopCoder Single Round Matches -- 1(300 point)

摘要: Problem Statement Let's say you have a binary string such as the following: 011100011 One way to encrypt this string is to add to each digit the sum of its adjacent digits. For example, the above string would become: 123210122 In particular, if P is the original string, and Q is the encrypted st 阅读全文

posted @ 2011-04-29 15:20 Biao Wang 阅读(134) 评论(0) 推荐(0)

Google, a Giant in Mobile Search, Seeks New Ways to Make It Pay

摘要: In early 2008, in the early days of the iPhone era, Google engineers began noticing something unusual in the search engine’s logs. Owners of these new phones were doing a huge number of Web searches. But there was a problem: searching on a phone was less than ideal. It was hard to type on small scre 阅读全文

posted @ 2011-04-29 15:12 Biao Wang 阅读(189) 评论(0) 推荐(0)

SQLServer Error:18456

摘要: SQLServer Error: 18456 解决方法:问题:用sa用户登陆SQLServer是出现 错误18456解决方案:1. 检查sa用户是否启用 启用方法: --展开"SQL Server组" --安全性 --登录,右键单击'sa'-'属性' --状态, 把登陆属性设置为启用,然后确定2.用windows身份认证登陆SQL3.在企业管理器中 --展开"SQL Server组",鼠标右键点击SQL Server服务器的名称 --选择"属性" --再选择"安全性"选项卡 --在& 阅读全文

posted @ 2011-04-29 15:10 Biao Wang 阅读(525) 评论(0) 推荐(0)

2010年12月15日

Stay hungry, stay foolish

摘要: http://www.tudou.com/v/_KvbKK6p3W0英文原文(来自斯坦福大学网站)http://news-service.stanford.edu/news/2005...obs-061505.htmlStanford Report, June 14, 2005 'You've got to find what you love,' Jobs saysPrintable VersionThis is the text of the Commencement address by Steve Jobs, CEO of Apple Computer and of Pixar Ani 阅读全文

posted @ 2010-12-15 21:06 Biao Wang 阅读(181) 评论(0) 推荐(0)

导航