- 浏览: 19367 次
- 性别:
- 来自: douzhua
最新评论
-
woodding2008:
还以为跟storm有关系呢
PhpStorm的变量类型提示
文章列表
swift 常用控件
- 博客分类:
- ios
swift系统学习控件篇:UIbutton+UIlabel+UITextField+UISwitch+UISlider
https://github.com/pheromone/UIProgressView-NSTimer-UIstepper
https://www.cnblogs.com/shaoting/p/5319960.html
https://github.com/pheromone?page=4&tab=repositories
https://www.cnblogs.com/shaoting/p/5319960.html
https ...
mysql 行数统计及体积
- 博客分类:
- mysql
SELECT TABLE_NAME,TABLE_ROWS,DATA_LENGTH/1024/1024 "DATA_LENGTH",CREATE_TIME,TABLE_COLLATION FROM
INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'lir' ORDER BY TABLE_ROWS DESC
# MySQL 数据库
import mysql
from mysql import connector
from collections import namedtuple
def generate_namedtuple(cur):
from collections import namedtuple
fieldnames = [d[0].lower() for d in cur.description]
Record = namedtuple('Record', fieldnames)
rows = cur.fetchall()
...
python 使用pyinstaller安装
- 博客分类:
- python
目前可使用python3.4 目录中的pyinstaller 生成exe文件..
在pycharm中设置方法: 打开setting ->tools->extend tools ->
设置如下:
C:\Python34\Scripts\pyinstaller.exe
-w -F $FileName$
C:\Users\Jerry\PycharmProjects\untitled
然后选中py程序,选菜单中的tools->extools ->刚才添加的菜单,执行生成..
spec文件设置: console=True 为使用console 如 ...
1:
http://windows.php.net/downloads/pecl/releases/redis/2.2.7/
根据自己的php版本选择合适的redis扩展版本,上面是5.6的...
2:
修改php.ini extension=php_redis.dll
3:重启查看phpinfo 是否生效..
selenium 元素定位
- 博客分类:
- SELENIUM
1: WebElement searchBox = driver.findElement(By.name("btnK"));
searchBox.click();
2:WebElement searchBox = driver.findElement(By.id("gbqfba"));
3: List<WebElement> buttons = driver.findElements(By.tagName("button"));
4:List<WebElement> allInputs ...
selenium 点击alert
- 博客分类:
- SELENIUM
OK, Show you the code:
1 driver.findElement(By.id("updateButton")).click();
2 //pop up with id "updateButton" opens
3 Alert alert = driver.switchTo().alert();
4 //update is executed
5 alert.accept();
如果是点取消,则:
alert.dismiss()
vbox 安装增强功能遇到的问题
- 博客分类:
- centos vbox
1:最小化安装centos7...
2:使用桥接..高级,芯片-准虚拟化网站,全部允许,接入网线
3:可能需要 yum update kernel,需要重启..
4:#yum install kernel-headers
#yum install kernel-devel
#yum install gcc*
#yum install make
5:mount /dev/cdrom /media
cd /media
sh ..box.sh
6:sudo mount -t vboxsf shared_file /test
7:设置自动挂载,重启虚拟机系统共享仍在。
可 ...
phpstorm:
foreach($orders as $v){
echo $v->title;
}
这时并不知道$v的类型,ide无法提示.
可以改成这样 (豆爪)
/** @var $v Order */
foreach ($orders as $v){
$v->id;
}
function alphaID($in, $to_num = false, $pad_up = false, $pass_key = null)
{
$out = '';
$index = 'abcdefghijklmnopqrstuvwxyz0123456789';
$base = strlen($index);
if ($pass_key !== null) {
for ($n = 0; $n < strlen($index); $n++) {
$i[] = substr ...
…or create a new repository on the command line
echo "# test" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/abc/test.git
git push -u origin master
…or push an existing repository from the ...
由于FIREFOX经常在后台静默更新版本,导致有时候SELENIUM莫名其面就不能打开浏览器了。
最近发现下载FIREFOX的旧版又特别困难,找了半天终于找到M社的FTP地址:
ftp.mozilla.org/pub/firefox/releases/
希望能够帮到遇到和我一样困境的童鞋,推荐下载45版,不要安装静默更新的模块。
https://github.com/mozilla/geckodriver/releases
System.setProperty("webdriver.gecko.driver", "d:\\eclips ...
http://blog.csdn.net/ncafei/article/details/53179854
最快,最安全的选择,以激活您的PHPStorm 2016.2 - 2016.3,这是足够的激活服务器,软件将自动激活。该过程将不断更新,如果不工作评价写入,如果有,以激活没有列出的服务器也可以说。
通过互联网激活PHPStorm 2016.3:
http://jetbrains.tencent.click
http://172.245.22.235:1017
http://idea.imsxm.com/
http://mcpmcc.com:1017 ...
select * from news where ine_time>='2010-02-01' and ine_time <'2010-03-01' into outfile '/tmp/newsdata.sql';
load data local infile '/home/lsanotes/newsdata.sql' into table news character set utf8;
python install.py install
依赖
apt install make
apt install gcc
apt-get install libpcre3 libpcre3-dev
apt-get install openssl libssl-dev
====
verynginx /opt/verynginx/verynginx
openresty /opt/verynginx/openresty
#Start Service
/opt/verynginx/openresty/nginx/sbin/nginx
#Stop Se ...