Re: [SailfishDevel] Flatpak support by Lipstick

2020-02-10 Thread Andrew Branson

Hi Rinigus,

I don't think the Wayland window className method is the right thing for 
you - on further investigation this is used by aliendalvik because of 
its unusual shared window handling. Your flatpak apps wouldn't do that 
sort of thing, so we can handle this more simply.


I did find where the support for X-Nemo-Single-Instance lives. It seems 
to only interact with apps using the invoker:


https://git.sailfishos.org/mer-core/libcontentaction/blob/master/src/exec.cpp#L77

From the other TJC question about python3, it looks like this might 
still be broken, but as you're not using the invoker I don't think it 
would help you as it stands. More investigation is needed into why it's 
not working, but I think that patch might be too simple.


I think what's needed for flatpak and other launchers is some directive 
to check the first argument as well as the binary. Will look into the 
best way to do that. It'd be nice if it coped with apps that take 
additional arguments too - no doubt there'll be a need to associate 
flatpak apps with mimetypes. A good solution here could well obsolete 
the broken single-instance completely - I'm not sure what use it has 
otherwise.


Cheers,

Andrew

On 07/02/2020 18:05, rinigus wrote:

Hi,

starting as a new thread with the specific subject. As discussed during 
the last meeting, would be great to get Flatpak app ID support by 
Lipstick. Idea is to ensure that a single app is started once. I will 
try to summarize below, please correct me if I am wrong.


As an ID detected by Lipstick can be from desktop file indicated by 
X-Flatpak.


As a helper, we can use flatpak-runner, as it is already. That would 
require flatpak-runner settings its Wayland className to the one 
corresponding to Flatpak ID.


I don't know how to set Wayland className, please advise. Sounded like 
@abranson could help with Lipstick part, as for Wayland parts, I don't 
know who could help.


BTW, if someone wishes to help with Flatpak support, please let me know. 
Right now, I am mainly working on the Angelfish browser to a add some 
missing functionality and polish it. Flatpak runner issues are at 
https://github.com/sailfishos-flatpak/flatpak-runner/issues . For 
example, selector (combobox), when opened on such pages as TMO, requires 
some composing. Looks I may have removed too much of the composing 
support from qxcompositor code in flatpak-runner...


As a side note, its unclear why single instance support was dropped from 
Lipstick. Maybe there is some history behind. Otherwise, would be great 
to get it fixed (my personal opinion)


Thank you very much for constructive discussion yesterday!

Cheers,

Rinigus

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] [Minutes] Sailfish OS, OSS community meeting on 12 Dec 2019

2019-12-12 Thread Andrew Branson

Hi,

Thanks to everyone who took part in the community meeting; there were 
some very interesting discussions. It seems that the poor Merbot managed 
to build the minutes anyway, so here they are. What a hero of a bot.


Minutes: 
http://merproject.org/meetings/mer-meeting/2019/mer-meeting.2019-12-12-09.02.html
Minutes (text): 
http://merproject.org/meetings/mer-meeting/2019/mer-meeting.2019-12-12-09.02.txt
Log: 
http://merproject.org/meetings/mer-meeting/2019/mer-meeting.2019-12-12-09.02.log.html


Next meeting will be held on Thursday 9th January 2020 at 09:00 UTC

Please announce your topics on the planning page below:

https://together.jolla.com/question/54157/sailfishos-open-source-collaboration-meeting-planning/

Thanks again,

Andrew

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] CalDAV/CardDAV Contributor Meeting

2017-12-08 Thread Andrew Branson

Hi,

08h00 UTC is fine for me as I'm on CET (+1). Are they any GMT'ers 
wanting to participate?


Andy

On 08/12/17 08:26, Chris Adams wrote:

Hi Damien,

Let's keep it at 0900 for the one this coming Monday night, because that 
probably suits Andrew Branson a bit better.  But we can move it forward to 0800 
for meetings after that, let's discuss during the meeting :-)

Thanks,
Chris.


From: Devel [devel-boun...@lists.sailfishos.org] on behalf of Damien Caliste 
[dcali...@free.fr]
Sent: Tuesday, December 05, 2017 5:55 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] CalDAV/CardDAV Contributor Meeting

Hello Chris,

Le 2017-12-04 04:15, Chris Adams a écrit :

My apologies - but this will have to be postponed until next Monday.

No problem.


Sorry for the late notice, but it turns out that I will not be
available tonight after all.

For later on meetings, it is fine with me to shift them earlier at
8.00UTC if it's more convenient to you and suits everyone else.

Have a nice day,

Damien.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] OBS questions

2017-07-26 Thread Andrew Branson

Hi,

