开心人生

用今天的努力----实现我所向往的明天

统计

常用链接

积分与排名

阅读排行榜

评论排行榜

2010年9月1日 #

会移动的文字(Marquee)学习

摘要: 基本语法 <marquee> ... </marquee> <marquee>啦啦啦,我会移动耶!</marquee> 啦啦啦,我会移动耶! 文字移动属性的设置 方向 <direction=#> #=left, right <marquee direction=left>啦啦啦,我从右向左移!</m...阅读全文

posted @ 2010-09-01 14:39 hai 阅读(118) 评论(2) 编辑

2010年8月30日 #

How To Share The Internet Connection Between Mac and PC

摘要: Here’s the scenario that brought me to write this article: the ISP I’ve signed up with decided to temporarily block the internet connectivity in our area. Where I live, it’s actually possible — things...阅读全文

posted @ 2010-08-30 09:23 hai 阅读(108) 评论(0) 编辑

2010年8月11日 #

Mac OSX 下配置 Google Android 开发环境

摘要: 一、安装android sdk 1.首先下载以下软件或类库: Android SDK 下载地址 http://developer.android.com/ Eclipse(最新的Classic或forJava的稳定版就可以了) 下载地址 http://www.eclipse.org/downloads/ ...阅读全文

posted @ 2010-08-11 12:35 hai 阅读(2212) 评论(0) 编辑

2010年8月7日 #

Mac OSX Eclipse3.6下安装erlide搭建erlang集成开发环境

摘要: 1.安装erlide。在 Eclipse 3.3环境下, 按照Help → Install New Software.. ,然后Add,然后name设置为erlang,location设为http://erlide.org/update ,然后等待安装,一路next,安装完后提示重启eclipse。 2. 安装runtimes默认已经设置好了.如图: 如果你很不幸没有设置好,请Preferenc...阅读全文

posted @ 2010-08-07 15:48 hai 阅读(232) 评论(0) 编辑

Installing Erlang on Mac OS X

摘要: I’ve recently been intrigued by RabbitMQ which is an implementation of AMPQ (Advanced Message Queuing Protocol) written in Erlang. Here’s the short and sweet installation instructions for Erlang on Ma...阅读全文

posted @ 2010-08-07 14:14 hai 阅读(160) 评论(0) 编辑

2010年8月5日 #

浏览器解析 XML DOM

摘要: 大多数浏览器都内建了供读取和操作 XML 的 XML 解析器。 解析器把 XML 转换为 JavaScript 可存取的对象。 实例 W3School 提供的实例独立于浏览器和平台。这些实例可在所有现代浏览器中运行。 加载并解析 XML 文件 加载并解析 XML 字符串 解析 XML 所有现代浏览器都内建了用于读取和操作 XML 的 XML 解...阅读全文

posted @ 2010-08-05 12:26 hai 阅读(176) 评论(0) 编辑

How to set the JAVA_HOME variable in Mac OS X – Snow Leopard

摘要: Recently I had to setup a Java app on my Mac, which was running from the Terminal, and needed the JAVA_HOME variable set. Here’s what had to be done: - Start the Terminal app. - Create/Edit ~/.bash_pr...阅读全文

posted @ 2010-08-05 09:14 hai 阅读(136) 评论(0) 编辑

2010年7月26日 #

code sign error doesn't match any valid certificate private key pair in the default keych 错误的解决办法

摘要: code sign error doesn't match any valid certificate private key pair in the default keych .. 你可以更改device-模拟器,如果还有问题,那么 需要证书! 如果已付99刀,看http://www.cocoachina.com/bbs/read.php?tid-7923...阅读全文

posted @ 2010-07-26 11:30 hai 阅读(428) 评论(0) 编辑

CSS的跨浏览器代码准则

摘要: 开发人员们总在讨论最令人满意的网页设计莫过于在任何浏览器都能显示出相同的直观且漂亮的效果。不幸的事,大家都一致认为实现这样的目标几乎是不可能的。不过,近乎于精确的跨浏览器体验还是可以实现的。作为开发人员,我们的目标不应该仅仅局限于保证网页能够在每个浏览器都能够正常运作,而应该是如何保证跨浏览器运作所需的代码最小化,及其所能带来的日后网站维护及运作的顺畅化。 本文将向大家介绍一些非常重要的CSS规则...阅读全文

