`
文章列表
  这个博客不再更新了,请移步 http://lingceng.github.io/
jquery.column.picker是基于jquery的表格列选取器插件,简单易用,请移步主页: http://lingceng.github.io/jquery.column.picker/
  Here is not basic use of struts2 json plugin but how to hack the code to set includeProperty dynamically, in othter words, set with action field not in xml file.     Train of thought:   I have a demand of changing includeParameter values when different ip request, I wonder whether I could set like ...
The Little Book on CoffeeScript   official site 引用   CoffeeScript is a little language that compiles down to JavaScript. The syntax is inspired by Ruby and Python, and implements many features from those two languages.    I found some amazing features when using CoffeeScript on my project. Here I h ...
string to date /** * parse date string YYYY-MM-dd to date */ function parseDate(datestr) { var parts = datestr.split('-'); return new Date(parts[0], parts[1] - 1, parts[2]) } /** * format date to YYYY-MM-dd mm:ss format string */ function formatDate(d) { return d.getF ...
引用    Highstock lets you create stock or general timeline charts in pure JavaScript, including sophisticated navigation options like a small navigator series, preset date ranges, date picker, scrolling and panning.     上面是官方解释,我理解的,stock有“股票”的意思,highstock可用于制作股票走势的图表:对大量数据的支持,自带的多样的日期范围选择。 怎么开始     ...
    使用jslint进行语法和风格的检查,可以预防错误。     vim配置如下: " jslint map! lint !D:\jsl-0.3.0\jsl.exe -process %     打开的JS文本中:lint便可以运行jslint。     qunit是jquery团队开发的js测试框架,使用很简单。下面是我的项目中用到的一段测试代码: <script src="qunit-1.12.0.js"></script> <script src="jquery-1.7.2.js"> ...
/var/cache/apt/archives # 下载的包的存放地址 /usr/share/applications # 存放很多应用程序的启动方式 ~/.local/share/         # 历史打开文件记录 ~/.bashrc               # 用户级环境变量 /etc/profile            # 系统级环境变量 /etc/hosts              # hosts

Calender to Date snip

    博客分类:
  • Java
The format is not stored in the Date. It is stored in the String. The Date#toString() returns a fixed format which is described in its Javadoc. Do the formatting only at the moment you need to display a Date to a human as a String. Calendar calendar = Calendar.getInstance(); calendar.add(Calendar. ...
有段时间没有碰jQuery,回来继续用的时候,发现几个方法很有用处 find() 查找后代元素 往往是先取到一个div的jquery对象,再在对象上find index() 返回选中元素第一个元素相对于同辈的位置 简单说就是返回序号,不用傻呵呵地用什么属性标记序号
"Put vim files in the temp directory instead of the current directory set dir=%TMP% set backupdir=%TMP%
Create a new repository on the command line touch README.md git init git add README.md # add all files in current direcory git add . git commit -m "first commit" git remote add origin https://github.com/lingceng/HelloWorld.git git push -u origin master Push an existing repository from the ...
Vim find & replace (RT) To find and replace one or more occurrences of a given pattern with a new string, use the s[ubstitute] command in vim. The format of the s[ubstitute] command is: 代码: :[rang]s[ubstitute] /{pattern}/{string}/{flags} [count] This command means that for each line in [rang ...
前言   Displaytag官网有1.0, 1.1, 1.2等,注意找到对应的版本。源码和API可以在Maven库中找到。   常规的使用不是问题,这里说说关于Excel导出的问题,中文乱码,使用POI等。我使用的是Displaytag1.1。 基本导出功能   这种情况只需引入displaytag-1.1.jar。   设置column属性media="html"将不会导出,media="excel"不会页面显示,默认既显示又导出。   setProperty也可以写在displaytag.properties中应用于所有表格。 online de ...
背景   应用切面做日志记录,记录操作实体详情时可以使用JSON格式,这里是我使用Gson包做切面日志的一些实践,总结了遇到的问题。 软件包和学习方法   这里使用google的Gson包做JSON转换,这里是项目的地址,可以查看上面的API和User Guide。务必将源码和API配置好,文档中的记录不是很完善,很多时候需要查看源码。   注意,我使用的是2.2版,因为较早的1.4版本的FieldAttributes类中没有getDeclaringClass()这个方法,这个方法是获取field所属的类,在我的排除策略中会用到。   排除策略   最简单的gson转换可以是这样的,但却 ...
Global site tag (gtag.js) - Google Analytics