Jan 092013
 

I’m building app with PhoneGap/Cordova, it pretty much makes sense to share same html/cs/js across different forms, but this gave me quite some troublesome time …

It turned out Xcode does not follow relative symlink as mentioned here, you should move down to Rachel’s comment to see the finding.

I moved back to absolute symlink (start from /) and everything’s working now.

Nov 072012
 

Just upgraded Xcode to 4.5.2 through App Store, which has iOS6 support, I don’t know what else this new version includes though …

And after the upgrade, I got some time playing with previous AWS project which list my stuffs on AWS, include S3 and EC2. Obviously, every time I access my old codes I could find something wrong, and there is no exception this time – at the time I was doing AWS project, I had only 2 instances staying in one region, and now I have multiple (5?) instances staying in two regions so previous logic does not work very well.

Not many details to talk about here, I simply list all regions for AWS, and query instances targeting each endpoint, that’s it.

Now my AWS app is working well again.

Mar 192012
 

As I mentioned before, I accidently upgraded xcode, and obviously the upgrade (or something else caused by upgrade) broke my previous AWS app – at the beginning it does not build, and after tweak the project file, it refused to run. Instead of doing further more troubleshooting job, I just uninstall and reinstall the whole xcode tool chain, and obviously this is the simple and quick solution (other than Giga data of download).

Mar 172012
 

You have to admit that you are not a superman, so you could not solve every problem you met, even if they are in same/similar area.

I was playing with MuseScore which is an open source alternative to Overture, however it kept crashing while open some specific ove files. After searching around and reading some posts, you must have guessed what I did – checkout source codes and start building.

It’s fun, I guess that saying was correct – programmers used to want to face problems that hard to solve. Well, this does not mean I can solve the problem :D. After (accidently) upgraded Xcode to 4.3, I have to install a nightly build version of CMake to get rid of the “-buildstyle” problem, then spent quite some time on trying to build mscore from scratch, but so far no luck.

This morning I asked myself, WHY? Let’s forget about what was being debated in my mind, but now I decided to give it up, at last before I can finish my term extraction project which can help me make living, for real.

In the mean while, I will postpone all mobile development for several weeks. Actually I made pretty good progress with Windows Phone 7 development, and it won’t take me too long to finish a WP version for my AWS client, but I want to push it to late April.

Focus please, you cannot solve every single problem you meet.

Nov 072011
 

Got an MacBook Pro 13″, but it’s an old model as the newest models are still pending on “regulator’s approval” in China, per Apple’s web site. I believe it’s the problem from the new Thunderbolt.

Mine has 8G memory so I can run 3 VMs (under VirtualBox, each has 1G memory) plus all applications from Microsoft Office (Word, Excel, PowerPoint, and Outlook), Safari, and several small utilities at the same time without any performance problem. For most time I only need to run 1 VM so it should be OK.

VirtualBox rolls, while Parallele Desktop and VMWare Fusion both suck. Alright I know I’m not familiar with either so VirtualBox gained my respect, but thinking of VirtualBox is free, this simply kills those two.

Installing Xcode was a nightmare – App Store in China didn’t work, at least for huge packages like Xcode (I installed some small stuffs without problem), finally I downloaded Xcode from Apple’s developer web site. There were not many to be installed as I can see, other than QQ and MPLayer. I’m trying to get Pidgin running now, but seems I have to run it under X11, and if this is the case I will move to Adium though I do want to have customized smileys. Maybe Adium got it already, need to check out.

Overall speaking, MBP is a nice laptop, it’s quiet, cool (against HOT MBP ppc I had 8 years ago). The only problem is that I have to remove my watch while working on it as chain of the watch will scratch the shell.

I ordered a keyboard screen and a bag for it, will get this week.

May 232009
 

Finished HelloWorld with Objective-C on Mac using Xcode, everything seems fine, though I know hello world is always simple and easy.

It seems to me Objective-C is something similar to smalltalk, but I’m not quite sure as I’m not familiar with smalltalk either. Anyway the syntax is sort of weird to me, as it does not like a procedure/function oriented language, but more like a functional one.

I will keep play with Xcode for sometime during this long weekend, and back to my PPCam (Ada on Windows using GNAT) next week – again, it is not just as simple as hello world, get to spend more time to get things done.

May 212009
 

I don’t quite understand application types under Mac (OS X), I remember I stopped trying out XCode just because I cannot determine which one to use, and I also made wrong assumption that Java is the way to go as I can share (some) source codes cross platforms.

Now I got a book talking about how to build Mac applications with XCode, and it clearly stated:

For Carbon:

The Carbon template defines a pure Carbon application. Carbon is the C interfaces to Aqua and the legacy support for applications written using the APIs in Mac OS 9 and earlier. Use this template if you are porting an application from OS 9 to OS X, or you want to create native applications using only C or C++. The main.c file includes a skeletal application that loads the main.nib file, creates the application’s window, and starts the main event loop. See http://developer.apple.com/carbon/ for more information about Carbon applications.

For Java/Cocoa:

Mac OS X includes an extensive bridge between the Java programming language and the Objective-C APIs defined in the Cocoa framework. These Java proxy objects make it possible to use most of the Cocoa and Foundation frameworks as though they had been written in Java. If you need to create a native Cocoa application and prefer, or require, the Java programming language, create a Cocoa-Java application. The template sets up a Cocoa application whose native executable is the Cocoa-Java stub. This stub application creates a Java runtime, that loads and starts the Java classes which constitute the application. Read more about mixing Java and Cocoa at http://developer.apple.com/documentation/Cocoa/Java-date.html. Apple has recently announced that it will no longer be updating in the Cocoa-Java bridge beyond Mac OS X 10.3, so the future of this technology is murky.

For Cocoa:

Cocoa is the preferred application development technology for Mac OS X. It is based on the Objective-C programming language. The Cocoa framework is the Objective-C interfaces to Aqua and most other Apple technologies. If OS X has a “native” development environment, Objective-C and Cocoa are it. A few technologies are only available using Cocoa interfaces. The Cocoa template creates a minimal Cocoa application. The only functional part of the project is the main.m file which does nothing but create and start the generic NSApplication object. It does provide generic handling of the About This Program menu item, but it does not include a Credits.rtf file.

From three paragraphs above, it is clearly Java is NOT the way to go, it will be dropped by Apple sometime in the future, also Carbon is for legacy applications.

So, the right way is indeed doing Cocoa application with Objective-C, I get to read around to see if I can get some tests done.

I’ve upgraded my PowerBook months back with latest OS X (Leopard), plus makek it 2G memory, so that I’ve been able to install XCode, however, the machine had been idle since the upgrade, I should do something so not to waste my money (I have enough time now, not using my time is just a waste).