摘要:
vi .profile export http_prox="http://xxxx:port"export https_proxy="http://xxxx:port"alias curl="curl -x http://xxxx:port"
阅读全文
posted @ 2013-07-30 19:40
you Richer
阅读(1477)
推荐(0)
摘要:
MuPDF是一款轻量级的开源软件,可以用来阅读PDF文件。下载完源代码以后,想要运行成功,除了Android SDK之外,还需要Android NDK环境,因此有点麻烦。但是一旦安装完必须的环境以后,后面的编译其实并不烦。 1 安装Android SDK, NDK,,Cygwin.(Cygwin是为了在Windows环境下编译,linux环境不需要)2 下载MuPDF,当前版本为1.2https://code.google.com/p/mupdf/downloads/list3 把mupdf-1.2-source/android/下的文件"local.properties.sampl
阅读全文
posted @ 2013-07-30 19:37
you Richer
阅读(581)
推荐(0)
摘要:
接触java不久,偶有收获,最近想做一个web版RSS阅读器来锻炼一下。手头有几个从不同版本的foxmail中导出的opml文件,大家应该都知道,opml文件就是xml格式的。那么就先从这里入手,练习一下使用dom4j读取xml文件。 在java程序设计中,尤其是java web开发程序,xml应用频率超高。Spring、Hibernate、Struts等各种web 框架,MyEclipse、Oracle等IDE,也都主要依托xml。可以说xml对于系统的配置,有着至关重要的作用。而这些也同时增强了系统的灵活性。 先说一下思路: 新建一个java web项目,不过暂时没有...
阅读全文
posted @ 2013-07-30 19:35
you Richer
阅读(535)
推荐(0)
摘要:
MainActivity如下:package cn.testcallback;import android.os.Bundle;import android.app.Activity;/** * Demo描述: * Android中回调接口的使用 */public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main..
阅读全文
posted @ 2013-07-30 19:34
you Richer
阅读(435)
推荐(0)
摘要:
Linuxshell脚本入门教程为什么要进行shell编程在Linux系统中,虽然有各种各样的图形化接口工具,但是sell仍然是一个非常灵活的工具。Shell不仅仅是命令的收集,而且是一门非常棒的编程语言。您可以通过使用shell使大量的任务自动化,shell特别擅长系统管理任务,尤其适合那些易用性、可维护性和便携性比效率更重要的任务。下面,让我们一起来看看shell是如何工作的:建立一个脚本Linux中有好多中不同的shell,但是通常我们使用bash(bourneagainshell)进行shell编程,因为bash是免费的并且很容易使用。所以在本文中笔者所提供的脚本都是使用bash(但是
阅读全文
posted @ 2013-07-30 19:32
you Richer
阅读(278)
推荐(0)
摘要:
1、移植pjsipenv:fedora14arm-linuc-gcc:gccversion4.5.1(ctng-1.8.1-FA)#./configure\CC=arm-linux-gcc\CROSS_COMPILE=arm-none-linux-gnueabi-\--build=i386-linux\--prefix=/usr/local/pjsip\--host=arm-none-linux-gnueabi\--target=arm-none-linux-gnueabi#makedep#make#makeinstall2、将pjsip库加载进QT工程中将以下库添加到pro文件中unix:!
阅读全文
posted @ 2013-07-30 19:30
you Richer
阅读(1698)
推荐(0)
摘要:
mybatis学习官网:1、如果项目中使用maven管理,又引用 了mybatis框架, 下面是mybatis官网给出的 mybatis在maven中央仓库的坐标原文详情见连接:https://code.google.com/p/mybatis/wiki/DocMavenTutorialMyBatis & MavenThe following is the Maven group, artifact and version for MyBatis. org.mybatis mybatis 3.1.1 If you are looking to try the latest and g.
阅读全文
posted @ 2013-07-30 19:28
you Richer
阅读(404)
推荐(0)
摘要:
1 Gearman是什么Gearman Job Server@http://gearman.org/。 Gearman 是一个任务分发系统,它提供了一个分发框架,能够分发某类任务到更适合处理这类任务的服务器上去处理。并且,它支持任务并行处理、负载均衡以及多语言调用。它的适用范围很广,从高可用性的网站到透明的数据库复制等。换句话说,它是一个强健的分布式通信处理系统。下面是官网上列举的优点: Open Source - 开源。Gearman 是遵循BSD开源规范的免费程序。 Multi-language - 多语言支持。Gearman可以作为多语言通信的接口。你可以用一种语言分...
阅读全文
posted @ 2013-07-30 19:25
you Richer
阅读(473)
推荐(0)
摘要:
二、核心——断言断言是编写测试用例的核心实现方式,即期望值是多少,测试的结果是多少,以此来判断测试是否通过。1. 断言核心方法assertArrayEquals(expecteds, actuals)查看两个数组是否相等。assertEquals(expected, actual)查看两个对象是否相等。类似于字符串比较使用的equals()方法assertNotEquals(first, second)查看两个对象是否不相等。assertNull(object)查看对象是否为空。assertNotNull(object)查看对象是否不为空。assertSame(expected, actual
阅读全文
posted @ 2013-07-30 19:24
you Richer
阅读(330)
推荐(0)
摘要:
The framework uses a standard naming context to evaluate OGNL expressions. The top level object dealing with OGNL is a Map (usually referred as a context map or context). OGNL has a notion of there being a root (or default) object within the context. In expression, the properties of the root obj...
阅读全文
posted @ 2013-07-30 19:22
you Richer
阅读(384)
推荐(1)