1.Solr下载 下载地址 :http://lucene.apache.org/solr/ 2.解压,测试 在example文件夹中找到start.jar文件,用命令提示符运行这个文件:java -jar start.jar,如下图:8983就是Solr服务器的端口,用浏览器请求http://l.....
题目:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and ....
分类:
编程语言 时间:
2014-07-31 05:22:15
阅读次数:
287
原文:http://peeterjoot.wordpress.com/2010/07/07/avoiding-gdb-signal-noise/A quick note for future reference (recorded elsewhere and subsequently lost).S...
分类:
数据库 时间:
2014-07-31 02:44:25
阅读次数:
303
题目:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 /...
分类:
编程语言 时间:
2014-07-31 02:28:25
阅读次数:
376
很多像我一样刚开始学习Qt的时候都会遇到这样的问题。例如"fatal error C1083: 无法打开包括文件:“QApplication”: No such file or directory",遇到这样的问题要么百度、要么问群里面老人。其实这类问题总结起来就是没有在pro文件中添加"QT +=...
分类:
其他好文 时间:
2014-07-31 02:23:15
阅读次数:
274
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2], The longes...
分类:
其他好文 时间:
2014-07-31 02:19:45
阅读次数:
243
shell的种类: sh ?- Bourne shell csh or tcsh - C shell korn - Korn shell bash - GNU Bourne-Again shell 1.最简单的列子 例子 #!/bin/bash ? #?This?is?a?very?simple?example?echo?Hello?World e...
分类:
其他好文 时间:
2014-07-31 00:13:45
阅读次数:
454
我们知道,win7系统自带有讲述人,即可以机器读出当前内容,具体可以将电脑锁定,然后点击左下角的按钮即可。之前在用Matlab写扫雷游戏的时候,也曾经调用过讲述人来进行游戏的语音提示。具体的Matlab脚本文件如下:
sp=actxserver('SAPI.SpVoice');sp.Speak('你好,欢迎来到西安电子科技大学!Hello,Welcome to XD University!')...
分类:
其他好文 时间:
2014-07-31 00:08:35
阅读次数:
440
问题描述:
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4],]
解题思路...
分类:
其他好文 时间:
2014-07-31 00:04:35
阅读次数:
204
defrex01(self):username=QtCore.QRegExp('[a-zA-Z0-9_]{2,10}')self.names.setValidator(QtGui.QRegExpValidator(username,self))mainname=QtCore.QRegExp("^[\...
分类:
其他好文 时间:
2014-07-30 23:51:55
阅读次数:
537