Entries from 2013-04-01 to 1 month

stop apport , error with apport-gpu-error-intel.py

Re: Internal error with apport-gpu-error-intel.py If you have no problems with your system then you can disable apport's reports . For one session only sudo service apport stop Permanent gksudo gedit /etc/default/approt and change the enab…

Nokogiri contains

require 'nokogiri'html = ' foo bar 'doc = Nokogiri::HTML(html) doc.at('p:contains("bar")').text.strip => "bar"

ppp pptp /etc/ppp/options DNS設定

/etc/ppp/options に以下を設定しておけば、PPP,PPTP接続時のDNSを設定してくれるms-dns 8.8.8.8 ms-dns 8.8.4.4

Nokogiri/Mechanize エンコード問題で上手くform,field等が見つからないとき

thePage=a.get(href).body.toutf8 dom=Nokogiri::HTML( thePage ) print dom.at('p[property="main_title"]').inner_text print dom.at('input[name="comment"]')['value'] form=dom.at('form[id="toukou"]') Mechanize::Form.new(form,a,a.page){|f| f['dat…

kikenn

sTime = Time.now until chkip=`curl -ss checkip.dyndns.com`.match(/Current\sIP\sAddress:\s(#{IP_Regex})/) or (Time.now-sTime)>3*60 do sleep 1 end

Ethernet 圧着 自作

http://www.geekpage.jp/practical/utp/index.php

Block site host squid

http://askubuntu.com/questions/180941/blocking-multiple-sites-with-etc-hosts http://jaxov.com/2009/09/how-to-block-websites-in-ubuntu-linux/ hosts example127.0.0.1 localhost 192.168.1.199 UbuntuServer 0.0.0.0 r.twimg.com 0.0.0.0 p.twitter.…