Sunday, July 29, 2012

Insecure Startup Item disabled

질문 : 로그인 후 "Insecure Startup Item disabled" 혹은 "Insecure Startup Items folder detected" 에러메시지 뜰 때 해결법
답 : Mac OS X v10.6 or later: "Insecure Startup Items folder" message appears after logging in

Sunday, June 24, 2012

노트북 브랜드별 A/S 평판

노트북 살때 레노버 노트북은..
→ 레노버, msi, 기가바이트 등 A/S 평판 안좋은 이야기 올라와 있음
→ 노트북 A/S에서 가장 평이 좋은 브랜드는 삼성과 LG

Friday, June 15, 2012

Adobe Acrobat 에서 Hide Toolbars 하는 shortcut

F8 : 어도비 애크로뱃에서 툴바를 Hide 하는 hotkey

Wednesday, June 13, 2012

이어지는 '맥프로' 비난… 팀 쿡 직접 나서 "내년 출시"

이어지는 '맥프로' 비난… 팀 쿡 직접 나서 "내년 출시"
중앙일보 2012-06-13
애플은 세계 개발자회의에서 신형 맥북프로, 맥북에어와 함께 데스크탑 기종인 맥프로를 업데이트해 선보였다. 하지만 프로세서만을 업그레이드하는데 그쳐 “가격만 비싸고 새로울 것이 없다”는 악평이 이어지고 있다... 뉴욕타임스는 “익명의 애플 임원을 통해 알아냈다”며 “새롭게 디자인 된 애플 데스크탑 컴퓨터가 2013년 출시된다”고 보도했다. 한편 애플은 17인치 맥북프로 모델을 단종시켰다. 애플 홈페이지와 애플스토어에서 17인치 맥북프로의 자리는 모두 '레티나 디스플레이를 장착한 15인치 맥북프로'로 대체됐다.

"애플 맥 프로, 가격만 하이엔드급"

"애플 맥 프로, 가격만 하이엔드급"
앤디 허츠펠드 "달라진 게 없다" 폄하
2012.06.13. 수 03:48 입력
심지어 초기 매킨토시 개발팀 일원이던 앤디 허츠펠드마저 쓴소리를 하고 나섰다. 12일(현지시간) 씨넷에 따르면 앤디 허츠펠드는 구글플러스를 통해... "새로운 맥 프로 사양은 프로세서를 끌어올린 것 외에 여전히 썬더볼트도, USB 3.0도, SATA III도 없다"며 "가격만 하이엔드급"이라고 주장했다. 반면 그는 레티나 디스플레이를 장착한 새 맥북 프로에 대해서는 "환상적"이라 호평했다... 새 맥프로는 2013년에나 가능할 것이라고 매체는 전했다.

Sunday, June 10, 2012

OS X lion 에서 Spaces 순서 뒤바뀌는 문제 해결법

질문 : OS X lion 에서 Spaces 순서 뒤바뀌는 문제 해결법
답 : Systen Preferences > Mission Control 로 가서
Automatically rearrange spaces based on most recent use 체크 끔
키워드 : order, desktop2, desktop3, desktop 2, desktop 3
참고링크 : OS X Lion Mission Control - Why can't I organize my spaces the way I want to?

Saturday, June 9, 2012

pairs가 아닌 ipairs를 써야 하는 경우

다음같이 key 이름이 주어지지 않은 array 에 대해 pairs 를 하면 엉뚱한 garbage 값이 enumerate 되곤 한다.
(실제 elements 수보다 하나 더 많이 enumerate 되곤 함)
 sprites_aniLoopBnF_breakable = {   
      {["filename"]="enemyFlyGreen", ["w"]=42, ["h"]=58, ["numFrames"]=3, ["durationTime"]=2400},  
      {["filename"]="enemyFlyBlue", ["w"]=42, ["h"]=58, ["numFrames"]=3, ["durationTime"]=2400},  
      {["filename"]="df", ["w"]=100, ["h"]=106, ["numFrames"]=3, ["durationTime"]=2400}  
 }  
   
 function loadData(displayType)  
      for k, v in ipairs(sprites_aniLoopBnF_breakable) do  
           print(count .. ")", v.filename, v.w, v.h)  
           ...  
      end  
 end  

OS X 에서 Terminal 화면을 clear 하는 법

터미널 화면을 깨끗이 지우는 법
Command + K 하면 됨 (Clear Scrollback)

Friday, June 8, 2012

Corona SDK Memory Leak Prevention 101

Corona SDK Memory Leak Prevention 101
What is Memory Management?
Memory management in Corona is simply managing the following five things:
  1. Display objects
  2. Global variables
  3. Runtime listeners
  4. Timers
  5. Transitions
다음 코드를 main.lua 맨 밑에 넣으면 됨
 local monitorMem = function()  
   
   collectgarbage()  
   print( "MemUsage: " .. collectgarbage("count") )  
   
   local textMem = system.getInfo( "textureMemoryUsed" ) / 1000000  
   print( "TexMem:  " .. textMem )  
 end  
   
 Runtime:addEventListener( "enterFrame", monitorMem )  
