Re: [SailfishDevel] custom autocomplete?

2014-11-17 Thread fasza2mobile
  Thanks for the answer,
  No I don't believe either that it's of vital importance, I just thought if it 
was trivial to implement, we could make good use of it. I of course did not see 
the source to be able to estimate how much work it would entail, I'll just have 
to trust your judgement on that. 

  I don't think I will create a TJC issue regarding this, but if someone else 
reading this mail does, please send the link in this thread so I or whoever 
stumbles across this post can vote on it.

Thanks
Kris


On Mon Nov 17 10:17:12 2014 GMT, Pekka Vuorela wrote:
 pe, 2014-11-14 kello 17:21 +, fasza2mob...@gmail.com kirjoitti:
  Hi Pekka, are there any plans to add this feature? There are a lot of use 
  cases where it would be extremely handy in 3rd party apps.
  
I have a TextInput where the user enters host names and/or IP 
addresses. So 
naturally, I'd like to offer some mechanism that allows the user to 
quickly 
pick from recently used entries. GUI-wise, the best way to do that 
seems to be 
the autocomplete of the keyboard, since normally I'd just deactivate 
prediction completely for this type of input. So instead of just 
deactivating 
it, the better choice would be to feed it a simple word list that 
offers input 
hints for recently used host names and IP addresses. Any idea how to do 
that?
   
   Unfortunately it's not possible to offer completion options to the
   keyboard. You have to implement completion on application side.
 
 No plans and I don't think this would be among the most important third
 party interfaces. If you think otherwise, you could perhaps create a
 t.j.c item.
 
 I'd still suggest application side completions, a bit like browser has
 below the url field when typing.
 
 
 ___
 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] custom autocomplete?

2014-11-14 Thread fasza2mobile
Hi Pekka, are there any plans to add this feature? There are a lot of use cases 
where it would be extremely handy in 3rd party apps.

On Fri Nov 14 11:54:07 2014 GMT, Pekka Vuorela wrote:
 to, 2014-11-13 kello 19:09 +0100, Victor Mataré kirjoitti:
  Hi all,
  
  I have a TextInput where the user enters host names and/or IP addresses. So 
  naturally, I'd like to offer some mechanism that allows the user to quickly 
  pick from recently used entries. GUI-wise, the best way to do that seems to 
  be 
  the autocomplete of the keyboard, since normally I'd just deactivate 
  prediction completely for this type of input. So instead of just 
  deactivating 
  it, the better choice would be to feed it a simple word list that offers 
  input 
  hints for recently used host names and IP addresses. Any idea how to do 
  that?
 
 Unfortunately it's not possible to offer completion options to the
 keyboard. You have to implement completion on application side.
 
 
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.or
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Platform icons

2014-08-04 Thread fasza2mobile
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.

Ideally it could be available in the Sailfish reference under Theme object or 
something.

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


Re: [SailfishDevel] sqlite absolute path

2014-08-03 Thread fasza2mobile
Thanks Lukas, I'll have a look at it when I get hone tonight.

On Sun Aug 03 2014 14:06:32 GMT+0100 (BST), Lukas Vogel wrote:
 You shouldn't write in /usr/* directory. Rather use standard path:
 See https://lists.sailfishos.org/pipermail/devel/2014-February/003258.html
 
 
 See also:
 http://comments.gmane.org/gmane.comp.handhelds.sailfishos.devel/3632
 
 
 
 2014-08-03 15:00 GMT+02:00 Krisztian Olah fasza2mob...@gmail.com:
 
  Hi I need a bit of help with saving my database. When I do:
 
  QSqlDatabase db;
  db.setDatabaseName(/usr/share/harbour-myapp/data/data.sqlite)
  db.open()
  ...
 
  I get this error: QSqlQuery::exec: database not open
  thus the file isn't created at all.
  However if I change name to data.sqlite it works fine, but saves it to
  /home/nemo/
  Could someone tell me what I need to do in order to save the file under
  the correct path?
 
  Thanks in advance
  Kris
 
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to
  devel-unsubscr...@lists.sailfishos.org
 


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


