2012 年文章归档
共 42 篇文章
高德map api用例
可实现右键点位 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Hello, world</title> <style type="text/css"> html { he…
2012-11-23 15:50
google map api用列
支持标记拖动,拖动记录经纬度,可通过地址信息获取经纬度。 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=gbk"/> <title>Google Maps JavaScript API Example<…
2012-11-23 15:45
工作范围说明书与需求说明书
在做项目的过程中,经常在说工作范围说明书与需求说明书,但是这两者的区别与作用是什么呢? 首先,工作范围说明书简单地说,就是对项目干系人有约束作用的、为了说明项目工作范围的说明文件。项目工作的范围就是指为了成功达到项目的目标,项目所规定要做的事项。确定项目工作的范围,就是定义项目管理的工作边界,确定项目的目标和可交付成果。 其次,工作范围说明书说明的内容不仅仅是业务需求,而是包含了项目管理等的工作需求、业务需求、实施需求等的信息。<wbr><wbr><wbr></wbr></wbr></wbr> <wbr><wbr><wbr>我们来看如下的一个项目过程图:</wbr></wbr></wbr> …
2012-10-16 14:49
iTunes for Windows 64bit 下载
iTunes 10.7 for Windows 64 http://support.apple.com/kb/DL1577
2012-10-15 12:33
解决bootStrap与goole map api冲突问题
bootStrap与goole map api会有冲突,造成ie、friefox浏览器地图无法显示,google Chrome浏览器正常,冲突原因为在bootStrap.css文件中的 img样式, 如: img { height: auto; max-width: 100%; vertical-align: middle; border: 0; -ms-interpolation-mode: bicubic; } 去除或者注释此样式即可解决
2012-09-09 16:33
googleMap api
传入地址获取详细信息 https://maps.google.com/maps/api/geocode/json?address=chaoyango&sensor=true 传入经纬度获取地名信息 https://maps.googleapis.com/maps/api/geocode/json?latlng=39.988350,116.417152&sensor=true 传入起始经纬度(地名) 获取线路 http://maps.google.com/maps/api/directions/json?origin=39.988350,116.417152&destination=39.99…
2012-09-05 16:01
GoogleMaps常用事件(转载)
GMarker的单击,双击以及拖动效果 注意:默认创建的GMarker是无法拖动的,必须在GMarker创建时在GmarkOptions里激活该功能,即将GmarkerOptions的draggable设为true,通常同时设定bouncy和bounceGravity属性改变拖放的效果。 关于双击事件。默认双击行为是双击的位置设为地图中心。可用GMap2.doubleClickZoomEnabled()等方法屏蔽默认的操作。 示例代码: GMarker.prototype.setIndex = function(index) { this.index = index; } var marke…
2012-09-05 15:58
Google Maps API 申请方式
Google Maps API 申请方式 http://www.godeyes.cn/html/2012/02/23/google_earth_12863.html
2012-09-04 17:30
关于 MySQL LEFT JOIN 你可能需要了解的三点
理解深刻,但我敢打赌,这篇文章肯定能让你学会点东西! ON 子句与 WHERE 子句的不同 一种更好地理解带有 WHERE ... IS NULL 子句的复杂匹配条件的简单方法 Matching-Conditions 与 Where-conditions 的不同 关于 “A LEFT JOIN B ON 条件表达式” 的一点提醒 ON条件(“A LEFT JOIN B ON 条件表达式”中的ON)用来决定如何从B表中检索数据行。 如果B表中没有任何一行数据匹配ON的条件,将会额外生成一行所有列为NULL的数据 在匹配阶段WHERE子句的条件都不会被使用。仅在匹配阶段完成以后,WHERE子句条…
2012-08-27 13:35
java获取上一天日期
long currMi = System.currentTimeMillis(); long oneDay = 24 * 60 * 60 * 1000L; long t = currMi-oneDay ; Date d = new Date(t);
2012-07-26 10:56 · java
System.currentTimeMillis() vs. new Date() vs. Calendar.getInstance().getTime()
System.currentTimeMillis() is obviously the most efficient since it does not even create an object, but new Date() is really just a thin wrapper about a long, so it is not far behind. Calendar, on the other hand, is relatively slow and very complex, since it has to deal with the considerably comple…
2012-07-26 10:53 · java
PLSQL Developer V9 注册码
PLSQL Developer V9.0.2.1621 注册码 License Number:999 Password:xs374ca Product Code:46lexxzpthqrjmkhyd5czddfcjh33a9p2z Serial Number:275052
2012-07-19 10:47 · oralce
免安装Oracle客户端使用PLSQL连接Oracle的2种方法
免安装Oracle客户端使用PL/SQL连接Oracle的2种方法 方法一: 大家都知道,用PL/SQL连接Oracle,是需要安装Oracle客户端软件的。有没要想过不安装Oracle客户端直接连接Oracle呢? 其实我一直想这样做,因为这个客户端实在太让人讨厌了!!!不但会安装一个JDK,而且还会把自己放在环境变量的最前面,会造成不小的麻烦。 其实我之前问过很多人的,但是他们都说一定需要安装Oracle客户端的.......直到昨天无意中发现了以下这个方法: 只需要在Oracle下载一个叫Instant Client Package的软件就可以了,这个软件不需要安装,只要解压就可以用了…
2012-06-21 10:02
oracle client tnsnames.ora config
oracle client tnsnames.oraconfig: ORCL01 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 124.193.148.245)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = ORCL01) ) )
2012-06-18 18:32
java 字节数组与16进制转换
public class HexCodec { static final char[] HEX = new char[]{ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; public static String hexEncode(byte[] buffer) { if (buffer.length == 0) { return ""; } int holder = 0; char[] chars = new char[buffer.length * 2]; for (int…
2012-05-15 15:48
DES算法,java实现
/** * NoPadding:为不填充,数据内容8个字节,加密后仍为8个字节 <br> * 默认为:PKCS5Padding 数据内容8个字节,加密后仍为16个字节 <br> */ package net.etongbao.common.utils; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import java.security.spec.InvalidKeySpecExceptio…
2012-05-08 10:22
报文MAC算法java实现
/** * */ package net.etongbao.common.utils; import java.util.Arrays; /** * Mac工具类,采用ECB算法 * * @author Fu Wei * */ public class MacEcbUtils { public static byte[] IV = new byte[8]; public static byte byteXOR(byte src, byte src1) { return (byte) ((src & 0xFF) ^ (src1 & 0xFF)); } public static byte[] …
2012-05-08 10:20
计算报文长度,两个字节表示
方法1 /** * 计算报文长度,两字节报文长度(高位在前) * * @param len * @return */ public byte[] getByteMessageLen(int len) { byte[] buf = new byte[2]; //取高8位 buf[0] = (byte) (len >> 8); //取低8 buf[1] = (byte) (len & 0xff); return buf; } 方法2 // 获取第一个高位长度 byte first = (byte) (len / 100); // 获取第二个高位长度 byte second = (byte) ((…
2012-05-08 10:07
bcd码转换
public class BcdUtils { /** * 将字符串转换为bcd * * @param value * @param buf */ public static void toBcd(String value, byte[] buf) { int charpos = 0; // char where we start int bufpos = 0; if (value.length() % 2 == 1) { // for odd lengths we encode just the first digit in the first byte buf[0] = (byte) (…
2012-05-08 09:40