posted @ 2010-07-26 11:22 hai 阅读(120) 评论(0) 编辑

2010年7月20日 #

Google Maps API详解--02

摘要: 第一种GMarker构造函数参数如表4-10所示。 表4-10 GMarker构造函数参数 参 数 是 否 必 要 值 类 型 定 义 point 是 GPoint GPoint点位,屏幕像素坐标 icon 可选 Icon 图标的风格...阅读全文

posted @ 2010-07-20 23:19 hai 阅读(1223) 评论(0) 编辑

Google Earth API 讲解--02

摘要: 5.3 Google Earth API 详解 本节介绍的Google Earth API是目前Goolge官方网站上最新的Google Earth API接口定义,也是Google所推荐使用的。与早期的KeyHole API相比有了很多新的特性,增加了很多接口,这些接口基本都是基于Keyhole API封装的,我们将在以后的内容中介绍一些关于Keyhole API的应用,使得读者能够更加深入地理...阅读全文

posted @ 2010-07-20 22:23 hai 阅读(564) 评论(0) 编辑

Google Maps API 详解--01

摘要: 4.3 Google Maps API详解 新版Google Maps API在功能上分为六大类: l 核心类(Core Class)。 l 基础类(Base Classes)。 l 事件类(Event Classes)。 l 控制类(Control Classes)。 l 布局类(Overlay Classes)。 l 服务类(Service Classes)。 遗憾的是Google官方英文版网...阅读全文

posted @ 2010-07-20 22:22 hai 阅读(1002) 评论(0) 编辑

Network Programming

摘要: Network Programming: Chapter 7 - iPhone SDK Application Developmentby Jonathan Zdziarski http://oreilly.com/iphone/excerpts/iphone-sdk/network-programming.html This chapter has been lengthened and en...阅读全文

posted @ 2010-07-20 21:53 hai 阅读(775) 评论(0) 编辑

Using Properties And Synthesize In Objective-C 2.0 For Getters And Setters

摘要: Feb 26, 2008--转自 http://otype.de/index.php?id=106 In my last entry First steps in Objective-C I described how to create getters and setters and how to handle objects in Objective-C. Well, since the...阅读全文

posted @ 2010-07-20 21:49 hai 阅读(119) 评论(0) 编辑

Tutorial: Networking and Bonjour on iPhone

摘要: 转自: http://www.mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/ Guest author Peter Bakhyryev (email) is co-founder of ByteClub, a software development company that provides online multi...阅读全文

posted @ 2010-07-20 21:46 hai 阅读(394) 评论(0) 编辑

5个必看的cocos2d 开源游戏 有机会都学习下

摘要: 转来的,暂时先不翻译了。没几行。暂时正在看第三个,小鸽子跳的,但是貌似他这个不是上架产品的全代码,因为暂时好像没有实现手势移动的操作。不过改一改,变成男人就下100层,加上我前几天说的那个重力物理引擎的话,貌似是个不错的主意。。。呵呵。 I’ve mentioned the excellent Cocos2D open source 2d iphone game engine man...阅读全文

posted @ 2010-07-20 21:44 hai 阅读(541) 评论(0) 编辑

iPhone开发技巧之工具篇(1)— 将XIB文件转换为Objective-C源程序

摘要: 博主:易飞扬 原文链接 : http://www.yifeiyang.net/iphone-development-techniques-of-the-tools-for-chapter-1-the-xib-file-is-converted-to-objective-c-source-code/ 转载请保留上面文字。 iPhone开发技巧之工具篇(1)--- 将XIB文件转换为Ob...阅读全文

posted @ 2010-07-20 21:43 hai 阅读(315) 评论(0) 编辑

Google Earth API 讲解--04

