manywaypark's Blog
개발, 검색, 함수

svn에서 git으로 옮겨타기

tips & tricks 2013. 4. 5. 23:44 by manywaypark

svn에서 git으로 소스트리 옮기기.

git-svn 설치 후 git remote add 후 push!

예를 들어 google code의 svn repo에서 github로 옮긴다면 다음과 같이 한다.

참고로 모든 변경 내역이 유지된다.

git svn clone http://[yourproject].googlecode.com/svn/trunk/path/to/code/

git remote add origin git@github.com:[youraccount]/[yourrepository].git

git push origin master


ref: http://bassistance.de/2009/08/20/getting-started-with-git-and-github-and-importing-from-subversion/


happy hackin'

Gambit-C Scheme 소개글

함수형 언어/Scheme 2013. 2. 14. 01:48 by manywaypark

Gambit-C Scheme은 gsi(interpreter), gsc(compiler)로 이루어져 있고, compiler는 C 코드를 생성해준다.

아래는 Scheme에 관한 간단한 튜토리얼 및 Gambit-C를 사용해서 native app을 개발하는 것을 설명한 링크이다.

http://www.devx.com/opensource/Article/42778

 

happy hackin'

eval을 써서 멋지게 해결했다고 생각했는데 실행파일을 만들어서 실행하거나, DrRacket에서 run 버튼으로 실행할 때 다음과 같은 오류가 났다.

fn-name: unbound identifier;

 also, no #%top syntax transformer is bound in: fn-name

eval을 쓸때 REPL에서하는 것과 그냥 실행하는 것에 차이가 있다 (phase에 따른 namespace의 문제. 자세한건 링크 참조).

빨리 해결하려는 맘에 (define ns (make-base-namespace)) (eval ... ... ns)의 형태로 변경하라는 예제를 보고 그렇게 했더니 아래와 같은 다른 에러가 났다. 아예 정의가 안됐다는 에러.

(나중에 찬찬히 읽어보니 make-base-namespaceracket/base module이 export하는 symbol들만 resolve가능하게 해주는 것이었다)

fn-name: undefined;

 cannot reference undefined identifier

해결책은 namespace anchor를 사용하는 것이었다. 참고 링크의 맨 마지막에 있다(역시 끝까지 읽어보는 것이 중요하다).

(define-namespace-anchor a)

(define ns (namespace-anchor->namespace a))

......

(eval ... ... ns)


ref: http://docs.racket-lang.org/guide/eval.html


happy hackin'

정수 수열 찾기

잡담 2013. 2. 8. 18:26 by manywaypark

일정한 수열을 입력하면 분석해서 어떤 수열인지 알려준다.

http://oeis.org/


happy hackin'

[참고] eval, apply

함수형 언어/Scheme 2013. 2. 7. 00:35 by manywaypark

http://www.cs.washington.edu/education/courses/cse341/12au/racket/eval-apply.html


happy hackin'

git flow

tips & tricks 2012. 12. 21. 01:08 by manywaypark

git flow를 쓰면 개발 과정에서 좀더 체계적으로 git을 활용할 수 있다.


refs:

https://github.com/nvie/gitflow/wiki/Installation

http://nvie.com/posts/a-successful-git-branching-model/

http://knight76.tistory.com/entry/Git-Flow-%EC%A2%8B%EC%9D%80-%EC%9E%90%EB%A3%8C

http://yakiloo.com/getting-started-git-flow/


happy hackin'

DB Schema graph

tips & tricks 2012. 12. 20. 22:11 by manywaypark

SchemaSpySQLFairy를 사용하면 DB schema에서 그래프를 얻을 수 있다.

ref: http://pwnguin.net/generating-database-schema-with-sql-and-graphviz.html

happy hackin'

문제:

Android SDK Manager에서 이것저것 업그레이드 후에 eclipse에서 프로젝트 빌드시에 아래와 같은 메시지가 나오면서 패키지 빌드가 실패했다 (물론 그전엔 잘 되는 것이었다).

Unable to build: the file dx.jar was not loaded from the SDK folder!

해결:

dx.jar가 없다는 말인데... dx.jar를 찾아서 있어야할 곳(platform-tools\lib\)에 복사해주면 해결되는데,

현재 참조 링크의 두번째에 나오는 방법이 더 편하고 깔끔하다.

eclipse 종료후에 Android SDK Manager에서 다음 항목을 uninstall한 후에 다시 install하면 해결된다.

Android SDK platform-tools

refs:

 http://stackoverflow.com/questions/5228453/android-adt-error-dx-jar-was-not-loaded-from-the-sdk-folder


happy hackin'

[cocos2d-x] orientation 변경

mobile/cocos2d-x 2012. 11. 30. 15:21 by manywaypark

기본적으로 cocos2dx 프로젝트를 생성하면 orientation이 landscape인데, portrait로 변경해야하는 경우도 있다.


iOS의 경우:

app_name/ios/RootViewController.mm 에서 shouldAutorotateToInterfaceOrientationsupportedInterfaceOrientationsshouldAutorotate 등을 변경하면 된다.

6.0의 경우는 약간의 이슈가 있는듯...


Android의 경우:

AndroidManifest.xml 파일에서 main activity에 android:screenOrientation 속성을 변경한다.


refs:

http://www.cocos2d-x.org/news/73

http://www.cocos2d-x.org/projects/cocos2d-x/wiki/About_device_orientation


happy hackin'

ps. 상기 방법말고 OpenGL 쪽에서 설정하는 방법도 있다 (두번째 참조링크 참조).

[bugfix] ADT/unterminated entity ref

mobile/Android 2012. 11. 28. 19:13 by manywaypark

문제:

Description Resource Path Location Type

Error: unterminated entity ref icon.png /app_name/res/drawable-hdpi line 7 Android AAPT Problem


해결:

http://code.google.com/p/android/issues/detail?id=39213


그런데 해결 하려면, Android를 빌드해야한다는...

아래 참고 해서 Android SDK 빌드하고, eclipse 관련 도구(플러그인)들을 빌드하고 설치하면 된다.

(지금 소스 다운 받는 중이라 결과는 확인 못했지만, 결과 확인되면 패치된 jar를 첨부할 예정).


refs:

http://androiddevnotes.com/2010/11/22/1290402300000.html

http://tornorbye.blogspot.kr/2010/11/building-android-ide-tools.html

http://source.android.com/source/downloading.html

http://tools.android.com/build

http://tools.android.com/build/eclipse


happy hackin'

2012-12-01: 첨부에 패치된 sdk_common.jar를 추가했다. eclipse 설치 디렉토리의 하위에서 파일을 찾아서 교체하면 이 문제는 해결된다. 참고로, 빌드는 darwin-x86(Mac OSX) host용인데, 아마도 platform independent할 것으로 예상한다.

1 ··· 12 13 14 15 16 17 18 ··· 31 
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

02-14 06:24