自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Tomson Xu

@CityU

  • 博客(46)
  • 资源 (1)
  • 收藏
  • 关注

原创 Raphael无法处理event的问题!!!

当你用下列代码画一个矩形,然后click it,照例应该会popup alertvar paper = Raphael("canvas", 600, 480);var rect = paper.rect(10, 40, 50, 50); rect.click(function () { alert('hello');}); 但实际上并不会popup alert,

2012-03-31 16:13:17 1087

转载 javascript画图

Raphaelhttp://raphaeljs.com/http://net.tutsplus.com/tutorials/javascript-ajax/an-introduction-to-the-raphael-js-library/http://czpae86.iteye.com/blog/818953http://czpae86.iteye.com

2012-03-31 01:27:49 1268

原创 iOS: delegate机制

一句话:iOS里的 viewComponent.delegate = self;相当于java里的button.addActionListener(this);delegate examplehttp://blog.csdn.net/zhanglei5415/article/details/6133852

2012-03-29 22:49:56 955

转载 iOS: App的生命周期

app生命周期的官方文档  http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.htmlViewController的生命

2012-03-29 22:38:04 550

原创 Bboogle v2.0.9的bugs

1. bbstaging and production bb server里每个account的 username 和 batch uid是不同的,而在bbtest里两者是相同的。By default,bboogle是使用user batch uid来和google app domain username来进行mapping的。因此,用缺省的就会出错。解决办法是:Bboogle提供了一

2012-03-29 18:29:23 699

原创 Bboogle: my old custom identity corresponder

package edu.cityu.bboogle;import blackboard.data.user.User;import blackboard.persist.user.UserDbLoader;import blackboard.persist.user.UserDbLoader.Default;import edu.northwestern.at.bboogle.bb.se

2012-03-29 09:53:17 744

原创 iOS: load external image and css to UIWebView

对于UIWebView,有2种方法来load web page。最省事的一种是loadRequest method,直接直接以url作参数即可example[webViewloadRequest:[NSURLRequestrequestWithURL:[NSURLURLWithString:newsUrl]]];另一种方式是loadHTMLString method,该方法

2012-03-29 01:47:26 1704

原创 iOS: json的处理

json的介绍和格式参看 http://blog.csdn.net/totogogo/article/details/3766163iOS 5之前是使用open source lib: JSONKit (https://github.com/johnezang/JSONKit)iOS 5提供了NSJSONSerialization。NSJSONSerializa

2012-03-28 15:02:41 11877

转载 iOS: Objective C "Selector" 用法

官方文档http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Chapters/ocStaticBehavior.html#//apple_ref/doc/uid/TP30001163-CH16-SW1其他文档http://edwardinaction.blogspot

2012-03-28 14:09:14 1018

原创 iOS: 下载等待画面open source lib - MBProgressHUD

MBProgressHUD的原理http://iphonedevelopment.blogspot.com/2010/02/implementing-wait.htmlDownloadhttps://github.com/jdg/MBProgressHUDInstallation下载解压之后,把下列两个file copy to your project即

2012-03-28 01:28:54 2146

转载 iOS: #define

typedef与#define的区别。http://www.sf.org.cn/article/base/200608/18988.html#define 是宏定义,所谓的宏定义,就是将某段代码、地址、字符串等一串的文字,用一个宏来代替。#define是一种预处理。#define与typedef功能类似,但它除了定义数据类型外,还可以定义给变量、语句等等定义,还可以包含参数

2012-03-27 11:50:48 9900 1

转载 iOS: How to use "Block"

"Block"是很有用的东东,它实际上就是一个Closure,类似于javascript的closure, java中的匿名listener等。参看http://blog.sina.com.cn/s/blog_67419c420100vl8b.htmlhttp://hechien.posterous.com/block-in-objective-c-20http:/

2012-03-27 10:04:42 706

原创 iOS: a promising http connection framework - MKNetworkKit

ref links:http://blog.mugunthkumar.com/products/ios-framework-introducing-mknetworkkit/http://www.cocoachina.com/bbs/simple/?t93181.html它包含了检测网络的代码 "Reachability" (http://developer.apple.c

