Java compiler level does not match the version of the installed Java project facet Assuming that you are using the m2e plugin in Eclipse, you‘ll need to specify the?source?and?targetversions as...
分类:
其他好文 时间:
2014-07-25 00:11:14
阅读次数:
223
在/etc/profile追加exportHISTORY_FILE=/var/log/history/userhistory.log
readonlyPROMPT_COMMAND=‘{date"+%y-%m-%d%T#####$(whoami|awk"{print\$1\"\"\$2\"\"\$NF}")####$(id|awk"{print\$1}")####$(history1|{readxcmd;echo"$cmd";})";}>>$HISTORY_FILE‘重读source/et..
分类:
系统相关 时间:
2014-07-24 23:54:14
阅读次数:
281
In the partime, a simle program attracted my attention whose content is to change number to english by reading rule of money.It took about one hour to deal with this question. Now the source was shar...
分类:
其他好文 时间:
2014-07-24 23:15:23
阅读次数:
280
source insight是一款很好的c语言的程序编辑器,方便对project管理,方便程序的阅读和编辑。查找功能使用十分频繁,选项较多,与其它软件的查找功能也类似,下面对英文版的查找功能,做简单说明:
查找参数:
whole words only : 全字匹配查找
case sensitive : 区...
分类:
其他好文 时间:
2014-07-24 17:41:36
阅读次数:
233
Situation one: you are trying to compile a package from source and you discover that somebody has already done the work for you of modifying it slight...
分类:
其他好文 时间:
2014-07-24 12:15:45
阅读次数:
323
Android为不同类型的进程分配了不同的内存使用上限,如果应用进程使用的内存超过了这个上限,则会被系统视为内存泄漏,从而被kill掉。Android为应用进程分配的内存上限如下所示:位置: /ANDROID_SOURCE/system/core/rootdir/init.rc 部分脚本# Defi...
分类:
移动开发 时间:
2014-07-24 10:13:13
阅读次数:
306
`1.CGRectInset````CGRect CGRectInset ( CGRect rect, CGFloat dx, CGFloat dy);````return rect which is smaller or larger than the source with the...
分类:
其他好文 时间:
2014-07-24 05:05:48
阅读次数:
264
累了就要写题解,最近总是被虐到没脾气。
来回最短路问题貌似也可以用DP来搞,不过拿费用流还是很方便的。
可以转化成求满流为2 的最小花费。一般做法为拆点,对于 i 拆为2*i 和 2*i+1,然后连一条流量为1(花费根据题意来定) 的边来控制每个点只能通过一次。
额外添加source和sink来控制满流为2。
代码都雷同,以HDU3376为例。
#include
#include
#...
分类:
其他好文 时间:
2014-07-23 22:40:08
阅读次数:
560
string ProImgPath = ProcessPath + name + ".png";//要保存的图片的地址,包含文件名BitmapSource BS = (BitmapSource)ImgPro.Source;PngBitmapEncoder PBE = new PngBitmapEnc...
分类:
其他好文 时间:
2014-07-23 16:30:31
阅读次数:
349
1.备份源1 # cp /etc/apt/source.list /etc/apt/source.list.backup2.编辑源# vim /etc/apt/source.list3.替换合适的源 (可以从后面选择)4.刷新# apt-get update部分源地址阿里云服务器(杭州电信/网通双网...
分类:
其他好文 时间:
2014-07-23 15:00:16
阅读次数:
282