On 26/07/17 09:24, rinigus wrote:
> Hi,
>
> I am working on getting ported packages to OBS and facing few problems,
> as probably most of the beginners do. Maybe someone here can help me out?
>
> Problem 1: I have a bunch of packages that have external source and rpm
> spec written in a small separate project. Let's take rrdtool as an
> example with my github repo https://github.com/rinigus/pkg-rrdtool . Its
> spec contains source as a full URL. Now, I would like to download it
> from that URL by OBS either during building or as a part of its
> _service. Unfortunately, unlike in several other CI servers, network
> seems to be disabled. So, the snippet in RPM as
>
> %setup -q -n %{name}-%{version}
> curl -O %{REMSOURCE0}
> tar zxvf rrdtool-1.5.6.tar.gz --strip-components=1
>
> doesn't work (ifconfig returns only loopback device). We also don't have
> download_files among allowed _service APIs, as returned by osc api
> /service. Maybe this can be enabled on OBS? As far as I understand, it
> should download all sources specified in the spec file. Personally, I
> find it rather disturbing putting .tar.gz into github project and would
> prefer getting the upstream package from the upstream source.

We reference external sources as git submodules. The 'tar_git' service 
will clone those along with your main repo. Our basic pattern is this 
plus patch files in the rpm folder to apply any specific changes we need.


Here's an example: https://git.merproject.org/mer-core/augeas
And the _service file:
https://build.merproject.org/package/show/mer-core:devel/augeas

> Problem 2: When creating package from github source (like for proj.4 in
> my case), I get as a version of packaged RPM the version that I
> specified together with (what looks like) git's latest commit signature
> together with the corresponding branch name leading to package names
> like
> 
proj-4.9.3+sailfish.20170726042718.6.ge9a0f09-10.20.1.jolla.armv7hl.rpm 
. How can I make it shorter to proj-4.9.3.armv7hl.rpm ?


OBS takes the version string from the latest git tag. Create a tag with 
your desired version string, e.g. '4.9.3'. You can copy this behaviour 
in mb2 with the '-x' switch.


Hope that helps,

Andrew
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] SQLite linking

2017-03-04 Thread Andrew Branson
Hi,

I've had a look internally about this, and it's caught up in a larger overhaul 
of the whitelist and harbour rules aiming to make development more attractive 
to developers while remaining maintainable. This is part of the reason you 
haven't had any feedback yet, but also everyone's got caught up in the huge 
amount of work lately that you've now seen some news about.

It's not great when external PRs and bugs on the merproject bugzilla appear to 
look dead because they're blocked internally but not visibly, especially when 
someone's taken the time and trouble to investigate and submit something. Sorry 
about that. Even if the internal progress on such things can't be made public, 
an acknowledgement would be nice. The apparent silence doesn't mean your 
efforts aren't appreciated nor influential.

Hope that helps a bit,

Andrew

On Saturday, 4 March 2017, rinigus wrote:
> Re OpenRepos: Sure, and I do. And through bundling I am publishing @Harbour. 
> But the main issue is the lack of response for a rather simple request. Even 
> a negative response is a response. 
> 
> 
> Sorry for complains. Enjoy the weekend and let's see if Jolla devs would 
> respond during the work hours :)
> 
> 
> rinigus
> 
> 
> On Sat, Mar 4, 2017 at 2:22 PM, Marcin Mielniczuk  
> wrote:
> 
> You can always use OpenRepos... 
> 
> 
> 
> On March 4, 2017 8:50:37 AM GMT+01:00, rinigus  wrote: 
> Hi, 
> 
> 
> one month + 10 days later - no response for PR nor SQLite linking from 
> Harbour / Jolla devs. Already had to ship few versions with SQLite bundled 
> with application as well. I'd say its rather poor response times already now 
> (with the response time not reached yet). 
> 
> 
> Rinigus
> 
> 
> 
> 
> On Wed, Jan 18, 2017 at 4:30 PM, rinigus  wrote:
> 
> Slava, 
> 
> 
> thank you for this constructive suggestion. I submitted PR 
> https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/pull/86 to add 
> sqlite into the list of allowed libraries. Hopefully, it will be accepted.
> 
> 
> Best wishes,
> 
> 
> Rinigus
> 
> 
> On Wed, Jan 18, 2017 at 3:29 PM, Slava Monich  wrote:
> 
> I believe rpm automatically detects the dependencies, even if they are not in 
> the spec. Removing the dependency from the spec might not help. There may be 
> some hackish ways of removing a dependency from the rpm headers but I don't 
> think that it would be a good idea. Better to spend time on hacking something 
> more useful than that.
> 
> Another approach is to load the library with dlopen, e.g.
> https://github.com/monich/harbour-books/blob/master/app/stubs/libmagic.c
> This allows you to get around the harbour limitations and yet in every other 
> respect it's as good as linking with the system library. Of course by doing 
> so you assume the risk of using the unsupported api. Obviously, this kind of 
> trick should only be done to very stable libraries that are extremely 
> unlikely to disappear from the system and have a proven track record of 
> evolving in a backward compatible manner.
> I think the best solution is to add sqlite3 to allowed_libraries.conf and 
> submit a pull request:
> https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/blob/master/allowed_libraries.conf
> 
> Cheers,
> 
> -Slava
> 
> 
> 
> 
> 
> Is the automatic checker not allowing it through with sqlite3 as a 
> requirement? Are you sure that you used the packagename used on jolla systems 
> for the requirement?
> 
> 
> During deployment as RPM, the specific error is 
> 
> 
>  Requires
> 
> ERROR [libsqlite3.so.0] Cannot require shared library: 'libsqlite3.so.0'
> INFO [harbour-osmscout-server] Please see our FAQ here: 
> https://harbour.jolla.com/faq#2.6.0 how to use '__provides_exclude_from' and 
> '__requires_exclude' .spec file to avoid that
> FAILED
> 
> 
> earlier versions of this app were published in the store without any issues. 
> Its a part of the app evolution to require sqlite3 for its function, at least 
> for a time being.
> 
> 
> I agree that static linking of sqlite3 is not necessary and can be considered 
> as a bloat. Hence my question :)
> 
> 
> rinigus
> 
> 
> 
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
> 
> 
> 
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> Sent from my mobile. Please excuse my brevity.
> 
>