2012-03-27 00:56:19 4110

转载 iOS: network reachability

https://developer.apple.com/library/ios/#samplecode/Reachability/Introduction/Intro.htmlhttp://www.raddonline.com/blogs/geek-journal/iphone-sdk-testing-network-reachability/http://ww

2012-03-26 17:26:20 789

原创 iOS:how to update/renew Provisioning profile

cert过期,添加或删除用于测试的device等,都要对provisioning profile进行更新。对于development provisioning profile,最简单的方法就是在apple developer site里修改你的provisioning profile,然后在xcode的organizer window的"devices tab > Library > Prov

2012-03-26 12:29:04 4012

原创 iOS app官方开发,调试,发布流程

http://developer.apple.com/library/ios/#DOCUMENTATION/Xcode/Conceptual/ios_development_workflow/00-About_the_iOS_Application_Development_Workflow/introduction.html#//apple_ref/doc/uid/TP40007959-CH1-S

2012-03-26 12:22:26 972

转载 App_Code 文件夹 在vs2010中为什么找不到

http://www.cnblogs.com/he-yuan/archive/2012/01/23/app_code_folder.htmlhttp://zhidao.baidu.com/question/301949116.html&seed=0

2012-03-26 02:03:22 1326

转载 .net framework 3.5 with IIS 7 error

我用visual studio 2010来创建web application,如果它是base on .net framework 3.5,当把它copy to IIS 7的inetpub/wwwroot里运行时会出错,解决办法是在vs2010里right click your web application, select "properties page",把.net framework由3.

2012-03-26 01:53:11 1057

原创 iOS: install App via OTA

下面是把app放到web site,让其他人通过Over the Air (OTA)下载安装的步骤。前提: 能安装app的device需要被包含在你的provisioning profile里Environment: iOS 5.0 + xcode 4.3ref link: https://help.apple.com/iosdeployment-apps/?lang=

2012-03-25 01:45:21 12025 1

原创 iOS: Some issues about push notification

custom data in push notificationhttp://no001.blog.51cto.com/1142339/642817当运行带apns feature的app到真机上后,会弹出错误:"Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitleme

2012-03-23 00:09:40 3389 1

原创 iOS: bundle name, bundle display name, bundle identifier...

当你创建一个project时,会要求你输入product name & company identifier,这两个property的值should和你在apple developer member center的“Provisioning Portal”的“App IDs"里创建的bundle identifier (NOT App ID)匹配!如果不匹配的话,push notification

2012-03-21 15:19:57 38015 3

原创 iOS: iphone在真机测试以及apns的设置

以开发一个"MobileCAP" app为例Step 1: Create cert request file。(当你在apple web site "provisioning portal"里生成"Development Certificate" 和 "Push SSL Certificate"时就会用到它)1. Access "keychain access" by select

2012-03-21 10:15:23 32534

原创 indoor google map

http://googlemobile.blogspot.com/2011/11/go-indoors-with-google-maps-60-for.htmlhttp://www.youtube.com/watch?v=XZmjryh9glEhttp://googleblog.blogspot.com/2011/11/new-frontier-for-google-maps-mapp

2012-03-21 10:10:43 1259

原创 iOS: 在navigation controller里切换到UIViewController的view时黑屏

environment: Xcode 4.3 + iOS 5.0在navigation controller后添加table view controller (UITableViewController),切换到该view时正常,但如果添加的是view controller (UIViewController),那么切换到它时会黑屏。这是xcode 里 view controlle

2012-03-20 14:56:02 5137 1

原创 iOS: 用libxml2 and hpple来做html parser

本文是用hpple来做html parser你还可以选择用objective-c html parser  https://github.com/zootreeves/Objective-C-HMTL-Parser或直接用libxml2的NSXMLParser http://www.theappcodeblog.com/2011/07/21/iphone-development-t

2012-03-19 18:13:15 8206 5

翻译 iOS: storyboard (2)

关于interface的基本术语*Viewcontroller:用来处理user和app的交互。*View:它表示user在app上看到的界面,一个app可以有多个view。当然一个view就会对应一个viewcontroller* Scene:viewcontroller + view就可以看作是一个scene.* Segue:A segue表示scene之间的切

