2014年2月12日

微信公众平台回复音乐

摘要: 微信回复音乐的接口说明,需要thumb_media_id,但是这个值不知道从哪里获取,在网上查了一下,原来这个字段可以不设置的。网上的回复如下:可以回复音乐,按music结构回复即可。ThumbMediaId可以不填,我正在找怎么在上传素材中找到MediaId -- 不要加到回复的XML中。 阅读全文

posted @ 2014-02-12 17:55 liwp_Stephen 阅读(1629) 评论(0) 推荐(0) 编辑

2014年2月11日

Else is very important

摘要: If else statement is very frequently used by developers.Sometimes we will add if condition, but sometimes, else statement is missed, so a lot of issues will be caused by this error.Today, I am fix an issue about change some setting, but the related setting is not updated.After investigate the code, 阅读全文

posted @ 2014-02-11 17:12 liwp_Stephen 阅读(271) 评论(0) 推荐(0) 编辑

Generate source code from wsdl

摘要: Yesterday, one of Automation QA find that generate source code from WSDL failed, and let me to find the problem.One of them is there are two methods with similar name, just as “taksSnapshot”, and another is “TakeSnapshot”, in java, these two method is OK, but when generate source code with wsimport, 阅读全文

posted @ 2014-02-11 09:58 liwp_Stephen 阅读(988) 评论(0) 推荐(0) 编辑

2014年2月6日

PHP Simple HTML DOM Parser: check elements with multiple classes

摘要: Get the information from this link:http://stackoverflow.com/questions/14264525/php-simple-html-dom-parser-select-only-divs-with-multiple-classesSimple answer:find(".class1.class2")this will look for any type of element (div,img,a etc..) that has both class1 and class2. If you want to speci 阅读全文

posted @ 2014-02-06 10:13 liwp_Stephen 阅读(293) 评论(0) 推荐(0) 编辑

2014年1月16日

Get Version is the first function is called?

摘要: Today, I am debug an issue, when user opan the About dialog, some function will disappear from the UI. It’s very strange, because About dialog should has no relate with other functions. After debug ... 阅读全文

posted @ 2014-01-16 18:19 liwp_Stephen 阅读(206) 评论(0) 推荐(0) 编辑

2014年1月15日

Remote debug GWT UI

摘要: If a project was written with GWT, and UI has problem, we need to debug it. Originally, I always run the application from local development environment, but sometimes, need some other environments. ... 阅读全文

posted @ 2014-01-15 18:23 liwp_Stephen 阅读(343) 评论(0) 推荐(0) 编辑

Remote Debug For Java Application On Tomcat

摘要: Our application is running on Tomcat, and sometimes the backend code has some problem, so we need to remote debug the problem. This is frequently used during our development. So I record the code he... 阅读全文

posted @ 2014-01-15 18:02 liwp_Stephen 阅读(193) 评论(0) 推荐(0) 编辑

SetStyleName引起的Regression Issue

摘要: 前几天让我调整系统的登录界面, 我们的系统是用GWT+GXT来实现的。 登录界面中间有一个图形,整个登录界面需要设置一个背景颜色,因为我们把图形放在一个Table中,在有的浏览器中显示背景会有问题。 首先是在IE 7中图片显示在左上角,这个问题是因为我们把LayoutContainer放在RootLayoutPanel中,后来发现放在RootPanel中就可以了。 RootLayoutPan... 阅读全文

posted @ 2014-01-15 10:49 liwp_Stephen 阅读(498) 评论(0) 推荐(0) 编辑

做乘法运算的时候需要考虑越界问题

摘要: 昨天改一个问题是在界面上有时候显示数字是0,其实不是0,经过调查是在程序里把MB转换成Byte的时候出现了越界问题。在程序中用int来保存MB的值,在转换成Byte的时候,使用如下算法long sizeInByte = sizeInMB*1024*1024在测试的时候发现sizeInMB=4096的时候,结果竟然是0解决办法: int byteInMB = 4096; long byteInByte = byteInMB * 1024 * 1024; System.out.println(byteInByte); byteInByte = byteInMB * 1024 * 1024L;... 阅读全文

posted @ 2014-01-15 10:31 liwp_Stephen 阅读(391) 评论(0) 推荐(0) 编辑

2013年12月31日

MySQL Uniall All

摘要: 使用UNION ALL组合13年和14年的记录。SELECT '20140101'UNIALL ALLSELECT CONCAT(TYPE_YEAR, '0101')FROM DOC_TYPE WHERE TYPE_ID=1 阅读全文

posted @ 2013-12-31 22:01 liwp_Stephen 阅读(893) 评论(0) 推荐(0) 编辑

导航