Re: [SailfishDevel] sqlite absolute path

2014-08-03 Thread fasza2mobile
Thanks again, works like a charm. 

On Sun Aug 03 2014 14:06:32 GMT+0100 (BST), Lukas Vogel wrote:
 You shouldn't write in /usr/* directory. Rather use standard path:
 See https://lists.sailfishos.org/pipermail/devel/2014-February/003258.html
 
 
 See also:
 http://comments.gmane.org/gmane.comp.handhelds.sailfishos.devel/3632
 
 
 
 2014-08-03 15:00 GMT+02:00 Krisztian Olah fasza2mob...@gmail.com:
 
  Hi I need a bit of help with saving my database. When I do:
 
  QSqlDatabase db;
  db.setDatabaseName(/usr/share/harbour-myapp/data/data.sqlite)
  db.open()
  ...
 
  I get this error: QSqlQuery::exec: database not open
  thus the file isn't created at all.
  However if I change name to data.sqlite it works fine, but saves it to
  /home/nemo/
  Could someone tell me what I need to do in order to save the file under
  the correct path?
 
  Thanks in advance
  Kris
 
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to
  devel-unsubscr...@lists.sailfishos.org
 


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


Re: [SailfishDevel] Versions

2014-07-20 Thread fasza2mobile
Wow, thanks:)

On Sun Jul 20 2014 13:12:19 GMT+0100 (BST), Andrey Kozhevnikov wrote:
 QProcess app;
 app.start(/bin/rpm, QStringList()  -qa  --queryformat  
 %{version}-%{release}  packagename);
 app.waitForFinished(-1);
 if (app.bytesAvailable()  0) {
 version = app.readAll();
 }
 
 20.07.2014 17:26, Chris Walker пишет:
  Is there any way to have my 'About' page pick up the Version and
  Release information from the yaml file?
 
  At the moment, I'm hard coding the versioninfo in the About page but
  I'd like it to be updated automagically in the future.
 
  I looked around but couldn't see this information anywhere so I'm
  guessing that this question hasn't been asked/answered before but if it
  has, please feel free to point me in the right direction.
  ___
  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.or

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

Re: [SailfishDevel] Pagestack problems

2014-07-10 Thread fasza2mobile
The Model View Controller concept is a bit hard to grasp at first, but trust me 
once you learned it, it will be your prefered method. You will never regret 
learning it.

As for your programming ability, it will improve by time, by setting new 
challenges you will learn and improve much faster, but you will likely feel 
that you are no good. The more often you face a problem, the quicker you can 
solve it. By trying to find always different problems to solve, you increase 
the chances of meeting a problem you already solved. So, don't be afraid of 
challenges, they'll be teaching you the most. 

What I would suggest is that you try to design your programs in a modular way 
so that you can later easily extend it, and if you know that you will have to 
add something in the future, try to accommodate it as early as possible. By 
that I mean make it easy to add. Otherwise there is always the possibility of 
refactoring.  

Regards Kris

PS.: I think I suck at programming, but I think I suck much less than a year 
ago, so I guess I have improved. ;) 

On Thu Jul 10 2014 16:19:10 GMT+0100 (BST), Chris Walker wrote:
 On Thu, 10 Jul 2014 15:45:08 +0100
 Krisztian Olah fasza2mob...@gmail.com wrote:
 
  First off, you should place each class to its own heeader and source
  file to reduce future compile time. When you change only one class
   you won't have to recompile everything thus it's easier to find the
  classes.
  
  You should use one of the Qt Sql Model classes:
  http://qt-project.org/doc/qt-4.8/sql-model.html
  
  something like:
  
  logic --- qml
  logic --- databaseManager
  databaseManager --- databaseModel
  view --- databaseModel
  
  logic has a member function/slot to return a pointer to the model that
  qml displays in a view.
  
  logic also has a function/slot that takes the required data from qml
  that is needed to add  a new entry in the database. This function
  invokes a member function of databaseManager that does the real work,
  hence only databaseManager touches the database the view will
  interact with the model to which it has a pointer from logic which in
  turn asks  for the pointer from databaseManager. When a new entry is
  added databaseManager updates its model that emits the needed signals
  that informs any connected views about the changes.
 
 What you describe is exactly what I would like to achieve with the next
 version of the program but one which uses 2 databases, one provided
 by an organisation called CAMRA - www.camra.org.uk and my own to record
 any visits to pubs and the beers I drink there.
 
 But that's some way away as I my programming ability needs to improve
 considerably before I can do such things! When you get to my age, these
 things don't come easily. Certainly they don't for me.
 
 Perhaps I should leave things as they are on this program and
 concentrate on the new one!
 ___
 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] Lack of padding

