Entries from 2015-01-01 to 1 year
http://stackoverflow.com/questions/17744319/duplicate-and-rename-xcode-project-associated-folders http://kubou.net/archives/325 http://woodsmall.co.jp/xcode-2/application-name-change/
http://code.tutsplus.com/tutorials/titanium-mobile-database-driven-tables-with-sqlite-part-2--mobile-4031 http://www.raywenderlich.com/3932/networking-tutorial-for-ios-how-to-create-a-socket-based-iphone-app-and-server http://www.raywender…
$ adduser admin_user_name $ gpasswd -a admin_user_name sudohttps://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
PPTP Installation$apt-get install pptpd$nano /etc/pptpd.conf localip 10.0.0.1 remoteip 10.0.0.100-200$nano /etc/ppp/chap-secrets :# Secrets for authentication using CHAP # client server secret IP addresses vpn89Hn pptpd oij$7H0Hp * vpn32oA…
ethtool -s eth1 wol g (確認は $ethtool eth1)でWOL設定できるが、一回限りで次回のリブート後同じ設定を繰り返さなくてはいけないので、以下で永続化をする。$ sudo nano /etc/init.d/wakeonlan ## /etc/init.d/wakeonlan # # description: Force NIC in…
http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#RTL8111B/RTL8168B/RTL8111/RTL8168RTL8111C/RTL8111CP/RTL8111D(L)RTL8168C/RTL8111DP/RTL8111ERTL8168E/RTL8111F/RTL8411RTL8111…
http://superuser.com/questions/869969/ubuntu-14-04-terminal-command-to-list-folder-size-and-corresponding-file-sizesdu -lah|grep -v -e '^.*K:space:'|sort -r -n
http://www.rubydoc.info/gems/selenium-webdriver/0.0.28/Selenium/WebDriver/Optionshttp://stackoverflow.com/questions/18692542/create-a-domain-specific-site-com-cookie-with-rubys-selenium-webdriverhttp://stackoverflow.com/questions/28187331/…
http://stackoverflow.com/questions/15371495/phantomjs-1-8-with-selenium-on-python-how-to-block-imageswebdriver.PhantomJS(service_args=['--load-images=no'])試していません
prefs = { 'profile' => { #'default_content_settings' => {'images' => 2}, 'managed_default_content_settings' => {'images' => 2}, } }ch = Selenium::WebDriver.for(:chrome, :prefs => prefs)但しchromedriverのバージョンは selenium-webdriver 2.37…
download chromedriverhttps://github.com/SeleniumHQ/selenium/wiki/ChromeDriver https://sites.google.com/a/chromium.org/chromedriver/downloads unzip it to /usr/bin/chromedriverthen require 'selenium-webdriver'#Selenium初期化 ff = Selenium::W…
Software Centerから fcitx Anthy Fcitx wrapper for Anthy IM engine
sudo apt-get install xorg gnome-core gnome-system-tools gnome-app-install
https://answers.launchpad.net/ubuntu/+source/network-manager/+question/254531
http://d.hatena.ne.jp/kazukingband/20150910/1441875442
http://interwebworld.co.uk/2014/11/23/fix-screen-sharing-mac-os-x-ubuntu/dconf-toolsでExpand ‘org’>‘gnome’>‘Desktop’>‘Remote Access’>‘Require Encrption'=Uncheck 要するにUbuntu側のencriptionを解除する。ios,osx側のvncに暗号化の設定がな…
osx suddenly "disk is almost full" check /core and delete them
Open "Disk Utility", and look for your device, and click on it. This will let you be sure you know the correct filesystem type and device name for it. In my case, it was 'ext4' and '/dev/sdb1' respectively. Next: Decide what you want to ca…
Gemsgem install headless gem install selenium-webdriver使い方require "selenium-webdriver" require 'headless'headless = Headless.new headless.start driver = Selenium::WebDriver.for :chrome driver.navigate.to "http://google.com"element = dri…
http://www.mnet.ne.jp/~tnomura/tksample.html http://ronor.web.fc2.com/rubytk/require 'tk'name = ''TkLabel.new(nil, 'text'=>'Put your name below.').pack entry = TkEntry.new.pack TkButton.new(nil, 'text'=>'OK', 'command'=>proc{ name = entry.…
Ruby/Tk does NOT support forking the process on which Tk interpreter is running (unless NEVER control Tk interpreter under the forked child process). In the library 'tk.rb', a Tk interpreter is initialized. Therefore, if you want running T…
Ruby/Tk does NOT support forking the process on which Tk interpreter is running (unless NEVER control Tk interpreter under the forked child process). In the library 'tk.rb', a Tk interpreter is initialized. Therefore, if you want running T…
$ sudo apt-get install imagemagick $ sudo apt-get install libmagickwand-dev$ gem install rmagick
気がついたことrmagickは - 画像処理するもので、その表示位置をデスクトップや他のXserver上の表示位置をコントロールするものではない。例えば そういうときはTcl/Tkを使う。tkは - rbenv,rvmでつにねに現在使っているrubyの再コンパイルが必要。要するに…
http://futurismo.biz/archives/2226$ sudo apt-get remove tk-dev $ sudo apt-get install tk8.4-dev tcl8.4-dev$ sudo ln -sfn /usr/lib/tcl8.4/tclConfig.sh /usr/lib/tclConfig.sh $ sudo ln -sfn /usr/lib/tk8.4/tkConfig.sh /usr/lib/tkConfig.sh$ rvm…
require 'tk'TkRoot.new {geometry '300x200+100+100'} TkAfter.new(3000, # milliseconds 1, proc{exit} # what to call when the timer expires ).startTk.mainloop
http://stackoverflow.com/questions/20874900/ruby-require-tk-yields-loaderror-no-such-file-to-load-tk http://5zalt.hatenablog.com/entry/2015/02/12/124228 $ sudo apt-get install tk-dev $ rvm reinstall ruby-2.2-head --with-tcltkversion=8.6 --…
http://qiita.com/iberianpig@github/items/826809e978965d1a03a2FireWall使ってないので、どうやらこれはバグらしい。$ system-config-printerをTerminalで入力すると、以前のGUIが立ち上がる。
http://stackoverflow.com/questions/15639998/sinatra-via-rackup-does-not-like-inline-templates https://github.com/rstacruz/nanomonk/blob/master/vendor/sinatra-1.0/README.jp.rdocenable :inline_templates bundle exec unicorn_rails --path /notM…
mechanizeでフォーム送信すると期待されたエンコードで送信されない事がある。送信結果が文字化けしてしまう。 以下の条件に当てはまるウェブページで起こる。 - HTML 中に meta 要素の charset が存在しない - レスポンスヘッダのContent-Typeにもcharsetが…