-- 
Sent from my Jolla
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Long term TCP connection

2017-01-18 Thread Andrew Branson

Hi,

On 18/01/17 12:45, george b wrote:

But my testing environment was using wifi only. And I expected the TCP
connection to last longer then just 30 minutes and then collaps.


I think further testing might be needed there - such a problem would 
have been noticed by others. Personally I have ssh sessions open on 
phones all day with no dropouts. Do your ssh session collapse too?



One other thing:
What do I need to implement to allow an app to be configured to run as a
background service? Like WhatsApp in Settings -> Apps -> WhatsApp ->
'Allow start of background services on device turn on'?


The equivalent to Android services in Sailfish OS would be daemons. 
Daemons are generally implemented as secondary processes that are 
launched in the background when the app is run, and keep going after the 
app is closed. This process communicates with the main app using some 
sort of inter-process communication such as DBus.


Such process can also be launches as systemd services, but that isn't 
allowed in the Jolla store yet. Some people publish the systemd 
configuration on openrepos, as a companion 'auto-launch' package to the 
main app in the store.


Hope that helps,

Andrew
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] sudo doesn't work in platform SDK

2016-12-23 Thread Andrew Branson
I think the new guide says it should go in /srv for that reason. Remember to 
mount or link /parentroot/srv to your chroot one! Else you won't see the 
targets.

Glad it helped,

Andrew

On Friday, 23 December 2016, Erik Lundin wrote:
> Thanks, Andrew, that was the problem! I had it installed in a folder in
> my home directory, which is on an ecryptfs file system. When using the
> default (/srv) instead, it seems to work. This should be added to "Known
> Issues" in the article on the wiki.
> 
> /Erik
> 
> Den 2016-12-23 kl. 21:11, skrev Andrew Branson:
> > Hi,
> > 
> > Where's your sdk installed? I had a problem when I tried to install it in 
> > my home. It was an encrypted home which was mounted with nosetuid, which 
> > overrode the setuid flag on the sudo binary.
> > 
> > Hope that helps,
> > 
> > Andrew 
> > 
> > On Friday, 23 December 2016, Erik Lundin wrote:
> >> Hello,
> >>
> >> I'm trying to get going with the platform SDK, following
> >> https://sailfishos.org/wiki/Platform_SDK_Installation, but sudo doesn't
> >> seem to work. This is what I get when entering the SDK environment:
> >>
> >> erik@zix:~/dev$ sfossdk
> >> [sudo] password for erik:
> >> Mounting system directories...
> >> Mounting / as /parentroot
> >> Mounting home directory: /home/erik
> >> Entering chroot as erik
> >> su: ignoring --preserve-environment, it's mutually exclusive with --login
> >> Last login: Sun Dec 18 21:35:58 UTC 2016 on pts/1
> >> PlatformSDK erik@zix:~/dev$ sudo ssu ar sdk
> >> sudo: effective uid is not 0, is sudo installed setuid root?
> >>
> >> sudo has the setuid flag, so I don't understand what the problem is.
> >>
> >> PlatformSDK erik@zix:~/dev$ ls -l /usr/bin/sudo
> >> -rwsr-xr-x 1 root root 123288 Aug 14  2013 /usr/bin/sudo
> >>
> >> OS: Linux Mint 17.3.
> >>
> >> /Erik
> >> ___
> >> SailfishOS.org Devel mailing list
> >> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.or
> > 
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.or

-- 
Sent from my Jolla
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] sudo doesn't work in platform SDK

2016-12-23 Thread Andrew Branson
Hi,

Where's your sdk installed? I had a problem when I tried to install it in my 
home. It was an encrypted home which was mounted with nosetuid, which overrode 
the setuid flag on the sudo binary.

Hope that helps,

Andrew 

