如果你在网上搜索 “apache配置”,搜到的页面大多都会建议你在httpd.conf中加上这么一句:AddDefaultCharset GB2312。对于新手而且是只用GB2312编码的开发人来说,这么做是ok的。但是如果要想使用UTF-8字符集的话,比如 在test.php文件中需要有 meta...
分类:
Web程序 时间:
2014-07-16 19:59:36
阅读次数:
197
题目:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ...
分类:
其他好文 时间:
2014-07-16 19:48:18
阅读次数:
263
前面硬件工程师在sugar-standard的基础上搞了个什么USB HUB的线路,但是这个时候的sugar-standard 依然能自动挂载U盘。后面他又把USB接口的东西给弄成了 A20 sugar-cubieboard 2 的版本,于是这个时候原来的img烧进去,U口就没有任何反应,只有一个口...
分类:
其他好文 时间:
2014-07-14 10:05:45
阅读次数:
527
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.题解:思路比较简单,每条直线都可以表示为y=kx+b,所以对于任意三点,如果它们共线,那么它们中任意两点的...
分类:
其他好文 时间:
2014-07-14 10:02:12
阅读次数:
187
最近期待以久的CentOS 7正式版终于发布了,在家里无聊,所以就打算在我的小Y上安装一下,由于笔记本原来有安装Windows 7 操作系统,考虑使用的需求,所以决定安装双系统:1、 下载CentOS-7.0-1406-x86_64-DVD.iso文件。2、 使用UltraISO制作启动盘,这里要特...
分类:
其他好文 时间:
2014-07-13 08:42:37
阅读次数:
393
【前言】话说好久没有写题解了。到暑假了反而忙。o(╯□╰)o
【原题】
2458: [BeiJing2011]最小三角形
Time Limit: 10 Sec Memory Limit: 128 MB
Submit: 574 Solved: 177
[Submit][Status]
Description
Xaviera现在遇到了一个有趣的问题。
平面上有N个点,X...
分类:
其他好文 时间:
2014-07-13 00:00:29
阅读次数:
302
启动android模拟器时.有时会报The connection to adb is down, and a severe error has occured.的错误.在网友说在任务管理器上把所有adb.exe关闭掉.重启eclipse.但试过不管用.所以在外国网站上找到一种可行的方法:
1.先把eclipse关闭.
2.在管理器转到你的android SDK 的platform-to...
分类:
数据库 时间:
2014-07-12 21:40:22
阅读次数:
260
解决在SharePoint 2010 部署自己Event Handler后,解决”Could not load file or assembly 'TIBCO.EMS, Version=1.0.700.12, Culture=neutral, PublicKeyToken=5b83db8ff05c64ba' or one of its dependencies. The system cannot find the file specified. “的问题...
分类:
其他好文 时间:
2014-07-12 21:37:56
阅读次数:
283
USER: Kevin Samuel [kevin_s1]
TASK: comehome
LANG: C++
Compiling...
Compile: OK
Executing...
Test 1: TEST OK [0.003 secs, 3376 KB]
Test 2: TEST OK [0.005 secs, 3376 KB]
Test 3: TEST OK [0.0...
分类:
其他好文 时间:
2014-07-12 19:26:53
阅读次数:
184
Tomcat7.X正常启动,通过浏览器访问URL时,报404错误。原来是部署时,初了问题,因为使用IDE开发,Eclipse帮我们自动部署了,可有时候会出现问题。解决方案如下: 选中项目,右键:Properties -> Deployment Assembly
分类:
其他好文 时间:
2014-07-12 14:03:37
阅读次数:
177