摘要: 5.4 Keyhole API接口介绍 从运行库中可以发现,Google Earth目前提供的COM API基本上都是基于Keyhole API的,不过Google做了大量的工作用于封装,特别是照相机接口,新的接口很大程度上方便了用户的使用。 以前版本的Keyhole API接口分类上虽然有些混淆,个别函数的功能特征也不是很明显,但是作为目前Google Earth API的基础,还是有一定的学习...阅读全文

posted @ 2010-07-20 21:37 hai 阅读(383) 评论(0) 编辑

Google Earth API 讲解--05

摘要: 5.5 例子 本章通过两个与Google Maps + Ajax类似的宿营例子,展示一下Google Earth开发的乐趣所在,第一个是Delphi开发的例子,重点在与KML联动,第二个是C#开发的例子,重点在于设置地图视场相机的视角,实现虚拟飞行。与Google Maps API不同的是,Google Earth并没有提供有关添加点(Point)、线(Line)、面(Polygon)的接口,而是...阅读全文

posted @ 2010-07-20 21:36 hai 阅读(400) 评论(0) 编辑

浏览器获取地理位置

摘要: 转自:http://smithsrus.com/gps-geolocation-in-safari-on-iphone-os-3-0/ GPS Geolocation in Safari on iPhone OS 3.0 I just updated my iPhone to the shiny new OS 3.0. Apple did a great job addressing a few ...阅读全文

posted @ 2010-07-20 21:32 hai 阅读(379) 评论(0) 编辑

Google Earth API 讲解--02

摘要: 5.3.4 ITimeGE接口 ITimeGE接口是Google Earth内部控制日期和时间的接口。Google Earth的时间计算均是根据UTC时区计算的。UTC是Universal Time Coordinated的英文缩写,中文译为“协调世界时”,是由国际无线电咨询委员会规定和推荐,由BIH负责保持的时间标度。 采用UTC的时区划分方法,把全时间按照每15°一个时区的划分原则,共分为24...阅读全文

posted @ 2010-07-20 21:30 hai 阅读(759) 评论(0) 编辑

Google Earth API 讲解--01

摘要: 章内容将针对如何使用Google Earth API中各个接口进行详细阐述,采用实例代码加详解的方式,介绍Google Earth每个类的实际用途和COM的开发技巧。在阅读完本章之后,我们希望开发者能够掌握Google Earth的开发,并且对COM也有一定的了解。 本章中的代码例子基本基于Delphi代码和C sharp(Visual Studio 2005以下简称C#),作为教学语言,Delp...阅读全文

posted @ 2010-07-20 21:27 hai 阅读(1662) 评论(0) 编辑

4.4 一个完整的Google Maps应用

摘要: 4.4 一个完整的Google Maps应用 这里给出一个完整的应用Google Maps的例子。这个例子展示的是一辆小汽车在地图上行驶的情况。在实际应用中,经常有这样的需求:通过车载GPS来定位车辆的位置,并实时监控车辆的方位。通常的做法是通过GPS与GPRS结合,将经纬度信息传递到服务器的数据库中,再通过服务器端提取出来之后做成图标在Web地图上显示出来。 本例中没有采用真实的车辆经纬度,而是...阅读全文

posted @ 2010-07-20 21:25 hai 阅读(476) 评论(0) 编辑

Google Maps API详解--01

摘要: 4.3 Google Maps API详解 新版Google Maps API在功能上分为六大类: l 核心类(Core Class)。 l 基础类(Base Classes)。 l 事件类(Event Classes)。 l 控制类(Control Classes)。 l 布局类(Overlay Classes)。 l 服务类(Service Classes)。 遗憾的是Google官方英文版网...阅读全文

posted @ 2010-07-20 21:24 hai 阅读(195) 评论(0) 编辑

4.2 Google Maps API的开发基础

摘要: 4.2 Google Maps API的开发基础 Google Maps API的开发并不像普通的应用程序接口调用那样,需要开发人员对于WebService的概念有较为清晰的认识,它是Google地图服务的调用,需要注册。下面先讲讲Google Maps API开发的注册。 4.2.1 开发前的知识准备 基于Google Maps API进行开发,一般需要具备以下几种基本技巧: ...阅读全文

posted @ 2010-07-20 21:20 hai 阅读(208) 评论(0) 编辑