• macbook 프로와 imac을 썬더볼트 케이블로 연결한다.
  • imac에서 CMD F2 를 누른다. 토글 되는 방식
    • imac은 오리지날 맥 키보드를 사용해야 한다. 왜지???
    • 토글이 안되면 imac의 pram을 reset하자.
      • 전원을 종료하고 전원을 시작할때 둥 소리가 날 것이다. 동시에 왼쪽 Option Cmd R 오른쪽 Option Cmd P를 동시에 누르자. 한번더 둥 소리가 나면 imac을 종료하고 다시 시작하자.
    • 잘되는군. 이것땜에 A/S직원과 1시간 통화했다. (2012.12.31)

Posted by likechad

iphone과 kindl3 를 사용하고 있다. IOS 4.3 update하고나서 핫스팟 기능을 이용하여 지하철에서 kindle3를 이용해 웹 브라우징을 하고 싶었다. 평소 구글 리더를 사용하기에 새창 지원을 안하는 킨들 브라우저가 야속했지만 앞서 언급한 사이트를 이용한다면 야속함도 곧 잊게 된다.
Posted by likechad


Computer 2011.02.01 10:33
alt + shift + G                            = 캡쳐
alt + G                                     = screen refresh
shift + alt + m                            = 게임 minesweeper / 오목 (메뉴에서만)
alt + home                                = Kindle Store
파워 슬라이드  7초                     = 킨들 끄기
파워 슬라이드 15초                    = 킨들 리부팅
shift + alt + m                           = 게임 minesweeper / 오목 및 다운받은 게임
책읽는 중
5 방향키에서 오른쪽 / 왼쪽        = 다음 / 이전 챕터
alt + B                                    = add and remove bookmarks
shift + Sym                              = Turn text to speech on and off / 플레이중 AA키, 목소리 남/여 속도 변환
alt + space                             = turn music on and off
alt + f                                     = skip to next track
이미지 뷰어
q                                           = zoom in
w                                          = zoom out
e                                           = reset zoom
c                                           = actual size
f                                            = full-screen, 위아래 메뉴 없어짐 / 다시 돌아옴
r                                            = rotate, 반시계방향 90도 / 다시 돌아옴
5방향키                                  = 화면 이동
숫자키                                   = 페이지가 되돌아가거나 넘어가는데...왜있는지 모르겠음 ㅎ
Setting 내에서..
Alt+RQQ  (411)                        = 무선기기 정보
Alt+YQQ  (611)                        = 3G 정보
Alt+UQQ  (711)                        = Wifi 정보
그외 팁
아마존아이디 @kindle.com           메일로 문서 보내면 무선으로 전송, 3G
아마존아이디 @free.kindle.com     메일로 문서 보내면 무선으로 전송, 무료 wifi
아마존아이디 @kindle.com           메일로 제목에 Convert라 기재 후 문서보내면 azw 킨들문서로 변환 후 전송
아마존아이디 @free.kindle.com                                      "                                                                   , 무료
[출처] 킨들3 단축키 (e-book 카페) |작성자 눈팅돌이

Kindle 3 Keyboard Shortcuts (Ver 1.8)


  • To copy text from a book to the search box (eg to search for a character’s name):
    • Use the 5-way to cursor down to the beginning of the text you want to copy
    • Click the 5-way to mark the beginning
    • Use the 5-way to move right, selecting the word(s) you want to search for
    • Instead of clicking again as you would to save a highlight, press SPACEBAR
    • The selected words are now in the search box. Move the cursor down or right, delete any extraneous characters, then move down and right to highlight ‘Find’. Click to search.
  • Clear text from search/edit box: ALT+DEL
  • Default search action: when the action on the right of the search box is the one you want, you do not have to use the 5-way to move to highlight it first; you can just press ENTER (or click)
    • Similarly, if the cursor is in the URL field of the web browser, the action shown to the right is the default and you can just press ENTER
  • The SYM key is only active when a search/edit box is active
    • To start a search from the Home screen with a symbol, press DEL or ENTER to open up a search box, then press SYM
    • In other screens, DEL or ENTER will not work; to open a search/edit box so you can use SYM, type a space and then delete it
  • For when you don’t even know what day of the week it is:
    • Search for DATE or TIME from the home screen
    • It is the first item in results; select it
    • To just see the time without searching, press MENU
  • @help – list all functions available for searching from the Home screen:
    • @dict <keyword>
    • @help
    • @print [no idea what this does]
    • @store <keyword>
    • @url <url> (goes to browser if no URL)
    • @web <google search term >
    • @wiki <keyword>
    • @wikipedia <keyword>

