2015年12月31日 星期四

Paypal php mysql

http://www.androidhive.info/2015/02/android-integrating-paypal-using-php-mysql-part-1/

How to learn efficiently

I am convinced that much of the gap between the best college students and the worst is explained by study habits. Frankly, most students study poorly. To make matters worse, most teachers are incapable of teaching good study habits. Learning is proportional with effort Sitting in a classroom listening to a professor feels like learning… Reading a book on a new topic feels like learning… but because they are overwhelming passive activities, they are inefficient. It is even worse than inefficient, it is counterproductive because it gives you the false impression that you know the material. You can sit through lecture after lecture on quantum mechanics. At some point you will become familiar with the topics and the terminology. Alas you are fooling yourself which is worse than not learning anything. Instead, you should always seek to challenge yourself. If some learning activity feels easy, it means that it is too easy. You should be constantly reminded of how little you know. Great lectures make it feels like the material is easy: it probably is not. Test yourself constantly: you will find that you know less than you think. Some students blame the instructors when they feel confused. They are insistent that a course should be structured in such a way that it is always easy, so that they rarely make mistakes. The opposite is true: a good course is one where you always feel that you will barely make it. It might not be a pleasant course, but it is one where you are learning. It is by struggling that we learn. On this note, Learning Style theory is junk: while it is true that some students have an easier time doing things a certain way, having it easier is not the goal. There are many ways to challenge yourself and learn more efficiently: Seek the most difficult problems, the most difficult questions and try to address them. It is useless to read pages after pages of textbook material, but it becomes meaningful if you are doing it to solve a hard problem. This is not news to Physics students who have always learned by solving problems. Always work on the toughest problems you can address. Reflect on what you have supposedly learned. As an undergraduate student, I found that writing a summary of everything I had learned in a class was one of the best ways to study for an exam. I would just sit down with a blank piece of paper and try to summarize everything as precisely as possible. Ultimately, writing your own textbook would be a very effective way to learn the material. Teaching is a great way to learn, because it challenges you. Avoid learning from a single source. Studying from a single textbook is counterproductive. Instead, seek multiple sources. Yes, it is confusing to pick up a different textbook where the terminology might be different, but this confusion is good for you. If sitting docilely in a classroom is inefficient and even counterproductive, then why is it so common a practice? Why indeed! Interleaved study trumps mass study When studying, many people do not want to mix topics “so as not to get confused”. So if they need to learn to apply one particular idea, they study to the exclusion of everything else. That is called mass (or block) practice. Course material and textbooks do not help: they are often neatly organized into distinct chapters, distinct sections… each one covering one specific topic. What researchers have found is that interleaved practice is far superior. In interleaved practice, you intentionally mix up topics. Want to become a better mathematician? Do not spend one month studying combinatorics, one month studying calculus and so on. Instead, work on various mathematical topics, mixing them randomly. Interleaved practice feels much harder (e.g., “you feel confused”), and it feels discouraging because progress appears to be slow. However, this confusion you feel… that is your brain learning. Interleaved practice is exactly what a real project forces you to do. This means that real-world experience where you get to solve hard problems is probably a much more efficient learning strategy than college. Given a choice between doing challenging real work, and taking classes, you should always take the challenging work instead. Further reading: Make It Stick: The Science of Successful Learning by Peter C. Brown et al. and Improving Students’ Learning With Effective Learning Techniques by Dunlosky et al.

Angularjs

https://thinkster.io/a-better-way-to-learn-angularjs

2015年12月27日 星期日

