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 <i.hamlat...@gmail.com> 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 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 <i.hamlat...@gmail.com> 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


Re: [SailfishDevel] [Official Announcement] Join the Sailfish Community Device Program now!

2016-05-26 Thread Luciano Montanaro
Well, I suppose that depends on what Qualcomm supports on their chip.
The intel tablet also has a more recent version of android.

But it would be interesting to have BTLE support for native programs,
and I think we need a recent Qt library for that.

Luciano


On Thu, May 26, 2016 at 2:44 PM, juice <ju...@swagman.org> wrote:
> Oleksii Serdiuk kirjoitti 2016-05-26 15:41:
>>
>> I think that the question might have been BTLE support in Android. On
>> Jolla Phone it doesn't work due to old Android version.
>>
>> From the specs it looks like a "rebranded" Aqua Fish, so I expect BTLE
>> support in Android to be present.
>>
>
> OK, that never crossed my mind since I could not care less about Android
> support :)
>
> But indeed if it is that, what makes you think that the Android support in
> the Intex phone would be different version than what's on the Jolla SBJ?
> I'd imagine both have exactly the same Dalvik version since the OS version
> is same too...
>
>
>   - juice -
>
> ___
> 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] New Sailfish Community Program is launching soon - heads up!

2016-05-25 Thread Luciano Montanaro
On Wed, May 25, 2016 at 12:24 PM, Sepehr James Noori
<james.no...@jollamobile.com> wrote:
> Thanks for trusting me!
>
> Yea there is a limited amount of registration positions available, but since
> there might be a slight change of plans (we might be able to increase it a
> little but later on) I can't say for sure.
>
> But nevertheless, be fast about securing your place! I know there will be
> tons of people who want to be a part and we will receive complaints about
> "why isn't Jolla providing more? Jolla is [insert bad words] " :D haha
>
> I can't wait to let you guys know what's going on!

Uhm...
I was guessing Intex (or maybe Intex and some other vendors) devices
would be made available at a discount...

Wich would be great.

But now after all this teasing, if that was all, I would feel a bit
underwhelmed.

Oh, well, we will learn in time. We are a patient bunch.

Luciano
-- 
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] New Sailfish Community Program is launching soon - heads up!

2016-05-25 Thread Luciano Montanaro
On Wed, May 25, 2016 at 10:07 AM, Neufing, Michael <mich...@neufing.org> wrote:

> you wrote we should check our mailboxes on Monday and Tuesday.
> I think there comes "the next business day" from :)

Well, James did not specify the week... Maybe we should check our
mailbox *next* Monday/Tuesday... ;)

-- 
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] [Minutes] SailfishOS community meeting 26.11 + planning for next one 3.12

2015-11-27 Thread Luciano Montanaro
te stuff for their phone, expand it etc. it is most likely more
> expensive for jolla to start selling products made/designed by 3rd parties
> because it means that they need to actually stock up on the product, sell a
> certain amount to brake even, take the risk of not selling that amount, take
> the risk of needing to replace faulty hardware at their cost and again
> ending up losing money, do I need to continue?
> Or alternatively they'd need to make the serious investment of developing
> the product themselves which again has all the above points plus serious R
> and QA costs.
> The guys at funkyOH do great work and deserve the support just as much.
>>
>> Get the old hardware section of jolla to develop some more second half
>> stuff. Like battery banks or 2nd phonecard connector. Maybe a mobility hub
>> for pcs. I do not know.
>>
>> Sorry that this has nothing to do with development of source code. But I
>> think this is not really time for dreaming of open Source.
>>
>> I know that you might not like this steps, but I think there is no chance
>> in rearranging debts will lead you from the death valley you are in.
>> That is only one way to get bankrupted fast.
>> You must generate money quickly. That is the only way somebody will
>> continue to invest into Jolla. And a credit is also an investment of sort.
>>
>> This is an unpleasant message of sort. But jolla should focus on those
>> people has already convinced. Apple did that in their beginning. I know some
>> and they agree first iPhone were not very good. I think the sailfish has
>> potential but currently this potential is limited to the community you have.
>> And this are the ones here who prepare their products for sailfish, and the
>> ones who already spend money on the product.
>>
>> Please take a break from convincing people that can play Jolla against
>> android, blackberry and iOS. You can return to that dream if you got out of
>> the valley.
>>
>> I have time from 14th Dec till end of the year. I will participate then in
>> the meetings and bug you to various topics around Jolla. I hope this helps.
>
> So am I to understand that in the last Community meeting it was said that
> Jolla is in a bad financial shape?
> Seems to me like they just got a fairly large financial injection from the
> tablet and at the same time decided that they can get by without developing
> hw themselves rather just selling licenses/support to others and already
> have contracts with several companies...
>
> Regards,
> Eli
>>
>> All the Best
>> Peter
>>
>>
>> Carol Chen <cybette+sailfis...@gmail.com> schrieb am Do., 26. Nov. 2015
>> 17:17:
>>>
>>> Hi,
>>>
>>> Thanks to everyone who attended today's meeting! Minutes/logs:
>>>
>>> Minutes:
>>>
>>> http://merproject.org/meetings/mer-meeting/2015/mer-meeting.2015-11-26-14.30.html
>>> Minutes (text):
>>>
>>> http://merproject.org/meetings/mer-meeting/2015/mer-meeting.2015-11-26-14.30.txt
>>> Log:
>>>
>>> http://merproject.org/meetings/mer-meeting/2015/mer-meeting.2015-11-26-14.30.log.html
>>>
>>> Next meeting will be on 2015-12-03 @ 14:30 UTC. Meeting Chair will be
>>> Carsten Munk (Stskeeps). Please propose discussion topics at:
>>>
>>> https://together.jolla.com/question/54157/sailfishos-open-source-collaboration-meeting-planning/
>>>
>>> If you propose a topic, it is expected that you show up and present it,
>>> or have a substitute participate in the meeting. It is important that
>>> you're present at the meeting to guide the discussions in the direction
>>> you want, so we do not spend time guessing what kind of info/answers you
>>> may be looking for.
>>>
>>> NOTE: Propose your topic by Tuesday 1.12. Any topics added after that
>>> will be considered for the following meeting. Carsten will send out
>>> meeting invite with confirmed agenda before the meeting.
>>>
>>> Cheers,
>>>   Carol
>>>
>>> --
>>> Carol Chen
>>> cybette @ Freenode IRC
>>>
>>>
>>> ___
>>> 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



-- 
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] New documentation on sailfishos.org

2015-06-03 Thread Luciano Montanaro
I personally use a mix of QtCreator and vim/commandline for
developing. Project setup in Qtcerator is convenient, as well as
deploying to the target, but I often fall back to my command line
habit.
What would help to have is a ferw more project templates, e.g.
for SDL projects, or for different build systems, for service accounts
or sharing plugins.

QMake is fine for the simple example projects, and I use it for them,
but CMake is better suited to larger projects, or where you want the
same software base to work on multiple platforms. Or simply, when
trying to port an existing CMake based project.

So tutorials and templates for these would be welcome as well.

Cheers
Luciano

On Wed, Jun 3, 2015 at 12:42 PM, Michael Fuchs mic...@gmx.at wrote:


 Am 03.06.2015 um 12:15 schrieb Jussi Pakkanen:

 We have a few others in the pipeline on how to do development without Qt
 Creator for those of you who prefer other tools


 Thanks a lot. Looking forward to this one.

 greetz, Michael.

 ___
 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] Introducing the Jolla Tablet Developer Device loan program (Pilot)

2015-05-29 Thread Luciano Montanaro
...@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



-- 
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] Introducing the Jolla Tablet Developer Device loan program (Pilot)

2015-05-29 Thread Luciano Montanaro
 please
 be patient. We will see how it goes and evaluate what else we can
 provide
 or what is needed from the developer community.



 If you do not receive an invitation for the program pilot, please do not
 worry and bear with us for a little longer. We will share info about
 future
 opportunities to join the Developer Program as it grows.



 [0]  https://harbour.jolla.com/https://harbour.jolla.com/

 [1] https://jolla.com/tablethttps://jolla.com/tablet

 [2] http://sailfishos.org/http://sailfishos.org/

 [3]  https://sailfishos.org/develop/docs/silica/
 https://sailfishos.org/develop/docs/silica/


 ___
 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 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] XDG paths in QT

2015-05-11 Thread Luciano Montanaro
The behavior, in Linux, in general is for applications to install
default setting files in a global XDG path, e.g
/usr/share/config/yourappnamerc

and to write it to your home directory on first change (e.g
/home/nemo/.config/yourappnamerc). That said, using QStandardPaths
should make things work seamlessly.

Just make sure you use the

QString QStandardPaths::writableLocation(StandardLocation type)

When saving your changes.

Luciano


