Re: Launching mediaplayer from command line in N900

2010-04-09 Thread praveen koduru
Hi Timo,

thanks for the quick reply.

But I am not able to open the mediaplayer on N900.
dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
com.nokia.mediaplayer.mime_open string:file:///$1

dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
com.nokia.mediaplayer.mime_open string:
file:///home/user/MyDocs/.sounds/Total Fantasy.mp3

doesnt gave errror,, but media player is not launched.

-Praveen



On Fri, Apr 9, 2010 at 11:08 AM, Timo Härkönen timop.harko...@gmail.comwrote:

 Hi

 2010/4/9 praveen koduru prawin1...@gmail.com

  Hi

 Can anybody suggest me how to launch media player from command line?
 I want to play an mp3/mp4 file through N900 media player. How can I do
 that thorugh command line?
 Do I need to send any dbus command to the /usr/bin/mediaplayer??


 Have a look at
 http://wiki.maemo.org/Phone_control#Open_file_in_media_player

 BR

 -Timo



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


Re: Launching mediaplayer from command line in N900

2010-04-09 Thread Timo Härkönen
Hi

2010/4/9 praveen koduru prawin1...@gmail.com

 Hi Timo,

 thanks for the quick reply.

 But I am not able to open the mediaplayer on N900.
 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:file:///$1

 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:
 file:///home/user/MyDocs/.sounds/Total Fantasy.mp3


Try

dbus-send --session --print-reply type=method_call
--dest=com.nokia.mediaplayer /com/nokia/mediaplayer
com.nokia.mediaplayler.mime.open string:file:///path/to/your/file.mp3

BR

-Timo



 doesnt gave errror,, but media player is not launched.

 -Praveen



 On Fri, Apr 9, 2010 at 11:08 AM, Timo Härkönen 
 timop.harko...@gmail.comwrote:

 Hi

 2010/4/9 praveen koduru prawin1...@gmail.com

  Hi

 Can anybody suggest me how to launch media player from command line?
 I want to play an mp3/mp4 file through N900 media player. How can I do
 that thorugh command line?
 Do I need to send any dbus command to the /usr/bin/mediaplayer??


 Have a look at
 http://wiki.maemo.org/Phone_control#Open_file_in_media_player

 BR

 -Timo




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


Re: Launching mediaplayer from command line in N900

2010-04-09 Thread Timo Härkönen
Hi again :)

snip


 Try

 dbus-send --session --print-reply type=method_call
 --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayler.mime.open string:file:///path/to/your/file.mp3


The above has too many dashes in front of type and a typo in the method
name. the correct version is:

dbus-send --session --print-reply --type=method_call
--dest=com.nokia.mediaplayer /com/nokia/mediaplayer
com.nokia.mediaplayer.mime_open string:file:///path/to/your/file.mp3

snip

BR

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


Re: j2me

2010-04-09 Thread Christopher Intemann
Hello Aldon,

On Fri, Apr 9, 2010 at 1:34 AM, Aldon Hynes aldon.hy...@orient-lodge.comwrote:


 I've also installed Easy Deb with LXDE which has Java nicely working in
 it.  I've run Java Applets under Easy Deb.


Thank you very much for your comments.
However, I don't quit get if it is possible to run common j2me mobile apps
on the N900 with either Sun Java SE or OpenJDK?
Thanks again,
Chris





 -Original Message-
 *From:* maemo-developers-boun...@maemo.org [mailto:
 maemo-developers-boun...@maemo.org]*on Behalf Of *Christopher Intemann
 *Sent:* Thursday, April 08, 2010 6:28 PM
 *To:* maemo-developers
 *Subject:* j2me

 Can I run genuine j2me applications, such as those provided for mobile
 ticketing from some public transportation services, on Maemo 5?
 I cannot find a clear statement on that.
 Thanks,
  Chris


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


Re: Launching mediaplayer from command line in N900

2010-04-09 Thread praveen koduru
This also not working. whereas I am able ot open browser and other
applications except mediaplayer.
Any suggestions or way to debug.

-Praveen Koduru