On Friday, 23 December 2016, Erik Lundin wrote:
> Hello,
> 
> I'm trying to get going with the platform SDK, following
> https://sailfishos.org/wiki/Platform_SDK_Installation, but sudo doesn't
> seem to work. This is what I get when entering the SDK environment:
> 
> erik@zix:~/dev$ sfossdk
> [sudo] password for erik:
> Mounting system directories...
> Mounting / as /parentroot
> Mounting home directory: /home/erik
> Entering chroot as erik
> su: ignoring --preserve-environment, it's mutually exclusive with --login
> Last login: Sun Dec 18 21:35:58 UTC 2016 on pts/1
> PlatformSDK erik@zix:~/dev$ sudo ssu ar sdk
> sudo: effective uid is not 0, is sudo installed setuid root?
> 
> sudo has the setuid flag, so I don't understand what the problem is.
> 
> PlatformSDK erik@zix:~/dev$ ls -l /usr/bin/sudo
> -rwsr-xr-x 1 root root 123288 Aug 14  2013 /usr/bin/sudo
> 
> OS: Linux Mint 17.3.
> 
> /Erik
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.or

-- 
Sent from my Jolla
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Updating gcc?

2016-11-05 Thread Andrew Branson
Noted, thanks. Looks like lbt's the one to convince there ;)

Cheers,

Andrew

On Sat Nov 5 16:44:56 2016 GMT+0100, Roberto Colistete Jr. wrote:
>  Hi,
> 
>  The Mer/Sailfish community wants to run Fortran compiler on device 
> (like gcc/g++), which is also a dependency for packages R, NumPy, SciPy, 
> etc. See the Talk Maemo.org topic "Fortran for Sailfish OS ?" :
> http://talk.maemo.org/showthread.php?t=93925
> 
>  So if possible, please make gcc-fortran package with the new 
> gcc/g++ version.
> 
>  Best regards,
> 
>  Roberto
> 
> 
> Em 05-11-2016 07:09, Andrew Branson escreveu:
> > It's funny you should ask - we're actually hacking around there right 
> > now while getting aarch64 building. The choice is a tricky one though 
> > - the more you upgrade something like gcc, the more potential problems 
> > can be caused in every single package containing C or C++ source.
> >
> > Thanks for the suggestion though, I'll have a play with newer versions 
> > during this process to see the impact.
> >
> > Cheers,
> >
> > Andrew
> >
> > On 04/11/16 22:08, Marcin Mielniczuk wrote:
> >> Current gcc in Mer is 4.8, which is 2 years old. Current releases (5.4,
> >> 6.1) have full support for C++14, 4.8's support for C++11 is only
> >> experimental.
> >>
> >> C++11 brought many important changes such as constexprs or simply really
> >> useful ones (auto types). It'd be great to have them in Mer.
> >>
> >> Are there any plans for updating gcc in Mer?
> 
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
>

-- 
Sent from my Jolla
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Updating gcc?

2016-11-05 Thread Andrew Branson
It's funny you should ask - we're actually hacking around there right 
now while getting aarch64 building. The choice is a tricky one though - 
the more you upgrade something like gcc, the more potential problems can 
be caused in every single package containing C or C++ source.


Thanks for the suggestion though, I'll have a play with newer versions 
during this process to see the impact.


Cheers,

Andrew

On 04/11/16 22:08, Marcin Mielniczuk wrote:

Current gcc in Mer is 4.8, which is 2 years old. Current releases (5.4,
6.1) have full support for C++14, 4.8's support for C++11 is only
experimental.

C++11 brought many important changes such as constexprs or simply really
useful ones (auto types). It'd be great to have them in Mer.

Are there any plans for updating gcc in Mer?


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] SilicaWebView, google sign-in button and app authorization

2016-10-16 Thread Andrew Branson
Reading their reasonings in the reg article, they should allow use of the new 
Silica Webview, provided it is used with the user's browser profile. After all, 
it is just an embeddable version of the main browser, rather than a classic 
webview. Maybe it should have its name changed...

