일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- jsr 296
- GPS
- swingx
- MFC
- Android
- sencha touch
- MySQL
- JDOM
- iBATIS
- PLSQL
- ibsheet
- phonegap
- 가우스
- oracle
- node.js
- jQuery
- Google Map
- Ajax
- Spring
- rowspan
- tomcat
- appspresso
- dock
- WebLogic
- JSON
- PHP
- Eclipse
- 선택적조인
- Struts
- 전자정부프레임워크
- Today
- Total
목록분류 전체보기 (632)
Where The Streets Have No Name
import org.gridgain.grid.*; import org.gridgain.grid.typedef.*; import static org.gridgain.grid.GridClosureCallMode.*; public class JavaMapReduce { public static void main(String[] args) throws GridException{ G.start(); X.println("Count is : "+mapReduceCount("Java GridGain MapReduce")); G.stop(true); } public static int mapReduceCount(String msg) throws GridException { return G.grid().reduce( SP..
package egovframework.rte.test.web; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; public class RequestInitializeInterceptor extends HandlerInterceptorAdapter { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws E..
package egovframework.rte.test.web; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import org.springframework.stereotype.Service; @Service public class Scheduler { @Scheduled(cron="*/10 * * * * *") public void job(){ System.out.println("@@@@@@@@@@@@@@@@@ - scheduler job"); } }
@RequestMapping("/sale/listExcelVOCategory.do") public ModelAndView selectCategoryVOList() throws Exception { List lists = new ArrayList(); UsersVO users = new UsersVO(); //Map mapCategory = new HashMap(); users.setId("0000000001"); users.setName("Sample Test"); users.setDescription("This is initial test data."); users.setUseYn("Y"); users.setRegUser("test"); lists.add(users); users.setId("00000..
@RequestMapping(value = "/test/Test3Json.do") public ModelAndView test3json(@RequestParam(value="name", required=false) String name) { JSONObject obj=new JSONObject(); obj.put("name","홍길동"); obj.put("num",new Integer(100)); obj.put("balance",new Double(1000.21)); obj.put("is_vip",new Boolean(true)); obj.put("nickname",null); ModelAndView model = new ModelAndView(new JsonView()); model.addObject(..
@RequestMapping(value = "/test/Test2Json.do") public void test2json(@RequestParam(value="name", required=false) String name, HttpServletResponse response) throws IOException{ System.out.println("name: "+name); JSONObject obj=new JSONObject(); obj.put("name","홍길동"); obj.put("num",new Integer(100)); obj.put("balance",new Double(1000.21)); obj.put("is_vip",new Boolean(true)); obj.put("nickname",nul..
package egovframework.rte.job; import java.text.SimpleDateFormat; import java.util.Date; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.springframework.scheduling.quartz.QuartzJobBean; import org.springframework.stereotype.Service; public class SayHelloJob extends QuartzJobBean { private String name; public void setName (String name) { this.name = name..
context-datasource.xml에서 datasource설정부분입니다.
import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; public class Demo2 { public static void main(String[] args) throws Exception { Document doc = Jsoup.connect("http://mlbpark.donga.com/mbs/articleL.php?mbsC=bullpen&cpage=1").get(); System.out.println(doc.title()); Elements els = doc.getElementsByClass("G12read"); Elements el..
import java.io.BufferedInputStream; import java.io.IOException; import java.net.URL; import java.net.URLConnection; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Bundle; import android.util.DisplayMetrics; import android.util.Log; ..
출처 : http://code.google.com/p/jabberoid/ 위 사이트에서 소스를 받아서 smack라이브러리는 asmack으로 교체해서 빌드후 돌려봤는데 그럭저럭 돌아가네요 서버는 openfire로 구성해서 환경을 만들었습니다. 스마트폰으로 메신저 환경을 구성하려는 분들은 참고하면 괜찮을듯합니다.
출처 : http://saltybeagle.com/2009/09/cross-origin-resource-sharing-demo/ 아래 스크립트를 이용해서 안드로이드에서도 정상적으로 호출됩니다. /** * This is for Cross-site Origin Resource Sharing (CORS) requests. * * Additionally the script will fail-over to a proxy if you have one set up. * * @param string url the url to retrieve * @param mixed data data to send along with the get request [optional] * @param function callback fu..
참고 : http://kgriff.posterous.com/phonegap-10-android-plugin-updates http://kgriff.posterous.com/building-a-phonegap-plugin-for-android /res/xml/plugins.xml package net.nnn.phonegapdemo; import org.json.JSONArray; import org.json.JSONException; import android.util.Log; import android.widget.Toast; import com.phonegap.api.Plugin; import com.phonegap.api.PluginResult; import com.phonegap.api.Plugin..
출처 : http://javafreak.tistory.com/226 라이브러리 : http://commons.apache.org/compress/ import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.charset.Charset; import java.util.Stack; import org.apache.commons.compress.archivers.zip.Zi..
Ext.setup({ tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', icon: 'icon.png', glossOnIcon: false, onReady: function() { var panel = new Ext.TabPanel({ tabBar: { dock: 'bottom', ui: 'light', layout: { pack: 'center' } }, fullscreen: true, cardSwitchAnimation: 'slide',//'fade', 'slide', 'flip', 'cube', 'pop', 'wipe' items: [aboutPanel] }); Ext.Ajax.request({ url..
출처 : http://www.sitepoint.com/javascript-json-serialization/ /** * Implements JSON stringify and parse functions * v1.0 * * By Craig Buckler, Optimalworks.net * * As featured on SitePoint.com * Please use as you wish at your own risk. * * Usage: * * // serialize a JavaScript object to a JSON string * var str = JSON.stringify(object); * * // de-serialize a JSON string to a JavaScript object * var..
Main Page