키워드 : garbage collection, collectgarbage

Corona의 event (OnTouch 등)

이벤트의 이해
Understanding Corona’s enterFrame Event (enterFrame Event에 대해 이해하기)
The Corona Event Model explained

이벤트의 종류
Events and Listeners
  • Runtime Events : "enterFrame", "orientation", "accelerometer"
  • Targeted Events : "timer"
  • Touch Events : event.name = "touch"/ event.phase = "began", "moved", "ended"
인용 : when an event occurs, the listener will be invoked and be supplied with a table representing the event. All events will have a property name that identifies the kind of event.
검색어 : addEventListener corona event name
키워드 : 터치

Tuesday, June 5, 2012

TextEdit에서 . . .가 …로 자동변환되지 않도록 하려면

질문 : TextEdit에서 ...가 …로, TM이 ™으로 자동변환되는 것 등 안하려면
답 : Edit > Substitutions > Text Replacement 의 체크를 끈다
키워드 : auto conversion convert

Friday, June 1, 2012

드롭박스 인기 비결은 단순함과 공생

“드롭박스 인기 비결은 단순함과 공생”
블로터닷넷 by 이지영 | 2012. 05. 31
200여명이 채 안 되는 인원으로 전세계 179개국 5천만명이 넘는 사용자가 애용하는 서비스를 만든 회사가 있다. 글로벌 서비스임에도 샌프란시스코에만 둥지를 틀고, 사내 직원 중 60% 이상을 개발자로 채운 드롭박스 얘기다...

Tuesday, May 29, 2012

구글 안경

‘구글 안경’이 찍은 사진…“어, 양손없이도?"
ZDNet Korea 원문 기사전송 2012-05-28 18:21 최종수정 2012-05-28 18:21
구글이 준비 중인 안경형 헤드업 디스플레이(HUD, head-up displays), 일명 ‘구글 안경’으로 찍은 사진과 동영상이 대거 공개됐다. 구글은 안경형 디스플레이 관련 특허를 확보하는 등 제품 상용화에 박차를 가하고 있다... 현재까지 알려진 정보에 따르면 구글 안경은 안드로이드 운영체제(OS) 기반으로 연말께 출시될 예정이며 가격은 현재 출시된 스마트폰과 비슷한 선이 될 것으로 보인다.

Saturday, May 26, 2012

OS X Lion 에서 항상 스크롤바를 보이게 하는 방법

System Preferences > General > Show scroll bars 를 always 로 해줌
Always Show Scroll Bars in Mac OS X Lion

Thursday, May 24, 2012

Tip: Say Goodbye to Blurry Text for Good!

Tip: Say Goodbye to Blurry Text for Good!
Want a quick fix that will prevent text from being blurry on “retina” displays of any kind? Simply paste the following code at the top of your main.lua file (or put it in an external file and require-it in):

Wednesday, May 23, 2012

Corona에서 retina display 사용하는 법

config.lua 에 다음과 같이 넣는다.
 application = {  
      content = {  
           width = 320,  
           height = 480,   
           scale = "letterBox",  
           fps = 60,  
   
           imageSuffix = {  
       ["@1-5"] = 1.5, -- for Droid, Nexus One, etc.  
       ["@2x"] = 2,  -- for iPhone, iPod touch, iPad1, and iPad2  
       ["@3x"] = 3,  -- for various mid-size Android tablets  
       ["@4x"] = 4,  -- for iPad 3  
           }  
      }  
 }  
main.lua 에 다음과 같이 써준다.
 local red = display.newImageRect("red.png", 57, 63)  --> 57 x 63 은 이미지 사이즈
 red:setReferencePoint(display.TopLeftReferencePoint); --> pivot을 중앙이 아닌 좌상단으로(안해줘도 무관)
 red.x = 0  
 red.y = 0  
코드에는 image.png 를 로딩하는 걸로 했지만 시뮬레이터를 iPhone 4 로 돌리면 알아서 image@2x.png 가 로딩된다.
레퍼런스 :
Corona SDK: 03 Retina Images
Dynamic Image Resolution Made Easy
Content Scaling Made Easy
enabling retina display mode in corona sdk

Sprite Sheet의 경우
Sprite Sheet의 경우 위의 방식이 안되는데 다음과 같이 해결하는 방법이 있다.
Dynamic Retina SpriteSheets? Here's how!
I have to say I'm extremely pleased with the update if just because I can now finally add retina spritesheets to my game and thus having complete support for highres displays! Since I'm using even spaced SpriteSheets it was easy to do. If you're using custom sizes it should still be possible, but you're on your own.

Corona SDK: Creating a Scrolling Background

Corona SDK: Creating a Scrolling Background
Daniel Williams on Jul 7th 2011 with 4 comments
The Corona SDK makes it very easy to create dynamic effects with very few lines of code. Using the Corona SDK, we will create a scrolling 2D background with graphics that we create in Photoshop.