On Fri, Apr 9, 2010 at 12:10 PM, Timo Härkönen timop.harko...@gmail.comwrote:

 Hi

  2010/4/9 praveen koduru prawin1...@gmail.com

 Hi Timo,

 thanks for the quick reply.

 But I am not able to open the mediaplayer on N900.
 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:file:///$1

 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:
 file:///home/user/MyDocs/.sounds/Total Fantasy.mp3


 Try

 dbus-send --session --print-reply type=method_call
 --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayler.mime.open string:file:///path/to/your/file.mp3

 BR

 -Timo



 doesnt gave errror,, but media player is not launched.

 -Praveen



  On Fri, Apr 9, 2010 at 11:08 AM, Timo Härkönen timop.harko...@gmail.com
  wrote:

 Hi

 2010/4/9 praveen koduru prawin1...@gmail.com

  Hi

 Can anybody suggest me how to launch media player from command line?
 I want to play an mp3/mp4 file through N900 media player. How can I do
 that thorugh command line?
 Do I need to send any dbus command to the /usr/bin/mediaplayer??


 Have a look at
 http://wiki.maemo.org/Phone_control#Open_file_in_media_player

 BR

 -Timo





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


Re: j2me

2010-04-09 Thread Christopher Intemann
Oh just came across http://www.microemu.org/; which could possible run on
the N900 (on java).
Did anyone ever try that? Looks promising...
Regards,
 Chris

On Fri, Apr 9, 2010 at 9:54 AM, Christopher Intemann intem...@gmail.comwrote:

 Hello Aldon,

 On Fri, Apr 9, 2010 at 1:34 AM, Aldon Hynes 
 aldon.hy...@orient-lodge.comwrote:


 I've also installed Easy Deb with LXDE which has Java nicely working in
 it.  I've run Java Applets under Easy Deb.


 Thank you very much for your comments.
 However, I don't quit get if it is possible to run common j2me mobile apps
 on the N900 with either Sun Java SE or OpenJDK?
  Thanks again,
 Chris





 -Original Message-
 *From:* maemo-developers-boun...@maemo.org [mailto:
 maemo-developers-boun...@maemo.org]*on Behalf Of *Christopher Intemann
 *Sent:* Thursday, April 08, 2010 6:28 PM
 *To:* maemo-developers
 *Subject:* j2me

 Can I run genuine j2me applications, such as those provided for mobile
 ticketing from some public transportation services, on Maemo 5?
 I cannot find a clear statement on that.
 Thanks,
  Chris



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


Re: HildonTouchSelector

2010-04-09 Thread Alberto Garcia
On Thu, Apr 08, 2010 at 06:11:15PM -0700, Aniello Del Sorbo wrote:

 HildonTouchSelector has methods to append/prepend items but none to
 remove them.
 GTK does.

Ok, I understand this is arguable, but since you can access the model
directly, I don't think HildonTouchSelector needs to provide extra
methods for all tree model operations.

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


python hildon.Button -problem

2010-04-09 Thread Timo Pelkonen
Hi!

I don't know what I am doing wrong with this.

I have two buttons configured like this:

button_1 =
hildon.Button(gtk.HILDON_SIZE_AUTO,hildon.BUTTON_ARRANGEMENT_VERTICAL,
Button 1)

and when I run the program, only one button is shown.

Thanks a lot for the help!

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


Re: HildonTouchSelector

2010-04-09 Thread Alberto Garcia
On Thu, Apr 08, 2010 at 06:11:15PM -0700, Aniello Del Sorbo wrote:

  /* Get the path to row 0 */
  path = gtk_tree_path_new_from_string (0);
  
  /* Get the tree iter for that path */
  gtk_tree_model_get_iter (GTK_TREE_MODEL (model),
  iter, path);
  
  /* Do not need path anymore */
  gtk_tree_path_free (path);

Btw, you have

  gtk_tree_model_get_iter_first ()
  gtk_tree_model_iter_nth_child ()

which are easier to use.

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


N900 Mameo5 mediaplayer not able to launch from Command line

2010-04-09 Thread praveen koduru
Hi,

I am trying  to launch media player from command line prompt.
dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
com.nokia.mediaplayer.mime_open string:
file:///home/user/MyDocs/.videos/9.mp4

