`
文章列表

html marquee

<marquee behavior="scroll" direction="up" width="100" height="250" scrollamount="2" scrolldelay="10""> Your content goes here<br/> Your content goes here<br/> Your content goes here<br/> Your c ...
1. SQL注入 2. CSRF 3. XSS 4. 后台异常不要显示给用户,这样给黑客跟踪到后台技术及代码结构提供了便利,会大大降低黑客攻击的难度。
   _htmlEncode: function (value){     return $('<div/>').text(value).html(); }
--function to convert ticks to DatetimeOffset if object_id(N'GetTimeFromTicks', N'FN') is null begin execute dbo.sp_executesql @statement = N' CREATE FUNCTION dbo.GetTimeFromTicks(@Ticks BIGINT) RETURNS DATETIME AS BEGIN DECLARE @Days BIGINT DECLARE @DaysBefore1753 BIGINT DECLARE @TimeTic ...
http://www.gallio.org/   download and install
SSL   SSO   WIF   OAuth   Cryptographic nonce   Digest Access Authentication  MD5   Basic Access Authentication  Base64
    http://blog.sqlauthority.com/2011/12/26/sql-server-fix-error-15138-the-database-principal-owns-a-schema-in-the-database-and-cannot-be-dropped/     SELECT s.name FROM sys.schemas s WHERE s.principal_id = USER_ID('mytaxes'); ALTER AUTHORIZATION ON SCHEMA::db_owner TO dbo;   Then it ...
Prepare data: USE AdventureWorks2008 GO CREATE TABLE HumanResources.Employee2 ( EmployeeID int NOT NULL, ManagerID int NULL REFERENCES HumanResources.Employee2(EmployeeID), JobTitle nvarchar(50) NOT NULL, LastName nvarchar(50) NOT NULL, FirstName nvarchar(50) NOT NULL, CONST ...

c#读取文件目录path

    博客分类:
  • .net
      private static string GetFullName() { var current_dir = Path.GetDirectoryName(new Uri(Assembly.GetCallingAssembly().CodeBase).LocalPath); return Path.Combine(current_dir, "Properties\\Resources\\before_migration.bak"); }     ...
To check the current database isolation level, use:   DBCC useroptions     http://www.gavindraper.co.uk/2012/02/18/sql-server-isolation-levels-by-example/ SQL Server Isolation Levels By Example Posted on February 18, 2012 by 
  Introduction Normally, When we request a data for a query(i.e: SELECT), The Database engine fetches the data page(s) from the physical disk and loads into the Buffer Cache called "Physical Read". "Physical Reads" occurrs only when data pages are not there in "Buffer ...
    http://www.mkyong.com/hibernate/inverse-true-example-and-explanation/   A related topic here:   http://kaqi.iteye.com/blog/1345319
直接使用下载的.exe文件 安装总是得到以下错误: “a fatal error occurred during installation 失败的对象初始化...”   使了好多办法,最终采用以下blog中的方法解决:   http://bidn.com/blogs/bretupdegraff/bidn-blog/223/hacking-the-sql-server-2008-r2-adventureworks-installer   MS的软件用起来怎么会这么不顺畅呢?就装这个玩意花了我2个小时,真是郁闷。    
从加入TW的第一天Pair开始就在项目中实践TDD。前一段时间阅读了Kent Beck的<<TDD by Example>>,之后对书中的内容进行了总结 。这次,同事yuheng 给咱们两个项目组以Code Kata的形式进行了一次TDD培训。通过这次实践结合理论的培训,自己进一步加深了对TDD的理解,可谓收获颇丰。   为什么要TDD?TDD有什么优缺点? 优点: 1. TDD可以让设计的接口清晰,更大程度地保证的模块内部的高内聚性和模块间的低耦合性 2. 提高系统的测试覆盖率,避免系统先开发后不可测试的现象。 3. 小步前进,快速反馈。问题: ...
Rubymine的查找正则表达式替换用的java的正则表达式。   如要查找诸如MM/dd/yyyy替换成yyyy/MM/dd   则查找串为: (..)\/(..)\/(....) 替换成:$3/$2/$1/
Global site tag (gtag.js) - Google Analytics