Re: [SailfishDevel] Image scaling in Label with StyledText format

2016-07-05 Thread Martin Grimme
Hi,

you can add an inline style sheet that uses the current theme colors for rich 
text. I'm doing the same in my Tidings app for the Silica-styled view of the 
article pages. Then stuff like links look fine.


Cheers,
Martin

Am Di. Juli 5 11:01:47 2016 GMT+0200 schrieb Oleg Linkin:
> There is a problem with RichText and sailfish style. Text which I use in
> Label can use different colors which become unreadable on sailfish
> background with RichText but stay readable with StyledText because of less
> amount of available styled tags and attributes.
> Or you think that I should ignore this problem?
> 
> 2016-07-05 11:44 GMT+03:00 Кожевников Андрей Андреевич <
> coderusin...@gmail.com>:
> 
> > use RichText
> >
> > 05.07.2016 13:26, Oleg пишет:
> >
> >> Hello, developers.
> >> I want to use Label with StyledText format. My text has images of
> >> different size via img html tag and this tag very often has width 
> >> attribute.
> >> I modify text and set width to screen size.
> >> And the problems begin: if I use RichText format all are awesome and
> >> image has proper width and height  accordingly to this width.
> >> But I need to use StyledText and when I set width - image doesn't scaled
> >> to this width. If I set height too - it scaled better but I can't calculate
> >> proper height of image and image takes mach space in Label.
> >> Can you help me how I can show scaled images in StyledText format as in
> >> RichText format?
> >>
> >>
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscr...@lists.sailfishos.org
>

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

Re: [SailfishDevel] How to require an exact sailfish version in rpm?

2015-10-23 Thread Martin Grimme
Hi,

depending on the used libraries, Harbour tries to detect the required
OS version automatically. But you can also select it manually if
Harbour's guess doesn't look good to you.


Martin


2015-10-23 12:50 GMT+02:00, Adam Pigg :
> You can also specify the is version in the harbour store listing.
>
> Sent from my BlackBerry 10 smartphone.
> From: Andrey Kozhevnikov
> Sent: Friday, 23 October 2015 11:48 AM
> To: Sailfish OS Developers
> Reply To: Andrey Kozhevnikov
> Subject: Re: [SailfishDevel] How to require an exact sailfish version in
> rpm?
>
> for Harbour you not allowed to do so, for education purposes you can depend
> on sailfish-version package version :)
>
> -- Исходное сообщение --
> От: "Alexander Ladygin" 
> Кому: "Sailfish OS Developers" 
> Отправлено: 23.10.2015 15:46:33
> Тема: [SailfishDevel] How to require an exact sailfish version in rpm?
>
>>
>> Hello there sailors.
>>
>> What should i put in .spec file to require a specific OS version?
>>
>> Alex.
>
>
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] VirtualBox issue in the SDK on OS-X and how to solve

2015-08-29 Thread Martin Grimme
Hi,

after having updated to VirtualBox 4.3.30 on OS-X, I found that I was
no longer able to start the SDK VMs in Qt Creator, and Qt Creator told
me

"No virtual machine with the name 'MerSDK' found. Check your installation."

This happens when you launch Qt Creator from the dock, and not from terminal.
In this case, /usr/local/bin is not in the PATH, and the VBoxManage
binary cannot be found.
To fix it, create a symlink as root in /usr/bin that points to
/usr/local/bin/VBoxManage.

# cd /usr/bin
# sudo ln -s /usr/local/bin/VBoxManage

Apparently the VirtualBox tools have moved to /usr/local/bin recently.


Hope this helps some people who are experiencing the same problem,
Martin
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Shell command to enable/disable Developer mode

2015-07-07 Thread Martin Grimme
Hi,

developer mode is not a switch, but the action of installing a few
packages, or uninstalling them again. It could be done on the command
line with pkcon as root. Just have to check which packages these are,
as I don't remember. :)


Martin


2015-07-07 21:26 GMT+02:00, Andrey Kozhevnikov :
> ssh access disabling by clearing nemo password
>
> -- Исходное сообщение --
> От: "Alexander Ladygin" 
> Кому: "Sailfish OS Developers" 
> Отправлено: 08.07.2015 0:20:03
> Тема: Re: [SailfishDevel] Shell command to enable/disable Developer mode
>
>>Thanks Jens,
>>
>>but i'm not talking about usb connection mode. I meant developer mode
>>which can be enabled in settings to enable  ssh access.
>>
>>
>>Regards,
>>Alexander Ladygin.
>>
>>On Tue, Jul 7, 2015 at 8:27 PM, jklingen 
>>wrote:
>>>Hi Alexander,
>>>
>>>you're looking for usb_moded_util.
>>>
>>>Try
>>>usb_moded_util -h
>>>it's pretty much self-explaining :)
>>>
>>>Best regards,
>>>Jens
>>>
>>>
>>>Am 07.07.2015 um 15:39 schrieb Alexander Ladygin:
Hi there, fellow developers!

I was wondering whether there is a shell command to enable/disable
Developer mode?

Thanks!

Regards,
Alexander Ladygin.


___
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

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

2015-05-03 Thread MARTIN GRIMME


Am 3. Mai 2015, um 16:39, schrieb "E.S. Rosenberg" 
:

>
>
>Well for one thing you have the extremely RAM hungry Android environment which 
>they didn't have...

On the other hand, the N900 and N9 could have become pretty unresponsive while 
swapping, up to the point that you were not able to answer the ringing phone in 
time.
So the way Maemo and Harmattan did it with a crazy amount of swapping was 
certainly not better.


Martin


>
>2015-05-03 17:16 GMT+03:00 Taixzo :
>I wonder why Sailfish OS does this while Harmattan and Maemo did not? They 
>certainly didn't have more RAM to work with.
>
>Sunday, May 3, 2015 7:56 AM E.S. Rosenberg wrote:
>> Also note that if you skew it too much in favor of yourself the system may
>> end up killing genuinely important system processes instead of your daemon,
>> no user will be happy about that
>>
>> 2015-05-03 14:43 GMT+03:00 Martin Grimme :
>>
>>> Hi,
>>>
>>> 2015-05-03 13:09 GMT+02:00, Andrey Kozhevnikov :
>>>> afaik it only closing propcesses with windows, no?
>>>
>>> No, it is the Linux OOM handler, which does not care or know about
>>> what a Wayland window is.
>>> If your daemon is invoked as a systemd service, you can adjust the
>>> OOMScore in the system .service file of the daemon, like this:
>>>
>>>   [Service]
>>>   ExecStart=/usr/sbin/mydaemon
>>>   OOMScoreAdjust=-250
>>>
>>> The lower the value the less likely the process will be selected by
>>> the OOM killer.
>>> However, if you want to remain harbour-compatible, you cannot run the
>>> daemon as a systemd service. In that case maybe you can write the
>>> score directly at runtime to
>>>
>>>   /proc//oom_score_adj
>>>
>>> but I did not test that solution.
>>>
>>>
>>> Martin
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to
>>> devel-unsubscr...@lists.sailfishos.org
>>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
>
>--
>Sent from Whiteout Mail - https://whiteout.io
>My PGP key: https://keys.whiteout.io/tai...@gmail.com
>
>___
>SailfishOS.org Devel mailing list
>To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

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

2015-05-03 Thread Martin Grimme
Hi,

2015-05-03 13:09 GMT+02:00, Andrey Kozhevnikov :
> afaik it only closing propcesses with windows, no?

No, it is the Linux OOM handler, which does not care or know about
what a Wayland window is.
If your daemon is invoked as a systemd service, you can adjust the
OOMScore in the system .service file of the daemon, like this:

  [Service]
  ExecStart=/usr/sbin/mydaemon
  OOMScoreAdjust=-250

The lower the value the less likely the process will be selected by
the OOM killer.
However, if you want to remain harbour-compatible, you cannot run the
daemon as a systemd service. In that case maybe you can write the
score directly at runtime to

  /proc//oom_score_adj

but I did not test that solution.


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


Re: [SailfishDevel] Upcoming behavioural change with how graphics resources are handled.

2014-10-02 Thread martin . grimme
Hi,

Am Thu Oct 02 2014 08:56:53 GMT+0200 (CEST) schrieb Iosif Hamlatzis:
> Reading all these and previous similar changes I was wondering why other
> mobile platforms don't have this issue? If I'm not mistaken in no other
> mobile platform the developer has to take into account if his/her
> application goes into the background.

Well, that's a considerably low price you have to pay for multitasking. The 
other platforms don't support multitasking for apps, only for services, and 
thus developers don't need to care because  the app is acting dead / frozen / 
killed while not visible.

SailfishOS is different in this regard as it employs desktop-class multitasking 
and the apps are truly running side by side instead of simulating the 
impression more or less well. Therefore, apps shouldn't eat all RAM alone and 
should free unneeded resources where applicable. 1 GB of RAM is not that much.


Martin

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


Re: [SailfishDevel] Platform icons

2014-08-04 Thread martin . grimme
Hi,

Am Mon Aug 04 2014 15:21:58 GMT+0200 (CEST) schrieb fasza2mob...@gmail.com:
> Hi all, 
> Is there a way to see a list/dictionary  of platform icons, such as 
> image://theme/icon-[s/m/l]-iconname; Preferebly with the corresponding 
> pictures, but a path in the OS will do just fine.
>

One way would be to install Cargo Dock on your device or the emulator and 
(Developer mode enabled) navigate to 
/usr/share/themes/jolla-ambient/meegotouch/icons/ to see them all.
 

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


Re: [SailfishDevel] App rejected...

2014-04-28 Thread martin . grimme
Hi,

Am Mon Apr 28 2014 23:11:58 GMT+0200 (CEST) schrieb Peter Pykäläinen:
> Thank you for you response.
> 
> Unfortunately no, since I need to show info on the cover.
>

I think, for just showing info on the cover, giving the CPU sleep deprivation 
is overkill.

You can make the timer's running property depend on Qt.application.active (app 
is not minimized and screen is not locked) and the Cover.Active signal of the 
CoverBackground element (Cover is visible and screen is not locked).
I'm watching these two properties in Tidings, for example, to keep the elapsed 
time labels up to date.

Martin

-- 
Gesendet von meinem Jolla
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Is support for commercial apps a TABOO subject?

2014-04-24 Thread Martin Grimme
Hi,