But this not launching mediaplayer and even No error was found on the
terminal.

Whereas I am able to launch browser and all other from command line through
dbus-send commands.

Any help will be greatly appreciated.

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


Re: N900 Mameo5 mediaplayer not able to launch from Command line

2010-04-09 Thread praveen koduru
It is giving the following error from N900 shell prompt,
 Failed to open connection to session message bus: (null)
-Praveen



On Fri, Apr 9, 2010 at 3:42 PM, praveen koduru prawin1...@gmail.com wrote:

 Hi,

 I am trying  to launch media player from command line prompt.
 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:
 file:///home/user/MyDocs/.videos/9.mp4

 But this not launching mediaplayer and even No error was found on the
 terminal.

 Whereas I am able to launch browser and all other from command line through
 dbus-send commands.

 Any help will be greatly appreciated.

 -Praveen.

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


Re: N900 Mameo5 mediaplayer not able to launch from Command line

2010-04-09 Thread Daniil Ivanov
Hi Praveen!

 Use --print-reply with dbus-send.

Thanks, Daniil.

On Fri, Apr 9, 2010 at 1:24 PM, praveen koduru prawin1...@gmail.com wrote:
 It is giving the following error from N900 shell prompt,
  Failed to open connection to session message bus: (null)
 -Praveen


 On Fri, Apr 9, 2010 at 3:42 PM, praveen koduru prawin1...@gmail.com wrote:

 Hi,

 I am trying  to launch media player from command line prompt.
 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open
 string:file:///home/user/MyDocs/.videos/9.mp4

 But this not launching mediaplayer and even No error was found on the
 terminal.

 Whereas I am able to launch browser and all other from command line
 through dbus-send commands.

 Any help will be greatly appreciated.

 -Praveen.

 ___
 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


Re: Launching mediaplayer from command line in N900

2010-04-09 Thread Timo Härkönen
Hi

2010/4/9 praveen koduru prawin1...@gmail.com

 This also not working. whereas I am able ot open browser and other
 applications except mediaplayer.
 Any suggestions or way to debug.


You could try using dbus-monitor to see what's going on. Put it in the
background and forward it's output to some file.

dbus-monitor  debugfile.txt 

When you're done bring it back up and terminate it

fg
[ctrl+c]

Notice that the dbus-monitor produces quite alot of output.

Otherwise if you're executing the command as user it should work. At least
I'm out of ideas.

-Timo



 -Praveen Koduru

 On Fri, Apr 9, 2010 at 12:10 PM, Timo Härkönen 
 timop.harko...@gmail.comwrote:

 Hi

  2010/4/9 praveen koduru prawin1...@gmail.com

 Hi Timo,

 thanks for the quick reply.

 But I am not able to open the mediaplayer on N900.
 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:file:///$1

 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:
 file:///home/user/MyDocs/.sounds/Total Fantasy.mp3


 Try

 dbus-send --session --print-reply type=method_call
 --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayler.mime.open string:file:///path/to/your/file.mp3

 BR

 -Timo



 doesnt gave errror,, but media player is not launched.

 -Praveen



  On Fri, Apr 9, 2010 at 11:08 AM, Timo Härkönen 
 timop.harko...@gmail.com wrote:

 Hi

 2010/4/9 praveen koduru prawin1...@gmail.com

  Hi

 Can anybody suggest me how to launch media player from command line?
 I want to play an mp3/mp4 file through N900 media player. How can I do
 that thorugh command line?
 Do I need to send any dbus command to the /usr/bin/mediaplayer??


 Have a look at
 http://wiki.maemo.org/Phone_control#Open_file_in_media_player

 BR

 -Timo






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


Re: N900 Mameo5 mediaplayer not able to launch from Command line

2010-04-09 Thread Daniil Ivanov
Hi Praveen!

  I do verify that this launches video on my N900:

~ $ whoami
user
~ $ dbus-send --print-reply --dest=com.nokia.mediaplayer
/com/nokia/mediaplayer com.nokia.mediaplayer.mime_open
string:file:///home/user/MyDocs/.videos/9.mp4
method return sender=:1.558 - dest=:1.559 reply_serial=2