>想要成功就要具備十種創業心態

  一、積極的心態:
  事物永遠是陰陽同存,積極的心態看到的永遠是事物好的一面,而消極的心態只看到不好的一面。積極的心態能把壞的事情變好,消極的心態會把好的事情變壞。當今時代是悟性的賽跑!積極的心態象太陽,照到哪里哪里亮,消極的心態象月亮,初一十五不一樣,不是沒有陽光,是因為你總是低著頭,不是沒有綠洲,是因為你心中只有沙漠。
  成功吸引成功,民工吸引民工。華爾街致富格言:要想致富就必須遠離蠢材,至少50米以外。
  二、學習的心態:
  學習是給自己補充能量,先有輸入,才有輸出。學習可以去掉缺點,吸取優點。成功是學習的過程。尤其在知識經濟時代,知識更是重要的資本。學習是積累財富的過程,是創造財富的過程。當今學習就是創收,學習就是創業。
  學習是留意你身邊的事,讀萬卷書不如行萬里路,
  行萬里路不如閱人無數,閱人無數不如名師指路。
  三、付出的心態:
  這是一種因果關系。舍就是付出,舍的同時也就是得。小舍小得,大舍大得,不舍不得。做任何事情不要認為是為別人做,都是和自己有關。有句話:人人為我,我為人人。這是天意,不愿意付出的人,總想省錢,省事、省力,最后連成功也省了。落得個一無所有。
  四、堅持的心態:
  要堅持提升自己。剩者為王。堅持的心態是在遇到坎坷的時候反映出來的心態,而不是順利的堅持。遇到瓶頸的時候還要堅持,知道突破瓶頸達到新的高峰。要堅持到底,不輸給自己。時間總是耐心等待那些堅持成功的人。
  五、合作的心態:
  合作是一種境界。合作可以打天下,強強聯合。合力不只是加法之和。1+1=11,再加1是111,這就是合力。但有一個1倒下就變成了—11。足球場上最能顯示合作的重要,成功不是打工,是合作,成功就是把積極的人組織在一起做事。
  六、老板的心態
  雖然剛進入直銷事業,是直銷界的新鮮人,所投資的金額也不多,但是在心態上卻應該將這筆不大的金額放大為一百倍的投資額。如果只是一、兩萬元的投資事業,專注的力量自然薄弱,一旦做不好,或是遇到挫折,心里容易產生放棄的念頭,如果將投資金額當成是一、兩千萬元的投資,對一般人而言,就不會輕言放棄了。
  七、感恩的心態:
  感恩周圍的一切,包括坎坷、困難、和我們的敵人。事物不是孤立存在的,沒有周圍的一切就沒有你的存在。就連阻力都是動力的反作用力。
  八、歸零的心態:
  重新開始。第一次成功相對比較容易,但第二次卻不容易,原因是不能歸零。往往一個企業的失敗是因為他的曾經的成功,事物發展的規律是波浪前進,螺旋上升,周期性變化。用中國的古話叫風水輪流轉。經濟學講:資產重組。電視劇有句道白:生活就是不斷的重新再來。不歸零就不能進入新的財產重組,就不會持續性發展。
  九、傳教士的心態
  傳教土傳教時,無論對方相信不相信,他們都不斷地將福音散播出去,也不會因為有人不信就動搖他傳播的意念。所以做直銷,不要因為幾位朋友不愿意加入就心灰意冷,應學習傳教士執著地堅持到底。
  十、創業的心態
  對于身負家計重擔的人來說,直銷事業無疑是個機會,在人的一生當中,少一個機會,不如多一個機會,所以應該趁早將機會介紹給朋友共同創業。
本站敬請您關註:c h t. 86722. c o m

申明:本資料由86722會員提供,轉載請註明出處,資料來源:http://cht.86722.com/licai/i39296/.
想要成功就要具備十種創業心態 感謝您的支持!

2015年12月26日 星期六

2015年12月16日 星期三

Hkstp

http://www.hkstp.org/zh-HK/News-Media-Events/Science-Park-Company-News/2015/%E9%A6%99%E6%B8%AF%E7%A7%91%E6%8A%80%E5%9C%92%E5%85%AC%E5%8F%B8%E7%99%BC%E4%BD%88-4%E5%80%8B%E6%96%B0Apps-%E5%8A%A9%E5%AD%B8%E7%94%9F%E5%8F%8A%E8%87%AA%E5%AD%B8%E4%BA%BA%E5%A3%AB%E5%85%A8%E5%A4%A9%E5%80%99%E9%80%B2%E4%BF%AE%E5%A2%9E%E5%80%BC.aspx