On Sun, May 10, 2015 at 10:18 PM, Andrey Kozhevnikov
coderusin...@gmail.com wrote:
 Hello, you should use QStandardPaths. DataLocation is correct, it using
 applicationName and organizationName from you QGuiApplication instance.

 11.05.2015 01:14, Nicolas Cisco пишет:

 Hi,
 i have some questions about what are the correct config and data paths for
 an application.
 The harbour faq [ https://harbour.jolla.com/faq#2.4.0 ] says that for these
 paths a subfolder during run time named HARBOUR_APP_NAME inside a folder
 defined by the XDG Base Directory Specification should be used. My question
 is how to get these values using QT.
 I though of using the QStandardPaths [
 http://doc.qt.io/qt-5/qstandardpaths.html ] or the QProcessEnvironment [
 http://doc.qt.io/qt-5/qprocessenvironment.html ] modules, but i don't know
 if i am getting the correct values.

 Using the QStandardPaths module I get this output:

 [D] main:66 - QStandardPaths::DataLocation:
 /home/nemo/.local/share/harbour-batzap/harbour-batzap
 [D] main:67 - QStandardPaths::GenericDataLocation:
 /home/nemo/.local/share
 [D] main:68 - QStandardPaths::CacheLocation:
 /home/nemo/.cache/harbour-batzap/harbour-batzap
 [D] main:69 - QStandardPaths::GenericCacheLocation: /home/nemo/.cache
 [D] main:70 - QStandardPaths::TempLocation: /tmp
 [D] main:71 - QStandardPaths::ConfigLocation: /home/nemo/.config
 [D] main:72 - QStandardPaths::GenericConfigLocation: /home/nemo/.config

 (i'm returning these values using: qDebug()  QStandardPaths::enum-name:
   QStandardPaths::writableLocation(QStandardPaths::enum-name);

 According to the harbour faq, for application data the
 $XDG_DATA_HOME/harbour-name folder should be used, ( freedesktop.org says
 that a possible value for $XDG_DATA_HOME is $HOME/.local/share/, so i'll
 assume that value, and assuming harbour-name is harbour-batsap) should
 the correct application data folder be
 /home/new/.local/share/harbour-batzap insted
 /home/new/.local/share/harbour-batzap/harbour-batzap as qt returns for
 QStandardPaths::DataLocation?

 Note: the qt docs suggest that QStandardPaths::AppDataLocation should be
 used while QStandardPaths::DataLocation is a deprecated value. But i'm
 getting errors (AppDataLocation is not a member of QStandardPaths) using
 QStandardPaths::AppDataLocation (it was introduced in Qt 5.4, i really don't
 remember what Qt5 version jolla ships)

 If i try to get the values of the XDG variables using the
 QProcessEnvironment module, i'm always getting blank values:

 [D] main:75 -
 QProcessEnvironment::systemEnvironment().value($XDG_DATA_HOME): 
 [D] main:76 -
 QProcessEnvironment::systemEnvironment().value(XDG_DATA_HOME): 
 [D] main:77 -
 QProcessEnvironment::systemEnvironment().value($XDG_CACHE_HOME): 
 [D] main:78 -
 QProcessEnvironment::systemEnvironment().value(XDG_CACHE_HOME): 
 [D] main:79 -
 QProcessEnvironment::systemEnvironment().value($XDG_CONFIG_HOME): 
 [D] main:80 -
 QProcessEnvironment::systemEnvironment().value(XDG_CONFIG_HOME): 

 (i'm returning these values using: qDebug() 
 QProcessEnvironment::systemEnvironment().value(variable, );

 Using qDebug()  getenv(variable):   getenv(variable); also returns
 me an empty value:

 [D] main:81 - getenv(XDG_DATA_HOME):
 [D] main:82 - getenv($XDG_DATA_HOME):
 [D] main:83 - getenv(XDG_CACHE_HOME):
 [D] main:84 - getenv($XDG_CACHE_HOME):
 [D] main:85 - getenv(XDG_CONFIG_HOME):
 [D] main:86 - getenv($XDG_CONFIG_HOME):


 I'm executing the app thought qtcreator in my jolla device (deploying it as
 an RPM package).

 What are the correct path values? and how should I get them throught qt?.

 Thanks!
 --
 Nicolas Cisco
 www.nckweb.com.ar


 ___
 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



-- 
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] GCompris

2015-04-23 Thread Luciano Montanaro
Hi Lucien,

On Thu, Apr 23, 2015 at 9:57 AM, Lucien Xu sfietkonstan...@free.fr wrote:
 Qt Quick Controls can be themed, and you can use Qt Quick components to do
 the theming of these controls. We have been doing this kind of theming work
 for Nemo [1]. However, doing this for Sailfish OS's Silica might require
 some effort, approval from Jolla etc.

You are right, and that is why support for these out of the box would be great.

The main problem of SailfishOS, as I see it, is that there are not
enough applications (and that many useful existing applications cannot
make to the store), and this would go in the direction of removing
obstacles from developers path.

Maybe this could be discussed in next irc meeting? I have never
managed to attend one, due to scheduling issues, but maybe Alex can.
:)

Luciano


-- 
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] GCompris

2015-04-23 Thread Luciano Montanaro
Hi Alex,
great to see GCompris ported to Sailfish. I suppose it will be better
suited for the new tablet rather than the telepone, given the target
users (children), right?

I second your request for QtQuickControls support - It may help
porting more applications to SailfishOs, and there are classes of
applications where native look is not important (games, for example),
or where there are too many qml files to port over in a short time.

While there are custom components in Silica, there are a bunch of
items that behave much in the standard way, and it is possible some
sharing between different platforms could be achieved.

Best regards,
Luciano


On Thu, Apr 23, 2015 at 8:35 AM, Alex Smirnoff smirnoff...@gmail.com wrote:
 Hi.
 I am glad to announce that, thanks to the main developers  from GCompris
 community, Gcompris  could be now started on Jolla device.
 More over, it is almost nothing prevents from merging Sailfish support in
 GCompris master branch.

 I have plan to place rpm on openrepos in short time to make it awailable for
 everybody.

 We still have one nice to have  and one major issue related to Sailfish.

 - Some activities use Qt Quick  features, that are only available starting
 from Qt 5.3.
 So I want to ask if Sailfish OS will be Qt 5.3+ based or not? This is the
 key point to understand if Sailfish  support should be merged already now to
 master branch, or it'd better to wait till Sailfish 2.0.

 - qt5-qtquickcontrols is still unavailable on Sailfish, so we could not
 place GCompris on Jolla Shop.
 Here I want to try to ask it again from Jolla guys.  Last time I just got a
 suggestion from Andrey Kozhevnikov to port QtQuickControls to SailfishOS.
 And that was more that easy, I have just built 5.2 branch with mersdk and
 created rpm.

 Let me explain once more why we need QtQuickControls on Sailfish.
 Gcompris is not a silica application and never be, it is a generic qt
 application that has a lot of different activities, developed by different
 developers. So it should be possible to run it on different platforms.
 There is no way to rewrite everything and change all imports to silica and
 port all the new things ever and ever, because there is no support on other
 platforms. Generic QtQuickControls is the best way.

 So I want to hear the Jolla's point of view on this problem. As soon as a
 more applicable in other cases Silica component may be not so applicable in
 case of full-screen applications like GCompris.
 It use it own layout and the Page type could not ensures anyway that page
 content is scrolled to keep editable text fields visible when the virtual
 keyboard is shown and so on, because the Page just no exist.

 Or maybe there is a chance to somehow wrap QtQuickControls in Silica. I
 believe that should be possible, I do not have this chance because there is
 no open silica repository.

 I believe that  educational application like GCompris is must have on Jolla
 devices. And having it only in openrepos will definitely close  the door for
 the lion's share of users.


 --
 Alex Smirnov

 ___
 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] GCompris

2015-04-23 Thread Luciano Montanaro
. As soon as a more applicable in other cases
  Silica component may be not so applicable in case of
  full-screen applications like GCompris.
 
  It use it own layout and the Page type could not
  ensures anyway that page content is scrolled to keep
  editable text fields visible when the virtual keyboard
  is shown and so on, because the Page just no exist.
 
 
  Or maybe there is a chance to somehow wrap
  QtQuickControls in Silica. I believe that should be
  possible, I do not have this chance because there is
  no open silica repository.
 
 
  I believe that  educational application like GCompris
  is must have on Jolla devices. And having it only in
  openrepos will definitely close  the door for the
  lion's share of users.
 
 
 
  --
  Alex Smirnov
 
 
 
  ___
  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
 
 
 
  --
  Alex Smirnov
 
  ___
  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



-- 
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] How to detect SailfishOS version in runtime?

2015-03-24 Thread Luciano Montanaro
I am not sure checking for a OS version it is the right approach in
general either. Unless you want it to attach to bug reports or such
things, you shpould check for the library or component version
instead. Different devices may have different components... i.e. we
can be sure the kernel for the tablet will be a different version from
the phone, and different phones will surely have different kernel
versions.

But maybe I am too rooted in linux development, where OS version is
a meaningless concept (you have to deal with 2 releases each year of
Ubuntu Suse, RedHat, Debian...).

Cheers,
Luciano

On Tue, Mar 24, 2015 at 6:53 AM, Kimmo Lindholm kimmo.lindh...@eke.fi wrote:
 afaik no, but you can read it from file /etc/sailfish-release and look for 
 VERSION_ID=


 -kimmo

 
 Lähettäjä: devel-boun...@lists.sailfishos.org 
 [devel-boun...@lists.sailfishos.org] k#228;ytt#228;j#228;n Mykola Vovchok 
 [nico...@gmail.com] puolesta
 Lähetetty: 24. maaliskuuta 2015 04:36
 Vastaanottaja: Devel@lists.sailfishos.org
 Aihe: [SailfishDevel] How to detect SailfishOS version in runtime?

 Hi!

 Is there API available to get SailfishOS version in runtime?

 Thanks,
 Nick.
 ___
 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



-- 
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] QtDay 2015 in Florence on March 13-14

2015-03-12 Thread Luciano Montanaro
Darn, it wish I were able to get there...

I have been at the Qt day a couple of years ago, and it was very interesting.
I hope you will enjoy it, and share the impression with us!

Luciano


On Wed, Mar 11, 2015 at 5:53 PM, Carol Chen carol.c...@jolla.com wrote:
 Hi again,

 Here's a code for 30% off on desk tickets if you missed the earlier
 registrations:

 https://ti.to/develer/qtday2015?discount_code=GNR30

 To have a chance to win prizes, remember to sign up for the “Qt Quiz 
 Dinner” http://www.qtday.it/qt-quiz-dinner/

 Cheers,
  Carol.


 On 03/11/2015 06:19 PM, Carol Chen wrote:

 Hi all,

 Jolla will be a media partner at this conference: http://www.qtday.it/

 If you happen to be in/near Florence, join the event and you might have
 a chance to win some Jolla devices :)

 There's a talk on Sailfish OS:

 http://www.qtday.it/events/jolla-e-sailfishos-qt-sulle-piattaforme-mobile-emergenti-riccardo-ferrazzo/


 Apologies for the late news, MWC happened. Anyway hope some of you are
 already planning to go. Enjoy!

 Ciao,
   Carol.



 --
 Carol cybette Chen
 Community Chief @ Jolla http://jolla.com
  +358403502527  @ SMS,PSTN,WeChat
 cybette @ FreenodeIRC,Twitter,Weibo,LinkedIn,Skype
 ___
 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] Installation trouble with the SDK

2014-12-11 Thread Luciano Montanaro
On Thu, Dec 11, 2014 at 10:06 AM,  k...@foder.dk wrote:
 On 10. des. 2014 10:41, k...@foder.dk wrote:
  I have had this problem since I upgraded Ubuntu to 14.10, and have 
  recently come to the conclusion that the problem probably is entropy.
 
  A test has shown that the entropy pool always is extremely low (about 1000 
  with heavy disk access, less than 800 otherwise)
 
  I have tried to generate more entropy by starting programs with heavy disk 
  or net acces, and fidling with the mouse, but the installation still hangs 
  at 76%, and after a short while everything on the desktop freezes, even 
  the mouse.
 
  The only way to get out of it is a long press on the power button.

 These symptoms do not sound like it has anything at all to do with
 entropy. I don't know where you could have gotten that idea.


So you did replicate my hang.

 The fact that the installation hangs (and freezes the desktop) at Generating 
 keys and the entropy pool is very low, made me believe there was a 
 connection.


It looked the same to me. But then, an ssh-keygen would have the same
problem, and it did not.


 The symptoms sound more like what would happen if there was too much
 I/O, too many programs running, too much memory used, and perhaps too
 much swap space: the system would start swapping so heavily it would
 become totally unresponsive.

 This is of course the first things I checked: Lots of memory free ( 2G), no 
 disk access at all when installation hangs, 2 programs running system-monitor 
  installation.

Confirming, from my side. My laptop has 6GB RAM, and besides, there
was not much disk activity a tthe moment of the hang.
I think the merssh command is not able to complete. My question is...
shouldn't there be a virtualbox mersdk instance available before
invoking the merssh command? Because the virtualbox manager does not
show a configuration for it.

