- 博客(80)
- 收藏
- 关注
原创 JSP中文乱码解决办法汇总
IDE(例如myeclipse编码),Window->Preferences->General->Workspace->Text file encoding,(UTF-8,GBK)JSP编码(pageEncoding="utf-8";)servlet编码(request.setCharacterEncoding("utf-8");response.setCharacterEncoding("utf
2014-09-11 17:28:38
640
原创 mysql的root密码忘记的解决办法
Centos系统mysql 忘记root用户的密码:第一步:(停掉正在运行的mysql)[root@CentOs5 ~]# service mysqld stop Stopping MySQL: [ OK ] 第二步:使用 “--skip-grant-tables”参数重新启
2014-08-14 17:40:43
733
原创 eclipse Hadoop开发环境配置
设置语言环境1$exportLC_ALL=en设置ant初始参数修改build-contrib.xml文件12$cd $HADOO_HOM/src/contrib$vibuild-contrib.xml
2014-07-26 12:11:04
722
原创 linux下eclipse的字体设置
选择Window->Preferences.在弹出的对话框中选择General->Appearance->Colors and Fonts在 右边的对话框中选择中basic下的 Text Font ,然后点击edit按钮,在弹出的字体选择框中选择DejaVu Sans Mono字体
2014-07-19 11:50:22
2853
原创 hdfs-webdav的war部署
hdfs-webdav能讲hdfs映射为本地文件系统。通过实现webDav Http协议。可以如使用本地文件系统一样使用hdfs。war部署。修改WEB-INF/classes/hadoop-site.xml,修改fs.default.name属性,以确定hdfs-webdav要连接的hadoop namenode server.替换hadoop的核心jar包。hadoop-core-1.2.1.
2014-07-15 19:51:08
2709
原创 ubuntu挂载移动硬盘出现错误:mount:unknown filesystem type 'exfat'
Ubuntu 13.04 and lowerYou need to install exfat support in Ubuntu if you want to use it. Installation procedure:sudo apt-add-repository ppa:relan/exfatsudo apt-get updatesudo apt-get install
2014-07-15 09:28:09
3321
原创 bypy用法记录
百度网盘是一款云存储服务器,用户可以轻松把自己的文件上传到网盘上,并可以跨终端随时随地查看和分享。小编在本文提供的是Linux百度网盘的安装设置方法
2014-07-14 21:12:37
21061
原创 fuse-dfs挂载hdfs实录
部署安装了最新稳定版hadoop2.2.0,然后在网上找来fuse-dfs编译教程,但是最后失败了,至今原因未知~~,错误描述为:Transport endpoint is not connected。后将安装部署hadoop1.2.1版本,最后测试成功,记录如下:使用root完成一下操作:1、安装依赖包apt-get install autoconf automake libtool
2014-06-24 20:07:58
4041
原创 Substring in c programming
在c++中,string类型的变量有substr方法用来取字串,现实现c中的字符串char *
2014-06-12 21:10:01
627
原创 配置上传文件大小限制
"upload_max_filesize",去掉本行最前面的分号,并设置为200M。"post_max_size",设置为200M。
2014-06-10 18:43:51
748
原创 centos下部署安装edusoho全过程
1: 解压软件包在Windows操作系统中,使用解压缩工具解压缩软件包;在Linux操作系统中,可执行以下命令来实现解压操作:tar -zxvf edusoho-1.0.tar.gz解压之后,得到名为edusoho的文件夹,内部目录如下: app,doc,src,vendor,web。2: 上传软件包(FTP上传)若在Windows操作系统中,使用上传工具(如Fil
2014-06-03 17:34:58
7379
原创 ubuntu下apache虚拟主机出现forbidden错误的解决办法
apache的虚拟主机一直运行都是正常,但是当我升级了ubuntu系统之后,再启动apache时,虚拟主机出现了forbidden的错误。在网上找了很长时间答案,但是很多方法试了之后都无效,最后还是找到了解决办法,先记录下来,后面防止再发生这样的错误。奇怪现象:如果将document root指向/var/www或其子目录,那么就不会出现forbidden错误————太奇怪了~~失败方法:
2014-05-29 16:36:14
2554
原创 LeetCode——Reverse Words in a String
Reverse Words in a String Total Accepted: 14074 Total Submissions: 101768My SubmissionsGiven an input string, reverse the string word by word.For example,Given s = "the sky is blue",
2014-05-25 17:40:54
548
原创 LeetCode——Palindrome Partitioning II
Palindrome Partitioning II Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning of s.For
2014-05-22 23:03:44
537
原创 LeetCode——Palindrome Partition
Palindrome Partitioning Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example, given s = "
2014-05-22 22:20:20
1029
原创 LeetCode——Clone Graph
Clone Graph Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serialization:Nodes are labeled uniquely.We use # a
2014-05-22 10:29:07
557
原创 LeetCode——Gas Station
Gas Station There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it costs cost[i] of gas to trave
2014-05-21 10:38:03
601
原创 apt-get update “Hash Sum mismatch”解决方案
这个原因比较多,要多试试方法.1修改/etc/resolv.conf文件:nameserver=8.8.8.82
2014-05-14 23:32:00
1255
原创 解决/boot空间不足问题
可随着linux升级,往往会攒下好几个内核,某一天系统会提示你升级失败,空间不足了。。。更改boot分区大大小不晓得可不可以做到,貌似linux下还没有无损分区的概念。
2014-05-14 15:59:36
688
原创 ubuntu12.04 国内高速源记录
使用方法:1、修改源地址:cp /etc/apt/sources.list /etc/apt/sources.list.bakvim /etc/apt/sources.list加入如下内容(中科大的U源):deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted
2014-05-14 10:13:52
644
原创 LeetCode——Candy
Candy There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requirements:Each child must ha
2014-05-12 15:55:17
665
原创 LeetCode——Single Number(II)
Single Number Total Accepted: 19800 Total Submissions: 44027My SubmissionsGiven an array of integers, every element appears twice except for one. Find that single one.Note:Your algor
2014-05-08 10:05:48
1201
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人