Thanks, Daniil.

On Fri, Apr 9, 2010 at 1:45 PM, praveen koduru prawin1...@gmail.com wrote:
 Hi Daniil,

 when I include --print-reply, I am getting like this
 method return sender=:1.6 - dest=:1.12 reply_serial=2

 command I used is:
 dbus-send --print-reply  --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_play
 string:file:///home/user/MyDocs/.sounds/Total\ Fantasy.mp3

 -Praveen

 On Fri, Apr 9, 2010 at 4:07 PM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:

 Hi Praveen!

  Use --print-reply with dbus-send.

 Thanks, Daniil.

 On Fri, Apr 9, 2010 at 1:12 PM, praveen koduru prawin1...@gmail.com
 wrote:
  Hi,
 
  I am trying  to launch media player from command line prompt.
  dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
  com.nokia.mediaplayer.mime_open
  string:file:///home/user/MyDocs/.videos/9.mp4
 
  But this not launching mediaplayer and even No error was found on the
  terminal.
 
  Whereas I am able to launch browser and all other from command line
  through
  dbus-send commands.
 
  Any help will be greatly appreciated.
 
  -Praveen.
  ___
  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


Re: N900 Mameo5 mediaplayer not able to launch from Command line

2010-04-09 Thread Kimmo Hämäläinen
On Fri, 2010-04-09 at 12:24 +0200, ext praveen koduru wrote:
 It is giving the following error from N900 shell prompt,
  Failed to open connection to session message bus: (null)

Maybe you are running the command as root? Do su - user first to login
as user.

-Kimmo

 -Praveen 
 
 
  
 On Fri, Apr 9, 2010 at 3:42 PM, praveen koduru prawin1...@gmail.com
 wrote:
 Hi,
  
 I am trying  to launch media player from command line prompt.
 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open
 string:file:///home/user/MyDocs/.videos/9.mp4
  
 But this not launching mediaplayer and even No error was found
 on the terminal.
  
 Whereas I am able to launch browser and all other from command
 line through dbus-send commands.
  
 Any help will be greatly appreciated.
  
 -Praveen.
 

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


Re: python hildon.Button -problem

2010-04-09 Thread Anderson Lizardo
On Fri, Apr 9, 2010 at 5:09 AM, Timo Pelkonen pelt...@gmail.com wrote:
 Hi!

 I don't know what I am doing wrong with this.

 I have two buttons configured like this:

 button_1 =
 hildon.Button(gtk.HILDON_SIZE_AUTO,hildon.BUTTON_ARRANGEMENT_VERTICAL,
 Button 1)

 and when I run the program, only one button is shown.

If would help if you provide a more complete snippet of your code. A
few possibilities:

1) Do you use a VBox/HBox container to hold these buttons ?
2) did you use window.show_all() to show the objects added to the window?

HTH,
-- 
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Launching mediaplayer from command line in N900

2010-04-09 Thread praveen koduru
Hi Timo,

Thanks for the help.

I am able to launch the application now.

I am trying to launch it from putty(WiFi) instead of tools--shell prompt.

-Praveen

On Fri, Apr 9, 2010 at 4:15 PM, Timo Härkönen timop.harko...@gmail.comwrote:

 Hi

  2010/4/9 praveen koduru prawin1...@gmail.com

 This also not working. whereas I am able ot open browser and other
 applications except mediaplayer.
  Any suggestions or way to debug.


 You could try using dbus-monitor to see what's going on. Put it in the
 background and forward it's output to some file.

 dbus-monitor  debugfile.txt 

 When you're done bring it back up and terminate it

 fg
 [ctrl+c]

 Notice that the dbus-monitor produces quite alot of output.

 Otherwise if you're executing the command as user it should work. At least
 I'm out of ideas.

 -Timo



 -Praveen Koduru

   On Fri, Apr 9, 2010 at 12:10 PM, Timo Härkönen 
 timop.harko...@gmail.com wrote:

 Hi

  2010/4/9 praveen koduru prawin1...@gmail.com

 Hi Timo,

 thanks for the quick reply.

 But I am not able to open the mediaplayer on N900.
 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:file:///$1

 dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayer.mime_open string:
 file:///home/user/MyDocs/.sounds/Total Fantasy.mp3


 Try

 dbus-send --session --print-reply type=method_call
 --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
 com.nokia.mediaplayler.mime.open string:file:///path/to/your/file.mp3

 BR

 -Timo



 doesnt gave errror,, but media player is not launched.

 -Praveen



  On Fri, Apr 9, 2010 at 11:08 AM, Timo Härkönen 
 timop.harko...@gmail.com wrote:

 Hi

 2010/4/9 praveen koduru prawin1...@gmail.com

  Hi

 Can anybody suggest me how to launch media player from command line?
 I want to play an mp3/mp4 file through N900 media player. How can I do
 that thorugh command line?
 Do I need to send any dbus command to the /usr/bin/mediaplayer??


 Have a look at
 http://wiki.maemo.org/Phone_control#Open_file_in_media_player

 BR

 -Timo







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