Is there a guide to set it up manually? The .vdi is installed anyway,
I might be able to complete the installation manually (or at least
build my projects with the command line tools) if the virtual box
machine is configured correctly.

I tried creating a machine on my own with the mersdk.vdi, and it
boots... but I do not know how to set it up so that i can connect to
it/share the source partition.

Best regards,
Luciano



 ___
 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



-- 
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] Installation trouble with the SDK

2014-12-11 Thread Luciano Montanaro
On Thu, Dec 11, 2014 at 11:07 AM, Martin Kampas martin.kam...@tieto.com wrote:
 Hi Luciano,

 On Thursday, December 11, 2014 10:21:16 AM Luciano Montanaro wrote:
 [...] My question is...
 shouldn't there be a virtualbox mersdk instance available before
 invoking the merssh command? Because the virtualbox manager does not
 show a configuration for it.

 this shouldn't be an issue here - the keys are stored on host, in a directory 
 shared with the VM [1].

 BTW, earlier you wrote:

 [...] and I unwisely removed the SailfishOS directory

 IIUC you didn't use the uninstaller - it might be worth to search your home 
 directory for garbage from the previous installation which may possibly cause 
 some troubles.. Also consider removing (renaming) ~/.config/SailfishAlpha4.


Oh, sorry, I did not mention this. The first time around I actually
used the uninstaller as recommended. I don't think it is available
after the partial installation...
I will check the .config/SailfishAlpha4 file again.


 BR,
 Martin

 [1] 
 https://github.com/sailfish-sdk/sailfish-qtcreator/blob/next/src/tools/merssh/generatekeyscommand.cpp
 ___
 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] Installation trouble with the SDK

2014-12-10 Thread Luciano Montanaro
I waited each time for at least a few minutes... More than that,
before rebooting. I might try that again. I also tried moving the
mouse about, but not for a full minute... The home partition is
encrypted, so the installation may have depleted the random pool, but
I also tried a ssh-keygen command which did not have problems
finishing (and I think is eventually what gets called).

The problem with your second suggestion, is that I tried that already,
and I could not do it. The mouse still moves, but keyboard input and
mouse clicks do not work.

Thanks for the suggestions,
Luciano


On Wed, Dec 10, 2014 at 8:43 AM, Martin Kampas martin.kam...@tieto.com wrote:
 Hi Luciano,

 is it possible it just hangs waiting for enough entropy[1] to generate the 
 keys? How long did you wait before you rebooted? Try to keep moving the mouse 
 pointer randomly for about a minute - it may help.

 If it does not help, you should be at least able to switch to VT console 
 (Ctrl+Alt+F1) and kill the installer process without rebooting.

 BR,
 Martin

 [1] http://en.wikipedia.org/wiki/Entropy_(computing)

 ___
 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] Installation trouble with the SDK

2014-12-09 Thread Luciano Montanaro
On Tue, Dec 9, 2014 at 5:56 AM, Martin Kampas martin.kam...@tieto.com wrote:
 Hi Luciano,



 Maybe this bug? https://bugs.merproject.org/show_bug.cgi?id=810


Hi Martin,
the behavior is similar.

Anyway, here is the log. I did not find obvious errors in it, but...

The last line is

/home/mikelima/SailfishOS-Beta/bin/merssh started, arguments:
generatesshkeys
'/home/mikelima/SailfishOS-Beta/vmshare/ssh/private_keys/engine/root'
'/home/mikelima/SailfishOS-Beta/vmshare/ssh/private_keys/engine/root.pub'

Which never returns. It does not seem to hog the cpu that much, but
after a while the desktop becomes unresponsive.
Also... I expect that to be able to use merssh, the virtual machine
should be set up already, and I have no mersdk item in the virtualbox
list.I don't know if that is important.
maybe merssh is a multi-function tool.

Best regards,
Luciano


 BR,

 Martin


 ___
 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-sdk-install.log.gz
Description: GNU Zip compressed data
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Installation trouble with the SDK

2014-12-08 Thread Luciano Montanaro
Hi everybtody, I am stuck with the installation of the Beta SDK.
What happens is that the intaller reaches 76% completion, prints
Generating keypair (or something), and then my desktop gets
completely unresponsive (and the installation never terminates).

Anybody got the same problem? I am unable to do any development on
SailfishOS at the moment, since the Alpha installer gets stuck at the
exact same place (and I unwisely removed the SailfishOS directory
instead of renaming it).

Any suggestion in pinpointing the problem? The behavior of the desk is
similar to what happens when you grab the mouse pointer (in fact,
mouse seems to work in the installer application), and never release
it. The problem is, to regain the use of the computer, I found nothing
better than a reboot.

Best regards,
Luciano

-- 
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] SailfishOS as an OS/platform in Qt

2014-12-07 Thread Luciano Montanaro
On Sun, Dec 7, 2014 at 10:33 AM, Alejandro Exojo s...@badopi.org wrote:

 That's the opposite of what most people are trying to do.

 If the overhead is negligible, you may not care much of shipping all the
 assets in one binary package, of which the user will only see a part, but
 other applications might prefer to save some space if they contain many
 assets.


The problem is that this model does not scale. Now there is one device
using SailfishOS, next June there will be two...
Hopefully there will be more in one year.

So you want to make one build for each model that will use SailfishOS
in the future?
I think Jolla hopes to license the OS to other vendors. If they
succeed, optimization s targeted to single devices will not be
practical.

The best option is to build the asset in a scalable format (or ship it
at high res) and then render it at install time...
Like what has been proposed for the icon scaling.

 However, the main thing that motivated me to dig into the issue and send the
 mail was libsailfishapp. That library is, AFAIK, only relevant on Sailfish,
 and also requires one to add special code in main(). That can't be done at
 runtime (well, you could do it I think, but you really don't want to, given
 that you already have to set a special binary name, for example, and it
 complicates things for no reason).


Well, I think the easiest thing to do is do out-of source builds, and
since the target configuration

qmake -config sailfishos
qmake -config blackberry

etc.

Then if you want to have different assets, you can do this as well...
But it makes no sense to ask for a generic way to do that.
In the end, the Qt platform for sailfish os is indeed simply Linux, or
if you want Linux+Wayland.
The rest of the dependencies should be checked package for package:
So on linux, check if there is libsailfishapp, and build the sailfish version.
Check for... Mir, and build for Ubuntu.
Or build for a desktop Linux if you do not find mobile specific libraries.



 Other features like screen size, language, etc. Of course you want to do it at
 runtime. But note that the default +android, +blackberry directories that are 
 different anyway, do something like

for the sailfish
 QFileSelector knows about should work out of the box with plain Qt. See for
 example:

 https://github.com/qtproject/qtbase/blob/8ee7aa78afd3d3dee6e333953d51aa72cb227441/src/corelib/io/qfileselector.cpp#L349-386

 This can still be added to the QQmlFileSelector of the engine through
 libsailfishapp, so I think I'll send a pull request anyways.

 --
 Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
 http://barnacity.net/ | http://disperso.net
 ___
 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] SailfishOS as an OS/platform in Qt

2014-12-07 Thread Luciano Montanaro
On Sun, Dec 7, 2014 at 10:29 PM, Alejandro Exojo s...@badopi.org wrote:
 El Sunday 07 December 2014, Luciano Montanaro escribió:
 On Sun, Dec 7, 2014 at 10:33 AM, Alejandro Exojo s...@badopi.org wrote:
  That's the opposite of what most people are trying to do.
 
  If the overhead is negligible, you may not care much of shipping all the
  assets in one binary package, of which the user will only see a part, but
  other applications might prefer to save some space if they contain many
  assets.

 The problem is that this model does not scale. Now there is one device
 using SailfishOS, next June there will be two...
 Hopefully there will be more in one year.

 So you want to make one build for each model that will use SailfishOS
 in the future?

 I did nowhere say that. I say that MAYBE you want to trim some assets if you
 have OS specific assets (and you have a non-negligible gain). And for that you
 need to know the OS you are building for. As I explained, other systems have
 built in support in Qt for knowing the OS.


Well, os specific, all right. But I understood you wanted a different
configuration on tablet vs phone, and to that I would object.
But you do not need a Qt .config file for that -- and when you build
Qt, Sailfish is just a Linux target.

 I think Jolla hopes to license the OS to other vendors. If they
 succeed, optimization s targeted to single devices will not be
 practical.

 The best option is to build the asset in a scalable format (or ship it
 at high res) and then render it at install time...
 Like what has been proposed for the icon scaling.

 Exactly what I said: Other features like screen size, language, etc. Of
 course you want to do it at runtime.

  However, the main thing that motivated me to dig into the issue and send
  the mail was libsailfishapp. That library is, AFAIK, only relevant on
  Sailfish, and also requires one to add special code in main(). That
  can't be done at runtime (well, you could do it I think, but you really
  don't want to, given that you already have to set a special binary name,
  for example, and it complicates things for no reason).

 Well, I think the easiest thing to do is do out-of source builds, and
 since the target configuration

 qmake -config sailfishos
 qmake -config blackberry

 I don't follow you here. What's that qmake flag?

I think it is not documented, but it allows you to pass a custom
configuration to the qmake.
You could also use

qmake CONFIG+=sailfishos, for example.
Then in the .pro file you put specific files and rules in specific sections

sailfishos {
...
}
ubuntu {
}
linux {
}
blackberry {
}
...

sections. Note that the linux rule is predefined, and would apply in
both sailfishos and uuntu build.

If you use Qtcreator, You can modify the target build configuration so
that the qmake step includes the -config for architecture you want to
build for.



 Then if you want to have different assets, you can do this as well...
 But it makes no sense to ask for a generic way to do that.
 In the end, the Qt platform for sailfish os is indeed simply Linux, or
 if you want Linux+Wayland.
 The rest of the dependencies should be checked package for package:
 So on linux, check if there is libsailfishapp, and build the sailfish
 version. Check for... Mir, and build for Ubuntu.
 Or build for a desktop Linux if you do not find mobile specific libraries.

 I also explained the problem with the tooling that a library check has. And
 that is not only about the library.


All right, but then the proper solution would bet to fix the check,
not shipping more qt .config files.

 But well, if so many people disagree, I'll just give up. Only one more thing
 so I don't need to add more traffic to the mailing list:


 El Sunday 07 December 2014, Attila Csipa escribió:
 On 12/7/2014 11:33 AM, Alejandro Exojo wrote:
  However, the main thing that motivated me to dig into the issue and
  send the mail was libsailfishapp. That library is, AFAIK, only
  relevant on Sailfish, and also requires one to add special code in
  main(). That can't be done at

 There, you said it yourself - if what you want is to detect a library,
 then that's what
 you should be doing.

 I did not say that. You even quoted what I said. Read it again please. :)


Well, even in this case, the trick above would work.

I just wish there were CMake templates available - qmake is badly
documented, and it quickly get messy if the project grows.

 --
 Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
 http://barnacity.net/ | http://disperso.net
 ___
 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

Re: [SailfishDevel] SailfishOS as an OS/platform in Qt

