**** BEGIN LOGGING AT Sun Sep 29 02:59:59 2013 Sep 29 13:34:08 ping: M4rtink Sep 29 13:36:48 sixwheeledbeast: pong Sep 29 13:37:35 hi :) IIRC you asked about how to monitor internet connection on n900 a few days ago? Sep 29 13:42:17 sixwheeledbeast: yes Sep 29 13:42:37 sixwheeledbeast: I know I can register a callback and get notified about connectivity changes Sep 29 13:42:46 M4rtinK: have you seen connectionmanager.py? Sep 29 13:43:04 sixwheeledbeast: but the issue was how to check if the device is online at a given time Sep 29 13:43:15 sixwheeledbeast: no, where does it live ? :) Sep 29 13:43:56 It seems to be included in sereisfinale to make the update button appear. also in resistance and last.fm etc etc Sep 29 13:46:01 sixwheeledbeast: thanks, I'll check it out :) Sep 29 13:46:21 M4rtinK: http://pastebin.com/PNpUpsYk I thought it maybe worth mentioning, I guess you could just import it in to your code. Sep 29 13:46:22 sixwheeledbeast: for now, I'm using this: https://github.com/M4rtinK/modrana/blob/master/modules/device_modules/base_device_module.py#L230 Sep 29 13:46:41 based on example code from r00t|home Sep 29 13:47:02 seems to work quite fine both on the N900 and PC at least :) Sep 29 13:48:56 M4rtinK: it's in that pastebin if needed, seems a standard file that's imported into lots of maemo apps. :) Sep 29 13:50:10 yeah, there are some other like this :) Sep 29 13:50:19 M4rtinK, BTW, is it true that if I zoom somewhere without a connection to see the "Downloading..." tiles and connect after that the tiles won't download? Sep 29 13:50:26 for example the automatic rotation code from GPodder Sep 29 13:50:45 M4rtinK, the question is about ModRana Sep 29 13:50:53 int_ua: could be Sep 29 13:51:09 but if you zoom in and out again a bit Sep 29 13:51:31 the stale download requests should get replaced by new ones and it should start downloading tiles normally Sep 29 13:52:16 int_ua: but a good point, there might be room for improvement Sep 29 13:52:49 int_ua: I can check if the device is online or not and display an appropriate error/info tile Sep 29 13:53:11 M4rtinK: AFAIK this uses the connection to see if it's available. It your code if gateway was missing or firewall issues it may not work. Sep 29 13:53:38 int_ua: and start downloading once Internet is available Sep 29 13:53:44 s/It/It uses Sep 29 13:54:50 sixwheeledbeast: well, it tries to guess in Internet is available Sep 29 13:55:14 sixwheeledbeast: so missing gateway should not be an issue, as long as it reports "not online" Sep 29 13:56:22 sixwheeledbeast: sure, I could ping some IP address or website, but that could have user privacy implications Sep 29 13:57:16 sixwheeledbeast: BTW, regarding connectionmanager.py Sep 29 13:57:27 If I understand it correctly, I already have this Sep 29 13:57:39 so far I've had very little luck in finding a FOSS Game Boy Color emulator for the N900 -- I have gbSP installed, but it doesn't seem to be able to open/play Game Boy Color ROMs (which is somewhat ironic, because the real Game Boy Advance *does* run GBC games ;-); the relevant wiki page (http://wiki.maemo.org/Games) lists only Marat Fayzullin's _non-free_ VGB emulator...am I just failing at using maemo.org's search/Google properly or is it so that t Sep 29 13:57:39 he only emulator capable of handling .gbc files is a closed-source one? :-/ Sep 29 13:57:56 I register a callback and tel icd to get me a connection using saved settings Sep 29 13:57:59 neo900 eh? :o Sep 29 13:58:09 it sounds too good to be true Sep 29 13:58:15 but, it sounds so good if true :) Sep 29 13:58:44 but if I understand it correctly, if the device ie already connected, the callback won't be called, as there will be no changes in connectivity Sep 29 13:59:50 M4rtinK: Ok I am no expert, I noticed this in the source of seriesfinale and thought I'd mention it, save you time writing something :) Sep 29 14:02:23 sixwheeledbeast: still thanks, I think I might still find something useful in the code Sep 29 14:03:17 sixwheeledbeast: does seriesfinake show the update button even if launched with Internet connectivity already established ? Sep 29 14:03:49 M4rtinK: np, it is used to add/remove a update button depending on connection state in seriesfinale Sep 29 14:04:23 I think one of the flags it is passing to conic might make it call the connectivity callback immediately once the callback is registered Sep 29 14:05:00 sixwheeledbeast: that's what I mean - if the callback was only called on changes in connectivity Sep 29 14:05:29 sixwheeledbeast: if seriesfinale was launched with connectivity enabled, it would not show the button Sep 29 14:05:46 let me check Sep 29 14:05:51 aa the callback would not be called until Internet connectivity was disabled and enabled Sep 29 14:07:44 *and Sep 29 14:11:51 I guess there might be some magic involved with the conic.CONNECT_FLAG_AUTOMATICALLY_TRIGGERED flag Sep 29 14:12:14 mhm Sep 29 14:12:23 googling for it turns only the series finale code Sep 29 14:12:58 conic is closes, isn't it ? Sep 29 14:13:09 nope, conic is open Sep 29 14:13:35 http://repository.maemo.org/pool/maemo5.0/free/libc/libconic/ Sep 29 14:14:14 I bet its mostly a wrapper around the icd dbus APIs Sep 29 14:15:18 it really should be only wrapper around icd2 dbus api Sep 29 14:38:54 New modRana :) Sep 29 14:42:11 sixwheeledbeast: yeah, finally :) Sep 29 14:42:36 sixwheeledbeast: I'm working on the release announcement Sep 29 14:42:58 is has fixes for A LOT of issues : Sep 29 14:42:59 :) Sep 29 14:43:28 M4rtinK: I always keep one eye on the latest packages, fixes are the most important updates :) Sep 29 14:43:40 I'm thinking about pushing this version to testing if nothing serious shows up in the next few days Sep 29 14:49:01 M4rtinK: that would be great. I am looking for packages worthy of extras for the "testing squad" ;) Sep 29 14:50:47 It's been a while since the extras version was updated. 36.6? Sep 29 14:55:18 DocScrutinizer05, GeneralAntilles: any progress about /. annoucement? Sep 29 14:58:06 Negative Sep 29 14:58:14 I'll try to do it tonight. Sep 29 14:58:37 k Sep 29 14:59:00 sixwheeledbeast: yep, there were quite a lot of invasive changes in between Sep 29 14:59:19 sixwheeledbeast: & also the Extras infra was also a bit in flux Sep 29 14:59:32 sixwheeledbeast: so that's why Sep 29 14:59:34 :) Sep 29 15:02:10 M4rtinK: :nod: I understand. You also have to have a good balance of development and public releases, or you wouldn't get extra features Sep 29 15:02:38 M4rtinK: sure Sep 29 15:02:42 hmm Sep 29 15:02:46 sixwheeledbeast: sure :) Sep 29 15:03:32 sixwheeledbeast: modRana is a bit extreme in this regard, as usually you release a version and then do builds that patch the base version and fix issues Sep 29 15:04:01 sixwheeledbeast: while development goes forward in a devel branch, which is then stabilised, released, etc. Sep 29 15:04:33 sixwheeledbeast: but all modRana releases are done from the master branch :) Sep 29 15:04:47 well I guess many smaller projects do it like this Sep 29 15:07:20 It's seems for most mid-large projects the way you suggest is the best Sep 29 15:08:55 many packages in maemo are not that complex. You have modRana working on many platforms and it has a fair bit of code in there. Sep 29 15:15:05 Does anybody know if a license can be removed if the source code was modified way too much? For example if the code was changed so much that it doesn't even have any line that is the same as the original one Sep 29 15:19:11 OK then, there is the modRana V0.43.3 release announcement - enjoy ! :D http://talk.maemo.org/showpost.php?p=1377581&postcount=1461 Sep 29 15:30:25 Sysaxed: then it's not the same code Sep 29 15:34:18 sixwheeledbeast: what do you mean? Sep 29 15:35:18 well if none of the code is the same then you haven't use any code Sep 29 15:37:15 and what if some code persists? Just a little bit Sep 29 17:52:38 sixwheeledbeast: looks like directly requesting connection from conic does the trick Sep 29 17:52:43 sixwheeledbeast: request_connection(conic.CONNECT_FLAG_AUTOMATICALLY_TRIGGERED) Sep 29 17:53:19 sixwheeledbeast: like this the connection state callback is called at once with current connection status Sep 29 17:53:56 sixwheeledbeast: so if the device is online, the application will be notified once trying to enable connectivity Sep 29 17:54:15 sixwheeledbeast: also looks like the callback is called once registered at startup Sep 29 17:54:30 sixwheeledbeast: so like this, the whole application lifecycle should be covered Sep 29 17:55:12 sixwheeledbeast: so thanks for pointing me to the connectionmanager.py script :) Sep 29 20:16:29 M4rtinK: np, anytime. Thanks for explaining. :) Sep 29 23:46:41 DocScrutinizer05: Ping Sep 30 00:14:41 jonwil: pong Sep 30 02:52:47 btw DocScruitinizer05, what you were saying the other day about replacing the contacts/addressbook app, that would involve replacing osso-addressbook, libosso-abook or both. Sep 30 02:52:58 likely libosso-abook (which does have a -dev package btw) Sep 30 02:53:39 I am seeing now which functions osso-addressbook and libosso-abook call that we have no documentation for Sep 30 02:56:03 The only dbus interfaces osso-abook deals with are com.nokia.osso_addressbook (which it exposes) and com.nokia.ascntui (which it talks to) Sep 30 02:59:22 oh wait it also talks to com.nokia.bt_ui **** ENDING LOGGING AT Mon Sep 30 02:59:58 2013