Text-to-Speech (TTS)

  • Start/Stop: SHIFT+SYM
    • To start at a specific spot, use the 5-way to position the cursor first
    • When TTS is on, BACK turns it off v1.8
  • Pause/Restart: SPACEBAR
    • When TTS is turned on, most of the keyboard is locked; if you press SPACEBAR or use Aa to pause TTS, you cannot manually navigate through the book because TTS is still active, and it may appear that the Kindle has frozen. Press SPACEBAR to resume TTS, or press SHIFT+SYM, BACK or HOME to turn off TTS entirely. The Aa key also still works. v1.4
  • TTS won’t work if the publisher has disabled TTS for the book; TTS status can be found under the book pricing in the Kindle bookstore v1.4
  • TTS only works when you have a book open v1.4

Voice Guide

  • Turn on/off: Home->Menu->Settings->Page 2->click ‘turn on’/'turn off’ v1.5
    • If you only have one page of settings, the Kindle is not yet registered or has not yet ‘talked’ to the Amazon servers; you need to turn on wireless (if you don’t have wi-fi (or 3G) yourself, you may need to find a wi-fi hotspot)
    • I don’t know of any keyboard shortcut for turning the voice guide on/off; it seems the most obvious candidate for a shortcut
  • The voice guide, which lets you navigate your Kindle with spoken menus, selectable items, and descript-xions, is separate from TTS, which reads the text of a book/document (unless the publisher has disabled that ability)

Background Music

  • Play/Stop: ALT+SPACEBAR
  • Next track: ALT+F
  • Music files must be MP3s in the Kindle’s ‘music’ folder


  • Minesweeper: ALT+SHIFT+M from Home screen
    • MENU for game options
  • GoMoku: G from Minesweeper


  • Rescan for files: ALT+Z
  • Jump to page: <number> then click or ENTER
    • To type numbers, use ALT+Q to P for 1 to 0
  • Jump to Author or Title: <first letter> then click or press ENTER when in Author or Title sort order respectively. For example, to go to titles beginning with ‘M’:
    • First make sure it says ‘By Title’ on the right near the top of the Home screen; if it doesn’t: v1.8
      • Use the 5-way to move up to that line
      • Move right with the 5-way to display the sort options
      • Use the 5-way to underline ‘Title’ and click the 5-way
    • Back on the Home screen, press the letter ‘m’
    • The search box will appear with the letter ‘m’ showing, along with the wording ‘click to got to M titles’
    • Click the 5-way


  • Capital letters when typing: Hit SHIFT first, then the letter; no need to hold them down together
  • Numbers: ALT+Q to P = 1 to 0 or press SYM when search/edit box is active
    • Like SHIFT for capital letters, ALT is sticky, so you can type ALT followed by a letter on the top row (ALT, Q, ALT, W, ALT, E types 123)
  • Redraw screen: ALT+G (removes ghosting)
  • Screenshot: ALT+SHIFT+G or ALT+SHIFT+H v1.7 (saves a .GIF in the Kindle document directory)
    • The screen flashes for both ALT+G and ALT+SHIFT+G. As it is easy to do an ALT+G by mistake, ALT+SHIFT+H may be a safer way to do a screenshot.
  • Display the time: MENU displays the time at the top of the screen
  • Display amount of space left on the Kindle: MENU from the Home, Settings, or Experimental screen
  • To see if you still have books indexing, from the home screen type a nonsense search like ‘xzwwx’ [or even just a period] and press ENTER. If the search result says ‘No items’, indexing has finished; if one or more items are listed, indexing is still in progress. If a book gets ’stuck’ on indexing, delete it, let other items finish indexing, then re-download the book to see if it will index.
  • Shop in the Kindle store: ALT+HOME v1.5
  • Display Serial No and Barcode: ALT+SHIFT+. (period) v1.5
  • To restart your Kindle 3 (solves a myriad of problems):
    • If it is charging, disconnect from the power/computer
    • Soft restart (when the buttons are working): HOME – MENU – SETTINGS – MENU – RESTART
    • Hard restart (when everything seems frozen): Slide and hold the power switch for 30 seconds, then wait a minute or two
    • When you restart, you will see the boy under the hill and a progress bar
      • If you wait a couple of minutes and still only see a blank screen, you have not held the power switch for long enough and have turned the Kindle off
  • To turn the Kindle off completely (blank screen), slide and hold the power switch for around 7 seconds. v1.8
    • It is recommended to only turn the Kindle off if it is not going to be used for a long time (weeks).
  • From Settings screen:
    • Change 3G provider: type 311 (ALT+EQQ)
    • Kindle Serial No et al: type 411 (ALT+RQQ)
    • 3G Modem information: type 611 (ALT+YQQ)
    • Wi-fi Modem information: type 711 (ALT+UQQ)


  • Add/remove bookmarks: ALT+B
  • Zoom in on an illustration: use the 5-way to position the cursor over the picture; the cursor will change to a magnifying glass with a + sign; click to zoom; the K3 will display the illustration in landscape if that is a better fit than portrait
  • Chapter marks: some, but not all, books have dots along the reading progress bar when you first open them
    • You can use the 5-way to move left and right between chapters
    • Your bookmarks, notes and highlights also add dots to the progress bar; you cannot use the 5-way to move between these marks
  • Nudge the selection frame when a PDF document is zoomed, or when panning a zoomed document: SHIFT+5-way direction
  • Delete multiple bookmarks, highlights, notes:
    • Select ‘View My Notes & Marks’ from the menu
    • Use the 5-way to move to the note/mark to be deleted
    • Press DEL
    • Repeat for each note/mark to be deleted
  • When reading an Amazon format book, use the Aa key to:
    • Change font size and typeface
    • Change line spacing and words per line
    • Turn on Text to Speech if enabled for your current book
    • Change screen orientation
  • When reading a PDF, use the Aa key to:
    • Change zoom level
    • Change contrast
    • Change screen orientation