2012-03-16 15:23:27 8258

转载 iOS: Segue & Delegate

http://iosdevelopersnote.blogspot.com/2011/10/storyboard-segue-delegate.html

2012-03-16 01:59:10 1196

原创 iOS: 设置全局变量

有几种方法some developers recommend use singleton patter (ref link http://blog.csdn.net/kmyhy/article/details/7026511)方法1:使用静态变量 (不推荐)方法2: 使用singleton pattern (ref link: http://nice.iteye.com/blog/

2012-03-14 23:41:37 12937

转载 iOS: UIScrollView的用法

http://blog.csdn.net/mengtnt/article/details/6723245注意:  UIScrollView是UITableView和UITextView的超类。

2012-03-14 22:47:13 1033

翻译 iOS: some notes

* 如何添加 a new file to your project? 首先highlight the group you want to add the file to (usually the project code group),然后点击Xcode左下角的 + button* 如果添加一个existing file to your project? 只需要drag existing fi

2012-03-14 18:01:22 1109

原创 building block can create db table & schema in Bb 9.1

http://www.edugarage.com/display/BBDN/Creating+Database+Objects+with+Building+Blockshttp://www.edugarage.com/display/BBDN/Blackboard+Open+Database+-+OpenDB

2012-03-13 17:32:41 553

原创 iOS: Storyboard

Storyboard tutorialhttp://maniacdev.com/ios-5-sdk-tutorial-and-guide/xcode-4-storyboard/http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1http://www.raywenderlich.co

2012-03-09 01:39:07 2584

转载 iOS: NSString应该用initWithFormat? 还是 stringWithFormat?

注意:对于iOS 5的ARC特性来说,两个方法是等价的,不会有memory leak的问题!(ref link: http://stackoverflow.com/questions/7960912/stringwithformat-vs-initwithformat-under-arc)下面文字的参看文档:http://www.cnblogs.com/yjmyzz/archive

2012-03-09 00:00:36 4072

转载 iOS: iOS5新特性 ARC

apple推荐使用ARC。iOS 5 ARC完全指南.pdf参考文档:Best ARC Tutorial:http://www.raywenderlich.com/5677/beginning-arc-in-ios-5-part-1http://www.raywenderlich.com/5773/beginning-arc-in-ios-5-tutoria

2012-03-08 16:41:17 1688

转载 python 快速入门

入门教程: http://ez2learn.com/index.php/python-tutorialsdjango: http://blog.xuite.net/chaoyee/blog/23831427 http://www.cnblogs.com/lanlandechong/archive/2012/06/20/2556265.html图解:

2012-03-08 02:28:00 501

原创 install python, django, eclipse pydev plugin in windows

基本步骤参考python installation in Mac  http://blog.csdn.net/totogogo/article/details/7330845下面只写与mac不同的步骤install python: 下载python msi file,and then double click to install it.安装完之后,在DOS窗口,然后进入 path

2012-03-08 02:08:01 823

原创 install python 3.2, django and eclipse pydev plugin in mac for python devolopment

Step 1. install eclipse 3.7 or laterStep 2. install python 3.2 (ref link: http://www.youtube.com/watch?v=MEmEJCLLI2k )注意:我安装了python3.2后,在"terminal"里输入命令 "python --version",出现的版本是v2.7,如果你要在term

2012-03-07 22:39:08 2227

原创 Android/iOS Notification feature

notification有3种方案:轮询 (poll)长连接 (socket or http: comet)push notification (c2dm for android, apple notification server foriPhone, 2者的原理是一样的:push server -> apn -> iPhone -> app installed iniP

2012-03-07 17:17:37 2784

原创 iOS: Convert NSData to NSString

NSString* str = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];

2012-03-07 00:03:57 2269

原创 iOS: NSUrlConnection & SSL, Http connection frameworks

java有一个httpclient open source lib来进行http connection操作,android就是使用它iOS自身是通过NSUrlConnection来进行http connection。另外也有一些open source的http connection frameworks:1. ASIHttpRequest (http://allseeing-i.c

2012-03-06 23:57:42 4266

EJBTest.war

EJBTest.war

2007-07-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除