9th
JUL

Setting up CVS pserver on OSX 10.4 and up (10.5, 10.6)

Posted by Keith under Development Tools

There’s no /etc/inetd.conf, or /etc/xinetd.conf.  New version of OSX uses something called “launchd.”

Read following pages for setting up pserver.

See:

Launchd: http://developer.apple.com/macosx/launchd.html

Copy & Paste from above site — just in case :
CVS pserver launchd item for OS X 10.4
Tuesday, August 02 2005 @ 08:14 pm MDT
Contributed by: ChrisRyland
Views: 6,637
TipsInspired by the recent excellent launchd overview on afp548, I needed to set up a CVS pserver on our new Tiger Xserve box, migrating from an old Linux server.

Here’s a recipe that seems to work.

You’ll need to create a launchd control file, call it cvspserver.plist, and put it in /Library/LaunchDaemons (where local launch control files are supposed to live):

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>
<plist version=”1.0″>
<dict>
<key>Label</key>
<string>com.apple.cvspserver</string>
<key>UserName</key>
<string>cvs</string>
<key>Program</key>
<string>/usr/bin/cvs</string>
<key>ProgramArguments</key>
<array>
<string>cvs</string>
<string>-f</string>
<string>–allow-root=/Users/cvs</string>
<string>pserver</string>
</array>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>SockPassive</key>
<true/>
<key>SockServiceName</key>
<string>cvspserver</string>
<key>SockType</key>
<string>SOCK_STREAM</string>
</dict>
</dict>
<key>inetdCompatibility</key>
<dict>
<key>Wait</key>
<false/>
</dict>
</dict>
</plist>

You’ll have to change the –allow-root=/Users/cvs CVS root specification above to match your actual root, but otherwise the above should work.

Next, it doesn’t appear that cvs under Tiger can access the standard user/password database, so you’ll have to create a password file in your $CVSHOME/CVSROOT directory:

$ cd ~cvs/CVSROOT
$ sudo htpasswd -c passwd user1
$ sudo htpasswd passwd user2 # etc.

Then, you’ll need a

# launchctl load /Library/LaunchDaemons/cvspserver.list

and you should be in business. (At the next reboot, cvspserver.plist should be picked up by launchd.)

21st
JUN

PhoneGap: development apps for iPad

Posted by Keith under iPhone iPad development

http://phonegap.pbworks.com/iPad

  1. Create the project as per the Getting Started with PhoneGap (iPhone) page.
  2. Once created, edit the Project Settings (Project > Edit Project Settings) menu option
  3. Under the Configuration pop-up select All Configurations (added from the comment)
  4. In the ‘Build’ tab, scroll down to the ‘Deployment’ section
  5. Change the Targeted Device Family to ‘iPad’

21st

PhoneGap install

Posted by Keith under iPhone iPad development

As of today, the latest (release) version is 0.9.1 — but when 0.9.0 was release, it failed to install with error messages.  Follow steps on this page to build the PhoneGap install package: http://choozang.net/244

It’s in Korean, but steps with screen shots are available on the page; just follow the steps.

21st

iPhone and iPad development

Posted by Keith under Lisp, iPhone iPad development

There are a few ways to develop applications for iPhone and iPad:

  • Xcode
  • Web app
  • GameSalad

Xcode
With Xcode, of course, write codes in Objective-C and/or mix code in C++.

Web app
Basically it’s a web page using HTML5+CSS+JavaScript.  But there are free tools like PhoneGap and Titanium Mobile to compile pages into native code.

GameSalad
It’s like Game Maker — all GUI and no coding.  It’s still a lot of work to develop a game, but it removes coding completely.  It’s not free — if one wants to sell apps on app store, it requires $99/yr fee to use the tool.  But it’s free to toy around with it.

I played around with all three methods (Xcode with Objective-C, PhoneGap and GameSalad).  For most of simple apps, PhoneGap will suffice.  For simple games, GameSalad will do.  For 3D intensive, or more sophisticated apps, use Xcode with Objective-C/C++.

RESROUCES