2014-12-06 Thread Luciano Montanaro
On Dec 6, 2014 8:30 PM, Lorn Potter lorn.pot...@jolla.com wrote:


 On 5 Dec 2014, at 2:38 am, Alejandro Exojo s...@badopi.org wrote:

 
  Then I searched a bit in the branch of the mer-qt/qtbase repo. I see
you don't
  use any mkspec for SailfishOS or Jolla, right? That's where I thought
you
  might have it, and where I think it could be. Blackberry sets there the
  QMAKE_PLATFORM and Q_OS_BLACKBERRY.

 Tizen also and their own branch even.

 There are also quite a few other devices that have their own mkspec, so
there is precedence for supporting a sailfish/jolla platform mkspec.


 ~/depot/qt/qt5/qtbase/mkspecs/devices $ [tizen] ls
 blackberry-playbook-armle-v7-qcc/   linux-archos-gen8-g++/
  linux-beagleboard-g++/
linux-mipsel-broadcom-97425-g++/linux-snowball-g++/
 blackberry-playbook-armv7le-qcc/linux-arm-amlogic-8726M-g++/
  linux-g++-tizen/linux-rasp-pi-g++/
  linux-tegra2-g++/
 blackberry-playbook-x86-qcc/linux-arm-hisilicon-hix5hd2-g++/
  linux-imx53qsb-g++/ linux-sh4-stmicro-ST7108-g++/
 common/ linux-arm-trident-pnx8473-g++/
  linux-imx6-g++/ linux-sh4-stmicro-ST7540-g++/



 
  Yes, yes. I know there is a solution: pass a parameter to the qmake
  invocation. Store the invocation flag on the RPM packaging for final
  deployment, and maybe a .pro.shared file for development. That's what
Puzzle
  Master has now too. Still I think there is some value in having this
sorted
  out in a more general way, specially given that you'll want people to
also
  distinguish a build for the Jolla phone or the Jolla tablet.
 
 Well, this one is easy. Tablet isn't arm based. :)


Actually, no, you want to detect features at runtime, not at build time.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Tablet version SDK a.k.a 2.0

2014-11-21 Thread Luciano Montanaro
Well, I suppose that depending on the application you will need to
make adaptations.
But I suppose applications should largely work without changes.
Tweaking the UI may be useful, but there is not much that can be made
right now. I doubt there is much to share anyway... We are looking at
the development of SailfishOS almost in realtime... I doubt the
features of production SailfishOS  are more than three months older
than those in active development.

There are activities you may do now to ensure some form of forward
compatibility: be sure to use only element sizes and styling based on
the Theme class, do not assume the values are fixed, make sure your
application works in landscape as well as in portrait...
Do not assume PullDown and PopUp menus come from a specific
direction... If you have custom graphics, make it use SVG to allow for
scaling.

For covers, do not assume you will have the sizes will match the
current covers.

Maybe we will get new QML items with the new Sailfish OS, I hope they
will work in the phone and tablet form factors anyway.

Games with graphics will have the harder time porting... utility
applications could likely be workable without too many tweaks.

I suppose we will be able to test anything on our phones before we
will put our hands on the tablet.

I am not worried at all about the SDK availability, what worries me is
the limited number of interfaces allowed on the official store.

Luciano


On Fri, Nov 21, 2014 at 9:59 AM, jerome levreau
levreau.jer...@vostoksystem.eu wrote:
 Hi,

 I disagree Luciano.
 I'm too concern about an early sdk release for the tablet : Yes my apps will
 work on the tablet, services classes won't change but I definitively have to
 rethink layout (qml) and navigation to fit this new form factor. A simple
 scale up version will look awful...
 As pointed out, arch is different, that (probably) answers the question
 either app has to fit both or a new version will have to be build.

 I thinks mine will be delivered on the third batch ; wondering if dev
 contributor might get it even earlier for testing  ?

 Bye

 2014-11-20 10:09 GMT+01:00 Luciano Montanaro mikel...@gmail.com:

 Andrey is being ironic, I suppose, but it is a good guess.

 I don't think you need to care, though:
 The SDK will probably be updated a couple of times before Sailfish
 2.0, with interim updates...
 I think that, as long as your app works on a phone, it will work on
 the tablet. Maybe layout will not be optimal, but that can be fixed
 later on.

 Luciano

 On Wed, Nov 19, 2014 at 9:53 PM, Fabio Isgrò fabio.is...@messinalug.org
 wrote:
  So 4th week of May 15  or 1week of Jun 15 ?
 
  On Wed, Nov 19, 2014 at 8:54 PM, Andrey Kozhevnikov
  coderusin...@gmail.com
  wrote:
 
  a week after OS update released, as usual :D
 
  20.11.2014 00:52, Alex Smirnoff пишет:
 
  Is that already known when new SDK will be available?
 
  Could not wait to port Gcompris to Jolla.
 
 
  --
  Alex Smirnov
 
 
  ___
  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



 --
 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



 ___
 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] Tablet version SDK a.k.a 2.0

2014-11-20 Thread Luciano Montanaro
Andrey is being ironic, I suppose, but it is a good guess.

I don't think you need to care, though:
The SDK will probably be updated a couple of times before Sailfish
2.0, with interim updates...
I think that, as long as your app works on a phone, it will work on
the tablet. Maybe layout will not be optimal, but that can be fixed
later on.

Luciano

On Wed, Nov 19, 2014 at 9:53 PM, Fabio Isgrò fabio.is...@messinalug.org wrote:
 So 4th week of May 15  or 1week of Jun 15 ?

 On Wed, Nov 19, 2014 at 8:54 PM, Andrey Kozhevnikov coderusin...@gmail.com
 wrote:

 a week after OS update released, as usual :D

 20.11.2014 00:52, Alex Smirnoff пишет:

 Is that already known when new SDK will be available?

 Could not wait to port Gcompris to Jolla.


 --
 Alex Smirnov


 ___
 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



-- 
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] Tablet version SDK a.k.a 2.0

2014-11-20 Thread Luciano Montanaro
Yes, but the SDK already has an x86 target. The emulator is simply an
x86 virtual machine, so, if your app runs in the emulator, it will run
on the tablet. The resolution is wrong for the tablet, but other than
that, the app will run.

On Thu, Nov 20, 2014 at 11:19 AM, Luca Donaggio donag...@gmail.com wrote:
 CPU architectures are different, too: tablet having a 64bit Intel SoC, while
 phone uses a 32bit ARM.
 Currently every app in the Store is an ARM binary, so at least they all need
 to be re-compiled for x86 and re-uploaded, as I doubt that the tablet will
 sport an ARM compatibility layer.

 On Thu, Nov 20, 2014 at 10:09 AM, Luciano Montanaro mikel...@gmail.com
 wrote:

 Andrey is being ironic, I suppose, but it is a good guess.

 I don't think you need to care, though:
 The SDK will probably be updated a couple of times before Sailfish
 2.0, with interim updates...
 I think that, as long as your app works on a phone, it will work on
 the tablet. Maybe layout will not be optimal, but that can be fixed
 later on.

 Luciano

 On Wed, Nov 19, 2014 at 9:53 PM, Fabio Isgrò fabio.is...@messinalug.org
 wrote:
  So 4th week of May 15  or 1week of Jun 15 ?
 
  On Wed, Nov 19, 2014 at 8:54 PM, Andrey Kozhevnikov
  coderusin...@gmail.com
  wrote:
 
  a week after OS update released, as usual :D
 
  20.11.2014 00:52, Alex Smirnoff пишет:
 
  Is that already known when new SDK will be available?
 
  Could not wait to port Gcompris to Jolla.
 
 
  --
  Alex Smirnov
 
 
  ___
  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



 --
 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




 --
 Luca Donaggio

 ___
 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] Jolla release plan for high level features - update10

2014-11-06 Thread Luciano Montanaro
The current batch of improvements will be welcome for sure, as well as the
gstreamer upgrade.

The platform UI scalability, while welcome, will probably affect us as
developers the most.
Can you be a bit more specific about it? Are you planning to use svg icons,
for example? What should we be aware of, when designing our apps?

Thank you,

Luciano

On Thu, Nov 6, 2014 at 9:38 AM, Soumya Bijjal soumya.bij...@jollamobile.com
 wrote:

 Hi all,

 Here is a quick summary of our plans for this month.

 Our current focus is towards enabling update10 to be a stable OS update,
 therefore ironing out issues related to memory handling is the utmost
 priority right now.

 In addition to that, we expect to release the following improvements:
 * Alphanumeric support in device lock
 https://together.jolla.com/question/19890/alphabetic-device-lock/

 * Option to keep display on while charging
 https://together.jolla.com/question/37616/keep-display-on-while-charging/
 * Silence an incoming call by flipping the phone or by pressing the power
 key
 https://together.jolla.com/question/371/silence-incoming-
 calls-by-turning-the-phone-face-down/

 * Snooze alarm by flipping the phone or by pressing power key
 https://together.jolla.com/question/8559/alarm-clock-alarm-unintuitive/
 https://together.jolla.com/question/3/bug-power-
 button-not-active-during-clock-alarm/

 * Enable zram in kernel
 https://together.jolla.com/question/45055/suggestion-
 zram-swappiness-tweaks-more-performance/

 * Edit a single occurence of a recurring event
 https://together.jolla.com/question/27716/enable-edit-of-
 single-occurrence-event-for-repeating-calendar-event/

 * A way to set default reminder
 https://together.jolla.com/question/10327/feature-
 request-calendar-reminder-turned-on-by-default/
 Our implementation: on creating a new calendar event with reminder, the
 reminder time set is saved and used as default for the subsequent new
 calendar event entries.

 * As protection against pocket calls, block touch input until proximity
 sensor is uncovered
 https://together.jolla.com/question/11374/bug-accidental-
 unlocks-and-pocket-dialing-feature-req-disable-touch-
 screen-and-pwrbtn-when-proximity-is-detected/
 https://together.jolla.com/question/9615/preventing-
 pocket-dialing-to-emergency-service-112/
 Since this also means any proximity sensor faults will render the device
 practically unusable, it will be possible to temporarily disable proximity
 sensor by triple power key press.

 * Device lock can be activated manually by double power key press
 https://together.jolla.com/question/4339/locking-the-
 device-right-away-without-waiting-for-the-lock-time/

 Apart from finalizing update10, we will start the following activities:
  - start the work to update to GStreamer 1.x (latest upstream version
 1.4.3)
  - start the work on platform UI scalability, beginning with making icons
 resolution independent and improving layout scaling

 Regards,
 Soumya
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscribe@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] Multi-language app details on Harbour

2014-03-25 Thread Luciano Montanaro
I agree, My apps are localized in Italian and English (those are the
languages i speak), and I would like to add a description in at least
those languages to the store as well.

Ciao
Luciano