跳到内容首頁  網站地圖  聯絡我們  查詢  就業  供應商登記  投標通知

 

 ENG 

Text Only

登入

 

   

 

字型

Small FontsMedium FontsLarge Fonts

 

關於我們設施服務計劃申請進駐公司索引公眾活動新聞稿、傳媒及活動可持續發展參觀

企業新聞園區公司新聞活動及講座企業通訊科技脈搏多媒體廊聯絡公司簡介

下午10:51:46

 14℃ 40%

新聞稿、傳媒及活動

首頁 > 新聞稿、傳媒及活動 > 園區公司新聞 > 2015 > 香港科技園公司發佈 4個新Apps 助學生及自學人士全天候進修增值

#

香港科技園公司發佈 4個新Apps 助學生及自學人士全天候進修增值

(香港,2015年9月15日)踏入九月又是莘莘學子重返校園努力學習的時候,在這個e-世代,資訊科技為學習及進修提供前所未有的便利。4間來自香港科技園公司「網動科技創業培育計劃」的初創企業精英,推出4個與教學及進修相關的創意新Apps,為在無涯學海努力暢游的人士,及有志為好學人士提供協助的服務個體戶,提供無縫平台,帶動教與學的效率攀升。

香港科技園公司透過為期18個月的「網動科技創業培育計劃」(Incu-App) , 向有志投身科技創業的人士提供多元支援,自2012年起獲計劃支援的公司接近110間。香港科技園公司並與多家互聯網/流動通訊公司,包括Amazon Web Services、Google Hong Kong 及微軟香港等18個策略夥伴攜手,為計劃內的初創企業,提供應用程式內容開發、應用平台及市場發展的支援。「通過香港科技園公司與領導市場的平台服務供應商的夥伴關係,培育公司得到難得的發展機會,在起步階段即可獲取由領先科技企業提供的支援,在不同平台上進行及加快研發,從而可在高速滾動的科創生態圈內,盡快完成商品化的過程。」香港科技園公司科技培育計劃主管莫偉軒先生表示。

4個發佈新App中,由Axon Labs Limited開發的外語學習程式SnapWord便率先使用了Google為參與「創業培育計劃」公司提供雲端平台和業務發展的支援。Axon Labs Limited 聯合創辦人及行政總裁覃紹禮先生表示,SnapWord應用程式採用了最新的人工智能技術中的深度學習(deep learning)技術,它是模仿人類神經網路的運算模式,以多節點及分層的運算,分析圖片上的特徵。現時SnapWord已學習了超過一百萬張圖片,並且認出了超過1,000種物件,預計資料庫將不斷擴大,今年內將增加一倍。

Axon Labs Limited聯合創辦人及技術總監歐陽靖民先生表示︰「當使用深度學習技術時,最低層的節點們只計算每個像素上的黑白對比,第二層的節點則根據第一層的資料對比,分辨線條與邊界,隨著層級向上遞增、累積的計算資訊越來越複雜,程式便可將圖片辨認與分類。我們的研發需要使用可運算大量資料的雲端服務,培育計劃提供的支援,正好滿足我們這方面的需要。」

 

 

新Apps簡介︰

SnapWord︰SnapWord採用創新的人工智能(Artificial intelligence, AI)深度學習(deep learning)技術。是一個讓用家以創新方式學習詞彙及語言的應用程式。當用家想認識新單詞時,只需拍下物件的照片,SnapWord即能識別照片上的物件,並提供相關詞彙的解釋及翻譯。應用程式更支援十國語言的單詞發音,包括日、韓、法、德、廣東話、普通話、英語、西班牙語、俄語及冰島語,絕對是自助旅遊及學習世界文化的實用新App。

