Re: [SailfishDevel] Pull data in background

2015-05-04 Thread Tomasz Sterna
Dnia 2015-05-02, sob o godzinie 22:27 -0300, Nicolas Cisco pisze: My problem is how should i poll notifications and messages. I have to periodically send an ajax call/http request to an url (eg: http://server addr/notifications) and the server will answer me with a json with all the new

Re: [SailfishDevel] Keeping background process running in Sailfish OS

2015-05-04 Thread Tomasz Sterna
Dnia 2015-05-03, nie o godzinie 05:08 +, Taixzo pisze: Is there a way to make an app launch a daemon process that does not get killed by this? It is very easy to launch a user-systemd lever service. Just create .service descriptor file and systemctl --user start ... it. If it becomes RAM

Re: [SailfishDevel] Pull data in background

2015-05-04 Thread Andrey Kozhevnikov
you need to do it in separate class and implement dbus service for showing running instance when click icon again. try to do it yourself and tell me if you will not success, i'll give you minimal example. 04.05.2015 06:09, Nicolas Cisco пишет: I've create the gui view and set

Re: [SailfishDevel] 回复:Re: could we support hw overlay from gst-droid?

2015-05-04 Thread Mohammed Hassan
On Mon, May 04, 2015 at 12:04:57PM +0300, Tone Kastlunger wrote: Ok I see, so the stack is actually: lipstick - QTGStreamer - GStreamer - OpenGLES. QTGStreamer is not used at all. In that case, perhaps a subsurface can do the job. Thing is, how does the upstream stack handle it? AFAIK

Re: [SailfishDevel] QML arrays and memory leak

2015-05-04 Thread Peter Kovacs
Hi Kim, ohh! Okay! Have you tried splice instead? Array.prototype.splice (start, deleteCount [ , item1 [ , item2 [ , … ] ] ] ) I think maybe something like: accarr.splice(0,1,float) Looks more neat and it is in the normal javascript canon. Did not find the documentation on javascript and qt

Re: [SailfishDevel] Pull data in background

2015-05-04 Thread Nicolas Cisco
Thansk Andrey!, i managed to do it with dbus, for the record i've written a blog post with the code: http://nckweb.com.ar/sailing-code/2015/05/04/closing-an-application-without-killing-the-main-loop/ Tomasz Sterna, i didn't know that telepathy protocol existed nor it was implemented on sailfish.

[SailfishDevel] QML arrays and memory leak

2015-05-04 Thread Kim Foder
Hi For some time I have been battling a memory leak in my pedometer app, after a lot of experimentation, I have found the problem to be my use of arrays (probably)! Whenever I receive an acceleration measurement, some statistical calculations are made, which results in one float pr.

Re: [SailfishDevel] QML arrays and memory leak

2015-05-04 Thread Kim Foder
Hi Peter Why use an array and not a vector or an Hash map? As far as I know those are not supported under javascript, otherwise a vector would have been my first choice, an Hash map is overkill for my needs, I only need to add to the end, and always need sequential read. I am tempted to move

Re: [SailfishDevel] QML arrays and memory leak

2015-05-04 Thread Peter Kovacs
Why use an array and not a vector or an Hash map? Am 04.05.2015 22:20 schrieb Kim Foder k...@foder.dk: Hi For some time I have been battling a memory leak in my pedometer app, after a lot of experimentation, I have found the problem to be my use of arrays (probably)! Whenever I receive