On Mon, Mar 24, 2014 at 8:49 PM, Lauri Nurmi lanu...@iki.fi wrote:
 On Sat, 22 Mar 2014, Andrey Kozhevnikov wrote:

 On 22.03.2014 00:09, Lauri Nurmi wrote:

 Ahoy all,

 On the Edit app page at harbour.jolla.com, one can add a textual
 description about the app in multiple languages. But the only languages
 offered for adding are English and Finnish. Why is that? Also, is the list
 of two languages somehow personalized based on e.g. my address, or are
 English and Finnish the only languages offered for anyone?


 What language you want to add?


 Spanish and Swedish for now, but is it important what I need? I would expect
 the list of available languages to contain at least those languages to which
 the Sailfish OS itself has been translated to.


 -ln


 ___
 SailfishOS.org Devel mailing list



-- 
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


Re: [SailfishDevel] Hardware compatibility

2014-03-07 Thread Luciano Montanaro
I think i can expect that any application that builds for the target
architecture will work...

But does hardware adaptation include tweaks to, e.g. the Silica.Theme constants?

I think those will have to be tweaked...

Because, for example, for a 4.5 screen with a higher DPI I would
probably want the theme to report larger pixel sizes.
On a small screen device, with a low DPI, sizes should be tweaked as
well, but what would be the best compromise I cannot tell without
trying, you need to have buttons and widgets big enough that
activating them by touch is reliable.

It would be useful to know what is the expected behavior, and best
practices we can put in place.

Best regards
Luciano
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Hardware compatibility

2014-03-07 Thread Luciano Montanaro
By the way, I just created a question on TJC:

https://together.jolla.com/question/32286/development-theming-in-the-future/

If you are interested in the outcome, please vote for it!

Regards,
Luciano

On Fri, Mar 7, 2014 at 9:38 AM, Luciano Montanaro mikel...@gmail.com wrote:
 I think i can expect that any application that builds for the target
 architecture will work...

 But does hardware adaptation include tweaks to, e.g. the Silica.Theme 
 constants?

 I think those will have to be tweaked...

 Because, for example, for a 4.5 screen with a higher DPI I would
 probably want the theme to report larger pixel sizes.
 On a small screen device, with a low DPI, sizes should be tweaked as
 well, but what would be the best compromise I cannot tell without
 trying, you need to have buttons and widgets big enough that
 activating them by touch is reliable.

 It would be useful to know what is the expected behavior, and best
 practices we can put in place.

 Best regards
 Luciano



-- 
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


Re: [SailfishDevel] QML C++ Integration not working in Sailfish

2014-02-25 Thread Luciano Montanaro
I think you need to add a qRegisterMetatype() to be able to invoke
methods from qml.

On Tue, Feb 25, 2014 at 3:06 PM,  antonio.cano.go...@ovi.com wrote:
 Hi,

 I am trying to do a simple Sailfish aplication that uses a c++ library.  I
 try to connect my qml code with the C++ code.

 First I create QObject extended library:

 #ifndef BLOOMFILTERS_H
 #define BLOOMFILTERS_H


 #include QObject
 #include svn/bloom-read-only/bloom_filter.hpp

 class Bloomfilters : public QObject
 {
 Q_OBJECT


 public:
 Q_INVOKABLE  void generateFilterInvokable2() const ;
 Q_INVOKABLE  void generateFilterInvokable(const QString cadenaK, const
 QString cadenaM) const ;


 explicit Bloomfilters(QObject *parent = 0);

 void generateFilter() ;

 Q_INVOKABLE void insertElement(const QString cadena) ;

 Q_INVOKABLE bool checkElement(const QString cadena) ;




 signals:


 public slots:

 private:
 bloom_parameters _parameters ;
 bloom_filter _filter;
 bool _filter_charged;
 QString _k;
 };

 #endif // BLOOMFILTERS_H



 An I try to connect this with my sailfish application with the code:

 QGuiApplication *app = SailfishApp::application(argc, argv);
 QQuickView *view = SailfishApp::createView();
 Bloomfilters  * bloomfilters = new Bloomfilters();
 view-rootContext()-setContextProperty(Bloomfilters,
 bloomfilters);
 view-setSource(SailfishApp::pathTo(qml/bloomfilter.qml));
 view-showFullScreen();
 return app-exec();

 But this is not working.

 Someone have any idea about what am I doing wrong?

 Best Regards!



 ___
 SailfishOS.org Devel mailing list



-- 
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


Re: [SailfishDevel] Puzzling application rejection...

2014-02-18 Thread Luciano Montanaro
Hey,
thank you all for the quick answers!

And to the Jolla crew for the resolution of the problem.

Cheers,

Luciano

On Tue, Feb 18, 2014 at 2:44 PM, Developer Care
developer-c...@jolla.com wrote:
 Ahoy,

 This was a human error and we have called the rejection back from our Harbour 
 QA system. Sorry for all the trouble.

 Br,
 Jolla crew

 -Original Message-
 From: devel-boun...@lists.sailfishos.org [mailto:devel-
 boun...@lists.sailfishos.org] On Behalf Of Andrey Kozhevnikov
 Sent: 18. helmikuuta 2014 15:34
 To: devel@lists.sailfishos.org
 Subject: Re: [SailfishDevel] Puzzling application rejection...

 I see QA not testing applications, reading application name and description
 and pushing random buttons :D

 On 18.02.2014 19:28, Jonni Rainisto wrote:
  Maybe QA tester has misread RPM vs. RPN :-)
  
  From: devel-boun...@lists.sailfishos.org
  [devel-boun...@lists.sailfishos.org] on behalf of Luciano Montanaro
  [mikel...@gmail.com]
  Sent: Tuesday, February 18, 2014 3:23 PM
  To: devel@lists.sailfishos.org
  Subject: [SailfishDevel] Puzzling application rejection...
 
  Hi everybody, since I cannot find a way to ask for details in the
  harbour, I will try asking for help here:
 
  I submitted my updated Quanto Fa RPN calculator, and this the
  motivation of the rejection:
 
  We have to reject your application because it's using the PackageKit
  D-Bus API  to install (sideload) RPM packages. See
 https://harbour.jolla.com/faq#7.2.0 and 
 https://harbour.jolla.com/faq#6.7.0, we currently do not allow that. Please
 remove  that functionality for the time being. It's also mentioned that very
 soon we will allow RPM sideloading, please keep an eye on the FAQs and the
 release notes  of Sailfish OS upgrades, when you can enable that feature
 again.
  Now I am puzzled, because I am doing nothing of that sort. The app is
  almost entirely QML/JavaScript.
 
  The only problem I could imagine with it is that I use QtFeedback to
  make the keys click... but I am conditionally loading the QML object,
  and fallback gracefully if the functionality is unavailable. The
  validator did not complain.
 
  But if that is the problem, the above comment is very misleading.
 
  Best regards,
  Luciano
 
 
  --
  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
  ___
  SailfishOS.org Devel mailing list

 ___
 SailfishOS.org Devel mailing list
 ___
 SailfishOS.org Devel mailing list



-- 
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


Re: [SailfishDevel] Haptic feedback for silica components, or lack thereof.

2014-02-10 Thread Luciano Montanaro
Thank you for your answer.

Well, as for haptics on buttons, at least on symbian, most controls
have a subtle click... that I think really helps to know a touch has
been registered. As long as it is only a click, and not a buzz, It
should be ok. But opt-in is fine with me. Better yet, if feedback can
be user customized, with a mix of sounds and haptics. I suppose not
all devices will have the same capabilities.

I think I will make the keypad more similar to the virtual keyboard;
that will avoid the haptics overlapping problem.
Too bad the QtFeedack is not cleared for the store anyway...

Best regards,
Luciano


On Mon, Feb 10, 2014 at 1:00 PM, Pekka Vuorela pekka.vuor...@jolla.com wrote:
 On Sat, 2014-02-08 at 19:31 +0100, Luciano Montanaro wrote:
 Hello, everybody,

 I have spent the afternoon playing with my calculator application.
 Using it, I realised it needs some feedback to the user, since
 pressing the keys obscure them, and the highlighting is mostly lost.

 So I checked what is available, and found that QtFeedback is what I needed.

 Now the calculator has its feedback, which is ok.

 I am using ThemeEffect.PressWeak, which feels right.

 However...

 I am not sure using a Button together with the effect is right:

 it is possible that in the future Buttons will ue haptics feedback on
 their own, so my usage would interfere. So I fear this change will not
 be acceptable in the Harbour.

 Since haptic feedback is already used in the pulley menu, I expect
 more silica components will get it in the future, can someone confirm
 this?

 Should I spin my own custom buttons?

 Haptic support for some more components may come, but if such happens to
 Button, we should at minimum give some warning beforehand, or then make
 it opt-in with a property.

 Then again for calculator kind of key pad, I'd myself prefer something
 else than a Button. E.g. phone number inputs, Jolla calculator, device
 lock, etc, have a button area with press highlight rectangle.


 ___
 SailfishOS.org Devel mailing list



-- 
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


[SailfishDevel] Haptic feedback for silica components, or lack thereof.

2014-02-08 Thread Luciano Montanaro
Hello, everybody,

I have spent the afternoon playing with my calculator application.
Using it, I realised it needs some feedback to the user, since
pressing the keys obscure them, and the highlighting is mostly lost.

So I checked what is available, and found that QtFeedback is what I needed.

Now the calculator has its feedback, which is ok.

I am using ThemeEffect.PressWeak, which feels right.

However...

I am not sure using a Button together with the effect is right:

it is possible that in the future Buttons will ue haptics feedback on
their own, so my usage would interfere. So I fear this change will not
be acceptable in the Harbour.

Since haptic feedback is already used in the pulley menu, I expect
more silica components will get it in the future, can someone confirm
this?

Should I spin my own custom buttons?

Best regards,
Luciano

-- 
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


Re: [SailfishDevel] When does Jolla give us an API?

2014-02-03 Thread Luciano Montanaro
Hi everybody,

I too find documentation a bit missing...
But it is not much about APIs, but system level documentation.
Qt documentation is good, at least for the parts that are still
actively maintained.

But SailfishOS uses Qt, on top of wayland, systemd, pulse,gstreamer
and telepathy, and a bunch of other services.

Open source package documentation can be very good, or completely missing.

Moreover, to achjeve the same thing I may use a Qt based API, or, say,
DBUS messages.

So I think that more than the APIs, it is the list of allowed or
preferred services that is needed.

SailfishOS as a Linux distribution is quite modern, and it would help
to know more about its plumbing.

Just my 2 cents.

Best regards,

Luciano