2014-04-24 13:05 GMT+02:00, Mikael Hermansson :
> But about payment how to avoid pirate copying? Would Jolla be responsible if
>
> your work is pirated since SailfishOS has no copy protection because of its
>
> nature of "open platform". Would endusers stop use Jolla if they start
> implement copyprotection or similar silly solutions?

this is a valid point, and you basically answered the question yourself already.
The bits and pieces for payment support are not there yet.

But for the time being, I suppose no one would stop you from going the
shareware way with unlocking features via a paid registration key
directly from the author (cryptographically tied to the IMEI, for
example).


Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Exactly every second installation attempt fails with Failed to cache rpm database

2014-04-02 Thread martin . grimme
Hi,

Am Thu Apr 03 2014 00:26:39 GMT+0200 (CEST) schrieb Artem Marchenko: 
> Exactly every second installation attempt to my device (from Qt Creator) 
> fails with the Failed to cache rpm database error:
> 
> Status: Resolving dependencies
> Status: Installing packages
> Status: Downloading packages
> Package: harbour-log4qtdemo-1.0-3.armv7hl
> Percentage: 50
> …
> Package: harbour-log4qtdemo-test-1.0-3.armv7hl
> Percentage: 100
> Status: Installing packages
> Results:
> Fatal error: Failed to cache rpm database (1).

This looks like a rpm database corruption to me.
You can try to follow the instructions from 
http://www.jollausers.com/2014/04/having-trouble-with-jolla-store-we-have-a-solution/
 to fix it.


I hope this helps,
Martin

-- 
Gesendet von meinem Jolla
___
SailfishOS.org Devel mailing list

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

2014-02-25 Thread Martin Grimme
2014-02-25 16:39 GMT+01:00, Andrey Kozhevnikov :
> ???
>
> contextProperty should be set BEFORE loading QML source.

You're right, sorry! I must have confused something. I shouldn't
answer mails while on train. :)


Martin



>
> On 25.02.2014 21:33, martin.gri...@gmail.com wrote:
>> Hi,
>>
>> you should set the context property after loading the QML source. Then it
>> ought to be available from QML.
>>
>> Martin
>>
>>
>> Am Tue Feb 25 2014 15:06:39 GMT+0100 (CET) schrieb
>> antonio.cano.go...@ovi.com:
>>> 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 
>>> #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
>
___
SailfishOS.org Devel mailing list


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

2014-02-25 Thread martin . grimme
Hi,

you should set the context property after loading the QML source. Then it ought 
to be available from QML.

Martin


Am Tue Feb 25 2014 15:06:39 GMT+0100 (CET) schrieb antonio.cano.go...@ovi.com:
>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 
>#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

-- 
Gesendet von meinem Jolla
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] oauth authorization for application

2014-02-14 Thread Martin Grimme
Hi,

the way I'm doing it in Cargo Dock for Dropbox is basically having the
SilicaWebview watch the uri property and react to it in the
onUriChanged signal handler, if the redirect_uri matches the one I'm
expecting.


Martin


2014-02-14 9:32 GMT+01:00, Oleg Linkin :
> Hi, all
> I am developing client for getPocket.com service and I have problem with
> auth.
> After login service send auth status (grant permissions on not to
> application) via redirect_uri. How I should handle it or what sequence of
> actions in this case?
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Harbour compliant way to read contacts

2014-01-26 Thread Martin Grimme
2014-01-26, Gabriel Böhme :
> So Jolla get's punishment, because a user want's to use HIS Contacts,
> because they are fetched from 3rd party service, the user put HIS
> contacts?! - Wow strange.

What makes you think that the contacts you sync from a 3rd party
service are still YOUR contacts? Haven't you read the fine-print of
the 3rd party service?
Basically, whatever you upload, you give up your rights on it to the
3rd party service. ;)
I'm not really surprised about such terms and conditions.


Martin
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Scriptlets in RPM hot allowed to Harbour

2014-01-21 Thread Martin Grimme
Hi

2014/1/21, kaa :
> [...] Crap [...] Bla, bla , bla .. FUD .. bla bla bla [...] LOL [...] 
> bullshit [...] Howgh [...]

Thank you for valuable feedback. :)

IMHO, it makes sense to have both, Harbour and OpenRepos. You can compare
those in their function to Maemo Extras and Maemo Extras Devel in the old N900
days.
Everybody could upload to Extras Devel, but to get stuff into Extras, it had
to pass a quarantine and a (IMHO slow and frustrating) QA phase.
Only Extras was pre-enabled on sales devices, and even for this, Nokia
had to be
convinced first, that apps reaching Extras are ready for regular users.

Harbour has rules (sane rules IMHO) and QA (much less frustrating and
a lot faster than
the community-volunteer-driven Maemo Extras QA) to attempt to make
sure that apps

 - will install smoothly
 - will be compatible with future versions of the OS, where possible
 - will not break OS updates
 - don't compromise the system (well, it failed there, take the rpm installer
   in the Store, for instance)

I didn't include security in this enumeration, because we all know
that you cannot be
100% safe from malware, and OpenRepos may actually be safer in this
regard, if the
source is open.

The Flashlight app that phoned home with usage statistics still was legally
fine, though, even though phoning home is generally not well received.
It stole no
data, at least.

OpenRepos OTOH imposes no rules and no QA on the apps. Therefore, users should
be aware that apps

 - may not be installable or need more dependencies
 - may stop working with future OS updates
 - may even break OS updates (what happens in case of package conflicts?)
 - may compromise the system, as there are no limits

Basically, the users are free to do what they want with their devices. But for
legal reasons, the users must be informed about the consequences and accept
that if they break something, they get to keep the pieces.
The "Developer Mode" switch is this barrier.

It is a barrier that regular users (who may not even tell what a package is and
think of Linux as a laundry detergent) should not pass.
OpenRepos clearly lies beyond this barrier. That's why Harbour and the Jolla
Store are needed.

If you want to ignore Harbour, then that's your choice, and maybe it's fine as
your apps may be too advanced for the Average Joe, anyway.
But if you want to target the Average Joe, too, then you won't get around to
play by the rules of Harbour. It depends on who you want to reach.
Fortunately, Harbour rules are not set in stone and you can help shape them
for a better developer experience.


Just my 2 cents,
Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Status menu?

2014-01-19 Thread martin . grimme
Hi,

just do something that requires an internet connection and Sailfish will popup 
a connection dialog. No need to go to the settings.

Martin

Am Fri Jan 17 2014 20:31:57 GMT+0100 (CET) schrieb Julius Loman:
>Yes, but we want to have shortcut to "Connect to internet" option in the pulley
>menu. :)
>Shortcut to WLAN doesn't really help. It just skips one menu level.
>
>"Connect to internet" should be definitely in the pulley menu on the lockscreen
>somewhere else quickly accessible.
>
>On Fri, Jan 17, 2014 at 08:28:10PM +0100, Oleksii Serdiuk 
> wrote:
>> On 17.01.2014 20:14, Marcin M. wrote:
>> >The settings have some wifi thing on the top, but it seems to be
>> >enable/disable auto-scanning, and I'd like to always connect myself,
>> >never automatically, no scanning in background... And the actual option
>> >is dug deep in the settings.
>> 
>> There's a nice feature I accidentally found in Settings.
>> 
>> Go to Settings -> System settings and long tap WLAN. Context menu
>> will slide out. Tap "Add to favourites" there. This will place an
>> icon to the top of the main page of Settings app that will take you
>> directly to WLAN page.
>> 
>> -- 
>> With best regards,
>> Oleksii Serdiuk
>> 
>
>
>
>> ___
>> SailfishOS.org Devel mailing list
>
>
>-- 
>
>[ Julius Loman ][ l...@kyberia.net ][ http://lomo.kyberia.net ][ icq:35732873 ]
>___
>SailfishOS.org Devel mailing list

-- 
Gesendet von meinem Jolla
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla Applications Bug Tracking

2014-01-19 Thread Martin Grimme
Hi,

2014/1/19, Hannes Rantzsch :
> I was wondering if there is a bug tracking system for Jolla applications
> somewhere.

You can use https://together.jolla.com for reporting bugs or
suggestions. This is the official place where the Jolla developers
look for feedback from the users.


Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla Phone crashes with no mobile network available

2014-01-09 Thread Martin Grimme
Well, I'm not using an avatar neither here nor there, so the sites
pick some default.

2014/1/9, christopher.l...@thurweb.ch :
> I half suspected that ... but you use a very different avatar over there...
>
> Zitat von "Martin Grimme" :
>
>> Hi Chris,
>>
>> 2014/1/9, christopher.l...@thurweb.ch :
>>> There is a comment indicating cell-tower as a cause in:
>>>
>>> https://together.jolla.com/question/7144/jolla-randomly-shuts-down/
>>
>> Yes, I know, because I wrote this comment. ;)
>>
>>
>> Martin
>>
>
>
>
>
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla Phone crashes with no mobile network available

2014-01-09 Thread Martin Grimme
Hi Chris,

2014/1/9, christopher.l...@thurweb.ch :
> There is a comment indicating cell-tower as a cause in:
>
> https://together.jolla.com/question/7144/jolla-randomly-shuts-down/

Yes, I know, because I wrote this comment. ;)


Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla Phone crashes with no mobile network available

2014-01-09 Thread martin . grimme
Hi,

those who experience their Jolla crashing out of the blue, can you please 
elaborate, to  see if we're in the same boat?

Did it switch off all of a sudden?
Because I'm experiencing this repeatedly. I begin to see a pattern in my switch 
offs. Heavy network traffic on forced 2G in the western part of Munich (Pasing 
and Planegg).
I haven't experience this problem in other areas so far, so I assume it could 
be ofono-related.

Do you see common patterns among your crashes, too?


Martin
 