Tutorspotter︰ 香港補習熱潮不絕,現時補習中介公司的運作模式,多是先由學生或家長一方向公司提供資料,包括個人背景及要求等,再由公司為他們配對補習導師,整個過程有如「盲婚啞嫁」;而且中介公司對導師所收取的中介費亦相當昂貴,基本上導師最少被白白收取兩至六課的學費;當補習導師服務不如預期時,學生及家長更求助無門。Tutorspotter改善香港補習配對模式,以更透明的運作,包括安全認証和高自由度的互相選擇系統,讓補習變得簡單,導師、學生及家長都可以「有得揀」。( 詳情請參閱Tutorspotter附件)

Twosigmas︰劍橋大學畢業生創造「終極熱線」,改造傳統補習及私人家教的概念,幫助有需要人士在任何時間應付英語問題,不論是家庭作業、論文或工作面試問題,都得以即時解決,絕對是學生及職場人士夢寐以求的服務。Twosigmas 團隊已招募超過1000名教師,並建立了一個線上平台讓學生與教師聊天及展開視頻會議。項目已從深圳市政府相關基金會獲取種子資金,為深圳市超過6000個企業促進英語學習。( 詳情請參閱Twosigmas附件)

DSE Wiki︰為全港第一個香港中學文憑試學習Apps,提供全新學習及温習模式,收錄近17年數學、經濟、物理等6科會考及文憑試答案,並附有課題分類及難度解答,讓考生可隨時隨地利用手機温習之餘,更能自我測驗、獲取績分分析,並以數據化表列,進度一目了然,更可預測考試成績。學生能針對個人強弱項作進修部署,為DSE考取佳績作出終極準備。( 詳情請參閱DSE Wiki附件)

 

 

 

香港科技園公司向傳媒發佈4間來自「網動科技創業培育計劃」的初創企業精英的科研成果,4個創新及實用的應用程式及線上平台便利在學及有志進修人士學習。活動上,香港科技園公司創業培育計劃主管莫偉軒先生介紹現時共有18個領導市場的互聯網/流動通訊公司與香港科技園公司建立策略夥伴關係,為初創企業提供應用程式內容開發、應用平台及市場發展的支援。

圖為 (由左至由)︰
Axon Labs Limited 聯合創辦人覃紹禮先生
Tutorspotter HK Limited創辦人及行政總裁Mark Wang
香港科技園公司創業培育計劃主管莫偉軒先生
Digital Solutions (HK) Limited行政總裁曾寶霆先生
Twosigmas China Limited常務董事及共同創辦人李力行先生

 


 
SnapWord採用創新的人工智能(Artificial intelligence, AI)深度學習(deep learning)技術,用家只需用智能電話拍下物件的照片,SnapWord即能識別照片上的物件,並提供涵蓋多達十國語言的詞彙解釋及翻譯。

Tutorspotter改善香港補習配對模式,以更透明的運作,包括安全認証、高自由度的互相選擇系統,以及設立導師與學生的對話平台,讓補習變得簡單,導師、學生及家長都可以「有得揀」。

 

Twosigmas是由幾位劍橋大學畢業生開發,當用家遇到英語問題,可隨時隨地透過此平台尋找幫助,不論是家庭作業、論文或工作面試問題,都能得到即時解決。


 
DSE Wiki為全港第一個香港中學文憑試學習Apps,提供全新學習及温習模式,學生可隨時透過應用程式進行自我測驗並獲取以數據化表列的績分分析,針對個人強弱項作進修部署。

– 完 –

香港科技園公司的創業培育計劃

香港科技園公司(科技園公司)旗下的創業培育計劃為創業者提供全面的支援服務,以助他們克服創業初期的不同挑戰。創業培育計劃提供三種不同年期,分別是為期一年半的「網動科技創業培育計劃」、三年期的「科技創業培育計劃」及四年期的「生物科技創業培育計劃」。創業培育計劃針對新成立公司於不同發展階段的需要,提供適合行業需要的支援服務,當中包括推廣及宣傳、培訓及人才發展、友導計劃、顧問服務、聯系天使投資者及風險投資基金的配對活動、科研專用的辦公室租金優惠,以及研發津貼及資助等等。科技創業公司更可使用先進實驗室及測試中心,並由一支專業工程師團隊提供於電子、資訊科技及電訊、精密工程、生物科技及綠色科技等五大科技範疇的研發支援。香港科技園公司致力透過提供先進基建設施及支援服務推動香港創新科技的發展。有關科技園公司及創業培育計劃的詳情,可瀏覽www.hkstp.org 及www.hkstp.org/incubation

