Tuesday, March 15, 2011

How to Migrate SVN Repository to another Server

how to migrate / move a existing subversion (svn) repository to another server?

There are a few easy steps to dump the repository and import into a new server,

1. On your server machine where the repository is now, run
   svnadmin dump REPOS_PATH > mydumpfile

2. Put that file (mydumpfile) on another server.

TouchHTTPD http WebDAV server on iPhone

I have a post that summaries http web servers on iphone.
In this post, we will try TouchHTTPD.

TouchCode is open-source frameworks by  schwa
One of the TouchCode project is TouchHTTPD, which is "An iOS compatible Cocoa Web Server".

It has been moved from google-code to github. You can find it here now: https://github.com/TouchCode/TouchHTTPD
Now using submodules for TouchXML & TouchFoundation.  also projects in TouchCode.
(TouchXML is one of the best cocoa XML parser framework)




Sunday, March 13, 2011

cocoahttpserver HTTP Server File Upload on iPhone

Previous Post :
HTTP Web Server, File Upload on iphone

----- Update 20140729 -------

The original googlecode link is removed.

Please check this https://github.com/vodkhang/CocoaHTTPServer-Iphone
http://vodkhang.com/software-development/cocoa-http-server-bug-fix

---------------------------------------------
Let's try cocoahttpserver
we can get it from google code: code.google.com/p/cocoahttpserver/

we focus on iphone project, so just try the iphone sample code.
Get a local copy of the cocoahttpserver repository with this command:
hg clone https://cocoahttpserver.googlecode.com/hg/ cocoahttpserver

Try the iPhoneHTTPServer sample

Tuesday, March 08, 2011

HTTP Web Server, File Upload on iphone

I installed "PDF Reader Lite" on my iphone. There is very amazing function that I can upload files into the app through a http web server on the iphone. How can they do that?

I google and baidu, and get some clues about setting up a http server for a iphone app.

There are some projects about http server on iphone...

Sunday, March 06, 2011

What New Features iOS 4.3


Safari Performance

The Nitro JavaScript engine that Apple pioneered on the desktop is now built into iOS. Using just-in-time compilation, this powerful engine more than doubles the performance of JavaScript execution. Use this power to optimize your webpage or app web view for increased interactivity and responsiveness.

Wednesday, February 23, 2011

Oracle OTN Java Developer Guangzhou 2011

Jave SE7 SE8 New Features

Project Coin
- Generic Type Inference
- Multi-Catch
- Auto Resource Management (ARM) for streams
- Strings in Switch statement

Project Lambda
- Closure for Java (like Blocks in Mac OS)
- Lambda Expression


Wednesday, February 16, 2011

Unparsed aapt error, main.out.xml

click Run button in Eclipse when I am working in a resource file such as main.xml.
I got error running the project.
a blank xml file "main.out.xml" showed up in editor with message "The document is empty".
In console, "No embedded stylesheet instruction for file".


Wednesday, January 26, 2011

Not enough frames in stack, framework unavailable

Error Message: "mi_cmd_stack_list_frames: Not enough frames in stack"
when debugging on a lower-version iOS device.

To solve this problem, go to menu "Project"-> target info ->

Thursday, January 06, 2011

Create Android sample project, Invalid project description

I found that android sample codes are not Eclipse projects. You have to create Eclipse projects from the sample codes by choosing "Create project from existing sample."

DO NOT set the sample code directory as your workspace, otherwise an error dialog will popup saying something like "Invalid project description, NotePad overlaps the location of another project: 'NotePad'"

Let's build the sample codes and run as Android application.

Monday, January 03, 2011

NSDateFormatter setDateFormat YYYY return wrong year

On the first day of 2011, I found that the date formatter return a wrong year.
2011-01-01 is converted ot "2010年01月01日"
while 2011-01-02 ,2011-01-03 is converted correctly.

It's because the format string YYYY represent the "Year (of "Week of Year"), used in ISO year-week calendar. May differ from calendar year."