Am Thu Jan 09 2014 15:39:30 GMT+0100 (CET) schrieb Oliver Berger:
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>It was crashing resp. switching off even while taking pictures (like you are 
>one instance before clicking and the
>screen turns black - mehhh ;)... I had to startup again enter my pin and so 
>on...
>
>For me it was not responding with a black screen == OFF == crashed???
>But the phone was not rebooting - just no response.
>
>So indeed it could be also very very slow. But who knows the difference 
>between "very slow" and "off", when normally
>the phone is responding quite fast?
>
>I also noticed in other occasions that sometimes when I press the power button 
>to activate the screen, the screen
>flickers or shows up a very short time and turns black again (mostly with 
>active camera app) - then I have to press
>the power button twice to activate the screen.
>
>
>
>On 09.01.2014 15:06, Andrea Bernabei wrote:
>> hello :)
>> 
>> was the phone really crashing (i.e. rebooting), or did you just mean the 
>> network connectivity kept crashing making
>> the phone very slow and not very usable?
>> 
>> I'm asking because I experienced the second :)
>> 
>> 
>> 2014/1/9 Oliver Berger > >
>> 
>> Hello,
>> 
>> I am actually at Lanzarote and while visiting the caves there, I noticed my 
>> jolla phone was crashing every time I
>> was somewhere - impossible to have a mobile network available. It was so bad 
>> that I could hardly take pictures,
>> since it was crashing all the time...
>> 
>> On the surface again I had also problems starting the phone, so I removed 
>> the batteries... now all is working
>> again.
>> 
>> 
>> I have no idea how to debug this, since there are no log files in /var/log
>> 
>> 
>> cheers Oliver ___ SailfishOS.org 
>> Devel mailing list
>> 
>> 
>> 
>> 
>> ___ SailfishOS.org Devel mailing 
>> list
>> 
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.4.14 (GNU/Linux)
>
>iEYEARECAAYFAlLOtJ4ACgkQ0SdHlaw3iacgzgCgly/0cDwcBmz9BAJ+EwbcOzGR
>WYYAoKwSgMmFwSntu/Qhd8U2FvK7skye
>=WyKj
>-END PGP SIGNATURE-
>___
>SailfishOS.org Devel mailing list

-- 
Gesendet von meinem Jolla
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Zypper and PackageKit

2014-01-04 Thread Martin Grimme
Hi,

2014/1/4, Andrey Kozhevnikov :
> afaik pakckagekit have easy queue management

Yes, PackageKit can queue transactions, and it can be operated without
root privileges (which zypper would require). Sailfish/Nemo uses
zypper's libzypp as backend for PackageKit, however.
AFAIK zypper doesn't come preinstalled on Sailfish, but can be installed.


Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] [Update] Changelog for SailfishOS update 2 (1.0.2.5)

2013-12-27 Thread Martin Grimme
You can force-check from Settings -> About. This does a forced check
already. Probably you don't see any update (I don't see one either)
because the servers are jammed.

If you updated Jolla E-Mail already today, I suggest you leave the
store UI open, until you can do the OS update. Or you may risk not
being able to start the store anymore.


Martin


2013/12/27, Jonatan Walck :
> Bernd Wachter  wrote:
>>
>>Hi all,
>>
>>we're releasing update2 today. The changelog can be found (and
>>commented
>>on) here:
>>
>>https://together.jolla.com/question/3612/release-notes-software-update-2-1025/
>
> Fantastic! Hopefully I can start using the built in email  client now. Until
> now authentication hasn't worked with my smtp server.
>
> At the moment I can see the store updates but not the systems upgrade. All
> store upgrades except for android and clock went through even before the
> systems upgrade though. How does one force checking for the update from the
> shell?
>
> // jwalck
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] [Update] Changelog for SailfishOS update 2 (1.0.2.5)

2013-12-27 Thread Martin Grimme
Yes, if you run the store-client manually from command line, it lacks
permission to access the keys.
You can look up the complete line to invoke it in its .desktop file,
though. This will provide it with the required privileges.


Martin


2013/12/27, Mike Sheldon :
> On Fri, 2013-12-27 at 16:01 +, Mike Sheldon wrote:
>> On Fri, 2013-12-27 at 15:58 +, Mike Sheldon wrote:
>> > On Fri, 2013-12-27 at 16:44 +0100, Martin Grimme wrote:
>> > > You're right. Those apps should not be updatable before updating the
>> > > OS.
>> > >
>> > > I think you can revive your store-client by updating the store-client
>> > > package and then doing a "pkill store-client".
>> >
>> > Well, manually updating the store-client has got the store opening
>> > again, but only to the page saying that no accounts are currently set
>> > up, attempting to sign in from there just results in it complaining
>> > that
>> > an account already exists.
>>
>> Deleting the account and attempting to sign in again gets me the generic
>> error "Oops, problem with account creation". I'll leave this for now in
>> case it's just down to the Jolla servers being hammered, if it still
>> continues not to work I guess I'll have to reset the phone.
>
> Aha, managed to add my account again now. Looks like the store-client
> maybe gets some extra privileges when launched by the system, when
> running it from the command line for debugging it was producing these
> errors:
>
> SailfishKeyProvider_ini_read: unable to open file
> SailfishKeyProvider_storedKey(): error: no scheme or key found for
> provider/service
> SailfishKeyProvider_ini_write: unable to create writable ini directory
>
> But killing that and relaunching the store normally solved it :)
>
> Thanks,
> Mike.
>
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] [Update] Changelog for SailfishOS update 2 (1.0.2.5)

2013-12-27 Thread Martin Grimme
You're right. Those apps should not be updatable before updating the OS.

I think you can revive your store-client by updating the store-client
package and then doing a "pkill store-client".


Martin