傳媒查詢
香港科技園公司
殷玉森
電話:(852) 93026220 / (852) 2629 6743
電郵:sam.yan@hkstp.org

 回頂端

關於我們概覽使命、目標、核心價值董事及組織企業管治收集個人資料聲明里程碑資源中心我們的成就及奬項設施科學園創新中心工業邨

服務計劃概覽科技領域創業培育計劃科技支援及實驗室服務企業支援服務天使/創業基金飛躍計劃內地合作科技企業投資基金科技企業家夥伴合作計劃SPARK申請進駐概覽申請租賃/工業用地培育計劃申請申請零售店舖租務

公司索引科學園入駐企業創新中心入駐企業工業邨入駐企業/廠戶培育計劃內的公司公眾活動科學園創新中心新聞稿、傳媒及活動企業新聞園區公司新聞活動及講座企業通訊科技脈搏多媒體廊聯絡公司簡介

可持續發展概覽環境社區關愛員工參觀香港科學園創新中心工業邨就業概覽職業發展工作空缺人才招聘平台

聯絡我們聯絡資料查詢提出意見

詞彙實用連結無障礙網站內聯網

© 2013 香港科技園公司版權所有。
私隱及免責聲明  |  使用條款

上車真人show

http://s.nextmedia.com/apple/a.php?i=20151216&sec_id=15307&s=15320&a=19413166

2015年12月15日 星期二

Converting a dynamic web site to a PhoneGap application

https://dzone.com/articles/converting-dynamic-web-site

 
Over a million developers have joined DZone.
   
 

Converting a dynamic web site to a PhoneGap application

  · Mobile Zone
 
 Comment (0)
 
Save
 
 20.20k Views
Earlier today a reader asked me about the possibility of converting his mobile-friendly site into a "real" application via PhoneGap. I told him that this could be very easy. You can take your HTML, upload it to the PhoneGap Builder service, and see what you get. This works with simple HTML sites, but is not going to work well with dynamic sites built with server-side languages. In this blog post, I'll explain why it won't work, and also walk you through an example of converting a (simple) dynamic web site into a PhoneGap application.
Before I begin - two quick notes. I'll be using jQuery Mobile for the UI and ColdFusion for the back-end. This is completely inconsequential to the task at hand. Ok, ready?
First, let's discuss why a dynamic web site can't be simply converted as is into a PhoneGap application. Most of my readers are web developers so you should know this, but when it comes to dynamic server-side languages like ColdFusion, PHP, Ruby, etc, the HTML your browser gets is created dynamically.
Take for example this simple ColdFusion site. When you request this URL with your browser, my web server hands off the request to ColdFusion. ColdFusion does its magic (hits the database) and outputs raw HTML. That HTML is returned to the browser and rendered as is. The same would apply for PHP, Ruby, etc. When you click on the detail page, we hit one template that is passed a URL parameter that instructs the code to load a particular record and display it.
Now - consider PhoneGap. PhoneGap takes your HTML files and packages them up into a native application for your mobile platform. But it is not a web server. You can't bundle in ColdFusion or PHP and have it execute server-side code like in the example above.
Does this mean you're completely out of luck? Not at all. Let's look at how we can convert our code into a PhoneGap application.
First, let's look at the initial application. As I said above, the choice of the server-side language isn't relevant to the discussion. Therefore, I won't go into detail about what the ColdFusion code is doing. Those of you who don't know ColdFusion should be able to mentally map it to the language of your choice. First - the index page.
<cfset artService = new art()>
<cfset art = artService.getArtList()>

<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Art Lister</title>
<link rel="stylesheet" href="css/jquery.mobile-1.1.0.min.css" />
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery.mobile-1.1.0.min.js"></script>
</head>

