01 2013 档案

计算两GPS坐标的实际距离
摘要: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 阅读全文

posted @ 2013-01-22 11:10 一个石头 阅读(864) 评论(0) 推荐(0) 编辑

修改host文件实现自定义域名和iis站点本地调试
摘要:自定义域名: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 的回复 阅读全文

posted @ 2013-01-07 20:41 一个石头 阅读(2997) 评论(1) 推荐(2) 编辑

sql 批量插入数据
摘要:declare @index intset @index = 0while(@index<1000000)begin insert into [table]([name]) values(FLOOR(RAND(ABS(CHECKSUM(NEWID())))*1000)) set @index = @index +1end 阅读全文

posted @ 2013-01-02 12:08 一个石头 阅读(191) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示