摘要:javascript:function toRadians(degree) {return degree * Math.PI / 180;}function distance(latitude1, longitude1, latitude2, longitude2) {// R is the radius of the earth in kilometersvar R = 6371;var deltaLatitude = toRadians(latitude2-latitude1);var deltaLongitude = toRadians(longitude2-longitude1);la
阅读全文
摘要:自定义域名:myhost.comwindows版本:win7iis版本:iis7.xvs版本:vs2010现在开始动手设置了:一、修改host文件在系统盘中的如下路径C:\WINDOWS\system32\drivers\etc去掉只读权限,使用记事本打开,在最后一行添加:127.0.0.1 myhost.com保存,关闭。二、测试自定义域名方法1、开始,运行,输入cmd,打开cmd后输入ping myhost.com 回车C:\Users\xxx>ping myhost.com正在 myohost.com [127.0.0.1] 具有 32 字节的数据:来自 127.0.0.1 的回复
阅读全文
摘要:declare @index intset @index = 0while(@index<1000000)begin insert into [table]([name]) values(FLOOR(RAND(ABS(CHECKSUM(NEWID())))*1000)) set @index = @index +1end
阅读全文