Entries from 2016-01-01 to 1 year

How to open new tab in Chrome with Selenium-chromeDriver ChromeDriver - WebDriver  options

forefoxでは上手く動かないが、chromiumならdriver.execute_script("window.open('https://www.google.com');")https://stackoverflow.com/questions/35208342/how-to-open-new-tab-in-chrome-with-selenium-chromedriver-in-python https://stackoverflow.c…

chromium webdeiver

$ sudo apt-get install chromium-chromedriver $ sudo ln -s /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriver add ~/.bashrcexport PATH=$PATH:/usr/lib/chromium-browser/ Selenium::WebDriver::Chrome.path = '/usr/lib/chromium-browser/…

gtk3 instead of tk

https://github.com/cedlemo/ruby-gtk3-tutorial

CMS RoR ruby

Refinery CMS 出来ればSlimSpree eCommerce

ubuntu14.04 Network menu has disappeared

http://askubuntu.com/questions/772683/unable-to-connect-to-the-internet-network-menu-has-disappearedこれが早いsudo service network-manager restart

watir firefox install different version

Download target version of firefox https://ftp.mozilla.org/pub/firefox/releases/archiving into '~/firefox-42.0/firefox' (can be checked by ~$:./firefox-42.0/firefox)Selenium::WebDriver::Firefox.path ='~/firefox-42.0/firefox' client = Selen…

ubuntu headless change resolution on fly

xrandr --fb 1440x900

ubuntu 14.04 mount samba, gvfs (gnome virtual file system?)

http://infrase.jpn.org/?p=36 https://help.ubuntu.com/community/MountWindowsSharesPermanentlycifs will not mountNote:- cifs by default does not resolve netbios names so you may get an error message when you try to mount that the name could …

ubuntu incremental copy backup rsync samba

http://askubuntu.com/questions/198570/files-backup-utility-with-incremental-backups-that-would-keep-backup-device-clea http://qiita.com/bunzaemon/items/6f55d7da12d2b6bd0436 http://zettai-non-sugar.blogspot.hk/2009/10/rsync-nas-samba.html h…

desktop manager not active 「 デスクトップの設定」 デスクトップマネージャはアクティブでありません。

http://askubuntu.com/questions/454885/desktop-manager-error-ubuntu-14-04 https://bugs.launchpad.net/variety/+bug/1296560

ubuntu 14.04 gnome "No system tray detected on this system" where is start up program

This appears to be a problem with older systems. A workaround is to modify the startup desktop connection file (/etc/xdg/autostart/hplip-systray.desktop) fromExec=hp-systray -xtoExec=sh -c "sleep 15; exec hp-systray -x" /etc/xdg/autostart/…

ubuntu 14.10 vnc server multiple Simultaneous independent remote desktop connections (Not tested)

http://askubuntu.com/questions/581979/ubuntu-14-10-multiple-simultaneous-independent-remote-desktop-like-connection http://ubuntuforums.org/showthread.php?t=1302802 - not independent?http://ubuntuforums.org/showthread.php?t=1053242

ssh tunnel open/close options

http://www.g-loaded.eu/2006/11/24/auto-closing-ssh-tunnels/http://benporter.io/blog/linux/remote-desktop-on-a-linux-machine-installing-and-configuring-vnc-and-remminahttp://www.cyberciti.biz/tips/tunneling-vnc-connections-over-ssh-howto.ht…

watir Selenium firefox firstrun page `connect_until_stable': unable to obtain stable firefox connection in 60 seconds

http://sugi511.hatenablog.com/entry/2013/02/22/Selenium%E3%81%8Cfirefox%E3%81%A8%E7%B9%8B%E3%81%8C%E3%82%89%E3%81%AA%E3%81%8F%E3%81%AA%E3%81%A3%E3%81%9F%E3%80%82gem install "selenium-webdriver"

How to Install and Configure VNC on Ubuntu 14.04

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04 https://www.howtoforge.com/how-to-install-vnc-server-on-ubuntu-14.04 http://www.havetheknowhow.com/Configure-the-server/Install-VNC.html http…

mechanize cookie

http://takuya-1st.hatenablog.jp/entry/2013/08/15/033348 http://koshigoeb.hateblo.jp/entry/2012/08/06/181428 http://blog.satooshi.jp/blog/2013/04/02/how-to-use-yaml-library-in-ruby/ http://seesaawiki.jp/ruby_mechanize/d/Mechanize%3a%3aCooki…

watir modal dialog headless

https://watirwebdriver.com/javascript-dialogs/https://watirmelon.com/2011/08/27/running-headless-watir-webdriver-tests-using-a-real-browser/

GETはPOSTより送信できる情報量が少ない

GETでのパラメータはURLに残るので、Web鯖、プロキシ鯖に残る。Refererにも載る

GETのレスポンスはキャッシュされるがPOSTはキャッシュされない(ブラウザ、プロキシ、ゲートウェイ)

テキストデータでもバイナリデータでも送信できる

違い

HTTPリクエストのbody部にパラメータ(データ)が含まれる

URLの文字数は、IEでの制限があり2048文字

POST メソッドについて

データを取得するときに使用する。副作用がない、常に結果が同じになるような処理に用いる

リクエストURLの後にパラメータを付与してデータを送付する

Post request

http://morizyun.github.io/blog/get-post-method-compare-parameter/HTTPリクエストについてHTTPリクエストは、大きく3つの部分に分かれる。1) HTTPリクエスト行 2) HTTPヘッダー行 3) HTTPリクエストのボディ部 GETメソッドについて

watir find "re td"

Let us assume that we are working with the table: <table> <tr> <td>1a</td> <td>1b</td> </tr> <tr> <td>2a</td> <td>2b</td> </tr> </table>Solution - Watir-WebdriverThe Table class has a strings method that returns the text of the table as a 2D array. The array is of rows, but you can use transpose to …

watir better Implicit/Explicit waits than "stop loading"

Implicit waitsWebDriver lets you configure implicit waits, so that a call to #find_element will wait for a specified amount of time before raising a NoSuchElementError: driver = Selenium::WebDriver.for :firefox driver.manage.timeouts.impli…

ubuntu 14.04 日本語入力 anthy fcitx

fcitx fcitx-anthy をソフトウェアセンターでいんすとーるするだけ

Variety is an open-source wallpaper changer for Linux

Installation on Ubuntusudo add-apt-repository ppa:peterlevi/ppa sudo apt-get update sudo apt-get install variety