2013/12/27, Mike Sheldon :
> On Fri, 2013-12-27 at 16:35 +0100, Martin Grimme wrote:
>> Actually the other way round. jolla-settings-accounts was updated but
>> store was not.
>> Did you try to update a Jolla app before rebooting?
>
> Yes, a number of Jolla apps presented themselves as having updates
> available, so I allowed them to update.
>
> I currently have version 0.1.41-10.23.1.jolla of jolla-settings-accounts
> and version 0.2.28-10.22.1.jolla of store-client (with zypper showing
> 0.2.38-10.24.1.jolla available, but not updated to).
>
> If updates depend on a certain OS version shouldn't they be given a
> dependency that makes such updates impossible until that version has
> been installed?
>
> Cheers,
>  Mike.
>
>>
>>
>> Martin
>>
>>
>> 2013/12/27, Martin Grimme :
>> > Ouch, this looks like a partial update. Store was updated, but some
>> > sign in library was not.
>> > I wonder how this can happen.
>> > Can you check in Terminal what version of jolla-settings-accounts you
>> > have?
>> >
>> >
>> > Martin
>> >
>> > 2013/12/27, Mike Sheldon :
>> >> It'd appear that store authentication isn't working, as it's
>> >> attempting
>> >> to load the Sign In page, which then fails with the following errors:
>> >>
>> >> [W] unknown:383 - file:///usr/share/store-client/main.qml:383:9: Type
>> >> SignInPage unavailable
>> >>  SignInPage {
>> >>  ^
>> >> [W] unknown:147 -
>> >> file:///usr/share/store-client/pages/SignInPage.qml:147:13: Cannot
>> >> assign to non-existent property "onLegalDocumentsAccepted"
>> >>  onLegalDocumentsAccepted: {
>> >>
>> >> If these are commented out in the SignInPage.qml it loads the store,
>> >> but
>> >> insists there aren't any accounts active. If you then try to sign in
>> >> it
>> >> complains that there's already an account set up on the device.
>> >>
>> >> So my guess would be that we just have to wait for Jolla store auth to
>> >> be fixed (presumably the authentication server has died under the
>> >> load).
>> >>
>> >> Cheers,
>> >>  Mike.
>> >>
>> >> On Fri, 2013-12-27 at 17:13 +0200, Kalle Lammenoja wrote:
>> >>> Yah, the download for os update started, but was stuck, so i
>> >>> rebooted,
>> >>> and now store crashes when i launch it :/
>> >>>
>> >>>
>> >>> 2013/12/27 Luca Donaggio 
>> >>> I have exactly the same problem as Henry! First I got the
>> >>> Jolla app updates (not working as they probably depends from
>> >>> SailfishOS update) and now cannot download OS update.
>> >>>
>> >>>
>> >>> Could it be that all the sailors out there are trying to
>> >>> download the update at the same time? :-)
>> >>>
>> >>>
>> >>>
>> >>> On Fri, Dec 27, 2013 at 4:07 PM, Henry Kwong
>> >>>  wrote:
>> >>> I am currently on 1.0.1.12 but it is currently saying
>> >>> the update is to 1.0.1.10 "Version
>> >>> 1.0.1-10.11.10.jolla" and not 1.0.2.5 - doesnt sound
>> >>> right. The download is currently not working (it
>> >>> seems
>> >>> to have stopped after less than 10% download)
>> >>>
>> >>> I also have the same problem Kimmo mentioned with the
>> >>> 8 updates and related install errors. I had suspected
>> >>> that the app updates require 1.0.2.5 which is the
>> >>> reason the app-updates failed - but now it appears I
>> >>> cannot verify if that is true or not.
>> >>>
>> >>> Help! How can I update the system to 1.0.2.5?
>> >>>
>> >>>
>> >>>
>> >>> - Original Message -
>> >>>  

Re: [SailfishDevel] [Update] Changelog for SailfishOS update 2 (1.0.2.5)

2013-12-27 Thread Martin Grimme
Actually the other way round. jolla-settings-accounts was updated but
store was not.
Did you try to update a Jolla app before rebooting?


Martin


2013/12/27, Martin Grimme :
> Ouch, this looks like a partial update. Store was updated, but some
> sign in library was not.
> I wonder how this can happen.
> Can you check in Terminal what version of jolla-settings-accounts you have?
>
>
> Martin
>
> 2013/12/27, Mike Sheldon :
>> It'd appear that store authentication isn't working, as it's attempting
>> to load the Sign In page, which then fails with the following errors:
>>
>> [W] unknown:383 - file:///usr/share/store-client/main.qml:383:9: Type
>> SignInPage unavailable
>>  SignInPage {
>>  ^
>> [W] unknown:147 -
>> file:///usr/share/store-client/pages/SignInPage.qml:147:13: Cannot
>> assign to non-existent property "onLegalDocumentsAccepted"
>>  onLegalDocumentsAccepted: {
>>
>> If these are commented out in the SignInPage.qml it loads the store, but
>> insists there aren't any accounts active. If you then try to sign in it
>> complains that there's already an account set up on the device.
>>
>> So my guess would be that we just have to wait for Jolla store auth to
>> be fixed (presumably the authentication server has died under the load).
>>
>> Cheers,
>>  Mike.
>>
>> On Fri, 2013-12-27 at 17:13 +0200, Kalle Lammenoja wrote:
>>> Yah, the download for os update started, but was stuck, so i rebooted,
>>> and now store crashes when i launch it :/
>>>
>>>
>>> 2013/12/27 Luca Donaggio 
>>> I have exactly the same problem as Henry! First I got the
>>> Jolla app updates (not working as they probably depends from
>>> SailfishOS update) and now cannot download OS update.
>>>
>>>
>>> Could it be that all the sailors out there are trying to
>>> download the update at the same time? :-)
>>>
>>>
>>>
>>> On Fri, Dec 27, 2013 at 4:07 PM, Henry Kwong
>>>  wrote:
>>> I am currently on 1.0.1.12 but it is currently saying
>>> the update is to 1.0.1.10 "Version
>>> 1.0.1-10.11.10.jolla" and not 1.0.2.5 - doesnt sound
>>> right. The download is currently not working (it seems
>>> to have stopped after less than 10% download)
>>>
>>> I also have the same problem Kimmo mentioned with the
>>> 8 updates and related install errors. I had suspected
>>> that the app updates require 1.0.2.5 which is the
>>> reason the app-updates failed - but now it appears I
>>> cannot verify if that is true or not.
>>>
>>> Help! How can I update the system to 1.0.2.5?
>>>
>>>
>>>
>>> - Original Message -
>>> From: "Kimmo Lindholm" 
>>> To: "Sailfish OS Developers"
>>> 
>>> Sent: Saturday, 28 December, 2013 1:43:29 AM
>>> Subject: Re: [SailfishDevel] [Update] Changelog for
>>> SailfishOS update 2 (1.0.2.5)
>>>
>>> And store is completely stuck
>>> I can see 8 updates to jolla-* apps, but it gives
>>> error if trying to install.
>>>
>>> For some reason i first see app updates in store, but
>>> not yet the system update.
>>>
>>> Is this intention or a bug in update distribution
>>> system?
>>> Aren't the app's updated anyway when the system is
>>> updated?
>>>
>>> -kimmo
>>>
>>> >we're releasing update2 today. The changelog can be
>>> found (and commented
>>> >on) here:
>>> >
>>>
>>> >https://together.jolla.com/question/3612/release-notes-software-update-2-1025/
>>> ___
>>> SailfishOS.org Devel mailing list
>>> ___
>>> SailfishOS.org Devel mailing list
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Luca Donaggio
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>>
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>>
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] [Update] Changelog for SailfishOS update 2 (1.0.2.5)

2013-12-27 Thread Martin Grimme
Ouch, this looks like a partial update. Store was updated, but some
sign in library was not.
I wonder how this can happen.
Can you check in Terminal what version of jolla-settings-accounts you have?


Martin

2013/12/27, Mike Sheldon :
> It'd appear that store authentication isn't working, as it's attempting
> to load the Sign In page, which then fails with the following errors:
>
> [W] unknown:383 - file:///usr/share/store-client/main.qml:383:9: Type
> SignInPage unavailable
>  SignInPage {
>  ^
> [W] unknown:147 -
> file:///usr/share/store-client/pages/SignInPage.qml:147:13: Cannot
> assign to non-existent property "onLegalDocumentsAccepted"
>  onLegalDocumentsAccepted: {
>
> If these are commented out in the SignInPage.qml it loads the store, but
> insists there aren't any accounts active. If you then try to sign in it
> complains that there's already an account set up on the device.
>
> So my guess would be that we just have to wait for Jolla store auth to
> be fixed (presumably the authentication server has died under the load).
>
> Cheers,
>  Mike.
>
> On Fri, 2013-12-27 at 17:13 +0200, Kalle Lammenoja wrote:
>> Yah, the download for os update started, but was stuck, so i rebooted,
>> and now store crashes when i launch it :/
>>
>>
>> 2013/12/27 Luca Donaggio 
>> I have exactly the same problem as Henry! First I got the
>> Jolla app updates (not working as they probably depends from
>> SailfishOS update) and now cannot download OS update.
>>
>>
>> Could it be that all the sailors out there are trying to
>> download the update at the same time? :-)
>>
>>
>>
>> On Fri, Dec 27, 2013 at 4:07 PM, Henry Kwong
>>  wrote:
>> I am currently on 1.0.1.12 but it is currently saying
>> the update is to 1.0.1.10 "Version
>> 1.0.1-10.11.10.jolla" and not 1.0.2.5 - doesnt sound
>> right. The download is currently not working (it seems
>> to have stopped after less than 10% download)
>>
>> I also have the same problem Kimmo mentioned with the
>> 8 updates and related install errors. I had suspected
>> that the app updates require 1.0.2.5 which is the
>> reason the app-updates failed - but now it appears I
>> cannot verify if that is true or not.
>>
>> Help! How can I update the system to 1.0.2.5?
>>
>>
>>
>> - Original Message -
>> From: "Kimmo Lindholm" 
>> To: "Sailfish OS Developers"
>> 
>> Sent: Saturday, 28 December, 2013 1:43:29 AM
>> Subject: Re: [SailfishDevel] [Update] Changelog for
>> SailfishOS update 2 (1.0.2.5)
>>
>> And store is completely stuck
>> I can see 8 updates to jolla-* apps, but it gives
>> error if trying to install.
>>
>> For some reason i first see app updates in store, but
>> not yet the system update.
>>
>> Is this intention or a bug in update distribution
>> system?
>> Aren't the app's updated anyway when the system is
>> updated?
>>
>> -kimmo
>>
>> >we're releasing update2 today. The changelog can be
>> found (and commented
>> >on) here:
>> >
>>
>> >https://together.jolla.com/question/3612/release-notes-software-update-2-1025/
>> ___
>> SailfishOS.org Devel mailing list
>> ___
>> SailfishOS.org Devel mailing list
>>
>>
>>
>>
>>
>> --
>> Luca Donaggio
>>
>> ___
>> SailfishOS.org Devel mailing list
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>
>
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] missing libc.so.6 on Jolla (again)

2013-12-22 Thread Martin Grimme
Hi,

this happens if x86 binaries end up in the ARM package. Be sure to
clean up your build environment first before building the package for
ARM.


Martin


2013/12/22, Wim de Vries :
> Hi,
> After local install I get:
>
> [nemo@localhost ~]$ pkcon -v install-local checklists-1.0.1-1.armv7hl.rpm
> 17:23:20PackageKit  Verbose debugging enabled (on console 1)
> 17:23:20PackageKit  notify::connected
> 17:23:20PackageKit  notify::connected
> 17:23:20PackageKit  filter=(null), filters=0
> 17:23:20PackageKit  adding state 0x41c93400
> 17:23:20PackageKit  doing install files
> 17:23:20PackageKit  role now install-files
> Installing files [=]
> Waiting in queue  [ ] (0%)
> 17:23:20PackageKit  emit transaction-list-changed
> [=]
> Starting [=]
> Resolving dependencies[  == ] 17:23:21
> PackageKit  remove state 0x41c93400
> [=]
> Fatal error: nothing provides libc.so.6(GLIBC_2.0) needed by
> checklists-1.0.1-1.armv7hl
>
> All '#include's are Qt header files, no other.
> Seems to be a topic before, but I cannot see how it was solved.
> Thanks.
>
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] State is persistent when I come back to a page, how to avoid this ?

2013-12-18 Thread Martin Grimme
Hi,

2013/12/18, Franck Routier (perso) :
> As to understanding why the card state persists, do you have any pointer
> to readings that would enlighten me ??

It's a page "stack", so the pages "below" the current page are still
existing in memory (you should be aware of that if you stack lots of
complex pages on top of each other).
Therefore, the previous page does not get destroyed, thus remains in
the state you left it.
Only when pushing a page onto the page stack, the new page gets
created with its original state.


Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Harbour news

2013-12-18 Thread Martin Grimme
Hi,

my question is similar, but not library-related.

What about stock icons (those from
/usr/share/theme/jolla-ambient/icons/ that you can use with
image://theme/ URIs) ? I'm developing an app that for the Sailfish
look & feel would like to make heavy use of them.

Are there restrictions? For now I'm only using icons coming from the
jolla-ambient package.
Is this fine, or am I required to ship my app completely with all
icons, which would look out-of-place if the user changes the icon
theme, though.


Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] network statistics for sailfish

2013-12-16 Thread Martin Grimme
2013/12/16, W. Dobbe :

> Probably that will be the end conclusion, but Android is also Linux, so how
> do the Android network monitor apps get their information? Does the android
> stack/Dalvik give extra hooks for network inspection ?

Android is not Linux. Android is as much Linux as iOS is BSD.
Android runs on top of a Linux kernel, but that's all Android and
GNU/Linux have in common.
Network inspection is probably exposed by the Android Java API.


Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] working on apps?

2013-12-14 Thread Martin Grimme
A two-paned file manager.

Cheers,
Martin
 Am 14.12.2013 12:45 schrieb :

> BitPurse : Bitcoin client
> ownNotes : notes taking apps with ownCloud apps.
>
> Regards
>
> --
> Benoît HERVIER - http://khertan.netLe 14/12/13 11:41 AL13N a écrit :
> if there are people who are working on apps, and want to let it know, so
> that no other devs will waste time making the same apps, you can add these
> here:
>
> http://elinux.org/Jolla
>
> in the appriopriate section.
>
> Thanks!
>
> ___
> SailfishOS.org Devel mailing list
>
> ___
> SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Link in Text component

2013-11-10 Thread Martin Grimme
Hi,

2013/11/10, Tigre-Bleu :
> If a link is displayed in a Text component with html, it is displayed
> underlined with an ugly blue from the old internet ages...

You're right. It looks really ugly, and probably comes from the depths of Qt.
However, you can use rich text in Text or Label to fix this, e.g.:

Label {
color: Theme.primaryColor
textFormat: Text.RichText
text: "a:link { color: " + Theme.highlightColor +
"; }"
  + "This text contains a Link"
}


Cheers,
Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Martin Grimme
2013/11/6, Marcin M. :
> And somehow Debian and Ubuntu and ... do well it with real depends...

Well, Ubuntu and Debian are both dead slow on package management, and
the main reason for that is a fancy dependencies resolving system.

Still, if you add some 3rd party repos to Debian or Ubuntu that try to
replace some essential system packages with forked or newer versions,
then I'm not sure if a OS upgrade would went well, or break some
things, minor or major.
Have you ever tried installing GNOME shell on Ubuntu back when GNOME 3
was released? I found it was best to reinstall Ubuntu after this
experiment.

And the last thing you'd want to have as a phone vendor is bricking
user's phones on upgrades. You have to be careful what kind of system
modifications to allow, and what not.