<body>

<div data-role="page">

<div data-role="header">
<h1>Art</h1>
</div>

<div data-role="content">
<ul data-role="listview" data-inset="true">
<cfoutput query="art">
<li><a href="detail.cfm?id=#artid#">#artname#</a></li>
</cfoutput>
</ul>
</div>

<div data-role="footer">
<h4>Raymond Camden</h4>
</div>

</div>

</body>
</html>

 Then the detail page:
<cfparam name="url.id" default="">
<cfset artService = new art()>
<cfset art = artService.getArt(url.id)>

<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<cfoutput><title>Art: #art.name#</title></cfoutput>
<link rel="stylesheet" href="css/jquery.mobile-1.1.0.min.css" />
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery.mobile-1.1.0.min.js"></script>
</head>

<body>

<div data-role="page">

<div data-role="header">
<cfoutput><h1>Art: #art.name#</h1></cfoutput>
</div>

<div data-role="content">
<cfoutput>
<p>
#art.description#
</p>
<p>
Price: #dollarFormat(art.price)#<br/>
Sold: <cfif art.sold>Yes<cfelse>No</cfif>
</p>

<p>
<img src="/cfdocs/images/artgallery/#art.image#">
</p>
</cfoutput>
</div>

<div data-role="footer">
<h4>Raymond Camden</h4>
</div>

</div>

</body>
</html>

 And finally - here is the component that drives the data. Basically it just wraps up the logic to get our list and detail.
component {

public struct function getArt(required numeric id) {
var q = new com.adobe.coldfusion.query();
q.setDatasource("cfartgallery");
q.setSQL("select artid, artname, description, price, issold, largeimage from art where artid = :artid");
q.addParam(name="artid", value=arguments.id, cfsqltype="cf_sql_integer");
var result = q.execute().getResult();
//convert the Query into a simple structure
var art = {id=result.artid[1], name=result.artname[1], description=result.description[1], price=result.price[1], sold=result.issold[1], image=result.largeimage[1]};
return art;
}

public query function getArtList() {
var q = new com.adobe.coldfusion.query();
q.setDatasource("cfartgallery");
q.setSQL("select artid, artname from art order by artname asc");
return q.execute().getResult();
}

}

 Ok - so that's our old school (although nicely mobile optimized) web site. To begin the conversion to PhoneGap, I create a new file for my home page that is pure HTML, no ColdFusion.
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Art Lister</title>
<link rel="stylesheet" href="css/jquery.mobile-1.1.0.min.css" />
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery.mobile-1.1.0.min.js"></script>
<script src="js/main.js"></script>
</head>

<body onload="init()">

<div data-role="page" id="indexPage">

<div data-role="header">
<h1>Art</h1>
</div>

<div data-role="content">
<ul data-role="listview" data-inset="true" id="artList">
</ul>
</div>

<div data-role="footer">
<h4>Raymond Camden</h4>
</div>

</div>

</body>
</html>

 Notice that the layout is the same as before, but our content is gone. Previously that was sourced on the server by a database call. So how do we add this dynamic data back in? With JavaScript.
First - let's add some logic to run when the home page is created. This specific event is based on how jQuery Mobile does things, but again, you could do this without any particular UI framework.
$("#indexPage").live("pageinit", function() {
console.log("Getting remote list");
$.mobile.showPageLoadingMsg();
$.get("http://localhost/testingzone/phonegaptests/conversion/service/artservice.cfc?method=getArtList&returnformat=json", {}, function(res) {
$.mobile.hidePageLoadingMsg();
var s = "";
for(var i=0; i<res.length; i++) {
s+= "<li><a href='detail.html?id=" + res[i].id + "'>" + res[i].name + "</a></li>";
}
$("#artList").html(s);
$("#artList").listview("refresh");
},"json");

});

 This code block performs a HTTP request to our server. (Note: I'm using localhost in the example above but in a real application it would be your site's domain, something.com.) I've built a new set of server-side code just to handle getting and returning data in JSON format. So there's still a server involved, but now it's simply returning data, nothing more. I loop over the result and render it out into the page.
The detail page is built much like the index page. It's a copy of the earlier version minus any code or actual content.
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link rel="stylesheet" href="css/jquery.mobile-1.1.0.min.css" />
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery.mobile-1.1.0.min.js"></script>
</head>

<body>

<div data-role="page" id="detailPage">

<div data-role="header">
<h1></h1>
</div>

<div data-role="content" id="detailContent">
</div>

<div data-role="footer">
<h4>Raymond Camden</h4>
</div>

</div>

</body>
</html>
 To handle this, back in my JavaScript I added code to run when the page is loaded.
$("#detailPage").live("pageshow", function() {
var page = $(this);
var query = page.data("url").split("?")[1];
var id = query.split("=")[1];
console.log("Getting remote detail for "+id);
$.mobile.showPageLoadingMsg();
$.get("http://localhost/testingzone/phonegaptests/conversion/service/artservice.cfc?method=getArt&returnformat=json", {id:id}, function(res) {
$.mobile.hidePageLoadingMsg();
$("h1",page).text("Art: " + res.name);
var s = "<p>" + res.description + "</p>";
s += "<p>Price: "+res.price + "<br/>";
s += "Sold: ";
if(res.sold == 1) s += "Yes</p>";
else s+= "No</p>";

s+= "<p><img src='" + res.image + "'></p>";
$("#detailContent").html(s);
},"json");

});
 And that - as they say - is basically it. To summarize:
  • The code in the PhoneGap application is just HTML and JavaScript.
  • The dynamic data from the earlier application was rewritten to expose itself remotely.
  • PhoneGap then simply uses Ajax to fetch that data.
I've attached a zip of all the code used for this blog post below. If any part of this doesn't make sense, let me know, and I hope this was helpful.
Topics:
 
Published at DZone with permission of Raymond Camden , DZone MVB .
Opinions expressed by DZone contributors are their own.

Additional Considerations When Working on Native Mobile Apps

Read what considerations are on a few executives' minds.

  · Mobile Zone
 
 Comment (0)
 
Save
 
 224 Views
To gather insights for DZone's Native Mobile App Development Research Guide, scheduled for release in February, 2016, we spoke to 18 executives who are developing mobile applications in their own company or helping clients do so.
Here's who we spoke to:
Dan Bricklin, CTO, Alpha Software| Adam Fingerman, Co-Founder and Chief Experience Officer, ArcTouch | Nishant Patel, CTO and Kurt Collins, Director of Technology Evangelism, Built.io | Tyson Whitten, API Management Product Marketing, CA Technologies | Rajiv Taori, VP Product Management Mobile Platforms Group, Citrix | Zach Slayton, VP Digital Technology Solutions, Collaborative Consulting | Brad Bush, COO, Dialexa | Craig Lurey, CTO and Co-Founder, Keeper Security | Jessica Rusin, Senior Director of Development,  MobileDay | Steven Jovanelly, Senior Director, Innovation Lab, PGi | Brandon Satrom, GM Developer Platforms and Tools, Progress Software | Eddie de Guia, Co-Founder and Managing Director, PubNative | Hans Ashlock, Technical Marketing Manager, Qualisystems | Mark Kirstein, Senior Director of Enterprise Software, RhoMobile | Justin Bougher, Vice President of Product, SiteSpect | Carla Borsoi, Software Product Manager and Marketing Lead, 6SensorLabs | Lubos Parobek, VP of Products, Sauce Labs
We asked these executives, "What have I failed to ask that you think we need to consider with regards to native mobile app development?"
Here's what they said:
    1. Be friends with a good graphic designer (UX). There's a big variation in the skills of a developer and a designer. Team up with someone that can design your front-end so you can focus on the development of the application.
    2. Think about what we’re doing with the data. Do we need to collect all of the data we're collecting? What are we going to do with it? How do we keep it secure? In what form do we need to serve it back up?
    3. How do we balance the spectrum of options and get the experience to fit together. We need to ask customers “what do you want to see?” while also realizing, like Steve Jobs did, the customer may not know what is possible.
    4. Open source is what developers love. Github enables you to become familiar with the technologies, collaborate via websites, hackathons provide access to APIs.
    5. At the network level, how devices are interconnected and the underlying network infrastructure.
    6. Cross-platform development tool like Xamarin enables you to write once and use anywhere by compiling code. Everything depends on the business purpose of the app.
    7. I'm not very familiar with hybrid but I see the opportunity of providing a base-level of functionality. Over time that will evolve and we’ll have standards - especially on Android (Amazon and Samsung) which will enable us to put more focus on the business.
    8. The mobile developers of today are the IoT developers of tomorrow. End user experience, minimal bandwidth use, personalization are all critical. There will be more devices like Amazon Echo with Alexa. Anything with an API is a development platform.
    9. Tooling. Know what's available and what problem it solves. If you find something that works, stick with it. Don't chase shiny objects, they'll waste your time. Learn what's working for others' that may be able to help with your challenges.
    10. The future is a good question. More platforms are coming out and everything will be connected. Amazon Echo is very cool and has a native tool kit. Google will come out with a Google Now version to compete with it. Simple to do an integration with and have a voice command tool.
    11. Apps that are used globally need to consider network bandwidth. Apps that work well in South Korea don’t work so well in the U.S. - or other parts of the world.
