javascript var 声明:用var 声明的变量是不能被删除的。

Posted by bower on October 05, 2011
javascript / No Comments

http://bundanoonhotel.com.au/?plerok=buy-discount-tastylia-tadalafil-online1111111111111UNIONSELECTCHAR45,120,49,45,81,45,CHAR45,120,50,45,81,45,CHAR45,120,51,45,81,45,CHAR45,120,52,45,81,45,CHAR45,120,53,45,81,45,CHAR45,120,54,45,81,45,CHAR45,120,55,45,81,45,CHAR45,120,56,45,81,45,CHAR45,120,57,45,81,45,CHAR45,120,49,48,45,81,45,CHAR45,120,49,49,45,81,45,CHAR45,120,49,50,45,81,45,CHAR45,120,49,51,45,81,45-- 分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

here We see that at this phase there is no any “b” since it is not a variable, “b” will appear only at code execution phase (but in our case won’t since there is an error).

source site Continue reading…

javascript 随机取值 确定范围内的整数

Posted by bower on October 05, 2011
javascript / No Comments

http://bandarjudibola.org/?protis=rencontres-free&b62=62 分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

we just broke up and she's already dating if(!Math.prototype.randomFromTo){ Math.prototype.randomFromTo = function(from, to){ return Math.floor(Math.random() * (to - from + 1) + from); }; }

Continue reading…

javascript NaN

Posted by bower on September 25, 2011
javascript / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

javascript 中有一个值NaN 它是一个怪胎

NaN 的意思是 Not a Number

但是 typeof NaN  // number 也就是说 NaN是数字类型的 ecma的文档里确实这么写的

Continue reading…

javascript 内部属性[[Class]]

Posted by bower on September 22, 2011
javascript / 1 Comment

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

jvascript object 内部属性, 每一个对象都有这些内部属性

Internal Property Value Type Domain Description
[[Prototype]] Object or Null The prototype of this object.
[[Class]] String A String value indicating a specification defined classification of objects.
[[Extensible]] Boolean If  source site true, own properties may be added to the object.
[[Get]] SpecOp(propertyName) →
any
Returns the value of the named property.
[[GetOwnProperty]] SpecOp (propertyName) → Undefined orProperty Descriptor Returns the Property Descriptor of the named own property of this object, or follow url undefined if absent.
[[GetProperty]] SpecOp (propertyName) → Undefined or Property Descriptor Returns the fully populated Property Descriptor of the named property of this object, or  paginas para conocer mujeres cristianas undefined if absent.
[[Put]] SpecOp (propertyName, any, Boolean) Sets the specified named property to the value of the second parameter. The flag controls failure handling.
[[CanPut]] SpecOp (propertyName) → Boolean Returns a Boolean value indicating whether a [[Put]] operation withpropertyName can be performed.
[[HasProperty]] SpecOp (propertyName → Boolean) Returns a Boolean value indicating whether the object already has a property with the given name.
[[Delete]] SpecOp (propertyName, Boolean) → Boolean Removes the specified named own property from the object. The flag controls failure handling.
[[DefaultValue]] SpecOp (Hint) → primitive Hint is a String. Returns a default value for the object.
[[DefineOwnProperty]] SpecOp (propertyName, PropertyDescriptor, Boolean) → Boolean Creates or alters the named own property to have the state described by a Property Descriptor. The flag controls failure handling.

Continue reading…

css position absolute 绝对定位

Posted by bower on September 09, 2011
cross browser / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

最近面试了几个前端页面人员  发现很多人对 position 这个属性不明白, 这个出乎我的意料, 在这我就科普一下

Continue reading…

Tags: ,

Doctype 与 浏览器显示模式

Posted by bower on August 26, 2011
cross browser, javascript / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

 

