`
文章列表
0. Object and Value >>> a = 'banana' >>> b = 'banana' >>> a is b True In this example, Python only created one string object, and both a and b refer to it. >>> a = [1, 2, 3] >>> b = [1, 2, 3] >>> a is b False   In this case w ...

Git basic command

    博客分类:
  • git
The most commonly used git commands are: add //add Add file contents to the index bisect //bisect Find the change that introduced a bug by binary search branch //branch List, create, or delete branches checkout //checkout Checkout and switch to a branch clone //clone Clone a repository into a n ...
模块     编写稍大一点的程序时一般都会将代码模块化。在NodeJS中,一般将代码合理拆分到不同的JS文件中,每一个文件就是一个模块,而文件路径就是模块名。     在编写每个模块时,都有require、exports、module三个预先定义好的变量可供使用。 require     require函数用于在当前模块中加载和使用别的模块,传入一个模块名,返回一个模块导出对象。 var foo1 = require('./foo'); var foo2 = require('./foo.js'); var foo3 = require('/home/user/foo'); var f ...
package com.test.mybatis; import java.io.File; import java.io.IOException; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.mybatis.generator.api.MyBatisGenerator; import org.mybatis.generator.config.Configuration; import org.mybatis.generator. ...
mail局域网Exchange服务器测试代码,仅限发送到domain内用户,发送外网需要exchange设置白名单,ref: 解决方案: Exchange 2003: Open the Exchange System Manager Go in Administrative Groups -> Administrative group name -> Server -> Server name -> Protocols -> SMTP Right click on Default SMTP Virtual Server -> properties ...
sdk位置没问题,突然启动后就识别不了sdk了,尝试删除eclipse的adt配置重启eclipse后再次配置android sdk location问题解决。 删除eclipse的workspace\.metadata\.plugins\org.eclipse.core.runtime\com.android.ide.eclipse.adt.prefs 、 com.android.ide.eclipse.ddms.prefs #com.android.ide.eclipse.adt.prefs com.android.ide.eclipse.adt.attrSort=logical ...

Google Charts

    博客分类:
  • WEB
https://developers.google.com/chart/interactive/docs/quick_start <html> <head> <!--Load the AJAX API--> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> ...
win+R->CMD-> ipconfig /flushdns ipconfig /displaydns C:\windows\system32\drivers\etc\hosts 64.233.166.106 www.google.com #http://209.116.186.231/
Java Concurrency / Multithreading Tutorial 并发编程网 Table of Contents The Java synchronized Keyword Synchronized Instance Methods Synchronized Static Methods Synchronized Blocks in Instance Methods Synchronized Blocks in Static Methods Java Synchronized Example Java Concurrency Utilities A Java synchro ...
jdk1.6升级到1.7后Comparator有null的参数就会抛出如下异常 java.lang.IllegalArgumentException: Comparison method violates its general contract! at java.util.TimSort.mergeLo(TimSort.java:747) at java.util.TimSort.mergeAt(TimSort.java:483) at java.util.TimSort.mergeCollapse(TimSort.java:410) at java.util.TimSort.so ...
java.lang.IllegalArgumentException: Comparison method violates its general contract! 网上查到一个解释: Description: The sorting algorithm used by java.util.Arrays.sort and (indirectly) by java.util.Collections.sort has been replaced. The new sort implementation may throw an IllegalArgumentException if it d ...
解决同一台电脑上面多个server需要共享80端口或者域名的问题,Apache的二级域名转发规则没研究明白,于是果断nginx了。 server { listen 80; server_name wxpro.orctest.cn; location /sitefiles/ { root D:/nginx/html; } location / { proxy_redirect off; proxy_set_header ...
文件包结构: icon.png // 插件图标 jquery-1.11.1.min.js //引入jQuery manifest.json // 主配置文件 myscript.js // 针对页面操作的js popup.html //弹出框页面 1.manifest.json { "name": "NewIssueNotify", "version": "1.0", "manifest_version":2, "description": &quo ...
http://www.2cto.com/kf/201103/84667.html 昨天在公司写了一段代码,很简单,就是测试Thread的dumpStack方法的使用。因为Thread的dumpStack方法不是很常用,但它对于如果想看看谁在运行时调用方法还是非常有帮助的。回到正题,看输出结果: java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at Common.getInfo(TestDumpStack.java:21) at TestDumpStack.main(TestDump ...
参考 : How to avoid huge transactions with CMP Entity Beans on JBoss 2014-05-23 11:06:32,475 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException in method: public abstract com.spokesoft.component.sla.SlaDetails com.spokesoft.component.sla.ejb.Sla.getSlaDetails() throw ...
Global site tag (gtag.js) - Google Analytics