摘要:
这两天在学习Asp.mvc, 学习到了Model这一章节了,使用EF进行数据库连接操作,仿照例子,修改了一下字符串,然后修改在Web.config文件中,大体如下: <connectionStrings> <add name="ApplicationServices" connectionString="data source=.;Integrated S... 阅读全文
阅读排行榜
转: Python WSGI fastcgi
2011-07-28 22:01 by 一一九九, 2403 阅读, 收藏,
摘要:
一、什么是 WSGI 。 在认识 flup 之前,得先认识一下 WSGI 。 WSGI 的全称为: Python Web Server Gateway Interface v1.0 (Python Web 服务器网关接口),它是 Python 应用程序和 WEB 服务器之间的一种借口,更多详细的细节,可以参考 PEP333 。 它的作用,类似于FCGI 或 FASTCGI 之类的协议的作用。 WS... 阅读全文
Convert Object to int
2011-07-14 23:14 by 一一九九, 2376 阅读, 收藏,
摘要:
在调试代码的时候碰到了这样的一行代码: int a = (int)(Object(double)); 此时报错,表明是InvalideCastException。 当时表示很奇怪: 为什么 int a = (int)(doble type)) 能够通过呢? 网上搜了一下,StackOverFlow上有个帖子: http://stackoverflow.com/questions/745172/be... 阅读全文
[wpf]设置Application的ICO
2012-02-03 09:02 by 一一九九, 1467 阅读, 收藏,
摘要:
From: http://stackoverflow.com/questions/2672537/setting-icon-for-wpf-application-vs-08 Assuming you use VS Express and C#. The icon is set in the project properties page. To open it right click on t... 阅读全文
Connection pool
2011-07-31 15:39 by 一一九九, 1412 阅读, 收藏,
摘要:
wikipedia中的解释: 在软件工程中connection pool 是对database connections 的cache, 主要作用是重用对已经建立的数据库请求,提升数据库执行命令的效率。为每一个用户打开和维护一个数据库连接,尤其是对数据驱动的网站来说,成本是非常高并且很浪费资源的。在connection pool 中,当一个连接被创建时就被放到了Pool中,当一个新的请求到达时这个... 阅读全文
Error: does not contain a static 'Main' method suitable for an entry point [wpf]
2012-02-02 19:51 by 一一九九, 1159 阅读, 收藏,
摘要:
在将WPF App默认生成的App.xaml删除后,从其他地方复制添加后,编译出现如下错误: WPF.exe' does not contain a static 'Main' method suitable for an entry point D:\Products\Contract\trunk\Source\Contract\Contract.WPF\CSC 这个不是在... 阅读全文
.net 垃圾回收学习[C#中的stack和Heap]
2011-08-20 18:27 by 一一九九, 849 阅读, 收藏,
摘要:
From: http://www.c-sharpcorner.com/UploadFile/rmcochran/csharp_memory01122006130034PM/csharp_memory.aspx翻译加学习。 虽然在.net framework下我们不需要主动的关心内存管理和垃圾回收,但是我们仍然需要了解内存管理和垃圾回收以便更好的优化我们的application. 当然,对内存管理如何工作有关基本的了解有助于我们理解我们写的程序中变量的行为。 .net framework使用stack和heap两种结构在内存中存储指令和数据。Stack vs Heap: what’s the d 阅读全文
The property 'Content' is set more than once.
2011-12-25 10:49 by 一一九九, 765 阅读, 收藏,
摘要:
当采用如下的一段代码的时候,会出现报错“ Error 1 The property 'Content' is set more than once. ” 1: <Label Content="First Name" Target="{Binding ElementName=firstname}" Grid.Column="0" Grid.Row="0... 阅读全文
Finalize 和Dispose方式的理解
2011-09-12 22:05 by 一一九九, 733 阅读, 收藏,
摘要:
由于.net中存在托管资源和非托管资源的释放,两种不同类型的资源释放的方式是不一样的,而由于.net释放非托管资源的时候,如果是在析构函数中释放的话,会导致GC的双倍访问,资源的生命周期会延长,系统内存占用也会增多,而如果用户手动的释放非托管资源的时候,此时GC不需要在访问析构函数,也就不需要将对象的生命周期提升了,此时,出现的一个问题是:存在两种不同的释放资源的方式,如果在这两种方式中... 阅读全文
[Specification by Example][ch2 key process patterns]-[读书笔记]
2012-01-09 15:10 by 一一九九, 718 阅读, 收藏,
摘要:
Specification by Example 是由一组过程模式组成的,这组过程模式能够应对软件产品中的变化,以便有效的研发出来正确的产品。 主要过程和关系如下图所示: Just in time: Successful teams don’t implement the entrie sequence at one time or for all the specification... 阅读全文
浙公网安备 33010602011771号