use Time::HiRes qw(time);use POSIX qw(strftime);my $t = time;my $date = strftime "%Y%m%d %H:%M:%S", localtime $t;$date .= sprintf ".%03d", ($t-int($t)...
分类:
其他好文 时间:
2014-07-22 22:57:34
阅读次数:
179
#!/usr/bin/env python"""Bootstrap setuptools installationTo use setuptools in your package's setup.py, include thisfile in the same directory and add ...
分类:
编程语言 时间:
2014-07-16 17:38:43
阅读次数:
309
There are proven psychological principles to user interfaces that work.Whether you have a team of design experts or are just building with programmer art, you can use these principles to make your gam...
分类:
其他好文 时间:
2014-07-16 16:33:00
阅读次数:
243
在WEB开发时,经常需要依据数据库表中的字段建立相应的输入控件,来获取输入的数据。每次都需要按字段来敲,显然太低效,而且容易出错。这里提供一个SQL脚本生成相应输入控件的方法。
USE DBDemo
DECLARE @TEMP_TABLE_NAME NVARCHAR(512)
DECLARE @WIDTH NVARCHAR(50)
SET @TEMP_TABLE_NAME='Stuff'
SE...
分类:
数据库 时间:
2014-07-16 16:22:22
阅读次数:
344
Search and Replace - Multiple Files
Searching
To open the search panel for files, press Ctrl
+ Shift +
F. You can use thekeyboard to control some search panel options and search actions:
...
分类:
其他好文 时间:
2014-07-16 16:17:14
阅读次数:
212
Size of Data TypesAlways use sizeof() to get the size of types(sizeof(char), sizeof(short), sizeof(int)...)Do not depend on the order of evaluation in...
分类:
其他好文 时间:
2014-07-16 15:51:58
阅读次数:
191
Culture Names [C#]This example shows how to get all culture names in the .NET Framework. Use static methodCultureInfo.GetCultures. To get associated ...
分类:
其他好文 时间:
2014-07-16 15:25:54
阅读次数:
228
1,修改迁移路径
USE master
GO
ALTER DATABASE 数据库名 --主数据
MODIFY FILE(NAME='数据库名', FILENAME='F:\DataBase\数据库名.mdf');
GO
ALTER DATABASE 数据库名 --日志数据
MODIFY FILE(NAME='数据库名_log', FILENAME='F:\DataBase\数据...
分类:
数据库 时间:
2014-07-16 14:39:54
阅读次数:
229
最近在搞在SQL 2005安装数据库镜像,中间遇到不少的错误,在此归纳总结,以方便有需要的朋友参考。 直接上脚本,主机部分:---修改数据库为完整恢复模式USE master;ALTER DATABASE CZTestSET RECOVERY FULL;--------创建证书USE master....
分类:
数据库 时间:
2014-07-16 13:53:49
阅读次数:
283
Arbitrage
Problem Description
Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, ...
分类:
其他好文 时间:
2014-07-16 10:05:49
阅读次数:
260