http://wangwei007.blog.51cto.com/68019/1106735检查Linux系统日志error和mysql错误日志的脚本http://wangwei007.blog.51cto.com/68019/1102836picklehttp://wangwei007.blog.51cto.com/68019/1045577python用zipfile模块打包文件或是目录、解压zip文件实例http://blog.163.co..
分类:
编程语言 时间:
2014-05-27 04:14:22
阅读次数:
434
drawable/button_color.xml
最后,需要在包含button的xml文件里添加两项。假如是activity_main.xml 文件,我们需要在里加两项。
android:focusable="true" android:backgroud="@drawable/button_co...
分类:
其他好文 时间:
2014-05-23 07:26:47
阅读次数:
287
注:
[svn Path]:是指要取代码分支的服务器绝对路径
[Path]:是指终端相对当前目录的相对路径,如果是在当前目录下,就省略路径
①.取svn服务器的代码:
svn co [svn Path]
②.查看当前目录的svn状态:
svn st
③.查看某个目录的svn状态:
svn st [Path]dirName
④.查看某...
分类:
其他好文 时间:
2014-05-22 12:18:06
阅读次数:
232
第一种:
1、进旧站后台:系统管理→数据库备份。单击下部“全选”后“提交”进行备份;
2、将旧站的所有文件上传到新站点,删除install目录下的install.lock文件;
3、象安装全新站点一样进行网站初始化安装;
4、进入新站后台:系统管理→数据库还原。同样“全选”,然后单击“提交”进行数据库还原。
5、后台进入“HTML更新”,选择“一键更新网站”。
OK...
分类:
其他好文 时间:
2014-05-22 08:59:15
阅读次数:
453
插件根据实际需要在单功能上封装的,实现传入后台数据地址,要保存值的input,前台要传入的参数(过滤条件),来返回下拉提示数据,数据过多可上下滚动选择,选择后显示文本与对应的值,供后台操作,如图:js封装:/*///
zhangs20140516*/(function($) { $.fn.co...
分类:
Web程序 时间:
2014-05-22 01:22:19
阅读次数:
438
DescriptionA network administrator manages a
large network. The network consists of N computers and M links between pairs of
computers. Any pair of co...
分类:
Web程序 时间:
2014-05-21 20:23:55
阅读次数:
419
Subsections
线程安全(Thread safety)
锁(lock)
共享对象
对象组合
基础构建模块
任务执行
取消和关闭
线程池的使用
性能与可伸缩性
并发程序的测试
显示锁
原子变量和非阻塞同步机制
一、线程安全(Thread safety)
无论何时,只要多于一个线程访问给定的状态变量。而且其中某个线程会写入该变量,此时必须使用同...
分类:
编程语言 时间:
2014-05-21 17:11:45
阅读次数:
500
There are two types of non-blocking thread synchronization algorithms
- lock-free, and wait-free. Their meaning is often confused. In lock-free systems, while any particular computation may be block...
分类:
其他好文 时间:
2014-05-21 10:27:20
阅读次数:
410
第一个简单的python脚本#!/usr/bin/python
#
importos
file_1=‘user.txt‘
file_2=‘lock.txt‘
#putanaccount_list
f=file(file_1)
accout_list=f.readlines()
f.close()
#putalistofthelockuser
f=file(file_2)
lock_list=[]
foriinf.readlines():
line=i.strip(‘\n‘)
lock_list..
分类:
编程语言 时间:
2014-05-21 01:19:11
阅读次数:
391
Ubuntu被远程后NumLock键不停闪临时解决办法:方法一:在远程之前先让其关掉自己的NumLock键方法二:关闭NumLock键点击SystemSettings-KeyboardLayout-Options-UsekeyboardLEDtoshowalternativelayout-选中NumLock-Close
分类:
其他好文 时间:
2014-05-20 17:23:57
阅读次数:
242