전체 글

전체 글

    iOS CLLocationManager 바뀐점 8.0

    iOS CLLocationManager 바뀐점 8.0 .plist 파일에 다음 항목 추가NSLocationWhenInUseUsageDescriptionNSLocationAlwaysUsageDescriptionstring 값으로 위치 사용에 대한 안내문을 적어놓으면됨 (예: 사용자의 현재 위치를 받아옵니다) 사용자 현재 위치 허용에 대한 승인을 받는다 if ([locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) [locationManager requestWhenInUseAuthorization]; if ([locationManager respondsToSelector:@selector(requestAlwaysAuthor..

    맥용 아프리카 맥프리카 macfreeca 4.0

    ********************************************************************************************************************************************이제 크롬에서 http://afreeca.com 에서 바로 시청하실수있습니다********************************************************************************************************************************************시스템환경설정 -> 보안 및 개인정보 -> 일반안에 다음에서 다운로드한 App 허용: 모든곳 이 체크되있는지 확인해주세요 tisohjun..

    cocos2dx

    Cocos2d-x 다운로드 (3.2)http://www.cocos2d-x.org/download NDK 다운로드http://developer.android.com/tools/sdk/ndk/index.html#Installing cocos2d 설치setup.pyNDK_ROOT 설정새 프로젝트 생성$ cocos new -p com.test.flappy -l cpp flappy proj.ios_mac 에서 프로젝트 열기classes 에서 파일 수정

    한틀아리 4주

    http://github.com/hantle/nodejs 실행방법 mongod - 몽고 서버띄움 node app.js - 노드 서버띄움 urlhttp://localhost:3000/loginhttp://localhost:3000/addhttp://localhost:3000/showhttp://localhost:3000/ 부트스트랩 주소 : http://getbootstrap.com/ 레이아웃 변경 (부트스트랩 사용) show.jade 포스트, 댓글 등등 표시add.jade 포스트 올리기index.jade 메인 페이시 포스트 표시 (moment 로 국가별 날짜 표시기능 사용)app.js get, post 등을 이용하여 포스트및 로그인 에 대한 처리mongodb.js post 를 몽고디비에 쌓을수 있게함

    한틀아리 3주

    실행방법 mongod - 몽고 서버띄움 node app.js - 노드 서버띄움 url http://localhost:3000/login http://localhost:3000/add app.js var express = require('express'); var path = require('path'); var favicon = require('static-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var http = require(&..

    express.js post pending problem

    i moved to a new server and got this stupid problemwhere when using body-parser post is pending foreverespecially with application/x-www-form-urlencodedthis happens when node or npm version is lowtry upgrading npm and node with version higher then 1.10.0

    NodeJS Express 3.0 에서 Express 4.0 으로

    Express 4.0 갈아타기Express 4.0 이 나오면서 Connect가 빠졌기때문에 다소 많은 부분의 변경이 필요합니다.Connect 는 Node 를 위한 HTTP 프렝미워크입니다http://scotch.io/bar-talk/expressjs-4-0-new-features-and-upgrading-from-3-0위 사이트에서 자세한 내용을 보실 수 있습니다 단 영문입니다제 경험을 위주로 설명해보겠습니다connect 관련입니다app.use(express.favicon()); // favicon -> static-favicon 따로 설치 app.use(express.logger('dev')); // 삭제하셔야됩니다 app.use(express.json()); // 삭제하셔야됩니다 app.use(exp..

    한틀 스터디 (4/13)

    chrome > 도구 > 개발자도구혹은chrome 페이지 상에 우클릭 > 요소검사esc 누르면 콘솔창 올라옴 javascript 바로 콘솔창에 테스트 가능 오늘 당장 시작하는 html5 링크http://www.slideshare.net/taggon/html5-33510182자바스크립트 참조http://flippinawesome.org/2013/12/23/45-useful-javascript-tips-tricks-and-best-practices/다음주는 7장 해오기

    intellij ftp 연결

    intellij ftp 연결

    1. 새 프로젝트 생성2. empty project 지정 (아무거나 지정해도 상관없으나 이왕이면 아무파일 없는 empty로)3.new module4.서버에 자신의 이름으로 되있으니까 다음과같이5.Browse Remote Host 한번 해준고6. 5,6,7을 다하고 다시 끄고 Name:local 써있는데 우측 뒤에 [...] 버튼이있는데 이걸로 해야 deployment가 됨 서버 root path 는 hantle로 해줌 그안에 파일이 다들어갈 예정7.우측에 [...]버튼으로 들어와야 Mapping이 됨8. 이제 왼쪽 프로젝트에 우클릭 후 서버 선택(혹은 키보드 1)9.요기서 >> 처럼 생긴걸 클릭하면 자동으로 모두 싱크됨10. 좌측과 우측을 싱크하기전11.싱크후에 Automatic Upload기능을 켜줌이..

    cannot find module "jade"

    Node.jswhen using express and jadeif { cannot find module "jade"}unlink both express and jadenpm install expressnpm install jadethey need to be in same node_module folderor both in global "-g"if global { npm link express npm link jade check if they are in same base folder}wala!

    Mavericks Finder slow 매버릭스 파인더 느릴때

    Work around when finder gets slow in Mavericks: 1. sudo vi /etc/auto_master In this file comment out /net with # (#/net .....) sudo automount -vc 2.rm ~/Library/Preferences/com.apple.finder.plist&&killall Finder 매버릭스에 파인더가 느려지면 아래와 같이 설정해주시면됩니다 터미널에서1. sudo vi /etc/auto_master /net 으로 시작하는 줄을 # 으로 커맨트 처리합니다 (#/net .....) sudo automount -vc2.rm ~/Library/Preferences/com.apple.finder.plist&&killal..

    playing NSSound asynchronously

    there seem to be almost no posts on playing one NSSound multiple times aynchrosnouslywell this is how below sound is NSSound objectNSSound *sound; - (void)playSound { [[[sound copy] autorelease] play]; } by copying the object you can play one sound many times overlappinguse method below to do something when the sound stops ad set sound as delegate - (void)sound:(NSSound *)asound didFinishPlaying..

    ios version check

    int version = [[[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."] objectAtIndex:0] intValue]; if (7

    ios7 setting status bar style

    change UIStatusBarStyleLightContent to whatever you prefer @interface UINavigationController(CustomBarStyle) @end @implementation UINavigationController(CustomBarStyle) - (UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent;// return self.topViewController.preferredStatusBarStyle;} @end

    AngularJS 번역

    번역된 사이트http://docs.angularjs.co.kr/번역 githttps://github.com/KAUG/angular.js번역 테스트시 grunt 사용https://github.com/KAUG/angular.js/wiki/%EB%B2%88%EC%97%AD%EB%90%9C-%EB%8F%84%ED%81%90%EB%A8%BC%ED%8A%B8-%EB%A1%9C%EC%BB%AC-%ED%85%8C%EC%8A%A4%ED%8A%B8%ED%95%98%EA%B8%B0(MAC)

    oh my zsh iterm font problem

    if you are having troubles installingoh my zsh agnoster fontfor iterm"it come in box with x"download this Inconsolata-dz for Powerline.otf

    bash_profile 세팅 oh my zsh 설치

    bash_profile 세팅 oh my zsh 설치

    vi ~/.bash_rc 붙여넣기export TERM="xterm-color"export CLICOLOR=1export LSCOLORS=GxFxCxDxBxegedabagacedalias ls="ls -v"alias ll="ls -lv"PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\]\W\$\[\033[00m\]"export PATH=$HOME/local/bin:$PATH[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*export PATH=/opt/local/bin:/opt/local/sbin:$PATH 기존 터미널+bash를..

    xcode로 안드로이드 개발?

    다음 사이트를 참고 했습니다.http://alex.tapmania.org/2010/09/android-ndk-and-xcode.htmlAndroid NDK and Xcodexcode: grab it hereAndroid SDK: grab them here 해당 사이트에 인스톨 메뉴얼을 따라 설치 하세요.자 이제 안드로이드 프로젝트와 NDK code가 좀 있다는 가정하에 진행을 해봅시다.Xcode 프로젝트 생성Xcode – File -> New ProjectExternal Build System 선택안드로이드 프로젝트의 PARENT(상위) 디렉토에가서 xcode 프로젝트를 같은 이름으로 만듭니다Replace 선택 - 걱정 마세요 코드를 망치진 않습니다프로젝트에 파일을 더합니다 Add -> Existing ..