背景:
在本机(Win7 64位 旗舰版)安装Oracle 11g的客户端(安装的32位的ORACLE客户端),并设置相应的本地服务后,用PL/SQL Developer提示下面的错误:
“Could not load "……\bin\oci.dll"”这个错误,64位win7上装PL/SQL,经常会遇见“Could not load "……\bin\oci.dll"”这个错...
分类:
数据库 时间:
2014-06-28 08:46:15
阅读次数:
278
一、准备工作
1、 首先,下载mongoDB对Java支持的驱动包
驱动包下载地址:https://github.com/mongodb/mongo-java-driver/downloads
mongoDB对Java的相关支持、技术:http://www.mongodb.org/display/DOCS/Java+Language+Center
驱动源码下载:https://d...
分类:
数据库 时间:
2014-06-28 08:19:20
阅读次数:
331
题目:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the ta...
分类:
其他好文 时间:
2014-06-28 08:17:11
阅读次数:
305
Problem :It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order.Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and ...
分类:
其他好文 时间:
2014-06-28 08:13:17
阅读次数:
249
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 sum
= 22,
5
/ ...
分类:
其他好文 时间:
2014-06-28 07:31:28
阅读次数:
214
今天在编译安装MySQL的时候出现报错,报错信息如下[root@localhostmysql]#servicemysqlstartStartingMySQL..ERROR!TheserverquitwithoutupdatingPIDfile(/var/lib/mysql/localhost.localdomain.pid)查看报错日志信息如下:14062711:31:43[ERROR]Fatalerror:Can‘topenandlockpri..
分类:
数据库 时间:
2014-06-28 06:34:58
阅读次数:
345
我勒个去,上午刚搞好MySQL的编译安装,玛德一重启计算机然后重启服务又报错:[root@localhostmysql-5.5.13]#/usr/local/mysql/scripts/mysql_install_db--user=mysqlFATALERROR:Couldnotfind./bin/my_print_defaultsIfyoucompiledfromsource,youneedtorun‘makeinstall‘tocopyt..
分类:
其他好文 时间:
2014-06-28 06:21:53
阅读次数:
313
遍历目录中所有文件,并且统计文件类型。#!/bin/bash
#filename:filestat.sh
#set-x
if[$#-ne1];
then
echo$0basepath;
echo
fi
path=$1
declare-Astatarray;
whilereadline;
do
ftype=`file-b"$line"`
letstatarray["$ftype"]++;
done<<(find$path-typef-print)
ech..
分类:
其他好文 时间:
2014-06-28 00:16:08
阅读次数:
224
This question is not so difficult.
First,my thoughts were we should use a lot of code to find out the loop block,but there is no need to do that .
you just need to get every new position of char in ...
分类:
其他好文 时间:
2014-06-27 23:39:44
阅读次数:
293
Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm sho...
分类:
其他好文 时间:
2014-06-27 22:24:34
阅读次数:
346