jquery 공식사이트
http://jquery.com/
이클립스 플러그인 설정 법 (aptana 기반)
http://radworks.egloos.com/2502034
http://kinjsp.pe.kr/lecture/eclipseJQuery.kin
jquery 안내
http://xguru.net/503
2010년 12월 29일 수요일
2010년 12월 28일 화요일
google app engine 쿼리 예제코드
http://stackoverflow.com/questions/2679759/update-query-in-google-app-engine-data-store-java
package gaej.example.contact.server;
import gaej.example.contact.client.Contact;
import java.util.List;
import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory;
public class ContactJdoDAO implements ContactDAO {
private static final PersistenceManagerFactory pmfInstance = JDOHelper
.getPersistenceManagerFactory("transactions-optional");
public static PersistenceManagerFactory getPersistenceManagerFactory() {
return pmfInstance;
}
public void addContact(Contact contact) {
PersistenceManager pm = getPersistenceManagerFactory()
.getPersistenceManager();
try {
pm.makePersistent(contact);
} finally {
pm.close();
}
}
@SuppressWarnings("unchecked")
public List<Contact> listContacts() {
PersistenceManager pm = getPersistenceManagerFactory()
.getPersistenceManager();
String query = "select from " + Contact.class.getName();
return (List<Contact>) pm.newQuery(query).execute();
}
public void removeContact(Contact contact) {
PersistenceManager pm = getPersistenceManagerFactory()
.getPersistenceManager();
try {
pm.currentTransaction().begin();
// We don't have a reference to the selected Product.
// So we have to look it up first,
contact = pm.getObjectById(Contact.class, contact.getId());
pm.deletePersistent(contact);
pm.currentTransaction().commit();
} catch (Exception ex) {
pm.currentTransaction().rollback();
throw new RuntimeException(ex);
} finally {
pm.close();
}
}
public void updateContact(Contact contact) {
PersistenceManager pm = getPersistenceManagerFactory()
.getPersistenceManager();
String name = contact.getName();
String phone = contact.getPhone();
String email = contact.getEmail();
try {
pm.currentTransaction().begin();
// We don't have a reference to the selected Product.
// So we have to look it up first,
contact = pm.getObjectById(Contact.class, contact.getId());
contact.setName(name);
contact.setPhone(phone);
contact.setEmail(email);
pm.makePersistent(contact);
pm.currentTransaction().commit();
} catch (Exception ex) {
pm.currentTransaction().rollback();
throw new RuntimeException(ex);
} finally {
pm.close();
}
}
}
Flash 파일데이터 업로드시 인터렉션 없이 다중전송 처리방법
플래시에서 파일 데이터를 다중 업로드시 해결했던 방법을
주변에서 문의가 와서 기록 합니다.
(pc의 다중파일 업로드는 기본 파일레퍼런스 api에서 제공됩니다)
주변에서 문의가 와서 기록 합니다.
(pc의 다중파일 업로드는 기본 파일레퍼런스 api에서 제공됩니다)
프로젝트 진행하다 플래시의 여러 영역을 이미지로 개별적으로 저장해야 하는
작업이 있었다. 파일업로드(멀티파트가 포함된 리퀘스트)는 사용자의 인터렉션이
꼭 있어야 함으로(보안이슈) base64인코팅으로 처리하는 방법들도 있지만 서버
단에서 다시 풀어야 하는 깔끔하지 못한 부분이 있다
이를 해결해본 방법이 Flash에서 멀티파트 구성없이 리퀘스트의 URLVariable 데이터에
bytearray를 할당해서 호출하고 리퀘스트를 처리하는 서블릿에서 저장하는 방법으로
다중업로드가 가능하다
(java, php 모두 가능)
- 액션스크립스 코드 -
var byteArr:BytaArray = new ByteArray();//바이트 어레이를 구성
var urlRQ:URLRequest = new URLRequest(url);
//헤더설정
var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
urlRQ.requestHeaders.push(header);
urlRQ.requestHeaders.push( new URLRequestHeader( 'Cache-Control', 'no-cache' ) );
//리퀘스트 데이터에 byteArray 할당
urlRQ.data = byteArr;
- 서블릿 코드 -
package com.servlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.net.URL;
public class ImageWriter extends HttpServlet {
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
{
doGet(req, resp);
}
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
{
int i = 0;
int k = 0;
int maxLength = req.getContentLength();
byte[] bytes = null;
if(0<=maxLength)
{
bytes = new byte[maxLength];
}
String method = req.getParameter("method");
String name = req.getParameter("name");
ServletInputStream si = req.getInputStream();
while (true)
{
k = si.read(bytes,i,maxLength);
i += k;
if (k <= 0)
break;
}
if (bytes != null)
{
File saveFile = new File(req.getSession().getServletContext().getRealPath(name));
if(saveFile.exists())
saveFile.createNewFile();
System.out.println(req.getRealPath(name));
FileOutputStream fos = new FileOutputStream(saveFile);
fos.write(bytes);
fos.flush();
fos.close();
resp.setContentType("text");
resp.getWriter().write(name);
}
else
{
resp.setContentType("text");
resp.getWriter().write("bytes is null");
}
}
private String String(int remotePort) {
// TODO Auto-generated method stub
return null;
}
}
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.net.URL;
public class ImageWriter extends HttpServlet {
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
{
doGet(req, resp);
}
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
{
int i = 0;
int k = 0;
int maxLength = req.getContentLength();
byte[] bytes = null;
if(0<=maxLength)
{
bytes = new byte[maxLength];
}
String method = req.getParameter("method");
String name = req.getParameter("name");
ServletInputStream si = req.getInputStream();
while (true)
{
k = si.read(bytes,i,maxLength);
i += k;
if (k <= 0)
break;
}
if (bytes != null)
{
File saveFile = new File(req.getSession().getServletContext().getRealPath(name));
if(saveFile.exists())
saveFile.createNewFile();
System.out.println(req.getRealPath(name));
FileOutputStream fos = new FileOutputStream(saveFile);
fos.write(bytes);
fos.flush();
fos.close();
resp.setContentType("text");
resp.getWriter().write(name);
}
else
{
resp.setContentType("text");
resp.getWriter().write("bytes is null");
}
}
private String String(int remotePort) {
// TODO Auto-generated method stub
return null;
}
}
2010년 12월 14일 화요일
Unity3d 개발 문서
Infinite Unity for iPhone resource list
- iPhone Getting Started with the UnityRemote from the Unity 3D Wiki is indispensable- this is a very detailed introduction to getting your Unity App for iPhone and Unity Remote Running
- Unity iPhone Newbie Guide
- Certificates and Provisioning and Unity Remote How it worked for me
- Penelope- Unity iPhone Demo at the Appstore
- Unity3D Features -iPhone Publishing
- Unity3D iPhone Examples – from the Unity web site with source code
- Unity3D iPhone Enhancement- adds many features to the Unity iPhone Toolkit including keyboard and access to the camera
- a Cocoa based front end for Unity3D iPhone Applications- from the team over at Blurst
- Found via UnityTutorials.com- Unity3D Newbie Guide 4 Lessons so Far
- My UnityRemote tag archives
- iPhone Getting Started with UnityRemote- from the Unity Wiki
- Unity3D and the iPhone SDK- from Ethicalgames.com- authors of Unity3D for Flash Developers series and the Unity3D Cheat Sheet
- Unity3D for iPhone -My thoughts from Unity3D Zero to Hero
- Unity3D iPhone Pong example project- w/ sample code
- Developing for the iPhone -video and slides from Unite 2008
- iPhone Touch Phase Mini Tutorial
- Unity3D iPhone Touch Animation Tutorial
- Three Thing to Remember-iPhone/Unity3D advice from PixelPlacement.com
- Smooth Out iPhone’s Accelorometer- via pixelplacement.com
- iPhone Easy Button Handling- from the Unity Update Method -via pixelplacement.com
- Performing an Ad-Hoc Distribution build with Unity3D iPhone- building for beta testers
- UV Animations in Unity3D iPhone
- Application Verification Failed- No UnityRemote Love
- Vector art for Unity3D iPhone Developers- from learnunity3d.com
- 0xE800003A ApplicationVerification Failed- from Codebreaker
- Limitations of Unity3D iPhone- from the Unity3D forums
- Unity3D iPhone Development forum
- Unity3d iphone unityremote Newbie Guide
- My Unity3D iPhone/ UnityRemote Delicious Links
- error 0xE8000036 – this means the app that you are trying to install has already been installed- Uninstall application by going to the phone home screen and holding down on the icon until they jiggle and the little “x” shows up in the upper right hand corner- click the “x” (duh!”)
- How to put a custom Icon in your Unity iPhone App- Forum discussion – The Utility Build Scriptthat they mention is listedbelow
- Unity3D iPhone Build Script- For keeping your custom icon and if you have the pro version splash screen. If you get an Error about the Editor then you’ll need to right-click and reimport the iPhone Build Script script in your project folder
- FingerManager Script for iPhone Touch handling
- iPhoneTextureImportSettings- Util from unify wiki
- Finger dodge Source – From unity community
- FirstPerson Controller Script implemented for the iPhone from unity forums
- Wrangling GUIs with Unity iPhone From GTProductions
- UnityiPhone on Mahalo
2010년 12월 8일 수요일
방송국 스트리밍(모바일) 주소들~
아이폰,아이패드에서 DMB가 안된는걸 어느정도 보완 할듯 하네요
(도토리플레이어에 추가 해서 보시면 더 편합니다.)
iMBC http://stest.imbc.com/live/onair.m3u8
SBS http://h264media.sbs.co.kr/sbsch6/_definst_/smil:ch6wifi.smil/playlist.m3u8
GTB http://211.224.129.158:1935/live/myStream.sdp/playlist.m3u8
KBS24 http://news24kbs-2.gscdn.com/news24_300/_definst_/news24_300.stream/playlist.m3u8
ONGAMENET http://m3u8list.appspot.com/m3u8?bn=ONGAMENET
MBCGAME http://m3u8list.appspot.com/m3u8?bn=MBCGAME
YTN http://m3u8list.appspot.com/m3u8?bn=YTN
TVN http://m3u8list.appspot.com/m3u8?bn=TVN
ETN http://m3u8list.appspot.com/m3u8?bn=ETN
EPL http://m.keysco.com:1935/live/keysco01.sdp/playlist.m3u8
YSTAR http://121.78.116.91:1935/live/BizCastLive/playlist.m3u8
CHK http://live35.futurewiz.co.kr:1935/live_channelk/vid/playlist.m3u8
OBS http://obslive-obsl.ktics.co.kr:1935/obslive/_definst_/obsobs/playlist.m3u8
MNET http://ssmnet.bridgeplatform.co.kr:1935/liveIPhoneMNET/liveIPhoneMNET/playlist.m3u8
KMTV http://ssmnet.bridgeplatform.co.kr:1935/liveIPhoneKM/liveIPhoneKM/playlist.m3u8
LOTTE http://116.193.92.26:1935/live/11002.stream/playlist.m3u8
CJ http://ko.live.vercoop.com/streamingvideo/cjmall/stream/stream_192k.m3u8
WOWTV http://wowmlive.shinbnstar.com:1935/live2/wowtv/playlist.m3u8
KCTV http://122.202.129.136:1935/live/ch5/playlist.m3u8
EDAILY http://121.189.8.101:1935/live/smil:auto.smil/playlist.m3u8
CBS http://cbsl-cbslive.ktics.co.kr:1935/cbsl/_definst_/cbslive/playlist.m3u8
NHK http://plslive-w.nhk.or.jp/nhkworld/app/live.m3u8
YHNEWS http://116.125.124.156:1935/live/smil:yonhap.smil/playlist.m3u8
MBN http://mbn.shinbnstar.com/videos/ch1/hi/prog_index.m3u8
MTN http://mtn.mt.co.kr/mtnMobile.htm?device=iphone3
CHK http://live35.futurewiz.co.kr:1935/live_channelk/vid/playlist.m3u8
MPITV http://mapoitv.gscdn.com:1935/mapo/mapo.stream/playlist.m3u8
BZNTV http://ko.live.vercoop.com/streamingvideo/chosun/stream.m3u8
SBS http://h264media.sbs.co.kr/sbsch6/_definst_/smil:ch6wifi.smil/playlist.m3u8
GTB http://211.224.129.158:1935/live/myStream.sdp/playlist.m3u8
KBS24 http://news24kbs-2.gscdn.com/news24_300/_definst_/news24_300.stream/playlist.m3u8
ONGAMENET http://m3u8list.appspot.com/m3u8?bn=ONGAMENET
MBCGAME http://m3u8list.appspot.com/m3u8?bn=MBCGAME
YTN http://m3u8list.appspot.com/m3u8?bn=YTN
TVN http://m3u8list.appspot.com/m3u8?bn=TVN
ETN http://m3u8list.appspot.com/m3u8?bn=ETN
EPL http://m.keysco.com:1935/live/keysco01.sdp/playlist.m3u8
YSTAR http://121.78.116.91:1935/live/BizCastLive/playlist.m3u8
CHK http://live35.futurewiz.co.kr:1935/live_channelk/vid/playlist.m3u8
OBS http://obslive-obsl.ktics.co.kr:1935/obslive/_definst_/obsobs/playlist.m3u8
MNET http://ssmnet.bridgeplatform.co.kr:1935/liveIPhoneMNET/liveIPhoneMNET/playlist.m3u8
KMTV http://ssmnet.bridgeplatform.co.kr:1935/liveIPhoneKM/liveIPhoneKM/playlist.m3u8
LOTTE http://116.193.92.26:1935/live/11002.stream/playlist.m3u8
CJ http://ko.live.vercoop.com/streamingvideo/cjmall/stream/stream_192k.m3u8
WOWTV http://wowmlive.shinbnstar.com:1935/live2/wowtv/playlist.m3u8
KCTV http://122.202.129.136:1935/live/ch5/playlist.m3u8
EDAILY http://121.189.8.101:1935/live/smil:auto.smil/playlist.m3u8
CBS http://cbsl-cbslive.ktics.co.kr:1935/cbsl/_definst_/cbslive/playlist.m3u8
NHK http://plslive-w.nhk.or.jp/nhkworld/app/live.m3u8
YHNEWS http://116.125.124.156:1935/live/smil:yonhap.smil/playlist.m3u8
MBN http://mbn.shinbnstar.com/videos/ch1/hi/prog_index.m3u8
MTN http://mtn.mt.co.kr/mtnMobile.htm?device=iphone3
CHK http://live35.futurewiz.co.kr:1935/live_channelk/vid/playlist.m3u8
MPITV http://mapoitv.gscdn.com:1935/mapo/mapo.stream/playlist.m3u8
BZNTV http://ko.live.vercoop.com/streamingvideo/chosun/stream.m3u8

피드 구독하기:
글 (Atom)