Monday, March 28, 2011

DOS Command Line Batch File 문법

%0 is the program name as it was called,
%1 is the first command line parameter,
%2 is the second command line parameter,
and so on till %9.

%CmdCmdLine% will return the entire command line as passed to CMD.EXE
%* will return the remainder of the command line starting at the first command line argument (in Windows NT 4, %* also includes all leading spaces)
%~dn will return the drive letter of %n (n can range from 0 to 9) if %n is a valid path or file name (no UNC)
%~pn will return the directory of %n if %n is a valid path or file name (no UNC)
%~nn will return the file name only of %n if %n is a valid file name
%~xn will return the file extension only of %n if %n is a valid file name
%~fn will return the fully qualified path of %n if %n is a valid file name or directory

예제 : Gnomonology Rendering Zbrush Displacement Maps 를 만든 Scott Spenser 의 배치 파일

:convertfile
@IF %1 == "" GOTO end
imf_copy -p %1 "%~d1%~p1%~n1.map"
@SHIFT
@GOTO convertfile
:end
@ECHO.
@ECHO Done!
@pause

출처 : http://www.robvanderwoude.com/parameters.php
키워드 : Command line parameters
미러 : Dos Batch File Parameters

Google 의 instant 기능 (입력과 동시에 검색되는 기능) 끄는 법

질문 : Google 에서 입력과 동시에 검색되는 기능 끄는 법?
답 : Search 버튼 우측에 instant on/off 옵션이 있다. 이걸 Off 로 해주면 된다.
키워드 : 자동 입력, auto

Saturday, March 26, 2011

RAR file 을 extract 할 때 "not RAR archive" 에러 나는 이유

질문 : ".rar is not RAR archive. No files to extract" 와 같은 에러가 나는 이유
요약 : password protection 문제일 가능성이 큼
설명 : File corrupt 가 아니라 password protection 이 걸려 있는 경우가 많다. UnRarX 등의 유틸리티에서는 password 가 걸려 있을 경우 그냥 error 메시지를 보여준다.
레퍼런스 : Unarchiver wont open .rar files

Friday, March 25, 2011

AppleScript 에서 file exists 여부 파악하기

set msg to "no"
tell application "Finder" to if exists "/usr/bin/gzip" as POSIX file then set msg to "yes"
display dialog msg

출처 : Check if file exists

Thursday, March 24, 2011

SWF 파일 등을 보는데 편리한 플래시 뷰어

질문 : SWF 등 플래쉬 파일을 볼때 컨트롤러나 timeline 가 없어 불편한데 편리한 플래시 뷰어는 없는가?
요약 : Eltima SWF & FLV Player (Elmedia Player) 가 좋음
설명 : 공짜 소프트웨어임 freeware
레퍼런스 : http://mac.eltima.com/freeflashplayer.html
키워드 : 프로그레스 바, progress bar, flash, adobe, flash file format, 어도비, 플래시, viewer, controller, play, stop, pause, 타임라인

마이크로소프트 워드에서 개행문자를 검색하는 법

질문 : Microsoft Word 에서 개행문자를 Search and Replace 하는 법?
요약 : ^p 로 찾으면 됨
부연 : 참고로 TAB(탭)은 ^t
키워드 : 오피스, MS office

Monday, March 21, 2011

Prezi

http://prezi.com/
Web 2.0 으로 각광받는 프레젠테이션 툴
키워드 : Powerpoint, Power Point, Slides, 프리젠테이션, presentation

Saturday, March 19, 2011

Ruby on Rails

루비온레일즈 - 빠른 웹개발 툴
http://en.wikipedia.org/wiki/Ruby_on_Rails

Monday, March 14, 2011

Prevent websites from resizing Firefox’s browser window

질문 :파이어폭스의 창 사이즈가 자동으로 변경되는 것 방지하는 법?
답 :
1. Go to Tools > Options (맥에서는 Preference)
2. Click on the Content tab
3. Next to where it says “Enable Javascript”, click on Advanced
4. Uncheck the option “Move or resize existing windows”
레퍼런스 : http://www.techspot.com/blog/73/prevent-websites-from-resizing-firefoxs-browser-window/
(Prevent websites from resizing Firefox’s browser window)

