背景:机器上装有jdk7和8两个版本,命令行中查看java版本为1.7,而neon对jdk的版本要求是1.8,又不想修改系统默认的jdk版本。 解决方法:eclipse安装目录下找到eclipse.ini文件,增加如下参数: -vmD:\java\jdk1.8\bin 完整文件: ...
分类:
系统相关 时间:
2018-03-11 02:43:04
阅读次数:
210
【Problem】 duplicate connection name 【Solution】 在Qt上使用SQLite的时候,如果第二次使用QSqlDatabase::addDatabase()方式时,就会出现以下错误提示: QSqlDatabasePrivate::addDatabase: dup ...
分类:
其他好文 时间:
2018-03-07 18:55:12
阅读次数:
181
一 介绍 为何要有索引? 一般的应用系统,读写比例在10:1左右,而且插入操作和一般的更新操作很少出现性能问题,在生产环境中,我们遇到最多的,也是最容易出问题的,还是一些复杂的查询操作,因此对查询语句的优化显然是重中之重。说起加速查询,就不得不提到索引了。 什么是索引? 索引在MySQL中也叫做“键 ...
分类:
数据库 时间:
2018-03-07 00:45:56
阅读次数:
256
Sum 系列题解 Two Sum题解 题目来源:https://leetcode.com/problems/two sum/description/ Description Given an array of integers, return indices of the two numbers s ...
分类:
其他好文 时间:
2018-02-28 11:58:45
阅读次数:
169
网上很多资料说有两种方式 (必须现有唯一键) 1.INSERT 中ON DUPLICATE KEY UPDATE的使用 2.REPLACE的使用 通过可以得出结果: 如果a和b字段 能决定唯一 例子: REPLACE INTO tb(id,a,b,c,d) SELECT IFNULL( (SELEC ...
分类:
数据库 时间:
2018-02-25 13:17:16
阅读次数:
244
Question: Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1- ...
分类:
其他好文 时间:
2018-02-25 13:11:44
阅读次数:
172
Given a target integer T and an integer array A sorted in ascending order, find the index i such that A[i] == T or return -1 if there is no such index ...
分类:
其他好文 时间:
2018-02-25 01:12:42
阅读次数:
180
下面两个函数都可用来复制一个现存的文件描述符: #include<unistd.h> int dup(int filedes); int dup2(int filedes,int filedes2); 两函数的返回值:若成功则返回新的文件描述符,若出错则返回-1 由dup返回的新文件描述符一定是当前 ...
分类:
其他好文 时间:
2018-02-24 10:49:59
阅读次数:
173
In this lesson, you will learn how to implement pytest fixtures. Many unit tests have the same resource requirements. For example, an instantiated obj ...
分类:
编程语言 时间:
2018-02-22 22:34:06
阅读次数:
245
(1)更新hosts文件 添加如下:0.0.0.0 account.jetbrains.com hosts文件,在windows中的地址为: (2) 复制通用注册码,粘贴在注册界面的Activation code的输入框中,点击 ok。 EB101IWSWD-eyJsaWNlbnNlSWQiOiJF ...
分类:
其他好文 时间:
2018-02-19 14:56:34
阅读次数:
586