Developing with python

2008-04-18 Thread Frédéric

Hello,

I'm a new user of Meamo. I bought a used Nokia 770 on ebay (61€!), and
plan to use it for driving a motorized astronomic mount, to turn it into
a panoramic head. This is a free project, for which a lot of people
(photographers) have interest. See:

http://www.autopano.fr/wiki/action/view/T%C3%AAte_astronomique_Multi-fonctions_Merlin
http://www.autopano.net/wiki/action/view/Orion_TeleTrack_altazimuth_tracking_mount

(the english version is not up-to-date)

I develop with python for my work, and I also use it for my personal
projects. So, I'm looking for installing a complete python suite on my
770. It seems that using OS2006 won't me lead very far, so I  think I
will install OS2007HE. Can you confirm that it is the aka bora
firmeware? So, I should be able to use bora repositories? I know there
are some limitations, due to 770 hardware, but in general, is python
running fine?

Does python package include Tkinter? I saw something about Tcl/Tk on the
old wiki only...

Thanks for your help,
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: hildon_color_button custom colors issue

2008-04-18 Thread Aniello Del Sorbo
On Wed, Apr 16, 2008 at 12:40 PM, Aniello Del Sorbo [EMAIL PROTECTED]
wrote:


 Anyway.. the first issue below happened because I was running Xournal from
 root in an SSH remote shell.
 Thus, probably, colormaps  were wrong.
 Running it the usual way (from the Menu) fixed a bit things.
 The GdkColor returned by the hildon color chooser was, when drawn on the
 canvas, slightly different from the one showed in the button itself.
 I think it looked darker.

 After digging a bit I figured out that the GdkColor RGB values where RGB16
 (guint16) while I needed the RGB8 format (for the fill-color-rgba
 property).
 Thus, I had to first divide red, green and blue by 255 before putting them
 into a single guint value (RGBA) in the form of 0xRRGGBBAA.

 guint rgba = GNOME_CANVAS_COLOR_A  (color-red / 255.0, color-green /
 255.0, color-blue / 255.0, alpha)


Further corrected, the divisor should not be 255 but 257 (0x101) instead.
Otherwise the reduction from RGB16 to RGB8 does not work.
RGB16 is in the form: 0x i.e. values range from 0 to 65535
RGB8 is in the form 0xRRGGBB i.e. values range from 0 to 255.

Sorry if this is stuff people already know, but I am new to it and couldn't
find much about it.

-- 
anidel
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Video Encoding (most probably revisited many times)

2008-04-18 Thread Juan A. Suarez Romero
On Wed, 2008-04-16 at 18:58 -0400, [EMAIL PROTECTED] wrote:
 I have been unable to encode ANY video for the N810 on a Mac. Ive played 
 with ffmpegX, mencoder, Handbrake, etc. Ive tried keeping resolutions 
 small (Im trying a 240x182 px movie right now). Ive tried creating various 
 movie files encoded with various codecs inside an AVI container and 
 nothing works at all.
 
 Most of the 'nice' encoding tools Ive seen are all for Windows.
 
 Is there a solution for us humble Mac people?
 
 
 

I've wrote a small bash program that does the conversion. It uses
mencoder to do that, and it is able to add even subtitles.

Maybe you can take a look at it to show how mencoder is used.

J.A.



n800_videoenc
Description: application/shellscript
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: playbin problem

2008-04-18 Thread Juan A. Suarez Romero
On Thu, 2008-04-17 at 15:17 +0530, Sanjay Gupta wrote:
 Hi all,  I am trying to play mp3 file using playbin gstreamer element
 as follows:
 --
 Can someone please tell me if playbin is working properly in maemo SDK
 environent?

I'm using  chinook, and it plays fine.

Have you installed any bluez package? If so, uninstall it and try again.

BR

J.A.


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Video Encoding (most probably revisited many times)

