Quantcast
Channel: 蜗牛都知道
Browsing all 105 articles
Browse latest View live

Git warning push.default is unset

来源:EXLsunshine warning: push.default is unset; its implicit value is changing in Git 2.0 from ‘matching’ to ‘simple’. To squelch this message and maintain the current behavior after the default...

View Article


https方式使用git@osc设置密码的方式

来源:周凯 https方式每次都要输入密码,按照如下设置即可输入一次就不用再手输入密码的困扰而且又享受https带来的极速 设置记住密码(默认15分钟): git config --global credential.helper cache 如果想自己设置时间,可以这样做: git config credential.helper 'cache --timeout=3600'...

View Article


web.xml中出现default是什么意思?

来源:LOVE____JAVA 在web.xml文件中经常看到这样的配置<servlet-name>default</servlet-name>,这个配置的作用是:对客户端请求的静态资源如图片、JS文件等的请求交由默认的servlet进行处理,如下所示: <servlet-mapping>...

View Article

Hive UNION ALL报错Top level UNION is not supported currently

来源:四号程序员 下面只是一个例子,一般用OR 条件肯定会搞定的。 SELECT a, b from tb1 where a > 100 UNION SELECT a, b from tb2 where a > 1000; 会报错 FAILED: SemanticException 1:62 Top level UNION is not supported currently; use...

View Article

sae cookies的问题

cookie.setDomain(“/”); java.lang.IllegalArgumentException: path must start with /test or /(number)/test at com.sina.sae.facade.SaeHttpServletResponse.addCookie(SaeHttpServletResponse.java:126) at...

View Article


MyBatis update insert 返回值一直为-2147482646

原因是配置中加了: <!– 对于批量更新操作缓存SQL以提高性能 –> <setting name=”defaultExecutorType” value=”BATCH” /> mybatis官方的讨论列表,:“If the BATCH  executor is in use, the update counts are being lost. ”

View Article

tomcat 中文乱码

<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8" />

View Article

Java 8?还记得那年大明湖畔的Java 7吗?

来源:有孚 译注:但见新人笑,哪闻旧人哭。在大家都在兴致勃勃的讨论Java 8的时候,那个早被遗忘的Java 7,或许你从来都没有记得它的好。 Java 8的发布也有一个月了,我相信现在大家都在探索JDK 8中的新特性。但是,在你彻底开始钻研Java 8之前,最好先来回顾下Java 7有哪些新特性。如果你还记得的话,Java 6是没有增加任何特性的,只是JVM的一些改动以及性能的提升,不过JDK...

View Article


Sae的Java应用如何看日志

java的错误信息在哪里可以看?就是exception对象的printStack信息 运行期的日志在日志中心的HTTP下的error级别里看

View Article


java生成高质量的缩略图

package com.hxy.secrets.util; import java.awt.Color; import java.awt.Graphics; import java.awt.Image; import java.awt.image.BufferedImage; import java.awt.image.ConvolveOp; import...

View Article

tablesorter Disabling sort on all columns

https://github.com/Mottie/tablesorter/issues/205

View Article

myisam和innodb中count(*)的区别

来源:星星 COUNT(*) for Innodb Tables 总结: 1.myisam保存表的总行数,因此count(*)并且无where子句,很快会返回表的总行数 2.myisam保存表的总行数,利用count(column)并且无where子句,并且此column不为null,很快会返回表的总行数...

View Article

Solving “Dynamic Web Module 3.0 requires Java 1.6 or newer” in Maven Projects

http://qussay.com/2013/09/13/solving-dynamic-web-module-3-0-requires-java-1-6-or-newer-in-maven-projects/

View Article


分析JAVA应用CPU占用过高的问题

http://blog.csdn.net/jiangguilong2000/article/details/17971247

View Article

消除SDK更新时的“https://dl-ssl.google.com refused”异常

http://blog.csdn.net/x605940745/article/details/17911115

View Article


github git push 不需要输入账号密码

http://linglong117.blog.163.com/blog/static/27714547201332765921928/

View Article

CentOS6.4下Mysql数据库的安装与配置

http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html

View Article


给CentOS 6安装Tomcat 7,并自启动

http://blog.csdn.net/headman/article/details/24392463

View Article

com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect...

mysql sql (update) 语句中对于字符串类型的字段,其值要加单引号。 如 UPDATE table1 set returnnum=1 WHERE platform=${platform} 会报以上错误,而 UPDATE table1 set returnnum=1 WHERE platform='${platform}' 则正常执行

View Article

MYSQL group by 分组取最大值

SELECT name FROM (SELECT * FROM tabl1 ORDER BY id DESC) t1 GROUP BY name ORDER BY id DESC LIMIT 10

View Article
Browsing all 105 articles
Browse latest View live