2014-06-11 Thread fasza2mobile
Insert an empty Item:
 
Item {
  height: requiredHeight
  width: 1// must be non zero
}

On Wed Jun 11 2014 20:14:14 GMT+0100 (BST), Jukka Heikkilä wrote:
 Hi,
 
 I have tried to search a solution to this problem, but didn't found any
 reason why this now work. I have a next code inside SilicaFlickable:
 
 Column {
 id: column
 
 width: page.width
 spacing: Theme.paddingLarge
 
 PageHeader {
 title: qsTr(Short example)
}
 
 SectionHeader {
 text: qsTr(Magnificent information)
 }
 
 Label {
 anchors.horizontalCenter: parent.horizontalCenter
 color: Theme.secondaryHighlightColor
 font.pixelSize: Theme.fontSizeSmall
 text: Loreum
 }
 Label {
 anchors.horizontalCenter: parent.horizontalCenter
 anchors.bottomMargin: 3*Theme.paddingLarge
 text: Ipsum
 font.pixelSize: Theme.fontSizeLarge
 color: Theme.highlightColor
 }
 Label {
 anchors.horizontalCenter: parent.horizontalCenter
 color: Theme.secondaryHighlightColor
 font.pixelSize: Theme.fontSizeSmall
 text: dolor
 }
 }
 
 Why the margins doesn't take an effect? Is there any other way to get a
 bigger margin between header and value label?
 
 Regards,
 Juukks

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

Re: [SailfishDevel] Locked in QA

2014-06-09 Thread fasza2mobile
Thanks Reto, sailors should also have a couple of days off, it  might as well 
be weekend, no problem at all. I was going to post to developer care as 
suggested, but I am feeling a bit under the weather,  so I haven't yet left 
bed. :( 

Thank you again and
best regards
Kris

On Mon Jun 09 2014 09:00:06 GMT+0100 (BST), Reto Zingg wrote:
 Hi,
 
 On 08.06.2014 01:48, Krisztian Olah wrote:
   Hi Sailors,
 I submited an update to my app London Sail yesterday, today noon I
  found a blocker bug in one of the features, so I was trying to remove
  the app going through QA before it goes out, but unfortunately it was
  already locked (being processed?) in QA. I did remove the binary through
  the web interface, and it seemed to stopped my app going live.
  I fixed the bug and uploaded the new binary, but now it shows up as
  Locked in QA and I cannot (re)submit it. I realize that I am the one
  at fault and I do appologize if it causes/caused any inconvenience, but
  could you please unblock my App? I did submit the new binary, but if it
  is preferable I can manually resubmit it once the lock is removed.
  Thanks very much and sorry again
  Kris
 
 Sorry for the delay, but during the weekend non of Harbour Sailors was 
 reading the mailing list and saw your request.
 
 We unlocked the application now, so you can update it.
 
 Sorry for any circumstances and regards
 Reto
 
 
  ___
  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] Locked in QA

2014-06-08 Thread fasza2mobile
I'll do that, thank you Artem.

