본문 바로가기

분류 전체보기

safari에서 클릭 했을때 영역 하이라이트 되는거 없애기 http://stackoverflow.com/questions/2967635/turn-off-grey-box-when-mousedown-in-mobile-safari-webkit-tap-highlight-color: rgba(0,0,0,0); 더보기
[ playframework + crud ] Check 를 extends 하여 isSatisfy 를 쓸때 crud.custom을 쓰면 그 필드 isSatisfy를 만족하지 않을때 원래는 incorrect 가 뷰에 떠야 되는데 안뜬다. 더보기
mac os lion 에서 git 설치법 Xcode -> Preferences -> Downloads -> Install Command Line Tools. 더보기
docsplit에서 parent directory is world writable, FileUtils#remove_entry_secure does not work; docsplit에서parent directory is world writable, FileUtils#remove_entry_secure does not work;에러날때/tmp권한을 1777로 준다.chmod -R 1777 /tmp 더보기
[ror] production mode 에서만 로케일이 en으로 출력 될 때 http://guides.rubyonrails.org/i18n.html#setting-and-passing-the-locale before_filter :set_locale def set_locale I18n.locale = params[:locale] || I18n.default_locale end 더보기
안드로이드 앱스프레소 헬로월뜨 처음 띄울때 에러날대 대처법 http://groups.google.com/group/appspresso-ko/browse_thread/thread/14e0bd9a2c67773b?pli=1 http://groups.google.com/group/appspresso-ko/browse_thread/thread/14e0bd9a2c67773b?pli=1 더보기
모바일웹에서 폰트 사이즈 늘려도 안늘어날 경우 body에 -webkit-text-size-adjust: none; 함 넣어보자 더보기
크롬에서 모바일 버전으로 사용하기 http://mooki83.tistory.com/2656511 1. 일단 실행되어있는 모든 크롬을 종료한다. 2. 크롬 바로가기를 만들어서 다음 파라메터를 추가해준다. chrome.exe -user-agent="Mozilla/5.0 (Linux; U; Android 1.5; fr-fr; Galaxy Build/CUPCAKE) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 Mobile Safari/523.12.2" 3. 실행한다. 모바일 모드를 즐긴다~ 이렇게 실행하고 나면 크롬은 계속 모바일 모드로 접속되는데.. 다시 정상으로 돌리기 위해서는!!!! 모든 크롬을 종료하고 다시 정상적으로 크롬을 실행하면 된다. 중요한 건 현재 실행되고 있는 모든 크롬을 종.. 더보기
[centos 5.5] font 적용법 /usr/share/fonts/korean/TrueType/ 에 ttf파일만 복사하면 바로 적용된다. fc-list 로 확인할 수 있다. 더보기
chkconfig 스크립트 작성할때 주의점 # !/bin/bash # chkconfig: 1235 92 92 # description: unicorn service 스크립트 맨위에 chkconfig: 요걸 chkconfig : 띄우면 chkconfig --add [파일명] 하면 서비스를 chkconfig에 등록할 수 없습니다. 라고 뜸... 더보기
웃픈 만화 더보기
[centos + imagemagick] 설치법 http://thenitai.com/2009/11/10/upgrade-to-most-recent-imagemagick-version-on-centos-5-x/ yum erase ImageMagick* yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz tar xcvf ImageMagick.tar.gz cd ImageMagick-6.5.7-5 configure --prefix=/usr/local --with-bzlib=yes --with-fontcon.. 더보기
[apache / httpd ] centos 서비스에서 제거 방법 http://www.nineteenlabs.com/2007/08/08/remove-centos-httpdcentos-apache/ Check whether httpd list in system services # chkconfig --list Turn off httpd service # chkconfig --levels 235 httpd off 더보기
[ror + woff] Resource interpreted as Font but transferred with MIME type application/octet-streaㅡ Resource interpreted as Font but transferred with MIME type application/octet-stream 에러 뜰때 해결법 config/initializers/mime_types.rb 에 Mime::Type.register “font/opentype”, :font 넣어준다. http://mikehoitomt.wordpress.com/2012/02/24/use-custom-fonts-in-ruby-on-rails-3-1-with-the-asset-pipeline/ 더보기
[vsftpd] root 접속방법 http://lift2k.tistory.com/6 더보기
선호되는 웹폰트 형식 @font-face { font-family: '글꼴 이름'; src: url('./images/글꼴 파일.eot'); /* IE9 호환성 보기 */ src: url('./images/글꼴 파일.eot?iefix') format('eot'), /* IE6-IE8 */ url('./images/글꼴 파일') format('woff'), /* Modern Browsers */ url('./images/글꼴 파일') format('truetype'), /* Safari, Android, iOS */ url('./images/글꼴 파일.svg#svgFontName') format('svg'); /* Legacy iOS */} http://circlash.tistory.com/578 더보기
[ruby] iconv사용하여 한국어 변환하기 http://blog.superkdk.com/?p=79 더보기
[linux] top 메모리 사용률 순서대로 볼려면 http://blog.naver.com/PostView.nhn?blogId=kkh0879&logNo=70104682920 SHIFT+P : CPU 사용률이 많은 프로세스 순서대로 정렬 SHIFT+M : MEMORY 사용률이 많은 프로세스 순서대로 정렬 SHIFT+T : 실행 시간이 오래된 프로세스 순서대로 정렬 SHIFT+B : 주요값을 밝게 표시 [출처] Linux top 사용과 정보 설명|작성자 미친푸우 더보기
[linux] top 명령어에서 virt는 http://knight76.tistory.com/entry/TOP-%EC%9D%84-%ED%86%B5%ED%95%B4-%EB%B3%B8-%EB%A6%AC%EB%88%85%EC%8A%A4-%EB%A9%94%EB%AA%A8%EB%A6%AC VIRT는 프로세스가 전에 사용했던 가상 메모리의 전체 크기를 말한다. code, data, shared library 등을 포함한다. top 명령어는 각 프로세스의 /proc/#pid/state 의 VmSize 의 내용을 가지고 이 정보를 보여준다. swap + res 영역을 더한 값이다. 이 값이 크면, 얼마나 많은 메모리가 접근하고 있는지를 알 수 있는 지표가 된다.RES는 프로세스가 사용중인 RAM 에 올라간 물리 메모리 (swap 제외) 를 말한다. SHR는 프.. 더보기
[ruby on rails] counter cache 걸고 create, delete가 아닌 update햇을때 변경방법 http://stackoverflow.com/questions/5758339/how-to-update-counter-cache-when-updating-a-model 모델명.increment_counter ( 컬럼명, 모델객체 ) 요런식으로 더보기