On Mon, Feb 3, 2014 at 5:59 PM,  christopher.l...@thurweb.ch wrote:
 Hi all

 my experience is that are a vast amount of apis out there: There is all the
 Qt stuff, the Qt add-ons, Nemo packages, and lower-level stuff like
 telepathy and GST. The problem is not the lack of APIs, but the choice of
 APIs. Which is the best one to use?.

 Then if you hit on a likely API, and find some good examples on the
 interweb, then it is not sure that that API will fully work on the Jolla
 (although this is likely to improve with every update as the Jolla matures).

 And if the chosen API works from a technical point of view, then that does
 not mean that harbour will permit it ... although this too should improve
 with time.

 On the whole I have found the Qt documentation to be very good. Where things
 get a bit shaky is using esoteric things like gaining device resource
 permissions (e.g permission to use the LED, or to access the phones
 contacts). For this sort of thing I often have to resort to the source code
 (which at work we call the ultimate documentation .8-) )

 mfg

 Chris

 Zitat von David Greaves david.grea...@jolla.com:


 On 03/02/14 15:29, Putze Sven wrote:

 Hi there,

 during Fosdem I spoke to some people about this, even to Carsten Munk
 from
 Jolla itself (not in the depth and detail of this mail, I must admit) and
 he
 suggested to write this in the mailing list, so those of Jolla who should
 be
 concerned have a chance to answer this question and I really would like
 to
 hear some official statements here.


 Did you manage to get to the round-table event? - we spent a fair bit of
 time
 talking about APIs there; we also openly discussed the issues we face.

 I know that the community people there wanted to continue the discussion.

 What does a developer need to write quality apps? An API and a
 documentation
 of such.

 So far there is a quite limited API available and therefore we don't see
 too
 many apps out there. How will you write a sophisticated app, if the API
 is
 not available or it is not allowed to use or is only known to those with
 Maemo/Meego history?


 A quick response: we support the Qt API and rather than developing our own
 proprietary one we're working hard to support the open one as it grows.

 The Qt documentation is extensive and superb :)
 Using it in Sailfish Silica apps is less well documented but is improving
 (and
 honestly is mainly a tutorial issue for new developers - not an API docs
 issue).

 Yes there are some APIs in the mobile space that are not part of the Qt
 release
 yet - Qt 5.2 will introduce more.

 David

 ___
 SailfishOS.org Devel mailing list




 ___
 SailfishOS.org Devel mailing list



-- 
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


[SailfishDevel] Different behavior when starting application from QtCreator or Launcher

2014-01-30 Thread Luciano Montanaro
Hello everybody,
maybe someone may shed some light on this odd behavior:

I have implemented an active cover in my train timetable application,
where the action is enabled when a certain property in a C++ object (a
string) has a length different from zero. This property is set by the
application when loading data from a station.

The odd thing is that this works correctly if I launch the application
from qtcreator or fingerterm, but does not when starting it from the
launcher.

The only thing that may be different is that the application is
invoked differently...

Maybe it would help me to understand how the laucher invoker works...
Can anybody give me some pointer on how it works?

Best regards,
Luciano

-- 
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


Re: [SailfishDevel] White screen and no errors

2014-01-28 Thread Luciano Montanaro
On Tue, Jan 28, 2014 at 2:51 PM, Marcin M. marmistrz...@gmail.com wrote:


 Why can it happen?


Something similar has happened to me when a QML file cannot be parsed.

Check those curly brackets! :)

Luciano

-- 
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


Re: [SailfishDevel] Release versioning best practice?

2014-01-14 Thread Luciano Montanaro
As far as I understand, the notation used is
major.minor.patch-packageversion, with the packageversion  reserved
for the packager (changes to spec/yaml/ files).

Since you are both the packager and the developer, you can always leave it to 0.
Maybe, if you only fix packaging issues without touching the code, you
could bump it instead of the patch version.

I would bump the patch version number, and reset the packaging number to 0.


Best regards,
Luciano

On Mon, Jan 13, 2014 at 11:15 PM, Thomas Tanghus tho...@tanghus.net wrote:
 When packaging a bugfix release what is the best practice?

 1. Just bumping the release number so the package name goes from harbour-
 appname-0.1-1.armv7hl to harbour-appname-0.1-2.armv7hl

 2. Bump minor version from e.g. harbour-appname-0.1-1.armv7hl to harbour-
 appname-0.1.1-1.armv7hl

 3. Both version and release from harbour-appname-0.1-1.armv7hl to harbour-
 appname-0.1.1-2.armv7hl

 --
 Med venlig hilsen / Best Regards

 Thomas Tanghus
 ___
 SailfishOS.org Devel mailing list



-- 
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


Re: [SailfishDevel] Does /dev/urandom is strong enough to rely on it for crypto

2014-01-13 Thread Luciano Montanaro
I don't think this is SailfishOS specific.
I am not a crypto expert, but the man page says that /dev/random is
the device you want to use.
/dev/urandom generates pseudorandom values when it gets out of entropy...

Just checked out this:
http://security.stackexchange.com/questions/3936/is-a-rand-from-dev-urandom-secure-for-a-login-key

Apparently, /dev/urandom should be ok for use, but don't quote me about this.

Luciano

On Mon, Jan 13, 2014 at 8:21 AM, Benoît HERVIER kher...@khertan.net wrote:
 Hi all,

 Does /dev/urandom is strong enough to be used for cryptographic purpose on 
 Sailfish OS ?

 Regards,
 Thx
 ___
 SailfishOS.org Devel mailing list



-- 
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

Re: [SailfishDevel] How to translate (lupdate) ?

2014-01-13 Thread Luciano Montanaro
In my application I am using just:

   QString locale = QLocale::system().name();
QTranslator translator;
if (translator.load(QString(i18n:quandoparte_) + locale)) {
qDebug()  Translation for locale  locale  loaded;
a-installTranslator(translator);
} else {
qDebug()  Translation for locale  locale  not found;
}

Why do I need to check the environment? Isn't QLocale::system() using
it behind the scenes anyway?

Thank you,
Luciano

On Mon, Jan 13, 2014 at 4:28 PM, Timur Kristóf timur.kris...@gmail.com wrote:
 Not sure what you mean by already performs all the checks you do - it
 doesn't check LANG, nor does it check QLocale::system().name()


 Timur



 On Mon, Jan 13, 2014 at 1:21 PM, Thomas Tanghus tho...@tanghus.net wrote:

 On Monday 13 January 2014 12:52 Timur Kristóf wrote:
  Here is how I do it:
 
  1. Check the LANG environment variable
  2. Check QLocale::system().name()
 
  Take a look at the code here:
  https://github.com/Venemo/puzzle-master/blob/master/helpers/util.cpp#L24

 QTranslator::load()[1] already performs all the checks you do, so is there
 really a need to do more than this?

 QTranslator* translator = new QTranslator;
 QString locale = QLocale::system().name();
 if(!translator-load(SailfishApp::pathTo(translations).toLocalFile()
 + / + locale + .qm)) {
 qDebug()  Couldn't load translation;
 }

 [1] http://qt-project.org/doc/qt-5.0/qtcore/qtranslator.html#load

 --
 Med venlig hilsen / Best Regards

 Thomas Tanghus
 ___
 SailfishOS.org Devel mailing list



 ___
 SailfishOS.org Devel mailing list



-- 
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

Re: [SailfishDevel] How to install user (controlled) data files for my app avoiding /usr/share

2014-01-09 Thread Luciano Montanaro
 (without a .desktop file and icon).

 For the future, if somebody wants to brainstorm it on together.jolla.com, we 
 could have separate “data packages” for each app on harbour that the store 
 client takes care of installing and updating independent of the app, which 
 would also result in better bandwidth usage (data is only downloaded when 
 updated, app package updates can be downloaded and installed independently). 
 On Google Play, this mechanism is called “APK Expansion Files”: 
 http://developer.android.com/google/play/expansion-files.html - something 
 similar to that could solve the problem in your case, but we’re not there yet.

 HTH :)
 Thomas

 ___
 SailfishOS.org Devel mailing list



-- 
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

Re: [SailfishDevel] Qt Creator Yaml file editor loses new entries

2014-01-08 Thread Luciano Montanaro
But anyway, it changes it in a way that fails the validator I
would prefer if it left it alone after creation.

Also, I find the custom form editor is an anti-feature...
 * it gets in the way as soon as the .yaml file gets complex
 * it has fixed-size text box, and to undo the changes one has to
remove lines one by one

I would prefer a .yaml syntax highlighter, with the possibility to
highlight syntax errors.
But even without highlighting, I would rather use the normal text
editor component... as it is, if I have to modify it I have to open
the yaml file with vim (I have added a few variables to feed the
VERSION to the qmake command line to my project).

Regards,
Luciano



On Tue, Jan 7, 2014 at 9:41 PM, Artem Marchenko
artem.marche...@gmail.com wrote:
 Technically I think it's a feature, QtC plugin just doesn't expect .yaml to
 be changed in a way you changed it :)

 Anyway, someone from Jolla team already told they were going to disable the
 .yaml autoupdate or at least make it optional. Meanwhile version control is
 your friend. Or as I also do it, I keep .yaml open in the text editor, so I
 can Undo changes there.

 /Artem


 On Mon, Jan 6, 2014 at 9:39 PM, Sven Putze sailfish...@hardcodes.de wrote:

 Oh, it's a bug?!


 https://together.jolla.com/question/10996/bug-qt-creator-reorders-yaml-file-for-no-apparent-reason/

 BR.
 Sven
 On 06.01.2014, at 00:39, Thomas Tanghus tho...@tanghus.net wrote:

  On Sunday 05 January 2014 14:12 Putze Sven wrote:
  IMHO the .yaml file is (partly) rewritten if something changes in your
  .pro
  file,
 
  Which is good to start with, but f* annoying in the long run,
  firstly
  because it's writing full paths as in /usr/share instead of %{_datadir}
  and
  insists in making those corrections every time you touch the .pro,
  secondly
  because it makes any kind of Continuous Integration close to impossible
  if you
  have the IDE open when it's is running.
  Causes a loop between SDK IDE noticing .pro has been **touched**, not
  edited,
  and then updating the .yaml, ending up in git conflicts.
  *Sigh* - I spend the better part of last night trying to figure out
  where my
  very simple scripts went wrong, until I found out it was the freaking
  SDK that
  was messing with me :D
 
  Sorry, kinda OT but otherwise SDK related ;)
 
  --
  Med venlig hilsen / Best Regards
 
  Thomas Tanghus
  ___
  SailfishOS.org Devel mailing list

 ___
 SailfishOS.org Devel mailing list




 --
 Artem Marchenko
 http://agilesoftwaredevelopment.com
 http://twitter.com/AgileArtem

 ___
 SailfishOS.org Devel mailing list



-- 
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


Re: [SailfishDevel] Best way to access SailfishOS provided icons?

2014-01-02 Thread Luciano Montanaro
It would be nice to have a reference of the icons available, with the
names, the sizes, and their intended (or acceptable) use.
Should we add a together item for it?

The icons are installed on the emulator and SDK, so it is easy enough
to have a peek at them...

But having them in some style guide would be helpful as well.

Icons are installed under
/usr/share/themes/jolla-ambient/meegotouch/icons. There are
interesting bits that seem to hint there are a few applications in the
work... If they have not been canned. (FM radio, internet radio,
weather notification...)



