[maemo-developers] JamVM network prob

2006-06-28 Thread jiimail

Hi,
have anyone tried to run any java applications with JamVM that use networking?
I tried to play with http://cybergarage.org/ CyberLink for Java UPnP 
Development package, but
I couldn't get anything to work in 770. I made a console-based UPnP device that 
worked fine
in linux and windows, but in 770 it just didnt work. It seemed to work just 
fine, except that it doesn't
send or receive anything; it doesn't show any exceptions or errors thou.
   I also made a simple program that just sends a multicast packet in IPv6 
network and it works in
Linux ( something like: http://www.cdt.luth.se/~peppar/java/multicast_example/ 
).  In 770 it gives
following error:
java.net.SocketException
 at java.net.DatagramSocket.getImpl (DatagramSocket.java:214)
 at java.net.DatagramSocket.setReuseAddress (DatagramSocket.java:802)
 at java.net.MulticastSocket. (MulticastSocket.java:110)
 at java.net.MulticastSocket. (MulticastSocket.java79)
 at NetTest.main (NetTest.java:48)
Caused by: java.io.IOException: Socket operation on non-socket
 at gnu.java.net.PlainDatagramSocketImpl.create (Native Method)
 at java.net.DatagramSocket.getImpl (DatagramSocket.java:206)
 ..4 more
I think it crashes in command: MulticastSocket s = new MulticastSocket();

 I use 1.5.0_07 jdk in Linux and Windows and 770 is in IPv6 network and 770 is 
IPV6 enabled.
If anyone have tried networking application in JamVM, please share your 
experiences :).

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


[maemo-developers] repository.maemo.org working?

2006-06-28 Thread Collin R. Mulliner
Hi List,

whats up with the repository(.maemo.org), is it working? I never got a
clean package update from either maemo2.0rc16 or mistral-beta (both
section free). I tried to download files directly to install them "from
file" but the package manager complains. Packages are not installable.

Is that stuff supposed to work? Is there a list of repositories? If not
maybe there should be one.


Collin

PS: I wanted wireless tools so I packaged them myself (link is in the
2006 catalog)

--
Collin R. Mulliner <[EMAIL PROTECTED]>
BETAVERSiON Systems [www.betaversion.net]
info/pgp: finger [EMAIL PROTECTED]
Get a life! Start coding!

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


[maemo-developers] Problem with Menu startup

2006-06-28 Thread Detlef Schmicker
I am fighting with menu startup of my application.

If I start from xterm, all is fine. Even icons are shown in task bar ...

if I start from menu (very simelar to maemopadplus) it starts up and
goes down after 20 seconds again.

On device and on SDK_PC

has anybody an idea. I think I did not have this problem on 2005

Thanks Detlef


hn-wm.c:264,hn_wm_top_service()  Called with 'gtkteach'
hn-wm.c:302,hn_wm_top_service() ### Failed to read memory limits, using
scratchbox ??
hn-wm.c:335,hn_wm_top_service() unable to find service name 'gtkteach'
in running wins
hn-wm.c:336,hn_wm_top_service() Thus launcing via osso_manager_launch()
hn-wm.c:1210,hn_wm_dbus_method_call_handler() Checking if service:
'com.nokia.gtkteach' is watchable
hn-wm.c:1225,hn_wm_dbus_method_call_handler() Showing Launchbanner...
Hildon App
hn-wm.c:1436,hn_wm_compute_watched_window_hibernation_key() 
computing hibernation key 
hn-wm.c:1458,hn_wm_compute_watched_window_hibernation_key() 
hibernation key: gtkteach 
hn-wm-watched-window.c:586,hn_wm_watched_window_new()  new watched
window, key gtkteach 
hn-wm-watched-window.c:593,hn_wm_watched_window_new()  win 0x0 
hn-wm-watched-window.c:116,hn_wm_watched_window_process_net_wm_icon()
 grabbing NET icon 
hn-wm-watched-window.c:464,hn_wm_watched_window_process_net_wm_user_time()  
processing _NET_WM_USER_TIME 
hn-wm.c:945,hn_wm_process_x_client_list() ### adding a viewless window
###
hn-wm-watchable-app.c:186,hn_wm_watchable_app_has_windows_find_func()
Checking 0x812c140 vs 0x812c140
hn-wm-watched-window.c:833,hn_wm_watched_window_destroy() Removing
'Teacher'
hn-wm.c:783,hn_wm_lookup_watched_window_view() checking
WatchedWindowsHibernating hash, has 0 items


-- 
Detlef Schmicker <[EMAIL PROTECTED]>

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


Re: [maemo-developers] glade-python-hildon

2006-06-28 Thread Thanos Panousis
The guy that initially made SimpleGladeApp seems to have his web page dead: http://primates.ximian.com/~sandino/python-glade/simplegladeapp.html
The thing is, using this class changes the development process as I can see... What happens if one does NOT use this class but goes directly to use a "clean" pyGTK+glade approach? What calls do I have to make to achieve "hildonization"?
Thanks for your replyI will probably use SimpleGladeApp, its just that I want to understand how to do this without it.On 6/28/06, Osvaldo Santana
 <[EMAIL PROTECTED]> wrote:Hi Thanos,