On Sun Jun 08 2014 23:42:02 GMT+0100 (BST), Artem Marchenko wrote:
 Hi Krisztian
 
 Try asking at #SailfishOS channel in IRC, that helps often.
 If you want to be a good dev community member, also ask at
 developer-c...@jolla.com I personally failed to ever get a reply from this
 address (tried 4 or 5 times during a month or so), but maybe things are
 running smoother now.
 
 Best regards,
 Artem.
 
 
 
 On Sun, Jun 8, 2014 at 1:48 AM, Krisztian Olah fasza2mob...@gmail.com
 wrote:
 
  Hi Sailors,
I submited an update to my app London Sail yesterday, today noon I
  found a blocker bug in one of the features, so I was trying to remove the
  app going through QA before it goes out, but unfortunately it was already
  locked (being processed?) in QA. I did remove the binary through the web
  interface, and it seemed to stopped my app going live.
  I fixed the bug and uploaded the new binary, but now it shows up as
  Locked in QA and I cannot (re)submit it. I realize that I am the one at
  fault and I do appologize if it causes/caused any inconvenience, but could
  you please unblock my App? I did submit the new binary, but if it is
  preferable I can manually resubmit it once the lock is removed.
  Thanks very much and sorry again
  Kris
 
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to
  devel-unsubscr...@lists.sailfishos.org
 
 
 
 
 -- 
 Artem Marchenko
 http://agilesoftwaredevelopment.com
 http://twitter.com/AgileArtem

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


Re: [SailfishDevel] QThread priority

2014-05-28 Thread fasza2mobile
I see, I'll give it a go and get back with the result.

Thanks for your help Andrey 
Kris