Sorting Collections

  • When in Collections sort order, the collections will display in sequence of most recently accessed, followed by subscript-xions and books not in any collection
  • When in Title sort order, the collections display along with all your individual books, in Title sequence
  • You can control the Title sort order by using collection names that start with a symbol that sorts before the alpha characters in book titles. My collections are:
    • (Reading: current)
    • (Reading: fiction)
    • (Reading: non-fiction)
    • [Genre 1]
    • [Genre 2]
    • [Genre 3] etc
    • {Author 1}
    • {Author 2} etc
  • On the Home screen, use the 5-way to move to the top line, move right, and change sort order to ‘Title’
  • When in Title sort order, my collections display first in the order shown, followed by all the individual books
  • Other naming options include using different or multiple starting symbols, starting collection names with AAA or numbers etc. It has been reported that starting collection names with a period causes problems and that if you start with an asterisk, you should put a space after the asterisk.
  • To see just your collections (plus subscript-xions and books not yet in a collection), on the Home screen, use the 5-way to move to the top line, move right, and change sort order to ‘Collections v1.8

Adding Books to Collections

  • To add multiple books to a collection: v1.8
    • On the Home screen use the 5-way to move to the collection
    • Move the 5-way to the right to display the collection’s detail page and click on ‘Add/remove items’
    • Use the 5-way to move up and down the list of all your books, clicking on each book you want in the collection
    • A check-mark appears next to books in the current collection; click again to remove a book from the collection
    • Use Next Page and Previous Page if you have multiple pages of books
  • To add a book to one or multiple collections:
    • On the Home screen use the 5-way to move to the book title
    • Move the 5-way to the right to display the book’s detail page and click on ‘Add to collection …’
    • Use the 5-way to move up and down the list of collections, clicking on each collection you want the book to be in
    • A check-mark appears next to each collection in which the book will be listed; click again to remove it from that collection
    • Use Next Page and Previous Page if you have multiple pages of collections
  • Books added to collections will still be listed on the Home screen unless you change your sort order to ‘By Collections’

Photo Albums

  • Connect your Kindle via USB
  • Create a folder called ‘pictures’ in the root directory of the Kindle; it should be on the same level as the ‘documents’ folder
  • Open the ‘pictures’ folder and, inside it, create a new folder with the name you want your album to have (eg ‘Family’)
    • You can create multiple albums by creating multiple folders inside the ‘pictures’ folder
  • Copy your JPG, GIF and/or PNG pictures to the album folder (make sure they’re not too big – 600 x 800 should be fine)
  • Safely eject the Kindle when the copying has finished
  • Go to the Kindle Home screen and press ALT+Z to refresh the listing
  • Your album will appear as a new ‘book’ which has one page for each picture; when in an album, the Menu button presents a picture-specific menu
  • I have found these a bit intermittent, but the following keys are generally active when viewing the pictures: v1.8
    • q : zoom in
    • w : zoom out
    • e : reset zoom
    • r : rotate
    • 5-way directional buttons : pan