On Sun Oct 16 17:28:06 2016 GMT+0200, Kimmo Lindholm wrote:
> But that should start for new ones on 20th oct, and full blockage april 2017 ?
> So you should be still fine.
>  
> (this is not helping you problem though)
>  
> From: Devel [mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Oleg 
> Linkin
> Sent: 16. lokakuuta 2016 17:28
> To: Sailfish OS Developers
> Subject: Re: [SailfishDevel] SilicaWebView, google sign-in button and app 
> authorization
>  
> I don't know, but 
> http://www.theregister.co.uk/2016/08/23/google_to_block_web_views_from_using_its_oauth/
>  
> 2016-10-16 16:43 GMT+03:00 Slava Monich :
> Please excuse my ignorance but how can the server possibly tell the 
> difference between the browser and a webview sending exactly the same HTTP 
> requests? Just curious.
> 
> Cheers,
> -Slava
>  
> There is no working solution because google prohibited oauth authorization 
> via webviews
>  
> 2016-10-16 15:02 GMT+03:00 :
> Care to share your code?
> 
> Oleg Linkin kirjoitti ma lokakuuta 10 09:08:52 2016 GMT+0300:
> > Hello developers.
> > I try to implement authorization via google in my applications but I have
> > one problem.
> > In sailfish browser authorization works the next way:
> > Click on google sign-in button
> > Open new page with google authorization
> > Denied/Grant permissions to app
> > Page closed automatically
> > Page with google sign-in button reloaded automatically
> >
> > But in webview the last 2 steps doesn't work. Does anybody has ideas how I
> > can do this?
> >
> > Thx
> >
>  
> 
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
>  

-- 
Sent from my Jolla
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Sailfish OS Open Source Community Collaboration Meeting 2nd of June 2016

2016-06-02 Thread Andrew Branson
I'm not sure but think it's a triple store, so a rudimentary one. On 
Sailfish it seems to be intended for more action, as there are a couple 
of disabled stores in there...


On 02/06/2016 2:42pm, Tone Kastlunger wrote:

In a distributed fashion it may make sense;
speaking of which, doesn't tracker implement a graph db?

On Thu, Jun 2, 2016 at 3:40 PM, Andrew Branson
<sfdevl...@andrewbranson.net <mailto:sfdevl...@andrewbranson.net>> wrote:

I'm missing how your contacts can be linked as a graph on your
phone. I assumed it was about which of your friends know each other,
but that isn't relevant information on the client side. I don't
think it's even easily available in the main social networks.

Andy

On 02/06/2016 2:34pm, Tone Kastlunger wrote:

On the RDBMS vs Graph DB's discussion, the point Peter is making
is a
very solid one;
the purpouse of the contacts app is to mange contacts; hence how
they
are connected;
if relying on a Graph DB provides a simpler implementation (in
terms of
raw lines of code I mean) in upper implementation levels,
whilst helping in keeping data consistency in a flawless and
hassle-free
way (which SQL can help with only up to a certain extent),
well it definitely sounds too good to be true (at least from what I
understood):
I'd agree with Neo4J on a phone being somewhat of an overkill
(same as
having Postgres for instance); I'd wonder if there are embedded
versions
of it?
I'd say especially within Jolla's Social/Address book/mail/calendar
contacts management peculiarities, plus the dual SFOS/Android
world, it
requires a
rock-solid contact management system, I'd assume.

tk


On Thu, Jun 2, 2016 at 3:22 PM, Andrew Branson
<sfdevl...@andrewbranson.net
<mailto:sfdevl...@andrewbranson.net>
<mailto:sfdevl...@andrewbranson.net
<mailto:sfdevl...@andrewbranson.net>>> wrote:

 Hi!

 RDBMSes are not very good at graphs, or trees, or any other
data
 structure that requires variable traversal steps in
queries. I don't
 think we have that here though. Those social networks only have
 graphs when they're integrating your data with other
people's, but
 personally you just have your own address book and your own
 calendars. Both of those consist of many instances of the
same data
 structures which need to be indexed, which is a good use of
 relational databases.

 Your point about SQL being used out of habit is always
pertinent
 though. It's important to keep on top of the NoSQL options,
as SQL
 is definitely overused. I always find it very irritating
when SQL is
 used only for config storage, using tables with single rows
and many
 columns. Berkeley DB would be a good alternative for that.
I don't
 know if the graph DBs are ready yet though - Neo4J is very
 interesting, but I would never run a Java server in a phone.

 While we're on the subject, I think the Nemo thumbnail DB is a
 really good candidate for a NoSQL database. It's currently
a huge
 collection of tiny files that seems to take up way too much
BTRFS
 allocation, and I don't think as a collection of binary
files it
 would be a good match for SQLite.

 Andy


 On 02/06/2016 1:42pm, Peter Kovacs wrote:

 Well SQL is in my opinion good for grouping or conduct
 calculations on
 transactional data.
 Updating, or adding / sorting is not is best
discipline. It is
 medicore
 in my opinion.
 On small sets of data as used in phones medicore
performance is
 still
 quick. Phones are quite powerfull today.

 However the feature the DB should excel should be, in
my eyes
 social,
 stuff. It is a phone after all, intended to maintain my
social
 life, or?

 And Facebook, amazon, google+ does not use relational
databases.
 They
 use graph databases. So I wonder why this is not used
on phones.
 Neo4j
 claims to outperform relational databases by a factor
of 1000
 when it
 comes to relationships.

 I admit these softwares are very latest technology. And
maybe not as
 robust as sqlli

Re: [SailfishDevel] Sailfish OS Open Source Community Collaboration Meeting 2nd of June 2016

2016-06-02 Thread Andrew Branson
I'm missing how your contacts can be linked as a graph on your phone. I 
assumed it was about which of your friends know each other, but that 
isn't relevant information on the client side. I don't think it's even 
easily available in the main social networks.


Andy

On 02/06/2016 2:34pm, Tone Kastlunger wrote:

On the RDBMS vs Graph DB's discussion, the point Peter is making is a
very solid one;
the purpouse of the contacts app is to mange contacts; hence how they
are connected;
if relying on a Graph DB provides a simpler implementation (in terms of
raw lines of code I mean) in upper implementation levels,
whilst helping in keeping data consistency in a flawless and hassle-free
way (which SQL can help with only up to a certain extent),
well it definitely sounds too good to be true (at least from what I
understood):
I'd agree with Neo4J on a phone being somewhat of an overkill (same as
having Postgres for instance); I'd wonder if there are embedded versions
of it?
I'd say especially within Jolla's Social/Address book/mail/calendar
contacts management peculiarities, plus the dual SFOS/Android world, it
requires a
rock-solid contact management system, I'd assume.

