Just installed the KDE on my Ubuntu, and the Internet explorer comes with the KDE is the Konqueror, however the first time I was using the Konqueror found it cannot display the Chinese properly, all becomes gubbish characters, found the solution by google...
分类:
其他好文 时间:
2014-09-10 12:36:20
阅读次数:
253
当系统开启safe_mode和 open_basedir,在程序中使用以下语句curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);并且遇到301,302状态吗时会出现错误PHP Warning: curl_setopt(): CURLOPT_FOLLOWLOC...
分类:
其他好文 时间:
2014-09-10 12:27:20
阅读次数:
178
今天遇到了很无语很坑的需求,说是要在应用安装的时候根据参数的不同动态生成桌面图标,这再android里基本上是不可能的,下面有stackoverflow上的一句话:You cannot change the application icon (or the Android manifest, o.....
分类:
移动开发 时间:
2014-09-10 12:23:20
阅读次数:
306
Dressing
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2484 Accepted Submission(s): 1076
Problem Description
Wangpeng has N cl...
分类:
其他好文 时间:
2014-09-09 21:33:39
阅读次数:
238
用tar 解压 tar.bz2文件出错debian:/usr/src# tar jxf linux-2.6.26.tar.bz2tar: bzip2: Cannot exec: No such file or directorytar: Error is not recoverable: exiti...
分类:
其他好文 时间:
2014-09-09 19:55:59
阅读次数:
451
参考了博客:http://blog.csdn.net/leilu2008/article/details/12495273
我用的android ndk版本是:android-ndk-r9d-windows-x86_64.zip。
提醒:解压之后千万不要保存在含有空格的目录里。否则,下面给jni里的c、c++编译的时候,编译器会报错。
NDK path cannot contain...
分类:
移动开发 时间:
2014-09-09 12:59:38
阅读次数:
269
最近用jdbc连接出现了两个比较费时的问题:问题1 :mysql创建TEXT类型的表示,总提示默认值上错误:找了这么一篇文章解决了问题:http://www.sharkuo.com/BLOB-TEXT-column-cannot-have-a-default-value-queryCreate ta...
分类:
数据库 时间:
2014-09-09 12:10:18
阅读次数:
187
或许在开发的过程中可能会遇到诸如:
1. 不能预见创建哪一种类的实例。
2.不希望将类被如何创建或者哪一个类的实例被创建的相关信息暴露给用户。
package fh.first.factory;
/*
* Aim:简单的工厂模式
*/
public class Factory {
/*
* name: getBean
* str: cl...
分类:
编程语言 时间:
2014-09-07 14:50:15
阅读次数:
199
用Eclipse tomcat新建一个JSP页面(一)介绍了如何创建一个web程序和第一个jsp页面,以及Eclipse需要的一些必要配置。今天,我们重点说一下如何从数据库中查询数据,并且在JSP页面显示。
首先需要注意这样一个问题:
建的如果是java项目,只需要引入mysql-connector-java-5.1.10-bin.jar就可以运行java项目。建的如果是web工程,当Cl...
分类:
数据库 时间:
2014-09-07 13:37:15
阅读次数:
235
这是一个非常难以找到解决方法的问题,因为VMWare和Ubuntu都有Unitiy,前者指的是Unity Mode,后者指的是Unity Shell。我的主机操作系统是Windows 7 ,安装VMWare 9.0.1,虚拟机中运行Ubuntu 12.04 。当我试图把VMWare切换到Unity Mode,我得到以下信息:
The virtual machine cannot enter ...
分类:
其他好文 时间:
2014-09-06 22:36:04
阅读次数:
192