Archives and Deleting Books Forever

  • Background:  v1.8
    • When you look at ‘Archives’ on your Kindle, you will see a list of books purchased from Amazon that are not on your Kindle.
    • Amazon books on your Kindle + Books listed in archives = all books purchased from Amazon.
    • If you remove an Amazon book from your Kindle, the number of books on your Kindle decreases by one, and the number of books listed in your archives increases by one.
    • All books purchased from Amazon are stored on the Amazon servers and can be downloaded to the Kindle at any time by selecting it from the archive list (as long as you have a Whispernet connection).
    • Personal documents and books purchased from sources other than Amazon are not stored on the Amazon servers and you must keep your own backup copy.
  • Removing books from the Kindle
    • To remove a book from your Kindle, use the 5-way to move to the book title and then move the 5-way to the right to display the book’s detail page.
      • You can also move the 5-way to the left, but it’s very easy to accidentally delete a collection when you do that
    • Select the option "Remove from Device".
      • If the option is "Delete This Document" rather than "Remove from Device", the book was not purchased from Amazon; if you delete it, there will not be a backup copy on Amazon’s servers.
      • Occasionally, a book gets "stuck" and cannot be removed; instead, it remains greyed out on the Kindle even after you remove it. If this happens, connect the Kindle to you computer via USB and manually delete the book’s .azw (or .azw1 or .tpz) file and its matching .mbp (or .tan) file.
  • Deleting books forever
    • To permanently delete a book from the Amazon archive, you need to go to your Manage Your Kindle page on the Amazon web site
    • Locate the book in ‘Your Orders’
    • Click on the + to the left of the book title to show additional options
    • Click on the ‘Delete this title’ button
    • Warning: this is a permanent delete. If you want to read the book again, you will have to re-purchase it from Amazon.
    • If a book has been removed from your Kindle and does not appear in ‘Your Orders’, but still appears in your archive list on the Kindle, you have probably moved the book to trash in Your Media Library. To check:
      • Go to Your Account on the Amazon web site
      • In ‘Digital Content’, click on the link to ‘Your Collection’
      • Once in Your Collection, click on the drop-down box and select ‘Trash’
      • Take the book out of Trash
      • Go back to Manage Your Kindle; the book should now appear in Your Orders and can be deleted.

Book File Formats

  • AZW: This is the format of most books purchased from Amazon; it is a modified version of the .mobi format and can be read only by the Kindle and Kindle apps. v1.7
    • Most, but not all, books purchased from Amazon have Digital Rights Management (DRM) which prevents copying from one device to another. DRM’d books must be downloaded separately for each device.
    • Samples are usually DRM-free.
    • Bookmarks, notes etc are saved in an .mbp file.
  • TPZ/AZW1: "The dreaded Topaz format" is an Amazon format which can contain embedded fonts and other rendering control.
    • Files in this format have an .azw1 extension when they are delivered via Whispernet or a .tpz extension when they are delivered via file download.
    • It is likely all books in this format have DRM.
    • If the product details for a book show the number of pages but no file size, it is likely it is in Topaz format.
    • Bookmarks, notes etc are saved in a .tan file.
    • Fortunately, relatively few books purchased from Amazon come in this format, which often behaves badly. For example, your last-read position may not be remembered when the Kindle goes to sleep.
      • It often helps to press HOME when you are finished reading, rather than leaving the book open.
  • Unprotected MOBI/PRC: The Mobipocket format is based on XHTML.
    • Either the .mobi or .prc file extension can be used; the .prc extension arose because PalmOS does not recognise files with a .mobi extension.
    • The Kindle does NOT support protected .mobi files. Even though Mobipocket is now owned by Amazon, protected mobi files have DRM which the Kindle does not handle.
    • Free books formatted for the Kindle from the catalogues of sites such as Feedbooks, MobileRead, and Gutenberg will come in unprotected mobi or prc format.
  • TXT: Plain text files are small and can be read on almost any device, but lack formatting.
  • Non-ADE PDF: PDFs are often used where layout is important and may contain embedded fonts, tables, diagrams etc.
    • PDFs which require ADE (Adobe Digital Editions) are protected and cannot be read on the Kindle.
    • You can read password-protected PDFs on your Kindle.
    • PDFs are often formatted for A4 or letter size pages and do not reflow (change their line length and page size to suit the screen size).
    • If layout is not critical in a PDF, it is often better to convert it to an AZW via Amazon’s conversion service (remembering to put Convert in the subject line of the email) or using a program such as Calibre.
  • AZW2: ‘Active content’ such as games have an AZW2 extension.: v1.8
    • These files have DRM and cannot just be copied from one Kindle to another (Active content is not yet available to users outside the US, so I can’t test this)
  • Conversion from other formats: Other book formats require conversion to .mobi format before they can be read on the Kindle.
    • Amazon’s conversion service: Unprotected DOC, DOCX (experimental), TXT, RTF, JPG, GIF, PNG, BMP, ZIP (converts the enclosed files), PDF (with Convert in the subject line)
    • Calibre: Unprotected CHM, EPUB, FB2, HTML, LIT, LRF, ODT, PDB, PDF, RB, RTF, TCR, TXT
    • Any file which requires the use of ADE (Adobe Digital Editions) is protected and cannot be converted.
  • HTML without conversion: If you have a simple HTML/XHTML file, you can read it on the K3 without conversion:
    • Change the file extension to .txt (eg rename Book.html to Book.txt) and then copy it via USB to the Kindle’s documents directory.
    • The Kindle
      will display the file complete with HTML formatting. HTTP links to web sites will work, but not links to other files on the Kindle itself.
    • Nested tables are not supported, even when converted to mobi format; these may need to be converted to PDF to retain formatting.
    • Very large tables, even if they are simple, unnested tables, may not render correctly.
