庹庹

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

摘要: step1 download ODTwithODAC1110621;step2 add ref Oracle.DataAccess;step3 copy following code ;using System;using System.Collections.Generic;using System.Linq;using System.Text;using Oracle.DataAccess.Client;using Oracle.DataAccess.Types;namespace DAL{ public class TestOrclODP { public static Liststr 阅读全文
posted @ 2010-07-31 12:04 庹林 阅读(279) 评论(0) 推荐(0) 编辑

2014年8月14日

摘要: 写在编码之前一直想自己搭建一个自己的android push notifiycation的服务,因为有很多应用,比如数据库新增一条记录时推送消息到android app,所以,你懂得……step1: download: ftp://public.dhe.ibm.com/software/inte... 阅读全文
posted @ 2014-08-14 15:16 庹林 阅读(596) 评论(0) 推荐(0) 编辑

2014年1月15日

摘要: 前段时间注册一个域名,然后试用阿里云主机,由于域名没用备案,想测试IIS上的mvc站点,只能用ip地址访问,然而却报404,file not found,折腾一下,应该:1.IIS不要分配IP地址;2.不要绑定域名.记录下来,以免以后出错,同时也让同行少走弯路. 阅读全文
posted @ 2014-01-15 21:23 庹林 阅读(1628) 评论(0) 推荐(0) 编辑

2013年12月16日

摘要: 成为代码民工多年了,一直在别人的帖子下成长,想想自己也应该写写东西回报大家了。直接代码说话:1.因为成为开发者,腾讯需要一个url,这个url又要能get,又能post.所以原来的RESTful WCF应该作如下标记:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;using System.ServiceModel.Web;using System.IO;namespace HCWcfLib{ [ServiceContra... 阅读全文
posted @ 2013-12-16 15:50 庹林 阅读(944) 评论(0) 推荐(0) 编辑

2012年9月25日

摘要: 1.download swfupload.js@{ ViewBag.Title = "AddProduct";}<h2> AddProduct</h2><div> <fieldset> <legend>Add product</legend> <div class="form_item"> <div class="item_title"> product name</div> <div class="item_i 阅读全文
posted @ 2012-09-25 15:08 庹林 阅读(882) 评论(0) 推荐(0) 编辑

2012年8月29日

摘要: first,import phonegap.jsvar isSelect = false;var w, h;function capturePhoto(){var mask = $("<div></div>"); mask.css({ 'filter': 'alpha(opacity=80)', 'opacity': 0.5, 'background-color': 'gray', 'width': '100%', 'height& 阅读全文
posted @ 2012-08-29 11:26 庹林 阅读(1188) 评论(0) 推荐(0) 编辑

摘要: package tuo.demo;import android.app.Activity;import android.graphics.Bitmap;import android.graphics.Bitmap.Config;import android.graphics.BitmapFactory;import android.graphics.Canvas;import android.os.Bundle;import android.widget.ImageView;public class MyCanvasActivity extends Activity { /** Call... 阅读全文
posted @ 2012-08-29 11:25 庹林 阅读(260) 评论(0) 推荐(0) 编辑

2012年4月2日

摘要: 1.in wcf side,build RESTful wcfthis step,you can referencehttp://www.cnblogs.com/tuolin/archive/2012/01/10/2318058.html2.in android side,using phonegappackage com.sangeco.garden;import android.os.Bundle;import com.phonegap.DroidGap;import com.sangeco.biz.JsBridge;public class WebActivity extends Dro 阅读全文
posted @ 2012-04-02 15:12 庹林 阅读(2116) 评论(0) 推荐(0) 编辑

2011年11月11日

摘要: 1.publish RESTful WCF on IIS,and set username/password,you can referencehttp://blog.csdn.net/fangxinggood/article/details/6263780,this article instruct you how to add authentication in wcf:this is source code inGlobal.asaxView Code using System;using System.ServiceModel.Activation;using System.Web;u 阅读全文
posted @ 2011-11-11 14:21 庹林 阅读(670) 评论(0) 推荐(0) 编辑

2011年10月24日

摘要: 1.send a json object by parameter to request the RESTful server,as flowing code:package tuo.json;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.net.URI;import java.net.URISyntaxException;import org.apache.http.HttpEntity;import org.apache.http.H 阅读全文
posted @ 2011-10-24 11:22 庹林 阅读(2916) 评论(0) 推荐(0) 编辑

2011年10月19日

摘要: 1.package tuo.test.activity;import android.app.Activity;import android.os.Bundle;import android.view.KeyEvent;import android.view.Window;import android.webkit.JsResult;import android.webkit.WebChromeClient;import android.webkit.WebView;import android.widget.Toast;public class Browser extends Activit 阅读全文
posted @ 2011-10-19 11:17 庹林 阅读(458) 评论(0) 推荐(0) 编辑