On Thu, Jan 2, 2014 at 8:28 PM, Andrey Kozhevnikov
coderusin...@gmail.com wrote:
 use icon.source: icon://theme/icon-m-iconname


 On 03.01.2014 01:27, Sven Putze wrote:

 Hi there,

 with the OS comes artwork and to be more specific: there come icons. What
 is the intended way to reuse those icons in own apps? Yes they are in the
 filesystem somewhere, I could read them from there. But what if their
 filename or location changes? This would break my app. I could copy them
 over to my app. This can [*] be a copyright problem, this would lead to
 duplicates everywhere.
 Is there an API to access those OS specific icons? If no, is there
 anything planned? Or did I simply miss it in the SailfishOS documentation?

 BR.
 Sven

 [*] Haven't checked that in detail
 ___
 SailfishOS.org Devel mailing list


 ___
 SailfishOS.org Devel mailing list



-- 
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


Re: [SailfishDevel] Boosted process (pid=721) was terminated due to signal 11

2013-12-29 Thread Luciano Montanaro
);
 }
 onSatellitesInViewChanged: {
 console.log(GPSBackEnd: SatellitesInViewChanged!  + satsInView
 + ;  + thisGPSBackEnd.satsInView);
 }
 }

 SilicaFlickable {
 anchors.fill: parent
 PullDownMenu {
 MenuItem {
 text: Start SatInfoSource
 onClicked: {
 console.log(turning GPS on)
 satInfoSource.startUpdates();
 }
 }
 }
 }
 }
 //end FirstPage.qml

 //start SatInfoSourceDemo.cpp
 #ifdef QT_QML_DEBUG
 #include QtQuick
 #endif

 #include sailfishapp.h
 #include satinfosource.h

 int main(int argc, char *argv[])
 {
 qmlRegisterTypeSatInfoSource(SatInfoSource,1,0,SatInfoSource);
 return SailfishApp::main(argc, argv);
 }
 //end SatInfoSourceDemo.cpp

 //start SatInfoSourceDemo.pro
 TARGET = SatInfoSourceDemo

 CONFIG += sailfishapp

 QT += positioning

 SOURCES += src/SatInfoSourceDemo.cpp \
 src/satinfosource.cpp

 HEADERS += \
 satinfosource.h

 OTHER_FILES += qml/SatInfoSourceDemo.qml \
 qml/cover/CoverPage.qml \
 qml/pages/FirstPage.qml \
 rpm/SatInfoSourceDemo.spec \
 rpm/SatInfoSourceDemo.yaml \
 SatInfoSourceDemo.desktop
 //end SatInfoSourceDemo.pro




 Zitat von Andrey Kozhevnikov coderusin...@gmail.com:


 use gdb, bro 8)

 On 28.12.2013 22:45, christopher.l...@thurweb.ch wrote:

 Hi All

 My application quits unexpectedly during startup, apparently due to
 signal 11.

 This seems to be caused by turning the GPS on, as the error occurs
 immediately after the app does that.

 I experience this on the Emulator, so it maybe down to the Emulator not
 having a real GPS. (my Jolla phone is currently in transit between Vantaa
 and Zurich according to Fedex).

 I will create a throwaway demo with just GPS to prove / disprove if the
 error is caused by GPS activate (or just bad timing).

 Googling for Signal 11 has revealed little. I have come across some
 references to this error on Android related to memory leaks.

 journalctl output is below:


 Chris


 Dec 28 18:22:57 SailfishEmul landed25_QT5[721]: [D] onStatusChanged:59 -
 MainPage: turning GPS on ...
 Dec 28 18:22:57 SailfishEmul landed25_QT5[721]: [D] onGPS:36 - turning
 GPS on
 Dec 28 18:22:57 SailfishEmul mapplauncherd[594]: Boosted process
 (pid=721) was terminated due to signal 11
 Dec 28 18:22:57 SailfishEmul invoker[751]: error: Can't send signal 11 to
 application [721]: No such process

 ___
 SailfishOS.org Devel mailing list


 ___
 SailfishOS.org Devel mailing list




 ___
 SailfishOS.org Devel mailing list



-- 
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


[SailfishDevel] Virtual keyboard disappears while typing in a silica search field

2013-12-26 Thread Luciano Montanaro
Hello everybody,

I have this strange problem in my Quando Parte application.

I have created a SilicaListView, with a search field as its header.
The listview has a long list of stations (around 2000), and the search
field is used to narrow it down. Every time the text is updated, I
change the filter for the list view. The problem is that after I type
the first character (or sometimes the second), the virtual keyboard
disappears. Maybe the search field is losing focus... how could I
prevent this from happening?

For your reference, the page in question is up on github:

https://github.com/mikelima/quandoparte/blob/master/application/resources/sailfish/qml/pages/StationListPage.qml

Thank you in advance,
Luciano

-- 
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


[SailfishDevel] Displaying large models in SailfishOS

2013-12-26 Thread Luciano Montanaro
Hi everybody,

This is the second problem I realized I have, now that I can test my
application on the actual hardware:

With a long list of items in the view, it is possible to go so much
down the list of items, that accessing the pulley menu becomes
difficult.

On Harmattan, this problem is avoided by two features:

* The toolbar is always visible and
* Long lists can be scrolled quickly through the use of the section
scroller item.

I am open to suggestions on how to fix this usability problem in my
application...

Since I modeled the list on the Contacts application behavior, one
possibility is to do what the People internal application does:
Search on top, then favorites, recent stations, and alphabet grid.

The only problem is: the alphabet grid view is not available as a
Silica item for general use... Am I right? Is it planned for a furter
update?

Alternatively, is something along the line of the SectionScroller
planned for a future update?

Thank you and best regards,
Luciano

-- 
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


Re: [SailfishDevel] Harbour API additions

2013-12-09 Thread Luciano Montanaro
Good news... Does this mean linking to QtWidgets is also accepted?

My application needs QtWebKit, and I discovered QtWidgets is a
dependency as well. I am not relying on Widgets directly, but QWebPage
needs a QApplication to work. At least with the current SDK.

I will try to remove the dependency, it is quite heavy for the simple
task of my application, but it will take some time.

Regards,
Luciano

On Mon, Dec 9, 2013 at 2:17 PM,  kher...@khertan.net wrote:
 Hi,

 Still no news about python ?

 Regards,
 --
 Benoît HERVIER - http://khertan.netLe 09/12/13 13:23 Robin Burchell a écrit :
 Ahoy,

 We have today added two new items to the Harbour-accepted list of supported 
 APIs.

 = QtWebkit =

 Due to popular demand, we are now accepting applications using QtWebkit 
 directly, both QML and C++. It should be noted that  QtWebkit has no upstream 
 support, and we do not have any real resources dedicated to working on it.

 = libmlite =

 libmlite is a small library primarily encompassing small pieces that were 
 useful from libmeegotouch, like desktop file parsing. Its primarily intended 
 purpose is to ease porting.

 Onward sails,
 The Harbour Crew
 ___
 SailfishOS.org Devel mailing list

 ___
 SailfishOS.org Devel mailing list



-- 
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

Re: [SailfishDevel] Mer SDK

2013-11-27 Thread Luciano Montanaro
I did some build directly on the SDK...
ssh to the build machine, then check the mb2 command

mb2 --help

I think you need the
mb2 build
and
mb2 deploy

commands, though I need to get back to the SDK to tell for sure.

Regards,
Luciano

On Wed, Nov 27, 2013 at 9:32 AM, Matthias Fulz mf...@olznet.de wrote:
 Thanks for the hint, but I've already read that.

 I'm missing the parts on what commands do I need to run to compile / deploy
 a project.

 Basically I'm always coding under Emacs it would be great to know the
 commands, that needs to be run.

 Anyway if nobody knows a solution, I guess I'm trying to trace them out of
 the qt-creator.

 BR,


 Quoting nic...@nicoladefilippo.it:

 Hi,
 look here https://sailfishos.org/develop-faq.html Build Engine
 N.

 Hi,

 could someone explain me, how I can use the Sailfish SDK without the
 included
 qt-creator, please?

 I just need to know what needs to be done to create a new project,
 compile
 and
 deploy.

 I'm unable to find any tutorial or explanation on that.

 Thanks,

 Matthias
 ___
 SailfishOS.org Devel mailing list



 --
  ()_()
  (0 o)
 ('')('')
 This is Bunny. Copy Bunny into your signature to help him on his way to
 world domination


 ___
 SailfishOS.org Devel mailing list



-- 
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


Re: [SailfishDevel] QtWebKit module - shouldm't it be whitelisted?

2013-11-26 Thread Luciano Montanaro
As you say, Python is not the solution, short term...
Plus I don't really want to use it. I suppose it may make some task
easier, if you have the right library... But it adds another
interpreted language in the mix, and I would rather avoid it.

Anyway, I am not using A WebView at all: I cerate a WebPage, then use
setHtml on the file I downloaded, then walk the dom for the nodes I
need.

I tried with the Xmlparser first, since the site advertises xhtml...
but the xml is really broken.

If I have to rewrite the data miner, i will simply go over the html
to match the right regexp.
It looks like the tidy library could do what I need; it is a
dependency as well, but it should be a ligher one than Python (and
qtWebkit, but that was very convenient...).

Also, I have one data source for now, but I expect to have at least
one more in the future, possibly more if I find data sources in other
countirs, so I will need different data extractors.

In any case... The library will still be there, right? This will only
prevent my application to be allowed on the Harbour store? I could
live with that; my application could live in a third party repository.

Luciano

On Tue, Nov 26, 2013 at 7:05 AM, Thomas Perl th.p...@gmail.com wrote:
 Hi,

 2013/11/26 Luciano Montanaro mikel...@gmail.com:
 On Nov 26, 2013 2:07 AM, Robin Burchell robin.burch...@jolla.com wrote:
 [...]
 My application too depends on it to scrape data from a web page. I need the
 QWebElement interface, otherwise I will need to parse the html on my own.
 [...]
 Well, access to the DOM model...

 Depending on how JavaScript-laden the page you are trying to scrape
 is, something like BeautifulSoup or Mechanize (both written in Python;
 the latter one might sound familiar to Perl programmers, it’s designed
 after WWW:Mechanize) might do the job, and in a more lightweight way
 (no need to download images or execute JS / layout the page for simple
 scraping):

  http://www.crummy.com/software/BeautifulSoup/
  http://wwwsearch.sourceforge.net/mechanize/

 Of course, this drags in a new dependency that also isn’t supported at
 the moment (Python), but as mentioned in the announcement[1], we are
 actively working on getting Python support into shape”, and once that
 will be supported (PyOtherSide QML Plugin), it might be easier to
 integrate and more efficient than moving the whole webpage through a
 WebView and going through that with the DOM.

 And if your page is JavaScript-laden, and you can’t parse the static
 HTML using BeautifulSoup or Mechanize, chances are the data parsed by
 JavaScript is also available as JSON somewhere (just look into the
 webpage code / watch the traffic) - and that’ll definitely be easier
 to parse, too :)

 HTH :)
 Thomas

 [1] https://lists.sailfishos.org/pipermail/devel/2013-November/001319.html
 ___
 SailfishOS.org Devel mailing list



-- 
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

Re: [SailfishDevel] Replacing Linux with OpenBSD

2013-11-26 Thread Luciano Montanaro
It would be quite a lot of work, I believe...