tk


On Thu, Jun 2, 2016 at 3:22 PM, Andrew Branson
<sfdevl...@andrewbranson.net <mailto:sfdevl...@andrewbranson.net>> wrote:

Hi!

RDBMSes are not very good at graphs, or trees, or any other data
structure that requires variable traversal steps in queries. I don't
think we have that here though. Those social networks only have
graphs when they're integrating your data with other people's, but
personally you just have your own address book and your own
calendars. Both of those consist of many instances of the same data
structures which need to be indexed, which is a good use of
relational databases.

Your point about SQL being used out of habit is always pertinent
though. It's important to keep on top of the NoSQL options, as SQL
is definitely overused. I always find it very irritating when SQL is
used only for config storage, using tables with single rows and many
columns. Berkeley DB would be a good alternative for that. I don't
know if the graph DBs are ready yet though - Neo4J is very
interesting, but I would never run a Java server in a phone.

While we're on the subject, I think the Nemo thumbnail DB is a
really good candidate for a NoSQL database. It's currently a huge
collection of tiny files that seems to take up way too much BTRFS
allocation, and I don't think as a collection of binary files it
would be a good match for SQLite.

Andy


On 02/06/2016 1:42pm, Peter Kovacs wrote:

Well SQL is in my opinion good for grouping or conduct
calculations on
transactional data.
Updating, or adding / sorting is not is best discipline. It is
medicore
in my opinion.
On small sets of data as used in phones medicore performance is
still
quick. Phones are quite powerfull today.

However the feature the DB should excel should be, in my eyes
social,
stuff. It is a phone after all, intended to maintain my social
life, or?

And Facebook, amazon, google+ does not use relational databases.
They
use graph databases. So I wonder why this is not used on phones.
Neo4j
claims to outperform relational databases by a factor of 1000
when it
comes to relationships.

I admit these softwares are very latest technology. And maybe not as
robust as sqllite.
However I would love to have a contact app which knows that Mary
and Joe
are married live in the same place. And when I search for one of
the 2 I
get the shared information. And when I update one end the app
knows to
update the other one too.
Or it can store company hierarchies would help me in my business
life. I
am not good at memo these.

Yes you can do that with sql. But I think it is easier more
naturally
done in a graph db.
No problem if any one does not agree. I plan to build this anyhow.

I am quite unhappy with Google in that because they are not
doing this
for me ;)

Btw Object DB is good at storing objects as the name suggests. It is
even more far away from the requirements on a phone then
relational db
in my eyes.

All the Best
Peter


Tone Kastlunger <users.giulie...@gmail.com
<mailto:users.giulie...@gmail.com>
<mailto:users.giulie...@gmail.com
<mailto:users.giulie...@gmail.com>>> schrieb am Do., 2. Juni
2016, 11:13:

 Peter;
 I'm curious, what brings you to the conclusion SQL (as in
relational
 dbs) is not ideal for transactional functionalit

Re: [SailfishDevel] Sailfish OS Open Source Community Collaboration Meeting 2nd of June 2016

2016-06-02 Thread Andrew Branson

Hi!

RDBMSes are not very good at graphs, or trees, or any other data 
structure that requires variable traversal steps in queries. I don't 
think we have that here though. Those social networks only have graphs 
when they're integrating your data with other people's, but personally 
you just have your own address book and your own calendars. Both of 
those consist of many instances of the same data structures which need 
to be indexed, which is a good use of relational databases.


Your point about SQL being used out of habit is always pertinent though. 
It's important to keep on top of the NoSQL options, as SQL is definitely 
overused. I always find it very irritating when SQL is used only for 
config storage, using tables with single rows and many columns. Berkeley 
DB would be a good alternative for that. I don't know if the graph DBs 
are ready yet though - Neo4J is very interesting, but I would never run 
a Java server in a phone.


While we're on the subject, I think the Nemo thumbnail DB is a really 
good candidate for a NoSQL database. It's currently a huge collection of 
tiny files that seems to take up way too much BTRFS allocation, and I 
don't think as a collection of binary files it would be a good match for 
SQLite.


Andy

On 02/06/2016 1:42pm, Peter Kovacs wrote:

Well SQL is in my opinion good for grouping or conduct  calculations on
transactional data.
Updating, or adding / sorting is not is best discipline. It is medicore
in my opinion.
On small sets of data as used in phones medicore performance is still
quick. Phones are quite powerfull today.

However the feature the DB should excel should be, in my eyes social,
stuff. It is a phone after all, intended to maintain my social life, or?

And Facebook, amazon, google+ does not use relational databases. They
use graph databases. So I wonder why this is not used on phones. Neo4j
claims to outperform relational databases by a factor of 1000 when it
comes to relationships.