You can do a lot of dangerous stuff with dependencies with rpm, so
better not allow it in the first place (to regular users; I'm not
talking about Linux geeks here).


Martin

>
> --
> Marcin
>
>
> 2013/11/6 Marcin M. 
>
>> If everything handled correctly (assuming no 3rd party lib updates) what
>> bad can happen?
>>
>> --
>> Marcin
>>
>>
>> 2013/11/6 Martin Grimme 
>>
>>> Hi,
>>>
>>> 2013/11/6, 郭云鹤 :
>>> > i think every app should be independent. apps' dependence caused many
>>> > problems.
>>>
>>> I think the same. While having deps and libraries and everything is
>>> cool from a Linuxer's point of view, it will give a bad user
>>> experience and just cry for breaking things when updating the OS or
>>> other apps.
>>>
>>> You can either try to get the library into Nemo, or include it in your
>>> package or link to it statically. Those few kbytes wasted by this
>>> approach should be no real problem, but worth it, if it improves the
>>> user's experience and happiness with Sailfish devices.
>>>
>>> I remember people crying they could not update their N900 because of
>>> some library dependencies. Don't let this happen again.
>>> 1337 Linux h4x0rz in need of obscure libs and stuff will always find a
>>> workaround to fulfill their needs, e.g. with 3rd party repositories.
>>> :)
>>>
>>> Keep in mind that Sailfish wants to be attractive to regular users and
>>> user experience should be highly valued.
>>>
>>>
>>> My 2 cents,
>>> Martin
>>>
>>>
>>> >
>>> > 郭云鹤(Guo Yunhe)
>>> > http://guoyunhe.me/
>>> > 在 2013-11-7 上午12:13,"Marcin M." 写道:
>>> >
>>> >> It's not a pity when it comes to libraries. It is when you create a
>>> >> modular app ;) - divided into packages. But if there was an
>>> >> in-app-purchase
>>> >> system, it wouldn't be so bad :)
>>> >>
>>> >> --
>>> >> Marcin
>>> >>
>>> >>
>>> >> 2013/11/6 Mohammed Hassan 
>>> >>
>>> >>> I don't see it as a pity. I see it as an opportunity for everyone
>>> >>> to push their libraries and stuff to mer/nemo/sailfish.
>>> >>>
>>> >>> An advantage of SailfishOS is that everyone can contribute and have
>>> >>> their
>>> >>> own applications, libraries and tools there.
>>> >>>
>>> >>> Just my 0.02
>>> >>>
>>> >>> Cheers,
>>> >>>
>>> >>> On Wed, Nov 06, 2013 at 05:06:58PM +0100, Marcin M. wrote:
>>> >>> >  Hi,
>>> >>> >  Thanks! Well, it's a pity ;(
>>> >>> >  Regards,
>>> >>> >
>>> >>> >  --
>>> >>> >  Marcin
>>> >>> >  2013/11/6 Jonni Rainisto <[1]jonni.raini...@jolla.com>
>>> >>> >
>>> >>> >  Hi,
>>> >>> >  AFAIK. Currently you can only depend on mer/nemomobile packages,
>>> you
>>> >>> >  cannot depend on store packages.
>>> >>> >  re, Jonni
>>> >>> >
>>> >>> > __
>>> >>> >
>>> >>> >  From: [2]devel-boun...@lists.sailfishos.org
>>> >>> >  [[3]devel-boun...@lists.sailfishos.org] on behalf of Marcin M.
>>> >>> >  [[4]marmistrz...@gmail.com]
>>> >>> >  Sent: Wednesday, Nov

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Martin Grimme
Hi,

2013/11/6, 郭云鹤 :
> i think every app should be independent. apps' dependence caused many
> problems.

I think the same. While having deps and libraries and everything is
cool from a Linuxer's point of view, it will give a bad user
experience and just cry for breaking things when updating the OS or
other apps.

You can either try to get the library into Nemo, or include it in your
package or link to it statically. Those few kbytes wasted by this
approach should be no real problem, but worth it, if it improves the
user's experience and happiness with Sailfish devices.

I remember people crying they could not update their N900 because of
some library dependencies. Don't let this happen again.
1337 Linux h4x0rz in need of obscure libs and stuff will always find a
workaround to fulfill their needs, e.g. with 3rd party repositories.
:)

Keep in mind that Sailfish wants to be attractive to regular users and
user experience should be highly valued.


My 2 cents,
Martin


>
> 郭云鹤(Guo Yunhe)
> http://guoyunhe.me/
> 在 2013-11-7 上午12:13,"Marcin M." 写道:
>
>> It's not a pity when it comes to libraries. It is when you create a
>> modular app ;) - divided into packages. But if there was an
>> in-app-purchase
>> system, it wouldn't be so bad :)
>>
>> --
>> Marcin
>>
>>
>> 2013/11/6 Mohammed Hassan 
>>
>>> I don't see it as a pity. I see it as an opportunity for everyone
>>> to push their libraries and stuff to mer/nemo/sailfish.
>>>
>>> An advantage of SailfishOS is that everyone can contribute and have
>>> their
>>> own applications, libraries and tools there.
>>>
>>> Just my 0.02
>>>
>>> Cheers,
>>>
>>> On Wed, Nov 06, 2013 at 05:06:58PM +0100, Marcin M. wrote:
>>> >  Hi,
>>> >  Thanks! Well, it's a pity ;(
>>> >  Regards,
>>> >
>>> >  --
>>> >  Marcin
>>> >  2013/11/6 Jonni Rainisto <[1]jonni.raini...@jolla.com>
>>> >
>>> >  Hi,
>>> >  AFAIK. Currently you can only depend on mer/nemomobile packages, you
>>> >  cannot depend on store packages.
>>> >  re, Jonni
>>> >  __
>>> >
>>> >  From: [2]devel-boun...@lists.sailfishos.org
>>> >  [[3]devel-boun...@lists.sailfishos.org] on behalf of Marcin M.
>>> >  [[4]marmistrz...@gmail.com]
>>> >  Sent: Wednesday, November 06, 2013 5:34 PM
>>> >  To: Sailfish OS Developers
>>> >  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
>>> >  And what about in-app-store depends? (Free app, paid databases,
>>> >  databases depend on the free app)
>>> >  --
>>> >  Marcin
>>> >  2013/11/6 Andrey Kozhevnikov <[5]coderusin...@gmail.com>
>>> >
>>> >  Good point, thanks!
>>> >
>>> >  On 06.11.2013 18:30, Jonni Rainisto wrote:
>>> >
>>> >  And if some good library is missing, and you are willing to maintain
>>> >  the library, feel free trying to get it added to Mer/Nemomobile side
>>> >  (after that you can depend against it).
>>> >  re, Jonni
>>> >  
>>> >  From: [6]devel-boun...@lists.sailfishos.org
>>> >  [[7]devel-boun...@lists.sailfishos.org] on behalf of Jonni Rainisto
>>> >  [[8]jonni.raini...@jolla.com]
>>> >  Sent: Wednesday, November 06, 2013 2:27 PM
>>> >  To: Sailfish OS Developers
>>> >  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
>>> >  HI,
>>> >  AFAIK, uploading libraries to store is forbidden, you can only
>>> >  depend on common mer/nemomobile libraries in .spec/rpm Requires
>>> >  field.
>>> >  re, Jonni
>>> >  
>>> >  From: [9]devel-boun...@lists.sailfishos.org
>>> >  [[10]devel-boun...@lists.sailfishos.org] on behalf of Andrey
>>> >  Kozhevnikov [[11]coderusin...@gmail.com]
>>> >  Sent: Wednesday, November 06, 2013 1:40 PM
>>> >  To: [12]devel@lists.sailfishos.org
>>> >  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
>>> >  Please more information about Harbour:
>>> >  - it can accept only single files, means i cant upload some
>>> >  libraries,
>>> >  required as depends for my appliction?
>>> >  - does it acts as repository?
>>> >  On 06.11.2013 17:06, Karl Granström wrote:
>>> >
>>> >  Ahoy all,
>>> >  Today we're launching Jolla Harbour <[13]harbour.jolla.com>, the
>>> >  portal for submitting applications to the Jolla Store.
>>> >  You can submit and manage your applications. Consumers will be able
>>> >  to install them directly from their Jolla phones.
>>> >  Here are some details about Jolla Harbour:
>>> >  Joining and logging into Jolla Harbour:
>>> >  Joining is free! You can create a Jolla account from the Jolla
>>> >  Harbour landing page ([14]harbour.jolla.com) or if you have
>>> >  pre-ordered your Jolla phone, you have everything you need to get
>>> >  started. To manage your account details, please visit
>>> >  [15]account.jolla.com.
>>> >  Support for Sailfish and Android™ applications:
>>> >  You can submit both Sailfish and Android™ applications to Jolla
>>> >  Harbour. The submission process is the same.
>>> >  Start with free applications:
>>> >  At launch, the Jolla Harbou

Re: [SailfishDevel] SearchField and focus

2013-08-08 Thread Martin Grimme
Hi,

I had exactly the same problem. My solution was to define the
SearchField _outside_ the list view, like this:

SilicaListView {
id: listview

...

header: Item {
// This is just a placeholder for the header box. To avoid the
// list view resetting the input box everytime the model resets,
// the search entry is defined outside the list view.
height: headerBox.implicitHeight
}

}

...

Column {
id: headerBox

property int neutralPos: 0

y: 0 - listview.contentY + neutralPos
width: parent.width

Component.onCompleted: {
neutralPos = listview.contentY;
}

SearchField {
...
}
}


That way, the SearchField floats on top of the list at the place
reserved by the placeholder Item.


Martin


2013/8/8, Lucien XU :
> Le jeudi 8 août 2013 17:10:26 Benoît HERVIER a écrit :
>> Hi,
>>
>> I'm trying to use SearchField to have a  suspense ... a search
>> field for my list view.
>> So i try to filter in realtime ... and i notice that SearchField lose
>> focus
>>
>> Basically, i do a reset on the ListModel and append data
>>
>> This could come from the use i made from SearchField, so here a snippet
>> of the code :
>>
>>  SilicaListView {
>>  id: notesView
>>  model: notesModel
>>  anchors.fill: parent
>>  header: Column {
>>  width: parent.width
>>  PageHeader {
>>  title: "ownNotes"
>>  }
>>  SearchField {
>>  id: searchField
>>  placeholderText: "Search"
>>  width: parent.width
>>  onTextChanged: {
>>  searchText = searchField.text;
>>  notesModel.applyFilter(searchText)
>>  }
>>
>>  }
>>  }
>>  section {
>>  property: 'category'
>>  delegate: SectionHeader {
>>  text: section
>>  }
>>  }
>>
>> Any advices ?
>
> I have the same issue. The searchfield got unfocused each time data is added
>
> in a list view. That's not conveinent for an autocomplete field ...
>
> No advices though, I'm trying to see what's wrong.
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Alpha 2: passing simple properties from main.cpp to qml

2013-08-04 Thread Martin Grimme
Hi,

you don't want to set the context property on the
QmlApplicationViewer, which was dead Nokia code to target Symbian and
Harmattan, anyway.
QmlApplicationViewer was derived from QmlView, where it got the
rootContext() method from.

With Qt5, QmlView was renamed to QQuickView. And when using the
functions from sailfishapplication.h, you get a QQuickView*, e.g.:

QScopedPointer view(Sailfish::createView("main.qml"));
view->rootContext()->setContextProperty("platform", platformId);


Martin


2013/8/4, christopher.l...@thurweb.ch :
> Hi all
>
> What is the recommended way to pass simple c++ properties from the
> main.cpp to the QML part of a project using the Qt 5 Alpha?
>
> In the good old days of the first Alpha, I used to do this Harmattan
> style using
>
>  QmlApplicationViewer viewer;
>  viewer.rootContext()->setContextProperty("platform",  platformId);
>
> This would make the c++ property platformId available to my qml code
> as the property platform.
>
> Now with Qt5 / Alpha 2 the QmlApplicationViewer is no longer created.
>
> The tutorial linked below suggests that the QmlApplicationViewer files
> could be ported to Qt5, so I guess I could grab these files from an
> old Harmattan project and do that.
>
> https://qt-project.org/doc/qt-5.0/qtdoc/portingqmlapp.html
>
> But somehow that feels like carting old baggage around.
>
> Is their a Sailfish native way of doing the same?
>
> Thanks
>
> Chris
>
>
>
>
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Building with the SDK without QtC

2013-07-27 Thread Martin Grimme
Hi,

you can log into the Mer SDK VM via ssh as user mersdk and run

sb2 /bin/bash

to log into Scratchbox. There you can develop with vim on a terminal.
There should also be some SDK magic available to deploy to the
emulator as QtCreator is doing ssh into the Mer SDK VM as well, but I
don't know the details for this.


Martin


2013/7/27, Lucien XU :
> Hello,
>
> I have asked the question in #SailfishOs, but it might be better to have it
>
> archived in the mailing list.
>
> We were talking about the advantages of vim vs QtCreator in JollaFr's
> channel,
> so I was wondering if there is a way to code for Sailfish with a vim /
> editor
> +  terminal.
>
> The only problem is about building and deploying to simulator, but that
> could
> be solved by some scripts, instead of clicking on the build / run button.
> But
> we don't know how QtC manage the builds itself.
>
> Anyone have more insights about it ?
>
> Cheers,
> Lucien
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Sailfish Screwy Easter Egg

2013-06-02 Thread Martin Grimme
Hi,

you can also view the code of this demo by opening "Sailfish Silica
Component" from the examples in Qt Creator.
It goes a bit beyond what's documented in the Silica documentation, so
it's quite useful.


Martin


2013/6/2, christopher.l...@thurweb.ch :
> Hi All
>
> I am surprised this has not been mentioned before - maybe it is just
> so obvious ...
>
> Today I clicked by mistake "somewhere" in the Sailfish Emulator, and a
> clever little app opened demonstrating the use of Silica controls.
>
> After some head-scratching and experimentation, I realized that I had
> inadvertently opened this app by clicking on the Screw / Prop on the
> Emulator home screen.
>
> If you want to see the range of controls available, and now Jolla
> intend that we use them, click on that Screw ...
>
> mfg
>
> Chris
>
>
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Why does sailfishapplication.cpp contain conditional preprocessor statements for desktop?

2013-05-05 Thread Martin Grimme
Well, you have to run

app->exec();

at the end of the main function. Otherwise, it just returns and exits
the program. :)


Martin


2013/5/5, Superpelican :
> Well I decided to try it myself and it seems that that desktop support
> is needed to be able to deploy/run your app on the SailfishOS emulator,
> otherwise your app just exits.
>
> I copy and pasted together this new main.cpp:
> 
> #include 
> #include 
> #include 
> #include 
> #include 
> #include 
> #include 
>
> #ifdef HAS_BOOSTER
> #include 
> #endif
>
>
>
> Q_DECL_EXPORT int main(int argc, char *argv[])
> {
>  /*
>  QScopedPointer app(Sailfish::createApplication(argc,
> argv));
>  QScopedPointer
> view(Sailfish::createView("main.qml"));
>
>  Sailfish::showView(view.data());
>  */
>  #ifdef HAS_BOOSTER
>  MDeclarativeCache::qApplication(argc, argv);
>  #else
>  new QApplication(argc, argv);
>  #endif
>
>  QDeclarativeView *appview;
>  #ifdef HAS_BOOSTER
>  appview = MDeclarativeCache::qDeclarativeView();
>  #else
>  appview = new QDeclarativeView;
>  #endif
>  QString file = "main.qml";
>  QString path = QString(DEPLOYMENT_PATH);
>  appview->setSource(QUrl::fromLocalFile(path + file));
> appview->setResizeMode(QDeclarativeView::SizeRootObjectToView);
>  appview->setAttribute(Qt::WA_OpaquePaintEvent);
>  appview->setAttribute(Qt::WA_NoSystemBackground);
> appview->viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
> appview->viewport()->setAttribute(Qt::WA_NoSystemBackground);
>  appview->showFullScreen();
> }
> 
> It succesfully compiles and runs, but the Application Output area in the
> Qt Creator/Sailfish IDE gives me this:
> 
>
> Display on requested
>
> Qml debugging is enabled. Only use this in a safe environment!
>
> Using the meego graphics system
>
> libEGL warning: DRI2: failed to authenticate
>
> Warning: specifying an object instance for initialPage is sub-optimal -
> prefer to use a Component
>
> Remote application finished with exit code 0.
>
> 
>
> While when I run the example application (with sailfishapplication.cpp
> etc.) it gives me this:
> 
>
> Display on requested
>
> Qml debugging is enabled. Only use this in a safe environment!
>
> Using the meego graphics system
>
> libEGL warning: DRI2: failed to authenticate
>
> Warning: specifying an object instance for initialPage is sub-optimal -
> prefer to use a Component
>
> loaded the Generic plugin
>
> Loaded the MeeGo sensor plugin
>
> Requested sensor id ' "orientationsensor" ' interface not granted
>
> Requested sensor id ' "orientationsensor" ' interface not granted
>
> hijackWindow() context created for QDeclarativeView(0x6ffd9eb8) 1
>
> QGLWindowSurface: Using plain widget as window surface
> QGLWindowSurface(0x702e8a48)
>
> Successfully resolved MeeGo graphics system:
> /usr/lib/qt4/plugins/graphicssystems/libqmeegographicssystem.so
>
> 
>
> And when I exit the application in the emulator:
> 
> Remote application finished with exit code 0.
> 
>
> So basically the app isn't shown on the screen and just immediately
> exits after being started,
>
> Superpelican
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Is it worth it to use the Sailfish namespace functions/functions defined in sailfishapplicatoin.cpp instead of creating a QML/QtQuick application the default way?

2013-05-05 Thread Martin Grimme
Hi,

the MDeclarativeCache used by sailfishapplication.cpp is supposed to
give you a boost at application startup. Besides that
sailfishapplication.cpp contains a few more optimizations (e.g.
rendering flags for the graphics view). Its purpose is about the same
as the qmlapplicationviewer from Harmattan (which IMHO was bloated by
handling Symbian and desktop support as well).

You don't have to use sailfishapplication.cpp in your project and you
could set the rendering optimization flags yourself on a
QDeclarativeView. It's just easier to use the sailfishapplication.cpp.
People who only want to code with QML/JavaScript can treat it as a
black box  and still get an application running.

There are basically two ways of combining C++ objects with QML and
both can be used with sailfishapplication.cpp as well.

1. qmlRegisterType

Any QObject-based class can be exported to a QML namespace this way.
After importing the namespace in QML, the objects can be used like
normal QML elements. Instances of the objects are created in QML.
Use qmlRegisterType before loading the main.qml into the QDeclarativeView.

2. view->rootContext()->setContextProperty

QObjects instantiated in C++ code and primitive types can be made
available to QML this way. This can be useful, if your app is mainly
C++, and you just want to expose a facade for UI control to QML.


For combining QML with C++, you should remember a few rules:

* Any QObject can be exposed to QML.

* QML element properties are implemented using the Q_PROPERTY macro in
the C++ class header.

* Any public slot can be invoked from QML.

* Any public method declared with Q_INVOKABLE can be invoked from QML
(internally, Q_INVOKABLE converts the method to a slot).

* QML can connect to any signal of a QObject, e.g. use onMySignal in
QML to connect to a signal called mySignal.

* JavaScript function references (e.g. for callbacks) can be passed to
C++ as a parameter of type QScriptValue. The QScriptValue object can
be executed in C++ with its call method.

* Arbitrary QObject based objects can be passed from QML to C++ as
QVariant from which you can retrieve a QObject* and then cast to a
specific type with qobject_cast.

* A model for QML ListView (or SilicaListView) and similar elements
can be quickly implemented by deriving from a QAbstractListModel and
implementing the virtual methods rowCount and data.

* Simple list models can be exposed to QML by returning a QStringList
or QList.

* Structs or hashtables can be exposed to QML by returning a
QVariantMap. In QML you use the . notation to access the fields, e.g.
myData.value.

* Graphical QML elements can be implemented by deriving from
QDeclarativeItem and implementing the virtual paint method.

* Any C++ method invoked from QML should return quickly as it is
blocking the UI thread.


Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Qt.labs.particles not installed

2013-04-20 Thread Martin Grimme
Hi,

the package is named libqtdeclarative4-particles on Sailfish. So you
have to install this package on the emulator.


Martin


2013/4/20, thuai :
> Hi martin,
>
> thk you!
>
> I want to run the SameGame on Sailfish emulator.
>
> I google this problem,
> get this http://qt-project.org/forums/viewthread/62
>
> it point out should install  'libqt4-declarative-particles'
>
> How to installed libqt4-declarative-particles?
> i didn't find this lib in SDK Control Center.
>
>
> 于 2013年04月20日 18:33, Martin Grimme 写道:
>> Hi,
>>
>> Sailfish does not support Qt 5 at the moment, so you should use the
>> SameGame example code from Qt 4.8 instead. Particles are supported by
>> the particle extension libqtdeclarative4-particles.
>>
>>
>> Martin
>>
>>
>> 2013/4/20, thuai :
>>> I'm tring to port the 'samegame' which is a example of qml, you can find
>>> the game source in the directory Qt installed.
>>> The path of the game source on my pc is
>>> /opt/Qt/Qt5.0.1/5.0.1/gcc_64/examples/declarative/samegame.
>>> And i copy the source to my new Sailfish project directory.
>>> And then i modify the code in main.cpp
>>>
>>> ' QScopedPointer
>>> view(Sailfish::createView("samegame.qml"));'
>>>
>>> run the project i modified.
>>>
>>> when i click the 'New Game' button, get these error messages
>>>
>>> error loading block component
>>> file:///opt/sdk/share/SimpleGame/qml/SamegameCore/BoomBlock.qml:43
>>> module "Qt.labs.particles" is not installed
>>>
>>> Does this error mean Sailfish not suport particles element of QML?
>>> Should i install some modules by SDK Control Center?
>>> what should I do to solved this problem?
>>>
>>> thks very much!
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>>
>
>
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Qt.labs.particles not installed

2013-04-20 Thread Martin Grimme
Hi,

Sailfish does not support Qt 5 at the moment, so you should use the
SameGame example code from Qt 4.8 instead. Particles are supported by
the particle extension libqtdeclarative4-particles.


Martin


2013/4/20, thuai :
> I'm tring to port the 'samegame' which is a example of qml, you can find
> the game source in the directory Qt installed.
> The path of the game source on my pc is
> /opt/Qt/Qt5.0.1/5.0.1/gcc_64/examples/declarative/samegame.
> And i copy the source to my new Sailfish project directory.
> And then i modify the code in main.cpp
>
> ' QScopedPointer
> view(Sailfish::createView("samegame.qml"));'
>
> run the project i modified.
>
> when i click the 'New Game' button, get these error messages
>
> error loading block component
> file:///opt/sdk/share/SimpleGame/qml/SamegameCore/BoomBlock.qml:43
> module "Qt.labs.particles" is not installed
>
> Does this error mean Sailfish not suport particles element of QML?
> Should i install some modules by SDK Control Center?
> what should I do to solved this problem?
>
> thks very much!
>
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] no c++ in Sailfish?

2013-04-14 Thread martin . grimme
Hi,

Qt Quick in general allows to be extended by C++ and interact with C++ code. So 
there's restriction of what you can do with it. Of course, if you don't need a 
GUI, you could do plain C++ as well. You could also write your GUI in C++ on 
Sailfish, but that's not the recommended way.


Martin



Wim de Vries schrieb am 14.04.13 22:48:

Hi,
My project is C++.
It looks like Sailfish is only Qt Quick (new project only allows this
option).
Is C++ a no-go for sailfish?
If not, how do I proceed.
Thanks.

___

SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Cannot change SSH port in QtCreator for a device(?)

2013-03-05 Thread Martin Grimme
Hi Saija,

great work on improving my instructions! Thanks! :)
I'm glad that my instructions were helpful.

At the point were you are editing the fstab file on Linux, the 
text got invisible in your blog post, though.


Cheers,
Martin


2013/3/5, Saija Eteläniemi :
> If someone finds it useful, I wrote a dummy version of the OSX guide for
> persons such as me, who are not very seasoned with VirtualBox:
> http://matrixxreloaded.wordpress.com/2013/03/05/how-to-install-sailfishos-sdk-on-osx-the-dummy-guide/
>
> - Saija
>
> Lähetetty iPadista
>
> "Saija Eteläniemi"  kirjoitti 5.3.2013 kello 13.48:
>
>> Actually I already tried many times to press "yes" when QtCreator offered
>> to start the emulator, even though I knew it has no effect. It didn't make
>> QtCreator satisfied with any of those attempts.
>>
>> Then a miracle happened, I tried again today, pressing "yes" multiple
>> times, and trying out different combinations of commands (build, rebuild,
>> deploy, run, debug), and suddenly it started working! Now I'm never gonna
>> shut down any part of the setup to not break it again :D
>>
>> Thanks for the SDK, and the instructions for Mac, I'm a very happy camper
>> :)
>>
>> - Saija
>>
>> Lähetetty iPadista
>>
>> martin.gri...@gmail.com kirjoitti 5.3.2013 kello 8.45:
>>
>>> Hi,
>>>
>>> I have also seen thr message that the emulator was not running a couple
>>> of times. QtCreator asked me if I want it to start the emulator, so I
>>> said "yes". That is a no-op anyway (since VBoxManage was replaced), but
>>> if it makes QtCreator happy... ;)
>>>
>>>
>>> Martin
>>>
>>> Saija Eteläniemi schrieb am 04.03.13 21:21:
>>>
>>> I got one step further. The reason why QtCreator didn't find the the
>>> simulator was that I forgot to give the VBoxManage script executable
>>> rights. Now I can connect to the device, and test says device
>>> successfully connected.
>>> If I actually try to deploy my project (default hello) on the device it
>>> says SailfishOS Emulator is not running, which is weird since the device
>>> test went fine. Tried to restart QtCreator several times, and also
>>> re-recorded the outputs of the VBoxManage commands, but no help there.
>>> Any tips to share, or should I start the rubberhose debugging now? :)
>>>
>>> - Saija
>>>
>>> Lähetetty iPadista
>>>
>>> "Saija Eteläniemi"  kirjoitti 4.3.2013 kello 21.33:
>>>
>>> > Thanks,
>>> >
>>> > Silly me, back to the drawing board then. I'll save the VBoxManage
>>> > outputs again, to make sure they are correct, and see if I manage to
>>> > fix the problem.
>>> >
>>> > - Saija
>>> >
>>> > Lähetetty iPadista
>>> >
>>> > "Martin Grimme"  kirjoitti 4.3.2013 kello 21.23:
>>> >
>>> >> Hi,
>>> >>
>>> >> the ports in use are  and 2223 for ssh, and 1 up to 10019
>>> >> (depends on how many are needed) for debugging.
>>> >>
>>> >> Port 65535 is not a valid port and should not be tunneled. QtCreator
>>> >> shows this port when it cannot query the virtual machine for port
>>> >> information for some reason.
>>> >> So if you see port 65536 in QtCreator, then something went wrong and
>>> >> that needs to found and fixed. Probably the recorded VBoxManage
>>> >> output
>>> >> is not found or not played back correctly. Unfortunately, it's not
>>> >> easy to debug this. I used strace on the QtCreator process a lot to
>>> >> find out where it failed and how to make QtCreator happy with fake
>>> >> data.
>>> >>
>>> >>
>>> >> Regards,
>>> >> Martin
>>> >>
>>> >>
>>> >> 2013/3/4, Saija Eteläniemi :
>>> >>> Hi,
>>> >>>
>>> >>> Is there any listings which ports are used by the SDK?
>>> >>> I'm running the SDK from a Mac host using Martin's instructions, but
>>> >>> have
>>> >>> trouble getting QtCreator to connect the Simulator. I tunneled the
>>> >>> ports
>>> >>> mentioned in Martin's post, and added 65535, seen from the QtCreator
>>> >>> device
>>&g

Re: [SailfishDevel] Cannot change SSH port in QtCreator for a device(?)

2013-03-04 Thread martin . grimme
Hi,

I have also seen thr message that the emulator was not running a couple of 
times. QtCreator asked me if I want it to start the emulator, so I said "yes". 
That is a no-op anyway (since VBoxManage was replaced), but if it makes 
QtCreator happy... ;)


Martin


Saija Eteläniemi schrieb am 04.03.13 21:21:

I got one step further. The reason why QtCreator didn't find the the simulator 
was that I forgot to give the VBoxManage script executable rights. Now I can 
connect to the device, and test says device successfully connected.
If I actually try to deploy my project (default hello) on the device it says 
SailfishOS Emulator is not running, which is weird since the device test went 
fine. Tried to restart QtCreator several times, and also re-recorded the 
outputs of the VBoxManage commands, but no help there. Any tips to share, or 
should I start the rubberhose debugging now? :)


- Saija


Lähetetty iPadista


"Saija Eteläniemi"  kirjoitti 4.3.2013 kello 21.33:


> Thanks,
>
> Silly me, back to the drawing board then. I'll save the VBoxManage outputs 
> again, to make sure they are correct, and see if I manage to fix the problem.
>
> - Saija
>
> Lähetetty iPadista
>
> "Martin Grimme"  kirjoitti 4.3.2013 kello 21.23:
>
>> Hi,
>>
>> the ports in use are  and 2223 for ssh, and 1 up to 10019
>> (depends on how many are needed) for debugging.
>>
>> Port 65535 is not a valid port and should not be tunneled. QtCreator
>> shows this port when it cannot query the virtual machine for port
>> information for some reason.
>> So if you see port 65536 in QtCreator, then something went wrong and
>> that needs to found and fixed. Probably the recorded VBoxManage output
>> is not found or not played back correctly. Unfortunately, it's not
>> easy to debug this. I used strace on the QtCreator process a lot to
>> find out where it failed and how to make QtCreator happy with fake
>> data.
>>
>>
>> Regards,
>> Martin
>>
>>
>> 2013/3/4, Saija Eteläniemi :
>>> Hi,
>>>
>>> Is there any listings which ports are used by the SDK?
>>> I'm running the SDK from a Mac host using Martin's instructions, but have
>>> trouble getting QtCreator to connect the Simulator. I tunneled the ports
>>> mentioned in Martin's post, and added 65535, seen from the QtCreator device
>>> settings, but it seems to be not enough. The terminal I login in Linux to my
>>> Mac host, I get an output: "channel 49: open failed: connect failed:
>>> Connection refused" when I the Test button in Devices page on QtCreator.
>>> Any idea if I'm just missing a port from my tunneling, or having some other
>>> problem I should check out?
>>>
>>> - Saija
>>> #matrixx
>>> @setelani
>>>
>>> Lähetetty iPadista
>>>
>>> "David Greaves"  kirjoitti 4.3.2013 kello
>>> 11.35:
>>>
>>>> Yes, and I'm afraid we don't have an easy workaround either.
>>>>
>>>> We'll fix it in QtCreator 'soon' and then you'll be able to compile your
>>>> own
>>>> version.
>>>>
>>>> I added it to known issues.
>>>>
>>>> David
>>>>
>>>> On 04/03/13 09:17, "Rücker, Thomas" wrote:
>>>>> Hi,
>>>>>
>>>>> known issue.
>>>>> see quote:
>>>>>
>>>>> On 26/02/13 17:09, David Greaves wrote:
>>>>>> On 26/02/13 09:02, "Rücker, Thomas" wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I decided to try to connect to my N950 running Nemo from the QtCreator
>>>>>>> of the
>>>>>>> Sailfish SDK.
>>>>>>> The problem is that something constantly resets the ssh port to
>>>>>>> '65535'.
>>>>>>> In the Wizzard (if you go through Mer device) it works for the initial
>>>>>>> connection test if you specify 22, but will create an entry as seen in
>>>>>>> the
>>>>>>> attached screenshot.
>>>>>> Thanks - yes, this looks like a bug.
>>>>>>
>>>>>> David
>>>>
>>>>
>>>> ___
>>>> 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

Re: [SailfishDevel] Cannot change SSH port in QtCreator for a device(?)

2013-03-04 Thread Martin Grimme
Hi,

the ports in use are  and 2223 for ssh, and 1 up to 10019
(depends on how many are needed) for debugging.

Port 65535 is not a valid port and should not be tunneled. QtCreator
shows this port when it cannot query the virtual machine for port
information for some reason.
So if you see port 65536 in QtCreator, then something went wrong and
that needs to found and fixed. Probably the recorded VBoxManage output
is not found or not played back correctly. Unfortunately, it's not
easy to debug this. I used strace on the QtCreator process a lot to
find out where it failed and how to make QtCreator happy with fake
data.


Regards,
Martin


2013/3/4, Saija Eteläniemi :
> Hi,
>
> Is there any listings which ports are used by the SDK?
> I'm running the SDK from a Mac host using Martin's instructions, but have
> trouble getting QtCreator to connect the Simulator. I tunneled the ports
> mentioned in Martin's post, and added 65535, seen from the QtCreator device
> settings, but it seems to be not enough. The terminal I login in Linux to my
> Mac host, I get an output: "channel 49: open failed: connect failed:
> Connection refused" when I the Test button in Devices page on QtCreator.
> Any idea if I'm just missing a port from my tunneling, or having some other
> problem I should check out?
>
> - Saija
> #matrixx
> @setelani
>
> Lähetetty iPadista
>
> "David Greaves"  kirjoitti 4.3.2013 kello
> 11.35:
>
>> Yes, and I'm afraid we don't have an easy workaround either.
>>
>> We'll fix it in QtCreator 'soon' and then you'll be able to compile your
>> own
>> version.
>>
>> I added it to known issues.
>>
>> David
>>
>> On 04/03/13 09:17, "Rücker, Thomas" wrote:
>>> Hi,
>>>
>>> known issue.
>>> see quote:
>>>
>>> On 26/02/13 17:09, David Greaves wrote:
 On 26/02/13 09:02, "Rücker, Thomas" wrote:
> Hi,
>
> I decided to try to connect to my N950 running Nemo from the QtCreator
> of the
> Sailfish SDK.
> The problem is that something constantly resets the ssh port to
> '65535'.
> In the Wizzard (if you go through Mer device) it works for the initial
> connection test if you specify 22, but will create an entry as seen in
> the
> attached screenshot.
 Thanks - yes, this looks like a bug.

 David
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
> ___
> SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Menus in Long ListViews

2013-03-02 Thread Martin Grimme
Hi,

one solution I that comes to my mind would be to overlay an "Add"
IconButton over the list view, e.g. in the upper right corner. The
SilicaListView would still occupy the whole page, but the button takes
input precedence in that corner since it's rendered above.


Martin


2013/3/2, Ruediger Gad :
> Hi,
>
> how would I realize the general menu in a long ListView?
> As far as I understand, pull down/push up menus only work at the very
> top/bottom of a list?
>
> This could become tedious in some circumstances.
> E.g., imagine a contacts list with 100+ entries.
> Having to scroll to the very top/bottom just to add a new entry may
> become cumbersome.
>
> Just had a brainstorm with fk_lx on irc about this:
> One possible solution could be to place the ListView inside a Flickable,
> with a little "empty space" attached to the top/bottom of the ListView,
> and add the menus to the Flickable.
> But I don't know if that conflicts with other gestures that are
> triggered when swiping from the top or bottom edge of the screen.
>
> Another option could be to have such a general "add" functionality
> accessible in the context menu that is displayed for every item in the
> list.
> However, depending on the use case, this (having a general action in a
> specific context menu) may be counter intuitive or misleading.
>
>
>
> Best regards,
>
> Ruediger
>
>
>
>
> --
> http://ruedigergad.com
>
>
___
SailfishOS.org Devel mailing list


[SailfishDevel] Howto: Sailfish SDK in Virtual Machines on Mac OS-X

2013-02-28 Thread Martin Grimme
Hi all,

I would like to share my setup of how I managed to run the Sailfish
SDK on Mac OS-X. While you could of course run the SDK virtual machine
inside a Linux virtual machine, this would be terribly slow.
Instead, you want to run all three virtual machines, Linux, MerSDK,
SailfishOS Emulator directly on Mac OS.

This setup was tested on Mac OS-X 10.8.2. It may or may not work
similarly on a Windows host.

* Install VirtualBox on your host OS. Give it at least 1.5 GB of RAM.
After the whole setup process, you may push this down to about 500 MB,
if desired.

* Install Linux in a VirtualBox. Ubuntu 12.10 32 bit works just fine.
Don't forget to install the guest additions as well, because we will
have to use shared folders.

* Install VirtualBox on Linux and install the Sailfish SDK afterwards.
The suggested installation path /home//SailfishOS is fine.
Do not install the SDK into a shared folder as shared folders don't
support creating symlinks.

* Open the VirtualBox configurator on Linux and export the two virtual
machines 'MerSDK' and 'SailfishOS Emulator' by selecting 'File ->
Export Appliance'. This will take some  time. Move the resulting .ova
files to your host OS (Mac OS-X in my case).

* Create a directory 'MerHome' on your host OS, e.g. /Users//MerHome.
Inside MerHome, create three directories:

 - emulator
 - mersdk
 - projects

* Copy the SailfishOS/emulator/ssh directory from Linux into the just
created directory 'MerHome/emulator' on the host OS.

* Copy the SailfishOS/mersdk/ssh directory from Linux into the just
created directory 'MerHome/mersdk' on the host OS.

* Copy the ~/.scratchbox2 directory from Linux into the just created
directory 'MerHome' on the host OS.

* Open a terminal on Linux and pack up the targets directory:

 cd SailfishOS/mersdk
 tar -czf targets.tar.gz targets

* Move the file targets.tar.gz to your host OS into 'MerHome/mersdk'
and unpack it there:

 cd MerHome/mersdk
 tar -xzf targets.tar.gz

* Open the VirtualBox configurator on your host OS and import the two
recently exported VirtualBox appliances by selecting 'File -> Import
Appliance'.

* Edit the shared folders settings of the 'MerSDK' virtual machine:

 home -> 
 ssh -> /mersdk/ssh
 targets -> /mersdk/targets

Make sure that you don't change the mount names during this action.

* Edit the shared folder settings of the 'SailfishOS Emulator' virtual machine:

 ssh -> /emulator/ssh

Make sure that you don't change the mount name during this action.

* You may optionally also want to activate audio while in the
'SailfishOS Emulator' settings.

* Test-run the MerSDK virtual machine on the host OS. Does it come up with the
message 'mounted home and targets successfully'? Then the shared
folders settings ought to be OK.
Close the virtual machine (saving machine state instead of shutdown is fine).

* Add the directory 'MerHome/projects' to the shared folders of your
Linux virtual machine. This may be done while the machine is running.

* In your Linux home directory create an empty directory with the same
name 'projects'.

* As root, add the following line to /etc/fstab on Linux:

 projects   /home//projects   vboxsf  rw,uid=1000,gid=10000   0

Replace  with your username and use the GID and UID of the user.
On Ubuntu, the first user normally has GID = 1000 and UID = 1000.

* As root, mount the projects shared folder:

 mount projects

* Open the VirtualBox configurator on Linux and change the host
keyboard key in the global settings to something different than on the
VirtualBox on your host OS.

* Start the two virtual machines on Linux with the VirtualBox
configurator. They will be very slow (as you're running VirtualBox
inside VirtualBox), so you need to have some patience until they're
fully loaded. Fortunately this has to be done only once. You will
later never have to use VirtualBox inside VirtualBox again.

* Record the output of VBoxManage that the Sailfish SDK expects:

 VBoxManage showvminfo MerSDK --machinereadable
>/var/tmp/VBoxManage_885215c435c21d083b077b43317cc642
 VBoxManage list runningvms
>/var/tmp/VBoxManage_59f2c7dff31ccbe383c7cc12541bdf1b
 VBoxManage showvminfo "SailfishOS Emulator" --machinereadable
>/var/tmp/VBoxManage_16de532e1ffcdb602a512c49138ccca1

The names of the record files contain the md5 sum of the command, so
they must match exactly.

* Stop the two virtual machines.

* In the Linux virtual machine, locate your VBoxManage program. On my
Ubuntu installation, this is '/usr/share/virtualbox/VBoxManage'.
Become root and move the file to VBoxManage.orig.

 sudo su
 cd /usr/share/virtualbox
 mv VBoxManage VBoxManage.orig

* Save this script as VBoxManage. It will record the output of
VBoxManage and later replay that output for the Sailfish SDK.

#! /bin/bash

VBOXMANAGE=`dirname $0`/VBoxManage.orig
COMMAND=`echo "$@" | md5sum | cut -d" " -f1`
RECORDFILE=/var/tmp/VBoxManage_${COMMAND}

if [ ! -f ${RECORDFILE} ]; then
  ${VBOXMANAGE} $@
  exit $?
else
  cat ${RECORDFILE}
fi

* St