码迷,mamicode.com
首页 >  
搜索关键字:python queue pipe    ( 144597个结果)
Selenium-spoon-plugin插件开发
对于web系统的自动化测试,selenium使用比较多,它支持多种语言java、python、C#等,本文中使用java。selenium执行case时,支持截图,代码如下: File?file?=??((TakesScreenshot)driver).getScreenshotAs(O...
分类:其他好文   时间:2014-07-30 21:02:14    阅读次数:311
atitit. java queue 队列体系and自定义基于数据库的队列总结o7t
atitit. java queue 队列体系and自定义基于数据库的队列总结o7t 1. 阻塞队列和非阻塞队列 1 2. java.util.Queue接口, 1 3. ConcurrentLinkedQueue 2 4. BlockingQueue阻塞队列 2 4.1. 1. ArrayBlockingQueue 3 4.2. 2. LinkedBlockingQueue 3...
分类:数据库   时间:2014-07-30 20:47:04    阅读次数:510
Cstyle的札记,Freertos内核详解,第3篇
RTOS里面最常见的以及最核心的数据结构,队列的实现。可在VS2008 下编译测试。 /** @file Copyright (c) 2008 - 2014, MX.Studio All rights reserved. Created by Cstyle **/ #ifndef _QUEUE_H_ #define _QUEUE_H_ #ifdef ...
分类:其他好文   时间:2014-07-30 20:44:14    阅读次数:344
c++中STL之heap, priority_queue使用
C++中堆的应用:make_heap, pop_heap, push_heap, sort_heap, priority_queue make_heap, pop_heap, push_heap, sort_heap都是标准算法库里的模板函数,用于将存储在vector/deque 中的元素进行堆操作,对不愿自己写数据结构堆的C++选手来说,这几个算法函数很有用,下面是这几个函数操作vecto...
分类:编程语言   时间:2014-07-30 20:43:24    阅读次数:360
yum下提示Another app is currently holding the yum lock
解决方案:1、查看:ps-ef|grepyumroot31601014:47?00:00:00/usr/bin/python-tt/usr/sbin/yum-updatesdroot33403160014:47?00:00:00/usr/bin/python-tt/usr/libexec/yum-updatesd-helper--check--dbusroot34583374014:56pts/100:00:00grepyum2、kill31603340(kill掉相关进程,..
分类:移动开发   时间:2014-07-30 17:52:04    阅读次数:282
Cheetah使用出错!You don't have the C version of NameMapper installed!
1.错误 /usr/lib/python2.5/site-packages/Cheetah/Compiler.py:1532: UserWarning:  You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully s...
分类:移动开发   时间:2014-07-30 17:35:24    阅读次数:1427
Linux下搭建PHP开发环境(LAMP)
LAMP:Linux+Apache+Mysql/MariaDB+Perl/PHP/Python安装方法如下:注:Ubuntu下可使用sudo su 命名切换到root用户。开始安装之前,先执行EZHTTP安装前的准备工作。一、使用screen(可选)由于编译安装Nginx Apache PHP .....
分类:Web程序   时间:2014-07-30 17:13:54    阅读次数:278
Python札记 -- MongoDB模糊查询
最近在使用MongoDB的时候,遇到了使用多个关键词进行模糊查询的场景。竹风使用的是mongoengine库。 查了各种资料,最后总结出比较好用的方法。先上代码,后面进行详细说明。如下: 1 #!/usr/bin/env python 2 #coding:utf-8 3 4 import re .....
分类:数据库   时间:2014-07-30 17:10:54    阅读次数:407
mongodb和python的datetime的差异
python中需要使用utc时间 mongo.exe命令 db.sms_ttl.ensureIndex({"createdAt":?1},?{expireAfterSeconds:?600}) pymongo操作 db.sms_ttl.insert({"createdAt":?datetime.utcnow(),?"type":?"sms-auth",?"...
分类:数据库   时间:2014-07-30 15:08:34    阅读次数:414
mkstemp、mktemp、TemporaryFile区别
mkstemp fd, name = tempfile.mkstemp 创建临时文件,并且将文件打开 >>>?import?tempfile >>>?tempfile.mkstemp() (3,?‘/tmp/tmpkgWSR1‘) 查看/tmp目录,看到已经生成了真实的文件 lsof查询打开的临时文件 ...
分类:其他好文   时间:2014-07-30 15:08:14    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!