On Wed May 28 2014 19:38:35 GMT+0100 (BST), Andrey Kozhevnikov wrote:
 you can't do it. you should call it with slot only, else it will be 
 called in current thread, not one you created.
 
 28.05.2014 23:07, Krisztian Olah ?:
  it just calls:
 
  //pointer also a member
  parser-addData()
  parser-parse()
 
  although it is a bit messy, here is my parser class and its methods:
 
  //header:
  #include  QObject
  #include  QXmlStreamReader
  #include  QSharedPointer
  #include  disruption.h
  #include  street.h
  #include  trafficcontainer.h
  class  TrafficXmlReader  :  public  QObject
  {
   Q_OBJECT
  public:
   TrafficXmlReader(QObject*  parent  =  0);
  private:
   //TrafficContainer has a QListDisruption and a QHashint,Street 
  member
   // and it interacts with 2 corresponding models for each contained 
  container
   QSharedPointerTrafficContainer  container;
   int  count;
   int  currentID;
   Disruption  currentDisruption;//just a struct containing the strings
   Street  currentStreet;//just a struct containing the strings
   bool  inDisruption;
   bool  inPoint;
   bool  inStreet;
   QXmlStreamReader  reader;
  public:
   void  setContainer(QSharedPointerTrafficContainer);
   void  setDevice(QIODevice*);
  signals:
   void  finished();
   void  partFinished();
  public  slots:
   void  addData(const  QByteArray);
   void  parse();
  };
  #endif  //  TRAFFICXMLREADER_H
  //implementation:
  #include  trafficxmlreader.h
  #include  QDebug
  #include  QRegExp
 
  #include  trafficcontainer.h
 
 
  TrafficXmlReader::TrafficXmlReader(QObject*  c)  :  
  container(static_castTrafficContainer*(c)),
 
 count(0),
 
 currentID(0),
 
 
  inDisruption(false),
 
 inPoint(false),
 
 inStreet(false)
 
  {
   reader.setNamespaceProcessing(false);
 
  }
  void  TrafficXmlReader::setContainer(QSharedPointerTrafficContainer  
  newContainer)  {
 
   container.clear();
 
   container  =  newContainer;
 
  }
 
  void  TrafficXmlReader::setDevice(QIODevice*  device)  {  
  reader.setDevice(device);  }
 
 
  //public  slots:
  void  TrafficXmlReader::addData(const  QByteArray  data)  {  
  reader.addData(data);  }
 
 
  void  TrafficXmlReader::parse()  {
 
   while  (!reader.atEnd())  {
 
   reader.readNext();
 
   ++count;
 
   if  (reader.qualifiedName()  ==  Disruption)  {
 
   if  (reader.isStartElement())  {
 
   inDisruption  =  true;
 
   currentID  =  reader.attributes().value(id).toInt();
 
   }
   else  if  (reader.isEndElement())  {
 
   currentDisruption.id  =  currentID;
 
   currentID  =  0;
 
   container.data()-addDisruption(currentDisruption);
 
   inDisruption  =  false;
 
   }
   }
 
   else  if  (inDisruptionreader.qualifiedName()  ==  status) 
   {
 
   currentDisruption.status  =  reader.readElementText();
 
   }
   else  if  (inDisruptionreader.qualifiedName()  ==  
  severity)  {
 
   currentDisruption.severity  =  reader.readElementText();
 
   }
   else  if  (inDisruptionreader.qualifiedName()  ==  
  levelOfInterest)  {
 
   currentDisruption.levelOfInterest  =  reader.readElementText();
 
   }
   else  if  (inDisruptionreader.qualifiedName()  ==  
  category)  {
 
   currentDisruption.category  =  reader.readElementText();
 
   }
   else  if  (inDisruptionreader.qualifiedName()  ==  
  subCategory)  {
 
   currentDisruption.subCategory  =  reader.readElementText();
 
   }
   else  if  (inDisruptionreader.qualifiedName()  ==  
  startTime)  {
 
   currentDisruption.startTime  =  reader.readElementText();
 
   }
   //replace  ','  with  ,if  not  followed  by  a  whitespace, 
   happends  many  times  due  to  lousy  typing
 
   //it  is  to  make  WordWrap  possible  in  gui
 
   else  if  (inDisruptionreader.qualifiedName()  ==  
  location)  {
 
   QString  location  =  reader.readElementText();
 
   int  i;
 
   while  ((i  =  location.indexOf(QRegExp(,[^\\s-])))  !=  -1  
  )  {
 
   location  =  location.insert(++i,);
 
   }
   currentDisruption.location  =  location;
 
   }
   else  if  (inDisruption

Re: [SailfishDevel] was Acceptable Behaviour.. -- Forum

2014-05-26 Thread fasza2mobile
Hi all,
  I think Norman is bang on with the fragmentation issue. To address this I 
propose a possible solution. Why not convert this mailing list to a 'virtual' 
one; By that I mean move all discussion to a devel section on TJC  and have the 
mailing list be another frontend or interface if you like for the same 
content(yet better, keep all mails and posts with their metadata in the same 
database and create an API that both ML and TJC can call thus eases 
applification too, kind of like MVC). To accommodate this TJC (or at least the 
proposed devel section) would have to be changed/improved to have a treelike 
structure alongside its QA nature so that OT answers and its children can 
easily be tagged and filtered out in both TJC and ML interfaces. OT tag should 
be available for every poster to tag their answer/comment. To achieve  this  
there should be 2 scripts one that converts each mail to mailing list to a new 
question/answer/comment retaining  the treelike structure and one other sc
 ript that posts entries from TJC to ML setting the subject correctly as it is 
now; Perhaps with an x minutes latency to alllow for editing post.
  If one wants to use a different email address for the mailing list that is 
set for TJC a setting should be available.  
  Further to this subsections(Qt, Qml, news, politics, ads, jobs etc) could be 
introduced making  it easier to filter or subscribe to selected subsections 
only; This could benefit both interfaces.
  Having this approach I believe would give users/developers the flexibility  
to choose, mix and match the best way(for them) to interact with fellow 
developers whilst not fragmenting the community.
  The obvious tradeoff is some developer hours, but doing it in the open could 
reduce that somewhat especially when it comes to maintenance. 
 
  Please do comment on what you all think about my proposition, be it positive 
or negative.

Thanks
 Kris

Ps: I'd prefer QA, but mailing list has been more effective in my experience 
so far.
   

On Mon May 26 2014 08:53:32 GMT+0100 (BST), Norbert Wenzel wrote:
 On 05/26/2014 09:21 AM, Ruediger Gad wrote:
  Why not let the users make the decision?
  I.e., we have a mailing list and a QA site already, just the forum is
  missing.
  So, if there were a forum as well, it would show over time how the usage
  and the user counts of the different infrastructures develops.
 
 I know that from other projects and what happened there was that some
 people use forums and some people use mailinglists. The two communities
 don't have much intersection. Which might or might not be a desired
 outcome depending on the size of the community.
 
 Personally I have to say that I wouldn't use a forum or any other
 web-based platform. I mean, if I really had to I'd post my question
 there but I wouldn't follow discussions, since I'd need to actively
 visit the forum. I prefer ML because I have one single spot where all
 messages of all lists can be found and I'm reading along when I have the
 time to do so.
 
 So besides my personal opinion I just wanted to say that too many
 options for discussion might lead to fragmentation instead of making
 everybody happy.
 
 Norbert
 ___
 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] was Acceptable Behaviour.. -- Forum

2014-05-24 Thread fasza2mobile
+1

On Sat May 24 2014 21:01:25 GMT+0100 (BST), Kimmo Lindholm wrote:
 I give my vote for Gone Fishing QA site
 
 hmm http://stackoverflow.com/questions/tagged/sailfish-os
 
 
 
 
 Now since a forum is suggested, I cannot resist to propose my favourite way 
 of finding and sharing developer experience: a QA site (think Stack 
 Overflow). Even if there is together.jolla.com, I haven't yet seen many 
 concrete Sailfish development topics discussed there. Compared to forums and 
 mailing lists, QA sites have the built-in advantage of distilling the best 
 answers to be easily found instead of being buried in endless threads.
 
 
 OK, one down-side to mailing lists: there are no Like, Thanks, +1 or 
 the likes of it buttons - I would really have used that now :D
 
 ___
 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] Right to silence

2014-05-23 Thread fasza2mobile
+1

On Fri May 23 2014 09:23:42 GMT+0100 (BST), Panu Artimo wrote:
 I'm starting to think this whole thread is another instance of the
 problem that caused the initial problem in the first place. +1 plus
 for creating a general mailing list for subjects not directly
 related to software development and technical issues.
 ___
 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] Screenshots in silica reference

