Re: [SailfishDevel] CalDAV/CardDAV Contributor Meeting

2016-11-07 Thread Chris Adams
Hi everyone,

A quick summary of the meeting:

Follow up from last meeting:
1) unit tests for CalDAV and CardDAV plugins have been written
2) test server instances are now running and available for testing
3) all bugreports from last meeting have been investigated and progressed or 
resolved

Action points from this meeting:
i) chriadam will add documentation to the wiki describing how to perform manual 
tests with the test server instances.  Done - see 
https://sailfishos.org/wiki/CalDAV_and_CardDAV_Community_Contributions#Performing_Manual_Tests_With_The_Test_Services
ii) chriadam will investigate creating a curl PROPFIND+DELETE script to cleanup 
all data from the test service instances, to simplify manual testing from 
clean-state.
iii) dcaliste will investigate adding similar functionality to the plugin 
(turned on via env var) to simplify testing.
iv) dcaliste will investigate MER#1569
v) chriadam to investigate MER#1568
vi) William_ to create Merge Request for MER#1647 including unit test

Outstanding tasks:
a) we want volunteers to add more services to the test server.  Please see 
https://sailfishos.org/wiki/CalDAV_and_CardDAV_Community_Contributions#Adding_A_New_Service
 for more information.
b) Captive-portal handling - MER#1689 - no volunteers for this one, will 
revisit during next meeting
c) WebCal subscriptions - will revisit during next meeting

Full meeting log can be found at 
http://merproject.org/meetings/mer-meeting/2016/mer-meeting.2016-11-07-09.01.log.html

As always, feel free to begin investigating any task from the backlogs:
https://bugs.merproject.org/buglist.cgi?quicksearch=caldav
https://bugs.merproject.org/buglist.cgi?quicksearch=carddav
Just comment in the bug that you're starting to investigate, and periodically 
update it with your progress.

Thanks!
Chris.



From: Devel [devel-boun...@lists.sailfishos.org] on behalf of Chris Adams 
[chris.ad...@jolla.com]
Sent: Friday, November 04, 2016 2:19 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] CalDAV/CardDAV Contributor Meeting

Hi everyone,

Just reminder that the next Sailfish OS CalDAV/CardDAV Contributors meeting will
be held this coming Monday the 7th of November at 0900 UTC in #mer-meeting on
the freenode IRC network.

The agenda can be found at:
https://sailfishos.org/wiki/CalDAV_and_CardDAV_Community_Contributions#07.2F11.2F2016_Meeting

A quick summary of the activity and progress since the last meeting a month ago:

1) dcaliste has written unit test framework for CalDAV.
   We need more test cases so please contribute these!
2) dr_gogeta86 has created docker env for test servers:
   https://git.merproject.org/dr_gogeta86/caldav-test-farm
3) lbt, larstiq, and dr_gogeta86 have gotten the first test server working!
   http://8.1.tst.merproject.org/

This is a huge step - we now have working test services in the Mer infra which
can be used for automated testing.  Massive thanks to lbt, larstiq and
dr_gogeta86, for doing the hard work to make this happen.  Now we can start
using those services to run manual tests (requires volunteers!) and scripted
system tests (e.g. elfio's work).

Also, huge thanks to dcaliste for writing the unit test framework for the
CalDAV sync plugin, as now we can start adding tests to really get good
visibility into what needs improvement, and be able to change code without
fear of unknowingly breaking things.

A quick summary of tasks which we need volunteers for:

a) script to clean all data from the test services via curl PROPFIND+DELETE
b) MER#1689 - captive portal handling
c) MER#1625 - gracefully handle PUT failures due to read-only target
d) MER#1569 - handle shared occurrences

There are a couple of tasks which I believe are symptoms of the same root cause:
MER#1568, MER#1623 both relate to VERSION handling.  If someone is willing to
look into MER#1568 that would be appreciated, dcaliste has already done
some investigation into MER#1623.

Also MER#1647 hasn't had much progress - if someone wants to take that one,
that would be appreciated!

Cheers,
Chris.


From: Devel [devel-boun...@lists.sailfishos.org] on behalf of Chris Adams 
[chris.ad...@jolla.com]
Sent: Monday, October 10, 2016 8:14 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] CalDAV/CardDAV Contributor Meeting

Hi everyone,

Log of meeting on 10th October 2016:
http://merproject.org/meetings/mer-meeting/2016/mer-meeting.2016-10-10-09.01.log.html

Summary:
- following up from last meeting:
  * test server still not quite ready.  authentication enablers are done, and 
