2013年4月10日 星期三

Phonegap 2.6 trial run #2 Android Simulation with Intel HAXM 1.0.4

1.0.2 會讓 MBP山獅 當掉重開

去INTEL官網下載 intelhaxm-1.0.4-hotfix-androidonmac.zip 可以修好在ECLIPSE裡ADT和AVD管理建一個INTEL ATOM為CPU/ABI的一個虛擬裝置後跑起來死當的問題

然後建議如果你跑上述解出來的安裝過程中 所給的記憶體和 AVD中最好不要全給
我全給以後有些圖檔沒跑出來 後來縮小AVD中給的記憶體後就沒問題

INTEL版的模擬真的跑起來快很多~

ABI這玩意真的是~唉~
Application Binary Interface

Phonegap 2.6 trial run #1 iOS

It's a pretty smooth run after generating the project from Phonegap 2.6.
But as of 4/10/2013, the comprehension of the getting started guide really is out-of-date (pictures and the package naming change from Cordova-x.y to Phonegap-2.6.   Internet is so lucid and sharing (old commonwealth?); I suppose their team is busy releasing the meat (the binaries and the structure and abilities changes).  Hmm, I gotta find out when did Adobe acquired them and why the bottom logo is appearing so fast.


Anyway, here is the picture

As you can see, my environment is up-to-date with 6.1 simulator.


I must say there is nothing special about this.  But Apache is nice to put in so pictures and logo to indicate the device is ready and an indication of native compiling process.  This seems to differ my 2nd impression of Phonegap.  Previously I considered Phonegap as non-native but HTML5-based app (probably still is).  But  because my RubyMotion license has expired (due to unforseen circumstances, and I have no intention to reacquire the license myself).  I felt jQuery Mobile and Phonegap definitely have the upperhand for cross-platform-mobile developers' needs for now (those who have tighter budget and time constraints).   I think one of the previous articles I read might have indicated Phonegap supports jQuery Mobile kit.   

I'm really not a big fan of Xcode, but I'm okay with it compiling with a button and simulating latest code changes for me.  (Ya, I'm a gvim/vim fan).   (Okay, as I am typing this article, MacOS Mountain Lion and Chrome is having fights over my traditional chinese input responses...)  

I wanted to try Android build, but maybe some other time.


 

PhoneGap vs jQuery Mobile


覺得這篇文章不錯, 比較很多家不同的跨行動開發套件:
http://brianshim.com/webtricks/phonegap-and-jquery-mobile/

其實重點: Phonegap似乎克服了我之前擔心的事, 它的License 是Apache License (免費), 而且似乎被Adobe併購了?(是否跟宣佈很久的以後不再出新的Flash有關?)

克服的重點: 不同於RubyMotion, 即使你沒有一台Mac, 下載Phonegap Build也可以build iOS應用程式啦=)

jQuery Mobile

話說我雖然喜愛Ruby,  但近期的工作經驗中也接觸過jQuery, 而且以AJAX Library來說真的首選,

以下這篇文章連MSDN都愛用的趨勢就可以知道其實jQuery在Mobile space上也是很有潛力.

不過我個人覺得 一個專案如果選用 jQuery Mobile, 應該還是要有些有經驗的 Backend Engineer/Developer 才比較容易與該網站的 資料庫 整合較快.

http://msdn.microsoft.com/zh-tw/hh875190.aspx

2013年1月30日 星期三

[TechBang Article] Icenium 雲端跨平台手機程式開發,不用裝 SDK、免費用到 5/1/(2013)


由於是T客邦的文章請到那看:
雲端跨平台手機程式開發,不用裝 SDK、免費用到 5/1/(2013)

個人感覺是比之前比較過的Motorola Rhodes好
Icenium好像支援了HTML5 與 jQuery ,而且可與Github整合還蠻不錯的
不過雖然初期免費 之後的月費好像還是不太便宜,不過按月計費(month-to-month)
US$19如果案子的預算可以呈報上去案子投資者按月投資也是還蠻合理。

不過對於專案已經有MOCKUP應該是個對前端設計(Front-end design)開始的案子來說,Icenium是不錯的選擇。

側邊的資料沒看到TDD或是RSPEC走向,不過有ASSETS列出的感覺
換句話說,有著不錯的前端設計資源分類。

就大略先這樣。

2013年1月1日 星期二

iOS (for iPhone 5.1+) development in Ruby


I became interested in starting this "Cross-mobile-platform" project and writing about it because I found out there are very interesting events/incidents/and on-going news behind this interest.

What is the motivation for doing this: well, simply to go against the popular crowd and common understanding of you can't development some platform-specific program/application unless you have that actual hardware.  And yes, the specific platform of interest is this: Mac, iPhone, iOS.

I found it very ridiculous of Mac's background.  68000 68HC11, PowerPC chip (legacy now, but feel free to Google PowerPC and read the story behind it).  I am so surprised at what I encountered (CPU not supported on Guest OS) when I want to virtualize a recent MacOS (X, mountain lion, or lion).   But anyway, I stopped trying anyway because my recent Desktop is an AMD-based (but I wouldn't try it on my laptop because I feel it's too slow).

I like to use pictures to tell stories (pretty much a trend with Facebook these days):

So here is one:
    Figure 2013-01-01 sample.jpg:  a RhoSimulator running on Windows 7.

    I used original size of the image so you can see better.

Rhodes or RhoMobile seems to have been acquired by Motorola recently. (Seems to be beginning of this year 2012; but on further search, RhoMobile's website has an article on Oct 13, 2011).  Anyway, it has been my interest when I was learning Ruby anyway to do such thing (yes, I get these strange thoughts from time to time...).     But anyway, I am kinda frustrated at the outcome of it because there are no Linux support.   So, if you want to develop for iPhone, you gotta have a Mac.  ( But then why should I first spent for a MacBookPro).  MacMini price seems to be better and more reasonable.

Anyways, my finding is that "Figure 2013-01-01" is producible only on windows version of Ruby. (yes, not cygwin, not linux, strange huh?)  However, one could get the RhoSimulator.zip's .exe running, but I had no luck with it running in Cygwin (error loop is what I get, and hacking its scripts doesn't get me anywhere because I seem to have found blocks of script that checks for the Windows version.

RubyMotion, on the other hand, has AppleStore App compliance and 100% native App advantage as advertised on their (RubyMotion.com)'s website.  It seems like a better choice for people who can adapt and use Objective-C / iOS SDK API.  I have found free API resources on Websites and Github looking into RubyMotion too.  (RubyMotion is not free though. As of writing, it's ~US$200 to get started; but I like it's movie introduction in Getting Started and it is definitely Ruby-friendly and vim-friendly.)

Conclusion:  for me, being able to develop iOS apps (or any mobile platform) in Ruby preferably on Linux using my favorite editors and environments (without paying so much)---that is something I crave for.  And I believe this craving could be the trend.  But at least for now, there is an option to develop iOS Apps (or Android using Rubuto) using Ruby.  That is amazing.