2010-01-01から1年間の記事一覧
$ sudo gem install rvm Password: ******************************************************************************* This gem contains only the Ruby libraries for the RVM Ruby API. In order to install RVM please use one of the methods listed i…
$ gem list rails *** LOCAL GEMS *** rails (3.0.1, 3.0.0, 2.3.5, 2.2.2, 1.2.6)$ rails -v Rails 3.0.1$ rails _2.3.5_ -v Rails 2.3.5$ alias rails2='rails _2.3.5_' $ rails2 -v Rails 2.3.5
第1章 リポジトリ 何を格納する?:全部だ. 作業ツリー .git/ masterブランチ リポジトリのクローン check out:Gitが作業ツリーを特定の時点のリポジトリに合わせる commit: 変更をコミットすると新しいrevisionが追加され,変更を説明するログメッセージが…
MacPorts dmgでインストール sudo port -d selfupdate sudo port -d sync (sudo port upgrade outdated) git $ sudo port install git-core +svn +doc +bash_completion ports colordiff スクリーンキャプチャ保存先変更 mkdir ~/Pictures/ScreenShots defau…
フォルダ階層を上がるボタン.app
test.c #include <stdio.h> int main(){ int hoge[] = { #include "dat.csv" }; int n = sizeof(hoge)/sizeof(int); int i; for(i=0;i</stdio.h>
Non-terminal programs don't inherit the system wide PATH and MANPATH variables that your terminal does. If you'd like them to be able to see Git, for whatever reason, you can run this script. It will add the PATH and MANPATH to your ~/.Mac…
ignore_comment モジュール open(filename) do |input| line = input.gets.ignore_comment("#") end みたいな コマンドラインフィルタっぽくつくる stdin > filter > stdout file1 > filter1 | filter2 > file2
sshでログインして, $ ./command &とやって,exitしたら消えない? 端末のウインドウを「x」で消したり,不意に接続が切れたりすると,SIGHUPシグナルによってcommandは終了される. → nohup ./command & でOK → ちゃんとexitしたらOK?
ツイッター連携てすと
#include <stdio.h> #include <stdlib.h> void argdump(int argc, char** argv){ FILE* fp = fopen("params","w"); int i; if(fp==NULL){ fprintf(stderr,"file open error"); } for(i=0; i</stdlib.h></stdio.h>
malloc_or_exit() とか fopen_or_exit() とか fopenf() とか つくるFILE* fopenf( const char* format, const char* mode, ...){ var_argがなんとかかんとか char* filename = malloc(); strcmp(filename); return fopen(filename,mode); }
リレーショナルデータベースでテーブルを設計するときは 一対一とか一対多でもcreate table hoge( id int );create table piyo( id int, hoge_id int );とはしないで,create table hoge_piyo( hoge_id int, piyo_id int );っていうのを作ったほうが変更しや…
けっこう困ってたんだけど,実はCarbonEmacsの公式に書いてありました openに-nなんてあったのか...http://homepage.mac.com/zenitani/emacs-j.html - 複数の Emacs を起動するには? (Emacs.app)/Contents/MacOS/Emacs を実行してください。 2つめ以降を…
これから,主に身内向けにプログラミング(主にC)のtipsを書いていこうと思います. ぼちぼちやります. ↓予定というかめも◆スタイル #参考:「センス・オブ・プログラミング」「プログラミング作法」数ヶ月後の自分(あるいは他人)が読んでもわかるよう…
したい.