Re: N900 Mameo5 mediaplayer not able to launch from Command line

2010-04-09 Thread Daniil Ivanov
Hi! Praveen!

  If you find yourself using Windows, then it's slightly better option
than PuTTY
  SSHSecureShellClientm, you can get it from here:
  http://www.filewatcher.com/m/SSHSecureShellClient-3.2.9.exe.5517312.0.0.html

Thanks, Daniil.

On Fri, Apr 9, 2010 at 3:03 PM, praveen koduru prawin1...@gmail.com wrote:
 Hi Daniil,

 Thanks a lot for your help.

 I am able to launch the mediaplayer now.
 I executed the below command for mediaplayer from 2 places.
 1. Tools--Shell prompt (media player launches)
 2. I have opened Putty on my Laptop through WiFi. (Here it is not working)
 I have did all the export variables, but I am not able to launch the
 command.

 And also Daniil, Is there a way to connect Herterminal/Tera Term to N900.
 instead of Putty through WiFi?
 -Praveen



 On Fri, Apr 9, 2010 at 4:27 PM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:

 Hi Praveen!

  I do verify that this launches video on my N900:

 ~ $ whoami
 user
 ~ $ dbus-send --print-reply --dest=com.nokia.mediaplayer
 /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open
 string:file:///home/user/MyDocs/.videos/9.mp4
 method return sender=:1.558 - dest=:1.559 reply_serial=2

 Thanks, Daniil.

 On Fri, Apr 9, 2010 at 1:45 PM, praveen koduru prawin1...@gmail.com
 wrote:
  Hi Daniil,
 
  when I include --print-reply, I am getting like this
  method return sender=:1.6 - dest=:1.12 reply_serial=2
 
  command I used is:
  dbus-send --print-reply  --dest=com.nokia.mediaplayer
  /com/nokia/mediaplayer
  com.nokia.mediaplayer.mime_play
  string:file:///home/user/MyDocs/.sounds/Total\ Fantasy.mp3
 
  -Praveen
 
  On Fri, Apr 9, 2010 at 4:07 PM, Daniil Ivanov daniil.iva...@gmail.com
  wrote:
 
  Hi Praveen!
 
   Use --print-reply with dbus-send.
 
  Thanks, Daniil.
 
  On Fri, Apr 9, 2010 at 1:12 PM, praveen koduru prawin1...@gmail.com
  wrote:
   Hi,
  
   I am trying  to launch media player from command line prompt.
   dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
   com.nokia.mediaplayer.mime_open
   string:file:///home/user/MyDocs/.videos/9.mp4
  
   But this not launching mediaplayer and even No error was found on the
   terminal.
  
   Whereas I am able to launch browser and all other from command line
   through
   dbus-send commands.
  
   Any help will be greatly appreciated.
  
   -Praveen.
   ___
   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


Port of NeHe OpenGL tutorials

2010-04-09 Thread Till Harbaum / Lists
Hi,

i've started to port the very nice OpenGL tutorial from http://nehe.gamedev.net/
to Maemo5/SDL_gles. The first 8 lessons are there ready to be tested from
extras-devel. The project is called nehegles:
http://maemo.org/packages/view/nehegles/

Hope this gives the usage of opengl on the n900 a little push ...

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


