<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mFabrik - web and mobile development &#187; series 60</title>
	<atom:link href="http://blog.mfabrik.com/category/series-60/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mfabrik.com</link>
	<description>Freedom delivered.</description>
	<lastBuildDate>Thu, 02 Sep 2010 13:25:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Why people hate Adobe (and have now headache with sports-tracker.com)?</title>
		<link>http://blog.mfabrik.com/2010/08/21/why-people-hate-adobe-and-have-headache-now-with-sports-tracker-com/</link>
		<comments>http://blog.mfabrik.com/2010/08/21/why-people-hate-adobe-and-have-headache-now-with-sports-tracker-com/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 11:35:08 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[series 60]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[user experience]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[run-time]]></category>
		<category><![CDATA[slow]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[sports tracker]]></category>

		<guid isPermaLink="false">http://blog.mfabrik.com/?p=673</guid>
		<description><![CDATA[sportstracker.nokia.com was a GPS based sports tracking service for Nokia phones. Around a year ago it spun off as independent company, which was a good move if you really want to develop your service business. Now sports-tracker.com has launched a new website. You can upload your runs and photos there and share your sports results [...]]]></description>
			<content:encoded><![CDATA[<p>sportstracker.nokia.com was a GPS based sports tracking service for Nokia phones. Around a year ago it spun off as independent company, which was a good move if you really want to develop your service business. Now sports-tracker.com has launched a new website. You can upload your runs and photos there and share your sports results through social media.</p>
<p>It was delightful to see the new site opened and having the features been missing so long time ago. However, I was not totally happy with what I saw.</p>
<p><a href="http://blog.mfabrik.com/wp-content/uploads/2010/08/Screen-shot-2010-08-21-at-1.32.14-PM.png"><img class="alignnone size-full wp-image-674" title="Screen shot 2010-08-21 at 1.32.14 PM" src="http://blog.mfabrik.com/wp-content/uploads/2010/08/Screen-shot-2010-08-21-at-1.32.14-PM.png" alt="" width="867" height="552" /></a></p>
<p>The <strong>whole</strong> new site is built on top of Adobe Flash run-time technologies. There are no traditional web pages per se.</p>
<p>The problem is that full page Flash is resource hog. In the picture above you see that opening this web site in my Safari web browser spikes CPU to 100% usage &#8211; and it actually stays there indefinitely (note: on front page, see remarks below). This means that my computer is working to barely survive under the stress caused by this one web site &#8211; and my computer is powerful iMac. This means that if I have this site open background in my web browser my laptop battery would die very very fast. This means that all programs I try to simultaneously use on my computer become sluggish.</p>
<p>I assume that when sports-tracker.com was spun off from Nokia they contracted some digital advertisiment agency to built the new site for them. Digital advertisement agencies are often, not always, companies focused on the brand and visual appearance. They love to work with Flash because it gives good authoring tools to build nice looking, bling bling filled, animations.  Flash is a great tool for animations. Flash is a great tool for building browser based games. However, it is not good for building the whole web site where the user experience criteria could include 1) the site actually to responds to clicks 2) the site does not bring down to the whole computer. The decision makers probably drink cool-aid &#8220;hey let&#8217;s built the site with the Adobe&#8217;s latest tools &#8211; have you seen the demos how coooooool they look like&#8221;.</p>
<p>The thing is, I want to just see my sports tracking results. I don&#8217;t care whether the diagrams have blurred drop shadows with state of the art Web 3.0 mouse over effects. Now I can enjoy the effects, points for the artistic leader for that, but doing the actual task, accessing my sports results, have become irritating task to do. Things respond sloooow &#8211; that&#8217;s the main reason. In-flash scrolls bars have noticeable lag.</p>
<p>There exists an <a href="http://en.wikipedia.org/wiki/Uncanny_valley">uncanny valley</a> how normal web sites behave and how 100% Flash site behave. My right click does not work. I cannot right click a link and open it in new tab. I cannot right click a link to copy it to my friend. I cannot access the site on my N900 web browser (which even has Flash). I coudn&#8217;t even send feedback to sports-tracker.com team without first installing a desktop email client, as the email address cannot be copied from Flash to web mail. Text boxes are little different.</p>
<p>I cannot hold my horses to see Adobe conquering mobile phones with Flash and doing the same thing for mobile browsing experience it has now done for sports-tracker.com.</p>
<p>The site is not bad. Usability guidelines have been followed carefully when building the site. The developers seem to have gone into great details to make the operations smooth as possible. For example, <a href="http://www.whatwg.org/specs/web-apps/current-work/#scroll-to-fragid">URL fragment identifies </a>are used to make sure bookmarking works even though Flash is present on the site. Social media features, not present in old sport tracker, are finally there. The results of design decision to built the whole site on Flash, instead of using Flash for some components only, might not have been seen by the time this decision was taken.</p>
<p>When Nokia Sports Tracker was first introduced 3-4 years ago with the first Series 60 GPS phones it was ahead of the competition. Wow effect had no limits &#8211; can you <em>really</em> do that with your mobile phone &#8211; in real-time and live?</p>
<p>It is funny how time passes.</p>
<p>It is <a href="http://www.mapmytracks.com">definitely possible to build a sports tracking site</a>, which looks cool, but does not have issues mentioned here.</p>
<p>Note: With little more research it seems that CPU usage stays 100% is specific to front page only and it has issues of not winding down action when you move away from your browser. However, rendering of other pages still uses vast amount of CPU, causing lag you do not see when opening web pages. The background CPU consumption on sports-tracker.com page is aroud 8% per tab when should be 0%.</p>
<p>Note 2: I am using the latest 10.1  Flash Player.
<p>
<a href="http://blog.mfabrik.com"><img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/mfabrik-24.png"></img></a> <a href="http://blog.mfabrik.com">Read our blog</a> <a href="http://twitter.com/mfabrik"> <a href="http://feeds.feedburner.com/mFabrikWebAndMobileDevelopment" rel="alternate" type="application/rss+xml"><img valign="middle" src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png" alt="" style="vertical-align:middle;border:0"/></a> <a href="http://feeds.feedburner.com/mFabrikWebAndMobileDevelopment" rel="alternate" type="application/rss+xml">Subscribe mFabrik blog in a reader</a> <img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/twitter-24.png"></img></a> <a href="http://twitter.com/mfabrik">Follow us on Twitter</a> <a href="http://www.linkedin.com/in/ohtis"><img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/linkedin-24.png"></img></a> <a href="http://www.linkedin.com/in/ohtis">Mikko Ohtamaa on LinkedIn</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2010/08/21/why-people-hate-adobe-and-have-headache-now-with-sports-tracker-com/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Python 2.3, Python for Series 60 1.4.5 still in use&#8230; and insight into Symbian deployment process and user experience</title>
		<link>http://blog.mfabrik.com/2010/08/18/python-2-3-python-for-series-60-1-4-5-still-in-use-and-insight-into-symbian-deployment-process-and-user-experience/</link>
		<comments>http://blog.mfabrik.com/2010/08/18/python-2-3-python-for-series-60-1-4-5-still-in-use-and-insight-into-symbian-deployment-process-and-user-experience/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 20:36:46 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[nokia]]></category>
		<category><![CDATA[pys60]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[series 60]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[dll]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[pyside]]></category>
		<category><![CDATA[sis]]></category>
		<category><![CDATA[smart installer]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://blog.mfabrik.com/?p=660</guid>
		<description><![CDATA[Nokia&#8217;s Python for Series 60 has a long history. It is a Python interpreter, originally escaped from Nokia prototype labs, running in your phone. It is said to been awesome to show mobile/embedded developers, who were love with their static C compilers and 4 hours built times, opening a Python prompt in your phone and [...]]]></description>
			<content:encoded><![CDATA[<p>Nokia&#8217;s Python for Series 60 has a long history. It is a Python interpreter, originally escaped from Nokia prototype labs, running in your phone. It is said to been awesome to show mobile/embedded developers, who were love with their static C compilers and 4 hours built times, opening a Python prompt in your phone and typing <em>import audio; audio.say(&#8220;your phone loves Python&#8221;) </em>by keypad (Nokia Series 60 phones come with a speech synthetizer). Python for Series 60 is the best tool of building a simple proof of concept mobile applications. The lack of speed, lack of good UI libraries and difficult deployment problems makes it challenging to use it in production grade environments.</p>
<p>PyS60 has also a history of staying in archaid Python version &#8211; namely Python 2.3. It was not until this February when stable PyS60 2.0.0 with Python 2.5 was released (1.9.x was considered experimental according to the release notes). Luckily looks like new winds are blowing (Qt acquisition, Meego/Maemo) and Python is getting higher priority. For example, <a href="http://www.pyside.org/">PySide</a> Qt bindings is very high profile project. Based on this, we hope to expect Python to the first class citizen in the future Meego and Symbian devices.</p>
<p>My company had a little side venture with <a href="http://blog.mfabrik.com/2008/09/01/introducing-python-for-series-60-community-edition/">PyS60 Community Edition</a> when we were still betting that Symbian and Python would rock the world &#8211; the era before iPhone changed the game.  PyS60 community edition was effectively a revamped PyS60 1.4.x with Python 2.3 toolchain which actually made PyS60 application production deployment <em>possible</em>. Possible&#8230;? -you ask. Madness&#8230; no. It is Symbian. It is certification and signing and<a href="http://www.newlc.com/en/Why-the-fuck-won-t-my-SIS-file.html"> obscure error messages</a>. Basically vanilla PyS60 is being shipped as an external SIS (Symbian package format) and Symbian platform security makes it impossible to deploy two production signed applications using vanilla PyS60 on the same device. The only cure was statically building Python for both apps from the scratch, which is exactly what PyS60 Community Edition was doing.</p>
<p>But this all was long long time ago. Aeons in mobile time. So I was today surprised when I got email from a person (David) using PyS60 Community Edition. We never upgraded PyS60 Community Edition to Python 2.5 . In fact we haven&#8217;t touched the project about two years. David was effectively using Python 2.3 and asked questions about the tool chain internals.</p>
<p>My first answer was a question <em>Why on Earth you are still using Python 2.3</em>? I thought maybe the guy had somehow missed the last two years or was a stuck with an old phone.</p>
<p>However&#8230; this was not the case and the answer was very insigtful.</p>
<p><em>Yes, I&#8217;m aware of PyS60 2.0.0, but I prefer PythonCommunity, at least for the moment: no OpenC neither Platform Services dependencies; smaller .SIS size and memory footprint. I think that the final .SIS produced with PythonCommunity, with everything necessary to run contained in it and with a clean installation without multiple dependencies, is a better fit for a mass-market than the files produced by PyS60 2.0.0, above all taking into account that people don&#8217;t know what S60 or Symbian are. </em></p>
<p><em>Also, the runtime deployment on the new PyS60 isn&#8217;t automatic for S60_3rd and S60_FP1 devices, so in the worst case scenario, users may end having to learn to install the different files (pips.sis, ssl.sis, stdioserver.sis, Python_2.0.0.sis, PythonScriptShell_2.0.0.sis) in the correct order, which is a big no-no for a mass-market deployment.</em></p>
<p>So&#8230;. I hope someone in Nokia is reading this blog entry carefully. Do it like Apple does. <strong>Make your application deployment static.</strong> Make OpenC static. Make every freaking library which is not shipped with the device statically buildable. It should be possible now when everything is open source. It will consume precious device RAM, but at least it will make mass market application development possible. SIS hell is worse hell than deb hell, or DLL hell, as the end user cannot fix it due to device security.</p>
<p>In the related news <a href="http://wl4.peer360.com/b/KYm12M46kGV2H2UO89lZ/main.asp?hl=80257660">SIS smart installer was announced few weeks ago.</a> Personally I wouldn&#8217;t bet it can deal with all the problems of versioning and Symbian platform security. <a href="http://discussion.forum.nokia.com/forum/forumdisplay.php?235-Nokia-Smart-Installer-for-Symbian">Forum reports aren&#8217;t promising</a> and looks like very Symbianish user experience can be expected. In positive light, it seems that Python is <a href="http://discussion.forum.nokia.com/forum/showthread.php?205584-Please-add-Python-runtime-to-dependencies-supported-by-Smart-Installer">being considered for this process</a>.
<p>
<a href="http://blog.mfabrik.com"><img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/mfabrik-24.png"></img></a> <a href="http://blog.mfabrik.com">Read our blog</a> <a href="http://twitter.com/mfabrik"> <a href="http://feeds.feedburner.com/mFabrikWebAndMobileDevelopment" rel="alternate" type="application/rss+xml"><img valign="middle" src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png" alt="" style="vertical-align:middle;border:0"/></a> <a href="http://feeds.feedburner.com/mFabrikWebAndMobileDevelopment" rel="alternate" type="application/rss+xml">Subscribe mFabrik blog in a reader</a> <img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/twitter-24.png"></img></a> <a href="http://twitter.com/mfabrik">Follow us on Twitter</a> <a href="http://www.linkedin.com/in/ohtis"><img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/linkedin-24.png"></img></a> <a href="http://www.linkedin.com/in/ohtis">Mikko Ohtamaa on LinkedIn</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2010/08/18/python-2-3-python-for-series-60-1-4-5-still-in-use-and-insight-into-symbian-deployment-process-and-user-experience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Peek-a-boo &#8211; Python logo spotted in outdoor advertisement!</title>
		<link>http://blog.mfabrik.com/2010/08/17/peek-a-boo-python-logo-spotted-in-outdoor-advertisement/</link>
		<comments>http://blog.mfabrik.com/2010/08/17/peek-a-boo-python-logo-spotted-in-outdoor-advertisement/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 19:29:46 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[plone]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[series 60]]></category>
		<category><![CDATA[symbian]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[advertisemetn]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[mini]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[nokia n97]]></category>
		<category><![CDATA[python for series 60]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[sports tracker]]></category>
		<category><![CDATA[veikkaus]]></category>

		<guid isPermaLink="false">http://blog.mfabrik.com/?p=636</guid>
		<description><![CDATA[This caught my eye when coming home from the work. The finger points straight to the snake&#8230; Kudos to Nokia for this. Nokia&#8217;s phones are the best platform if you wish to have pleasant rapid mobile application development in Python &#8211; just stay away from Symbian and Series 40 models. Read our blog  Subscribe mFabrik [...]]]></description>
			<content:encoded><![CDATA[<p>This caught my eye when coming home from the work.</p>
<p><a href="http://picasaweb.google.com/miohtama/PythonInAds#5506452409414984274"><img src="http://lh3.ggpht.com/_k6ZWjTOvMXw/TGrZSrvGIlI/AAAAAAAAAqM/6XDS9Qtmls4/s512/20100817_002.jpg" /></a></p>
<p>The finger points straight to the snake&#8230;</p>
<p><a href="http://picasaweb.google.com/miohtama/PythonInAds#5506452396396761234"><img src="http://lh5.ggpht.com/_k6ZWjTOvMXw/TGrZR7PT0JI/AAAAAAAAAqA/CrdvJnFQ3bc/s512/20100817_001.jpg" />
</p>
<p>
<img src="http://lh4.ggpht.com/_k6ZWjTOvMXw/TGraYVW0ZMI/AAAAAAAAAqc/X9AwQwGEL9Y/s512/python_logo.jpg" />
</p>
<p>
Kudos to Nokia for this. Nokia&#8217;s phones are the best platform if you wish to have pleasant rapid mobile application development in Python &#8211; just stay away from  Symbian and Series 40 models.
</p>
<p>
<a href="http://blog.mfabrik.com"><img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/mfabrik-24.png"></img></a> <a href="http://blog.mfabrik.com">Read our blog</a> <a href="http://twitter.com/mfabrik"> <a href="http://feeds.feedburner.com/mFabrikWebAndMobileDevelopment" rel="alternate" type="application/rss+xml"><img valign="middle" src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png" alt="" style="vertical-align:middle;border:0"/></a> <a href="http://feeds.feedburner.com/mFabrikWebAndMobileDevelopment" rel="alternate" type="application/rss+xml">Subscribe mFabrik blog in a reader</a> <img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/twitter-24.png"></img></a> <a href="http://twitter.com/mfabrik">Follow us on Twitter</a> <a href="http://www.linkedin.com/in/ohtis"><img valign="middle"  src="http://blog.mfabrik.com/wp-content/uploads/linkedin-24.png"></img></a> <a href="http://www.linkedin.com/in/ohtis">Mikko Ohtamaa on LinkedIn</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2010/08/17/peek-a-boo-python-logo-spotted-in-outdoor-advertisement/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cross-platform mobile application development and payments</title>
		<link>http://blog.mfabrik.com/2009/09/30/cross-platform-mobile-application-development-and-payment/</link>
		<comments>http://blog.mfabrik.com/2009/09/30/cross-platform-mobile-application-development-and-payment/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 09:55:30 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[locationing]]></category>
		<category><![CDATA[payment]]></category>
		<category><![CDATA[series 60]]></category>
		<category><![CDATA[symbian]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[appaccelerator]]></category>
		<category><![CDATA[appstore]]></category>
		<category><![CDATA[bango]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[deviceatlas]]></category>
		<category><![CDATA[fennec]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[phonegap]]></category>
		<category><![CDATA[pre]]></category>
		<category><![CDATA[rhomobile]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[titanium]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[web run-time]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://blog.twinapex.fi/?p=277</guid>
		<description><![CDATA[We have been piloting multi-platform mobile application development and payments in few client projects. Target platforms usually include iPhone, Android, Blackberry and Nokia Series 60. Also there are two notable usual cases which need to be specially handled Image uploads Payments for subscribed content Sounds easy, right? Well it isn&#8217;t&#8230; Below are some notes for [...]]]></description>
			<content:encoded><![CDATA[<p>We have been piloting multi-platform mobile application development and payments in few client projects. Target platforms usually include iPhone, Android, Blackberry and Nokia Series 60. Also there are two notable usual cases which need to be specially handled</p>
<ul>
<li>Image uploads</li>
<li>Payments for subscribed content</li>
</ul>
<p>Sounds easy, right? Well it isn&#8217;t&#8230; Below are some notes for our due diligence work which you fellow developers might find interesting.</p>
<h2>SDKs</h2>
<p>Mobile phone vendors are jealously and don&#8217;t want to co-operate with each other. Building application which works in all handsets is major headache.</p>
<p>We found some reasonable candidates for cross-platform mobile development doing HTML and Javascript. HTML and Javascript pages are converted to native application using a wrapper technology (a.k.a. appaccelerator). Doing Flash Lite or Java ME can be pretty much forgotten nowadays as they won&#8217;t run on the most hyped platform, iPhone. Flash Lite has poor support for anything except content authoring due to primitive and limited APIs. Java ME provides horrible user experience.</p>
<p>(X)HTML is the only common language spoken by mobile phones. Thus, there has been a rise of &#8220;appaccelerators&#8221;, technologies which allow to create mobile applications with HTML(5) and Javascript.</p>
<ul>
<li><a href="http://www.phonegap.com/">Phonegap:</a> iPhone, Android, Blackberry and possibly S60 in the future. <strong>Pluses:</strong> BSD license, very active community. <strong>Minuses:</strong> <a href="http://groups.google.com/group/phonegap/browse_thread/thread/5760d86c91970441/f0305e400b362933#f0305e400b362933">bad documentation, difficult deployment process</a>.</li>
<li><a href="http://www.appcelerator.com/">Titanium</a>: iPhone, Android.<strong> Pluses: </strong>Professional, Apache license. <strong>Minuses:</strong> Too tightly coupled with Appacclerator Inc. company.</li>
<li><a href="http://www.rhomobile.com/">Rhomobile</a>: iPhone, Android, Blackberry, S60, Windows Mobile. <strong>Pluses:</strong> Professional, tries to build open source community, the widest platform support. <strong>Minuses:</strong> Dual licensing and tightly coupled with Rhomobile Inc.</li>
<li><a href="http://www.forum.nokia.com/Technology_Topics/Web_Technologies/Web_Runtime/">Nokia Web-runtime</a>: Nokia S60 and some other Symbian based phones. <strong>Pluses: </strong>Professional, good documentation. <strong>Minuses: </strong>Not open source, impossible to extend, Nokia has little interest to make this cross-platform, Nokia doesn&#8217;t like updating old models and web-runtime is useable only in the latest S60 5th edition models.</li>
<li>Palm Pre supports web applications natively. However Palm Pre application business is still taking a shape.</li>
</ul>
<p>All these wrap the browser component (WebKit) and provide some extra Javascript APIs when your web pages as executed under the application mode.</p>
<ul>
<li>Locationing</li>
<li>Contacts</li>
<li>SMS</li>
<li>Client-side database</li>
<li>and so on&#8230;</li>
</ul>
<p>Rhomobile has little different use cases  from the rest of the bunch as it provides client-side programming using Ruby and less focuses on Javascript/web applications.</p>
<h2>Payments and in-application purchases</h2>
<p>There are four major way to do mobile payments &#8220;inside&#8221; the application for bought content and subscriptions. The price tag on the application itself is left out on this discussion as the application stores themselves take care of it.</p>
<ul>
<li>Credit card</li>
<li>SMS</li>
<li>App Store payment (thus far Apple only)</li>
<li>Direct operator payments &#8211; you have a service provider (Bango) which can directly charge items to the operator phone bill based on handset identification.</li>
</ul>
<p>App Store payment is the most attractive as it provides the best end user experience.  It allows you to use App Store payment mechanism inside the application. It is safe and no need to hassle with external payment providers. However, App Store payment can be used only for content consumed directly inside the application. You cannot use it e.g. for ordering a pizza. I think this might be related to recent EU legislation forbidding SMS payments for services not consumed in the phone itself.</p>
<p>SMS payment is ok for little payments. Operators take big cut of the revenue, generally 30% &#8211; 70% depending on the country. Short code fees usually start from 500€ set-up fee + 500€ / month. SMS cannot be often send as a background, but the user is presented the normal SMS editor which reduces the user experience somehow.</p>
<p>For credit card payments there exists several providers. Credit card has the cheapest entry fees, but the downside is that the user needs to have the credit card. This excludes teenager audience.</p>
<p>Direct operator payments are not very well supported yet globally. Most western operators support them. The operator also takes a big share and the fixed fee is pretty high.</p>
<p>My favorite payment provider thus far is<a href="http://www.bango.com"> Bango</a> which provides credit card payment starting 9€ / mo. and scales up to worldwide SMS payments which cost few grannies per month.</p>
<p>In most cases, the payment experience will not be smooth. You need to open the phone main browser on the payment provider page to do the payment. This usually will close your own application. Rarely you can do the payment inside the application <em>and</em> support multiple platforms. After doing the payment most platforms allow you to close the browse and reopen your application using a special URL handler.</p>
<p><a href="http://en.wikipedia.org/wiki/Mobile_payment">Wikipedia mobile payments</a> page is also useful.</p>
<h2>Image upload</h2>
<p>&lt;input type=&#8221;file&#8221;&gt; won&#8217;t work on iPhone and some other platforms  as those don&#8217;t have user browsable file system. Also the file dialog usually doens&#8217;t have image preview making it useless.</p>
<p>Phonegap has a branch which supports images picking using iPhone&#8217;s own gallery browser.</p>
<p>In any case, there is not yet cross-platform solution for this.</p>
<h2>Future prospects</h2>
<p>In some time-frame we will get rid of the need to wrap HTML applications natively as the web browser applications will support all HTML5 features without extensions and probably have some proprietary extensions for mobile specific features like SMS. We already have had some taste for this:</p>
<ul>
<li>The first taste of this is <a href="http://hacks.mozilla.org/2009/06/geolocation/">Mozilla&#8217;s Fennec mobile browser which has locationing support</a>.</li>
<li>iPhone&#8217;s Safari already supports <a href="http://developer.apple.com/safari/library/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/Introduction/Introduction.html">client-side storage</a> and <a href="http://girliemac.com/blog/2009/01/23/webkit-comparison-on-css3/">CSS3</a>.</li>
<li>All phones have support for dial-in links. The format of the link may vary. <a href="http://deviceatlas.com/">DeviceAtlas</a> is good place to hunt for this information.</li>
<li>Nokia browser supports send SMS links</li>
<li>Nokia browser supports downloadable map markers (to the map application of the phone itself)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2009/09/30/cross-platform-mobile-application-development-and-payment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to encode h264 video files for Nokia Series 60 standalone playback</title>
		<link>http://blog.mfabrik.com/2008/09/23/how-to-encode-h264-video-files-for-nokia-series-60-standalone-playback/</link>
		<comments>http://blog.mfabrik.com/2008/09/23/how-to-encode-h264-video-files-for-nokia-series-60-standalone-playback/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 23:27:32 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[series 60]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[aac]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[h264]]></category>
		<category><![CDATA[libfaac]]></category>
		<category><![CDATA[libx264]]></category>
		<category><![CDATA[movie]]></category>
		<category><![CDATA[n95]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[x264]]></category>

		<guid isPermaLink="false">http://blog.redinnovation.com/?p=118</guid>
		<description><![CDATA[Bored with Spiderman 3 which came with your Nokia N95 8 GB? This guide shortly tells how to get movies into your N95 on Ubuntu Linux using ffmpeg video encoder. The aim is to encode video suitable for playback from Nokia N-series (N95, N78, others) mobile phone memory card. We use h264 + AAC codecs [...]]]></description>
			<content:encoded><![CDATA[<p>Bored with Spiderman 3 which came with your Nokia N95 8 GB? This guide shortly tells how to get movies into your N95 on Ubuntu Linux using <a href="http://ffmpeg.mplayerhq.hu/">ffmpeg</a> video encoder. The aim is to encode video suitable for playback from Nokia N-series (N95, N78, others) mobile phone memory card. We use <a href="http://en.wikipedia.org/wiki/H.264">h264</a> + AAC codecs which provides the best quality/compression rate for Nokia phones currently.</p>
<p>Ubuntu does not distribute proprietary codes. First thing you need to do is to <a href="https://wiki.ubuntu.com/ffmpeg">rebuild ffmpeg</a>.  Since Ubuntu 8.04 Hardy Heron ships with ffmpeg from 2007, which is aeons old in video codec years, <strong>you need to build libx264 and ffmpeg from SVN sources</strong>. <a href="http://ubuntuforums.org/showthread.php?t=786095&amp;highlight=libx264">Here are detailed, valid, instructions</a>. Note that FFMPEG trunk is not currently stable (September 2008), so <a href="http://ffmpeg.mplayerhq.hu/">you need to use revision 15261</a> which needs <a href="http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-September/053527.html">this little patch</a>. Indeed, this is a very difficult month to start your career in the dark world of video encoders.</p>
<p>To make it legal and support open source codec development,  please <a href="http://blog.canonical.com/?p=37">pay for your codecs</a>.</p>
<p>Then we use this guide by <a href="http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/">Robert Swain</a>. We have a tiny sub 2,4&#8243; screen, we do not care about the quality and do one pass encoding. By empirical research, I have found that the following MPEG-4 profile parameters are compatible with N95 8 GB and provide the optimal result. You can vary video and audio bitrate depending on your taste.</p>
<p>Here is a script which recursivelu encodes all detected video files suitable for mobile format:</p>
<pre>#!/bin/sh
#
# Optimal movie encoding for Nokia N-series mobile phones
#
# Copyright 2008 Red Innovation Ltd.
#
# Say hi if you find this useful.
# We do some professional mobile video publishing, so if you
# need a helping hand please call us.
#
# Usage: Run encode.sh in any folder and all video files are recursively converted to mobile phone suitable format
#
# Note: We expect all the source material be in 16:9 aspect ration
#
# Also see http://www.nseries.com/index.html#l=support,search,faq,general,video%20encoding,53848
#

VIDEO_BITRATE=300k

AUDIO_BITRATE=72k

# Assume locally build ffmpeg + x264 in /usr/local/bin
# http://ubuntuforums.org/showthread.php?t=786095
export LD_LIBRARY_PATH=/usr/local/lib

# Search all source AVI, MPG and WMV video files
# Place all encoded files to the same folder with the source, with added .mp4 extension
find . -iname "*.avi" -or -iname "*.wmv" -or -iname "*.mpg" | while read src ; do
        srcfile=`basename "$src"`
	srcfolder=`dirname "$src"`
	dstfile="$srcfolder"/"$srcfile".mp4

	# The magical string!
	# Size and cropping is for 16:9 source material, so that 320:240 display will have black bars.
	# Fex pixels off... note that h264 sizes must be multiplies of 16, use 256x144 for streaming
	# N95 RealMedia player does not seem to respect MPEG-4 embedded aspect ration info.
	/usr/local/bin/ffmpeg -y -i "$srcfile" -acodec libfaac -ab $AUDIO_BITRATE -s 320x176 -aspect 16:9 -vcodec libx264 -b $VIDEO_BITRATE -qcomp 0.6 -qmin 16 -qmax 51 -qdiff 4 -flags +loop -cmp +chroma -subq 7 -refs 6 -g 250 -keyint_min 25 -rc_eq 'blurCplx^(1-qComp)' -sc_threshold 40 -me_range 12 -i_qfactor 0.71 -directpred 3 "$dstfile"

done</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2008/09/23/how-to-encode-h264-video-files-for-nokia-series-60-standalone-playback/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Introducing Python for Series 60 Community Edition</title>
		<link>http://blog.mfabrik.com/2008/09/01/introducing-python-for-series-60-community-edition/</link>
		<comments>http://blog.mfabrik.com/2008/09/01/introducing-python-for-series-60-community-edition/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 09:58:00 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[mobile]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[series 60]]></category>
		<category><![CDATA[symbian]]></category>
		<category><![CDATA[bazaar]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[hybrid development]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[pys60community]]></category>
		<category><![CDATA[python for series 60]]></category>

		<guid isPermaLink="false">http://blog.redinnovation.com/?p=75</guid>
		<description><![CDATA[This blog post will introduce Python for Series 60 Community Edition. Pythor for Series 60 Community Edition is a new open source effort to push Python for high quality mobile phone development. It aims to provide a maintained software stack for creating real mobile applications. The codebase is derived from the original Nokia&#8217;s Python for Series 60 [...]]]></description>
			<content:encoded><![CDATA[<p class="western">This blog post will introduce <a href="https://launchpad.net/pys60community">Python for Series 60 Community Edition</a>.</p>
<p>Pythor for Series 60 Community Edition is a new open source effort to push Python for high quality mobile phone development. It aims to provide a maintained software stack for creating real mobile applications. The codebase is derived from the original Nokia&#8217;s Python for Series 60 codebase, but has been refactored for better integration with third party extensions and patches and commercial grade application deployment.</p>
<h2 class="western">Motivation</h2>
<h3 class="western">Building and distribution</h3>
<p style="margin-bottom: 0cm;">It is difficult to distribute Python for Series 60 applications to the end user with the current Nokia&#8217;s PyS60 distribution. You probably want to modify or extend PyS60 in some way. Since the build chain and deployment model is not designed for changes this would collide with the other PyS60 installations. Symbian Platform security prevents installing conflicting binaries. Thus, one can effectively have one Nokia PyS60 application in the phone once.</p>
<p style="margin-bottom: 0cm;">There are other problems: Nokia PyS60 distribution has UIDs in Nokia protected range. Embedded SIS file cause extra installation dialog and an application manager uninstall entry. Trimming down Nokia PyS60 distribution is a little bit difficult.</p>
<p style="margin-bottom: 0cm;">To overcome all these issues we created a build chain which spits out monolithic PyS60 distributions. We build only one DLL whose name and UID can be decided. Also the build chain is <a href="http://code.google.com/p/scons-for-symbian/">Scons for Symbian</a>, scrapping the obscure, inflexible and difficult to understand Symbian ABLD once for all.</p>
<h3 class="western">Evolution towards higher quality</h3>
<p>Currently there is no centralized authority to co-ordinate PyS60 open source developers and maintain the repository of all the extension and patches. This effectively prevents the biggest benefit of open source: open innovation and gradual evolution of the product. It would be very nice having all those third party extensions, now scattered around the internet, under one maintained source &#8211; making PyS60 more functional out of the box.</p>
<p>The community maintained repositories do not have the same restrictions as ones managed by a big public corporations. It is not a probable target of a trigger happy lawyer action and ungentlemanly competition: the discussion and plans can be public and due dilugence check of the code more relax.</p>
<p>We started the project in the Launchpad. Launchpad provide a distributed version control system (Bazaar) which streamlines the process of integrating third party commits and patches. This should encourage contribution. The standard build system makes it easy to roll out applications and extensions from bare  C++ source up to the end user distributable SIS files.</p>
<p>It is yet to see what kind of co-operation possibilities between the community and Nokia exists. In the future, it should be possible to cherry pick patches from PyS60 community edition to Nokia&#8217;s own version.</p>
<h3 class="western">Showing the commercial potential of PyS60 in the mobile application development</h3>
<p>On Python you can write native Series 60 applications with very little effort compared to hardcore C++ banging, lowering the barries to enter the mobile application development.</p>
<p>We do not deny that we have an extrinct motivation called money. Of course we have also instrict motivations like thinking Python is the best programming language in the world and we all want to be most respectable gurus in it. Gurus need to eat still, though. We hope that our effort does not go unnoticed in the mobile application development world and good subcontract offers fill our inboxes.</p>
<p>Also, there is the John McClane effect. Unless we had done it, no one had. Somebody has to save the world, despite the hangover.</p>
<h3 class="western">It runs on Linux</h3>
<p>Since we are no longer dependend on .BAT/Perl/Windows hindered ABLD buildchain, we can (almost) crosscompile and build native Symbian binaries in Linux and  Python applications. All good hackers use Linux &#8211; but currently there are still kinks and you need to use WINE for some parts &#8211; all sane Symbian developers are tied to Windows based tools for now and so are these instructions.</p>
<h2 class="western">Prerequisitements</h2>
<p>You need all this stuff to get things running.</p>
<h3 class="western">Install Bazaar</h3>
<p style="margin-bottom: 0cm;">You need Bazaar distributed version control client. We are not planning to have fixed releases for Python for Series 60 community edition any time soon. This is because 1) the most magic happens at a compiler level and we are providing a buildchain 2) we hope this fosters incoming patches.</p>
<ul>
<li>
<p style="margin-bottom: 0cm;">Go to 	<a href="http://bazaar-vcs.org/Download">http://bazaar-vcs.org/Download</a></p>
</li>
</ul>
<p style="margin-bottom: 0cm;">Why Bazaar?</p>
<ul>
<li>Distributed (patching made easy)</li>
<li>Works in Windows</li>
<li>User friendly</li>
<li>Integrates with Launcpad.</li>
</ul>
<h3 class="western">Install ActiveState Perl</h3>
<p style="margin-bottom: 0cm;">Series 60 SDK has ActiveState as a prerequisitement for running its installer.</p>
<p style="margin-bottom: 0cm;"><a href="http://www.activestate.com/Products/activeperl/index.mhtml">http://www.activestate.com/Products/activeperl/index.mhtml</a></p>
<h3 class="western">Install Series 60 SDK</h3>
<p style="margin-bottom: 0cm;"><strong>Use only Series 60 3.0 maintenance release</strong>. Other releases have SDK bugs preventing correct Python compilation.</p>
<p style="margin-bottom: 0cm;">Get the Windows installer from <a href="http://forum.nokia.com/">http://forum.nokia.com</a>. Forum Nokia Registration is required.</p>
<p style="margin-bottom: 0cm;">Please use the default installation location C:\Symbian\9.1\S603rd_MR.</p>
<h3 class="western">Install Carbide.c++ express</h3>
<p>Carbide.c++ comes with a Windows compiler to compile the emulator binaries. You need this only if you indend to develop and test your applications on Series 60 emulator.</p>
<p><a href="http://www.forum.nokia.com/info/sw.nokia.com/id/dbb8841d-832c-43a6-be13-f78119a2b4cb.html">http://www.forum.nokia.com/info/sw.nokia.com/id/dbb8841d-832c-43a6-be13-f78119a2b4cb.html</a></p>
<p style="margin-bottom: 0cm;">Forum Nokia Registration is required.</p>
<p style="margin-bottom: 0cm;">Use Software updater in Carbide.c++ to install PyDev, Python developer extensions for Eclipse.</p>
<p style="margin-bottom: 0cm;"><a href="http://pydev.sourceforge.net/">http://pydev.sourceforge.net/</a></p>
<h3 class="western">Install Python 2.5</h3>
<p style="margin-bottom: 0cm;">Scons build chain and our utility scripts use Python.</p>
<p style="margin-bottom: 0cm;"><a href="http://www.python.org/download/releases/2.5.2/">http://www.python.org/download/releases/2.5.2/</a></p>
<p style="margin-bottom: 0cm;">Use the installer EXE and the default installation location <a href="file:///C:/Python25">C:\Python25</a>. If you want to use advanced Bluetooth shell (PUTools) you also need <a href="http://wxpython.org/download.php#binaries">wxPython </a>and <a href="http://sourceforge.net/project/showfiles.php?group_id=46487&amp;package_id=39324">pyserial </a>packages.</p>
<h3 class="western">Install SCons</h3>
<p>Python for Series 60 build script are based on SCons. It is a build system using Python as a recipe langauge.</p>
<p style="margin-bottom: 0cm;"><a href="http://sourceforge.net/project/showfiles.php?group_id=30337">http://sourceforge.net/project/showfiles.php?group_id=30337</a></p>
<h3 style="margin-bottom: 0cm;">Install Subversion</h3>
<p>Install Subversion client for Windows. This is needed for checking out Scons for Series 60.</p>
<p><a href="http://www.collab.net/downloads/subversion/">http://www.collab.net/downloads/subversion/</a></p>
<p>Registration to CollabNet is needed to download Windows binaries.</p>
<h3 style="margin-bottom: 0cm;">Scons for Series 60</h3>
<p>SCons for Series 60 is available as a separate project. <a id="Introduction">SCons for Symbian is a build toolchain intended as a replacement for Perl and MMP files used on regular Symbian projects. SCons for Symbian is not limited to build Python &#8211; You can use it to build any Series 60 C++ application.<br />
</a></p>
<p style="margin-bottom: 0cm;"><a href="http://code.google.com/p/scons-for-symbian/">http://code.google.com/p/scons-for-symbian/</a></p>
<p style="margin-bottom: 0cm;">This is later checked out during to the environment construction, so you do not need to install it now.</p>
<p style="margin-bottom: 0cm;">We have included a workaround for <a href="http://www.scons.org/wiki/LongCmdLinesOnWin32">a problem with limited command line length on Windows</a>.</p>
<h3 style="margin-bottom: 0cm;">Included tools</h3>
<p>The following tools are included in the trunk tools folder:</p>
<ul>
<li><a href="http://www.stunnel.org/download/binaries.html">OpenSSL</a></li>
<li><a href="http://www.nbl.fi/~nbl928/ensymble.html">Ensymble</a></li>
<li><a href="http://www.newlc.com/SIS-Info-tool-for-Symbian-9-1-SIS.html">SISInfo</a></li>
<li><a href="http://nedbatchelder.com/code/cog/">COG</a></li>
</ul>
<p>These tools are not licensed under Apache license. Some of them are under GPL license. However, we believe that distribution them is ok, since this falls under GPL&#8217;s <a href="http://www.gnu.org/licenses/gpl-faq.html#MereAggregation">mere aggregation</a> clause. However if you indent to distribute commercial applications built from PyS60 Community codebase, make sure that you understand the set of different licenses involved.</p>
<h2 class="western">Set up build environment</h2>
<p>Ensure that Bazaar is properly in your Windows path.</p>
<h3 class="western">Create a workspace folder</h3>
<p>First you need to subst (make a folder appear as a driver letter) in Windows. Open command line. Go to SDK folder.</p>
<pre>C:\Symbian\9.1&gt;subst t: S60_3rd_MR</pre>
<pre>T:</pre>
<pre>mkdir workspace</pre>
<p>Now choose this folder as a workspace folder in Carbide C++ and create an Empty Symbian C++ project called ”pys60” there.</p>
<p><a href="http://blog.redinnovation.com/wp-content/uploads/2008/09/shot8.png"><img class="alignnone size-medium wp-image-98" title="shot8" src="http://blog.redinnovation.com/wp-content/uploads/2008/09/shot8-300x166.png" alt="" width="300" height="166" /></a></p>
<h3 class="western">Checkout PyS60 community edition</h3>
<p>The go to this folder</p>
<pre>T:
cd workspace\pys60
<tt>bzr branch lp:pys60community</tt>
cd <tt>pys60community\</tt>src</pre>
<h3 class="western">Preparing the build</h3>
<p><strong>This needs to be done only once.</strong></p>
<p>We need to pacth the existing Series 60 SDK headers which have some bugs.</p>
<pre>T:
cd \epoc32\include
\workspace\pys60\pys60community\src\tools\patch.exe -p1 &lt; \workspace\pys60\pys60community\src\pys60-fix-3rded-sdk.diff</pre>
<p>EPOCROOT must be set for some Series 60 SDK tools to work. We point to T: drive root.</p>
<pre>T:
cd workspace\pys60\src
set EPOCROOT=\</pre>
<p>As we still have some dependencies to the legacy system, one needs to configure the build system using PyS60 setup. This will generate some files and defines for Series 60 versio 3.0. <strong></strong></p>
<pre>c:\Python25\python.exe setup.py configure 30</pre>
<p>Do <strong>not </strong>run bldmake bldfiles.</p>
<p>You need to convert legacy MMP build files to SCons based. First we need to possibly fix up PATH, since Carbide C++ might break it.</p>
<pre>set PATH=c:\program files\bazaar;c:\program files\CSL Arm Toolchain\arm-none-symbian elf\bin;c:\program files\CSL Arm Toolchain\libexec\gcc\arm-none-symbianelf\3.4.3;C:\program files\CSL Arm Toolchain\bin;t:\epoc32\gcc\bin;t:\epoc32\tools;t:\epo c32\tools;C:\program files\CSL Arm Toolchain\bin;C:\Program Files\Common Files\Symbian\Tools;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem

c:\Python25\python tools\mmp2scons.py
ext\\calendar\\calendar.mmp:60:7: warning: no newline at end of file
Creating recipe ext\miso\build.py
Creating recipe ext\socket\build.py
...
Done!</pre>
<p>Checkout SCons for Symbian. We assume it lives in src tree.</p>
<pre>"c:\Program Files\CollabNet Subversion"\svn checkout http://scons-for-symbian.googlecode.com/svn/trunk/ scons_symbian</pre>
<h2>Running the build</h2>
<p>Now we can execute the actual Python build script. This will create one monolithic emulator DLL which has almost all the PyS60 extensions built in &#8211; some extensions need manual building, since they rely on headers not found from standard Series 60 SDK.  You might need to reset PATH to default to Carbide C++ after the previous mmp2cons step by reopening the console window.</p>
<pre>c:\Python25\Scripts\scons</pre>
<p>You should see the following output. As you can see, UIDs are being allocated dynamically as instructed in Scontruct UID_BASE argument.</p>
<pre>scons: Reading SConscript files ...
EPOCROOT=\
Info: SIS creation disabled
Building winscw udeb
Defines []
Getting dependencies for e32socket.pyd
Getting dependencies for _topwindow.pyd
Getting dependencies for zlib.pyd
Getting dependencies for _locationacq.pyd
Getting dependencies for _location.pyd
Getting dependencies for _graphics.pyd
Getting dependencies for _sysinfo.pyd
Getting dependencies for Python222Config.lib
Getting dependencies for Python222.dll
Getting dependencies for Python_appui.dll
Allocated UID:0xE1000000
Getting dependencies for Python.exe
Allocated UID:0xE1000001
Getting dependencies for Python_launcher.exe
Allocated UID:0xE1000002
scons: done reading SConscript files.
scons: Building targets ...

...

scons: done building targets.</pre>
<p>Now you should be able to start a custom built Python shell in the emulator. You should see the following applications in Installation menu: helloworld, btconsole and filebrowser. Try launch helloworld and if it opens a pop up dialog the build has been succesful.</p>
<h3 class="western">Building a SIS file for mobile phones</h3>
<p>To build a target distribution type:</p>
<pre>scons release=urel compiler=gcce dosis=true</pre>
<p>This should yield to the result:</p>
<pre>scons: Building targets ...
ensymble(["MyPythonForSymbian.sis"], [])
scons: warning: no package version given, using 1.0.0
scons: warning: no certificate given, using insecure built-in one
scons: done building targets.</pre>
<p>If you want to build a SIS file signed with your developer certificate:</p>
<pre>c:\python25\scripts\scons compiler=gcce release=urel dosis=true simplesis={'--privkey':'C:\\Certificates\\PrivateKeyNoPassphrase.pem','--cert':'C:\\Certificates\\MyApp.cer','--passphrase':''}</pre>
<p><strong>For now, installing the SIS file works only for C drive  &#8211; we&#8217;ll fix this little issue soon. </strong></p>
<p>If you do not have a symbiansigned.com developer certificate you can sign the SIS file online for one phone (one IMEI code).</p>
<ol>
<li>Go to symbiansigned.com</li>
<li>Register</li>
<li>Enter your IMEI and upload the SIS file to OpenSigned Beta</li>
</ol>
<h3 class="western">Building your own application</h3>
<p>The purpose of this project is to make rolling out your PyS60 applications possible &#8211; so here we go. Currently we make a quite bad assumption that all the application live in the same source tree with PyS60 community edition due to problems with absolute file paths with Symbian build tools &#8211; we will figure out a long term solution for this later.</p>
<p>PyS60 applications are stub Symbian executables which boostrap Python virtual machine and start the Python code execution. Executables are linked against a custom PyS60 DLL and they are <a href="http://www.forum.nokia.com/main/platforms/s60/capability_solutions.html">restricted by capabilities given to the EXE file</a>.</p>
<p>PyS60 applications live in <a href="http://bazaar.launchpad.net/~pys60communityteam/pys60community/trunk/files/43?file_id=applications-20080822175746-epuletnyxaku7748-1">applications source tree</a>. The source tree comes with Bluetooth console, Hello world and File browser sample applications.</p>
<p>Scons build scripts takes as <em>applications</em> parameter a comma separated list which applications are included in the build.</p>
<pre>scons builtin=all applications=helloworld,filebrowser</pre>
<p>Applications consist of</p>
<ul>
<li><em>default.py</em> boostrapper module</li>
<li><em>icon.svg</em> SVGT icon</li>
<li>Any number of Python modules (.py) files</li>
</ul>
<p>See applications\helloworld folder to examine what files are needed to build an application. All application Python modules go to the private application folder (<em>/private/myapplicationuid</em>). Default.py must boostrap PYTHONPATH (sys.path) for this folder &#8211; PYTHONPATH defines where Python interpreter looks for the code. Application UIDs can be chosen manually or they are picked automatically by Scons for the unprotected test range.</p>
<p>Note that Python Script Shell application is handled out of this flow due to its legacy heritage.</p>
<h3 class="western">Adding in your own extension</h3>
<p>If you have development an PyS60 extension you can drop in into the buildchain easily. Each extension is defined in <a href="http://bazaar.launchpad.net/~pys60communityteam/pys60community/trunk/files/43?file_id=ext-20080419133958-052d36l74a4r8z3r-25">ext</a><em> </em>subfolder. It consists of necessary CPP, H and Python files. The building structure is defined in <em>build.py </em>using SConstruct command <em>PyS60Extension</em>().</p>
<p>Build.py files can be automatically generated from legacy code using mmp2scons.py converter.</p>
<ul>
<li>Drop files to <em>ext/yourmodule</em> folder.</li>
</ul>
<ul>
<li>Run MMP -&gt; build.py. This needs GCC or valid C compiler for preprocssing MMP files.</li>
</ul>
<pre>c:\Python25\python.exe tools\mmp2scons.py

ext\calendar\calendar.mmp:60:7: warning: no newline at end of file
ext\progressnotes\progressnotes.mmp:38:7: warning: no newline at end of file
ext\uikludges\uikludges.mmp:37:7: warning: no newline at end of file
Creating recipe ext\\socket\build.py
Creating recipe ext\\glcanvas\build.py
Creating recipe ext\\graphics\build.py
...
...Done!</pre>
<ul>
<li>Recompile. New ext modules are automatically picked as built in modules.</li>
</ul>
<pre>c:\Python25\scripts\scons</pre>
<ul>
<li>Now test importing your module in the script shell in emulator</li>
</ul>
<pre>&gt;&gt; import applicationmanager</pre>
<p>If your extension is using thread local storage (Dll::Tls()) you might need to figure out how to workaround with it. See socket  module for example. You may also need to play around with the init function of the Python extension &#8211; it must be init + module name.</p>
<h2>Developing on target</h2>
<p>If you want to develop your application on a mobile phone, you do not need to go through the full development cycle for every little change. It is possible to update Python files on a phone without SIS installation. You can either automatically synchronize changed files from your PC to Phone (the example below) or you can edit files in-place on the Phone either using PCSuite or <a href="http://telexy.com/Products/Products.aspx">Series 60 SMB server.</a></p>
<p>Here are short instructions how to update files using <a href="http://people.csail.mit.edu/kapu/symbian/python.html">PUTools</a> console (btconsole). PUTools is wxPython based remote Python shell which allows you to run Python console commands over a Bluetooth connection from your PC. PUTools also has a file syncrhonization feature &#8211; after editing source code on the PC changes are reflected automatically to the phone.</p>
<ol>
<li>Put application Python files to a shared folder on the phone e.g. the memory card root (E:\). Add startup.py to E:\ which will modify sys.path to include your files. <a href="http://blog.redinnovation.com/wp-content/uploads/2008/08/shot1.png"><img class="alignnone size-medium wp-image-88" title="shot1" src="http://blog.redinnovation.com/wp-content/uploads/2008/08/shot1-300x165.png" alt="" width="300" height="165" /></a></li>
<li>Add incoming Bluetooth serial port on windows (Control panel -&gt; Bluetooth -&gt; COM ports)<a href="http://blog.redinnovation.com/wp-content/uploads/2008/08/shot2.png"><img class="alignnone size-medium wp-image-89" title="shot2" src="http://blog.redinnovation.com/wp-content/uploads/2008/08/shot2-233x300.png" alt="" width="233" height="300" /></a></li>
<li>Start Bluetooth shell on the computer (tools\putools\pcfiles\console.bat)</li>
<pre>T:\workspace\pys60\pys60community\src\tools\putools\pcfiles&gt;c:\python25\python.exe putools.py com5</pre>
<li>Start Bluetooth shell on the phone (btconsole icon)<br />
<a href="http://blog.redinnovation.com/wp-content/uploads/2008/08/screenshot00022.jpg"><img class="alignnone size-medium wp-image-93" title="screenshot00022" src="http://blog.redinnovation.com/wp-content/uploads/2008/08/screenshot00022-225x300.jpg" alt="" width="225" height="300" /></a></li>
<li>Edit PUTools <a href="http://bazaar.launchpad.net/~pys60communityteam/pys60community/trunk/annotate/43?file_id=sync.config-20080824162707-luu4dnx2ap3ntxyd-28">sync.config file</a> on PC and run sync command on Bluetooth terminal to update changes made on PC to phone<br />
<a href="http://blog.redinnovation.com/wp-content/uploads/2008/08/shot3.png"><img class="alignnone size-medium wp-image-94" title="shot3" src="http://blog.redinnovation.com/wp-content/uploads/2008/08/shot3-300x210.png" alt="" width="300" height="210" /></a></li>
<li>Run application launcher in the console (depends on the application structure how it is best to bootstrap in the shell):</li>
</ol>
<pre>&gt;&gt; import filebrowser
&gt;&gt; filebrowser.FileBrowser.run()</pre>
<h2>Release notes</h2>
<p>Here is the short summary of differences with the current PyS60 community edition and one available from Nokia. This information is also available in divergence.txt file in the source folder.</p>
<pre>2008-08-29 Mikko Ohtamaa &lt;mikko@redinnovation.com&gt;

    * PyS60 general

        New build chain and static config generation

        Migration tool for MMP -&gt; Scons based extensions

        Added several tools included in the core distribution: sisinfo, ensymble, cog, patch

        Patched py2sis tool

        Contains extension: applicationmanager

        Contains extension: uikludges

        Contains extension: progressnotes

        Contains extension: miso

        Contains application: Bluetooth shell

        Contains example applications: filebrowser, helloworld

        Changed Bluetooth console bootstrap to e:\startup.py         

2008-08-15 Antti Haapala &lt;antti@redinnovation.com&gt;

    * e32socketmodule.cpp:

        socket.access_points has more information, two new
        fields is given per access point: isptype and bearertype,
        whose values are integers corresponding to values returned
        by CApSelect::Type and CApSelect::BearerType respectively.
        No symbolic constants are yet exported.

    * appuifwmodule.cpp:

        multi_select_list has a new argument, selected, which defaults
        to None. Given a list of integers, the items with the given indices
        are initially selected.</pre>
<h2 class="western">Conclusion</h2>
<p>We hope this helps you to get started with PyS60 community edition. It&#8217;s still a bit complicated, since setting up the build environment on Windows is a such a pain. In the future, when the Linux based build system is reading settings up the development environment should be easier &#8211; all those boring steps happen automatically.</p>
<p>This might be still too difficult for some of the readers, since a lot of prerequirement work must be done before anything useful can be done. Feel free to comment the article in this blog, but we hope that you use <a href="https://answers.launchpad.net/pys60community">Answers section in Launchpad </a>to ask help and technical questions related to PyS60 community edition.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2008/09/01/introducing-python-for-series-60-community-edition/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>PyS60 application release build toolchain</title>
		<link>http://blog.mfabrik.com/2008/04/19/pys60-application-release-build-toolchain/</link>
		<comments>http://blog.mfabrik.com/2008/04/19/pys60-application-release-build-toolchain/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 23:08:35 +0000</pubDate>
		<dc:creator>Mikko Ohtamaa</dc:creator>
				<category><![CDATA[mobile]]></category>
		<category><![CDATA[pys60]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[series 60]]></category>
		<category><![CDATA[symbian]]></category>
		<category><![CDATA[build process]]></category>
		<category><![CDATA[dll]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[native]]></category>
		<category><![CDATA[pkg]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[sis]]></category>
		<category><![CDATA[sisx]]></category>
		<category><![CDATA[toolchain]]></category>

		<guid isPermaLink="false">http://blog.redinnovation.com/2008/04/19/pys60-application-release-build-toolchain/</guid>
		<description><![CDATA[A common question for Python for Series 60 newcomers is how to build standalone Symbian applications from Python source code. We have been using Makefile based toolchain internally. I describe it in this picture, I didn&#8217;t bother to add thumbnail for the image, since it&#8217;s a 3400 pixels wide diagram. The diagram describes building a [...]]]></description>
			<content:encoded><![CDATA[<p>A common question for Python for Series 60 newcomers is how to build standalone Symbian applications from Python source code. We have been using Makefile based toolchain internally. I describe it in <a title="Python for Series 60 standalone application toolchain" href="http://blog.redinnovation.com/wp-content/uploads/2008/04/pys60-tool-chain.png">this picture,</a> I didn&#8217;t bother to add thumbnail for the image, since it&#8217;s a 3400 pixels wide diagram.</p>
<p>The diagram describes building a PyS60 application with some Python extensions (Symbian native C++) mixed in and bundling it all to one downloadable SIS file. The application will appear as any first class S60 application in the menu and the user does not know it&#8217;s running Python internally, besides bad installation experience (it challenges Microsoft installers with all those unnecessary yes/no questions), extra uninstaller entries and slow start-up time.</p>
<p>The biggest problems are caused by embedded SISs (SIS inside other SIS files) which are not treaded very wel by several Symbian parties.  In theory, it could be build one monolithic SIS, but you&#8217;d need to recompile PyS60 from scratch and patch UIDs inside it for your own UIDs received from symbiansigned.com. We are planning to explore SCons based build solution to address this problem, since Makefiles are a bit unflexible with tasks like PKG file and UID range generation.</p>
<p><a title="example-pkg.txt" href="http://blog.redinnovation.com/wp-content/uploads/2008/04/example-pkg.txt">Here is a PKG file example for final user distributable SIS file</a>.</p>
<p>Also, see <a href="http://code.google.com/p/uikludges">UIKludges project</a> for additional details for PKG files of Python extensions.</p>
<p>You need to have</p>
<ul>
<li>Ensymble tool</li>
<li>Series 60 SDK (contains some old GNU make)</li>
</ul>
<p>You need to master</p>
<ul>
<li>A build tool (make)</li>
<li>Symbian PKG file structure</li>
<li>Lots of different command line tools</li>
</ul>
<p>Pros</p>
<ul>
<li>It&#8217;s the best one we have for now</li>
</ul>
<p>Cons</p>
<ul>
<li>Symbian signing and certification companies don&#8217;t understand embedded SIS files (all SIS files must be signed prior embedding) and may have hard time signing SIS files containing only an extension DLL for Pyton. Symbian Signed test criteria has been built only UI application based SIS files in the mind.</li>
<li>You cannot cook your own patched PyS60 distribution without revamping some hardcoded UIDs and paths, since otherwise there are UID conflicts (EXE and DLL file UIDs are in Nokia&#8217;s protected range)</li>
<li>S60 installers askes extra confirmation for every embedded SIS file, even in the middle of the progress bar, so the user experience of installation is screwed up</li>
<li>There will extra uninstallation entry for every embedded SIS file in S60 application manager confusing the user</li>
<li><em>As you can see, most cons come from Symbian and Symbian signing limitations and have nothing to do with Python</em></li>
</ul>
<p>Ps. I would have put this thing to wiki.opensource.nokia.com, but their webmaster email address is non-functional and one cannot upload images to their Wiki.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mfabrik.com/2008/04/19/pys60-application-release-build-toolchain/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
