2010년 12월 10일 금요일
ROR db scheme 추가
2010년 12월 9일 목요일
2010년 11월 22일 월요일
.htaccess redirect
2010년 10월 28일 목요일
iphone App 사용기 - 생활 편
2010년 10월 14일 목요일
iphone App 사용기 - 커뮤니티 편
2010년 10월 7일 목요일
no such file to load -- guid
ruby on rails에 mysql 연동시 만난 error들
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
$ sudo env ARCHFLAGS="-arch x86_64" gem install --no-rdoc --no-ri mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
rails와 mysql 연동하기
Rails 2.3.8
ruby 1.8
mysql 5.1.51 (os X 10.6 - x86_64)
adapter: mysql #사용할 database
encoding: utf8
reconnect: false
database: test_development # 실제 mysql에 생성되는 database 이름
pool: 5
username: root # mysql에 접속할 id와 password
password:
socket: /tmp/mysql.sock # 보통 mysql.sock은 tmp에 있다. (시스템에 따라..)
mysql> create database test_development;
mysql> exit
2010년 9월 10일 금요일
There is no /dev/dsp !!!!
2010년 8월 17일 화요일
Mac OS에 Mysql 설치
2010년 8월 15일 일요일
ralis로 간단한 WebPage 만들기
$ cd Web
$ rails testBlog
render :text => "Hello, World!"
end
=> Booting Mongrel
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Mac OS에 ruby on rails 설치하기
$ gem update rails
$ sudo gem install capistrano
$ sudo gem install RedCloth termios rspec sake
2010년 8월 10일 화요일
iphone sqlite table_name확인
2010년 7월 29일 목요일
svn+ssh:// 자동 로그인
$ ls
$ ssh-add
2010년 7월 21일 수요일
didReceiveLocalNotification
didReceiveLocalNotification는 iphone delegate method들 중 하나이다.
그리고, iOS4에서 새롭게 추가된 녀석이다.
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notif
{
// to do
}
이 함수는 LocalNotification을 받아 동작하게 되었을 때 호출된다.
다들 알고 있는 사실이겠지만 iOS4는 멀티태스킹을 지원하고 있는데,
background상태에서 돌고 있는 앱이 LocalNotification에 의해 깨어나게 되면 이 함수가 호출된다.
LocalNotification을 받았을 때 처리해주어야 할 일을 넣어 수행하게 한다.
2010년 6월 30일 수요일
배경 이미지 넣기
//파일을 하나 Resources폴더 아래 추가한 후 파일 명으로 image를 불러온다.
UIImageView *bgImageView = [[UIImageView alloc] initWithImage:bgImage];
//위에 불러온 이미지를 imageView에 할당한다
bgImageView.frame = [[UIScreen mainScreen]bounds];
//frame 크기 설정
bgImageView.contentMode = UIViewContentModeScaleAspectFit;
//화면에 꽉차게 (여러가지 모드가 있다)
bgImageView.alpha = 0.55;
//투명도 (0~1)
[self.view addSubview:bgImageView];
[self.view sendSubviewToBack:bgImageView];
[bgImageView release];
IndicatorView
//UIActivityIndicatorView는 몇 가지 스타일을 제공하는데,
//UIActivityIndicatorViewStyleWhiteLarge는 어두운 배경에서만 사용할 수 있다.
//가장 많이 사용하는 것은,
//UIActivityIndicatorViewStyleWhite와 UIActivityIndicatorViewStyleGrey이다.
indicator.center = self.view.center;
//화면의 중앙에 나타난다
//CGPointMake를 이용하여 원하는 지점을 찍어주어도 된다.
[self.view addSubview:indicator];
[indicator startAnimating]; //indicator가 빙글빙글 돌아간다.
[indicator release];
2010년 6월 29일 화요일
iphone 진동 사용 함수
2010년 6월 25일 금요일
NT_STATUS_ACCESS_DENIED listing \*
2010년 6월 24일 목요일
SubVersion 설정
$ mkdir svn
$ cd svn
$ svnadmin create test
$ svnadmin create --fs-type bdb test (버클리DB)
... 중략 ...
anon-access = none //아무나 접근할 수 없게 함
auth-access = write //인증된 사용자에게만 쓰기 권한을 줌
...
password-db = passwd
....
realm = My First Repository
$ cd .subversion
$ vi config
ssh = ssh -l test