用 Intellij IDEA 编译程序时遇到了这个问题,如下图所示: 对结果貌似没什么影响,但暂时没找到出现这个情况的原因………
IntelliJ IDEA是一款非常优秀的JAVA编辑器,初学都可会对其中的一些做法感到很别扭,刚开始用的时候我也感到很不习惯,在参考了网上一些文章后在这里把我的一些经验写出来,希望初学者能快速适应它,不久你就会感觉到编程是一种享受了. 安装后的一些设置技巧:1.如何完美显示中文:Settings->Appearance中勾选Override default fonts by (not recommended),设置Name:NSimSun,Size:122.如何让光标不随意定位:Setting…
原文网址:http://blog.sina.com.cn/s/blog_5cdb72780100l26f.html samba服务器出现“session setup failed: NT_STATUS_LOGON_FAILURE”的解决办法: $ smbclient -L \\127.0.0.1 -U wuhaoshuEnter berbiey's password:session setup failed: NT_STATUS_LOGON_FAILURE wuhaoshu是fedora 13中…
1.考虑下面的需求,对于vec开始的时候有1000个元素,后来只有10个元素,那么vec的capacity至少还是1000,后面的990个内存单元,没有使用,但是还被vec霸占着.如何释放这些内存呢? 2.我们知道,vector进行copy构造的时候,根据rhs 的size进行分配内存.因此,我们可以建立一个临时对象,然后交换一下就可以了.如下: vector<int>(vec).swap(vec); vector<int>(vec) 是个临时对象,可认为capacity为10,而…
原文网址:http://blog.csdn.net/linsa0517/article/details/19031479 Fail的一些修改   1.直接设置问题 estUnknownSourcesOffByDefault fail junit.framework.AssertionFailedError: Deviceshould not ship with 'Unknown Sources' enabled by default.expected:<0> butwas:<1>…
在MyEclipse中启动Tomcat时出现错误,错误信息例如以下: 严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"] 这是因为8080port冲突导致的. 关掉MyEclipse后,打开任务管理器,将名字为javaw.exe的进程所有结束.然后又一次打开MyEclipse,启动Tomcat就能够了. 这样问题就攻克了.希望对大家有帮助. watermark/2/te…
Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. You may not modify the values in the list, onl…
  场景描述:被测系统是发布在远程服务器上的,假设IP是10.10.10.10,端口是8066,那么访问地址是http://10.10.10.10:8066/,在control机器上我设置了IP欺骗. 错误现象:在场景运行时出现大量Action.c(8): Error -27796: Failed to connect to server"server:port": [10060] Connection timed out错误. 官方的troubleshooting: 查看工具的tro…
---恢复内容开始--- 在克隆GIT项目后,Android Studio 报错: Gradle sync failed: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide c…
前言 使用vim的时候,文件编辑过程中可能会出现bug,导致非正常关闭.为了保存刚刚修改的内容,需要对文件进行恢复. 操作过程 1.查看目录文件 zrj@zrj-ThinkPad-E470:~/work/code/facedetection/src$ ll total drwxrwxr-x xxx xxx Sep : ./ drwxrwxr-x xxx xxx Sep : ../ -rw-rw-r-- xxx xxx Sep : facedet.cpp -rw-r--r-- xxx xxx Se…