Posted by likechad
최근에 게임엔진들을 다루면서 구현부의 상당부분이 C# 으로 구성되어 있는 것들을 많이 발견했다. Unity3D, neoAxis 등등 .net에 대한 무뇌한인 나에게 크나 큰 자극을 안겨줬다. 하지만 고마운 Charles형님 덕에 쉽게 C#에 대해 공부할 수 있었다. 물론 imperative paradigm의 언어들은 워낙에 비슷해서 그렇게 크게 어렵지는 않았다.


Charles Petzold는 "Programming Windows" 라는 책의 저자로도 유명하신 분이다. 처음 윈도우즈 프로그래밍에 입문할 때 너덜 너덜 해질 정도로 보았던 기억이 있다. 정말 밥이라도 한끼 대접해 드리고 싶은데 아쉽다.

Charles Petzold가 쓴 ".NET book zero"라는 책은 c, c++ 개발자를 위한 책이다. c, c++ 개발자가 .net에 대해 알아야 할 것은 무엇인가? 라는 테마로 내용을 전개한다. 어떻게 빌드하고 실행하고 문법은 어떻게 되는지 등등등 감미로운 내용들로 가득하다. 정말 짧은 시간안에 새로운 언어를 알게 해준 Charles에게 고마움을 표하면서 나와 비슷한 누군가에게 도움이 되고 싶어 책을 추천한다. 공짜라는게 너무 사랑스럽다.
Posted by likechad
TAG .net


Computer 2010.12.09 11:44


  • .net zero book by chales petzold
    • c,c++를 알고 .net에 처음 진입한다면 꼭 읽자.
    • .net의 개념을 체계적으로 설명해준다. petzold에게 밥이라도 사고 싶은 심정
  • Algorithms in a nutshell
    • 알고리즘 카탈로그
    • 번역서는 개판이다.
  • Introduction to algorithm
    • CLRS 라고한다. MIT알고리즘 교재
  • C로 배우는 알고리즘 by 이재규
    • 국내 알고리즘 저서중 가장 좋다고 자부하는 책
    • 쉬운 설명이 좋다. 동영상을 구했다면 당신은 책의 절반을 이미 이해할 준비가 되어있다고 봐도 좋다.
  • Producing Open Source Software: How to Run a Successful Free Software Project by Karl Fogel
  • Advanced Bash-Scripting Guide: An in-depth exploration of the art of shell scripting by Mendel Cooper 
  • An Incremental Approach to Compiler Construction by Abdulaziz Ghuloum, Indiana University
  • MinCaml: A Simple and Efficient Compiler for a Minimal Functional Language by Eijiro Sumii, Tohoku University
  • Lisp in Small Pieces
  • Compilers: Principles, Techniques, and Tools(The Dragon Book)
  • Programming Language application and Interpretation
  • Structure interpretation of computer programs
    • 어떻게 프로그래밍해야 하는지에 대한 책. scheme을 이용하여 설명하고 있음
  • How to Design Programs: An Introduction to Programming and Computing
    • SICP보다 쉽다고 해서 안보고 있는 책
  • Real world haskell
  • Dive into python
  • Practical common lisp
    • common lisp의 3대 필독서중 하나

  • The Practice of Programming
    • 어떻게 프로그래밍하느냐에 대한 책
    • 유명한 kernigan과 rob pike가 저술함
    • 쉽다고 해서 안보고 잇는 책
  • Why Programs fail
    • 현실적인 디버깅에 관한 책
  • The art of programming (1, 2, 3)
    • 유명한donald knuth의 아직 연재가 끝나지 않은 저서
  • Code complete
    • software 개발의 모든 단계를 열거한 책
  • Design patterns
    • 이해하기 어렵긴 하지만 나선형 학습법으로 봐두면 좋다.
    • 많이 아는 사람과 쉽게 설명하는 사람은 분명히 다르다.
  • The pragmatic programmer
    • 코딩과 툴의 사용법을 가르쳐주는 것이 아닌 실제적인 업무에 관한 겪언서
  • C programming language
    • C를 사용하는 사람이라면 닥치고 봐야함. BIBLE
  • Refactoring
  • The Mythical Man-month (맨먼스미신)
  • Head First Design Patterns
  • Code : Hiddend Language of Computer Hardware and Software
  • Programming Pearls
    • 다양한 문제들이 기재되어 있는 책
  • Effective c++
  • Effective Java
  • Test Driven Development
  • C++ programming Language
  • 호모루덴스 by 호이징거
    • 기획자 필독서
  • 놀이와 인간 by 로제카이와
    • 기획자 필독서
  • 플로 by 미하이칙센트미하이
    • 기획자 필독서
