일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Android
- JDOM
- sencha touch
- swingx
- rowspan
- jsr 296
- JSON
- Struts
- jQuery
- iBATIS
- Eclipse
- 가우스
- dock
- WebLogic
- tomcat
- MFC
- ibsheet
- MySQL
- Spring
- Ajax
- GPS
- Google Map
- PLSQL
- node.js
- phonegap
- oracle
- 전자정부프레임워크
- 선택적조인
- appspresso
- PHP
- Today
- Total
목록Developement (559)
Where The Streets Have No Name
안드로이드에서 최신 websocket 스펙을 지원하는 라이브러리를 선정하는데 시간이 좀 걸렸습니다. 여러가지 테스트중 http://autobahn.ws/android 에서 구한걸로 테스트했습니다. 여러 websocket 라이브러리 비교는 http://en.wikipedia.org/wiki/Comparison_of_WebSocket_implementations 여기 를 참조하세요. node.js에서 사용된 websocket 모듈은 http://einaros.github.com/ws/ 에서 구한걸로 테스트했습니다. node.js소스 var WebSocketServer = require('ws').Server , express = require('express') , fs = require('fs') , ht..
var express = require('express') , format = require('util').format; var app = module.exports = express() var fs = require('fs'); // bodyParser in connect 2.x uses node-formidable to parse // the multipart form data. // 업로드파일의 임시저장위치 지정 app.use(express.bodyParser({uploadDir:'D:/temp'})); app.get('/', function(req, res){ res.send('' + 'Title: ' + 'Image: ' + '' + ''); }); app.post('/', function(re..
위 이미지와 같이 layout-land, layout-port로 구분해서 작성한다. import android.app.Activity; import android.content.res.Configuration; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class LayoutDemoActivity extends Activity { final static String TAG = "LayoutDemo"; @Override public void onCreate(Bundle sa..
index.html에 추가할 부분 Hello World net.neocorea.flash 플러그인 위치한 MyPlugin소스에서 추가할 부분 import android.webkit.WebSettings; import com.appspresso.api.AxError; import com.appspresso.api.AxPlugin; import com.appspresso.api.AxPluginContext; import com.appspresso.api.AxRuntimeContext; public class MyPlugin implements AxPlugin { private AxRuntimeContext runtimeContext; @Override public void activate(AxRuntimeC..
참고 : http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog public class LayoutDemoActivity extends Activity { ProgressDialog mProgressDialog; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mProgressDialog ..
Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("file:///sdcard/DCIM/Camera/IMG_20120404_090943.jpg"), "image/*"); startActivity(intent); 외부에 있는 이미지 파일인 경우 sd card로 다운로드 한후 위의 방법으로 열어보면됨. sd card 저장 소스 출처 : http://www.androidsnippets.com/download-an-http-file-to-sdcard-with-progress-notification try { //set the download URL, a url that points t..
package com.example.ax.echo; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.util.Log; import android.webkit.WebView; import com.appspresso.api.AxError; import com.appspresso.api.AxPlugin; import com.appspresso.api.AxPluginContext; import com.appspresso.api.AxRuntimeContext; import com.appspresso.api.activity.ActivityAdapter; import com.appspres..
출처 : http://it79.egloos.com/557555 MySQL에서 Oracle의 ROWNUM같은 기능을 사용할려면 어떻게 해야 할까? 다음과 같은 방법으로 손쉽게 사용 가능하다. SELECT @ROWNUM := @ROWNUM + 1 AS ROWNUM, TEST_TABLE.* FROM TEST_TABLE, (SELECT @ROWNUM := 0) R ROWNUM을 이용하여 다른 작업을 하기위해서는 다음과 같이 서브쿼리를 이용하면 된다. SELECT A.* FROM ( SELECT @ROWNUM := @ROWNUM + 1 AS ROWNUM, TEST_TABLE.* FROM TEST_TABLE, (SELECT @ROWNUM := 0) R ) A WHERE A.ROWNUM < 100
$("#table").rowspan(0); $("#table").rowspan(1); $("#table").rowspan(2); $('table tbody tr:visible').each(function(row) { $('#table1').colspan(row); }) jQuery.fn.rowspan = function(colIdx) { return this.each(function(){ var that; $('tr', this).each(function(row) { $('th:eq('+colIdx+')', this).filter(':visible').each(function(col) { if ($(this).html() == $(that).html()) { rowspan = $(that).attr("r..
//show webapp: Uri uri = Uri.parse("http://www.google.com"); Intent it = new Intent(Intent.ACTION_VIEW,uri); startActivity(it); //show maps: Uri uri = Uri.parse("geo:38.899533,-77.036476"); Intent it = new Intent(Intent.Action_VIEW,uri); startActivity(it); //show ways Uri uri = Uri.parse("http://maps.google.com/maps?f=d&saddr=startLat%20startLng&daddr=endLat%20endLng&hl=en"); Intent it = new Int..
출처: http://ultteky.egloos.com/10420749 jQuery로 선택된 값 읽기 $("#select_box option:selected").val(); $("select[name=name]").val(); jQuery로 선택된 내용 읽기 $("#select_box option:selected").text(); 선택된 위치 var index = $("#test option").index($("#test option:selected")); ------------------------------------------------------------------- // Add options to the end of a select $("#myselect").append("Apples"); $(..
import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.util.Log; import android.view.Gravity; import android.widget.Toast; public class C2dmReceiver extends BroadcastReceiver { static String registration_id = null; static String c2dm_msg = ""; @O..
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..