ITeye博客

laiahu

laiahu · 共 43 篇文章

这是我的博客new title222

这是my博客内容,aaabbbbccccddddd222

2016-06-30 21:51 · 评论(0)

这是我的博客new title

这是my博客内容,aaabbbbccccddddd

2016-06-30 21:46 · 评论(0)

《DWZ笔记四》URL变量替换

来源:http://heavengate.blog.163.com/blog/static/2023810532012629091449/ 在DWZ文档中,对 URL的变量替换 说明如下: HTML扩展方式 navTab, dialog, ajaxTodo 的url支持变量替换。例如:__URL__/edit/id/{xxx},大括号内的xxx就是变量名,主要功能是结合table组件一起使用,利用URL变量替换,对于解决数据的删除、编辑是非常方便的。 比如:删除、编辑使用了变量{sid_user} <tbody>中<tr target="sid_user" rel="{$vo['id']}"…

2014-06-12 23:24 · web前端 · 评论(0)

JSONNull 页面处理update

来源:http://www.cnblogs.com/HustJackyan/archive/2011/11/09/2242112.html 最近用JSONObject,感觉比xml好用一些,json的打包和解包都比较清晰和容易,最近遇到一个问题,将一个JSON对象解析,存到hashmap中去,然后再从hashmap取出数据,遇到jsonnull的问题,本以为如果为空值的话,就是null,但其实不是,如果json格式的字符串里面有的字段为null,在将其转成json后,再进行解析,为null的字段得到的并不是java里的null,(我这里说的都是在java环境下解析,不是js),而是JSONN…

2014-03-20 14:56 · java · java useful · 评论(0)

IE js中使用window.location时会忽略base href值

来源: http://blog.csdn.net/kjb000/article/details/7913867 IE的js 中使用Window.location时会忽略base href值 这样写可以解决: window.location = document.getElementsByTagName("base")[0].getAttribute("href")+ "loc"; 获得 base也可以用: alert("base="+$("#base").attr("href"));

2014-03-04 17:28 · web前端 · 评论(0)

Linux 技巧:让进程在后台可靠运行的几种方法nohup|

我们经常会碰到这样的问题,用 telnet/ssh 登录了远程的 Linux 服务器,运行了一些耗时较长的任务, 结果却由于网络的不稳定导致任务中途失败。如何让命令提交后不受本地关闭终端窗口/网络断开连接的干扰呢?下面举了一些例子, 您可以针对不同的场景选择不同的方式来处理这个问题。 如果只是临时有一个命令需要长时间运行,什么方法能最简便的保证它在后台稳定运行呢? hangup 名称的来由 在 Unix 的早期版本中,每个终端都会通过 modem 和系统通讯。当用户 logout 时,modem 就会挂断(hang up)电话。 同理,当 modem 断开连接时,就会给终端发送 hangup…

2014-02-25 13:25 · linux · 评论(0)

使用 jsoup 对 HTML 文档进行解析和操作

来源:https://www.ibm.com/developerworks/cn/java/j-lo-jsouphtml/ jsoup 是一款 Java 的 HTML 解析器,可直接解析某个 URL 地址、HTML 文本内容。它提供了一套非常省力的 API,可通过 DOM,CSS 以及类似于 jQuery 的操作方法来取出和操作数据。本文主要介绍如何使用 jsoup 来进行常用的 HTML 解析。 jsoup 简介 Java 程序在解析 HTML 文档时,相信大家都接触过 htmlparser 这个开源项目,我曾经在 IBM DW 上发表过两篇关于 htmlparser 的文章,分别是: 从…

2014-02-25 10:13 · jsoup · 评论(0)

20 Tips for Using Tomcat in Production

来源: http://digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-production/ http://kenwublog.com/docs/java6-jvm-options-chinese-edition.htm I've been working with Apache Tomcat for years and always seem to stumble upon new information related to the proper setup and configuration for a product…

2013-09-10 11:15 · linux · tomcat · 评论(0)

linux Bash Arrays

来源: http://www.linuxjournal.com/content/bash-arrays If you're used to a "standard" *NIX shell you may not be familiar with bash's array feature. Although not as powerful as similar constructs in the P languages (Perl, Python, and PHP) and others, they are often quite useful. Bash arrays have number…

2013-08-06 12:34 · linux · 评论(0)

mysql 5.6 conf

http://dev.mysql.com/doc/refman/5.6/en/option-files.html http://dev.mysql.com/doc/refman/5.6/en/server-default-configuration-file.html 5.1.2.1. Changes to Server Defaults Beginning with MySQL 5.6.6, several MySQL Server parameter defaults differ from the defaults in previous releases. The motivatio…

2013-08-02 21:56 · linux · mysql · 评论(0)

How to set active spring 3.1 environment profile via a properites file and not v

来源: http://stackoverflow.com/questions/8587489/how-to-set-active-spring-3-1-environment-profile-via-a-properites-file-and-not-v We use the new environment profiles feature of spring 3.1. We currently set the active profile by setting the environment variable spring.profiles.active=xxxxx on the serv…

2013-07-27 15:28 · spring · 评论(0)

centos下yum nginx 的安装

Pre-Built Packages for Stable version To set up the yum repository for RHEL/CentOS, choose the corresponding nginx-release package from the list: RHEL 5 RHEL 6 CentOS 5 CentOS 6 This package contains yum configuration file and a public PGP key necessary to authenticate signed RPMs. Download and ins…

2013-07-14 10:41 · linux · nginx · 评论(0)

Linux上安装MySQL时出现不兼容的解决办法

来源: http://blog.csdn.net/kunshan_shenbin/article/details/7612834 [root@localhost ~]# rpm -ivh MySQL-server-5.5.24-1.linux2.6.x86_64.rpm Preparing... ########################################### [100%] file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflic…

2013-07-13 18:01 · linux · 评论(0)

使用JMeter进行性能测试(Java请求)

来源: http://wangym.iteye.com/blog/731729 看了两篇如何使用JMeter在HTTP请求及数据库方面做性能测试的文章(如下两个链接),感受到这款工具的强大及易用。我在这里延续下,对JMeter里另外一种常用的测试类型:"Java请求",做个入门级的介绍。 http://www.ibm.com/developerworks/cn/java/l-jmeter/ http://www.ibm.com/developerworks/cn/opensource/os-pressiontest/ "Java请求"是指JMeter对Java Class进行性能测试。在没有…

2013-02-19 11:23 · test · 评论(0)

bloom filter的开源实现程序memcached bloom filter

文章转自: http://www.heyues.com/mc_bloom_filter/ google code 上的介绍 Introduction Bloom filter 是由 Howard Bloom 在 1970 年提出的二进制向量数据结构,它具有很好的空间和时间效率,被用来检测一个元素是不是集合中的一个成员,被广泛使用于各种海量数据排重的场景中。Mc bloom filter是一个全新的排重服务器,它采用memcached的网络层封装了bloom filter的操作,使各种语言php、java、perl、python、go、c等等,都能使用memcached的协议进行bloom f…

2012-12-05 16:12 · hadoop · 评论(0)