Posted by likechad

code training

Computer 2010.11.19 22:59


  • 한글판 ICPC
  • hello world 는 어디간겨???

Sphere Online Judge (ICPC)

  • 이곳도 ICPC online judge site 같다.

UVa online Judge (ICPC)

  • 이곳도 ICPC online judge site 같다.


  • ACM ICPC 문제들이 수록되어 있다.
  • 코드 사이즈, 메모리 등등을 측정하여 점수를 부여한다.


  • An archive of hundreds of challenging logic puzzles with a wide range of difficulty. Problems are labeled if they require any special knowledge of math, physics, computer science, or chess.
  • 수많은 문제들이 난이도 별로 정리되어 있다. 수학, 물리, 컴퓨터공학등 카테고리 분류도 잘되 있다. 그런데 답은 어디있지???

C Puzzles

    • C Puzzles features programming puzzles specific to the C Programming language (and all of its quirks). Since many languages are C-style or derived directly from it, even if your native programming tongue isn’t C, there’s a strong likelihood that you’ll still appreciate and understand these puzzles.
    • 재미있는 c 퍼즐 문제다.

Programming Praxis

    • Programming Praxis is a blog that includes a range of interesting problems with solutions usually available in several different programming languages.
    • 여러가지 언어(haskell, awk, lua, python, scheme)로 해결해야할 문제들이 100문제 이상 가득하다.

Google Code Jam

  • A timed programming tournament where contestants solve algorithmic problems in the language of their choice. I don't know if Google has any plans to hold another tournament in 2009, but you can still check out the problems from the 2008 Code Jam to see how you measure up.

Python Challenge

    • Python Challenge features riddles that ask you to write small Python programs to solve. The difficulty level gets progressively harder and more cryptic. This is an excellent site for programmers/developers that like problem solving!
    • 문제를 해결해야 다음 문제의 URL을 알아 낼 수 있다.

Facebook Engineering Puzzles

  • Facebook has a collection of very challenging programming puzzles that–should you manage to solve them–could result in you getting a job at Facebook! Solutions are accepted in a variety of languages including Erlang, PHP, Perl, Python and Ruby.
  • 페이스북 취직시험 문제이다. 아직 한문제도 해결은 못했지만 문제 수가 적음


    • TopCoder is an active programming community of developers who love to solve puzzles. There are many active challenges and some of them with cash prizes.
    • 회원가입이 안된다. 서버 에러난다. (2010.11.17)

Ruby Quiz

    • Ruby Quiz is a collection of Ruby programming challenges that is updated weekly. Although made for Ruby, these challenges can be solved in other languages.


    • CodeKata is a blog of programming puzzles written by Dave Thomas, who’s most famous for the groundbreaking book, Pragmatic Programmer. The puzzles involve many issues that are directly relevant to real world programming so this is a good place to brush up on your coding skills.
    • 문제수가 21개 뿐임

Al Zimmermann’s Programming Contests

    • Al Zimmermann’s self-described "arena where demented computer programmers compete for glory and for some cool prizes" is a great way to participate in the programming community. Contests run every six months.
    • AI Zimmermann 이라는 사람이 개인적으로 진행하는 컨테스트 인 듯하다. 문제를 풀어 관리자가 인정하면 상품도 준다. 무슨 조각상 같은 거네...
    • 역사가 짧아서 문제가 몇개 안된다.

