Sends for the fellow dear visitors:welcome to dongpad!


 Welcome to DongPad!

 msn


<< < | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | > >> 预览模式: 普通 | 列表

C#对XML排序

本文介绍如何对xml排序。

参考文献:孟宪会:使用XPathExpression类对XML进行排序

查看全部...

Tags: DongPad

分类:C# | 固定链接 |评论: 0| 引用: 0 | 查看次数: 1984 | 返回顶部

Silverlight Simple Animation

This Article is Published by Live Writer。
Original address: Silverlight Simple Animation

This post is one of series on Silverlight. In this article the focus is on a technique that uses a timer to produce simple animations. I will follow this post with at least one additional article on Silverlight animation.

查看全部...

Tags: DongPad

分类:C# | 固定链接 |评论: 0| 引用: 0 | 查看次数: 1027 | 返回顶部

Expression Blend 3 Preview

This article is mainly talk about some of the highlights of Blend 3,included the interactivity without code;seeing is believing with sample data;support the design files by Photoshop;collarboration powerd by TFS;intellisense in the XAMl editor etc!
Enjoy by download the preview here,namaste!

查看全部...

Tags: DongPad

分类:C# | 固定链接 |评论: 0| 引用: 0 | 查看次数: 1243 | 返回顶部

float,double,decimal

This Article is Published by Live Writer。

浮点型

Name

CTS Type

DeSCRIPTion

Significant Figures

Range (approximate)

float

System.Single

32-bit single-precision floating point

7

±1.5 × 10−45 to ±3.4 × 1038

double

System.Double

64-bit double-precision floating point

15/16

±5.0 × 10 −324 to ±1.7 × 10308

decimal类型用来表示高精度的浮点数

Name

CTS Type

DeSCRIPTion

Significant Figures

Range (approximate)

decimal

System.Decimal

128-bit high precision decimal notation

28

±1.0 × 10−28 to ±7.9 × 1028

Tags: DongPad

分类:C# | 固定链接 |评论: 0| 引用: 0 | 查看次数: 866 | 返回顶部

无法调试aspx文件的解决方法

This Article is Published by Live Writer。

windows 2008+VS2008+NOD32无法调试aspx文件的解决方法。

删除C:\Windows\System32\drivers\etc\hosts里下面一行注释掉就没问题了。
# ::1             localhost

这一行有什么作用呢?下面的内容出自维基百科:

在计算机网络中,localhost(意为“这台计算机”)是给回路网络接口的一个标准主机名。这个名称也是一个保留域名(RFC 2606) (参见.localhost),为了避免同狭义定义主机名混淆而单独列出。

在不使用计算机的主机名称的地方指定为localhost。[1]例如,将web服务器上安装的web浏览器指向http://localhost,将会显示运行这个浏览器的计算机上所服务的网站的主页,但是只有当web服务器配置至服务回路接口。

localhost always translates to the loopback IP address 127.0.0.1 in IPv4, or ::1 in IPv6 (see below).[2]

Communicating with the loopback interface in an identical manner as with a remote computer, but bypassing the local network interface hardware, is useful for the purposes of testing software. Connecting to locally hosted network services (such as game servers) or for other inter-process communications can be performed through localhost addresses in a highly efficient manner.

For example, a common basic test of the TCP/IP protocol stack on a computer is to use the ‘ping’ command at the operating system’s command line prompt:

ping localhost

IETF document “Special-Use IPv4 Addresses” (RFC 3330) describes the IPv4 address block 127.0.0.0/8 as being reserved for loopback. It is therefore excluded from assignment by a Regional Internet Registry or IANA.

For IPv4 communications, the virtual loopback interface of a computer system is normally assigned the address ‘127.0.0.1′ with subnetwork mask ‘255.0.0.0′. Depending on the specific operating system in use (notably in Linux), and the routing mechanisms installed, this often populates the routing table of the local system with an entry so that packets destined to any address from the ‘127.0.0.0/8′ block would be routed internally to the network loopback device.

In IPv6, on the other hand, the loopback routing prefix ::1/128 consists of only one address ::1 (i.e., 0:0:0:0:0:0:0:1, the address with a one at its least significant bit and zero otherwise) is explicitly defined as an automatic loopback address (RFC 4291), though additional addresses may be assigned to the loopback interface by the host administrator.

Any IP datagram with a source or destination address set to a localhost address must not appear outside of a computing system, or be routed by any routing device. Packets received on an interface with destination address of ‘localhost’ must be dropped.

One notable exception to the use of the 127/8 network addresses is their use in Multiprotocol Label Switching (MPLS) traceroute error detection techniques (RFC 4379) in which their property of not being routable provides a convenient means to avoid delivery of faulty packet to end users.

Tags: DongPad

分类:C# | 固定链接 |评论: 0| 引用: 0 | 查看次数: 1239 | 返回顶部

C# Evolution

This Article is Published by Live Writer。
From Codebender
  • C# 1.0: Managed Code
  • C# 2.0: Generics
  • C# 3.0: Language Integrated Query
  • C# 4.0: Dynamic Programming