Do you have any additional thoughts about the development of native mobile apps that we didn't address in the last 10 articles?
Topics:
 
NATIVE APP VS MOBILE APPS VS MOBILE WEBSITES,IOT APP DEVELOPMENT,IOS,ANDROID,BIG DATA

Faster Android Emulator Has Arrived!

The Android Studio 2.0 preview of the new-and-improved Android emulator is here at last! After the beta release in November, it's been a waiting game for developers eager to try out the highly anticipated, much faster emulator.

  · Mobile Zone
 
 Comment (0)
 
Save
 
 433 Views
The Android Studio 2.0 preview of the new-and-improved Android emulator is here at last! After the beta release in Novemeber, it's been a waiting game for developers eager to try out the highly anticipated, much faster performing emulator. Now with Android Studio 2.0 Preview 3, they can.

Speed Gains

So, let's get down to the nitty gritty. How fast is it?

CPU Performance

Android Studio now defaults to using CPU acceleration on x86 emulator system images. In combination with Symmetric Multi-Processor (SMP) support in Android 6.0 Marshmallow system images, the Android emulators can outperform many physical Android devices. Finally capable of multi-core support, not only do your apps and the emulator run faster in Android Studio, but common developer tasks like installing APKs are quicker as well. Also, with SMP you can test apps specific to multi-processor Android devices—a noteworthy new feature.

Android Debug Bridge

On top of faster CPU speeds in the emulator, one "under-the-hood" improvement made to Android Studio involves pushing files to your device using Android Debug Bridge (ADB). When using Android 6.0 Marshmallow and higher system images with the new Android Emulator, you can now push files across the bridge up to 5x faster than an actual device. This will help if you're pushing large application packages or files during your app development cycle.

User Interface

Still exciting, though maybe not as high in demand, there have been a fair amount of upgrades to Studio 2.0's UI.
Some of the new features available are:
  • Toolbar - shortcuts for common emulator actions
  • Window Zooming & Scaling - better controls for viewing projects
  • Drag & Drop - easy access for installing APKs and moving files to the emulator's SD card storage
  • Extended UI Controls - a range of emulator actions such as virtual calls and SMS messages, battery controls, or sending a GPS location point
So, for all those eager to start emulating, here are the details available on how to set up the new preview. Also, check out the official Android Developers Blog for more details.  
Topics:
 
ANDROID STUDIO 2.0,EMULATOR,MOBILE,ANDROID,MOBILE APP,ANDROID APP,ANDROID APP DEVELOPER,MOBILE APP DEVELOPMENT