- 博客(17)
- 资源 (1)
- 收藏
- 关注
原创 XSL里的HTML code 的小注意
空格如果在XSL里面直接打“ ”,可能会被编译直接无视。如果打“ ”,会这样子:这里 有空格方法:这里 有空格效果:这里 有空格文字中包含HTML code比如: textValue = "这是红色字"如果XSL这样写:效果可能是这样的:这是红色字方法:效果:这是红色字
2016-08-13 15:37:48
493
原创 [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
565
原创 [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
699
转载 [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
593
原创 繁简体中文转换
libConvert sampleimport com.spreada.utils.chinese.ZHConverter;public class ChineseStringConverter{ /** * Convert Simplified String to Traditional String * * @param simplifiedStr
2014-12-25 11:59:34
945
原创 任务定时器
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
570
原创 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
1097
原创 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
688
原创 Ant从CVS checkout项目
Ant command参数:项目的module和tagant -Dcvs.module=module_name -Dcvs.tag=tag_namebuild.xml <!-- ================================= CVS properties =
2013-08-08 10:27:07
830
原创 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
467
原创 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
1009
原创 判断链接是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
15149
原创 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
731
原创 TextArea输入变化事件,支持IOS中文手写
Setting in HTMLoninput="javascript: inputChange();">Function in JavaScriptfunction inputChange(){ // edit your code here}
2013-07-27 21:44:59
1226
原创 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
1353
原创 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
1065
原创 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
882
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人