2008-09-01から1ヶ月間の記事一覧
LANG=C xdg-user-dirs-gtk-update
ソースから最新のVimをインストールすると解決した。 sudo apt-get install xorg-dev libgnome2-dev libncurses5-dev wget ftp://ftp.jp.vim.org/pub/vim/unix/vim-7.2.tar.bz2 ./configure --with-features=huge --with-gnome ./configure --enable-gui=gtk…
シフトJISで出力 print unicode("日本語", 'utf-8').encode('cp932')
easy_install paramiko import ssh s = ssh.Connection('example.com') s.put('hello.txt') s.get('goodbye.txt') s.execute('du -h --max-depth=0') s.close() http://commandline.org.uk/python/2008/may/29/sftp-python-really-simple-ssh/
新規ファイル登録と不在ファイルの自動削除 hg addremove まとめてコミット hg commit -A
sudo apt-get install libgtk2.0-dev libavcodec-dev libavformat-dev libjpeg62-dev libtiff4-devwget http://nchc.dl.sourceforge.net/sourceforge/opencvlibrary/opencv-1.0.0.tar.gztar xzfv opencv-1.0.0.tar.gz cd opencv-1.0.0./configure make && su…
23個の無料 CSS Frameworks http://www.cssnolanche.com.br/css-frameworks/
sudo apt-get install mecab sudo apt-get install libmecab-dev sudo apt-get install mecab-ipadicsudo /usr/lib/mecab/mecab-dict-index -d /usr/share/mecab/dic/ipadic -o /var/lib/mecab/dic/ipadic -f euc-jp -t utf-8 -p sudo /usr/lib/mecab/mecab-…
ruby script\server -b 127.0.0.1
sudo /sbin/alsa force-reload で直った。
.vimrcに以下を追加する。 au BufEnter * execute ":lcd " . expand("%:p:h")
ssh-keygen -t rsa cd .ssh cat id_rsa.pub > authorized_keys chmod 600 authorized_keys ~/.ssh/authorized_keys に転送
vi /etc/hostsにホスト名追加 sudo vi /etc/apache2/sites-available/site2.localhost ServerName site2.localhost DocumentRoot /home/username/www cd /etc/apache2/sites-enabled sudo ln -s /etc/apache2/sites-available/site2.localhost sudo /etc/ini…
sudo apt-get update sudo apt-get install php5-dev sudo apt-get install php-pear sudo apt-get install apache2-threaded-dev sudo pecl install apc /etc/php5/apache2/php.iniに extension=apc.so を追加 sudo /etc/init.d/apache2 restart
設定>システム>キーボード>レイアウト>レイアウトのオプション でも変更できるがCapsLockランプが点灯するのが気になるので違う方法で変更した。 ~/.Xmodmap に以下を記入する。 keycode 66 = Control_L clear Lock add Control = Control_L 入れ替える場合…
ActionScriptとMXMLのsyntax files http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/vim_actionscript_and.php Ubuntuの場合は、 /usr/share/vim/vim71/syntax/ に2つのファイルをダウンロードし、 ~/.vimrc に以下を記入 au BufNewFile,B…
Rails 2.1以降の場合、rexml-expansion-fix.rbを RAILS_ROOT/config/initializersにコピーするだけで自動的にロードされます。 http://www.ruby-lang.org/security/20080823rexml/rexml-expansion-fix.rb http://www.ruby-lang.org/ja/news/2008/08/23/dos-v…
Web上で確認IE5.5,IE6,IE7,IE8 http://ipinfo.info/netrenderer/ 「IETester」IE8 beta1, IE7,IE6,IE5.5 VistaとXP上で動くソフト http://www.my-debugbar.com/wiki/IETester/HomePage
一番最初に git init 新規ファイルを追加した場合 git add . ファイルを変更・削除した場合 git commit -a -m 'comment' ■git での開発手順 git branch branchname でブランチの作成 git checkout branchname でブランチに移動 ブランチでファイル修正、コミ…
sudo apt-get install build-essential python-dev wget http://peak.telecommunity.com/dist/ez_setup.py sudo python ez_setup.py sudo easy_install -U mercurial
sudo apt-get install vim-full sudo gem install vim-ruby vim-ruby-install.rb sudo apt-get install vim-rails vim-rails-setup