the VM exists, but firewall/isolation still TODO.
  * CardDAV unit test framework was completed since last meeting.  CalDAV unit 
test framework in progress.
  * dcaliste investigated MER#1623 and MER#1646, he has a potential fix for 
MER#1623, but MER#1646 is proving tricky.
  * William___ took MER#1647 last meeting, but he was unable to attend this 
meeting, so 

Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Zoltán Lutor
Hi,

You can try to remove iCCP with this tool: https://tinypng.com/

Br,

Zoltan

2016-11-07 10:46 GMT+01:00 Iosif Hamlatzis :

> From the harbour market they send me a new explanation for rejecting the
> game. This time due to warning:
>
> "This is the warning message in logs about the issue: Sailfish
> lipstick[1201]: libpng warning: iCCP: known incorrect sRGB profile"
>
> In my QtCreator I don't get any such message when validating the .rpm
> files.
>
> They told me they use JollaC device with 2.0.4.14 image. So is there an
> emulator image I can download of this device so that I can test my game on
> this device also? Because on my emulator and on my actual (original) Jolla
> device the game runs perfectly.
>
> Also, when Googling the above warning I get that this is from libpng 1.6
> and some people say a quick solution is to use software to remove the
> problematic "chunk". Any ideas on the matter?
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Iosif Hamlatzis
Thnx all

For rendering I am using OpenGL ES through SDL2 library. My game is pure
c++ no Qt or whatever.

I have created a common framework (graphics & logic) for gambling games.
Since SDL2 library currently has a bug and doesn't support landscape under
Jolla have decided to create a roulette, in portrait.

For the roulette game which is simple (only 37 numbers) I could simplify my
RNG, but have to think what to do with slot games (eg 5 reels with 12
symbols per reel out of 13 different symbols, which is common) and bingo
selecting 5-8 numbers out of 40 and at the same time maintaining game's
"payback" percentage. Have to think about refactoring the code.

Thnx!

On Monday, 7 November 2016, Slava Monich  wrote:

> Regarding power consumption.
>
> I doubt that you need to run you RNG or whatever when the screen is locked
> and the display is switched off. That's one direction in which you can
> optimize your code, i.e. pause the game when the screen is locked and the
> display is off and resume it when the display is turned on.
>
> Another thing is that JollaC has significantly more pixels than Jolla1
> (and tablet has even more). If you are doing some sort of pixel graphics,
> that may have quite an impact on performance. In that case you may consider
> switching to scene graph based rendering (http://doc.qt.io/qt-5/
> qtquick-visualcanvas-scenegraph.html) which can use whatever hardware
> acceleration is available on the device (if you do it right).
>
> Cheers,
> -Slava
>
>
> I can disregard it as long as they don't reject my game. But it's one of
> the reasons they rejected my game.
>
> It seams the new libpng regards this as error and not warning because
> according to what they say, under JollaC device nothing is rendered on the
> screen. So I presume the installed libpng on their JollaC device stops
> loading my pngs
>
> I don't have access to a JollaC device so is there an emulator image
> 2.0.1.14 for for the JollaC device I can use to test my game?
>
> The other reason for rejecting my game is too much power consumption on
> their device. On my device I don't see that much. But I am not sure if I am
> going to do something about it because I need my game to run even when in
> the background. I have created a gambling game and I need my RNG
> (Random Number Generator) to run even on the background, because when I
> tested with pausing the game when going to background it got a
> bit predictably.
>
>
>

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

Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Slava Monich

Regarding power consumption.

I doubt that you need to run you RNG or whatever when the screen is 
locked and the display is switched off. That's one direction in which 
you can optimize your code, i.e. pause the game when the screen is 
locked and the display is off and resume it when the display is turned on.