For one, sailfish is based on mer, which uses systemd, which is linux specific.

Then, the currently available (well, it will be available shortly!)
hardware needs Android drivers.

I have not been using BSD in a while... what are its advantages? In
embedded projects, Linux starts to be quite entrenched... :)

Luciano

On Tue, Nov 26, 2013 at 5:18 PM,  openda...@hushmail.com wrote:
 Hi,

 What would be the ups and downs of replacing Linux with something like 
 OpenBSD in Sailfish?

 They say perfection is achieved, not when there's nothing left to add, but 
 when there's nothing left to take away. It seems no other OS in the world 
 today embodies this as well as OpenBSD does.

 Thanks.

 O.D.

 ___
 SailfishOS.org Devel mailing list



-- 
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


Re: [SailfishDevel] QtWebKit module - shouldm't it be whitelisted?

2013-11-25 Thread Luciano Montanaro
On Nov 26, 2013 2:07 AM, Robin Burchell robin.burch...@jolla.com wrote:

 Hi,

 The reason for not whitelisting QtWebKit is a bit different here: that we
don’t want to promise an API that we cannot promise to continue to support.
While QtWebKit may continue to limp along for a few years yet, it has been
removed from upstream webkit, and has no real active maintainers that I am
aware of. The unfortunate reality is that we are not in a position where we
can take on the sole maintenance of a web engine (which is a rather large
and complex piece of software).


That is very unfortunate, if true, but as OI understand the matter,
qtwebkit will not go away anytime soon...

My application too depends on it to scrape data from a web page. I need the
QWebElement interface, otherwise I will need to parse the html on my own.

 We do offer SilicaWebView (in Silica) as a component that does not expose
any engine/implementation details (meaning that we can change the
implementation to use QtWebEngine, or Gecko, or whatever suits us / works
best for the purpose). It should be good enough for simple cases. If you’re
lacking something from it, please ask away :)


Well, access to the DOM model...
I don't really find the current trend being an improvement... qtwebkit2 was
a functional regression already, and qtwebengine, while still an unknown,
seems to be even more restricted.

 BR,
 Robin

 On 26 Nov 2013, at 02:02, Artem Marchenko artem.marche...@gmail.com
wrote:

 Hi all

 One of the rejection messages I've got in harbour is the following:
 -
 In ./usr/share/wikipedia/pages/MainWikipediaPage.qml the 'QtWebKit 3.0'
 is not allowed
 -

 Is WebKit really not allowed? Just double checking as I thought that
it's API/ABI is to be very stable at the times when it's going to retire -
http://blog.qt.digia.com/blog/2013/09/12/introducing-the-qt-webengine/ (thanks
to John Brooks for quickly locating the link).

 Shouldn't QtWebKit import be whitelisted?

 Best regards,
 Artem.

 --
 Artem Marchenko
 http://agilesoftwaredevelopment.com
 http://twitter.com/AgileArtem
 ___
 SailfishOS.org Devel mailing list



 ___
 SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] installing extra files via rpm

2013-11-22 Thread Luciano Montanaro
On Thu, Nov 21, 2013 at 5:10 PM, Andrey Kozhevnikov
coderusin...@gmail.com wrote:
 check __ARMEL__ or __ARM_ARCH_7__


Thank you, Andrey, but that is not what I was referring to.

Basically, I would like to have my package built for sailfish (and
install the sailfish qml files) when I select a sailfish target, and
say, the harmattan files when I start it from the nokia sdk. The
architecture is not enough... I need either to check for a specific
library being present, or something similar.

Regards,
Luciano

-- 
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


Re: [SailfishDevel] Update on application naming for Harbour applications

2013-11-22 Thread Luciano Montanaro
Is this package name or binary name?

Because I think you cannot use dots in the base name of the package,
but the binary name should not be a problem to change. Or a dash or
underline could replace the dot without other side effects I think...

Luciano

On Fri, Nov 22, 2013 at 4:25 PM, Artem Marchenko
artem.marche...@gmail.com wrote:
 So harbour-myapp or harbour-myapp-mydomain-com? :)

 Early next week sounds ok for development except for that we can't make it
 for the launch date then :)

 Well, I trust you guys are considering whether to let the currently
 submitted apps violate the new conditions for a while so that there would be
 something Sailfish-native installable on the day one.

 Cheers,
 Artem.



 On Fri, Nov 22, 2013 at 4:53 PM, Andrey Kozhevnikov coderusin...@gmail.com
 wrote:

 i need to rebuild everything again? :D


 On 22.11.2013 20:52, Reto Zingg wrote:

 Hi,

 On 22.11.2013 16:47, Andrey Kozhevnikov wrote:

 ah, just harbour-application instead of domain naming? ok then
 sorry for misreading.

 but i compiled package with dots successfully. check my package in
 Harbour :)


 yes renaming a existing project by hand works incl. build and compiling,
 but you can't start a new SailfishOS project, which contains dots :-(

 And we want to stick to upstream QtCreator.

 br
 Reto

 On 22.11.2013 20:40, Reto Zingg wrote:

 Hi,

 On 22.11.2013 16:39, Andrey Kozhevnikov wrote:

 really?

 harbour-org.coderus.application

 how domain.organization.application naming can clash with device
 packages?

 why?


 QtCreator does not allow it:


 https://qt.gitorious.org/qt-creator/qt-creator/source/54636d9756966fab7365043d8fd255993675e935:src/libs/utils/projectnamevalidatinglineedit.cpp#L46


 br
 Reto

 On 22.11.2013 20:32, Robin Burchell wrote:

 Ahoy,

 In Iekku’s mail yesterday, we referred to application names needing
 to
 use a “dotted” form (e.g. com.example.myapp). It was brought to our
 attention that this isn’t factually possible at this time due to
 limitations in Qt Creator/qmake, so we’re unfortunately forced due to
 time limitations - so as to not inconvenience you developers - to
 change plans.

 The new requirement is that application names must start with a
 prefix
 of “harbour-“.

 The reason (if it wasn’t clear) for this requirement is so that
 applications do not clash with other installed packages on the
 device.

 We’re very sorry for the confusion. Thanks for understanding. Should
 you have any questions on this or anything else, feel free to send an
 e-mail as always!

 P.S. We’ll be launching a FAQ explaining this (and other store
 requirements) in detail early next week, unless anything unforeseen
 crops up.

 Happy hacking,
 The Jolla Crew
 ___
 SailfishOS.org Devel mailing list


 ___
 SailfishOS.org Devel mailing list


 ___
 SailfishOS.org Devel mailing list


 ___
 SailfishOS.org Devel mailing list


 ___
 SailfishOS.org Devel mailing list


 ___
 SailfishOS.org Devel mailing list




 --
 Artem Marchenko
 http://agilesoftwaredevelopment.com
 http://twitter.com/AgileArtem

 ___
 SailfishOS.org Devel mailing list



-- 
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

Re: [SailfishDevel] Innovative app store. Or just a traditional one

2013-11-06 Thread Luciano Montanaro
Oh, yes,

that's a good option, and I just got my Quando Parte Train timetable
application ported to Sailfish OS, I hope I will be able to upload it
to my repo this evening!

I hope to see Openrepos grow in functionality but it is already quite
useful as it is.

Best regards,
Luciano



On Wed, Nov 6, 2013 at 7:19 AM, Andrey Kozhevnikov
coderusin...@gmail.com wrote:
 OpenRepos.net is here

 many features are coming. Client app Warehouse available for Harmattan.
 Sailfish client is coming too.


 On 06.11.2013 04:47, Martin Kolman wrote:

 I'll chip in with my idea/RFE:

 Built-in donation support.

 * usecase
 - the app is free
 - but there is a donation button in the store interface
 - users can click it to donate to the developer

 As it is part of the store interface, it can use the same payment mechanism
 as paid apps, making the donation procedure as painless as possible and thus
 more likely. :)
 In-application donation buttons need to use external payment methods,
 that have many drawbacks such as:
 - being evil (PayPal)
 - not widely used (Flattr)
 - experimental (Bitcoin)
 - generally not being available in many countries

 * example of store having something like this - Mozilla addons
 https://addons.mozilla.org/en-US/firefox/

 Each extension can have a Contribute button, see the Firebug extension as
 an example:
 https://addons.mozilla.org/en-US/firefox/addon/firebug/

 * could be a nice first :)

 I don't know about any current mobile store having built-it donation
 support,
 so it could be another nice first for Jolla. :)


 5.11.2013 22:04, Artem Marchenko:

 Hi All

 Phone is going to be in sales soon, app store is going to accompany it. What
 would you as app developer appreciate in the app phone?

 Is there anything on top of just buy an app or just buy this game upgrade
 in-app what could be an important feature for you? Any disruptive ideas?


 As for me, I'd appreciate a couple of options:

 1. Built-in try-before-you-buy.
 To get rid of free/paid app pairs you see in the other app platforms. If
 developer doesn't mind, user should just be able to use app for free for
 some 7 or 30 days. After that - only after payment or with some features
 downgraded.

 2. Built-in subscriptions, especially for micro-sums
 Subscription-based schemes motivate developers to improve apps all the time
 while worrying less about hit-or-miss situation, so it would be cool if app
 store supported it.

 I seriously would think even of small prices as just $0.95 a year, but it
 has to be charged on a monthly basis yet nobody is going to bug users with
 10 cents monthly paid upgrade.

 It would be great if app store supported such subscription methods natively.
 And certainly it could be seamlessly combined with try-before-you-buy so
 that first month is completely free.

 What do you think?

 Cheers,
 Artem.

 P.S.
 I am not working for Jolla, just a random developer interested in the topic.

 --
 Artem Marchenko
 http://agilesoftwaredevelopment.com
 http://twitter.com/AgileArtem


 ___
 SailfishOS.org Devel mailing list




 ___
 SailfishOS.org Devel mailing list



 ___
 SailfishOS.org Devel mailing list



-- 
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


[SailfishDevel] QtWebKit crash

2013-11-04 Thread Luciano Montanaro
Hi Everybody,
I finally managed to build my application, my problems were probably
due to the Virtual machines being out of sync with QtCreator.

Now I have an application that is still quite rough around the edges,
but it runs, and displays the first SilicaUI components.

However, I have found another stumbling block, in QtWebKit:

I am using a QWebPage to access the DOM of a web page to scrape the
information I need to display, but as soon as the QWebPage variable is
created, I get a segmentation violation.

My code is as follows:

QWebPage page;
page.mainFrame()-setContent(htmlReply, text/html, baseUrl);
QWebElement doc = page.mainFrame()-documentElement();

I tried putting a breakpoint at the QWebPage page; line, and I get a
sigsegv as soon as the constructor is called. The problem is I don't
even get a proper stack trace, to make sense of what is going on... Is
there some debug package I can install on the target (or the SDK?) to
make some progress?

By the way... I need to catch up with this WAyland stuff, but my
understanding was that it supersedes X11. However, I still see libX11
and most of the X libraries linked with my application, is this
normal?

Thank you in advance,
Luciano
-- 
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