Re: HildonTouchSelector

2010-04-09 Thread Aniello Del Sorbo
On 9 April 2010 02:18, Alberto Garcia agar...@igalia.com wrote:
 On Thu, Apr 08, 2010 at 10:38:26PM -0700, Aniello Del Sorbo wrote:

 I have a HildonPickerButton with a simple Selector with no Done
 button.

 With the trick below I can remove rows from the Selector, but then
 the PickerDialog does not properly resize itself, leaving some empty
 space below the Selector.

 Hmm... can you please file a bug about that? Thanks !

 Berto

Will do. I thought it was because of my weird access to the internal structure.
But, indeed, as the model is exposed to the outside, I should have
expected it to work.

Thanks

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


Re: HildonTouchSelector

2010-04-09 Thread Aniello Del Sorbo
On 9 April 2010 01:53, Alberto Garcia agar...@igalia.com wrote:
 On Thu, Apr 08, 2010 at 06:11:15PM -0700, Aniello Del Sorbo wrote:

 HildonTouchSelector has methods to append/prepend items but none to
 remove them.
 GTK does.

 Ok, I understand this is arguable, but since you can access the model
 directly, I don't think HildonTouchSelector needs to provide extra
 methods for all tree model operations.

 Berto

Indeed it is arguable, but as GTK already provides it and because a
toolkit should make developer's life easier, it would have been nice
to find a remove function as well even though it wasn't needed for
internal developers.

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


Re: HildonTouchSelector

2010-04-09 Thread Aniello Del Sorbo
On 9 April 2010 02:14, Alberto Garcia agar...@igalia.com wrote:
 On Thu, Apr 08, 2010 at 06:11:15PM -0700, Aniello Del Sorbo wrote:

      /* Get the path to row 0 */
      path = gtk_tree_path_new_from_string (0);
 
      /* Get the tree iter for that path */
      gtk_tree_model_get_iter (GTK_TREE_MODEL (model),
                      iter, path);
 
      /* Do not need path anymore */
      gtk_tree_path_free (path);

 Btw, you have

  gtk_tree_model_get_iter_first ()
  gtk_tree_model_iter_nth_child ()

 which are easier to use.

 Berto

True.
It was simply the first solution I came up with, with my limited
knowledge of GTK and it's tools

Thanks for everything though :)

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


Re: N900 Mameo5 mediaplayer not able to launch from Command line

2010-04-09 Thread Daniil Ivanov
Hi Praveen!

 You can setup USB networking
  http://wiki.maemo.org/N900_USB_networking
  But I see exactly no difference between the ways you access the device.

Thanks, Daniil.

On Fri, Apr 9, 2010 at 6:18 PM, praveen koduru prawin1...@gmail.com wrote:
 Hi Daniil,
 SSHSecureShellClient is again through WiFi interface of N900 only.
 Can I have a terminal for N900 on my Windows PC through some serial
 interface or USB interface?
 -Praveen


 On Fri, Apr 9, 2010 at 5:58 PM, Daniil Ivanov daniil.iva...@gmail.com
 wrote:

 Hi! Praveen!

  If you find yourself using Windows, then it's slightly better option
 than PuTTY
  SSHSecureShellClientm, you can get it from here:

  http://www.filewatcher.com/m/SSHSecureShellClient-3.2.9.exe.5517312.0.0.html

 Thanks, Daniil.

 On Fri, Apr 9, 2010 at 3:03 PM, praveen koduru prawin1...@gmail.com
 wrote:
  Hi Daniil,
 
  Thanks a lot for your help.
 
  I am able to launch the mediaplayer now.
  I executed the below command for mediaplayer from 2 places.
  1. Tools--Shell prompt (media player launches)
  2. I have opened Putty on my Laptop through WiFi. (Here it is not
  working)
  I have did all the export variables, but I am not able to launch the
  command.
 
  And also Daniil, Is there a way to connect Herterminal/Tera Term to
  N900.
  instead of Putty through WiFi?
  -Praveen
 
 
 
  On Fri, Apr 9, 2010 at 4:27 PM, Daniil Ivanov daniil.iva...@gmail.com
  wrote:
 
  Hi Praveen!
 
   I do verify that this launches video on my N900:
 
  ~ $ whoami
  user
  ~ $ dbus-send --print-reply --dest=com.nokia.mediaplayer
  /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open
  string:file:///home/user/MyDocs/.videos/9.mp4
  method return sender=:1.558 - dest=:1.559 reply_serial=2
 
  Thanks, Daniil.
 
  On Fri, Apr 9, 2010 at 1:45 PM, praveen koduru prawin1...@gmail.com
  wrote:
   Hi Daniil,
  
   when I include --print-reply, I am getting like this
   method return sender=:1.6 - dest=:1.12 reply_serial=2
  
   command I used is:
   dbus-send --print-reply  --dest=com.nokia.mediaplayer
   /com/nokia/mediaplayer
   com.nokia.mediaplayer.mime_play
   string:file:///home/user/MyDocs/.sounds/Total\ Fantasy.mp3
  
   -Praveen
  
   On Fri, Apr 9, 2010 at 4:07 PM, Daniil Ivanov
   daniil.iva...@gmail.com
   wrote:
  
   Hi Praveen!
  
    Use --print-reply with dbus-send.
  
   Thanks, Daniil.
  
   On Fri, Apr 9, 2010 at 1:12 PM, praveen koduru
   prawin1...@gmail.com
   wrote:
