<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Coding for Nokia 770 using Python - Part 2</title>
	<link>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/</link>
	<description>The truth isn't in here...</description>
	<pubDate>Mon, 07 Jul 2008 10:41:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Mark M</title>
		<link>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-53474</link>
		<author>Mark M</author>
		<pubDate>Fri, 03 Aug 2007 13:32:25 +0000</pubDate>
		<guid>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-53474</guid>
		<description>In answer to the problem experienced by Antonio where he could see a file, but not execute it. I have seen similar problems on Debian/Ubuntu Linux when trying to execute a script that contain Windows line ending (CR/LF) instead of Linux style one (LF).

A decent file copy program (WinSCP) will convert Windows to Unix as it copies if you instruct it to copy as text. If you copy as binary, you will get this problem.

Also explains why using Nano to recreate the file sorted the problem out.

Sorry I did not find this blog last year, but maybe it will help someone in future.</description>
		<content:encoded><![CDATA[<p>In answer to the problem experienced by Antonio where he could see a file, but not execute it. I have seen similar problems on Debian/Ubuntu Linux when trying to execute a script that contain Windows line ending (CR/LF) instead of Linux style one (LF).</p>
<p>A decent file copy program (WinSCP) will convert Windows to Unix as it copies if you instruct it to copy as text. If you copy as binary, you will get this problem.</p>
<p>Also explains why using Nano to recreate the file sorted the problem out.</p>
<p>Sorry I did not find this blog last year, but maybe it will help someone in future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pointer</title>
		<link>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-28901</link>
		<author>pointer</author>
		<pubDate>Fri, 23 Feb 2007 09:25:20 +0000</pubDate>
		<guid>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-28901</guid>
		<description>why don't continue this tutorial? i really benefir a lot. thank you.</description>
		<content:encoded><![CDATA[<p>why don&#8217;t continue this tutorial? i really benefir a lot. thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teemu</title>
		<link>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-228</link>
		<author>Teemu</author>
		<pubDate>Thu, 02 Mar 2006 09:12:01 +0000</pubDate>
		<guid>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-228</guid>
		<description>Hi vk,

The actual Python scripts does not take practically any space on the device. So installing the applications doesn't take much space from the devices internal memory. Of course the Python runtime package is quite large.

When the Python app is started, the interpreter uses the runtime memory, but I can't tell how much. I haven't tested running multiple Python apps in the same time. But I'd guess that it shouldn't be much more than with other apps. Depends probably of the Python runtime implementation. Does anyone have better information?</description>
		<content:encoded><![CDATA[<p>Hi vk,</p>
<p>The actual Python scripts does not take practically any space on the device. So installing the applications doesn&#8217;t take much space from the devices internal memory. Of course the Python runtime package is quite large.</p>
<p>When the Python app is started, the interpreter uses the runtime memory, but I can&#8217;t tell how much. I haven&#8217;t tested running multiple Python apps in the same time. But I&#8217;d guess that it shouldn&#8217;t be much more than with other apps. Depends probably of the Python runtime implementation. Does anyone have better information?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vk</title>
		<link>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-227</link>
		<author>vk</author>
		<pubDate>Thu, 02 Mar 2006 07:40:34 +0000</pubDate>
		<guid>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-227</guid>
		<description>Looks nice.

One question, though. Given that the 770 is very limited in memory, how large are Hildon programs written in Python? Could you think of running more than one of them simultaneously?</description>
		<content:encoded><![CDATA[<p>Looks nice.</p>
<p>One question, though. Given that the 770 is very limited in memory, how large are Hildon programs written in Python? Could you think of running more than one of them simultaneously?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teemu</title>
		<link>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-179</link>
		<author>Teemu</author>
		<pubDate>Fri, 17 Feb 2006 06:48:35 +0000</pubDate>
		<guid>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-179</guid>
		<description>Hi Comix,

Thanks, nice to hear that my tutorial has been useful. I also like coding Python much better that writing in C/C++. I like to do things simple. ;) And Python is much more easily approachable than C-programming.</description>
		<content:encoded><![CDATA[<p>Hi Comix,</p>
<p>Thanks, nice to hear that my tutorial has been useful. I also like coding Python much better that writing in C/C++. I like to do things simple. <img src='http://www.teemuharju.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> And Python is much more easily approachable than C-programming.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Comix</title>
		<link>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-178</link>
		<author>Comix</author>
		<pubDate>Thu, 16 Feb 2006 17:56:29 +0000</pubDate>
		<guid>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-178</guid>
		<description>VEEERY NICE TUTORIAL! :)
I've started to use python instead of C++ for my maemo applications once I saw this tutorial!

Thanks again! :-D</description>
		<content:encoded><![CDATA[<p>VEEERY NICE TUTORIAL! <img src='http://www.teemuharju.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I&#8217;ve started to use python instead of C++ for my maemo applications once I saw this tutorial!</p>
<p>Thanks again! <img src='http://www.teemuharju.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teemu&#8217;s Blog &#187; Blog Archive &#187; Coding for Nokia 770 using Python - Misc Notes</title>
		<link>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-169</link>
		<author>Teemu&#8217;s Blog &#187; Blog Archive &#187; Coding for Nokia 770 using Python - Misc Notes</author>
		<pubDate>Tue, 14 Feb 2006 11:54:32 +0000</pubDate>
		<guid>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-169</guid>
		<description>[...] Also big thanks to Martin N for giving a nice example on how to make the python script fully hildonized by adding it to the start menu and also how to get the icon to the task list while your app is running. Here&#8217;s what he wrote&#8230;  Hi Teemu, I’ve found a solution in the Maemo SDK Tutorial: [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Also big thanks to Martin N for giving a nice example on how to make the python script fully hildonized by adding it to the start menu and also how to get the icon to the task list while your app is running. Here&#8217;s what he wrote&#8230;  Hi Teemu, I’ve found a solution in the Maemo SDK Tutorial: [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teemu</title>
		<link>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-163</link>
		<author>Teemu</author>
		<pubDate>Tue, 14 Feb 2006 06:30:32 +0000</pubDate>
		<guid>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-163</guid>
		<description>Nice.. big thanks Martin. I'll make a post about it so people don't miss this.</description>
		<content:encoded><![CDATA[<p>Nice.. big thanks Martin. I&#8217;ll make a post about it so people don&#8217;t miss this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin N.</title>
		<link>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-162</link>
		<author>Martin N.</author>
		<pubDate>Tue, 14 Feb 2006 01:02:21 +0000</pubDate>
		<guid>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-162</guid>
		<description>Hi Teemu, I've found a solution in the Maemo SDK Tutorial: http://www.maemo.org/platform/docs/tutorials/Maemo_tutorial.html#app-to-task-navigator-menu

Based on this I created the following two files for your example:

uitest.desktop:

[Desktop Entry]
Encoding=UTF-8
Version=0.0.1
Type=Application
Name=UITest
Exec=/home/user/python/uitest.py
X-Osso-Service=example.uitest
Icon=qgn_list_gene_default_app

example.uitest.service:

[D-BUS Service]
Name=example.uitest
Exec=/home/user/python/uitest.py

...and created those links:

ln -s /home/user/python/uitest.desktop /var/lib/install/etc/others-menu/extra_applications/uitest.desktop

ln -s /home/user/python/example.uitest.service /var/lib/install/usr/lib/dbus-1.0/services/example.uitest.service

Actually you don't need the desktop file to have an icon in the task list, but I think it makes the hildonization complete. ;)</description>
		<content:encoded><![CDATA[<p>Hi Teemu, I&#8217;ve found a solution in the Maemo SDK Tutorial: <a href="http://www.maemo.org/platform/docs/tutorials/Maemo_tutorial.html#app-to-task-navigator-menu" rel="nofollow">http://www.maemo.org/platform/docs/tutorials/Maemo_tutorial.html#app-to-task-navigator-menu</a></p>
<p>Based on this I created the following two files for your example:</p>
<p>uitest.desktop:</p>
<p>[Desktop Entry]<br />
Encoding=UTF-8<br />
Version=0.0.1<br />
Type=Application<br />
Name=UITest<br />
Exec=/home/user/python/uitest.py<br />
X-Osso-Service=example.uitest<br />
Icon=qgn_list_gene_default_app</p>
<p>example.uitest.service:</p>
<p>[D-BUS Service]<br />
Name=example.uitest<br />
Exec=/home/user/python/uitest.py</p>
<p>&#8230;and created those links:</p>
<p>ln -s /home/user/python/uitest.desktop /var/lib/install/etc/others-menu/extra_applications/uitest.desktop</p>
<p>ln -s /home/user/python/example.uitest.service /var/lib/install/usr/lib/dbus-1.0/services/example.uitest.service</p>
<p>Actually you don&#8217;t need the desktop file to have an icon in the task list, but I think it makes the hildonization complete. <img src='http://www.teemuharju.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin N.</title>
		<link>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-158</link>
		<author>Martin N.</author>
		<pubDate>Sat, 11 Feb 2006 00:21:13 +0000</pubDate>
		<guid>http://www.teemuharju.net/2006/02/08/coding-for-nokia-770-using-python-part-2/#comment-158</guid>
		<description>The solution could be to launch the file with a .desktop file. I have tried this for a while now, but without success. Perhaps I'm lucky tomorrow :)</description>
		<content:encoded><![CDATA[<p>The solution could be to launch the file with a .desktop file. I have tried this for a while now, but without success. Perhaps I&#8217;m lucky tomorrow <img src='http://www.teemuharju.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