Tags: DongPad

分类:C# | 固定链接 |评论: 0| 引用: 0 | 查看次数: 904 | 返回顶部

The Four Pillars of ASP.NET

This Article is Published by Live Writer。

Paul Litwin posted an interesting article that discusses the four pillars of ASP.NET (Web Forms, MVC, AJAX, and Dynamic Data) to his blog. He provides a good overview and comparison of these different approaches to building ASP.NET applications. According to the article, although Web Forms will always be an important Microsoft technology for building web applications, ASP.NET is no longer just Web Forms. And, this is a good thing :)

You can read his blog entry here:

http://weblogs.asp.net/paullitwin/archive/2009/03/30/the-four-pillars-of-asp-net.aspx

Tags: DongPad

分类:C# | 固定链接 |评论: 0| 引用: 0 | 查看次数: 864 | 返回顶部

Remeber a few words ~(7)

This Article is Published by Live Writer。

1.pillar  ['pilə]   n. 柱子 vt. 用柱支持

He had been the pillar of the club all his life.

他一生都是这个俱乐部的台柱。

2.burst  [bə:st]   n. 破裂,阵,爆发 v. 爆裂,突发

The police burst through the door. 警察破门而入。

3.dispose  [dis'pəuz]   v. 处理,处置,销毁

I must dispose of the trouble. 我必须摆脱麻烦。

He doesn't know how to dispose of his spare time.他不知道怎样安排业余时间。

4.blast  [blɑ:st]   n. 爆破,冲击波,一阵,汽笛声 v. 爆破,炸掉

Rock music blasted full from the parlor. 摇滚乐声震屋宇,从客厅传来。

5.consume  [kən'sju:m]   v. 消耗,消费,饮食;毁灭;消磨;枯萎

Each year Americans consume a high percentage of the world's energy. 每年美国人都消耗掉世界能源的很大比例

6.split  [split]   n. 劈开,裂片,裂口 adj. 分散的 v. 分离,分开,劈开

It's boring here let's split. 这儿没意思--咱们走吧。

7.spit  [spit]   n. 唾液,唾吐,小雨 v. 唾吐,吐出,降小雨

The boys were spitting out of the train window. 那些男孩子向火车窗外吐口水。

8.spill  [spil]   n. 溢出,流 v. 溢出,洒,使...流出

Don't jog me, or you'll make me spill something! 别碰我, 不然我就把东西弄洒了

9.slip  [slip]   n. 滑,错误,下跌 v. 滑倒,犯错,减退

The ship slipped into the harbour at night. 那艘船夜里悄悄开进了港口。

10.slide  [slaid]   n. 滑,幻灯片,雪崩 v. 使滑,滑,跌落

House values may begin to slide. 房价可能开始逐渐下降了。

Tags: DongPad

分类:Study | 固定链接 |评论: 0| 引用: 0 | 查看次数: 748 | 返回顶部

一丝浅笑

This Article is Published by Live Writer。

不要迷恋哥,哥只是个传说...

Tags: DongPad

分类:Life | 固定链接 |评论: 0| 引用: 0 | 查看次数: 794 | 返回顶部

逻辑推理

This Article is Published by Live Writer。

1、你让工人为你工作7天,给工人的回报是一根金条。金条平分成相连的7段
,你必须在每天结束时给他们一段金条,如果只许你两次把金条弄断,你如何给你
的工人付费?
答:把金条从它的一段尾、三段尾弄断,即分成了相连的一段,相连的二段、相连的四段。第一天给工人一段,第二天给工人二段的,要回哪个一段的,第三天再把这个一段的给工人,第四天给工人四段的,要回一段三段的。依次类摊。

2、请把一盒蛋糕切成8份,分给8个人,但蛋糕盒里还必须留有一份。

答:把切成的8份蛋糕先拿出7份分给7人,剩下的1份连蛋糕盒一起分
给第8个人.

3、小明一家过一座桥,过桥时是黑夜,所以必须有灯。现在小明过桥要1秒,
小明的弟弟要3秒,小明的爸爸要6秒,小明的妈妈要8秒,小明的爷爷要12秒。每
次此桥最多可过两人,而过桥的速度依过桥最慢者而定,而且灯在点燃后30秒就会
熄灭。问:小明一家如何过桥?

答:具体到这道题目来说,很多人往往认为应该由小明持灯来来去去,这样最节省时间,但最后却怎么也凑不出解决方案。但是换个思路,我们根据具体情况来决定谁持灯来去,只要稍稍做些变动即可:第一步,小明与弟弟过桥,小明回来,耗时4秒;第二步,小明与爸爸过河,弟弟回来,耗时9秒;第三步,妈妈与爷爷过河,小明回来,耗时13秒;最后,小明与弟弟过河,耗时3秒,总共耗时29秒,多么惊险!

Tags: DongPad

分类:Life | 固定链接 |评论: 0| 引用: 0 | 查看次数: 811 | 返回顶部
<< < | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | > >>