自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

TragicEnding的专栏

Recording my IT life.

  • 博客(17)
  • 资源 (1)
  • 收藏
  • 关注

原创 XSL里的HTML code 的小注意

空格如果在XSL里面直接打“ ”,可能会被编译直接无视。如果打“ ”,会这样子:这里 有空格方法:这里 有空格效果:这里 有空格文字中包含HTML code比如: textValue = "这是红色字"如果XSL这样写:效果可能是这样的:这是红色字方法:效果:这是红色字

2016-08-13 15:37:48 440

原创 [ios] compile exception about ARC

原因: 开启了ARC解决: project -> Build Settings -> Apple LLVM 6.0 - Language - Object C -> Object-C Automatic Reference Counting -> set "NO"

2015-06-18 10:49:56 503

原创 [ios] tableView:cellForRowAtIndexPath: unrecognized selector sent to instance

问题代码nextViewController = [storyboard instantiateViewControllerWithIdentifier:NEXT_VIEW_ID];[navigationController setViewControllers:[NSArray arrayWithObjects:nextViewController, nil] animated:YES

2015-03-24 15:00:22 643

转载 [ios] release version 不输出 logs

edit in project_name-Prefix.pchadd below into file#ifdef __OBJC__ #import #import #endif#ifndef __OPTIMIZE__#define NSLog(...) NSLog(__VA_ARGS__)#else#define NSLog(...) {}#endif

2014-12-26 11:03:52 537

原创 繁简体中文转换

libConvert sampleimport com.spreada.utils.chinese.ZHConverter;public class ChineseStringConverter{ /** * Convert Simplified String to Traditional String * * @param simplifiedStr

2014-12-25 11:59:34 879

原创 任务定时器

Create the Task ListenerMyContextListener.javapublic class MyContextListener implements ServletContextListener{ private java.util.Timer timer = null; public void contextInitialized(Servlet

2014-01-08 21:32:32 532

原创 Tomcat Basic Authentication

Add authen role and accountConfig in tomcat-users.xml Effective authen role and account by Database RealmConfig in server.xml <Resource name="UserDatabase" auth="C

2014-01-07 22:51:42 1045

原创 Secure Apache Configuration

Config in httpd.confHide the Apache Version number, and other sensitive information.ServerSignature OffServerTokens ProdThe ServerSignature appears on the bottom of pages generated by apa

2014-01-05 11:46:09 643

原创 Ant从CVS checkout项目

Ant command参数:项目的module和tagant -Dcvs.module=module_name -Dcvs.tag=tag_namebuild.xml <!-- ================================= CVS properties =

2013-08-08 10:27:07 762

原创 JSONP跨域访问

Extra JSImport JQuery, JSON and JQuery-JSONP.Client1)  access with JSONPfunction testJSONP(para1, para2) { // generate a parameter JSON object var para = [ { 'para1' : para1, '

2013-08-03 18:12:34 424

原创 Java使用OSCache

libconfigure fileThese files should in the root of build.invoke in Javapublic List getObjectListFromOscache(){    List objectList = new ArrayList();    OsCache cache =

2013-08-01 21:48:31 956

原创 判断链接是HTTP还是HTTPS

截取链接地址String URL = request.getRequestURL().toString();if(!URL.startsWith("https:")){ System.out.println("HTTPS");}获取协议if("https:" == document.location.protocol) alert("HTTPS")

2013-07-29 12:03:03 14941

原创 MD5加密

public static String generateMD5Code(String code){ String resultString = null; try { MessageDigest messageDigest = MessageDigest.getInstance("MD5"); byte[] bytes = code.getBytes(); byte[] r

2013-07-29 10:43:16 689

原创 TextArea输入变化事件,支持IOS中文手写

Setting in HTMLoninput="javascript: inputChange();">Function in JavaScriptfunction inputChange(){    // edit your code here}

2013-07-27 21:44:59 1170

原创 IKAnalyzer中文分词

Project structureIKAnalyzer.cfg.xmlThis the configuration file of IKAnalyzer, a sentence separator support Chinese. It must in the root of src. IK Analyzer extra configurationcn/

2013-07-27 21:26:36 1306

原创 Java通过JSON传递数据访问服务器

Client// the server URLprivate String url = "http://server_addr/project_name";public List commumicateWithServerByJSON(String para1, String para2){ List resultList = new ArrayList(); Object res

2013-07-26 21:47:33 1000

原创 Java获取HTTP客户端IP地址

客户端直接连接服务器public String getClientRealIp(HttpServletRequest request)  {      if(request.getHeader("x-forwarded-for") == null)          return request.getRemoteAddr();        return request.

2013-07-26 21:43:17 830

数据库考试名词解释

数据库 考试 名词解释范围,中英文对照,详细解释

2011-12-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除