99 Prolog Problems

    • 99 Prolog Problems is suited to the Prolog programming language but people have provided solutions in Python, Ruby, Haskell, Scala and others. Working your way through these problems is a wonderful way to pick up a new language.
    • 해답도 모두 prolog로 되어 있다. 효율성을 고려하여 prolog로 구현해야 한다.
    • prolog를 배워서 logical programming paradigm으로 구현해 보고 싶다.

Microsoft Interview Questions

  • First, let me say that I'm completely biased against the practice of using "brain teaser" questions at job interviews. Many of these questions depend more on a "flash of insight" than on logical thinking or real-world problem solving ability. If you use this style of question to screen potential employees, be warned that you're probably really only testing whether or not a candidate has read similar problems in the past. Having said all that, these questions are still a lot of fun to solve outside a job interview.


  • Bills itself as "The social repository of the world's greatest brain teasers, logical puzzles and mental challenges." There are puzzles in a variety of categories including, Logic, Mathematics, Physics, Lateral Thinking, and Optical Illusions. New puzzles are added frequently, so check back often.
  • 아무것도 안나오네..
Posted by likechad

message pack

Computer 2010.11.08 18:44

message pack Intro

  • official site
  • bencoding 보다 많이 빠른 serialization library

message pack Install (python2.6)

  • cpython 을 설치한다.
    • msgpack module은 cpython을 이용해서 build해야 하나 보다.
  • https://github.com/msgpack/msgpack 에서 src 다운 받는다.
    • cd E:\my\py\
    • git clone https://github.com/msgpack/msgpack.git
  • cd msgpack
  • setup.py build -c mingw32
    • link error 가 발생한다.
    • _imp_ 어쩌구 link error 는 libpython26.a 를 제작해야 한다.
      • 이곳에서 python26.def를 다운 받는다.
      • dlltool --dllname "c:\windows\system32\python26.dll --def "c:\incomming\python26.def" --output-lib "c:\python2.6\libs\libpython26.a"
    • ntohl 어쩌구는 gcc.exe option에 -lws2_32를 추가해야 한다.
      • e:\local\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Release\msgpack\_msgpack.o build\temp.win32-2.6\Release\msgpack\_msgpack.def -LC:\Python26\libs -LC:\Python26\PCbuild -lpython26 -lmsvcr90 -lws2_32 -o build\lib.win32-2.6\msgpack\_msgpack.pyd
  • setup.py build -c mingw32
  • setup.py install

message pack Usage

Posted by likechad

win32 에서 github에 public key 등록하여 사용

  • win32에서 github사용을 수월히 하기 위한 방법을 적는다.
  • putty install

    • http://kldp.net/projects/iputty/ 에서 적당한 버전 down, install
  • git install

  • http://git-scm.com/ 에서 win32 적당한 버전 down, install
    • win32 console 로 실행할 수 있도록 설정합니다.
    • C:\Program Files\iPuTTY\plink.exe 를 사용하도록 설정합니다.
  • private, public key 생성 및 저장

  • C:\Program Files\iPuTTY\puttygen.exe 실행
  • Parameters | Number of bits in a generated key 를 2048로 수정
  • Actions | Generate 선택 및 마우스 움직이기후 키생성
  • Actions | Save public key 선택 및 적당히 local에 저장
  • Actions | Save private key 선택 및 적당히 local에 저장 (저의 경우 Key Comment는 github login id(mail address)로 하고 passphrase는 비웠습니다.)
  • Key | public key 내용을 Copy 하여 github에 login후 Account Settings | ssh public keys | Add another public key 선택후 key에 저장합니다. (Title은 비워두면 Key Comment로 채워집니다.
  • Pageant 실행 및 private key 등록

  • C:\Program Files\iPuTTY\pageant.exe 실행 (Tray Icon 에 Pageant 등장 확인)
  • Tray의 Pageant 우클릭후 Add Key 선택 및 앞서 저장한 private key를 선택
  • github 연결 테스트

    • win32 console에서 다음을 입력
      • C:\Documents and Settings\MYHOME>ssh git@github.com
Posted by likechad

euler project

Computer 2008.08.05 16:25

최근에 재밌는 곳을 찾아서 적어 본다. 이름하여 project euler... http://projecteuler.net/ 200 가지 이상의 문제들이 있다. 문제를 풀어 답을 맞추게 되면 타인의 답안을 열람할 수 있다. 물론 사용자 등록과 로그인이 이루어져야 한다. 문제들이 너무 산수다... 시간이 정말 남을때만 하나씩 해야 겠다.

동일한 문제를 다양한 언어로 풀이된 것을 보고 있으면 견문이 넓어지는 기분이다. 물론 답을 맞추었을 경우의 이야기이다. 아래는 일번 문제와 다른 사람들의 몇가지 solution 을 적어본다.

함수형 언어를 공부해야 겠다는 다짐을 다시 하게된다...


If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.



$x = 1000;
echo 1.5*(int)(($x-1)/3)*(int)(($x+2)/3) + 2.5*(int)(($x-1)/5)*(int)(($x+4)/5) - 7.5*(int)(($x-1)/15)*(int)(($x+14)/15);


sum [n | n <- [1..1000-1], n `mod` 5 == 0 || n `mod` 3 == 0]


lists:sum([X || X <- lists:seq(1,999), X rem 3 =:= 0 orelse X rem 5 =:= 0]).


sum([x for x in range(1,999) if x % 3 == 0 or x % 5 == 0])


; for each integer from 1 to 1000
mov ecx, 3
mov esi, 3
mov edi, 5
xor ebx, ebx ; sum
_0: mov eax, ecx
xor edx, edx
div esi
test edx, edx
je _yes
mov eax, ecx
xor edx, edx
div edi
test edx, edx
jne _no
_yes: add ebx, ecx
_no: inc ecx

cmp ecx, 1000
jne _0

Posted by likechad
역시 구글신에게 감사... Chatzilla standalone 으로 검색해서 찾았다...

Chatzilla 는 내가 주로 사용하는 IRC client 이다. XUL 을 이용하여 만들어졌나 보다. FireFox 의 플러그인으로 동작하기 때문에 FireFox 을 죽여버리면 그냥 죽는다. 따로 standalone 으로 동작하길 바라는 맘에 구글신에게 여쭤보니 xulrunner 라는 것이 있었다. 앞으로 windows ui 프로그래밍을 좀 해야 하니 xul 에 대해 공부를 해봐야 겠다. 아직 xml ui 를 도입해서 프로그래밍을 해본적은 없다.


설치부터 실행까지 친절하게 나와있다. ㅋㅋㅋ IRC 접속 리스트를 xml 로 해놓은 것은 없나 쩝... 클라이언트간에 호환이 되면 좋을텐데... emacs 에서 해볼까 생각도 했지만 항상 띄워 놓고 있기에는 이게 최고다. xchat2 를 사용하긴 했지만 요것 요것... 내가 잘 사용하는 사전 프로그램이 xchat2 에서 잘 안된다. stardict 라는 것을 사용해서 마우스 온만으로 번역을 할 수 잇었는데... 전연되지 않았다... 아마 xchat2 가 gtk 로 만들어져서 인가...쩝....

역쉬 이럴땐 linux 가 더 좋다. linux 에서는 문제없이 잘 동작한다... 그런데 stardict 란 것은 공짜이지만 윈도우즈에서 FireFox 3.0을 설치하고 나니 잘안 되었다. 주로 브라우저에서 사용해야 하는 덕택에 다른 것을 찾아봤더니 babylon 이란 것이 있어서 요즘은 이걸 주로 사용하고 있다. 역시 상용이라 그런지 UI 도 미려하고 깔끔하다... 아직은 만족하고 사용하고 있는 중...

최근에는 전직 구글 검색 엔진 개발자일부가 퇴사하여 새로운 검색 엔진을 만들었다고 한다... http://www.cuil.com 구글 검색 창과 차이가 무언지는 좀더 써봐야 알 것 같다. 검색의 결과가 구글 것 보다 세배가 더 많다고 하는데... 똘똘하게 검색 해주는 센스를 보여준다면 주저 없이 선택할 것이다.

예 전에 추천 시스템이라는 주제로 연구 개발을 한 경험이 있다. recommendation system 이라고 하던가... 나의 수준이 알고리즘을 만들 경지는 아니었던 것 같다. 지금도 관심은 있지만 너무 능력밖이다. 예를 들어서 쇼핑몰에서 어떤 사용자가 주로 구입하는 제품의 경향을 통계적으로 산출하여 추천리스트를 만들어주는 시스템이다. 아마존닷컴에서 책 검색을 자주 하게 되는데 이곳의 추천시스템이 맘에 든다. 아마존의 추천 시스템의 구현에 대한 논문도 읽었던 경험이 있었다.

추천시스템을 구현해 놓은 것들은 많이 있다. slope-one 이었던가? 암튼 관심있던 것의 이름이 갑자기 떠올라서 언급한다. 위키피디아 신에게 여쭤보면 친절한 설명을 볼 수 있다.

Posted by likechad