목록프로그래밍 (82)
좋은 프로그램은 마음의 여유에서 나온다.
TableUtils.createTable 에러.. 아직은 4.47로.. 11-25 17:41:59.761: E/AndroidRuntime(2983): java.lang.Error: Unresolved compilation problems: http://stackoverflow.com/questions/19577873/import-android-os-cancellationsignal-cannot-be-resolved-ormlite-on-android
포톤 서버는 dll로 생성되고 포톤 서버에 추가하여 실행 됨 포톤 서버를 실행한 후 비주얼 스튜디오에서 Debug -> Attach to Process 로 간 다음 PhotonSocketServer를 선택하면 디버깅모드로 들어감 브레이크 포인트 걸고 동일하게 디버깅 시작
기존에 universal-image-loader과 async-http-library를 사용하고 있었는데... 똑같이 http로 통신하는데 라이브러리를 두개나 넣을 필요는 없을 것 같았다... ASOP에 volley... https://android.googlesource.com/platform/frameworks/volley 구글 IO 2013 volley 영상 https://developers.google.com/events/io/sessions/325304728 http요청과 이미지 다운로드 둘다 지원하고 사용법도 매우 간단하다.. 4개의 queue를 기본으로 생성 동시처리 디스크 캐시 지원 쉬운 사용방법. asop 프로젝트로 앞으로 발전 가능성 등등...마이그레이션도 오래걸리지 않음 https://..
var mongoose = require('mongoose'); var db1 = mongoose.connect('ip', options);var db2 = mongoose.connect('ip', options); 이렇게 두개의 커넥션을 열려고 하면 Trying to open unclosed connection. 위와 같은 에러가 남 createConnection을 이용해서 열으면 각각을 다르게 연결할 수 있음. var db1 = mongoose.connection('ip', options);var db2 = mongoose.createConnection('ip', options); http://mongoosejs.com/docs/api.html#index_Mongoose-createConnection
다음 API를 이용해서 주소로 GPS 좌표 구하기 http://dna.daum.net/apis/local/ref#addr2coord http://apis.daum.net/local/geo/addr2coord?apikey=DAUM_LOCAL_DEMO_APIKEY&q=%EB%8C%80%ED%95%99%EB%A1%9C&output=xml output은 xml 또는 json 대학로 검색결과가 나옴 반대로 좌표로 주소 구하기 http://dna.daum.net/apis/local/ref#coord2addr http://apis.daum.net/local/geo/coord2addr?apikey=DAUM_LOCAL_DEMO_APIKEY&longitude=127.05590291409&latitude=37.5075023..
안드로이드의 기본 텍스트뷰에 ellipsize 속성에 marquee를 주면 텍스트뷰의 크기보다 글씨의 길이가 큰 경우 흘러가는 것을 볼 수 있음. 하지만 레이아웃안에 있는 것을 흘러가게 하고 싶어서 검색 프레임레이아웃과 애니메이션을 이용해 쉽게 구현된 것 발견 http://www.androidzeitgeist.com/2012/06/creating-marqueelayout-with-android.html
설치 npm install node-oauth2-server --save // 모듈 불러오기 var oauthserver = require('node-oauth2-server'); // express 미들웨어로 설정 //bodyParser필수 app.configure(function() { var oauth = oauthserver({ model: require('./oauth/model'), // oauth 2.0의 각종 인증 함수를 구현해 놓은 곳 grants: ['password'] allow: ['/', '/login'], // 인증 없이 접근할 api debug: true }); app.use(express.favicon()); app.use(express.logger('dev')); app.u..
i18n 모듈 설치 npm install i18n var i18n = require('i18n'); i18n.configure({ locales: ['ko', 'en'], defaultLocale: 'ko', cookie: 'locale', directory: __dirname + '/locales' }); var app = express(); app.locals({ 'l': i18n.__, 'ln': i18n.__n }); // init시 초기화됨 //app.use(i18n.init); /locales 폴더에 파일 생성 ko.jsen.js 데이터 설정 {'hello' : 'hello, world'} ejs에서 호출하기
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
구글 플레이 서비스 게임 기능 리더보드멀티플레이구글+ 계정 사용게임 데이터 저장업적???? (Achievements, 레벨, 게임횟수,포인트 등) 구글에서 배포하는 게임 샘플https://github.com/playgameservices/android-samples 현재 위치(Location) 샘플http://developer.android.com/shareables/training/LocationUpdates.zip 위치 업데이트, 주소얻기 샘플http://developer.android.com/shareables/training/LocationUpdates.zip 지오펜스 모니터링 샘플http://developer.android.com/shareables/training/GeofenceDetectio..