I've created a sample application using SimpleGladeApp recently. My suggestions:1 - Apply the following patch in SimpleGladeApp:   http://rafb.net/paste/results/JL9JMQ17.html
   The hildonmodule is "experimental" and magically hildonize astandard GTK+-based   glade file.2 - Take a look into hildonmodule to see how it works (its simple) andtry to apply the idea in your code.
Thanks,OsvaldoPS. I'm accepting patches to improve hildonglade module :)PS/2: I lost the sample application in a HD fail :/On 6/28/06, Thanos Panousis <
[EMAIL PROTECTED]> wrote:> Hello list,>> I am novice GTK/glade developer. I have a dummy application written in> pyGTK, and want to hildonize it.> The tutorial in the maemo site, descibes the way to do this for the gPodder
> application. However, this application has been written using a> "non-standard" blend of pyGTK and glade: it uses the simpleGladeApp class,> which changes the normal flow of standard pygtk-glade program.
[cut]--Osvaldo Santana Neto (aCiDBaSe)icq, url = "" "http://www.pythonbrasil.com.br")
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] libosso with python

2006-06-28 Thread Osvaldo Santana

On 6/27/06, Kimmo Hämäläinen <[EMAIL PROTECTED]> wrote:

On Tue, 2006-06-27 at 14:15, ext Tmm Laine wrote:
> Hello,

[cut]

> Another question related is how do I exactly use those MIME types with
> python so I could invoke rpc-methods of video-player with some files as
> parameters.

I don't know about the Python bindings, but if you use libossomime, you
should only need to pass the file name.


Unfortunatelly we haven't created bindings for libossomime yet. We
will start to work on it soon (Now I'm testing Python ctypes/libffi on
Maemo to enable developers to access the dynamic library functions
directly from Python).

Thanks,
Osvaldo

--
Osvaldo Santana Neto (aCiDBaSe)
icq, url = (11287184, "http://www.pythonbrasil.com.br";)
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] glade-python-hildon

2006-06-28 Thread Osvaldo Santana

Hi Thanos,

I've created a sample application using SimpleGladeApp recently. My suggestions:

1 - Apply the following patch in SimpleGladeApp:

  http://rafb.net/paste/results/JL9JMQ17.html

  The hildonmodule is "experimental" and magically hildonize a
standard GTK+-based
  glade file.

2 - Take a look into hildonmodule to see how it works (its simple) and
try to apply the idea in your code.

Thanks,
Osvaldo

PS. I'm accepting patches to improve hildonglade module :)
PS/2: I lost the sample application in a HD fail :/

On 6/28/06, Thanos Panousis <[EMAIL PROTECTED]> wrote:

Hello list,

I am novice GTK/glade developer. I have a dummy application written in
pyGTK, and want to hildonize it.
The tutorial in the maemo site, descibes the way to do this for the gPodder
application. However, this application has been written using a
"non-standard" blend of pyGTK and glade: it uses the simpleGladeApp class,
which changes the normal flow of standard pygtk-glade program.

[cut]

--
Osvaldo Santana Neto (aCiDBaSe)
icq, url = (11287184, "http://www.pythonbrasil.com.br";)
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] glade-python-hildon

2006-06-28 Thread Thanos Panousis
Hello list,I am novice GTK/glade developer. I have a dummy application written in pyGTK, and want to hildonize it.The tutorial in the maemo site, descibes the way to do this for the  gPodder application. However, this application has been written using a "non-standard" blend of pyGTK and glade: it uses the simpleGladeApp class, which changes the normal flow of standard pygtk-glade program.
My main class:class foo:	"""This is an Hello World GTK application"""	def __init__(self):		#Set the Glade file		self.gladefile
 = "smsit.glade"  self.wTree = gtk.glade.XML(self.gladefile) 		#Create our dictionay and connect it		dic = { "on_send_clicked" : self.send_clicked,			"on_MainWindow_destroy" : 
gtk.main_quit,			 }		self.wTree.signal_autoconnect(dic)		self.text = self.wTree.get_widget("text")		self.text = self.text.get_buffer()		if (self.text):
			self.text.connect("changed", self.on_text_changed)	def send_clicked(self, widget):		num = self.wTree.get_widget("phone_number").get_text()		print "sending to "+num
	def on_text_changed(self, widget):		#text = self.wTree.get_widget("text")pass	I guess that all the GTK-specific window initialization takes place with the call of 
gtk.glade.XML(gladefile). How can I tell my application to use the hildon-specific hildon.program() and hildon.window() to create a hildonized version of the app?Thank you,Thanos.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] Modifying the X Server

2006-06-28 Thread Dan Brinks

