`
eyesmore
  • 浏览: 363180 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
数据库中文显示必须每个环节的字符集都支持中文,且一致。从本地SecureCRT到数据库总共经历了多少环节呢? 1、本机到虚拟window开发机    (由于windows都没问题); 2、虚拟window开发机到Linux虚拟机,走的是SecureCRT 设置: 选项->会话选项->外观->字符集编码->UTF-8 3、从Linux虚拟机到DB的跳板机,走的是SSH 设置:Linux机的locale
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)内存读写性 ...
转载: 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 ...
 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 ...
  在 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 ...
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现在都搞定老不爽了 。。。  
Memcached内存管理的局限性导致尽量不能让KEY永远不过期   http://blog.csdn.net/tenebaul/article/details/8141673      
需要请求的图片,其中$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 $ ...
继续备忘,老忘记,记忆不行了   比如:给定一个毫秒数 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 ...
[@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