`
文章列表

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 ...
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() ...
目前可使用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 是否生效..  
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

    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()
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:设置自动挂载,重启虚拟机系统共享仍在。 可 ...

IDE辅助提示注释

    博客分类:
  • php
phpstorm:         foreach($orders as $v){           echo $v->title;       }         这时并不知道$v的类型,ide无法提示.     可以改成这样 (豆爪)     /** @var $v Order */ foreach ($orders as $v){ $v->id; }

id可逆加密

    博客分类:
  • php
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 ...

mysql 导出

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 ...
Global site tag (gtag.js) - Google Analytics