2014-05-23 Thread fasza2mobile
+1

On Fri May 23 2014 10:11:00 GMT+0100 (BST), Luca Donaggio wrote:
 +1 for the screenshots
 
 
 On Fri, May 23, 2014 at 7:21 AM, Kimmo Lindholm kimmo.lindh...@eke.fiwrote:
 
 
  Hi,
 
  I so would like to see screenshots in silica reference.
 
  Like there is on common pitfails -page.
 
  -kimmo
  --
  Lähetetty Jollastani
  ___
  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

Re: [SailfishDevel] sporadic bouts of Could not connect to MerSDK Virtual Machine. Timeout waiting for reply from server.

2014-04-26 Thread fasza2mobile
I believe the  timeout setting can be adjusted in QtCreator where you set up 
your mer device(ssh password, etc). By increasing this value you can probably 
prevent the timeout issue altogether. I don't have the SDK in front of me to 
give you the exact menu you need to open, but it isn't too hard to find once 
you know what you're looking for. 

On Sat Apr 26 2014 13:41:20 GMT+0100 (BST), christopher.l...@thurweb.ch wrote:
 Hi All
 
 I am suffering from sporadic bouts of the error: Could not connect to  
 MerSDK Virtual Machine. Timeout waiting for reply from server
 
 One moment I can be happily hacking and deploying code to my Jolla  
 without error. Then I make a small change to the code, try to deploy,  
 and bing! the error rears its ugly head once again like a scandinavian  
 troll from under a bridge.
 
 
 Project ERROR: Could not connect to MerSDK Virtual Machine. Timeout  
 waiting for reply from server.
 14:02:28: The process  
 /Users/christopherlamb/.config/SailfishAlpha4/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/deploy
  exited with code  
 1.
 Error while building/deploying project landed26_QT5 (kit:  
 MerSDK-SailfishOS-armv7hl)
 When executing step 'Rpm'
 14:02:28: Elapsed time: 00:27.
 
 
 When the error occurs, there seem to be at least 2 variants:
 
 1) It will successfully deploy As binaries without error, but will  
 give the error on deploy as RPM.
 
 2) Any kind of deploy gives the error.
 
 
 The strange thing is, that despite the error, it does seem to  
 (sometimes) deploy (or possibly partially deploy) code.
 
 Right now I am getting the error in constellation 1), so according to  
 the error a deploy as RPM should fail. Yet the test below indicates  
 that it is at least partially deploying code.
 
 
 [root@Jolla javascript]# pwd
 /usr/share/landed26_QT5/qml/javascript
 [root@Jolla javascript]#
 [root@Jolla javascript]# ls -ahl
 total 52K
 drwxr-xr-x 1 root root  180 2014-04-26 13:56 .
 drwxr-xr-x 1 root root  110 2014-04-26 13:56 ..
 -rw-r--r-- 1 root root 4.2K 2014-04-26 13:55 jsonpath.js
 -rw-r--r-- 1 root root 1.3K 2014-04-26 13:55 jsonSupport.js
 -rw-r--r-- 1 root root  349 2014-04-26 13:55 landed.js
 -rw-r--r-- 1 root root 1.2K 2014-04-26 13:55 message.js
 -rw-r--r-- 1 root root 8.4K 2014-04-26 13:55 readDataModel.js
 -rwxr-xr-x 1 root root 8.8K 2014-02-03 08:32 settingsDB.js
 -rw-r--r-- 1 root root 5.2K 2014-04-26 13:55 writeDataModel.js
 
 //create new file testDeploy.js in QtCreator, then attempt deploy as  
 RPM. Error is generated. Repeat attempt to deploy as RPM. Error is  
 generated again.
 //but testDeploy.js is now on the Jolla!
 
 [root@Jolla javascript]# ls -ahl
 total 56K
 drwxr-xr-x 1 root root  206 2014-04-26 14:01 .
 drwxr-xr-x 1 root root  110 2014-04-26 14:01 ..
 -rw-r--r-- 1 root root 4.2K 2014-04-26 14:00 jsonpath.js
 -rw-r--r-- 1 root root 1.3K 2014-04-26 14:00 jsonSupport.js
 -rw-r--r-- 1 root root  349 2014-04-26 14:00 landed.js
 -rw-r--r-- 1 root root 1.2K 2014-04-26 14:00 message.js
 -rw-r--r-- 1 root root 8.4K 2014-04-26 14:00 readDataModel.js
 -rwxr-xr-x 1 root root 8.8K 2014-02-03 08:32 settingsDB.js
 -rw-r--r-- 1 root root   38 2014-04-26 14:00 testDeploy.js
 -rw-r--r-- 1 root root 5.2K 2014-04-26 14:00 writeDataModel.js
 
 So it looks like that after a second failed deploy, the file is  
 actually deployed!
 
 
 During bouts of the error, QtCreator seems to get out of sync the true  
 status of the SDK VM (indicated by the VirtualBox GUI). So QtCreator  
 may show the green Start SDK status, even though the SDK is already  
 running. Or QtCreator shows the same button grey.
 
 So far I have not found any lasting solution to prevent the error in  
 the first place. Sometimes it goes away on its own accord, and  
 sometimes various combinations of restarting VirtualBox, the VM,  
 QtCreator or my development host help for a while (but rarely for long).
 
 What exactly is the timeout? Is this a property that I can increase?
 
 The known issues page of the Alpha (Qt4.8) SDK suggests:
 
 https://sailfishos.org/wiki/SDK_Alpha_Known_Issues
 
 VBoxManage modifyvm MerSDK --natdnshostresolver1 on
 
 But that has not helped.
 
 I am running the very latest version of the SailfishOS SDK, but had  
 the same error with previous versions.
 
 Any ideas?
 
 Chris
 
 
 
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list