csjsias

博客园 首页 新随笔 联系 订阅 管理

2014年11月9日 #

摘要: Servers¶Server interface.class novaclient.v1_1.servers.Server(manager, info, loaded=False)Bases: novaclient.openstack.common.apiclient.base.ResourceHU... 阅读全文
posted @ 2014-11-09 07:33 快乐121 阅读(703) 评论(0) 推荐(0)

摘要: Flavors¶Flavor interface.class novaclient.v1_1.flavors.Flavor(manager, info, loaded=False)Bases: novaclient.openstack.common.apiclient.base.ResourceA ... 阅读全文
posted @ 2014-11-09 07:31 快乐121 阅读(539) 评论(0) 推荐(0)

摘要: ThenovaclientPython APIUsageFirst create a client instance with your credentials:>>> from novaclient.client import Client>>> nova = Client(VERSION, US... 阅读全文
posted @ 2014-11-09 07:28 快乐121 阅读(594) 评论(0) 推荐(0)

2012年11月14日 #

摘要: 为什么需要并发控制?在多用户环境中,在同一时间可能会有多个用户更新相同的记录,这会产生冲突。这就是著名的并发性问题。典型的冲突有:l丢失更新:一个事务的更新覆盖了其它事务的更新结果,就是所谓的更新丢失。例如:用户A把值从6改为2,用户B把值从2改为6,则用户A丢失了他的更新。l脏读:当一个事务读取其它完成一半事务的记录时,就会发生脏读取。例如:用户A,B看到的值都是6,用户B把值改为2,用户A读到的值仍为6。为了解决这些并发带来的问题。 我们需要引入并发控制机制,Nhibernate中可以使用乐观锁和悲观锁来控制数据冲突。乐观锁它如果检测到实体被改变,我们就不能更新它,让我们看一个简单的例子, 阅读全文
posted @ 2012-11-14 17:07 快乐121 阅读(515) 评论(0) 推荐(0)

2012年11月1日 #

摘要: 使用工具 Dtutil.exe这里举一个简单的例子:dtsx包修改密码, dos下命令: dtutil /FILE test.dtsx /Dec 123456 /Encrypt file;test2.dtsx ;2;pwd解释:/FILE test.dtsx 原文件/Dec 123456 原文件密码/Encrypt file;test2.dtsx 加密文件,新的文件名2;pwd 2为保护级别,pwd及新文件密码 阅读全文
posted @ 2012-11-01 15:34 快乐121 阅读(749) 评论(0) 推荐(0)

2012年8月12日 #

摘要: 《Pro ASP.NET MVC 3 Framework》一书中,当说到测试驱动开发时,是这么描述的:If you don’t currently unit test your code, you might find the process awkward and disruptive—moretyping, more testing, more iterations. If you do perform unit tests, you already know what a difference itmakes: fewer bugs, better-designed software, 阅读全文
posted @ 2012-08-12 10:49 快乐121 阅读(157) 评论(0) 推荐(0)

2011年12月3日 #

摘要: DECLARE tables_cursor CURSOR FOR SELECT top 100 name FROM sysobjects WHERE type = 'U' order by name OPEN tables_cursor DECLARE @tablename varchar(30), @quote char(1) SELECT @quote = '' FETCH NEXT FROM tables_cursor INTO @tablename WHILE (@@fetch_status <> -1) BEGIN EXEC ('S 阅读全文
posted @ 2011-12-03 08:15 快乐121 阅读(182) 评论(0) 推荐(0)

摘要: SQL Server script to rebuild all indexes for all tables and all databases对服务器上所有数据库的所有表重建索引。原文地址:http://www.mssqltips.com/sqlservertip/1367/sql-server-script-to-rebuild-all-indexes-for-all-tables-and-all-databases/感谢: Greg RobidouxDECLARE @Database VARCHAR(255) DECLARE @Table VARCHAR(255)DECLARE @cm 阅读全文
posted @ 2011-12-03 08:11 快乐121 阅读(517) 评论(0) 推荐(0)

2008年5月11日 #

摘要: 说到学习资源,英语首先 是要重点提到的一个: * English listening Native British English: http://www.bbc.co.uk/china/ American Busness English: http://cn.englishpod.com/ English as a Second Language Podcast: http://www.eslpod.com/website/index.phpEnglishNews Listening:http://www.iht.com/pages/index.php* dictionary online 阅读全文
posted @ 2008-05-11 11:44 快乐121 阅读(195) 评论(0) 推荐(0)