Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
You are given a target value to search. If found in the array retur...
分类:
其他好文 时间:
2014-07-26 15:16:50
阅读次数:
199
mac系统一般默认会安装jdk 1.6,路径为/System/Library/Java/JavaVirtualMachines/1.6.0.jdk,此Jdk为系统默认jdk;但某些框架/应用要求jdk1.7甚至jdk1.8才能运行,所以需要配置系统默认jdk。首先下载并安装需要的jdk,http:/...
分类:
其他好文 时间:
2014-07-26 14:44:50
阅读次数:
237
1.读数据 excel文件 1.library(RODBC);z<-odbcConnectExcel("weather.xls");(w<-sqlFetch(z,"Sheet1"));odbcClose(z); 选择文件: data=odbcConnectExcel(file.choose());显...
分类:
其他好文 时间:
2014-07-26 14:16:35
阅读次数:
208
周氏一族,整理技术文档,给下一代留点教程...如题,今天在配置服务器的时候,发现这个问题,以前也经常有,但是懒得去搞,今天整理一下,留下笔记[root@Nginx_Web02home]#setup-bash:setup:commandnotfound[root@Nginx_Web02home]#遇到这种问题,一般都可以不难猜想得出,网络..
分类:
其他好文 时间:
2014-07-26 03:26:37
阅读次数:
247
哇哇哇、、、、你们是不是也出现过这样的错误阿、、什么意思啊?好吧、、、你们看:你的电脑是32位的还是64位的?没事、这个かまいません、、、关键是你安装的JDK是32位的还是64位的?这才是关键!这个意思是说你这个路径下的JDK不对、你就换成64位吧、、、是不是好了!(*^__^*..
分类:
其他好文 时间:
2014-07-26 03:21:17
阅读次数:
292
在myeclipse中BASE64Encoder类的提示不出现
右击当前的工程-->Build Path--->Configure Build Path--->Java Build Path-->
Libraries--->点击JRE System Library--->Remove-->OK-->重新进入这个页面Libraries
-->Add Library--->JRE System ...
分类:
其他好文 时间:
2014-07-26 02:40:06
阅读次数:
196
I would like to know what would be the best way to save contents from a web page. I mean to force save-as option by clicking a link or button. I often found that javascript would not be an option beca...
分类:
Web程序 时间:
2014-07-26 02:29:06
阅读次数:
297
Linux下Oracle11G RAC报错:在安装oracle软件时报file notfound一例
1、现象
之前安装一切都比较顺利,安装oracle软件时,进度到30%时报错:file not found(/u01/app/oracle/product/11.2.0/db_1/owb/external/oc4j_applications/applications/WFMLRSVCApp.e...
分类:
数据库 时间:
2014-07-26 02:07:26
阅读次数:
264
ggplot2包也能对时间序列数据绘图,但在处理上需要有些注意的地方。下面我们以上证指数为例进行作图,首先利用quantmod包从yahoo数据源获取从1997年以来的数据,存于变量SSEC中,抽取收盘数字,然后分别提取时间数据和指数数值,绘图结果如下图。1 library(quantmod)2 l...
分类:
其他好文 时间:
2014-07-26 01:21:57
阅读次数:
234
1 色彩和形状的控制数据特征不仅可以用坐标来表示,也可以用不同的色彩或形状来表示。仍以mpg数据集为例,所用到的变量有cty(城市中行驶距离),hwy(高速路行驶距离),displ(排量大小),year(生产年份)1 library(ggplot2)2 p <- ggplot(mpg, aes(ct...
分类:
其他好文 时间:
2014-07-26 01:20:36
阅读次数:
360