Hello-
I would like to make some changes to the X server running on the Nokia 770. 
How would I get the code that is running the X server, and how would I 
re-load the changes onto the 770?


Thanks,
Dan Brinks

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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


[maemo-developers] using gwconnect api

2006-06-28 Thread kurt ak
Hello, I'm just trying to get a list of bluetooth devices by using the gwconnect 
api (http://maemo.org/platform/docs/osso-gwconnect.html) with dbus.  However, 
I'm a still a bit new to dbus, and so far I've been able to issue the 
"start_search" method from com.nokia.btsearch.request, though it's not clear to 
me how I set up some kind of callback for the com.nokia.btsearch.signal 
interface and receive the "dev_found" signals.


I've tried one approach using dbus-glib (attached below) for setting up the 
callback, and I didn't find how to do so with libosso, so since this is the 
maemo list, maybe one of you could shed some light on how to set up listening 
for signals coming from com.nokia.btsearch.signal using libosso??


I also attached the majority of my testing main() function, using dbus-glib, and 
that didn't seem to set up a callback correctly either (or maybe start_search 
wasn't even handled properly) because i never received any dev_found signals.  I 
made sure there are some BT devices around me that should be found, b/c doing a 
"hcitool scan" returns a few.  Any hints??


Thanks much for your time,
kurt



int main( int argc, char **argv )
{
gboolean ret;
GMainLoop *loop;
DBusGConnection *bus;
GError *error = NULL;
DBusGProxy *proxy_request, *proxy_signal;

  g_type_init();
loop = g_main_loop_new(NULL, FALSE);

if( !( bus = dbus_g_bus_get( DBUS_BUS_SYSTEM, &error ) ) )
{
fprintf(stderr, "Unable to connect to the system D-BUS: 
%s\n",error->message);

return 1;
}


// invoke bt search method call over dbus
proxy_request = dbus_g_proxy_new_for_name(bus,
 "com.nokia.btsearch",
 "/com/nokia/btsearch/request",
 "com.nokia.btsearch.request" );

if( !proxy_request )
{
printf("Error: Couldn't get proxy_request. %s\n", error->message);
return 1;
}

proxy_signal = dbus_g_proxy_new_for_name(bus,
 "com.nokia.btsearch",
 "/com/nokia/btsearch/signal",
 "com.nokia.btsearch.signal" );

if( !proxy_signal )
{
printf("Error: Couldn't get proxy_signal. %s\n", error->message);
g_error_free(error);
return 1;
}

// call bt search method
error = NULL;

/* proxy, method, error, send type, send var, ... , receive type, rec. var 
... */
if( !dbus_g_proxy_call( proxy_request, "start_search", &error, 
G_TYPE_INVALID, G_TYPE_INVALID ) )

{
printf("Error calling dbus start_search method: %s\n",error->message);
g_error_free(error);
return 1;
} else {
printf("Successfully called dbus method start_search.  Setting up 
listener now..\n");

}

dbus_g_object_register_marshaller (
g_cclosure_user_marshal_VOID__STRING_STRING_POINTER_UCHAR_UINT,
G_TYPE_NONE,
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER,
G_TYPE_UCHAR, G_TYPE_UINT,
G_TYPE_INVALID );

dbus_g_proxy_add_signal( proxy_signal, "dev_found", G_TYPE_STRING, 
G_TYPE_STRING,

 G_TYPE_POINTER, G_TYPE_UCHAR, G_TYPE_UINT,
 G_TYPE_INVALID );

dbus_g_proxy_connect_signal( proxy_signal, "dev_found", 
G_CALLBACK(signal_handler), NULL, NULL );


g_main_loop_run (loop);
return 0;
}

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


Re: [maemo-developers] Developing for IT2006

2006-06-28 Thread Luca Donaggio
2006/6/28, Jussi Pakkanen <[EMAIL PROTECTED]>:
--- Marius Vollmer <[EMAIL PROTECTED]> wrote:> I am not even sure if services with a prefix other> than "com.nokia."> are supported at all.  You might try a "
com.nokia."> prefix and if that> works but not your own prefix, yell loudly.Prefixes other than com.nokia do not work. See here:https://maemo.org/bugzilla/show_bug.cgi?id=602
__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com
Well, I'm using it.opbyte as a prefix, and it seems to be working - at least the app doesn't close itself.Anyway, I'm not using any of the features provided by libosso / DBUS at this time, just doing an osso_initialize(), so it's still possible that something more advanced is broken.
Luca Donaggio
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Developing for IT2006

2006-06-28 Thread Jussi Pakkanen
--- Marius Vollmer <[EMAIL PROTECTED]> wrote:

> I am not even sure if services with a prefix other
> than "com.nokia."
> are supported at all.  You might try a "com.nokia."
> prefix and if that
> works but not your own prefix, yell loudly.

Prefixes other than com.nokia do not work. See here:

https://maemo.org/bugzilla/show_bug.cgi?id=602


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers