- 浏览: 36580 次
最新评论
文章列表
[置顶] 简单的登录按钮
- 博客分类:
- html/css/js
来自HtmlDrive上的小例子
您可以访问这里查看演示:http://fdemo.sinaapp.com/
源自:http://www.htmldrive.net/items/show/1087/Cool-Dropdown-Login-Form-with-jQuery#
下面是其html:
<div id="loginContainer">
<a id="loginButton" class ...
感谢:
http://21pt.com/Article/106.aspx
http://rainbird.blog.51cto.com/211214/275162
工作中发现某个用户下不能使用sftp,在root 下可以,找到下面这篇文章,解决问题。
方法一:简单实用usermod -s /usr/lib/ssh/sftp-server user方法二:安装rsshroot用户0)tar -zxvf rssh-2.3.2.tar.gz)./configure --prefix=/usr --sysconfdir=/etc2)make3) make in ...
python xml解析
- 博客分类:
- python
python本身内置几个好用的xml解析工具:sax,dom等
官网还推荐xpath方式
可以在http://docs.python.org : search xml
http://stackoverflow.com/questions/926946/checking-to-see-if-a-list-exists-within-another-lists
判断一个list是否存在于另外一个list中
根据分隔符转字符串为list:
str.split('sep')
字符串格式化:
'%(lang)019s has %(#)03s quote types.' % {'lang': "China", '#':"abc"}
http://docs.python.org/release/2. ...
ls ${HUAWEI_ENTERPRISE_SERVER_ROOT}/lib/*.so | awk -F'/' '{print $NF}'
统计grep后的行数:
grep -i 'error' *.log | wc -l
关于find: -exec: no terminating ";" or "+"的处理:
http://compgroups.net/comp.unix.shell/find-exec-no-terminating-or-+
网上的回答是:
As it says: add ';' or '+' at the e ...
获取豆瓣FM我喜爱的歌曲名单js
- 博客分类:
- 备忘
$('#fm-section').append('<div id="likeds"></div>');
$('.song_title').each(function(){
var liked = $(this).text();
$('#likeds').text(($('#likeds').text() + "; " + liked));
})
引自:http://www.checkupdown.com/status/E504_cn.html
用js弹出浏览器窗口:
window.open("http://localhost:8080/demo/demo.html","popup","width=460,height=580,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes")
demo.html页面中如果调用了window.close,那么将无条件关闭
webservice -- axis
- 博客分类:
- java
http://axis.apache.org/axis/java/user-guide.html
Axis is essentially a SOAP engine -- a framework for constructing SOAP processors such as clients, servers, gateways, etc.
But Axis isn't just a SOAP engine -- it also includes:
a simple stand-alone server,
a server which plugs into ser ...
python拷贝文件
- 博客分类:
- python
import shutil, errno
def copyanything(src, dst):
try:
shutil.copytree(src, dst)
except OSError as exc: # python >2.5
if exc.errno == errno.ENOTDIR:
shutil.copy(src, dst)
else: raise
代码来源:
http://stackoverflow.com/questions/1994488/copy-f ...
html的object标签
- 博客分类:
- 支持原创
http://www.w3school.com.cn/tags/tag_object.asp
JS关闭浏览器标签
- 博客分类:
- javascript
调用window.close函数几个,但是IE7,8下会弹出警告提示,用一下方法处理:
window.open('', '_self', '');
http://stackoverflow.com/questions/57854/how-can-i-close-a-browser-window-without-receiving-the-do-you-want-to-close-thi
shell split字符串 实例
- 博客分类:
- script
文章来源于:http://stackoverflow.com/questions/1617771/splitting-string-into-array
$ cat split.sh
#!/bin/sh
# Script to split fields into tokens
# Here is the string where tokens separated by colons
s="first column:second column:third column"
ip_arr=()
IFS=":" # Set ...
看这里就知道了:
http://www.webjx.com/web/xindejiqiao-9413.html
顶他
条件断点调试代码,好玩
http://blog.csdn.net/laou2008/article/details/1104425
http://mal.co.nz/code/jquery-placeholder/
http://blackgu.blogbus.com/logs/69596661.html
http://www.iteye.com/topic/363625
http://stackoverflow.com/questions/1673841/examples-of-gof-design-patterns
重要的不是表象,是为什么需要 ...