开放服务网关倡议(OSGi)定义了开发和部署模块应用程序和库的体系结构。作为介绍OSGi的第一篇文章,本文旨在让你了解OSGi开发的一些概念,并向你展示了如何使用Eclipse的OSGi容器(Equinox)实现建立一个简单的Hello World应用。此外还简要介绍了使用OSGi构建面向服务的应用程序以及OSGi的servicefactory和servicetracker类。
OSGI(Open Services Gateway Initiative),也叫JAVA动态模块系统,定义了一套模块应用开发的...
分类:
其他好文 时间:
2014-06-05 12:33:11
阅读次数:
379
【开胃小菜】
当提到python中strip方法,想必凡接触过python的同行都知道它主要用来切除空格。有以下两种方法来实现。
方法一:用内置函数
#
if __name__ == '__main__':
str = ' Hello world '
print '[%s]' %str.strip()
#
方法二:调用string模块中方法
#
import s...
分类:
编程语言 时间:
2014-06-05 09:27:48
阅读次数:
330
----------------------------------------------------hello world-------------------------------------------
linux 创建如下文件 vim hello
#! /bin/bash //告诉Shell 使用哪个Shell 程序
#Display a line //#表示...
分类:
其他好文 时间:
2014-06-05 02:41:41
阅读次数:
393
原创地址: http://www.cnblogs.com/Alandre/
(泥沙砖瓦浆木匠),需要转载的,保留下! Thanks
The reasonable man adapts himself to the world;the unreasonable one persists in trying to adapt the world to himself. —萧...
分类:
编程语言 时间:
2014-06-04 22:51:46
阅读次数:
457
下面开始用D3.js处理第一个简单问题,先看下面的代码:
HelloWorld
Hello World 1
Hello World 2
如果你学习过HTML,应该知道会在屏幕中输出两行文字,如下图:
如果想用...
分类:
Web程序 时间:
2014-06-04 21:50:32
阅读次数:
361
Hello
World作者背景作者是一个使用多种语言开发复杂程序并且拥有十多年经验的软件工程师。作者第一次学习 Python 是在为一个 C++ 库创建绑定的时候。除了
Python,作者曾经用 PHP, Ruby, Smalltalk 甚至 C++ 写过 web 应用。在所有这些中,Python/...
分类:
其他好文 时间:
2014-05-31 19:59:10
阅读次数:
497
perl重点基础知识整理#若无特殊说明,以下都是基于ubuntu
13.04版本1:终端下运行perl脚本:step1:在桌面新建一个perl脚本,输入:#! /usr/bin/perlprint "hello
world!";step2:打开终端:hqh@ubuntu:~$ cd ~/...
分类:
其他好文 时间:
2014-05-31 04:29:18
阅读次数:
331
http://world.openwebglobe.org/http://cesiumjs.org/demos.htmlhttp://www.webglearth.com/#ll=30.84991,-85.83333;alt=185032;h=0.060;t=1.248http://www.chro...
分类:
Web程序 时间:
2014-05-30 18:43:13
阅读次数:
285
题目描述SH likes traveling around the world. When he
arrives at a city, he will ask the staff about the number of cities that
connected with this city dir...
分类:
其他好文 时间:
2014-05-29 21:47:24
阅读次数:
381
The sound of a mosquito can mean trouble in many
parts of the world.The bite of a mosquito can be deadly.Today, we will hear
about some of the disease...
分类:
其他好文 时间:
2014-05-29 18:03:42
阅读次数:
246