2008-04-18 Thread Ryan Abel
On Apr 18, 2008, at 6:06 AM EDT, Andrew Flegg wrote:

 On Thu, Apr 17, 2008 at 8:27 AM, JL Diaz [EMAIL PROTECTED] wrote:
 If you have perl installed, you can try tablet-encode
 (http://mediautils.garage.maemo.org/tablet-encode.html). It is a  
 front-end
 to mencoder, which provides sensible defaults and presets. It works  
 well for
 me under Linux.

 Thanks for the recommendation! It also works well under under Mac OS X

Second this. It's an excellent collection of software, I can do  
nothing but recommend it.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Video Encoding (most probably revisited many times)

2008-04-18 Thread Andrew Flegg
On Thu, Apr 17, 2008 at 8:27 AM, JL Diaz [EMAIL PROTECTED] wrote:
 If you have perl installed, you can try tablet-encode
 (http://mediautils.garage.maemo.org/tablet-encode.html). It is a front-end
 to mencoder, which provides sensible defaults and presets. It works well for
 me under Linux.

Thanks for the recommendation! It also works well under under Mac OS X
- indeed, I had a Mac OS X box during its initial development.

Cheers,

Andrew

-- 
Andrew Flegg -- mailto:[EMAIL PROTECTED] | http://www.bleb.org/
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Arabic l10n

2008-04-18 Thread Khaled Hosny
Hi every one,

I'm an Arabic localizer (I contributed Arabic translation to many FOSS
projects, including Gnome) and I'm willing to localize various maemo
components into Arabic, I actually started and translated few packages.

I'm wondering how this translations can be upstreamed, is there any
guidelines on how to submit new translations? 

Thanks in advance,

-- 
 Khaled Hosny


signature.asc
Description: Digital signature
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: hildon_color_button custom colors issue

2008-04-18 Thread Allen Brown
I think that is still incorrect.  You should divide by 256.  That
is exactly equivalent to shifting the bits to the right by 8.
That moves the bits you want into the byte you need.
-- 
Allen Brown
http://brown.armoredpenguin.com/~abrown

 On Wed, Apr 16, 2008 at 12:40 PM, Aniello Del Sorbo [EMAIL PROTECTED]
 wrote:


 Anyway.. the first issue below happened because I was running Xournal
 from
 root in an SSH remote shell.
 Thus, probably, colormaps  were wrong.
 Running it the usual way (from the Menu) fixed a bit things.
 The GdkColor returned by the hildon color chooser was, when drawn on the
 canvas, slightly different from the one showed in the button itself.
 I think it looked darker.

 After digging a bit I figured out that the GdkColor RGB values where
 RGB16
 (guint16) while I needed the RGB8 format (for the fill-color-rgba
 property).
 Thus, I had to first divide red, green and blue by 255 before putting
 them
 into a single guint value (RGBA) in the form of 0xRRGGBBAA.

 guint rgba = GNOME_CANVAS_COLOR_A  (color-red / 255.0, color-green /
 255.0, color-blue / 255.0, alpha)


 Further corrected, the divisor should not be 255 but 257 (0x101) instead.
 Otherwise the reduction from RGB16 to RGB8 does not work.
 RGB16 is in the form: 0x i.e. values range from 0 to 65535
 RGB8 is in the form 0xRRGGBB i.e. values range from 0 to 255.

 Sorry if this is stuff people already know, but I am new to it and
 couldn't
 find much about it.

 --
 anidel
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers



___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


problem with hildon im and gtk

2008-04-18 Thread Kwan Hong Lee
I am trying to get the latest glib, gtk+ on my maemo 4.0 platform.  And I am
having the following trouble.

So I got glib to recompile, pango to recompile so that gtk could recompile
on maemo sdk, but I have various troubles.
The latest is that I get the following error:

import gtk
  File
debian/python2.5-gtk2/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py,
line 48, in module
ImportError: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol:
hildon_g_scanner_cache_open

And so I am trying to install gtk, but am having trouble with the following
when i do make install:

make  install-data-hook
make[4]: Entering directory `/home/kwan/gtk+-2.12.9/modules/input'
/bin/sh ../../mkinstalldirs /usr/etc/gtk-2.0
../../gtk/gtk-query-immodules-2.0  /usr/etc/gtk-2.0/gtk.immodules
Cannot load module /usr/lib/gtk-2.0/2.10.0/immodules/hildon-im-module.so:
/usr/lib/gtk-2.0/2.10.0/immodules/hildon-im-module.so: undefined symbol:
hildon_gtk_im_context_paste
/usr/lib/gtk-2.0/2.10.0/immodules/hildon-im-module.so does not export GTK+
IM module API: /usr/lib/gtk-2.0/2.10.0/immodules/hildon-im-module.so:
undefined symbol: hildon_gtk_im_context_paste
make[4]: *** [install-data-hook] Error 1
make[4]: Leaving directory `/home/kwan/gtk+-2.12.9/modules/input'
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory `/home/kwan/gtk+-2.12.9/modules/input'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/kwan/gtk+-2.12.9/modules/input'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/kwan/gtk+-2.12.9/modules'
make: *** [install-recursive] Error 1


It' makes fine.  but when i try to install above error pops up and can't go
forward.

Any guidance?
I am thinking some hildon gtk has to be recompiled but cannot find the
source code for it.

-kwan

-- 
http://www.media.mit.edu/~kwan/info.html
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers