-凯发k8国际

`
eyesmore
  • 浏览: 357748 次
  • 性别:
  • 来自: 北京
最近访客
博主相关
  • 博客
  • 微博
  • 相册
  • 收藏
  • 文章分类
    社区版块
    • ( 0)
    • ( 6)
    • ( 1)
    存档分类
    • ( 1)
    • ( 1)
    • ( 2)
    最新评论
    • : 感谢以后去火车站就知道郑州的代号了哈哈!谢谢!
    • : 感谢分享,学习了.其实开头就该说有pdf版的...这排版不好看 ...
    • : 感谢中英对照地讲解,非常清楚了。登录表示感谢
    • : 好文章要顶!
    • : hardpass 写道mmap是direct buffer 的 ...
    文章列表
    数据库中文显示必须每个环节的字符集都支持中文,且一致。从本地securecrt到数据库总共经历了多少环节呢? 1、本机到虚拟window开发机    (由于windows都没问题); 2、虚拟window开发机到linux虚拟机,走的是securecrt 设置: 选项->会话选项->外观->字符集编码->utf-8 3、从linux虚拟机到db的跳板机,走的是ssh 设置:linux机的locale
    • 2014-08-15 16:22
    • 浏览 1091
    • 分类:数据库
    query_cache 读者摘要: http://blog.csdn.net/qiuyepiaoling/article/details/6004611  1、query_cache是server的查询缓存,跟存储引擎无关。当然存储引擎层也有查询缓存。2、query_cache缓存的value是“结果集”,而不是“页”。key是sql语句,取hash,如果sql中含有子查询,也是作为整体cache,而不会按子查询分别cache。3、内存与磁盘的读写速度差异是千倍级。直观的说:宁愿在内存中执行1000次,不要在磁盘上执行一次。4、query_cache提高查询效率的2个原因:(1)内存读写性 ...
    • 2013-07-19 18:20
    • 浏览 1273
    • 分类:数据库
    转载: http://blog.sina.com.cn/s/blog_69bd73800100yaej.html    多余位四舍五入,四种方法                                                                  一:                                                                                      double f = 111231.5585; bigdecimal b = new bigdecimal(f);             ...
    the following issue has been closed ====================================================================== http://bugs.caucho.com/view.php?id=5294 ====================================================================== reported by: chinaliwee assigned to: ferg ...
    • 2013-01-20 13:43
    • 浏览 1667
    • 分类:互联网
     import java.text.parseexception; import java.text.simpledateformat; import java.util.date; import java.util.map; import org.apache.struts2.util.strutstypeconverter; public class dateconverter extends strutstypeconverter { /* * http://blog.163.com/ztxz_179/blog/static/105205995201225759 ...
    • 2012-12-29 19:51
    • 浏览 1223
    • 分类:互联网
      在 servlet中获取spring bean,备忘 不解释   import org.springframework.web.context.webapplicationcontext; import org.springframework.web.context.support.webapplicationcontextutils; public class heartbeatservlet extends httpservlet { private static final long serialversionuid = 61658172211660073 ...
      备忘不解释   #!/bin/bash export  lang="en_us.utf-8" export  supported="zh_cn.utf-8:zh_cn:zh:en_us.utf-8:en_us:en" export  sysfont="latarcyrheb-sun16"   #delete files modified min 20 ago /usr/bin/find /opt/rsync/liveimg/eden/ -maxdepth 1 -type f -regex '/opt/rsyn ...
    • 2012-12-25 18:49
    • 浏览 1219
    • 分类:互联网
    http://wiki.nginx.org/httpauthbasicmodule http://wiki.nginx.org/faq#how_do_i_generate_an_htpasswd_file_without_having_apache_tools_installed.3f     location  /  {   auth_basic            "restricted";   auth_basic_user_file  htpasswd; }   命令1:auth_basic  表示使用http basic auth,不是其他 ...
    备忘下,tmd delicious现在都搞定老不爽了 。。。  
    • 2012-11-07 18:07
    • 浏览 1251
    • 分类:互联网
    memcached内存管理的局限性导致尽量不能让key永远不过期   http://blog.csdn.net/tenebaul/article/details/8141673      
    • 2012-11-02 17:41
    • 浏览 1664
    • 分类:互联网
      博客分类:
    需要请求的图片,其中$station_id是变量   http://host/thumb/200x/$station_id.jpg http://host/thumb/160x/$station_id.jpg   为了容错,提供了两张默认图片,当$station_id对应的图片找不到的时候,用默认图片替代 http://host/thumb/notfound_160x.jpg http://host/thumb/notfound_200x.jpg     为此在nginx里面配置:   location ^~ /thumb/ {        set $ ...
    • 2012-10-23 18:55
    • 浏览 2205
    • 论坛回复 / (0 / 5621)
    • 分类:操作系统
    继续备忘,老忘记,记忆不行了   比如:给定一个毫秒数 1350014340795 bash 看日期 date -d @1350014340     [root@zw_79_195 ~]# date '%f %t' -d @1350014340 2012-10-12 11:59:00 [root@zw_79_195 ~]#
      好些年前写的,偶然找出来,临时用下,顺便分享下~~  性能好像不咋地    import java.io.bytearrayoutputstream; public class ultraedit { public static void main(string[] args) { system.out.println(ultraedit.getinstance().gethexuppercase(" 测试 & 数据 test data".getbytes())); system.out.println(ultraedit.getins ...
      博客分类:
      分布式并发计数,以视频站点播放数统计为例(本质是{vid->count}映射关系),内容提要: upsert $inc解决并发计数 findandmodify解决写时返回结果 java实现:findandmodify upsert $inc三剑客 谢绝objectid,用vid直接做_id (1)upsert $in ...
    • 2012-08-14 13:31
    • 浏览 5393
    • 分类:数据库
    [@tc_132_12 apps]# cat forward.sh #! /bin/sh target_host=10.11.132.12 target_port=10086 forward_host=10.10.83.83 forward_port=8080 echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/iptables -t nat -a prerouting -d ${target_host} -p tcp -m tcp --dport ${target_port} -j dnat --to-destination ${forwar ...
    global site tag (gtag.js) - google analytics
    网站地图