Integrating jQuery With Selenium – 使用 Selenium 和 Jquery 实现网站的自动化测试或爬去
ffffff 原文地址: http://code-thrill.blogspot.com/2012/04/integrating-jquery-with-selenium.html Integrating jQuery With Selenium When testing JavaScript-heavy websites, at some point you may reach Selenium limits. A simple use case will fail. You will get ElementNotVisibleException, even though you can clearly see that element. Other times the same selector will return different results depending on the type of the browser. You can lose [...]
test ku6 api
OBJ
Resolve macport installed mysql from defaulted mysql from mac osx
Original post: http://webbuilders.wordpress.com/2009/11/14/resolve-macport-installed-mysql-from-defaulted-mysql-from-mac-osx/ Using mac osx MacPorts to install latest version of MySQL are challenging as the macports version is buggy on MySQL5.0 or later. You may have a defaulted installed MySQL on your mac osx on the path /usr/local/mysql/bin. Macports install MySQL5 to another path /opt/local/bin. Determine mysql version: mysql -v Go to the [...]
Using github with jekyll
以后会更多的使用Github page来记录一些东西. 用起来简单方便, 不需联网即可本地使用, 非常快速. 同样也支持在 github 页面上进行修改.
VirtualBox – Cannot Register the Hard Drive Because a Hard Drive with UUID Already Exists
Open the Command Prompt Change the directory to where VirtualBox is installed (Default: C:\Program Files\Oracle\VirtualBox) Type the following VBOXMANAGE.EXE internalcommands sethduuid <PathOfNewVHD> 1. 打开命令行 2. 转到 VirtualBox 安装目录 3. 输入 VBoxManage internalcommands sethduuid “C:\anotherVHD\anotherVHD.vdi” 提示 UUID changed to: blah-blah-blah-blah 成功~
100 Vim commands every programmer should know
Working with files Vim command Action :e filename Open a new file. You can use the Tab key for automatic file name completion, just like at the shell command prompt. :w filename Save changes to a file. If you don’t specify a file name, Vim saves as the file name you were editing. For saving [...]
下载 Youtube 视频的最简单方法: 油猴 JS 脚本-Download YouTube Videos as MP4
之前用 Keepvid 和 Saveyoutube 这样的基于 Java applet 的下载站下载. 最近发现都不给力的. 在网上找到了更方便可靠的基于 “油猴 (Greasemonkey) JS” 的脚本 Download YouTube Videos as MP4.
支持Firefox, chrome, opera, safari, IE 等浏览器.
最基本的 setTimeout 函数用法
最基本的 setTimeout 函数用法
Sublime Text 2 跨平台的代码编辑器
今天看到了一款跨平台 (win, mac, linux) 的代码编辑器, 类似于 Mac 的 TextMate, 同时又集成着 Vim 的操作方式. 下面是 Lucifr 的三篇介绍: Sublime Text 2 入门及技巧 ZenCoding in Sublime Text 2 Sublime Text 2 实用快捷键[Mac OS X] 以及 istyles 的: Sublime Text 2 快捷键 (windows) 以及这篇英文的 插件开发教程 Short Code Meaning Ctrl+L 选择整行(按住-继续选择下行) Ctrl+KK 从光标处删除至行尾 Ctrl+Shift+K 删除整行 Ctrl+Shift+D 复制光标所在整行,插入在该行之前 Ctrl+J 合并行(已选择需要合并的多行时) ctrl+ku 改为大写 Ctrl+KL 改为小写 [...]