magnesium
magnesium · 共 23 篇文章
Eventually Consistent - Revisited
作者简介:Werner Vogels ,Amazon CTO 这是篇讲述一致性的文章,很有见解,还有待深入研究。 I wrote a first version of this posting on consistency models about a year ago, but I was never happy with it as it was written in haste and the topic is important enough to receive a more thorough treatment. ACM Queue asked me to revise it f…
2009-12-28 14:57 · Distributed System · 评论(0)
MySql驱动连接字符串
mysql官方提供的JDBC Driver,其JAVA类名为:com.mysql.jdbc.Driver mysql JDBC URL格式如下: jdbc:mysql:///... 参数名称 参数说明 缺省值 最低版本要求 user 数据库用户名(用于连接数据库) 所有版本 password 用户密码(用于连接数据库) 所有版本 useUnicode 是否使用Unicode字符集,如果参数characterEncoding设置为gb2312或 gbk,本参数值必须设置为true false 1.1g characterEncoding 当useUnicode设置为true时,指定字符编码。比…
2009-05-07 14:44 · DB · 评论(0)
从头开始学JavaScript(第六天)
第六天学习的内容有: 1.Date类 其中方法有:getMonth(),getDate(),getFullYear(); 2.数组的sort()方法 3.string类 其中的属性有:length 其中的方法有:indexOf(),charAt(),tolowerCase(),toUpperCase() 4.math类 其中的属性有:PI 其中的方法有:round(),floor(),ceiling(),random() 5.this用来把function转化为method 6.JavaScript创建类方式: function Blog(body,date){ this.body =bod…
2009-01-19 17:23 · JavaScript · 评论(0)
从头开始学JavaScript(第五天)
第五天啦。。。 1.form.value 2.一个form中的name属性的值必须唯一 3.正则表达式:/^\d{7}$/ 4.regex.test(正则表达式)方法测试正则表达式,返回的是boolean值 5.“|”在正则表达式中表示“或” 6.innerHTML (*)7.DOM中的节点分为element和text 8.DOM:document-html- 9.nodeValue,nodeType,childNodes,firstChild,lastChild 10.removeChild(),appendChild(),createTextNode() 11.onmouseover,o…
2009-01-18 21:13 · JavaScript · 评论(0)
从头开始学JavaScript(第四天)
life is all about decisions 今天是第四天: 1.检查浏览器是否支持cookie:navigator.cookieEnabled 2.if语句 3.for循环 4.while循环 5.数组用中括号括起来 6.window.onload ===============================317====================
2009-01-17 22:19 · JavaScript · 评论(0)
从头开始学JavaScript(第三天)
今天是学习《head first JavaScript》的第三天 1.setTimeout(time code , time delay) 定时 2.setInteral("" ,time) 循环 3.location.reload() 刷新页面 4.clearInterval(setInterval()) 取消循环 5.document.body.clientHeight document.body.clientWidth 6.document对象代表的是整个网页,也就是body标签中的内容 7.document.getElementById().style.height 不是必须再设定w…
2009-01-16 23:35 · JavaScript · 评论(0)
从头开始学JavaScript(第二天)
今天是第二天,我们来看看学了点什么。 1.JavaScript有3种基本数据类型:1)number 2)boolean 3)text 2.alert boxes only display text, not numbers. So numbers are converted to text behind the scenes before they’re displayed 3.var 4.标识符规则:1)An identifier must be at least one character in length 2)The first character in an identifier …
2009-01-14 23:16 · JavaScript · 评论(0)
从头开始学JavaScript(第一天)
今天开始从头学JavaScript的第一天。学习的主要原因是以前没有完整的学习过JavaScript,所 以现在想系统的学习一下,但最主要还是为学习extjs做准备。我选的书是《Head First JavaScript》,个人觉得这本书非常不错,简单易懂,特别是书上的图片比字还多,这是我最喜 欢的地方。 废话不多说,今天学了以下内容: 1.onblur事件 2.onload事件 3.alt属性 时间也很晚了,今天就学这么多,明天继续。
2009-01-13 23:26 · JavaScript · 评论(0)