Another thing is that JollaC has significantly more pixels than Jolla1 
(and tablet has even more). If you are doing some sort of pixel 
graphics, that may have quite an impact on performance. In that case you 
may consider switching to scene graph based rendering 
(http://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph.html) which can 
use whatever hardware acceleration is available on the device (if you do 
it right).


Cheers,
-Slava


I can disregard it as long as they don't reject my game. But it's one 
of the reasons they rejected my game.


It seams the new libpng regards this as error and not warning because 
according to what they say, under JollaC device nothing is rendered on 
the screen. So I presume the installed libpng on their JollaC device 
stops loading my pngs


I don't have access to a JollaC device so is there an emulator image 
2.0.1.14 for for the JollaC device I can use to test my game?


The other reason for rejecting my game is too much power consumption 
on their device. On my device I don't see that much. But I am not sure 
if I am going to do something about it because I need my game to run 
even when in the background. I have created a gambling game and I need 
my RNG (Random Number Generator) to run even on the background, 
because when I tested with pausing the game when going to background 
it got a bit predictably.




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

Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Luciano Montanaro
The latest sdk should be aligned to the 2.0.4 release.

As for your other problems:

There are a few different suggestion here for the png problem:

http://stackoverflow.com/questions/22745076/libpng-warning-iccp-known-incorrect-srgb-profile

I would start with the pngcrush solution.

As for random numbers:

Why can't you simply use /dev/urandom? If it is good enough for
crypto, it should be good for your case too.
And you do not need to generate numbers in background.

Regards,
Luciano

On Mon, Nov 7, 2016 at 12:00 PM, Iosif Hamlatzis  wrote:
> I can disregard it as long as they don't reject my game. But it's one of the
> reasons they rejected my game.
>
> It seams the new libpng regards this as error and not warning because
> according to what they say, under JollaC device nothing is rendered on the
> screen. So I presume the installed libpng on their JollaC device stops
> loading my pngs
>
> I don't have access to a JollaC device so is there an emulator image
> 2.0.1.14 for for the JollaC device I can use to test my game?
>
> The other reason for rejecting my game is too much power consumption on
> their device. On my device I don't see that much. But I am not sure if I am
> going to do something about it because I need my game to run even when in
> the background. I have created a gambling game and I need my RNG (Random
> Number Generator) to run even on the background, because when I tested with
> pausing the game when going to background it got a bit predictably.
>
>
>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org



-- 
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Iosif Hamlatzis
I can disregard it as long as they don't reject my game. But it's one of
the reasons they rejected my game.

It seams the new libpng regards this as error and not warning because
according to what they say, under JollaC device nothing is rendered on the
screen. So I presume the installed libpng on their JollaC device stops
loading my pngs

I don't have access to a JollaC device so is there an emulator image
2.0.1.14 for for the JollaC device I can use to test my game?

The other reason for rejecting my game is too much power consumption on
their device. On my device I don't see that much. But I am not sure if I am
going to do something about it because I need my game to run even when in
the background. I have created a gambling game and I need my RNG
(Random Number Generator) to run even on the background, because when I
tested with pausing the game when going to background it got a
bit predictably.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Luciano Montanaro
Hi Iosif,

you can probably disregard the warning.

It looks like it warns you that some section (chunk) of the png image
has incorrect data, but that will unlikely affect anything relevant.

sRGB is a color space, and it is useful to map colors correctly across
devices. But as long as the images look fine on your device, you are
ok.

There are tools to manipulate the image files, if the warning really
bothers you.
Check the various png optimizers. They will likely make your images smaller too.


Best regards,
Luciano



On Mon, Nov 7, 2016 at 9:46 AM, Iosif Hamlatzis  wrote:
> From the harbour market they send me a new explanation for rejecting the
> game. This time due to warning:
>
> "This is the warning message in logs about the issue: Sailfish
> lipstick[1201]: libpng warning: iCCP: known incorrect sRGB profile"
>
> In my QtCreator I don't get any such message when validating the .rpm files.
>
> They told me they use JollaC device with 2.0.4.14 image. So is there an
> emulator image I can download of this device so that I can test my game on
> this device also? Because on my emulator and on my actual (original) Jolla
> device the game runs perfectly.
>
> Also, when Googling the above warning I get that this is from libpng 1.6 and
> some people say a quick solution is to use software to remove the
> problematic "chunk". Any ideas on the matter?
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org



-- 
Luciano Montanaro

Anyone who is capable of getting themselves made President should on
no account be allowed to do the job. -- Douglas Adams
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


[SailfishDevel] problem with libpng

2016-11-07 Thread Iosif Hamlatzis
>From the harbour market they send me a new explanation for rejecting the
game. This time due to warning:

"This is the warning message in logs about the issue: Sailfish
lipstick[1201]: libpng warning: iCCP: known incorrect sRGB profile"

In my QtCreator I don't get any such message when validating the .rpm
files.

They told me they use JollaC device with 2.0.4.14 image. So is there an
emulator image I can download of this device so that I can test my game on
this device also? Because on my emulator and on my actual (original) Jolla
device the game runs perfectly.

Also, when Googling the above warning I get that this is from libpng 1.6
and some people say a quick solution is to use software to remove the
problematic "chunk". Any ideas on the matter?
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org