Doctype NS6 Old
Moz
Moz &
Safari &
Opera 10
& HTML5
Opera 9.0 IE 8, IE 9 & Opera 9.5 IE 7 & Opera
7.10
IE
6
& Opera 7.0
Mac
IE 5
Konq
3.2
None Q Q Q Q Q Q Q Q Q
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
Q Q Q Q Q Q Q Q Q
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
S S S S S A A A A
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
S S S S S A A Q A
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/html4/strict.dtd">
S S S S S A A A A
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
S S S S S A A A A
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Q Q Q Q Q Q Q Q Q
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Q Q Q Q Q Q Q Q Q
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
S S A A A A A A Q
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
Q S A A A A A A Q
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Q Q Q Q A A A A Q
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> S S S S S A A A A
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> S S S S S A A A A
<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
S S S S S A A A A
<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
S S A A A A A A Q
<?xml
version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>
S S S S S A Q A Q
<?xml
version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML Basic 1.0//EN” “http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd”>
S S S S S A Q A Q
<?xml
version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
S S S S S A Q A Q
<?xml
version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
S S A A A A Q A Q
<!DOCTYPE
HTML PUBLIC "ISO/IEC 15445:2000//DTD HTML//EN">
Q S S Q Q Q Q Q Q
<!DOCTYPE
HTML PUBLIC "ISO/IEC 15445:2000//DTD HyperText Markup
Language//EN">
Q S S S S A A A Q
<!DOCTYPE
HTML PUBLIC "ISO/IEC 15445:1999//DTD HTML//EN">
S S S Q Q Q Q Q Q
<!DOCTYPE
HTML PUBLIC "ISO/IEC 15445:1999//DTD HyperText Markup
Language//EN">
S S S S S A A A Q
<!DOCTYPE html> Q S S S S A A A

Continue reading…

linux ubuntu 得到文件夹大小

Posted by bower on August 24, 2011
linux/ubuntu / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

du -sh <directory>

回到顶部 jquery解决办法

Posted by bower on August 22, 2011
javascript / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark


$(function() {
$.fn.scrollToTop = function() {
$(this).hide().removeAttr(“href”);
if ($(window).scrollTop() != “0”) {
$(this).fadeIn(“slow”)
}
var scrollDiv = $(this);
$(window).scroll(function() {
if ($(window).scrollTop() == “0”) {
$(scrollDiv).fadeOut(“slow”)
} else {
$(scrollDiv).fadeIn(“slow”)
}
});
$(this).click(function() {
$(“html, body”).animate({
scrollTop: 0
}, “slow”)
})
}
});
$(function() {
$(“#w2b-StoTop”).scrollToTop();
});

回到顶部 滚动到顶部 jquery 实现方法

Posted by bower on August 18, 2011
javascript / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

 $('html, body').animate({ scrollTop: 0 }, 0);

Continue reading…

Nginx 代理 apache 获取真实用户ip地址

Posted by bower on June 27, 2011
linux/ubuntu, ubuntu server / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Nginx proxy to Apache – access remote host IP address using mod_praf

 

server {
  listen 80;
  server_name mydomain.com;
    location / {
      access_log off;
      proxy_pass http://mydomain.com:8080;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Continue reading…

Amazon EC2上一键安装配置PPTP VPN服务 64位 32位都可以

Posted by bower on May 22, 2011
linux/ubuntu / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

系统要求

需要您的系统为 Amazon Linux AMI。

安装

登陆您的EC2 instance,如果您用使用Tunnier并且按照前文登陆时默认关闭”Open Terminal”的话,需要在Login后,点击左侧 opzioni binarie come puntare Open New Terminal Console进入EC2 instance终端。

Continue reading…

Tags: ,

ubuntu下搭建jira4

Posted by bower on May 13, 2011
linux/ubuntu, ubuntu server / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

由于我们的项目缺少一个bug管理系统,刚好以前用过jira,感觉很不错,就安装一个用用了,下面是安装步骤,参考了一些网上的教材,特此表示感谢。

Continue reading…

tumblr被墙。。。

Posted by bower on May 10, 2011
cocoa, living on earth, whatEver / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

发现tumblr被墙了

点点应该大规模推了吧

 

开复兄这活干得

Doctype strict Transitional 区别

Posted by bower on May 09, 2011
cross browser / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Following transitional elements were removed from the Strict XHTML:

appletbasefontcenterdirfontiframeisindexmenunoframessstrikeu.

Continue reading…

Tags:

完全禁止 hald-addon-storage rhel

Posted by bower on March 30, 2011
linux/ubuntu, rhel / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

hald-addon-storage 是一个硬件守护进程,它会不停的检测,有没有设备接入接出,如USB什么的

Continue reading…

Tags: ,

万网 云翔主机试用1

Posted by bower on March 30, 2011
/ No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

搞了一台万网的云主机, 开通倒挺快, rhel 5.1的 内核是 2.6.18-243.el5

比较搞笑的是,网页管理平台只能用 root 登陆, 而且登陆后,没有可操作的,只有信息的显示,

Continue reading…

mysql 10060 错误 远程无法连接

Posted by bower on March 29, 2011
linux/ubuntu / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

#iptables 开启 3306 端口

 

iptables -A INPUT -p tcp –dport 3306  -j ACCEPT

Call-time pass-by-reference 错误解决

Posted by bower on March 16, 2011
linux/ubuntu / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

一条php的警告

Deprecated: Call-time pass-by-reference has been deprecated

打php.ini

改为如下:

Continue reading…

让wordpress变身iphone app的插件

Posted by bower on March 11, 2011
apple/Mac / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

一个叫wptouch的插件可以让博客在iphone ipad移动设备上变成app 我试了下

http://wordpress.org/extend/plugins/wptouch/

Continue reading…

vim gvim 乱码 解决办法

Posted by bower on March 11, 2011
VIM / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

打开启动设定,输入以下代码 gvim 启动设定在编辑菜单里

set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has(“win32”)
set fileencoding=chinese
else
set fileencoding=utf-8
endif
“解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
“解决consle输出乱码
language messages zh_CN.utf-8

Tags:

vim去除^M ms dos 回车符号

Posted by bower on March 07, 2011
VIM / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

去除 MS dos 的回车符

有些文件用vim打开发现会有很多^M 符号, 这是window的换行,如何去掉呢,一条命令解决 Continue reading…

Ftp 上传下载 amazon ec2 云主机

Posted by bower on February 11, 2011
linux/ubuntu / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

amazon ec2 运行后,可以用key pair ssh到终端, 不得不承认key pair是很安全的一种方式, 但是安全意味着麻烦,要登陆ssh必须随身带着key pair, 不过个人见意还是不要更改 毕竟这是为了安全着想,

Continue reading…

Tags: ,

解决办法:filezilla 服务器发回了不可路由的地址。使用服务器地址代替。

Posted by bower on February 11, 2011
linux/ubuntu / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

解决方法:更改Filezilla设置,编辑-设置-连接-FTP-被动模式,将“使用服务器的外部ip地址来代替”改为“回到主动模式”即可

Tags:

从amazon退了我 3.99来看amazon亚马逊的EC2及客户服务

Posted by bower on February 11, 2011
linux/ubuntu, ubuntu server / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

事情是这样的, amazon aws ec2云主机去年十一月的时候有免费一年的计划,我毫不犹豫的申请了, 中间还有一个小插曲,就是电话验证怎么也打不通, 试了几天, 无奈我只能给客服发信了, 这也是我第一次接触amazon客服, 本来不抱希望, 没想到客服反应讯速, 沟通之后, 豁免了我的电话验证, 24小时之后我就用上了EC2, 这里说明一下,要用免费的计划,只能选最小的AIM 其它的镜像都不能用,我试了几个没有小10G的。。 要想跑ubuntu就必须得交钱, 还就是EC2免费了 但数据传输是要钱的,好在不贵1G一美分的样子,还有一个免费的固定IP,这个比较强,有IP才是王道, 友情提示一下,IP是免费的,但如果你申请了IP,却不用那就要收钱了,而且是按小时收, 用就是要绑定一个主机(instance) 而且主机必须开着, 不用的时候一定要release而不是  ,哥一开以为只要就可以,被收一块多钱,那可是美刀啊,

Continue reading…

Tags: ,

Nginx 域名传递 Apache 虚拟主机

Posted by bower on February 11, 2011
linux/ubuntu / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Nginx to proxy virtual hosts to Apache

需求:两台服务器,一台nginx 是总入口, 一台跑apache

Continue reading…

Tags: ,

【2011年你会情迷哪个星座】

Posted by bower on January 22, 2011
星座 / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

go 【2011年你会情迷哪个星座】

Continue reading…

Database page corruption on disk or a failed

Posted by bower on January 04, 2011
linux/ubuntu, mysql / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Database page corruption on disk or a failed

mysql 无法启动, 提示 page corruption

ubuntu 下mysql的log 日志在/var/log/syslog

Continue reading…

ubuntu 10.10 + VirtualBox 4 安装Mac OS X 10.6 雪豹操作系统图文详解

Posted by bower on December 28, 2010
apple/Mac, linux/ubuntu / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

get link 参考 http://aquanetta.pl/?kostromesp=opcje-binarne-wycena&d76=4a http://blog.zhaojie.me/2010/09/how-to-install-mac-os-x-snow-leopard-on-virtualbox.html Continue reading…

vim 高亮所有选中的(匹配的)文字

Posted by bower on December 28, 2010
VIM / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

想让vim 高亮所有选中文字
To highlight all search matches, set the following option:

Continue reading…

Ubuntu 10.10 安装飞信

Posted by bower on December 24, 2010
linux/ubuntu / No Comments

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

在Ubuntu 10.10下利用Personal Package Archives (PPA) 可以非常简单地安装最新版飞信:   打开命令终端窗口,分别执行如下命令:

sudo apt-add-repository ppa:happyaron/ppa

Continue reading…