Hi,
   
I am trying  to launch media player from command line prompt.
dbus-send --dest=com.nokia.mediaplayer /com/nokia/mediaplayer
com.nokia.mediaplayer.mime_open
string:file:///home/user/MyDocs/.videos/9.mp4
   
But this not launching mediaplayer and even No error was found on
the
terminal.
   
Whereas I am able to launch browser and all other from command
line
through
dbus-send commands.
   
Any help will be greatly appreciated.
   
-Praveen.
___
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


VS: Re: python hildon.Button -problem

2010-04-09 Thread peltsip

- Alkuperäinen viesti -
 On Fri, Apr 9, 2010 at 5:09 AM, Timo Pelkonen pelt...@gmail.com wrote:
  Hi!
 
  I don't know what I am doing wrong with this.
 
  I have two buttons configured like this:
 
  button_1 =
  hildon.Button(gtk.HILDON_SIZE_AUTO,hildon.BUTTON_ARRANGEMENT_VERTICAL,
  Button 1)
 
  and when I run the program, only one button is shown.

 If would help if you provide a more complete snippet of your code. A
 few possibilities:

 1) Do you use a VBox/HBox container to hold these buttons ?
 2) did you use window.show_all() to show the objects added to the
 window?

 HTH,
 --
 Anderson Lizardo
 OpenBossa Labs - INdT
 Manaus - Brazil


thanks for the reply. Basically the code is hello world taken from pymaemo wiki 
so there is no container. I'll add it and hope it does the trick.

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


VS: Re: python hildon.Button -problem

2010-04-09 Thread peltsip

- Alkuperäinen viesti -
 On Fri, Apr 9, 2010 at 5:09 AM, Timo Pelkonen pelt...@gmail.com wrote:
  Hi!
 
  I don't know what I am doing wrong with this.
 
  I have two buttons configured like this:
 
  button_1 =
  hildon.Button(gtk.HILDON_SIZE_AUTO,hildon.BUTTON_ARRANGEMENT_VERTICAL,
  Button 1)
 
  and when I run the program, only one button is shown.

 If would help if you provide a more complete snippet of your code. A
 few possibilities:

 1) Do you use a VBox/HBox container to hold these buttons ?
 2) did you use window.show_all() to show the objects added to the
 window?

 HTH,
 --
 Anderson Lizardo
 OpenBossa Labs - INdT
 Manaus - Brazil


Adding vbox did the trick, thanks a lot!

(this message was send FYI and confirmation that case is closed)

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


Re: Port of NeHe OpenGL tutorials

2010-04-09 Thread Ahmed Ammar
On Fri, 2010-04-09 at 17:12 +0200, Till Harbaum / Lists wrote:
 Hi,
 
 i've started to port the very nice OpenGL tutorial from 
 http://nehe.gamedev.net/
 to Maemo5/SDL_gles. The first 8 lessons are there ready to be tested from
 extras-devel. The project is called nehegles:
 http://maemo.org/packages/view/nehegles/
 
 Hope this gives the usage of opengl on the n900 a little push ...

