Posts

Showing posts with the label web automation

關於網路服務的管理 Regarding to Web Service Management

Image
今天下午想到自己先前弄了一堆封閉的網路服務,每次要更改都得開起專案,然後從程式中下手,即便只是想改個參數也得花上半天時間,導至有些專案就再那裏停擺,這時間不是很好的管理方式。於是畫了張圖,在安全性及費用上的考量後,考慮以下面的方式進行或許是個不錯的管理模式。先紀錄一下,日後來作說明跟修正。 -------------------------------------------------------- This afternoon I found out those projects I opened become hard to maintain or upgrade as some difficulties. Here is how I work: I need to open the project, re-read the document as well as source codes (often), then find where I should start at. That's a stupid and time-costing task, indeed, and led some of the projects to be aborted in the long run. Hence, I drew a draft which briefly states components and direction which I'm going to work on based on consideration of safety and money. I will amend this article and put more details when I start off this plan.

debian 上安裝 firefox 以及 mechanize 處理 javascript的事

查詢作業系統版本 >>cat /proc/version 查詢處理器的位元組 >>uname -m 安裝firefox >>sudo echo deb http://packages.linuxmint.com debian import >> /etc/apt/sources.list >>wget http://packages.linuxmint.com/pool/main/l/linuxmint-keyring/linuxmint-keyring_2009.04.29_all.deb >>sudo dpkg -i linuxmint-keyring_2009.04.29_all.deb >>sudo apt-get update >>sudo apt-get install firefox [參考] http://josecartagena.info/2011/11/08/installing-firefox-and-thunderbird-in-debian/ 似乎在 mac上無法執行. http://stackoverflow.com/questions/24618548/run-safari-browser-headlessly-using-xvfb-on-mac 關於 selenium 及 mechanize http://www.installationpage.com/selenium/how-to-run-selenium-headless-firefox-in-ubuntu/ linux平台上切換語言 //設定locale >>export LANG=en_US.UTF-8 //選擇語言 >>dpkg-reconfigure  locale //重新開機 >>reboot 安裝 java https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps http://www.ora...