Friday, March 11, 2011

amule doesn't start

Q : amule doesn't start
A : Try deleting "muleLock" file. Location is:
Home > Library > Application Support > aMule > muleLock
(Mac OS X)

in-house tool 만들때 간편하게 에러처리하는 법

요약 : 에러를 리턴하는 간편한 방법으로, "-666ΩΩΩΩΩ" 같이 입력할 가능성이 거의 없는 스트링을 리턴하게 하는 방법이 있다. 별도의 처리를 안해줘도 하나의 리턴값으로 처리 가능하므로 코드가 깨끗해진다. 판매용이 아닌 회사 내부에서만 쓸 툴을 짤 때 쓰기 좋은 방법이다.
키워드 : error handling, 에러 핸들링, return value

Wednesday, February 16, 2011

blogger 에서 upload 한 사진파일이 저장되는 곳

질문 : blogger 에서 upload 한 사진파일들을 관리하려면?
요약 : https://picasaweb.google.com에서 하면 됨
설명 : Edit > Organize & Reorder 를 실행하면 이미지들을 선택하여 삭제할 수 있음
사진 파일들은 기본으로 전체공개되므로 공개 설정을 Private로 바꿔줄것.
키워드 : picasa, picassa, 피카사

Friday, January 28, 2011

TextEdit 에서 Table 제거하는 법?

질문 : TextEdit 에서 Table 제거하는 법? (Html 복사해오면 테이블로 원치않는 서식이 생겨버리는 경우가 있다)
요약 : Table 있는 부위에 오른클릭하고 메뉴에서 Table 선택한 후 row, col 을 0 으로 만든다

Friday, January 21, 2011

Static front page for Blogspot

Setting and Creating a static front page for Blogspot
레퍼런스 : Setting and Creating a static front page for Blogspot
검색어 : google > blogspot page front
키워드 : blogger, homepage, 홈페이지
참고링크 : Blogger Static Frontpage Generator
추가 : 그냥 google sites 에서 홈페이지를 만들고 링크 거는 것도 좋은 방법

Thursday, January 20, 2011

gmail notifier

질문 : 웹메일을 쓰면서 메일 온것 알려주는 간단한 어플리케이션?
답 : google notifier 쓰면 됨

설명 :
메일 뿐 아니라 시간에 맞춰 alert 주는 기능 등이 포함돼있음
gmail 과 google calendar 에 사용.

문제해결 :
깔고나면 디폴트로 메일 체크를 약 한시간에 세번 꼴로 (약 20분 간격) 하는데,
이렇게 하면 메일을 오는 즉시 체크하지 못한다.
1분 간격으로 바꿔주고 싶으면 terminal 을 열고 다음을 실행하면 된다.
defaults write com.google.GmailNotifier AutocheckInterval 1
실행하고 google notifier 재시작하면 됨.

레퍼런스 :
http://toolbar.google.com/gmail-helper/notifier_mac.html
Google Notifier (Mac) - Long delay between checking for messages (20+ minutes)
Make Google Notifier check more often?

Saturday, January 15, 2011

Blogger Static Frontpage Generator

Blogger Static Frontpage Generator
Link : http://www.xamuel.com/static-blogger-frontpage/
기타 : How to Improve Blogspot
키워드 : front page, blog

Wednesday, January 12, 2011

Mac OS X에서 keyboard shortcut 를 사용자 정의 하는 법

질문 : User defined keyboard shortcut 만드는 법
답 : 링크 참조.
Create a zip archive via a keyboard shortcut
인용 :
All you have to do is go to System Preferences, open the Keyboard & Mouse preference pane, and then click over to the Keyborad Shortcuts tab. Finally, click the plus sign at the bottom and fill in the following information:
  • Application: Finder
  • Menu Title: Create Archive
  • Keyboard Shortcut: Command-Shift-Z (or whatever you like)

Saturday, January 8, 2011

맥 앱스토어 오픈

“SW 패키지 시대는 갔다”…애플, 맥 앱스토어 오픈
http://www.bloter.net/archives/45971