I admit these softwares are very latest technology. And maybe not as
robust as sqllite.
However I would love to have a contact app which knows that Mary and Joe
are married live in the same place. And when I search for one of the 2 I
get the shared information. And when I update one end the app knows to
update the other one too.
Or it can store company hierarchies would help me in my business life. I
am not good at memo these.

Yes you can do that with sql. But I think it is easier more naturally
done in a graph db.
No problem if any one does not agree. I plan to build this anyhow.

I am quite unhappy with Google in that because they are not doing this
for me ;)

Btw Object DB is good at storing objects as the name suggests. It is
even more far away from the requirements on a phone then relational db
in my eyes.

All the Best
Peter


Tone Kastlunger > schrieb am Do., 2. Juni 2016, 11:13:

Peter;
I'm curious, what brings you to the conclusion SQL (as in relational
dbs) is not ideal for transactional functionality?

On Thu, Jun 2, 2016 at 10:41 AM, Peter Kovacs > wrote:

I would actually like to know why SQL stuff.
Datastructure types I am think of on the Phone are relationships
(Facebook style) or transactional.
And both are not ideal to solve with relational dbs.

I guess the Answer is because every one does it. But that is not
really satisfactory.  Would there be an interest to use
something else?


Tone Kastlunger > schrieb am Do., 2. Juni
2016, 09:33:

Hi Chris;


 >2) API to access Calendar data.  Correct, currently we
don't provide access to calendar API in Harbour.  The reason
is that we want to use QtOrganizer as the public API, but to
do that we need to write a QtOrganizer engine backend >for
mkcal (note that one already existed in QtMobility days,
which is open source, so we can potentially adapt that one
with relatively little effort.  Help with that effort would
be greatly appreciated).  Eventually, I'd like to develop a
 >QtOrganizer backend directly in sqlite, for performance
and maintainability reasons (mkcal has several design and
implementation problems, in my opinion), at which point
QtOrganizer can become the platform API (not just the 3rd
 >party API).


I guess the worload to push it all the way to QtOrganizer
requires scratching the existing backend / rewriting a big
part of the cal app?

On Thu, Jun 2, 2016 at 5:06 AM, Chris Adams
> wrote:

Hi everyone,

I will try to be at the 

Re: [SailfishDevel] Open source in-app ad API helper for QML - please, join

2016-05-31 Thread Andrew Branson



On 31/05/2016 9:36 am, Tone Kastlunger wrote:

A better approach would be a toolkit for unlocking extra/full functionality 
through easy donations/micropayments. There was already a suggestion in a 
community meeting to implement the Qt Purchasing API for this, as an alternative 
>to paid store apps (which I also disagree with because of the DRM baggage it 
will inevitably bring). This approach is the most respectful on both the developer 
and the user sides.


For that we'd need a payment backend; as for now it only relies on AppStore / 
Google Play.


Could do, though I'd hope the API is flexible enough for us to be free to 
choose a better model like Flattr or cryptocurrency...
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Open source in-app ad API helper for QML - please, join

2016-05-31 Thread Andrew Branson

I don't think ad experiences on Android is be relevant elsewhere. Android is an 
ad-saturated platform - it's become so easy to put ads in Android apps that its 
users have either become desensitized to them, or they've taken steps to 
disable them. They breed contempt in the developer for their users, and in the 
users towards the developers, and the only winner is the ad platform provider. 
I expect that if a framework like this appears on Sailfish, a blocker for it 
will swiftly follow.

A better approach would be a toolkit for unlocking extra/full functionality 
through easy donations/micropayments. There was already a suggestion in a 
community meeting to implement the Qt Purchasing API for this, as an 
alternative to paid store apps (which I also disagree with because of the DRM 
baggage it will inevitably bring). This approach is the most respectful on both 
the developer and the user sides.

Cheers,

Andy


On 30/05/2016 11:46 pm, Andrew Penkrat wrote:

I want to add my experience from the developer's point of view. I have an 
Android app with about 1000 installations (and 100 active users). This app has 
ads as well as an option to disable them for a $2 donation.

Nobody ever activated this option. So most probably I won't be able to get any 
revenue from the app without ads.

2016-05-30 23:22 GMT+03:00 Martin Kolman >:

Mon, 30 May 2016 19:32:54 + Alexey Andreyev:


Hello, Zoltán! :)
Feel free to criticize me, but... ads in our jolla? No, thanks! :)

I subscribe to this - while I understand developers are looking for revenue 
streams I really like
how current native Sailfish OS apps are pretty much add free (for one 
reason or another).
Just take a look how reckless add usage ruins application usability on 
Android.
I'm fine with donations, paid/premium versions, etc. but please no adds! :)

I guess if you are a developer it make sence to ask for donations / create 
non-free apps, but please, no ads at all.
(Espesially with additional web engine module loaded eating my resources)

Again, this is just my opinion. I understand it opens new possibilities for 
some projects, etc, etc.

пн, 30 мая 2016 г. в 21:48, Zoltán Lutor 
<zoltan.lu...@gmail.com 
>:

I've progressed with implementing an open source wrapper for Vserv 
RESTful advertisement API in QML. Quote from API description:

Vserv provides a simple HTTP based API to publishers/developers and 
other ad networks, etc. to fetch ads for mobile sites or mobile applications. 
The mobile device / server makes a HTTP request to Vserv Marketplace server 
with the required parameters and in response receives the ad in JSON format. 
This single API integration gives you the flexibility to fetch banner/ full 
screen / rich media ads.

Available implementation is in pre-beta phase - quite majority of 
functionality works but there is still room for improvement.

Since I'm not so experienced in this area of sw development - and 
especially newbie in Sailfish native development - */I would like to ask some 
help from the community in finishing it/*.

It would be a general purpose QML wrapper around the API with necessary 
tailoring is needed for Sailfish - e.g. Webkit vs. WebView, etc. Maybe separate 
git branches are needed for different implementation(?) - I'm open for any 
reasonable proposal.

Is there anybody willing to join? Reviewing, commenting - and of 
course, coding is more than welcome. [This is my first open source project, so 
comment from this aspect is welcome, too.]

API descrption is here 
,
 code repository is in BitBucket 


Br,

Zoltan

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org 




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org 







___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org 





___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 

Re: [SailfishDevel] Help for Syncthing App

2016-03-14 Thread Andrew Branson

Assuming that your 4 is related to your 1, I tweaked System Monitor for the 
tablet, and I just chose whichever subdir of power_supply had the word battery 
into. I figured that would at least stand some chance of working with as yet 
unknown devices:

https://github.com/abranson/harbour-systemmonitor/commit/faf9894471bccb7d379a907cdcc642c25142b992

or of course crash when there's no match :)

On 14/03/2016 5:03pm, Pami Ketolainen wrote:

On 03/14/2016 04:49 PM, Michael Fuchs wrote:

Right, the colons where missing. But this was just an example, which I
know from the documentation. I would need it to have two different
values for tablet and phone. It's got to be sth like:

arm: VAR = ARMVALUE
x86_32: VAR = x86VALUE



There probably is a way to detect the architecture during build time,
but in general that is not the right way to differentiate between
different types of devices. Because there could be ARM tablets and x86
phones.

Most likely if you need to do some decisions based on the device type,
you should do that at run time.


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Transient notification categories

2016-01-12 Thread Andrew Branson

Hello,

Yes I did, but that's more geared towards an application that publishes its own notifications, 
rather than eavesdropping on them like pebbled is. I found the most relevant info in QtCreator 
help under Lipstick>Related Pages>Notifications, which said "If a notification is 
intended to have no presence in the events view, it should set the 'transient' hint to true. 
This will cause it to be closed immediately after it has been displayed to the user.".

Thanks,

Andrew


On 12/01/2016 12:26 pm, Alexander Ladygin wrote:

Hei Andrew,

did you check 
https://sailfishos.org/develop/docs/nemo-qml-plugin-notifications/ ?

On Mon, Jan 11, 2016 at 11:09 PM, Andrew Branson <andrew.bran...@cern.ch 
<mailto:andrew.bran...@cern.ch>> wrote:

Hi,

I'm trying to improve the filtering of notifications in the pebble daemon 
for Sailfish, and I stumbled upon the category property 'transient' in the 
QtCreator docs which it said indicated that a notification would only be 
flashed at the top of the screen and not left in the Events view. I thought 
that would be a good indicator of whether the notification should be forwarded 
to the watch, so I did that, but after that no messaging notifications were 
coming through at  all. I checked the category files, and all of the messaging 
preview categories have the transient property set, even though they are 
persistent on the Events view. Can anyone tell me what's going on here? How 
does the system decide which notifications end up on the events view?

Is there additional documentation about the notification system anywhere 
that I don't know about? Someone mentioned that a new notification model in 
SF2.0 would let us sidestep the '2 new messages' notification and get the real 
preview text, so I'd like to find out about that too.


Thanks very much,

Andrew
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org 
<mailto:devel-unsubscr...@lists.sailfishos.org>




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


[SailfishDevel] Transient notification categories

2016-01-11 Thread Andrew Branson

Hi,

I'm trying to improve the filtering of notifications in the pebble 
daemon for Sailfish, and I stumbled upon the category property 
'transient' in the QtCreator docs which it said indicated that a 
notification would only be flashed at the top of the screen and not left 
in the Events view. I thought that would be a good indicator of whether 
the notification should be forwarded to the watch, so I did that, but 
after that no messaging notifications were coming through at  all. I 
checked the category files, and all of the messaging preview categories 
have the transient property set, even though they are persistent on the 
Events view. Can anyone tell me what's going on here? How does the 
system decide which notifications end up on the events view?


Is there additional documentation about the notification system anywhere 
that I don't know about? Someone mentioned that a new notification model 
in SF2.0 would let us sidestep the '2 new messages' notification and get 
the real preview text, so I'd like to find out about that too.



Thanks very much,

Andrew
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org