Good stuff, but which GLES version are you porting to? 

Also, I'd like to bring to your attention a very neat little wrapper
that tries to wrap most used GL2 functions to GLES2:

http://code.google.com/p/gl-wes-v2/

I actually have got glgears working using this, although it's buggy
(can't get lighting to quite work) it makes porting GL2 to GLES2 pretty
simple.

Also, most the matrix operations in this wrapper could benefit greatly
from SIMD and become even faster.

Just wanted to give my 2 cents.

Best Regards,
-- 
Ahmed A. Ammar
Senior Systems Engineer 
ConnectmeTV

email:  ahmed.am...@connectmetv.com
tel:+2010 600-5516

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


Re: Port of NeHe OpenGL tutorials

2010-04-09 Thread Till Harbaum / Lists
Hi,

Am Freitag 09 April 2010 schrieb Ahmed Ammar:
 Good stuff, but which GLES version are you porting to? 
GLES1 as this is IMHO closer to the GL version used in those
lessons.

 Also, I'd like to bring to your attention a very neat little wrapper
 that tries to wrap most used GL2 functions to GLES2:
 
 http://code.google.com/p/gl-wes-v2/
My set of lessons is in no way limited to the NeHe tutorials, so if
you want to contribute some simple and well-documented lesson,
you are more than welcome.

 I actually have got glgears working using this, although it's buggy
 (can't get lighting to quite work) it makes porting GL2 to GLES2 pretty
 simple.
I haven't encountered any problems so far and the examples already
include lighting, textures and other more advanced topics.

 Just wanted to give my 2 cents.
I am by no means a GL/GLES expert. In fact i am learning while doing
this, so any contribution is welcome.

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


Re: j2me

2010-04-09 Thread Gunter Ohrner
Christopher Intemann wrote:
 Oh just came across http://www.microemu.org/; which could possible
 run on the N900 (on java).
 Did anyone ever try that? Looks promising...

I did, I used it to run DB Railnavigator, a version of Hafas2Go 
branded by Deutsche Bahn, on the N900.

It basically seems to work, but I've not yet used it extensively.

There seem to be some minor problems here and there, like not being able 
to enter capital letters in text fields with some versions of MicroEmu, 
but no showstopper as far as I can tell.

Railnavigator feels much snappier with the SUN JRE, using OpenJDK it's 
rather sluggish.

Greetings,

  Gunter

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


Re: j2me

2010-04-09 Thread Gunter Ohrner
Demetris G. Galatopoullos wrote:
 Not sure how much this will help you but I have been running
 PhoneME (J2ME CDC) on the N800 and N810 devices for a while
 now without any issues.

The PhoneME project does not list Maemo as a reliably supported 
platform, is there any information on how to build PhoneME for Maemo and 
how to run it?

I'd imagine PhoneME to be somewhat lighter on ressources than 
MicroEmu...

Greetings,

  Gunter

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


Re: j2me

2010-04-09 Thread Demetris


True it does not but it has been fairly reliable at least for my application
testing - I run p2p, web services, containers software under it and it has
been pretty stable. But like you said no one has done extensive studies
on its stability for maemo so I won't make any such claims (yet).

Look here:
http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatformsNokia800
http://sites.google.com/site/thehereweb/runningosgionthenokian800

Also I found a few other sites that discuss building newer version of 
PhoneME but

I cannot locate them right this minute - I will search and repost.

Give these a shot and let me know how it works out.

Gunter Ohrner wrote:

Demetris G. Galatopoullos wrote:
  

Not sure how much this will help you but I have been running
PhoneME (J2ME CDC) on the N800 and N810 devices for a while
now without any issues.



The PhoneME project does not list Maemo as a reliably supported 
platform, is there any information on how to build PhoneME for Maemo and 
how to run it?


I'd imagine PhoneME to be somewhat lighter on ressources than 
MicroEmu...


Greetings,

  Gunter

___
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