From mckaygerhard at ...626... Sat Apr 1 21:44:55 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sat, 1 Apr 2017 15:44:55 -0400 Subject: [Gambas-user] gambas web how to deploy (under construction) but minimal info ready In-Reply-To: References: Message-ID: continued with the how to and ported to gambas wiki now: http://gambaswiki.org/wiki/howto/getstartedwebgambas with the basic to deploay the app cgi inside the webserver as per user or globally, also minimal knowledge and requirements the article was updates too: http://qgqlochekone.blogspot.com/2017/03/gambas-como- publicar-web-how-to-deploy.html Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-27 0:25 GMT-04:00 PICCORO McKAY Lenz : > http://qgqlochekone.blogspot.com/2017/03/gambas-como- > publicar-web-how-to-deploy.html > > the main info are in spanish due i'm very bad to write.. but this info > (and when complete) must be in the wiki.. > > its very tedius emit a mail and wait the reponse.. sorgeforce has very bad > index and many times search does not return good result.. a deep manual > search in the sourceforge archives of the list give better results for many > problems that users want to investigate.. > > i do that due i'm not programer, and i not want others like me pass to > same way : hard and dificulty > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > From gambas.fr at ...626... Sat Apr 1 23:07:06 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 1 Apr 2017 23:07:06 +0200 Subject: [Gambas-user] gambas web how to deploy (under construction) but minimal info ready In-Reply-To: References: Message-ID: script: >>permits interpret a source files and based on their content as script will render html or not using logic, its only recomended for static content that only need minimal logic, when fails show the source code in webserver, this must be configure using the cgi as wrapper that deliver the request to interpreter.<< i'm not agree with that. You can making dynamics script too. 2017-04-01 21:44 GMT+02:00 PICCORO McKAY Lenz : > continued with the how to and ported to gambas wiki now: > > http://gambaswiki.org/wiki/howto/getstartedwebgambas > > with the basic to deploay the app cgi inside the webserver as per user or > globally, also minimal knowledge and requirements > > the article was updates too: > http://qgqlochekone.blogspot.com/2017/03/gambas-como- > publicar-web-how-to-deploy.html > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-03-27 0:25 GMT-04:00 PICCORO McKAY Lenz : > >> http://qgqlochekone.blogspot.com/2017/03/gambas-como- >> publicar-web-how-to-deploy.html >> >> the main info are in spanish due i'm very bad to write.. but this info >> (and when complete) must be in the wiki.. >> >> its very tedius emit a mail and wait the reponse.. sorgeforce has very bad >> index and many times search does not return good result.. a deep manual >> search in the sourceforge archives of the list give better results for many >> problems that users want to investigate.. >> >> i do that due i'm not programer, and i not want others like me pass to >> same way : hard and dificulty >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From mckaygerhard at ...626... Sat Apr 1 23:39:20 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sat, 1 Apr 2017 17:39:20 -0400 Subject: [Gambas-user] gambas web how to deploy (under construction) but minimal info ready In-Reply-To: References: Message-ID: 2017-04-01 17:07 GMT-04:00 Fabien Bodard : > script: > > >>permits interpret a source files and based on their content as script > will render html or not using logic, its only recomended for static content > that only need minimal logic, when fails show the source code in webserver, > this must be configure using the cgi as wrapper that deliver the request to > interpreter.<< > > i'm not agree with that. You can making dynamics script too. > yeah, i xplain bad that part, but the problem its that when script raise and exception, sensible data its scaped to the browser and consecuencie to the web user in client side.. so not recomended-- > > 2017-04-01 21:44 GMT+02:00 PICCORO McKAY Lenz : > > continued with the how to and ported to gambas wiki now: > > > > http://gambaswiki.org/wiki/howto/getstartedwebgambas > > > > with the basic to deploay the app cgi inside the webserver as per user or > > globally, also minimal knowledge and requirements > > > > the article was updates too: > > http://qgqlochekone.blogspot.com/2017/03/gambas-como- > > publicar-web-how-to-deploy.html > > > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-03-27 0:25 GMT-04:00 PICCORO McKAY Lenz : > > > >> http://qgqlochekone.blogspot.com/2017/03/gambas-como- > >> publicar-web-how-to-deploy.html > >> > >> the main info are in spanish due i'm very bad to write.. but this info > >> (and when complete) must be in the wiki.. > >> > >> its very tedius emit a mail and wait the reponse.. sorgeforce has very > bad > >> index and many times search does not return good result.. a deep manual > >> search in the sourceforge archives of the list give better results for > many > >> problems that users want to investigate.. > >> > >> i do that due i'm not programer, and i not want others like me pass to > >> same way : hard and dificulty > >> > >> Lenz McKAY Gerardo (PICCORO) > >> http://qgqlochekone.blogspot.com > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Sat Apr 1 23:41:11 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sat, 1 Apr 2017 17:41:11 -0400 Subject: [Gambas-user] gambas web how to deploy (under construction) but minimal info ready In-Reply-To: References: Message-ID: 2017-04-01 17:39 GMT-04:00 PICCORO McKAY Lenz : > when script raise and exception, sensible data its scaped to the browser > and consecuencie to the web user in client side.. so not recomended-- > that was some time ago recomended by Beno?t Minisin itselft, when a error raise and exception or similar, all the gambas code are scaped to the client side an rendered as txt plain in client side.. > > >> >> 2017-04-01 21:44 GMT+02:00 PICCORO McKAY Lenz : >> > continued with the how to and ported to gambas wiki now: >> > >> > http://gambaswiki.org/wiki/howto/getstartedwebgambas >> > >> > with the basic to deploay the app cgi inside the webserver as per user >> or >> > globally, also minimal knowledge and requirements >> > >> > the article was updates too: >> > http://qgqlochekone.blogspot.com/2017/03/gambas-como- >> > publicar-web-how-to-deploy.html >> > >> > >> > Lenz McKAY Gerardo (PICCORO) >> > http://qgqlochekone.blogspot.com >> > >> > 2017-03-27 0:25 GMT-04:00 PICCORO McKAY Lenz : >> > >> >> http://qgqlochekone.blogspot.com/2017/03/gambas-como- >> >> publicar-web-how-to-deploy.html >> >> >> >> the main info are in spanish due i'm very bad to write.. but this info >> >> (and when complete) must be in the wiki.. >> >> >> >> its very tedius emit a mail and wait the reponse.. sorgeforce has very >> bad >> >> index and many times search does not return good result.. a deep manual >> >> search in the sourceforge archives of the list give better results for >> many >> >> problems that users want to investigate.. >> >> >> >> i do that due i'm not programer, and i not want others like me pass to >> >> same way : hard and dificulty >> >> >> >> Lenz McKAY Gerardo (PICCORO) >> >> http://qgqlochekone.blogspot.com >> >> >> > ------------------------------------------------------------ >> ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> -- >> Fabien Bodard >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From taboege at ...626... Sun Apr 2 00:22:58 2017 From: taboege at ...626... (Tobias Boege) Date: Sun, 2 Apr 2017 00:22:58 +0200 Subject: [Gambas-user] gambas web how to deploy (under construction) but minimal info ready In-Reply-To: References: Message-ID: <20170401222258.GA550@...3600...> On Sat, 01 Apr 2017, PICCORO McKAY Lenz wrote: > continued with the how to and ported to gambas wiki now: > > http://gambaswiki.org/wiki/howto/getstartedwebgambas > > with the basic to deploay the app cgi inside the webserver as per user or > globally, also minimal knowledge and requirements > > the article was updates too: > http://qgqlochekone.blogspot.com/2017/03/gambas-como- > publicar-web-how-to-deploy.html > To be frank, I don't know what to think of this entry in the wiki. Please believe me that new content is always great to have and your effort is appreciated, so that I can focus on the things I dislike in this mail with a clean conscience. Naturally, the first point is the spelling. If it wasn't for the spelling I wouldn't have bothered to write a mail, but since it has surpassed my inhibition threshold, let me also comment on the contents further below. I strongly suggest you find yourself a volunteer to go over the article and produce an actual English text. There are literally as many errors as there are lines in the document, maybe more. Of course, I'm not the wiki police and I won't dare to delete your article, but, honestly, I want to. The whole presentation is a little embarrassing, to the point where I have trouble saying "it's better than nothing", averaged over all aspects of the document (+ the information, - the presentation). There are also questionable lines like > due unfortunatelly ide when runs make a own embebed web erver Why is that unfortunate? Is gb.httpd a bother and should be removed? This sounds either like your opinion or a filler word, and IMHO it should be left out in both cases. The part before this reads > also note that test the webpage inside the ide its not same as called from url browser, As a matter of fact, you use the same web (url?) browser to access and view the output of your project, regardless of whether you run it from the IDE or from a proper web server. You seem to be targeting gb.httpd but how is it not the same? I mean, yes, I think I've seen some differences in the setting of CGI variables across default configurations of web servers, but the reader of your article would probably like an example of what you're getting at here, because the web browser handles both types of web servers the same. Then I don't get why you discriminate between Gambas scripts and compiled Gambas projects. Sure: one is compiled and the other isn't, but both are CGI scripts with a shebang, so what's the point? As CGI scripts they are not more different than they are as Gambas executables. There are other things I personally disagree with, like the scope of your document: > second Need understand REALLY the concepts of request Request and response Response Why is this an "Installation requirement"? > As general furter info high end production environments must configure as a duple > of a server frontend that provides a proxy reverse to the real cgi webserver with > the gambas3 cgi program. > the server GCI standars values, those are very important to understant for high level > production webpages. You originally wanted to write a HowTo for using Gambas CGI on a real web server, not about high-level production development. If I were to start writing such an article, I would make a clear cut between (1) Installing Gambas Might as well include a small section about this. I installed Gambas from sources on my CentOS server. Since that naturally goes without GUI, produces lots of missing component warnings and all that, it might be the newbie-friendly way to talk about these things. IIRC I even needed to patch the gb.db.mysql/configure.ac because /usr/lib isn't symlinked to /usr/lib64 on my system, so the configure script failed to find some libraries. Chances are people want to use a fairly recent Gambas version, too, to get new features and fixes in the gb.web.form component, so I think installing Gambas is a relevant topic here. (2) Essentials of Gambas CGI programming The relevant components are gb.web and gb.web.form. Choosing a "web application" in the IDE project creation dialog will only turn on gb.web (and gb.util.web). I would write a small application that uses some gb.web classes: parses Request.Path (preferably without producing a directory traversal vulnerability) and uses the Response and Session classes in a non-trivial way -- all this without going into much detail on the HTTP protocol, CGI variables, database connectivity and what else a serious application may require. This is all stuff the user will learn on the side and has no reason to be in the Gambas wiki. I would probably not more than mention Gambas WebPages because I never used them. At the end of this section, the reader would have seen the sources of a Gambas CGI application and knows he can use gb.httpd to debug his own code. (3) Installing and configuring the web server Your instructions could have been much clearer. For starters, I would replace the table with subsections in the document, dealing with apache and lighttpd separately, linking to relevant documentation, give the reader an idea where the configuration files could be located on their distro, etc.. This might easily be the most important part of the article for most people which are already familiar with Gambas. Don't just squeeze all the stuff into a table without any discussion at all. Again, I'm sorry if some parts come off as too direct. It's already past bed time here. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Sun Apr 2 01:32:05 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sat, 1 Apr 2017 19:32:05 -0400 Subject: [Gambas-user] gambas web how to deploy (under construction) but minimal info ready In-Reply-To: <20170401222258.GA550@...3600...> References: <20170401222258.GA550@...3600...> Message-ID: tobi, please u can made corrections or whatever, i not a english speaker, and a web contribution guie its need for MANY users... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-04-01 18:22 GMT-04:00 Tobias Boege : > On Sat, 01 Apr 2017, PICCORO McKAY Lenz wrote: >> continued with the how to and ported to gambas wiki now: >> >> http://gambaswiki.org/wiki/howto/getstartedwebgambas >> >> with the basic to deploay the app cgi inside the webserver as per user or >> globally, also minimal knowledge and requirements >> >> the article was updates too: >> http://qgqlochekone.blogspot.com/2017/03/gambas-como- >> publicar-web-how-to-deploy.html >> > > To be frank, I don't know what to think of this entry in the wiki. Please > believe me that new content is always great to have and your effort is > appreciated, so that I can focus on the things I dislike in this mail with > a clean conscience. > > Naturally, the first point is the spelling. If it wasn't for the spelling > I wouldn't have bothered to write a mail, but since it has surpassed my > inhibition threshold, let me also comment on the contents further below. > > I strongly suggest you find yourself a volunteer to go over the article > and produce an actual English text. There are literally as many errors as > there are lines in the document, maybe more. Of course, I'm not the wiki > police and I won't dare to delete your article, but, honestly, I want to. > The whole presentation is a little embarrassing, to the point where I have > trouble saying "it's better than nothing", averaged over all aspects of > the document (+ the information, - the presentation). > > There are also questionable lines like > >> due unfortunatelly ide when runs make a own embebed web erver > > Why is that unfortunate? Is gb.httpd a bother and should be removed? This > sounds either like your opinion or a filler word, and IMHO it should be > left out in both cases. The part before this reads > >> also note that test the webpage inside the ide its not same as called from url browser, > > As a matter of fact, you use the same web (url?) browser to access and > view the output of your project, regardless of whether you run it from the > IDE or from a proper web server. You seem to be targeting gb.httpd but how > is it not the same? I mean, yes, I think I've seen some differences in the > setting of CGI variables across default configurations of web servers, but > the reader of your article would probably like an example of what you're > getting at here, because the web browser handles both types of web servers > the same. > > Then I don't get why you discriminate between Gambas scripts and compiled > Gambas projects. Sure: one is compiled and the other isn't, but both are > CGI scripts with a shebang, so what's the point? As CGI scripts they are > not more different than they are as Gambas executables. > > There are other things I personally disagree with, like the scope of your > document: > >> second Need understand REALLY the concepts of request Request and response Response > > Why is this an "Installation requirement"? > >> As general furter info high end production environments must configure as a duple >> of a server frontend that provides a proxy reverse to the real cgi webserver with >> the gambas3 cgi program. > >> the server GCI standars values, those are very important to understant for high level >> production webpages. > > You originally wanted to write a HowTo for using Gambas CGI on a real web > server, not about high-level production development. > > If I were to start writing such an article, I would make a clear cut between > > (1) Installing Gambas > Might as well include a small section about this. I installed Gambas > from sources on my CentOS server. Since that naturally goes without > GUI, produces lots of missing component warnings and all that, it > might be the newbie-friendly way to talk about these things. IIRC I > even needed to patch the gb.db.mysql/configure.ac because /usr/lib > isn't symlinked to /usr/lib64 on my system, so the configure script > failed to find some libraries. Chances are people want to use a > fairly recent Gambas version, too, to get new features and fixes in > the gb.web.form component, so I think installing Gambas is a relevant > topic here. > > (2) Essentials of Gambas CGI programming > The relevant components are gb.web and gb.web.form. Choosing a > "web application" in the IDE project creation dialog will only turn > on gb.web (and gb.util.web). I would write a small application that > uses some gb.web classes: parses Request.Path (preferably without > producing a directory traversal vulnerability) and uses the Response > and Session classes in a non-trivial way -- all this without going > into much detail on the HTTP protocol, CGI variables, database > connectivity and what else a serious application may require. This is > all stuff the user will learn on the side and has no reason to be in > the Gambas wiki. I would probably not more than mention Gambas > WebPages because I never used them. At the end of this section, the > reader would have seen the sources of a Gambas CGI application and > knows he can use gb.httpd to debug his own code. > > (3) Installing and configuring the web server > Your instructions could have been much clearer. For starters, I would > replace the table with subsections in the document, dealing with apache > and lighttpd separately, linking to relevant documentation, give the > reader an idea where the configuration files could be located on their > distro, etc.. This might easily be the most important part of the > article for most people which are already familiar with Gambas. Don't > just squeeze all the stuff into a table without any discussion at all. > > Again, I'm sorry if some parts come off as too direct. It's already past bed > time here. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Sun Apr 2 18:07:26 2017 From: taboege at ...626... (Tobias Boege) Date: Sun, 2 Apr 2017 18:07:26 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents Message-ID: <20170402160726.GA547@...3600...> Hello all, I wrote an RSS feed generator for one of my projects recently and could luckily complete also the parser before the new semester starts tomorrow. So you get a gb.rss component in the latest revision #8117. It should support all the things that are mentioned in the RSS 2.0 specification here [1], but there are still some problems: * The date conversion routines ignore timezones completely, because I have no clue about working with timezones in Gambas. * The strings you give to Rss* objects are put into the XML file verbatim currently, which is not desirable if these strings are HTML or some other things that confuse an RSS (XML) parser. I guess those strings should be wrapped in a CDATA section. I'd be grateful for a routine that tells me when to use CDATA. The attached project demonstrates the feed generator part. It takes the output of "ps", for the lack of a better data source, and turns it into an RSS feed, which is then offered through gb.httpd. I tested the resulting feed with newsbeuter. Just load the feed, start some new programs and then reload the feed. @Adrien or Fabien: While playing around with the XmlReader, I noticed some problems. I tried to fix them to the best of my ability in #8116, but as always it would be better if you looked through the matter again. Regards, Tobi [1] http://cyber.harvard.edu/rss/rss.html -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: rsstest-0.0.1.tar.gz Type: application/octet-stream Size: 12080 bytes Desc: not available URL: From gambas at ...1... Sun Apr 2 22:16:36 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 2 Apr 2017 22:16:36 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <20170402160726.GA547@...3600...> References: <20170402160726.GA547@...3600...> Message-ID: <4f21e768-7c20-612a-6d77-1c15d617bbd0@...1...> Le 02/04/2017 ? 18:07, Tobias Boege a ?crit : > Hello all, > > I wrote an RSS feed generator for one of my projects recently and could > luckily complete also the parser before the new semester starts tomorrow. > So you get a gb.rss component in the latest revision #8117. > > It should support all the things that are mentioned in the RSS 2.0 > specification here [1], but there are still some problems: > > * The date conversion routines ignore timezones completely, because > I have no clue about working with timezones in Gambas. As I don't know RSS, can you elaborate? What do you need to do exactly with timezones? Regards, -- Beno?t Minisini From taboege at ...626... Sun Apr 2 22:34:07 2017 From: taboege at ...626... (Tobias Boege) Date: Sun, 2 Apr 2017 22:34:07 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <4f21e768-7c20-612a-6d77-1c15d617bbd0@...1...> References: <20170402160726.GA547@...3600...> <4f21e768-7c20-612a-6d77-1c15d617bbd0@...1...> Message-ID: <20170402203407.GE24796@...3600...> On Sun, 02 Apr 2017, Beno?t Minisini wrote: > Le 02/04/2017 ? 18:07, Tobias Boege a ?crit : > > Hello all, > > > > I wrote an RSS feed generator for one of my projects recently and could > > luckily complete also the parser before the new semester starts tomorrow. > > So you get a gb.rss component in the latest revision #8117. > > > > It should support all the things that are mentioned in the RSS 2.0 > > specification here [1], but there are still some problems: > > > > * The date conversion routines ignore timezones completely, because > > I have no clue about working with timezones in Gambas. > > As I don't know RSS, can you elaborate? What do you need to do exactly > with timezones? > The items in an RSS feed (and the feed itself) contain publication dates such as Sat, 07 Sep 2002 10:00:00 GMT At the moment, when I read this string into a Date and use it in a Gambas application, the timezone is ignored, i.e. it will be the 7th Sep 2002 at 10:00:00 *system-local timezone*, which is not correct. You can see this when you serialise the RSS object into an XML document again. It gives: Sat, 07 Sep 2002 10:00:00 +0100 because my system is in +0100 now. I don't know how this situation is best handled. The Gambas Date type is not big enough to carry timezone information, is it? Then I would have to convert the given time to the system timezone 10:00:00 GMT -> 09:00:00 +0100 which results in the XML output Sat, 07 Sep 2002 09:00:00 +0100 later, which is not identical to the source but at least represents the same point in time. But I could image that being able to set the target timezone explicitly would be desirable, e.g. when your RSS feed item represents a story in a German newspaper, but your server runs in a US timezone. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From hans at ...3219... Sun Apr 2 22:14:11 2017 From: hans at ...3219... (Hans Lehmann) Date: Sun, 2 Apr 2017 22:14:11 +0200 Subject: [Gambas-user] Help Class XmlDocument Message-ID: <8a21ba6c-b326-ebb4-1de1-e47eb9196bb2@...3219...> Hello, I want to use the XmlDocument class for a project for our Gambas online book (www.gambas-buch.de) to write an XML file and implement this headnote from the documentation: 'This API can be used to read as well as write an XML document'. The following shall be the content of the file Adler Am Hafen 3 03937864322 www.cadalto.net Can someone help me with useful tips and code snippets? Regards, Hans From gambas at ...1... Sun Apr 2 22:40:33 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 2 Apr 2017 22:40:33 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <20170402203407.GE24796@...3600...> References: <20170402160726.GA547@...3600...> <4f21e768-7c20-612a-6d77-1c15d617bbd0@...1...> <20170402203407.GE24796@...3600...> Message-ID: Le 02/04/2017 ? 22:34, Tobias Boege a ?crit : > On Sun, 02 Apr 2017, Beno?t Minisini wrote: >> Le 02/04/2017 ? 18:07, Tobias Boege a ?crit : >>> Hello all, >>> >>> I wrote an RSS feed generator for one of my projects recently and could >>> luckily complete also the parser before the new semester starts tomorrow. >>> So you get a gb.rss component in the latest revision #8117. >>> >>> It should support all the things that are mentioned in the RSS 2.0 >>> specification here [1], but there are still some problems: >>> >>> * The date conversion routines ignore timezones completely, because >>> I have no clue about working with timezones in Gambas. >> >> As I don't know RSS, can you elaborate? What do you need to do exactly >> with timezones? >> > > The items in an RSS feed (and the feed itself) contain publication dates > such as > > Sat, 07 Sep 2002 10:00:00 GMT > > At the moment, when I read this string into a Date and use it in a Gambas > application, the timezone is ignored, i.e. it will be the 7th Sep 2002 at > 10:00:00 *system-local timezone*, which is not correct. You can see this > when you serialise the RSS object into an XML document again. It gives: > > Sat, 07 Sep 2002 10:00:00 +0100 > > because my system is in +0100 now. > > I don't know how this situation is best handled. The Gambas Date type is > not big enough to carry timezone information, is it? Then I would have to > convert the given time to the system timezone > > 10:00:00 GMT -> 09:00:00 +0100 > > which results in the XML output > > Sat, 07 Sep 2002 09:00:00 +0100 > > later, which is not identical to the source but at least represents the same > point in time. But I could image that being able to set the target timezone > explicitly would be desirable, e.g. when your RSS feed item represents a > story in a German newspaper, but your server runs in a US timezone. > > Regards, > Tobi > Date in Gambas are storead as a number of days and microseconds from a specific origin, and are always considered as UTC. They are converted to the timezone associated with the localisation when you use Str() or Format() or Print. To convert a date ti a specific timezone, you have to convert the date part taken as UTC, and then you add (or substract I think, must be checked!) the time zone value (which are hours). Maybe this is an utility function to implement in gb.util.web... -- Beno?t Minisini From d4t4full at ...626... Mon Apr 3 00:48:06 2017 From: d4t4full at ...626... (d4t4full at ...626...) Date: Sun, 02 Apr 2017 19:48:06 -0300 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: References: <20170402160726.GA547@...3600...> <4f21e768-7c20-612a-6d77-1c15d617bbd0@...1...> <20170402203407.GE24796@...3600...> Message-ID: <470fadeb-db6f-4407-8973-6c2923efb457@...626...> I do not see the need to "force" developers needing timezone handling? functionality to add a reference to gb.util.web; expecting to have timezone capability in a web component is simply not intuitive. Couldn't the timezone be a new property of the Date type/object, defaulting to the System's timezone? This way older programs and interpreters ignoring it would still work. An alternative would be to add an (optional) timezone pareter to DateAdd, and/or a new Format specifier for timezone. I do not have it present now, but if Gambas has Dateserial/Timeserial functions, they could too receive timezone as optional info. Just my two cents. zxMarce On Apr 2, 2017, 17:40, at 17:40, "Beno?t Minisini" wrote: >Le 02/04/2017 ? 22:34, Tobias Boege a ?crit : >> On Sun, 02 Apr 2017, Beno?t Minisini wrote: >>> Le 02/04/2017 ? 18:07, Tobias Boege a ?crit : >>>> Hello all, >>>> >>>> I wrote an RSS feed generator for one of my projects recently and >could >>>> luckily complete also the parser before the new semester starts >tomorrow. >>>> So you get a gb.rss component in the latest revision #8117. >>>> >>>> It should support all the things that are mentioned in the RSS 2.0 >>>> specification here [1], but there are still some problems: >>>> >>>> * The date conversion routines ignore timezones completely, >because >>>> I have no clue about working with timezones in Gambas. >>> >>> As I don't know RSS, can you elaborate? What do you need to do >exactly >>> with timezones? >>> >> >> The items in an RSS feed (and the feed itself) contain publication >dates >> such as >> >> Sat, 07 Sep 2002 10:00:00 GMT >> >> At the moment, when I read this string into a Date and use it in a >Gambas >> application, the timezone is ignored, i.e. it will be the 7th Sep >2002 at >> 10:00:00 *system-local timezone*, which is not correct. You can see >this >> when you serialise the RSS object into an XML document again. It >gives: >> >> Sat, 07 Sep 2002 10:00:00 +0100 >> >> because my system is in +0100 now. >> >> I don't know how this situation is best handled. The Gambas Date type >is >> not big enough to carry timezone information, is it? Then I would >have to >> convert the given time to the system timezone >> >> 10:00:00 GMT -> 09:00:00 +0100 >> >> which results in the XML output >> >> Sat, 07 Sep 2002 09:00:00 +0100 >> >> later, which is not identical to the source but at least represents >the same >> point in time. But I could image that being able to set the target >timezone >> explicitly would be desirable, e.g. when your RSS feed item >represents a >> story in a German newspaper, but your server runs in a US timezone. >> >> Regards, >> Tobi >> > >Date in Gambas are storead as a number of days and microseconds from a >specific origin, and are always considered as UTC. > >They are converted to the timezone associated with the localisation >when >you use Str() or Format() or Print. > >To convert a date ti a specific timezone, you have to convert the date >part taken as UTC, and then you add (or substract I think, must be >checked!) the time zone value (which are hours). > >Maybe this is an utility function to implement in gb.util.web... > >-- >Beno?t Minisini > >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Apr 3 01:51:03 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 3 Apr 2017 01:51:03 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <470fadeb-db6f-4407-8973-6c2923efb457@...626...> References: <20170402160726.GA547@...3600...> <4f21e768-7c20-612a-6d77-1c15d617bbd0@...1...> <20170402203407.GE24796@...3600...> <470fadeb-db6f-4407-8973-6c2923efb457@...626...> Message-ID: <1da8db99-c97c-69d3-e709-79528e82c5fd@...1...> Le 03/04/2017 ? 00:48, d4t4full at ...626... a ?crit : > I do not see the need to "force" developers needing timezone handling > functionality to add a reference to gb.util.web; expecting to have > timezone capability in a web component is simply not intuitive. > > Couldn't the timezone be a new property of the Date type/object, > defaulting to the System's timezone? This way older programs and > interpreters ignoring it would still work. > > An alternative would be to add an (optional) timezone pareter to > DateAdd, and/or a new Format specifier for timezone. I do not have it > present now, but if Gambas has Dateserial/Timeserial functions, they > could too receive timezone as optional info. > > Just my two cents. zxMarce > A lot of confusion again... Time is absolute in Gambas: there is no timezone associated with a Gambas date/time value. Timezone is a local concept. By the way you have System.Timezone to get the local timezone of your system. When I talk about gb.util.web, I think about a function that convert a standard (RFC #xxxx) date/time string representation with a timezone to a Gambas date/time value. Of course, it can be in gb.util. It depends on the format. If it is a specific web date format, it's logical to put it in gb.util.web instead. Regards, -- Beno?t Minisini From d4t4full at ...626... Mon Apr 3 01:55:20 2017 From: d4t4full at ...626... (d4t4full at ...626...) Date: Sun, 02 Apr 2017 20:55:20 -0300 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <1da8db99-c97c-69d3-e709-79528e82c5fd@...1...> References: <20170402160726.GA547@...3600...> <4f21e768-7c20-612a-6d77-1c15d617bbd0@...1...> <20170402203407.GE24796@...3600...> <470fadeb-db6f-4407-8973-6c2923efb457@...626...> <1da8db99-c97c-69d3-e709-79528e82c5fd@...1...> Message-ID: <23b57f33-d2be-4e72-859b-ce5e1c751f76@...626...> Got it. Thanks Beno?t. On Apr 2, 2017, 20:51, at 20:51, "Beno?t Minisini" wrote: >Le 03/04/2017 ? 00:48, d4t4full at ...626... a ?crit : >> I do not see the need to "force" developers needing timezone handling >> functionality to add a reference to gb.util.web; expecting to have >> timezone capability in a web component is simply not intuitive. >> >> Couldn't the timezone be a new property of the Date type/object, >> defaulting to the System's timezone? This way older programs and >> interpreters ignoring it would still work. >> >> An alternative would be to add an (optional) timezone pareter to >> DateAdd, and/or a new Format specifier for timezone. I do not have it >> present now, but if Gambas has Dateserial/Timeserial functions, they >> could too receive timezone as optional info. >> >> Just my two cents. zxMarce >> > >A lot of confusion again... > >Time is absolute in Gambas: there is no timezone associated with a >Gambas date/time value. > >Timezone is a local concept. By the way you have System.Timezone to get > >the local timezone of your system. > >When I talk about gb.util.web, I think about a function that convert a >standard (RFC #xxxx) date/time string representation with a timezone to > >a Gambas date/time value. > >Of course, it can be in gb.util. It depends on the format. If it is a >specific web date format, it's logical to put it in gb.util.web >instead. > >Regards, > >-- >Beno?t Minisini > >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Tue Apr 4 12:02:12 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 4 Apr 2017 12:02:12 +0200 Subject: [Gambas-user] Schlieszung des Gambas-Clubs Message-ID: <20170404100212.GA564@...3600...> /This is a message to German Gambas users (and Ru Vuott), more specifically those of the Gambas-Club forum, but I'll include an English translation below./ #--------------------------------------------------------------------------# Hallo zusammen, der Gambas-Club ist seit gestern abend(?) abgeschaltet. Ich habe den Hosting-Vertrag Anfang des Jahres gekuendigt, aus primaer zwei Gruenden: (1) ich wollte spezifisch von diesem Anbieter weg und (2) es ist ein Forum fuer nicht viel mehr als 4 Personen geworden. Angesichts von (2) habe ich mich entschieden, die Domain nicht zu transferieren und laenger aufrecht zu erhalten, sondern die Sache zu beenden. Nachdem ich diesen Gedanken lange Zeit vor mir herschob, habe ich die Domain dann Anfang 2017 gekuendigt. Die ploetzliche Abschaltung gestern war jedoch nicht in meinem Interesse. Tatsaechlich warte ich noch immer auf die mir versprochene Kuendigungsbestaetigung (in Briefform!). Da nun aber die Webseite nicht mehr erreichbar und das Admin-Panel nicht mehr zugaenglich sind, gehe ich davon aus, dass die Kuendigung bearbeitet wurde. Das letzte Backup der Foren-Datenbank, auf das ich Zugriff habe, ist vom 19. Februar 2017, unmittelbar vor meinem Urlaub und darauffolgend der letzten Pruefungsphase fuer das Wintersemester -- waehrend der ich im Maerz schlicht nicht daran gedacht habe, das Backup zu ziehen. Ich bin mir nicht sicher, ob es nuetzlich waere, die alten Beitraege irgendwo zum Download bzw. zum Durchsuchen durch eine Weboberflaeche anzubieten. Ich bin jedenfalls im Besitz der Daten bis zum 19. Februar, falls jemand Interesse daran hat. Das beendet die Laufzeit des, soweit ich weisz, einzigen deutschsprachigen Gambas-Forums, Gambas-Club.de, dessen aeltester Beitrag, soweit ich sehe, am 12. Dezember 2005 verfasst wurde. Ich selbst bin 2008 durch meinen damaligen Informatiklehrer Hans Lehmann auf Gambas ueberhaupt und auch auf das Forum gebracht worden und vor allem am Anfang war es mir eine Hilfe beim Lernen meiner ersten Programmiersprache. Ich bedauere, dass ich die Nutzer das Forum nicht habe ordentlich verabschieden lassen koennen. Grusz, T. Boege #--------------------------------------------------------------------------# Hello all, the Gambas-Club was shut down yesterday evening(?). I terminated the hosting contract at the beginning of the year, for two primary reasons: (1) I wanted to get away from this specific hosting provider and (2) it has become a forum for not many more than 4 people. Given (2), I decided not to transfer and continue the domain but to close it. After delaying it for a long time, I terminated the domain at the beginning of 2017. The sudden disappearance of the site was not my intention though. In fact I'm still waiting for the promised contract termination confirmation (in the form of a letter!). But since the website is gone and I can't even access the admin panel of the provider, I take it that the termination form was indeed processed. The last backup of the forum database that I can access is from 19th Feb 2017, immediately before I went on vacation and, following that, had to prepare for the last exam of the Winter semester -- during that time, March, I simply forgot to make a backup. I'm not sure if it would be useful to offer the old posts for download or search through a website interface somewhere. In any case, I'm in possession of all the data until 19th Feb, if anyone has an interest in that. This concludes the life of the, to my knowledge, only German-speaking Gambas forum, Gambas-Club.de, whose oldest post, as far as I can see, dates back to the 12th Dec 2005. I myself joined in 2008 when my Computer Science teacher at that time, Hans Lehmann, showed me Gambas and the forum. Especially in the beginning, it has been a help for me in learning my very first programming language. I regret that I wasn't able to let the users see the forum off properly. Regards, T. Boege -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bugtracker at ...3416... Wed Apr 5 09:51:54 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 05 Apr 2017 07:51:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1049: reader.Node.Attributes.Value --> Segmentation Fault(11) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1049&from=L21haW4- Comment #2 by Adrien PROKOPOWICZ: The bug was fixed in revision #8119. Adrien PROKOPOWICZ changed the state of the bug to: Fixed. From adrien.prokopowicz at ...626... Wed Apr 5 12:32:31 2017 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Wed, 05 Apr 2017 12:32:31 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <20170402160726.GA547@...3600...> References: <20170402160726.GA547@...3600...> Message-ID: Le Sun, 02 Apr 2017 18:07:26 +0200, Tobias Boege a ?crit: > Hello all, > > I wrote an RSS feed generator for one of my projects recently and could > luckily complete also the parser before the new semester starts tomorrow. > So you get a gb.rss component in the latest revision #8117. > > It should support all the things that are mentioned in the RSS 2.0 > specification here [1], but there are still some problems: > > * The date conversion routines ignore timezones completely, because > I have no clue about working with timezones in Gambas. > > * The strings you give to Rss* objects are put into the XML file > verbatim currently, which is not desirable if these strings > are HTML or some other things that confuse an RSS (XML) parser. > I guess those strings should be wrapped in a CDATA section. > I'd be grateful for a routine that tells me when to use CDATA. > > The attached project demonstrates the feed generator part. It takes the > output of "ps", for the lack of a better data source, and turns it into > an RSS feed, which is then offered through gb.httpd. I tested the > resulting > feed with newsbeuter. Just load the feed, start some new programs and > then > reload the feed. > > @Adrien or Fabien: While playing around with the XmlReader, I noticed > some > problems. I tried to fix them to the best of my ability in #8116, but as > always it would be better if you looked through the matter again. > > Regards, > Tobi > > [1] http://cyber.harvard.edu/rss/rss.html > Hi Tobias, First, thanks for the fixes. :) The only thing that bothers me a bit is throwing an error if no attribute is found when using the _get method on XmlReader.Node.Attributes. It is made so it behaves like a Gambas collection (as XML Attributes can be seen as a simple key-value store), so I think it is better to just return Null in that case. Other than that, it all looks good to me, so thanks again. :) For your escaping problem, the XmlWriter.Element() now escapes the value parameter so it is always safe to pass any String (all the other methods dealing with text content already do that, like XmlWriter.Text() or XmlNode.TextContent). Currently, you can check if a string needs serialization by actually serializing it and comparing it to the original string : If XmlNode.Serialize(Value) = Value Then ' [...] It's not optimal if you're dealing with very large strings, but it works. However, if some elements of the RSS document are likely to contain large HTML or some other markup, I think it's better performance-wise to just always wrap their contents in a CDATA node, as their contents are not checked. As a side node, all these problems with the XmlReader & Writer are starting to annoy me quite a bit (as those are mostly regressions). I think I should bring back the unit testing library I wrote some time ago, and write some tests for gb.xml locally at least. Regards, -- Adrien Prokopowicz From jusabejusabe at ...626... Wed Apr 5 12:47:44 2017 From: jusabejusabe at ...626... (Julio Sanchez) Date: Wed, 5 Apr 2017 12:47:44 +0200 Subject: [Gambas-user] Schlieszung des Gambas-Clubs In-Reply-To: <20170404100212.GA564@...3600...> References: <20170404100212.GA564@...3600...> Message-ID: Hello T. Boege: I'm sorry for what happened with the German forum. :( The Spanish-speaking community invites you to participate in the forum in Spanish: https://www.gambas-es.org/ (With google translator, we could understand ...) Regards Julio 2017-04-04 12:02 GMT+02:00 Tobias Boege : > /This is a message to German Gambas users (and Ru Vuott), more specifically > those of the Gambas-Club forum, but I'll include an English translation > below./ > > #----------------------------------------------------------- > ---------------# > > Hallo zusammen, > > der Gambas-Club ist seit gestern abend(?) abgeschaltet. Ich habe den > Hosting-Vertrag Anfang des Jahres gekuendigt, aus primaer zwei Gruenden: > (1) ich wollte spezifisch von diesem Anbieter weg und (2) es ist ein Forum > fuer nicht viel mehr als 4 Personen geworden. Angesichts von (2) habe ich > mich entschieden, die Domain nicht zu transferieren und laenger aufrecht > zu erhalten, sondern die Sache zu beenden. > > Nachdem ich diesen Gedanken lange Zeit vor mir herschob, habe ich die > Domain > dann Anfang 2017 gekuendigt. Die ploetzliche Abschaltung gestern war jedoch > nicht in meinem Interesse. Tatsaechlich warte ich noch immer auf die mir > versprochene Kuendigungsbestaetigung (in Briefform!). Da nun aber die > Webseite nicht mehr erreichbar und das Admin-Panel nicht mehr zugaenglich > sind, gehe ich davon aus, dass die Kuendigung bearbeitet wurde. > > Das letzte Backup der Foren-Datenbank, auf das ich Zugriff habe, ist vom > 19. Februar 2017, unmittelbar vor meinem Urlaub und darauffolgend der > letzten Pruefungsphase fuer das Wintersemester -- waehrend der ich im > Maerz schlicht nicht daran gedacht habe, das Backup zu ziehen. Ich bin mir > nicht sicher, ob es nuetzlich waere, die alten Beitraege irgendwo zum > Download bzw. zum Durchsuchen durch eine Weboberflaeche anzubieten. > Ich bin jedenfalls im Besitz der Daten bis zum 19. Februar, falls jemand > Interesse daran hat. > > Das beendet die Laufzeit des, soweit ich weisz, einzigen deutschsprachigen > Gambas-Forums, Gambas-Club.de, dessen aeltester Beitrag, soweit ich sehe, > am 12. Dezember 2005 verfasst wurde. Ich selbst bin 2008 durch meinen > damaligen Informatiklehrer Hans Lehmann auf Gambas ueberhaupt und auch auf > das Forum gebracht worden und vor allem am Anfang war es mir eine Hilfe > beim Lernen meiner ersten Programmiersprache. Ich bedauere, dass ich die > Nutzer das Forum nicht habe ordentlich verabschieden lassen koennen. > > Grusz, > T. Boege > > #----------------------------------------------------------- > ---------------# > > Hello all, > > the Gambas-Club was shut down yesterday evening(?). I terminated the > hosting > contract at the beginning of the year, for two primary reasons: (1) I > wanted > to get away from this specific hosting provider and (2) it has become a > forum for not many more than 4 people. Given (2), I decided not to transfer > and continue the domain but to close it. > > After delaying it for a long time, I terminated the domain at the beginning > of 2017. The sudden disappearance of the site was not my intention though. > In fact I'm still waiting for the promised contract termination > confirmation > (in the form of a letter!). But since the website is gone and I can't even > access the admin panel of the provider, I take it that the termination form > was indeed processed. > > The last backup of the forum database that I can access is from 19th Feb > 2017, > immediately before I went on vacation and, following that, had to prepare > for the last exam of the Winter semester -- during that time, March, I > simply forgot to make a backup. I'm not sure if it would be useful to offer > the old posts for download or search through a website interface somewhere. > In any case, I'm in possession of all the data until 19th Feb, if anyone > has > an interest in that. > > This concludes the life of the, to my knowledge, only German-speaking > Gambas forum, Gambas-Club.de, whose oldest post, as far as I can see, dates > back to the 12th Dec 2005. I myself joined in 2008 when my Computer Science > teacher at that time, Hans Lehmann, showed me Gambas and the forum. > Especially in the beginning, it has been a help for me in learning my very > first programming language. I regret that I wasn't able to let the users > see the forum off properly. > > Regards, > T. Boege > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From moviga at ...3488... Wed Apr 5 14:44:44 2017 From: moviga at ...3488... (Moviga Technologies) Date: Wed, 05 Apr 2017 14:44:44 +0200 Subject: [Gambas-user] Schlieszung des Gambas-Clubs In-Reply-To: References: <20170404100212.GA564@...3600...> Message-ID: <7d106e184bf9c3c84eedcdc9fc751805@...3488...> > The Spanish-speaking community invites you to participate in the forum in > Spanish: > https://www.gambas-es.org/ > (With google translator, we could understand ...) Same goes for https://forum.gambas.one for English speakers :) From moviga at ...3488... Wed Apr 5 19:36:42 2017 From: moviga at ...3488... (Moviga Technologies) Date: Wed, 05 Apr 2017 19:36:42 +0200 Subject: [Gambas-user] Turn of certificate verification with gb.curl? Message-ID: Hello! Is it possible to to turn off gb.curl's verification of the certificate? Like you would using the -k (or --insecure) option from the command line. From moviga at ...3488... Wed Apr 5 19:45:20 2017 From: moviga at ...3488... (Moviga Technologies) Date: Wed, 05 Apr 2017 19:45:20 +0200 Subject: [Gambas-user] Turn of certificate verification with gb.curl? In-Reply-To: References: Message-ID: Forget it, I found it below the .SSL property. The documentation was blank, so missed it until the intellisense revealed it :) Den 05.04.2017 19:36, skrev Moviga Technologies: > Hello! > > Is it possible to to turn off gb.curl's verification of the certificate? > Like you would using the -k (or --insecure) option from the command > line. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Apr 5 21:10:32 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 5 Apr 2017 21:10:32 +0200 Subject: [Gambas-user] Schlieszung des Gambas-Clubs In-Reply-To: <7d106e184bf9c3c84eedcdc9fc751805@...3488...> References: <20170404100212.GA564@...3600...> <7d106e184bf9c3c84eedcdc9fc751805@...3488...> Message-ID: And there is alway the unperfect GambasForge http://www.gambasforge.org 2017-04-05 14:44 GMT+02:00 Moviga Technologies : >> The Spanish-speaking community invites you to participate in the forum in >> Spanish: >> https://www.gambas-es.org/ >> (With google translator, we could understand ...) > > Same goes for https://forum.gambas.one for English speakers :) > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From chrisml at ...3340... Wed Apr 5 23:00:05 2017 From: chrisml at ...3340... (Christof Thalhofer) Date: Wed, 5 Apr 2017 23:00:05 +0200 Subject: [Gambas-user] Schlieszung des Gambas-Clubs In-Reply-To: <20170404100212.GA564@...3600...> References: <20170404100212.GA564@...3600...> Message-ID: Am 04.04.2017 um 12:02 schrieb Tobias Boege: > /This is a message to German Gambas users (and Ru Vuott), more specifically > those of the Gambas-Club forum, but I'll include an English translation below./ > > #--------------------------------------------------------------------------# > > Hallo zusammen, > > der Gambas-Club ist seit gestern abend(?) abgeschaltet. Ich habe den > Hosting-Vertrag Anfang des Jahres gekuendigt, aus primaer zwei Gruenden: > (1) ich wollte spezifisch von diesem Anbieter weg und (2) es ist ein Forum > fuer nicht viel mehr als 4 Personen geworden. Angesichts von (2) habe ich > mich entschieden, die Domain nicht zu transferieren und laenger aufrecht > zu erhalten, sondern die Sache zu beenden. Das ist sehr schlecht. Es war eine gute Seite mit viel Hintergrundinfo. Ich h?tte gar kein Problem, das Forum zu hosten. Magst du dich mal bei mir melden? Man m?sste mal den Hoster ansprechen, wegen der Domain. Ich hoffe, Ihr habt die Domain noch nicht aufgegeben. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From taboege at ...626... Sat Apr 8 17:23:32 2017 From: taboege at ...626... (Tobias Boege) Date: Sat, 8 Apr 2017 17:23:32 +0200 Subject: [Gambas-user] Multiple top-level nodes with XmlDocument Message-ID: <20170408152332.GI557@...3600...> Hi, I want to write an XML file like this: Note that I have a comment node and an element node at the top-level of the DOM tree. This [1] gives me the impression that it should be valid XML. This is straight forward with XmlWriter, but it doesn't seem possible with XmlDocument since it allows for only one Root node. XmlDocument.Root is an XmlElement and consequently always renders as ... which can even produce <> in the output XML file if you set XmlDocument.Root.Name = Null. Regards, Tobi [1] http://stackoverflow.com/questions/14726276/what-is-the-root-node-in-xml -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at ...3340... Sat Apr 8 18:37:37 2017 From: chrisml at ...3340... (Christof Thalhofer) Date: Sat, 8 Apr 2017 18:37:37 +0200 Subject: [Gambas-user] gambas-club.de is back again Message-ID: <77a6be12-3389-5978-3841-183080541440@...3340...> Hi, gambas-club.de down would have been a heavy loss, because AFAIK it is the only Gambas forum in german language. So I took it under my wing. One question: Can I use the Gambas logo for the forum? Are there any files for designers? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From gambas at ...1... Sat Apr 8 19:00:21 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 8 Apr 2017 19:00:21 +0200 Subject: [Gambas-user] gambas-club.de is back again In-Reply-To: <77a6be12-3389-5978-3841-183080541440@...3340...> References: <77a6be12-3389-5978-3841-183080541440@...3340...> Message-ID: <1177a1bc-6775-288d-c438-0b6f79262ea9@...1...> Le 08/04/2017 ? 18:37, Christof Thalhofer a ?crit : > Hi, > > gambas-club.de down would have been a heavy loss, because AFAIK it is > the only Gambas forum in german language. So I took it under my wing. > > One question: Can I use the Gambas logo for the forum? Are there any > files for designers? > Yes, of course. -- Beno?t Minisini From bagonergi at ...626... Sat Apr 8 19:30:13 2017 From: bagonergi at ...626... (Gianluigi) Date: Sat, 8 Apr 2017 19:30:13 +0200 Subject: [Gambas-user] gambas-club.de is back again In-Reply-To: <77a6be12-3389-5978-3841-183080541440@...3340...> References: <77a6be12-3389-5978-3841-183080541440@...3340...> Message-ID: Very well ? Alles Gute Gianluigi 2017-04-08 18:37 GMT+02:00 Christof Thalhofer : > Hi, > > gambas-club.de down would have been a heavy loss, because AFAIK it is > the only Gambas forum in german language. So I took it under my wing. > > One question: Can I use the Gambas logo for the forum? Are there any > files for designers? > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From taboege at ...626... Sat Apr 8 19:37:46 2017 From: taboege at ...626... (Tobias Boege) Date: Sat, 8 Apr 2017 19:37:46 +0200 Subject: [Gambas-user] gambas-club.de is back again In-Reply-To: <1177a1bc-6775-288d-c438-0b6f79262ea9@...1...> References: <77a6be12-3389-5978-3841-183080541440@...3340...> <1177a1bc-6775-288d-c438-0b6f79262ea9@...1...> Message-ID: <20170408173746.GJ557@...3600...> On Sat, 08 Apr 2017, Beno?t Minisini wrote: > Le 08/04/2017 ? 18:37, Christof Thalhofer a ?crit : > > Hi, > > > > gambas-club.de down would have been a heavy loss, because AFAIK it is > > the only Gambas forum in german language. So I took it under my wing. > > > > One question: Can I use the Gambas logo for the forum? Are there any > > files for designers? > > > > Yes, of course. > If by "files for designers" you are ok with an svg, there's one included in the Gambas distribution and you can immediately get it from sourceforge: https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/app/src/gambas3/img/logo/gambas.svg Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at ...3340... Sat Apr 8 19:57:15 2017 From: chrisml at ...3340... (Christof Thalhofer) Date: Sat, 8 Apr 2017 19:57:15 +0200 Subject: [Gambas-user] gambas-club.de is back again In-Reply-To: <20170408173746.GJ557@...3600...> References: <77a6be12-3389-5978-3841-183080541440@...3340...> <1177a1bc-6775-288d-c438-0b6f79262ea9@...1...> <20170408173746.GJ557@...3600...> Message-ID: <45de7ffd-43e6-32e7-bbaf-0e42314a53a3@...3340...> Am 08.04.2017 um 19:37 schrieb Tobias Boege: > If by "files for designers" you are ok with an svg, there's one included in > the Gambas distribution and you can immediately get it from sourceforge: > > https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/app/src/gambas3/img/logo/gambas.svg Ok, great. That's what I was looking for. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From adrien.prokopowicz at ...626... Sun Apr 9 01:06:43 2017 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 09 Apr 2017 01:06:43 +0200 Subject: [Gambas-user] Multiple top-level nodes with XmlDocument In-Reply-To: <20170408152332.GI557@...3600...> References: <20170408152332.GI557@...3600...> Message-ID: Le Sat, 08 Apr 2017 17:23:32 +0200, Tobias Boege a ?crit: > Hi, > > I want to write an XML file like this: > > > > > > Note that I have a comment node and an element node at the top-level of > the > DOM tree. This [1] gives me the impression that it should be valid XML. > > This is straight forward with XmlWriter, but it doesn't seem possible > with > XmlDocument since it allows for only one Root node. XmlDocument.Root is > an > XmlElement and consequently always renders as > > > ... > > > which can even produce > > <> > > > in the output XML file if you set XmlDocument.Root.Name = Null. > > Regards, > Tobi > > [1] > http://stackoverflow.com/questions/14726276/what-is-the-root-node-in-xml > Hi Tobias, A document is technically a node itself, and can have multiple children. The "Root" property is only defined to be the direct element child of the document (a document cannot have multiple root elements). This is how the XmlDocument is represented internally, but the exposed Gambas class does not inherit XmlNode. I think it is for compatibility reasons with the old gb.xml, but I have to re-check. In the meantime, you can work around this limitation like this : Dim doc As New XmlDocument doc.FromString("") doc.Root.TextContent = "Hello world" Print doc.ToString() 'Correctly renders the comments Regards, -- Adrien Prokopowicz From taboege at ...626... Tue Apr 11 12:53:10 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 11 Apr 2017 12:53:10 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <20170402160726.GA547@...3600...> References: <20170402160726.GA547@...3600...> Message-ID: <20170411105310.GD632@...3600...> On Sun, 02 Apr 2017, Tobias Boege wrote: > Hello all, > > I wrote an RSS feed generator for one of my projects recently and could > luckily complete also the parser before the new semester starts tomorrow. > So you get a gb.rss component in the latest revision #8117. > @Benoit: I'm currently writing the documentation for this (inside the source files at first). How did adding documentation to the wiki go again? Do you have to poke a script on the server side which creates template pages or do I just create the pages myself? And before you do that: I intend to implement Atom besides RSS, too. Do you think the name gb.rss is good enough to capture that? Another possibility would be gb.webfeed, I guess. "Web syndication" seems to be yet another word which encompasses RSS and Atom... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Tue Apr 11 13:01:16 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 11 Apr 2017 13:01:16 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <20170411105310.GD632@...3600...> References: <20170402160726.GA547@...3600...> <20170411105310.GD632@...3600...> Message-ID: Le 11/04/2017 ? 12:53, Tobias Boege a ?crit : > On Sun, 02 Apr 2017, Tobias Boege wrote: >> Hello all, >> >> I wrote an RSS feed generator for one of my projects recently and could >> luckily complete also the parser before the new semester starts tomorrow. >> So you get a gb.rss component in the latest revision #8117. >> > > @Benoit: I'm currently writing the documentation for this (inside the > source files at first). How did adding documentation to the wiki go again? > Do you have to poke a script on the server side which creates template > pages or do I just create the pages myself? Normally, once I have updated the component info files on the wiki server, creating a new page automatically peeks the documentation lines from the source code. > > And before you do that: I intend to implement Atom besides RSS, too. > Do you think the name gb.rss is good enough to capture that? Another > possibility would be gb.webfeed, I guess. "Web syndication" seems to > be yet another word which encompasses RSS and Atom... Mmm... 'gb.web.syndication' so ? -- Beno?t Minisini From taboege at ...626... Tue Apr 11 15:28:04 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 11 Apr 2017 15:28:04 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: References: <20170402160726.GA547@...3600...> <20170411105310.GD632@...3600...> Message-ID: <20170411132804.GE632@...3600...> On Tue, 11 Apr 2017, Beno?t Minisini wrote: > Le 11/04/2017 ? 12:53, Tobias Boege a ?crit : > > On Sun, 02 Apr 2017, Tobias Boege wrote: > >> Hello all, > >> > >> I wrote an RSS feed generator for one of my projects recently and could > >> luckily complete also the parser before the new semester starts tomorrow. > >> So you get a gb.rss component in the latest revision #8117. > >> > > > > @Benoit: I'm currently writing the documentation for this (inside the > > source files at first). How did adding documentation to the wiki go again? > > Do you have to poke a script on the server side which creates template > > pages or do I just create the pages myself? > > Normally, once I have updated the component info files on the wiki > server, creating a new page automatically peeks the documentation lines > from the source code. > Cool! > > > > And before you do that: I intend to implement Atom besides RSS, too. > > Do you think the name gb.rss is good enough to capture that? Another > > possibility would be gb.webfeed, I guess. "Web syndication" seems to > > be yet another word which encompasses RSS and Atom... > > Mmm... 'gb.web.syndication' so ? > Reading a little, it seems that syndication is more of a specific practice which makes use of syndication formats like RSS and Atom. To be honest I haven't heard the term syndication in that context before. Wikipedia, e.g., refers to these formats as "web feeds", too. I'm not aware of any danger of confusion with other web technology if I name it "gb.web.feed" instead. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Tue Apr 11 15:45:47 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 11 Apr 2017 15:45:47 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <20170411132804.GE632@...3600...> References: <20170402160726.GA547@...3600...> <20170411105310.GD632@...3600...> <20170411132804.GE632@...3600...> Message-ID: <8a276176-da08-a9be-de2e-346ff4626ee3@...1...> Le 11/04/2017 ? 15:28, Tobias Boege a ?crit : >> >> Mmm... 'gb.web.syndication' so ? >> > > Reading a little, it seems that syndication is more of a specific practice > which makes use of syndication formats like RSS and Atom. To be honest I > haven't heard the term syndication in that context before. Wikipedia, e.g., > refers to these formats as "web feeds", too. I'm not aware of any danger > of confusion with other web technology if I name it "gb.web.feed" instead. > > Regards, > Tobi > Let's go for "gb.web.feed" then. -- Beno?t Minisini From bugtracker at ...3416... Thu Apr 13 16:56:07 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 13 Apr 2017 14:56:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1095: To allow you to customize the date format of the change.log file Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1095&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- To allow you to customize the date format of the change.log file Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- To allow you to customize the date format of the change.log file * Thu Dec 10 2015 <-------- default * Thursday, 04 July 2015 <--------- custom user * 04 July 2015 <--------- custom user * etc Example: current log date = Format (dDate, "mmmm yyyy") System information ------------------ Gambas=3.9.2 OperatingSystem=Linux Kernel=3.19.0-32-generic Architecture=x86 Distribution=Linux Mint 17.3 Rosa Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1950M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 From karl.reinl at ...9... Fri Apr 14 22:54:40 2017 From: karl.reinl at ...9... (Karl Reinl) Date: Fri, 14 Apr 2017 22:54:40 +0200 Subject: [Gambas-user] project arguments Message-ID: <1492203280.4295.16.camel@...3609...> Salut Beno?t, I ran in troubles with the project arguments. I've tried to enter and edit this string (without the quotes): "/home/myuser/gambas/3/Testing+Bugs/Randy/Data/JobStatus.xml SortBy=invc_hd.CurrentStatus,customer.cus_acctname FilterString=Chev" The editor (may be a modern kind of 'edlin' while mouse can be used) can't scroll to the end of the string. -- Amicalement Charlie [System] Gambas=3.9.90 r8120 OperatingSystem=Linux Kernel=3.2.0-101-generic Architecture=x86 Distribution=Ubuntu 14.04.5 LTS Desktop=UNITY Theme=Plastique Language=de_DE.UTF-8 Memory=3025M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-n2St3UuT35 DEFAULTS_PATH=/usr/share/gconf/gnome-fallback.default.path DESKTOP_SESSION=gnome-fallback DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=gnome-fallback GDM_LANG=de_DE GIO_LAUNCHED_DESKTOP_FILE=/.local/share/applications/Gambas III.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=5626 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL=/run/user/1000/keyring-5nPrFr GNOME_KEYRING_PID=3443 GPG_AGENT_INFO=/run/user/1000/keyring-5nPrFr/gpg:0:1 GTK_MODULES=canberra-gtk-module:overlay-scrollbar:unity-gtk-module HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=de_DE.UTF-8 LANGUAGE=de_DE:en LC_MESSAGES=de_DE.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/gnome-fallback.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/local/games PWD= QT_IM_MODULE=ibus QT_NO_GLIB=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SELINUX_INIT=YES SESSION=gnome-fallback SESSIONTYPE=gnome-session SESSION_MANAGER=local/:@/tmp/.ICE-unix/3863,unix/:/tmp/.ICE-unix/3863 SHELL=/bin/bash SHLVL=0 SPEECHD_PORT=7560 SSH_AUTH_SOCK=/run/user/1000/keyring-5nPrFr/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime UBUNTU_MENUPROXY=0 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/3445 USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/var/run/gdm/auth-for--szLv9u/database XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome-fallback:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=Unity XDG_DATA_DIRS=/usr/share/gnome-fallback:/usr/share/gnome:/usr/local/share/:/usr/share/ XDG_MENU_PREFIX=gnome-flashback- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_ID=c2 XDG_VTNR=7 XMODIFIERS=@...3498...=ibus From gambas at ...1... Fri Apr 14 23:24:41 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 14 Apr 2017 23:24:41 +0200 Subject: [Gambas-user] project arguments In-Reply-To: <1492203280.4295.16.camel@...3609...> References: <1492203280.4295.16.camel@...3609...> Message-ID: <000dc25d-5d62-bf88-08bc-79cffccd54b8@...1...> Le 14/04/2017 ? 22:54, Karl Reinl a ?crit : > Salut Beno?t, > > I ran in troubles with the project arguments. I've tried to enter and > edit this string (without the quotes): > "/home/myuser/gambas/3/Testing+Bugs/Randy/Data/JobStatus.xml > SortBy=invc_hd.CurrentStatus,customer.cus_acctname FilterString=Chev" > The editor (may be a modern kind of 'edlin' while mouse can be used) > can't scroll to the end of the string. > Did you notice that each argument must be entered in a separately? -- Beno?t Minisini From karl.reinl at ...9... Sat Apr 15 19:22:25 2017 From: karl.reinl at ...9... (Karl Reinl) Date: Sat, 15 Apr 2017 19:22:25 +0200 Subject: [Gambas-user] project arguments In-Reply-To: <000dc25d-5d62-bf88-08bc-79cffccd54b8@...1...> References: <1492203280.4295.16.camel@...3609...> <000dc25d-5d62-bf88-08bc-79cffccd54b8@...1...> Message-ID: <1492276945.4227.4.camel@...3609...> Am Freitag, den 14.04.2017, 23:24 +0200 schrieb Beno?t Minisini: > Le 14/04/2017 ? 22:54, Karl Reinl a ?crit : > > Salut Beno?t, > > > > I ran in troubles with the project arguments. I've tried to enter and > > edit this string (without the quotes): > > "/home/myuser/gambas/3/Testing+Bugs/Randy/Data/JobStatus.xml > > SortBy=invc_hd.CurrentStatus,customer.cus_acctname FilterString=Chev" > > The editor (may be a modern kind of 'edlin' while mouse can be used) > > can't scroll to the end of the string. > > > > Did you notice that each argument must be entered in a separately? > thanks, will try to keep that in mind -- Amicalement Charlie From gambas at ...1... Sun Apr 16 22:05:07 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 16 Apr 2017 22:05:07 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <20170402160726.GA547@...3600...> References: <20170402160726.GA547@...3600...> Message-ID: <54b016c4-1b2f-b3f0-db3f-1e02b2b5c334@...1...> Le 02/04/2017 ? 18:07, Tobias Boege a ?crit : > > * The date conversion routines ignore timezones completely, because > I have no clue about working with timezones in Gambas. > Hi, Tobias. I have added in revision #8122 two functions to the gb.util component: Date.ToRFC822(), to convert a Gambas date/time value to its RFC822 string representation, with the timezone. Date.FromRFC822(), to do the contrary. Tell me if you can use them, and if you need me to add the same functions for RFC3339 date format used by Atom. Regards, -- Beno?t Minisini From pinozollo at ...626... Tue Apr 18 00:23:18 2017 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 17 Apr 2017 18:23:18 -0400 Subject: [Gambas-user] TexrLabel Message-ID: I really want that the Text of my TextLabel be "< SK" (without ") ...but no way :-( the < kills the text.... ...not shows in the form editor and neither at run time. ------------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=3.13.0-37-generic Architecture=x86 Distribution=Linux Mint 17.3 Rosa Desktop=MATE Theme=Gtk Language=es_ES.UTF-8 Memory=3871M ------------------------ Salud Pino From taboege at ...626... Tue Apr 18 00:30:29 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 18 Apr 2017 00:30:29 +0200 Subject: [Gambas-user] TexrLabel In-Reply-To: References: Message-ID: <20170417223028.GA19864@...3600...> On Mon, 17 Apr 2017, Pino Zollo wrote: > I really want that the Text of my TextLabel be "< SK" (without ") > > > ...but no way :-( the < kills the text.... > ...not shows in the form editor and neither at run time. > Does the documentation [1] answer your question? This class implements a control displaying simple HTML text, as known as rich text. Use HTML entities such as < and > to display characters like '<' and '>'. Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.qt4/textlabel -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From cheikhdiabang at ...67... Tue Apr 18 11:00:29 2017 From: cheikhdiabang at ...67... (cheikh diabang) Date: Tue, 18 Apr 2017 09:00:29 +0000 Subject: [Gambas-user] Polynomiale Least Square Message-ID: Hello. I would like to write gambas code which determines the polynomial of a set of x, y coordinates. Is there anyone who has used it to help me please. From taboege at ...626... Tue Apr 18 11:55:51 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 18 Apr 2017 11:55:51 +0200 Subject: [Gambas-user] Polynomiale Least Square In-Reply-To: References: Message-ID: <20170418095551.GA552@...3600...> On Tue, 18 Apr 2017, cheikh diabang wrote: > Hello. I would like to write gambas code which determines the polynomial of a set of x, y coordinates. Is there anyone who has used it to help me please. If your polynomial has real or complex coefficients you can use gb.gsl's [1] Polynomial class. But while the documentation says arithmetic operators are overloaded in gb.gsl, this isn't entirely true for polynomials. In particular multiplication of polynomials is not supported. You have to implement that yourself using the array accessors. Addition and multiplication of polynomials is all you need for Lagrange polynomials [2] which solve your interpolation problem. I have done it before, it's straightforward. Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.gsl [2] https://en.wikipedia.org/wiki/Lagrange_polynomial -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bugtracker at ...3416... Tue Apr 18 12:07:17 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 18 Apr 2017 10:07:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1096: MDI toolbuttons with long text Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1096&from=L21haW4- Bruce BRUEN reported a new bug. Summary ------- MDI toolbuttons with long text Type : Bug Priority : High Gambas version : 3.9.90 (TRUNK) Product : QT4 component Description ----------- I really don't understand what's going on here. Basically it's just a MDI toolbar on a form, inside that is a toolbutton with no picture just a text. If the button does not have an action then it displays properly, but as soon as I set an action for it then its' display width is totally broken? At the moment (hopefully) the source has no action set. Just run it and see the full width button, then add an action to the button and run again. System information ------------------ [System] Gambas=3.9.90 r8118 OperatingSystem=Linux Kernel=4.1.15-pclos1 Architecture=x86 Distribution=PCLinuxOS Desktop=LXDE Theme=Gtk Language=en_AU.UTF-8 Memory=1005M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.3.0.0 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.603.0 GTK+2=libgtk-x11-2.0.so.0.2400.26 GTK+3=libgtk-3.so.0.1400.14 OpenGL=libGL.so.1.2.0 OpenGL=libGL.so.173.14.39 OpenGL=libGL.so.96.43.23 Poppler=libpoppler.so.13.0.0 Poppler=libpoppler.so.19.0.0 Poppler=libpoppler.so.46.0.0 Poppler=libpoppler.so.54.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.4.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] BROWSER=/usr/bin/www-browser CANBERRA_DRIVER=pulse DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-mcNH9lhiG6,guid=d68a2963a9d8c8c7c1db56dd58f5c871 DESKTOP_SESSION=LXDE DISPLAY=:0 GB_GUI=gb.qt4 GCONF_TMPDIR=/tmp GDMSESSION=04LXDE GDM_XSERVER_LOCATION=local GIT_PAGER=less -FRS GPG_AGENT_INFO=/tmp/gpg-SDSJev/S.gpg-agent:5604:1 GTK_MODULES=canberra-gtk-module G_FILENAME_ENCODING=@...3501... HISTCONTROL=ignoredups HISTSIZE=1000 HOME= HOSTNAME= INPUTRC=/etc/inputrc LANG=en_AU.UTF-8 LANGUAGE=en_AU:en_GB:en LC_ADDRESS=en_AU.UTF-8 LC_COLLATE=en_AU.UTF-8 LC_CTYPE=en_AU.UTF-8 LC_IDENTIFICATION=en_AU.UTF-8 LC_MEASUREMENT=en_AU.UTF-8 LC_MESSAGES=en_AU.UTF-8 LC_MONETARY=en_AU.UTF-8 LC_NAME=en_AU.UTF-8 LC_NUMERIC=en_AU.UTF-8 LC_PAPER=en_AU.UTF-8 LC_SOURCED=1 LC_TELEPHONE=en_AU.UTF-8 LC_TIME=en_AU.UTF-8 LESS=-MM LESSCHARSET=utf-8 LESSKEY=/etc/.less LESSOPEN=|/usr/bin/lesspipe.sh %s LOGNAME= LS_COLORS= MAIL=/var/spool/mail/ MDV_MENU_STYLE=discovery META_CLASS=desktop NLSPATH=/usr/share/locale/%l/%N PATH=/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt5/bin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/lib/qt5/bin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/kde4/libexec PKG_CONFIG_PATH=/usr/lib/pkgconfig PWD= PYTHONDONTWRITEBYTECODE=1 PYTHONSTARTUP=/etc/pythonrc.py QT4DOCDIR=/usr/share/doc/qt4 QT5DOCDIR=/usr/share/doc/qt5 QTDIR=/usr/lib/qt4 QTDIR5=/usr/lib/qt5 QTINC=/usr/lib/qt3/include QTLIB=/usr/lib QT_PLUGIN_PATH=/usr/lib/qt4/plugins/:/usr/lib/kde4/plugins/:/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins QT_XFT=0 SAL_USE_VCLPLUGIN=gtk SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=5583 SSH_ASKPASS=/usr/lib/ssh/ssh-askpass SSH_AUTH_SOCK=/tmp/ssh-TPWqWrS59N5q/agent.5582 TMP=/tmp TMPDIR=/tmp TZ=:/etc/localtime USER= WINDOWPATH=8 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/discovery:/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXDE XDG_DATA_DIRS=/usr/local/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/share:/usr/share/gdm/ XDG_MENU_PREFIX=lxde- XDG_SESSION_COOKIE=82ab6c261883e9ffe2a80b674b7b435e-1492502639.576693-1595030565 XMODIFIERS=@...3498...=none _=/usr/bin/gambas3 _LXSESSION_PID=5525 From bugtracker at ...3416... Tue Apr 18 12:08:20 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 18 Apr 2017 10:08:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1096: MDI toolbuttons with long text In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1096&from=L21haW4- Bruce BRUEN added an attachment: texttbs-0.0.2.tar.gz From pinozollo at ...626... Tue Apr 18 14:17:54 2017 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 18 Apr 2017 08:17:54 -0400 Subject: [Gambas-user] TextLabel In-Reply-To: References: Message-ID: El 18/04/17 a las 06:07, gambas-user-request at lists.sourceforge.net escribi?: > Does the documentation [1] answer your question? Yes, it does... Thank you Tobi From cheikhdiabang at ...67... Tue Apr 18 16:30:08 2017 From: cheikhdiabang at ...67... (cheikh diabang) Date: Tue, 18 Apr 2017 14:30:08 +0000 Subject: [Gambas-user] Polynomiale Least Square In-Reply-To: <20170418095551.GA552@...3600...> References: , <20170418095551.GA552@...3600...> Message-ID: Thank you Tobias. I've seen the explanation, I'm going. Next time ________________________________ De : Tobias Boege Envoy? : mardi 18 avril 2017 09:55 ? : mailing list for gambas users Objet : Re: [Gambas-user] Polynomiale Least Square On Tue, 18 Apr 2017, cheikh diabang wrote: > Hello. I would like to write gambas code which determines the polynomial of a set of x, y coordinates. Is there anyone who has used it to help me please. If your polynomial has real or complex coefficients you can use gb.gsl's [1] Polynomial class. But while the documentation says arithmetic operators are overloaded in gb.gsl, this isn't entirely true for polynomials. In particular multiplication of polynomials is not supported. You have to implement that yourself using the array accessors. Addition and multiplication of polynomials is all you need for Lagrange polynomials [2] which solve your interpolation problem. I have done it before, it's straightforward. Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.gsl Gambas Documentation - /comp/gb.gsl - gambaswiki.org gambaswiki.org gb.gsl. This component aims at providing most of the features of the Gnu Scientific Library. At the moment, it adds support for complex numbers, vectors, matrices and ... [2] https://en.wikipedia.org/wiki/Lagrange_polynomial Lagrange polynomial - Wikipedia en.wikipedia.org In numerical analysis, Lagrange polynomials are used for polynomial interpolation. For a given set of distinct points and numbers , the Lagrange polynomial is the ... -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - SourceForge lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... From taboege at ...626... Tue Apr 18 19:44:57 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 18 Apr 2017 19:44:57 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <54b016c4-1b2f-b3f0-db3f-1e02b2b5c334@...1...> References: <20170402160726.GA547@...3600...> <54b016c4-1b2f-b3f0-db3f-1e02b2b5c334@...1...> Message-ID: <20170418174457.GC552@...3600...> On Sun, 16 Apr 2017, Beno?t Minisini wrote: > Le 02/04/2017 ? 18:07, Tobias Boege a ?crit : > > > > * The date conversion routines ignore timezones completely, because > > I have no clue about working with timezones in Gambas. > > > > Hi, Tobias. > > I have added in revision #8122 two functions to the gb.util component: > > Date.ToRFC822(), to convert a Gambas date/time value to its RFC822 > string representation, with the timezone. > > Date.FromRFC822(), to do the contrary. > > Tell me if you can use them, and if you need me to add the same > functions for RFC3339 date format used by Atom. > Thanks for these. Reading the code (not testing it yet), I noticed four things: * The weekday and second parts in the format are optional in the RFC but mandatory in your parser. * The year is a 2-digit number in the RFC. The RSS spec says it prefers 4 digits. My current parser in gb.web.feed supports both, but treats 2-digit years XY as 19XY (which I think is the most sensible interpretation with respect to the RFC but sadly excludes publication dates for news items near Christ's birth). * There is no consistency check in the parser if, in case a weekday is given, it matches the weekday of the date, like Fri, 18 Apr 2017 12:00:00 GMT would be invalid by the RFC ("5.2 SEMANTICS"), because the 18 Apr 2017 is a Tuesday. * At one point you use Format$(..., "hh:nn:ss") which I think may be dangerous, because Format$() (as per docs) replaces ":" by the locale- specific time separator. I don't know if there are locales where this is different from ":", but the RFC requires it to be ":" exactly. My parser does these four things. If you want to add them, the gb.web.feed code is sufficiently commented in the relevant places. As for Atom, I don't have a definite plan for when I'll add these classes (haven't even read the specs yet). I don't need the functions right now, at least. About the incorporation of timezones in gb.web.feed (the last thing before I mark the component as "Unfinished but stable"), my plan is to replace the Date variables in the Rss* classes by an RssDate compound, consisting of a normalised Date and a Timezone string (or constant), with an "apply timezone" method probably. If you have a better idea, please let me know. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Tue Apr 18 19:52:46 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 18 Apr 2017 19:52:46 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <20170418174457.GC552@...3600...> References: <20170402160726.GA547@...3600...> <54b016c4-1b2f-b3f0-db3f-1e02b2b5c334@...1...> <20170418174457.GC552@...3600...> Message-ID: <4867444b-6bcc-d600-097d-d87f22a0e9ce@...1...> Le 18/04/2017 ? 19:44, Tobias Boege a ?crit : > On Sun, 16 Apr 2017, Beno?t Minisini wrote: >> Le 02/04/2017 ? 18:07, Tobias Boege a ?crit : >>> >>> * The date conversion routines ignore timezones completely, because >>> I have no clue about working with timezones in Gambas. >>> >> >> Hi, Tobias. >> >> I have added in revision #8122 two functions to the gb.util component: >> >> Date.ToRFC822(), to convert a Gambas date/time value to its RFC822 >> string representation, with the timezone. >> >> Date.FromRFC822(), to do the contrary. >> >> Tell me if you can use them, and if you need me to add the same >> functions for RFC3339 date format used by Atom. >> > > Thanks for these. Reading the code (not testing it yet), I noticed four > things: > > * The weekday and second parts in the format are optional in the RFC > but mandatory in your parser. > > * The year is a 2-digit number in the RFC. The RSS spec says it prefers > 4 digits. My current parser in gb.web.feed supports both, but treats > 2-digit years XY as 19XY (which I think is the most sensible > interpretation with respect to the RFC but sadly excludes publication > dates for news items near Christ's birth). > > * There is no consistency check in the parser if, in case a weekday is > given, it matches the weekday of the date, like > > Fri, 18 Apr 2017 12:00:00 GMT > > would be invalid by the RFC ("5.2 SEMANTICS"), because the 18 Apr 2017 > is a Tuesday. > > * At one point you use Format$(..., "hh:nn:ss") which I think may be > dangerous, because Format$() (as per docs) replaces ":" by the locale- > specific time separator. I don't know if there are locales where this > is different from ":", but the RFC requires it to be ":" exactly. > > My parser does these four things. If you want to add them, the gb.web.feed > code is sufficiently commented in the relevant places. OK, I will look at it. > > As for Atom, I don't have a definite plan for when I'll add these classes > (haven't even read the specs yet). I don't need the functions right now, > at least. > > About the incorporation of timezones in gb.web.feed (the last thing before > I mark the component as "Unfinished but stable"), my plan is to replace the > Date variables in the Rss* classes by an RssDate compound, consisting of a > normalised Date and a Timezone string (or constant), with an "apply timezone" > method probably. If you have a better idea, please let me know. What for? Timezone is only needed when dealing with Date as strings. Internally, all Date values should be stored UTC. In computing, time is absolute. In other words, every date value has as many string representations as the number of possible timezones. Regards, -- Beno?t Minisini From taboege at ...626... Tue Apr 18 20:04:51 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 18 Apr 2017 20:04:51 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <4867444b-6bcc-d600-097d-d87f22a0e9ce@...1...> References: <20170402160726.GA547@...3600...> <54b016c4-1b2f-b3f0-db3f-1e02b2b5c334@...1...> <20170418174457.GC552@...3600...> <4867444b-6bcc-d600-097d-d87f22a0e9ce@...1...> Message-ID: <20170418180451.GD552@...3600...> On Tue, 18 Apr 2017, Beno?t Minisini wrote: > > About the incorporation of timezones in gb.web.feed (the last thing before > > I mark the component as "Unfinished but stable"), my plan is to replace the > > Date variables in the Rss* classes by an RssDate compound, consisting of a > > normalised Date and a Timezone string (or constant), with an "apply timezone" > > method probably. If you have a better idea, please let me know. > > What for? Timezone is only needed when dealing with Date as strings. > Internally, all Date values should be stored UTC. In computing, time is > absolute. > > In other words, every date value has as many string representations as > the number of possible timezones. > I agree, but in the conversion Gambas object -> XML string, I want to give the user a way to specify the timezone that is printed in the string representation, as you do in ToRFC822(). Since this timezone may be different for every RssItem (or even different between PubDate and LastBuildDate for the same RssItem), I have to store it somewhere along the normalised (UTC) Date and not have it passed as an argument to Rss.ToString(). When reading XML string -> Gambas object this timezone property would be rather useless, yes. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Tue Apr 18 21:02:07 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 18 Apr 2017 21:02:07 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <20170418174457.GC552@...3600...> References: <20170402160726.GA547@...3600...> <54b016c4-1b2f-b3f0-db3f-1e02b2b5c334@...1...> <20170418174457.GC552@...3600...> Message-ID: <83ca595c-b9d3-40b3-aa86-28b18197b3b1@...1...> I have took a look at your code. Just a general remark: the name of the exported function arguments should help the user to guess what it means. So, for example: Static Public Function FormatDate(Dat As Date) As String should be: Static Public Function FormatDate({Date} As Date) As String Better use full words instead of abbreviations! "{Date}" instead of "Dat", "{String}" (or "Value") instead of "Str", and so on. Regards, -- Beno?t Minisini From gambas at ...1... Tue Apr 18 21:37:14 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 18 Apr 2017 21:37:14 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <4867444b-6bcc-d600-097d-d87f22a0e9ce@...1...> References: <20170402160726.GA547@...3600...> <54b016c4-1b2f-b3f0-db3f-1e02b2b5c334@...1...> <20170418174457.GC552@...3600...> <4867444b-6bcc-d600-097d-d87f22a0e9ce@...1...> Message-ID: <0f56f650-8374-d868-1624-be4f239f3ad9@...1...> Le 18/04/2017 ? 19:52, Beno?t Minisini a ?crit : > Le 18/04/2017 ? 19:44, Tobias Boege a ?crit : >> On Sun, 16 Apr 2017, Beno?t Minisini wrote: >>> Le 02/04/2017 ? 18:07, Tobias Boege a ?crit : >>>> >>>> * The date conversion routines ignore timezones completely, because >>>> I have no clue about working with timezones in Gambas. >>>> >>> >>> Hi, Tobias. >>> >>> I have added in revision #8122 two functions to the gb.util component: >>> >>> Date.ToRFC822(), to convert a Gambas date/time value to its RFC822 >>> string representation, with the timezone. >>> >>> Date.FromRFC822(), to do the contrary. >>> >>> Tell me if you can use them, and if you need me to add the same >>> functions for RFC3339 date format used by Atom. >>> >> >> Thanks for these. Reading the code (not testing it yet), I noticed four >> things: >> >> * The weekday and second parts in the format are optional in the RFC >> but mandatory in your parser. >> >> * The year is a 2-digit number in the RFC. The RSS spec says it prefers >> 4 digits. My current parser in gb.web.feed supports both, but treats >> 2-digit years XY as 19XY (which I think is the most sensible >> interpretation with respect to the RFC but sadly excludes publication >> dates for news items near Christ's birth). >> >> * There is no consistency check in the parser if, in case a weekday is >> given, it matches the weekday of the date, like >> >> Fri, 18 Apr 2017 12:00:00 GMT >> >> would be invalid by the RFC ("5.2 SEMANTICS"), because the 18 Apr >> 2017 >> is a Tuesday. >> >> * At one point you use Format$(..., "hh:nn:ss") which I think may be >> dangerous, because Format$() (as per docs) replaces ":" by the >> locale- >> specific time separator. I don't know if there are locales where this >> is different from ":", but the RFC requires it to be ":" exactly. >> >> My parser does these four things. If you want to add them, the >> gb.web.feed >> code is sufficiently commented in the relevant places. > > OK, I will look at it. > I have updated the gb.util components with your fixes. Now I think you can use it directly in gb.web.feed. Regards, -- Beno?t Minisini From t.lee.davidson at ...626... Wed Apr 19 01:58:06 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 18 Apr 2017 19:58:06 -0400 Subject: [Gambas-user] How to dynamically add & populate variable number of tabs at runtime? Message-ID: <442b1dbf-87a0-7c86-5d34-038543f9fd56@...626...> Hello Folks, I have been trying to figure out how to, at runtime, create a variable number of new tabs in a TabStrip, populate those tabs with Controls, and then be able to reference those controls, all dynamically. There seems to be little information available as to how to 1) dynamically create controls, and 2) reference dynamically named controls after creation. Even with just a simple experiment, I cannot get a GridView to display in a new tab. The Form has been given, at design-time, a TabStrip and two buttons. The tabs are 'closable'. One button, 'btnAddTab', creates a new tab and a GridView with the new, current tab as parent. (At least that's what I think it is doing.) The other button, 'btnTabInfo', displays info about the currently selected tab. And, I am assuming the GridViews need to have unique names. [code] ' Gambas class file Public Sub btnAddTab_Click() Dim hGridView As GridView TabStrip1.Count += 1 TabStrip1.Text = "Tab " & TabStrip1.Index hGridView = New GridView(TabStrip1) As "GridView" & TabStrip1.Index hGridView.Show TabStrip1.Refresh End Public Sub btnTabInfo_Click() Print TabStrip1.Children[0].Name Print TabStrip1.Children[0].Enabled Print TabStrip1.Children[0].Visible End Public Sub TabStrip1_Close(Index As Integer) TabStrip1.Index = Index ' TabStrip1.Current.Children[0].Delete() 'Comment out to test if tab is empty TabStrip1.Current.Delete() End [/code] Tab creation works, but the GridView control does not display. Any attempt to close a tab without first deleting its children causes an exception, showing that the tab is indeed being populated with a child control. Clicking on btnTabInfo for "Tab 1" gives: GridView1 True True So, the program is doing at least some of what I've told it to. I'm obviously not telling it the right thing. How does one: 1. Create new controls and make them visible? 2. Reference new controls after creation [ie. (de-)reference a string as a the name of a control]? -- Lee From matti.eber at ...3240... Wed Apr 19 07:45:25 2017 From: matti.eber at ...3240... (Matti) Date: Wed, 19 Apr 2017 07:45:25 +0200 Subject: [Gambas-user] How to dynamically add & populate variable number of tabs at runtime? In-Reply-To: <442b1dbf-87a0-7c86-5d34-038543f9fd56@...626...> References: <442b1dbf-87a0-7c86-5d34-038543f9fd56@...626...> Message-ID: <4b0cdffd-d205-94fb-56df-e03c5fe0954f@...3240...> Hi Lee, first of all, you have to give the GridView a X, Y, width and height. Otherwise it's there but doesn't show. To reference the GridViews, create an array of them and address them as GridView[0], GridView[1] and so on. The [i] is the number of the TabStrip index. Here is an example of what I did recently (tsTasks is the TabStrip): Private aTaskText As New Object[13] Private aTaskCheck As New Object[13] ... For i = 1 To 12 tsTasks[i - 1].Text = aMonths[i] tsTasks.Index = i - 1 aTaskText[i] = New TextBox(tsTasks) As "Tasks" With aTaskText[i] .X = 77 .Y = 21 .Width = 728 .Height = 35 End With aTaskCheck[i] = New CheckBox(tsTasks) As "CheckDone" With aTaskCheck[i] .X = 840 .Y = 28 .Width = 126 .Height = 21 .Text = ("done") .Tag = i End With Am 19.04.2017 um 01:58 schrieb T Lee Davidson: > Hello Folks, > > I have been trying to figure out how to, at runtime, create a variable number of new tabs in a TabStrip, populate those tabs > with Controls, and then be able to reference those controls, all dynamically. > > There seems to be little information available as to how to 1) dynamically create controls, and 2) reference dynamically named > controls after creation. > > Even with just a simple experiment, I cannot get a GridView to display in a new tab. The Form has been given, at design-time, a > TabStrip and two buttons. The tabs are 'closable'. One button, 'btnAddTab', creates a new tab and a GridView with the new, > current tab as parent. (At least that's what I think it is doing.) The other button, 'btnTabInfo', displays info about the > currently selected tab. > > And, I am assuming the GridViews need to have unique names. > > [code] > ' Gambas class file > > > Public Sub btnAddTab_Click() > Dim hGridView As GridView > > TabStrip1.Count += 1 > TabStrip1.Text = "Tab " & TabStrip1.Index > hGridView = New GridView(TabStrip1) As "GridView" & TabStrip1.Index > hGridView.Show > TabStrip1.Refresh > > End > > Public Sub btnTabInfo_Click() > > Print TabStrip1.Children[0].Name > Print TabStrip1.Children[0].Enabled > Print TabStrip1.Children[0].Visible > > End > > Public Sub TabStrip1_Close(Index As Integer) > > TabStrip1.Index = Index > ' TabStrip1.Current.Children[0].Delete() 'Comment out to test if tab is empty > TabStrip1.Current.Delete() > > End > [/code] > > > Tab creation works, but the GridView control does not display. Any attempt to close a tab without first deleting its children > causes an exception, showing that the tab is indeed being populated with a child control. Clicking on btnTabInfo for "Tab 1" gives: > GridView1 > True > True > > So, the program is doing at least some of what I've told it to. I'm obviously not telling it the right thing. > > How does one: > 1. Create new controls and make them visible? > 2. Reference new controls after creation [ie. (de-)reference a string as a the name of a control]? > > From t.lee.davidson at ...626... Wed Apr 19 17:55:54 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Wed, 19 Apr 2017 11:55:54 -0400 Subject: [Gambas-user] How to dynamically add & populate variable number of tabs at runtime? In-Reply-To: <4b0cdffd-d205-94fb-56df-e03c5fe0954f@...3240...> References: <442b1dbf-87a0-7c86-5d34-038543f9fd56@...626...> <4b0cdffd-d205-94fb-56df-e03c5fe0954f@...3240...> Message-ID: Thank you, Matti. That got me started. I now have a working test model that will create a variable (unknown at design-time) number of tabs and populate each of them with a _visible_ GridView. It works great. The form now has a ValueBox to input the number of tabs to create, an AddTabs button, a PopulateGrids button, and of course a TabStrip. Here's the code for anyone else looking for a basic demo. (Note the use of the Object.Add method.) [code] ' Gambas class file Private aGridViews As New Object[] Public Sub Form_Open() Dim hGridView As GridView ValueBox1.Value = 3 'convenience TabStrip1[0].Text = "Tab 0" TabStrip1.Index = 0 hGridView = New GridView(TabStrip1) As "GridViews" aGridViews.Add(hGridView, 0) With aGridViews[0] .X = 0 .Y = 0 .Width = .Parent.Width .Height = .Parent.Height .Columns.Count = 2 .Rows.Count = 2 .Columns.Width = .Width / 2 End With End Public Sub TabStrip1_Close(Index As Integer) TabStrip1.Index = Index TabStrip1.Current.Children[0].Delete() 'Comment out to test if tab is empty TabStrip1.Current.Delete() End Public Sub btnAddTabs_Click() Dim i As Integer Dim hGridView As GridView If ValueBox1.Value = 0 Then Return TabStrip1.Count += ValueBox1.Value For i = 1 To ValueBox1.Value TabStrip1[i].Text = "Tab " & i TabStrip1.Index = i hGridView = New GridView(TabStrip1) As "GridViews" aGridViews.Add(hGridView, i) With aGridViews[i] .X = 0 .Y = 0 .Width = .Parent.Width .Height = .Parent.Height .Columns.Count = 2 .Rows.Count = 2 .Columns.Width = .Width / 2 End With Next End Public Sub btnPopulateGrids_Click() Dim i As Integer For i = 0 To aGridViews.Max aGridViews[i][0, 0].Text = "Tab " & i & ": [0,0]" aGridViews[i][0, 1].Text = "[0,1]" aGridViews[i][1, 0].Text = "Tab " & i & ": [1,0]" aGridViews[i][1, 1].Text = "[1,1]" Next End [/code] On 04/19/2017 01:45 AM, Matti wrote: > Hi Lee, > > first of all, you have to give the GridView a X, Y, width and height. Otherwise it's there but doesn't show. > > To reference the GridViews, create an array of them and address them as GridView[0], GridView[1] and so on. The [i] is the number of the TabStrip index. > > Here is an example of what I did recently (tsTasks is the TabStrip): > > Private aTaskText As New Object[13] > Private aTaskCheck As New Object[13] > ... > For i = 1 To 12 > tsTasks[i - 1].Text = aMonths[i] > tsTasks.Index = i - 1 > > aTaskText[i] = New TextBox(tsTasks) As "Tasks" > With aTaskText[i] > .X = 77 > .Y = 21 > .Width = 728 > .Height = 35 > End With > > aTaskCheck[i] = New CheckBox(tsTasks) As "CheckDone" > With aTaskCheck[i] > .X = 840 > .Y = 28 > .Width = 126 > .Height = 21 > .Text = ("done") > .Tag = i > End With > -- Lee From bill-lancaster at ...2231... Fri Apr 21 14:41:44 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Fri, 21 Apr 2017 05:41:44 -0700 (MST) Subject: [Gambas-user] Look up menu items Message-ID: <1492778504133-58779.post@...3046...> I'd like to read through all the menu items from code in a project. The menu items were created using the Menu Editor Can anyone point me in the right direction? Gambas 3.9.2 -- View this message in context: http://gambas.8142.n7.nabble.com/Look-up-menu-items-tp58779.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Fri Apr 21 14:53:52 2017 From: taboege at ...626... (Tobias Boege) Date: Fri, 21 Apr 2017 14:53:52 +0200 Subject: [Gambas-user] Look up menu items In-Reply-To: <1492778504133-58779.post@...3046...> References: <1492778504133-58779.post@...3046...> Message-ID: <20170421125352.GB549@...3600...> On Fri, 21 Apr 2017, bill-lancaster wrote: > I'd like to read through all the menu items from code in a project. The menu > items were created using the Menu Editor > Can anyone point me in the right direction? > Independently of the menu editor, you can get all the top-level menus in a form MyForm by enumerating MyForm.Menus. Project attached. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: enumerate-menus-0.0.1.tar.gz Type: application/octet-stream Size: 11743 bytes Desc: not available URL: From bugtracker at ...3416... Fri Apr 21 17:40:37 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 21 Apr 2017 15:40:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1091&from=L21haW4- Comment #4 by Beno?t MINISINI: Sorry, I don't understand what you are talking about. Can you try with a better english please? Thanks. From bugtracker at ...3416... Fri Apr 21 17:49:48 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 21 Apr 2017 15:49:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1094: Wait command freezes when clock is adjusted back In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1094&from=L21haW4- Comment #1 by Beno?t MINISINI: The execution does not really hangs. It's just that when executing WAIT 1, the interpreter waits until the clock reaches the current time plus one second. If you set the clock back in time 5 minutes while running the WAIT instruction, you add 5 minutes to the waiting delay. I can fix that behaviour by using a monotonic clock (i.e. a system clock than only increases). I will try to check if it is possible. Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Fri Apr 21 17:51:22 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 21 Apr 2017 15:51:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1092: Broken likns on FAQ page In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1092&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Fri Apr 21 20:20:15 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 21 Apr 2017 18:20:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1092: Broken likns on FAQ page In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1092&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Fixed. From bill-lancaster at ...2231... Sat Apr 22 11:15:55 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 22 Apr 2017 02:15:55 -0700 (MST) Subject: [Gambas-user] Look up menu items In-Reply-To: <20170421125352.GB549@...3600...> References: <1492778504133-58779.post@...3046...> <20170421125352.GB549@...3600...> Message-ID: <1492852555544-58785.post@...3046...> Thanks Tobi -- View this message in context: http://gambas.8142.n7.nabble.com/Look-up-menu-items-tp58779p58785.html Sent from the gambas-user mailing list archive at Nabble.com. From bugtracker at ...3416... Sat Apr 22 18:59:42 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 22 Apr 2017 16:59:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1091&from=L21haW4- Comment #5 by hakan UNVER: Hii Benoit I mean; when lost mysql server connection no have any timeout, And dont work any timers or process programm is like frezee not respond.Because endless loop I think need update this option.. optional or break option or try connection time out limit.. From leondavisjr at ...626... Sun Apr 23 21:59:25 2017 From: leondavisjr at ...626... (Leon Davis) Date: Sun, 23 Apr 2017 14:59:25 -0500 Subject: [Gambas-user] Graphics programming help Message-ID: I've programmed in Microsoft VB since v3.0 and am now using gambas v3.9.2. When I initially created the project I selected "Graphical application".I am creating a image display app and have two quick questions please: 1. How do I have my program register itself with the OS? 2. I want to create transitions between images i.e., fades, wipes, blinds in, spiral out. If someone can point me in the right direction it will be greatly appreciated. From t.lee.davidson at ...626... Mon Apr 24 02:20:58 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sun, 23 Apr 2017 20:20:58 -0400 Subject: [Gambas-user] Graphics programming help In-Reply-To: References: Message-ID: <7976a0aa-e0a0-4150-ae76-5e4f4ebaa659@...626...> On 04/23/2017 03:59 PM, Leon Davis wrote: > > 1. How do I have my program register itself with the OS? That depends on the Desktop Environment you use. Here is a link for KDE: http://gambaswiki.org/wiki/howto/autorun > 2. I want to create transitions between images i.e., fades, wipes, blinds > in, spiral out. I don't do much at all with graphics. But perhaps this might get you started: http://gambaswiki.org/wiki/comp/gb.image.effect/image -- Lee From t.lee.davidson at ...626... Mon Apr 24 02:29:07 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sun, 23 Apr 2017 20:29:07 -0400 Subject: [Gambas-user] Problem with lazy regexp Message-ID: <5f5c079e-2371-1cc9-e97c-035e0f94d507@...626...> According to http://gambaswiki.org/wiki/doc/pcre , using "*?" in a regular expression should lazily match 0 or more characters. However, it appears to act greedily. I am trying to do some very simple HTML tag stripping with 'Regex.Replace(sText, "<.*?>", "")', and it takes out way more than just the tags. Have I misunderstood the documentation? (Project attached.) -- Lee [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.4.57-18.3-default Architecture=x86_64 Distribution=SuSE NAME="openSUSE Leap" VERSION="42.2" ID=opensuse ID_LIKE="suse" VERSION_ID="42.2" PRETTY_NAME="openSUSE Leap 42.2" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:42.2" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" Desktop=KDE5 Theme=QtCurve Language=en_US.UTF-8 Memory=3951M [Libraries] DBus=libdbus-1.so.3.8.14 OpenGL=libGL.so.1.2.0 [Environment] (redacted) -------------- next part -------------- A non-text attachment was scrubbed... Name: lazyregextest-0.0.1.tar.gz Type: application/gzip Size: 12151 bytes Desc: not available URL: From taboege at ...626... Mon Apr 24 09:57:37 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 24 Apr 2017 09:57:37 +0200 Subject: [Gambas-user] Problem with lazy regexp In-Reply-To: <5f5c079e-2371-1cc9-e97c-035e0f94d507@...626...> References: <5f5c079e-2371-1cc9-e97c-035e0f94d507@...626...> Message-ID: <20170424075737.GA558@...3600...> On Sun, 23 Apr 2017, T Lee Davidson wrote: > According to http://gambaswiki.org/wiki/doc/pcre , using "*?" in a regular > expression should lazily match 0 or more characters. However, it appears to > act greedily. > > I am trying to do some very simple HTML tag stripping with > 'Regex.Replace(sText, "<.*?>", "")', and it takes out way more than just the > tags. > > Have I misunderstood the documentation? > I believe you are correct. I get the same greedy behaviour from "<.*?>". The Gambas wiki page seems to be copied from the libpcre documentation [1] and the point, under QUANTIFIERS: *? 0 or more, lazy hardly gives room for misinterpretation. I just tried the following line: RegExp.Replace("content", "<.*>", "", RegExp.Ungreedy) which correctly delivers "content", if you are interested in a workaround. If no one else does it, I can (try to remember to) try to have a look at gb.pcre this evening. Regards, Tobi [1] http://www.pcre.org/current/doc/html/pcre2syntax.html -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Mon Apr 24 10:25:45 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 24 Apr 2017 10:25:45 +0200 Subject: [Gambas-user] Problem with lazy regexp In-Reply-To: <20170424075737.GA558@...3600...> References: <5f5c079e-2371-1cc9-e97c-035e0f94d507@...626...> <20170424075737.GA558@...3600...> Message-ID: <20170424082545.GB558@...3600...> On Mon, 24 Apr 2017, Tobias Boege wrote: > On Sun, 23 Apr 2017, T Lee Davidson wrote: > > According to http://gambaswiki.org/wiki/doc/pcre , using "*?" in a regular > > expression should lazily match 0 or more characters. However, it appears to > > act greedily. > > > > I am trying to do some very simple HTML tag stripping with > > 'Regex.Replace(sText, "<.*?>", "")', and it takes out way more than just the > > tags. > > > > Have I misunderstood the documentation? > > > > I believe you are correct. I get the same greedy behaviour from "<.*?>". > The Gambas wiki page seems to be copied from the libpcre documentation [1] > and the point, under QUANTIFIERS: > > *? 0 or more, lazy > > hardly gives room for misinterpretation. I just tried the following line: > > RegExp.Replace("content", "<.*>", "", RegExp.Ungreedy) > > which correctly delivers "content", if you are interested in a workaround. > If no one else does it, I can (try to remember to) try to have a look at > gb.pcre this evening. > It's still before noon, but I saw that the RegExp.Replace() routine always automatically adds the RegExp.Ungreedy flag to the regular expression. With that in mind, I tried RegExp.Replace(sText, "<.*>", "") and it worked ungreedily. In fact, since the compilation options are always OR'd, my successful pattern above with RegExp.Ungreedy was just an accident and the setting of RegExp.Ungreedy was redundant. The PCRE documentation [1] mentions a fact that escapes the Gambas documentation [2]: PCRE2_UNGREEDY Invert greediness of quantifiers (the Gambas documentation reads like it makes everything ungreedy.) So, the greediness you get is explained, I'll add some bits to the documentation later. Basically, RegExp.Replace() is always ungreedy. You can still get greedy quantifiers by using ungreedy ones in your pattern... Regards, Tobi [1] http://www.pcre.org/current/doc/html/pcre2_compile.html [2] http://gambaswiki.org/wiki/comp/gb.pcre/regexp/ungreedy -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mike.crean at ...2897... Mon Apr 24 11:47:06 2017 From: mike.crean at ...2897... (Mike Crean) Date: Mon, 24 Apr 2017 09:47:06 +0000 (UTC) Subject: [Gambas-user] shell References: <1215072119.2956559.1493027226447.ref@...3424...> Message-ID: <1215072119.2956559.1493027226447@...3424...> If I run make from the terminal in a named directory make works as expected. Using Gambas 3.9.2 and run the command, shell "make" while in the named directory?I get an error make: *** No targets specified and no makefile found. Stop?The same error when I try to shell to a file containing #!/bin/sh and make.The file runs correctly when run from the named directory.?The named directory permissions are set for anyone.This is on a Rpi3 running RaspbianAnyone have a fix for this please. Regards Mike From t.lee.davidson at ...626... Mon Apr 24 19:03:25 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Mon, 24 Apr 2017 13:03:25 -0400 Subject: [Gambas-user] Problem with lazy regexp In-Reply-To: <20170424082545.GB558@...3600...> References: <5f5c079e-2371-1cc9-e97c-035e0f94d507@...626...> <20170424075737.GA558@...3600...> <20170424082545.GB558@...3600...> Message-ID: On 04/24/2017 04:25 AM, Tobias Boege wrote: > You can still get greedy quantifiers by using ungreedy ones in your > pattern... LOL. To get ungreedy behavior, use greedy quantifiers. That's logical. Thank you very much, Tobi, for digging that up and updating the documentation. Perhaps, though, more intuitive behavior would be achieved if the RegExp.Ungreedy flag was not set by default. Just a thought. Thanks again. -- Lee From charlie at ...2793... Tue Apr 25 10:52:10 2017 From: charlie at ...2793... (Charlie) Date: Tue, 25 Apr 2017 01:52:10 -0700 (MST) Subject: [Gambas-user] shell In-Reply-To: <1215072119.2956559.1493027226447@...3424...> References: <1215072119.2956559.1493027226447@...3424...> Message-ID: <1493110330380-58795.post@...3046...> Can you post the 'Shell' code you are using. ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/shell-tp58793p58795.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Tue Apr 25 16:57:00 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 25 Apr 2017 16:57:00 +0200 Subject: [Gambas-user] shell In-Reply-To: <1493110330380-58795.post@...3046...> References: <1215072119.2956559.1493027226447@...3424...> <1493110330380-58795.post@...3046...> Message-ID: ??? 2017-04-25 10:52 GMT+02:00 Charlie : > Can you post the 'Shell' code you are using. > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble.com/shell-tp58793p58795.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Tue Apr 25 17:00:05 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 25 Apr 2017 17:00:05 +0200 Subject: [Gambas-user] Graphics programming help In-Reply-To: <7976a0aa-e0a0-4150-ae76-5e4f4ebaa659@...626...> References: <7976a0aa-e0a0-4150-ae76-5e4f4ebaa659@...626...> Message-ID: 2017-04-24 2:20 GMT+02:00 T Lee Davidson : > On 04/23/2017 03:59 PM, Leon Davis wrote: >> >> 1. How do I have my program register itself with the OS? > > That depends on the Desktop Environment you use. Here is a link for KDE: > http://gambaswiki.org/wiki/howto/autorun I think you are talking about distributing your software ? ... Take a look at package tool > > >> 2. I want to create transitions between images i.e., fades, wipes, blinds >> in, spiral out. There is not dynamic tool for images transition.. maybe in the future ... if someone does it. > > I don't do much at all with graphics. But perhaps this might get you started: > http://gambaswiki.org/wiki/comp/gb.image.effect/image > > > -- > Lee > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From t.lee.davidson at ...626... Tue Apr 25 19:12:50 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 25 Apr 2017 13:12:50 -0400 Subject: [Gambas-user] HttpClient not exposing redirect response codes Message-ID: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> I have run into a couple of sites that are responding with 301 (Moved Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code yields "0" for both of those sites/codes (and HttpClient.Reason is empty). 200 & 404 codes are reported successfully. Have I missed something in the properties that is preventing proper disclosure of redirect response codes? Or is this a bug? (Project attached.) -- Lee [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.4.57-18.3-default Architecture=x86_64 Distribution=SuSE NAME="openSUSE Leap" VERSION="42.2" ID=opensuse ID_LIKE="suse" VERSION_ID="42.2" PRETTY_NAME="openSUSE Leap 42.2" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:42.2" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" Desktop=KDE5 Theme=QtCurve Language=en_US.UTF-8 Memory=3951M [Libraries] DBus=libdbus-1.so.3.8.14 OpenGL=libGL.so.1.2.0 -------------- next part -------------- A non-text attachment was scrubbed... Name: httpclienttest-0.0.1.tar.gz Type: application/gzip Size: 12716 bytes Desc: not available URL: From taboege at ...626... Tue Apr 25 19:26:41 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 25 Apr 2017 19:26:41 +0200 Subject: [Gambas-user] HttpClient not exposing redirect response codes In-Reply-To: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> References: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> Message-ID: <20170425172641.GB572@...3600...> On Tue, 25 Apr 2017, T Lee Davidson wrote: > I have run into a couple of sites that are responding with 301 (Moved > Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code > yields "0" for both of those sites/codes (and HttpClient.Reason is empty). > 200 & 404 codes are reported successfully. > > Have I missed something in the properties that is preventing proper disclosure of redirect response codes? > > Or is this a bug? > > (Project attached.) > I stumbled upon this too one time. Apparently my solution was to scan HttpClient.Headers for the presence of a "Location: " header. So what I'm saying is, I only have a workaround, no explanation. I think it's a bug. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Tue Apr 25 19:32:33 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 25 Apr 2017 13:32:33 -0400 Subject: [Gambas-user] HttpClient not exposing redirect response codes In-Reply-To: <20170425172641.GB572@...3600...> References: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> <20170425172641.GB572@...3600...> Message-ID: its a bug..and also not: due the redirection.. in low level must handle by oursleft.. i mean "moved" where? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-04-25 13:26 GMT-04:00 Tobias Boege : > On Tue, 25 Apr 2017, T Lee Davidson wrote: > > I have run into a couple of sites that are responding with 301 (Moved > > Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code > > yields "0" for both of those sites/codes (and HttpClient.Reason is > empty). > > 200 & 404 codes are reported successfully. > > > > Have I missed something in the properties that is preventing proper > disclosure of redirect response codes? > > > > Or is this a bug? > > > > (Project attached.) > > > > I stumbled upon this too one time. Apparently my solution was to scan > HttpClient.Headers for the presence of a "Location: " header. > > So what I'm saying is, I only have a workaround, no explanation. I think > it's a bug. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Tue Apr 25 19:34:54 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 25 Apr 2017 13:34:54 -0400 Subject: [Gambas-user] HttpClient not exposing redirect response codes In-Reply-To: References: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> <20170425172641.GB572@...3600...> Message-ID: i forgot to mention, you have received a X-Frame-Options: DENY , that the other reason of the problem.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-04-25 13:32 GMT-04:00 PICCORO McKAY Lenz : > its a bug..and also not: due the redirection.. in low level must handle > by oursleft.. i mean "moved" where? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-04-25 13:26 GMT-04:00 Tobias Boege : > >> On Tue, 25 Apr 2017, T Lee Davidson wrote: >> > I have run into a couple of sites that are responding with 301 (Moved >> > Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code >> > yields "0" for both of those sites/codes (and HttpClient.Reason is >> empty). >> > 200 & 404 codes are reported successfully. >> > >> > Have I missed something in the properties that is preventing proper >> disclosure of redirect response codes? >> > >> > Or is this a bug? >> > >> > (Project attached.) >> > >> >> I stumbled upon this too one time. Apparently my solution was to scan >> HttpClient.Headers for the presence of a "Location: " header. >> >> So what I'm saying is, I only have a workaround, no explanation. I think >> it's a bug. >> >> Regards, >> Tobi >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...1... Tue Apr 25 19:36:42 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 25 Apr 2017 19:36:42 +0200 Subject: [Gambas-user] HttpClient not exposing redirect response codes In-Reply-To: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> References: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> Message-ID: <82b7dc55-9eb9-c131-a9ad-e38f07ae759b@...1...> Le 25/04/2017 ? 19:12, T Lee Davidson a ?crit : > I have run into a couple of sites that are responding with 301 (Moved > Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code > yields "0" for both of those sites/codes (and HttpClient.Reason is > empty). 200 & 404 codes are reported successfully. > > Have I missed something in the properties that is preventing proper > disclosure of redirect response codes? > > Or is this a bug? > > (Project attached.) > HttpClient is "just" libcurl, so it may be a libcurl thing (that library has gazillons of options). I will check... -- Beno?t Minisini From t.lee.davidson at ...626... Tue Apr 25 22:29:08 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 25 Apr 2017 16:29:08 -0400 Subject: [Gambas-user] HttpClient not exposing redirect response codes In-Reply-To: <82b7dc55-9eb9-c131-a9ad-e38f07ae759b@...1...> References: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> <82b7dc55-9eb9-c131-a9ad-e38f07ae759b@...1...> Message-ID: <197416f7-7a4a-a0b4-14b2-02ecaaf359f0@...626...> On 04/25/2017 01:36 PM, Beno?t Minisini wrote: > Le 25/04/2017 ? 19:12, T Lee Davidson a ?crit : >> I have run into a couple of sites that are responding with 301 (Moved >> Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code >> yields "0" for both of those sites/codes (and HttpClient.Reason is >> empty). 200 & 404 codes are reported successfully. >> >> Have I missed something in the properties that is preventing proper >> disclosure of redirect response codes? >> >> Or is this a bug? >> >> (Project attached.) >> > > HttpClient is "just" libcurl, so it may be a libcurl thing (that library > has gazillons of options). I will check... > Thank you for taking the time to check into that, Beno?t. In the meantime, for anyone else needing to loop through redirects (currently scanning for a "Location" header), here's a short example subroutine: Private Sub TestPage(sUrl As String) Dim hClient As New HttpClient Dim iMaxRedirects As Integer = 5 'Prevent infinite loop bot trap Dim iCurrentRedirects As Integer = 0 Dim bFound As Boolean hClient.UserAgent = "AppleWebKit" hClient.Async = False hClient.URL = sUrl hClient.Timeout = 15 Inc Application.Busy Do bFound = True 'Reset redirect flag hClient.Get If hClient.Headers.Find("Location:*", gb.Like) > -1 Then bFound = False 'Redirection If iCurrentRedirects = iMaxRedirects Then Break Inc iCurrentRedirects hClient.URL = Replace(hClient.Headers[hClient.Headers.Find("Location:*", gb.Like)], "Location: ", "") Print hClient.URL hClient.Headers.Clear 'Must manually clear headers array or "Location" header will persist causing redundant looping Endif Loop Until bFound = True Dec Application.Busy If hClient.Status < 0 Then Print "ERROR" End If Print "Success? -> " & hClient.Code End --- Lee From mckaygerhard at ...626... Tue Apr 25 22:48:02 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 25 Apr 2017 16:48:02 -0400 Subject: [Gambas-user] HttpClient not exposing redirect response codes In-Reply-To: <197416f7-7a4a-a0b4-14b2-02ecaaf359f0@...626...> References: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> <82b7dc55-9eb9-c131-a9ad-e38f07ae759b@...1...> <197416f7-7a4a-a0b4-14b2-02ecaaf359f0@...626...> Message-ID: hi lee, in the example, when i debug , the header does not return the required contents to made the location! i mean i donot test u'r code, but before send that mail i tested and does not work.. with the specific url.. due that the problem relies on libcurl implementatio of httpclient module in gambas.. maybe a solution (ugly but proper) its to parse options directly to the curl implementation i found some others misctakes/bugs making gambas http/web projects but for now i must finish my works at job Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-04-25 16:29 GMT-04:00 T Lee Davidson : > On 04/25/2017 01:36 PM, Beno?t Minisini wrote: > > Le 25/04/2017 ? 19:12, T Lee Davidson a ?crit : > >> I have run into a couple of sites that are responding with 301 (Moved > >> Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code > >> yields "0" for both of those sites/codes (and HttpClient.Reason is > >> empty). 200 & 404 codes are reported successfully. > >> > >> Have I missed something in the properties that is preventing proper > >> disclosure of redirect response codes? > >> > >> Or is this a bug? > >> > >> (Project attached.) > >> > > > > HttpClient is "just" libcurl, so it may be a libcurl thing (that library > > has gazillons of options). I will check... > > > > Thank you for taking the time to check into that, Beno?t. > > In the meantime, for anyone else needing to loop through redirects > (currently scanning for a "Location" header), here's a short > example subroutine: > > Private Sub TestPage(sUrl As String) > > Dim hClient As New HttpClient > Dim iMaxRedirects As Integer = 5 'Prevent infinite loop bot trap > Dim iCurrentRedirects As Integer = 0 > Dim bFound As Boolean > > hClient.UserAgent = "AppleWebKit" > hClient.Async = False > hClient.URL = sUrl > hClient.Timeout = 15 > Inc Application.Busy > Do > bFound = True 'Reset redirect flag > hClient.Get > If hClient.Headers.Find("Location:*", gb.Like) > -1 Then > bFound = False 'Redirection > If iCurrentRedirects = iMaxRedirects Then Break > Inc iCurrentRedirects > hClient.URL = Replace(hClient.Headers[hClient.Headers.Find("Location:*", > gb.Like)], "Location: ", "") > Print hClient.URL > hClient.Headers.Clear 'Must manually clear headers array or > "Location" header will persist causing redundant looping > Endif > Loop Until bFound = True > Dec Application.Busy > > If hClient.Status < 0 Then > Print "ERROR" > End If > > Print "Success? -> " & hClient.Code > > End > > > --- > Lee > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Wed Apr 26 03:41:27 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 26 Apr 2017 01:41:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1097: Date.ToUnixTime loses a day Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1097&from=L21haW4- T. Lee DAVIDSON reported a new bug. Summary ------- Date.ToUnixTime loses a day Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- The output of gb.util's Date.ToUnixTime is a day behind irregardless of local time vs. GMT Here's a simple proof also showing that Date.FromUnixTime is not affected: Dim iEpochSeconds As Integer = 1493168023 ' 2017-Apr-26 00:53:43 GMT Print Date.FromUnixTime(iEpochSeconds) Print Now Print Date.FromUnixTime(Date.ToUnixTime(Now)) System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.4.57-18.3-default Architecture=x86_64 Distribution=SuSE NAME="openSUSE Leap" VERSION="42.2" ID=opensuse ID_LIKE="suse" VERSION_ID="42.2" PRETTY_NAME="openSUSE Leap 42.2" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:42.2" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" Desktop=KDE5 Theme=QtCurve Language=en_US.UTF-8 Memory=3951M [Libraries] DBus=libdbus-1.so.3.8.14 OpenGL=libGL.so.1.2.0 [Environment] (Is environment _really_ needed?) From mike.crean at ...2897... Wed Apr 26 10:01:40 2017 From: mike.crean at ...2897... (Mike Crean) Date: Wed, 26 Apr 2017 08:01:40 +0000 (UTC) Subject: [Gambas-user] shell In-Reply-To: References: <1215072119.2956559.1493027226447@...3424...> <1493110330380-58795.post@...3046...> Message-ID: <1575170232.4856034.1493193700961@...3424...> Thanks Fabien I have solved the problem. Regards Mike On Tuesday, 25 April 2017, 22:58, Fabien Bodard wrote: ??? 2017-04-25 10:52 GMT+02:00 Charlie : > Can you post the 'Shell' code you are using. > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble.com/shell-tp58793p58795.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From alexchernoff at ...67... Wed Apr 26 12:45:06 2017 From: alexchernoff at ...67... (alexchernoff) Date: Wed, 26 Apr 2017 03:45:06 -0700 (MST) Subject: [Gambas-user] GUI Tab Auto-Complete Issue Message-ID: <1493203506077-58807.post@...3046...> Dear all, has anyone noticed? in Gambas UI once you use Tab to suggest and autocomplete a word, it becomes not possible to select any lines or move cursor with the mouse. Only arrow keys work, and only solution is to press Enter on some new line or switch to a different editor tab and come back. Is it a bug/feature...? Cheers! -- View this message in context: http://gambas.8142.n7.nabble.com/GUI-Tab-Auto-Complete-Issue-tp58807.html Sent from the gambas-user mailing list archive at Nabble.com. From bagonergi at ...626... Wed Apr 26 13:09:45 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 26 Apr 2017 13:09:45 +0200 Subject: [Gambas-user] GUI Tab Auto-Complete Issue In-Reply-To: <1493203506077-58807.post@...3046...> References: <1493203506077-58807.post@...3046...> Message-ID: Save (Ctrl+S) also works Regards Gianluigi 2017-04-26 12:45 GMT+02:00 alexchernoff : > Dear all, > > has anyone noticed? in Gambas UI once you use Tab to suggest and > autocomplete a word, it becomes not possible to select any lines or move > cursor with the mouse. Only arrow keys work, and only solution is to press > Enter on some new line or switch to a different editor tab and come back. > > Is it a bug/feature...? > > Cheers! > > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/GUI-Tab-Auto-Complete-Issue-tp58807.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Apr 26 13:14:14 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 26 Apr 2017 13:14:14 +0200 Subject: [Gambas-user] GUI Tab Auto-Complete Issue In-Reply-To: <1493203506077-58807.post@...3046...> References: <1493203506077-58807.post@...3046...> Message-ID: <730af270-4700-d092-d78e-0b113786c35e@...1...> Le 26/04/2017 ? 12:45, alexchernoff a ?crit : > Dear all, > > has anyone noticed? in Gambas UI once you use Tab to suggest and > autocomplete a word, it becomes not possible to select any lines or move > cursor with the mouse. Only arrow keys work, and only solution is to press > Enter on some new line or switch to a different editor tab and come back. > > Is it a bug/feature...? > > Cheers! > I don't see what you mean. Can you elaborate? Can you give your system information, from the IDE menu? -- Beno?t Minisini From bagonergi at ...626... Wed Apr 26 13:34:56 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 26 Apr 2017 13:34:56 +0200 Subject: [Gambas-user] GUI Tab Auto-Complete Issue In-Reply-To: <730af270-4700-d092-d78e-0b113786c35e@...1...> References: <1493203506077-58807.post@...3046...> <730af270-4700-d092-d78e-0b113786c35e@...1...> Message-ID: Hello Benoit, Is a small bug known since March 2016 [0]. When you click Backward (with Backspace) one of the IDE proposals, the Mouse cursor remains locked. You can unlock it using the arrows, Enter, or Save (Ctrl + S) Regards Gianluigi [0]http://www.gambas-it.org/smf/index.php?topic=4743.msg37952#msg37952 2017-04-26 13:14 GMT+02:00 Beno?t Minisini : > Le 26/04/2017 ? 12:45, alexchernoff a ?crit : > > Dear all, > > > > has anyone noticed? in Gambas UI once you use Tab to suggest and > > autocomplete a word, it becomes not possible to select any lines or move > > cursor with the mouse. Only arrow keys work, and only solution is to > press > > Enter on some new line or switch to a different editor tab and come back. > > > > Is it a bug/feature...? > > > > Cheers! > > > > I don't see what you mean. Can you elaborate? Can you give your system > information, from the IDE menu? > > -- > Beno?t Minisini > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Wed Apr 26 13:38:11 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 26 Apr 2017 13:38:11 +0200 Subject: [Gambas-user] GUI Tab Auto-Complete Issue In-Reply-To: <730af270-4700-d092-d78e-0b113786c35e@...1...> References: <1493203506077-58807.post@...3046...> <730af270-4700-d092-d78e-0b113786c35e@...1...> Message-ID: I forgot: Happens with Ubuntu Regards Gianluigi [System] Gambas=3.9.90 r8113 OperatingSystem=Linux Kernel=4.4.0-75-generic Architecture=x86_64 Distribution=Ubuntu 16.04.2 LTS Desktop=UNITY Theme=Cleanlooks Language=it_IT.UTF-8 Memory=15975M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.0.0 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-37hBeeU6hg DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=it GIO_LAUNCHED_DESKTOP_FILE=/home//.local/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=4886 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1 GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME=/home/ IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=it_IT.UTF-8 LANGUAGE=it LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PATH=/home//bin:/home//.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD=/home/ QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=ubuntu SESSIONTYPE=gnome-session SESSION_MANAGER=local/:@/tmp/.ICE-unix/1381,unix/:/tmp/.ICE-unix/1381 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=xsession started UPSTART_INSTANCE= UPSTART_JOB=unity7 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1164 USER= XAUTHORITY=/home//.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=Unity XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@...3498...=ibus 2017-04-26 13:14 GMT+02:00 Beno?t Minisini : > Le 26/04/2017 ? 12:45, alexchernoff a ?crit : > > Dear all, > > > > has anyone noticed? in Gambas UI once you use Tab to suggest and > > autocomplete a word, it becomes not possible to select any lines or move > > cursor with the mouse. Only arrow keys work, and only solution is to > press > > Enter on some new line or switch to a different editor tab and come back. > > > > Is it a bug/feature...? > > > > Cheers! > > > > I don't see what you mean. Can you elaborate? Can you give your system > information, from the IDE menu? > > -- > Beno?t Minisini > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Wed Apr 26 17:14:15 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 26 Apr 2017 15:14:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1098: Some parts of a ColorChooser stay active when property Enabled = False Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1098&from=L21haW4- Olivier CRUILLES reported a new bug. Summary ------- Some parts of a ColorChooser stay active when property Enabled = False Type : Bug Priority : Low Gambas version : 3.9.90 (TRUNK) Product : QT4 component Description ----------- It seems that some parts of a ColorChooser stay active when property of the object .Enabled = False and user can modify color. There are no impact for the value of the ColorChooser but visually this is not fun. System information ------------------ [System] Gambas=3.9.90 OperatingSystem=Linux Kernel=4.4.0-72-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=fr_CA.UTF-8 Memory=8098M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 CLUTTER_IM_MODULE=xim COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-yxmCc1um4s,guid=4845ecc0fdc20aafb6cbcc0558f8da9b DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_XSERVER_LOCATION=local GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=0 HOME= LANG=fr_CA.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LIBVIRT_DEFAULT_URI=qemu:///system LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=fr_CA.UTF-8 MDM_XSERVER_LOCATION=local PAPERSIZE=a4 PATH=/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/2783,unix/:/tmp/.ICE-unix/2783 SHELL=/bin/bash SSH_AGENT_PID=2887 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=7799fc85266d4f0d61afdf215179697f-1492703898.980640-13666477 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=7 XMODIFIERS=@...3498...=ibus From leondavisjr at ...626... Wed Apr 26 18:16:23 2017 From: leondavisjr at ...626... (Leon Davis) Date: Wed, 26 Apr 2017 11:16:23 -0500 Subject: [Gambas-user] Component Creation Message-ID: Gambas v3.9.2 GTK+3 I am trying to create a component using gambas. Is there a way to test the component during development? or is it necessary to complete the component and install it to test? You help is appreciated. From gambas at ...1... Wed Apr 26 18:23:08 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 26 Apr 2017 18:23:08 +0200 Subject: [Gambas-user] Component Creation In-Reply-To: References: Message-ID: <375d5b46-9bd1-4251-44de-ddad57b79290@...1...> Le 26/04/2017 ? 18:16, Leon Davis a ?crit : > Gambas v3.9.2 GTK+3 > > I am trying to create a component using gambas. Is there a way to test the > component during development? or is it necessary to complete the component > and install it to test? You help is appreciated. I usually test the component by running it as a project, with a startup class only used for testing. But then it depends on what kind of component you are writing. If you are writing a GUI component, it can be tricky. You may have to reload your project, or restart the IDE when you create new controls. -- Beno?t Minisini From taboege at ...626... Wed Apr 26 18:36:28 2017 From: taboege at ...626... (Tobias Boege) Date: Wed, 26 Apr 2017 18:36:28 +0200 Subject: [Gambas-user] Component Creation In-Reply-To: References: Message-ID: <20170426163628.GA31206@...3600...> On Wed, 26 Apr 2017, Leon Davis wrote: > Gambas v3.9.2 GTK+3 > > I am trying to create a component using gambas. Is there a way to test the > component during development? or is it necessary to complete the component > and install it to test? You help is appreciated. You can run your component like a normal Gambas application to test it. Give your component project a startup class/module/form and write your test code in there. Instead of setting a startup class, you can also use the "Run this class" right-click menu item to execute any one of your test classes. Many of the official Gambas components do this. You can have a look at gb.form, for example, which has a whole subdirectory "Test" of various forms, which can be used to test the component during development. Actually, in this regard a component is no different from a Gambas application. Try *executing* the gb.form component: $ /usr/lib/gambas3/gb.form.gambas Since a startup form is defined for it, the component is run like any other Gambas application, currently showing a SliderBox test. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From shordi at ...626... Wed Apr 26 19:40:35 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 26 Apr 2017 19:40:35 +0200 Subject: [Gambas-user] sliderbox bug: Still respond to mouse wheel when its disabled Message-ID: A sliderbox with Enabled property to False still respond to mouse wheel. I've write a little class as a to workaround with this code: Export Inherits SliderBox Public Const _Similar As String = "SpinBox,SliderBox" Public Const _drawWith As String = "SliderBox" Private obs As Observer Public Sub _new() obs = New Observer(Me.Children[1]) As "Spin" End Public Sub spin_mousewheel() If Me.enabled = False Then Stop Event End But I think that it will be better fix the bug. Best regards. From karl.reinl at ...9... Wed Apr 26 19:58:14 2017 From: karl.reinl at ...9... (Karl Reinl) Date: Wed, 26 Apr 2017 19:58:14 +0200 Subject: [Gambas-user] GUI Tab Auto-Complete Issue In-Reply-To: <730af270-4700-d092-d78e-0b113786c35e@...1...> References: <1493203506077-58807.post@...3046...> <730af270-4700-d092-d78e-0b113786c35e@...1...> Message-ID: <1493229494.9316.1.camel@...3609...> Am Mittwoch, den 26.04.2017, 13:14 +0200 schrieb Beno?t Minisini: > Le 26/04/2017 ? 12:45, alexchernoff a ?crit : > > Dear all, > > > > has anyone noticed? in Gambas UI once you use Tab to suggest and > > autocomplete a word, it becomes not possible to select any lines or move > > cursor with the mouse. Only arrow keys work, and only solution is to press > > Enter on some new line or switch to a different editor tab and come back. > > > > Is it a bug/feature...? > > > > Cheers! > > > > I don't see what you mean. Can you elaborate? Can you give your system > information, from the IDE menu? > Salut Beno?t, I think that is related to Bug report 716 -- Amicalement Charlie From leondavisjr at ...626... Wed Apr 26 21:29:11 2017 From: leondavisjr at ...626... (Leon Davis) Date: Wed, 26 Apr 2017 14:29:11 -0500 Subject: [Gambas-user] Component Creation In-Reply-To: <20170426163628.GA31206@...3600...> References: <20170426163628.GA31206@...3600...> Message-ID: Got it... Excellent and thank you for the help. On Wed, Apr 26, 2017 at 11:36 AM, Tobias Boege wrote: > On Wed, 26 Apr 2017, Leon Davis wrote: > > Gambas v3.9.2 GTK+3 > > > > I am trying to create a component using gambas. Is there a way to test > the > > component during development? or is it necessary to complete the > component > > and install it to test? You help is appreciated. > > You can run your component like a normal Gambas application to test it. > Give your component project a startup class/module/form and write your > test code in there. Instead of setting a startup class, you can also use > the "Run this class" right-click menu item to execute any one of your > test classes. > > Many of the official Gambas components do this. You can have a look at > gb.form, for example, which has a whole subdirectory "Test" of various > forms, which can be used to test the component during development. > > Actually, in this regard a component is no different from a Gambas > application. Try *executing* the gb.form component: > > $ /usr/lib/gambas3/gb.form.gambas > > Since a startup form is defined for it, the component is run like any > other Gambas application, currently showing a SliderBox test. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Thu Apr 27 08:40:00 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 27 Apr 2017 06:40:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1098: Some parts of a ColorChooser stay active when property Enabled = False In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1098&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Thu Apr 27 08:44:40 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 27 Apr 2017 06:44:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1098: Some parts of a ColorChooser stay active when property Enabled = False In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1098&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in revision #8127. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Thu Apr 27 08:48:04 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 27 Apr 2017 06:48:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1097: Date.ToUnixTime loses a day In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1097&from=L21haW4- Comment #1 by Beno?t MINISINI: I see no problem there. Can you show me your output? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Thu Apr 27 08:50:39 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 27 Apr 2017 06:50:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1096: MDI toolbuttons with long text In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1096&from=L21haW4- Comment #1 by Beno?t MINISINI: I see nothing wrong. Can you provide me a screenshot of the problem? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Thu Apr 27 08:52:10 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 27 Apr 2017 06:52:10 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1095: To allow you to customize the date format of the change.log file In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1095&from=L21haW4- Comment #1 by Beno?t MINISINI: I guess you are talking about the ChangeLog file of the package wizard? I'm afraid this date format is mandatory, at least in *.deb packages. From gambas at ...1... Thu Apr 27 09:01:20 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 27 Apr 2017 09:01:20 +0200 Subject: [Gambas-user] HttpClient not exposing redirect response codes In-Reply-To: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> References: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> Message-ID: <703e728f-b326-d411-c6ea-434e5cc72348@...1...> Le 25/04/2017 ? 19:12, T Lee Davidson a ?crit : > I have run into a couple of sites that are responding with 301 (Moved > Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code > yields "0" for both of those sites/codes (and HttpClient.Reason is > empty). 200 & 404 codes are reported successfully. > > Have I missed something in the properties that is preventing proper > disclosure of redirect response codes? > > Or is this a bug? > > (Project attached.) > I have just tested your project, and I get all the expected answers (301, 302, 404 & 200). libcurl (the library used by gb.net.curl) has a flag to automatically follow http redirections, but it is disabled by default. So I don't understand the result you have. Which version of libcurl do you use on your system? -- Beno?t Minisini From bugtracker at ...3416... Thu Apr 27 09:56:36 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 27 Apr 2017 07:56:36 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1099: sliderbox sill respond to mouse wheel when its disabled Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1099&from=L21haW4- Jorge CARRI?N reported a new bug. Summary ------- sliderbox sill respond to mouse wheel when its disabled Type : Bug Priority : Low Gambas version : 3.9 Product : GUI components Description ----------- A sliderbox with Enabled property to False still respond to mouse wheel. I've write a little class as a to workaround with this code: Export Inherits SliderBox Public Const _Similar As String = "SpinBox,SliderBox" Public Const _drawWith As String = "SliderBox" Private obs As Observer Public Sub _new() obs = New Observer(Me.Children[1]) As "Spin" End Public Sub spin_mousewheel() If Me.enabled = False Then Stop Event End But I think that it will be better fix the bug. Best regards. System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.4.0-66-generic Architecture=x86_64 Distribution=Linux Mint 18.1 Serena Desktop=CINNAMON Theme=Gtk Language=es_ES.UTF-8 Memory=15989M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.0.0 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=3.2.7 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-psHVzH2ma2,guid=6d3df68afca2eeb1d081d14559016ac1 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DERBY_HOME=/usr/lib/jvm/java-8-oracle/db DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_XSERVER_LOCATION=local GIO_LAUNCHED_DESKTOP_FILE=/.cinnamon/panel-launchers/cinnamon-custom-launcher-1.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=6997 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= J2REDIR=/usr/lib/jvm/java-8-oracle/jre J2SDKDIR=/usr/lib/jvm/java-8-oracle JAVA_HOME=/usr/lib/jvm/java-8-oracle LANG=es_ES.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path MDMSESSION=cinnamon MDM_LANG=es_ES.UTF-8 MDM_XSERVER_LOCATION=local PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1850,unix/:/tmp/.ICE-unix/1850 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=2886 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=2a5d5f96ef9147c0b35535562b32d0ff-1493265085.749055-1190069521 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_VTNR=7 _=/usr/bin/gambas3 From tercoide at ...67... Thu Apr 27 14:15:47 2017 From: tercoide at ...67... (Martin Cristia) Date: Thu, 27 Apr 2017 12:15:47 +0000 Subject: [Gambas-user] QT5 + OpenGL + WEbKit In-Reply-To: References: Message-ID: Hi, after an system update from Ubuntu 17.04 Unity to 17.04 Gnome3, I can't longer use a webview + GLArea together. The QT5.OpenGL dont exist anymore, suppposed not need to, but gb.OpenGL complains it needs some OpenGL provider. I'm no able to find a combination of components that provide the WebView + GLArea. Next is my system information. [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=4.10.0-20-generic Architecture=x86_64 Distribution=Ubuntu 17.04 Desktop=GNOME Theme=Fusion Language=es_AR.UTF-8 Memory=5840M [Libraries] Cairo=libcairo.so.2.11400.8 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.7 GStreamer=libgstreamer-1.0.so.0.1004.0 GTK+2=libgtk-x11-2.0.so.0.2400.31 GTK+3=libgtk-3.so.0.2200.11 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.64.0.0 QT5=libQt5Core.so.5.7.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=xim COLORTERM=truecolor DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/gnome.default.path DESKTOP_AUTOSTART_ID=101071347fd50f4eb6149329469067994500000010130008 DESKTOP_SESSION=gnome DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=gnome GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge HOME= JOURNAL_STREAM=8:19159 LANG=es_AR.UTF-8 LANGUAGE=es_AR:es LC_ADDRESS=es_AR.UTF-8 LC_IDENTIFICATION=es_AR.UTF-8 LC_MEASUREMENT=es_AR.UTF-8 LC_MONETARY=es_AR.UTF-8 LC_NAME=es_AR.UTF-8 LC_NUMERIC=es_AR.UTF-8 LC_PAPER=es_AR.UTF-8 LC_TELEPHONE=es_AR.UTF-8 LC_TIME=es_AR.UTF-8 LESSCLOSE=/usr/bin/lesspipe %s %s LESSOPEN=| /usr/bin/lesspipe %s LOGNAME= LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1013,unix/:/tmp/.ICE-unix/1013 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=1087 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TERM=xterm-256color TZ=:/etc/localtime USER= USERNAME= VTE_VERSION=4402 WINDOWID=52428864 WINDOWPATH=1 XAUTHORITY=/run/user/1000/gdm/Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg XDG_CURRENT_DESKTOP=GNOME XDG_DATA_DIRS=/usr/share/gnome:/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_DESKTOP=gnome XDG_SESSION_ID=1 XDG_SESSION_TYPE=x11 XDG_VTNR=1 XMODIFIERS=@im=ibus _=/usr/bin/gambas3 -- Saludos Ing. Martin P Cristia From leondavisjr at ...626... Thu Apr 27 16:00:31 2017 From: leondavisjr at ...626... (Leon Davis) Date: Thu, 27 Apr 2017 09:00:31 -0500 Subject: [Gambas-user] Property override Message-ID: Using Gambas v3.9.2 and GTK+3 I am creating a component and would like to override the Caption property. Public Const _Properties as String = "*,Caption" Property Read {Caption} as String Causes an "improper override error". I've also tried encasing the word Caption in the _Properties statement with curly brackets "{Caption}". Any assistance is greatly appreciated. From taboege at ...626... Thu Apr 27 16:14:04 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 27 Apr 2017 16:14:04 +0200 Subject: [Gambas-user] Property override In-Reply-To: References: Message-ID: <20170427141404.GB544@...3600...> On Thu, 27 Apr 2017, Leon Davis wrote: > Using Gambas v3.9.2 and GTK+3 > > I am creating a component and would like to override the Caption property. > > > > Public Const _Properties as String = "*,Caption" > > Property Read {Caption} as String > > > > Causes an "improper override error". I've also tried encasing the word > Caption in the _Properties statement with curly brackets "{Caption}". Any > assistance is greatly appreciated. It depends on *where* you want to override the Caption property, but my guess is that Caption is a read-write property in the class you want to override. You can't make it read-only by overriding, i.e. the "Read" keyword in your "Property Read" declaration causes the error. Mandatory reading: http://gambaswiki.org/wiki/doc/object-model, which exactly states that: 3.5. Symbol Overriding [...] * A read/write property must be overridden by a read/write property with the same datatype. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From leondavisjr at ...626... Thu Apr 27 16:21:47 2017 From: leondavisjr at ...626... (Leon Davis) Date: Thu, 27 Apr 2017 09:21:47 -0500 Subject: [Gambas-user] Property override In-Reply-To: <20170427141404.GB544@...3600...> References: <20170427141404.GB544@...3600...> Message-ID: Thank you On Thu, Apr 27, 2017 at 9:14 AM, Tobias Boege wrote: > On Thu, 27 Apr 2017, Leon Davis wrote: > > Using Gambas v3.9.2 and GTK+3 > > > > I am creating a component and would like to override the Caption > property. > > > > > > > > Public Const _Properties as String = "*,Caption" > > > > Property Read {Caption} as String > > > > > > > > Causes an "improper override error". I've also tried encasing the word > > Caption in the _Properties statement with curly brackets "{Caption}". Any > > assistance is greatly appreciated. > > It depends on *where* you want to override the Caption property, but my > guess is that Caption is a read-write property in the class you want to > override. You can't make it read-only by overriding, i.e. the "Read" > keyword in your "Property Read" declaration causes the error. > > Mandatory reading: http://gambaswiki.org/wiki/doc/object-model, which > exactly states that: > > 3.5. Symbol Overriding > [...] > * A read/write property must be overridden by a read/write property > with the same datatype. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Thu Apr 27 16:23:54 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Thu, 27 Apr 2017 07:23:54 -0700 (MST) Subject: [Gambas-user] Help needed with drag icon Message-ID: <1493303034531-58829.post@...3046...> I have a DrawingArea with a series of images drawn within. I can move an image within the DrawingArea but how to show a drag,icon while the image is being dragged? Public Sub dwgImage2_MouseDrag() Drag.Icon = Picture["icon:/64/linux"] End This code doesn't show any icon during the drag operetraion. Any advice would be appreciated -- View this message in context: http://gambas.8142.n7.nabble.com/Help-needed-with-drag-icon-tp58829.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Thu Apr 27 18:38:02 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 27 Apr 2017 18:38:02 +0200 Subject: [Gambas-user] New component gb.rss to generate and parse RSS documents In-Reply-To: <0f56f650-8374-d868-1624-be4f239f3ad9@...1...> References: <20170402160726.GA547@...3600...> <54b016c4-1b2f-b3f0-db3f-1e02b2b5c334@...1...> <20170418174457.GC552@...3600...> <4867444b-6bcc-d600-097d-d87f22a0e9ce@...1...> <0f56f650-8374-d868-1624-be4f239f3ad9@...1...> Message-ID: <20170427163802.GC544@...3600...> On Tue, 18 Apr 2017, Beno?t Minisini wrote: > Le 18/04/2017 ? 19:52, Beno?t Minisini a ?crit : > > Le 18/04/2017 ? 19:44, Tobias Boege a ?crit : > >> On Sun, 16 Apr 2017, Beno?t Minisini wrote: > >>> Le 02/04/2017 ? 18:07, Tobias Boege a ?crit : > >>>> > >>>> * The date conversion routines ignore timezones completely, because > >>>> I have no clue about working with timezones in Gambas. > >>>> > >>> > >>> Hi, Tobias. > >>> > >>> I have added in revision #8122 two functions to the gb.util component: > >>> > >>> Date.ToRFC822(), to convert a Gambas date/time value to its RFC822 > >>> string representation, with the timezone. > >>> > >>> Date.FromRFC822(), to do the contrary. > >>> > >>> Tell me if you can use them, and if you need me to add the same > >>> functions for RFC3339 date format used by Atom. > >>> > >> > >> Thanks for these. Reading the code (not testing it yet), I noticed four > >> things: > >> > >> * The weekday and second parts in the format are optional in the RFC > >> but mandatory in your parser. > >> > >> * The year is a 2-digit number in the RFC. The RSS spec says it prefers > >> 4 digits. My current parser in gb.web.feed supports both, but treats > >> 2-digit years XY as 19XY (which I think is the most sensible > >> interpretation with respect to the RFC but sadly excludes publication > >> dates for news items near Christ's birth). > >> > >> * There is no consistency check in the parser if, in case a weekday is > >> given, it matches the weekday of the date, like > >> > >> Fri, 18 Apr 2017 12:00:00 GMT > >> > >> would be invalid by the RFC ("5.2 SEMANTICS"), because the 18 Apr > >> 2017 > >> is a Tuesday. > >> > >> * At one point you use Format$(..., "hh:nn:ss") which I think may be > >> dangerous, because Format$() (as per docs) replaces ":" by the > >> locale- > >> specific time separator. I don't know if there are locales where this > >> is different from ":", but the RFC requires it to be ":" exactly. > >> > >> My parser does these four things. If you want to add them, the > >> gb.web.feed > >> code is sufficiently commented in the relevant places. > > > > OK, I will look at it. > > > > I have updated the gb.util components with your fixes. Now I think you > can use it directly in gb.web.feed. > I think there is something wrong with at least one of these functions. In FromRFC822() you do towards the end: (1) dDate -= Frac(Date(Now)) (2) dDate += GetRFC822Zone(aDate[6]) What is (1) supposed to do? Isn't Frac(Date(Now)) the current time? Regarding (2), I think I could (after an hour) wrap my head around when to add and when to subtract the timezone offsets in a conversion and FromRFC822() should *subtract* the timezone offset from the date, like 18:00:00 +0200 is the same point in time as 16:00:00 +0000 (isn't it?) And in ToRFC822() you do something with System.TimeZone. Isn't a Date value assumed to be relative to UTC, or +0000? So why bring the system's timezone into the equation when a target timezone is given by the TimeZone argument? Or is the Date input supposed to be in the local timezone? Then ToRFC822() and FromRFC822() wouldn't be inverse to each other... For example, I'm in +0200 currently (I think) and converting 6pm as a time in GMT to GMT again results in 2pm: Print Date.ToRFC822(Date.FromRFC822("27 Apr 2017 18:00:00 GMT"), "GMT") Thu, 27 Apr 2017 14:0:0 GMT You can also see that ToRFC822() misses Format(..., "00") calls in the time components. And could you add an Optional ByRef TimeZone As String argument to FromRFC822() and set it to aDate[6] just before the function returns? The rationale is: in gb.web.feed I still want to have an RssDate class with a Date and a TimeZone member. When reading a date, I want to initialise the TimeZone member with the timezone given in the RFC822 string, so that reading an RSS document into an Rss object and then serialising that Rss object immediately afterwards doesn't change all the timezone strings in the document. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at ...626... Thu Apr 27 22:25:51 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 27 Apr 2017 22:25:51 +0200 Subject: [Gambas-user] Help needed with drag icon In-Reply-To: <1493303034531-58829.post@...3046...> References: <1493303034531-58829.post@...3046...> Message-ID: Could You take a look at DragNDrop in Examples. Maybe it could help Regards Gianluigi 2017-04-27 16:23 GMT+02:00 bill-lancaster : > I have a DrawingArea with a series of images drawn within. > I can move an image within the DrawingArea but how to show a drag,icon > while > the image is being dragged? > > Public Sub dwgImage2_MouseDrag() > Drag.Icon = Picture["icon:/64/linux"] > End > > This code doesn't show any icon during the drag operetraion. > > Any advice would be appreciated > > > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Help-needed-with-drag-icon-tp58829.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charlie at ...2793... Fri Apr 28 09:05:06 2017 From: charlie at ...2793... (Charlie) Date: Fri, 28 Apr 2017 00:05:06 -0700 (MST) Subject: [Gambas-user] Help needed with drag icon In-Reply-To: <1493303034531-58829.post@...3046...> References: <1493303034531-58829.post@...3046...> Message-ID: <1493363106271-58833.post@...3046...> Have a look at my previous efforts regarding this here http://gambas.8142.n7.nabble.com/Drag-Icon-td58574.html ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Help-needed-with-drag-icon-tp58829p58833.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Fri Apr 28 10:00:35 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Fri, 28 Apr 2017 01:00:35 -0700 (MST) Subject: [Gambas-user] Help needed with drag icon In-Reply-To: <1493363106271-58833.post@...3046...> References: <1493303034531-58829.post@...3046...> <1493363106271-58833.post@...3046...> Message-ID: <1493366435511-58834.post@...3046...> Thanks Guys, Yes, I had looked at those examples already. They both have code like:- Drag.Icon = Last.Picture Last.Drag(Last.Picture.Image) or Last.Drag(Last.Tag) Drag.Icon = Picture["icon:/32/add"] Problem is that I don't have a last.image or a last.tag. I'm dragging a shape that has been created in code. Imagine an empty drawing area, click at some point then drag. How would you show an icon at that point? -- View this message in context: http://gambas.8142.n7.nabble.com/Help-needed-with-drag-icon-tp58829p58834.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Fri Apr 28 11:15:44 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Fri, 28 Apr 2017 02:15:44 -0700 (MST) Subject: [Gambas-user] Help needed with drag icon In-Reply-To: <1493366435511-58834.post@...3046...> References: <1493303034531-58829.post@...3046...> <1493363106271-58833.post@...3046...> <1493366435511-58834.post@...3046...> Message-ID: <1493370944875-58835.post@...3046...> OK, I had a feeling I was being stupid! I don't need to show an icon anyway, just draw a shape that tracks the mouse during the drag event. Thanks anyway. -- View this message in context: http://gambas.8142.n7.nabble.com/Help-needed-with-drag-icon-tp58829p58835.html Sent from the gambas-user mailing list archive at Nabble.com. From bugtracker at ...3416... Fri Apr 28 15:25:15 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 28 Apr 2017 13:25:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1098: Some parts of a ColorChooser stay active when property Enabled = False In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1098&from=L21haW4- Comment #2 by Olivier CRUILLES: Thanks, I confirm it's ok now. From bugtracker at ...3416... Fri Apr 28 18:21:42 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 28 Apr 2017 16:21:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1097: Date.ToUnixTime loses a day In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1097&from=L21haW4- Comment #2 by T. Lee DAVIDSON: The output I get is: 04/25/2017 20:53:43 04/28/2017 12:07:32 04/27/2017 12:07:32 Lines 1 & 2 are correct at local time (GMT-4) Line 3 is a day behind. With the following: Dim sEpochSeconds As String Shell "date +%s" To sEpochSeconds Print Trim(sEpochSeconds) Print Date.ToUnixTime(Now) I get: 1493396203 1493309803 The Date.ToUnixTime(Now) value is exactly 86400 seconds (24 hrs) less. From t.lee.davidson at ...626... Fri Apr 28 18:59:10 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Fri, 28 Apr 2017 12:59:10 -0400 Subject: [Gambas-user] HttpClient not exposing redirect response codes In-Reply-To: <703e728f-b326-d411-c6ea-434e5cc72348@...1...> References: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> <703e728f-b326-d411-c6ea-434e5cc72348@...1...> Message-ID: <5e0323e3-2a3b-343c-126e-19b73a2ca1f9@...626...> On 04/27/2017 03:01 AM, Beno?t Minisini wrote: > Le 25/04/2017 ? 19:12, T Lee Davidson a ?crit : >> I have run into a couple of sites that are responding with 301 (Moved >> Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code >> yields "0" for both of those sites/codes (and HttpClient.Reason is >> empty). 200 & 404 codes are reported successfully. >> >> Have I missed something in the properties that is preventing proper >> disclosure of redirect response codes? >> >> Or is this a bug? >> >> (Project attached.) >> > > I have just tested your project, and I get all the expected answers > (301, 302, 404 & 200). > > libcurl (the library used by gb.net.curl) has a flag to automatically > follow http redirections, but it is disabled by default. I thought so. But, I looked and looked and did not find any way to access that flag either in HttpClient or in Curl (gb.net.curl). > So I don't understand the result you have. Which version of libcurl do > you use on your system? > The version of libcurl on my system is libcurl4, Version 7.37.0-16.3.1 (libcurl.so.4.3.0). BTW, I just tried again to see if it was just a transient issue, but, no, I still get neither 301 nor 302. --- Lee From t.lee.davidson at ...626... Fri Apr 28 20:20:37 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Fri, 28 Apr 2017 14:20:37 -0400 Subject: [Gambas-user] HttpClient not exposing redirect response codes In-Reply-To: <703e728f-b326-d411-c6ea-434e5cc72348@...1...> References: <839367f4-8365-0bcd-7f83-a1426a8ba49c@...626...> <703e728f-b326-d411-c6ea-434e5cc72348@...1...> Message-ID: <93f6b15f-44e7-66ef-31ce-44e55d41a41b@...626...> On 04/27/2017 03:01 AM, Beno?t Minisini wrote: > Le 25/04/2017 ? 19:12, T Lee Davidson a ?crit : >> I have run into a couple of sites that are responding with 301 (Moved >> Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code >> yields "0" for both of those sites/codes (and HttpClient.Reason is >> empty). 200 & 404 codes are reported successfully. >> >> Have I missed something in the properties that is preventing proper >> disclosure of redirect response codes? >> >> Or is this a bug? >> >> (Project attached.) >> > > I have just tested your project, and I get all the expected answers > (301, 302, 404 & 200). > > libcurl (the library used by gb.net.curl) has a flag to automatically > follow http redirections, but it is disabled by default. > > So I don't understand the result you have. Which version of libcurl do > you use on your system? > Actually, I don't think it is a libcurl issue since the first response header does contain the appropriate text and code. If I run the example project with slightly different output: rMatch = New RegExp(hClient.Headers[0], ".*? (\\d+) (.*)") TextArea1.Text = hClient.Headers[0] & "\n" TextArea1.Text &= "Parsed header code: " & IIf(rMatch[1], rMatch[1].Text, "No code found.") & "\n" TextArea1.Text &= "Parsed header reason: " & IIf(rMatch[2], rMatch[2].Text, "No reason found.") & "\n" TextArea1.Text &= "HttpClient.Code: " & hClient.Code & "\n" TextArea1.Text &= "HttpClient.Reason: " & hClient.Reason & "\n\n" For the two problem sites, I get: HTTP/1.1 301 Moved Permanently Parsed header code: 301 Parsed header reason: Moved Permanently HttpClient.Code: 0 HttpClient.Reason: and HTTP/1.1 302 Moved Temporarily Parsed header code: 302 Parsed header reason: Moved Temporarily HttpClient.Code: 0 HttpClient.Reason: For the 200 & 404 codes, it works as expected. Thinking it may be a Charset issue, I made sure to send a "Accept-Charset: utf-8" header - no difference. I've taken a quick look at CHttpClient.c and found http_parse_header, but I don't understand what "ret = (ret * 10) + (*p - '0')", among others(!), does. --- Lee From fernandojosecabral at ...626... Sat Apr 29 03:32:30 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Fri, 28 Apr 2017 22:32:30 -0300 Subject: [Gambas-user] sliderbox bug: Still respond to mouse wheel when its disabled Message-ID: Hi, gambas is new to me, but regex is not so new. But I am baffled with the following result: str = "A#BB##CCC###" print RegExp.Replace(str, "[#]+", ";") A;BB;;CCC;;; str = "A#BB##CCC###" print RegExp.Replace(str, "[#][#]*", ";") A;BB;;CCC;;; str = "A#BB##CCC###" print RegExp.Replace(str, "##**", ";") A;BB;;CCC;;; In my opinion, in every example above the result should be: A;BB;CC Nevertheless, gambas always displays A;BB;CCC;;;. Am I missing something,, or does gambas has a bug in this point? -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 <%2837%29%2099988-8868> Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 <%2837%29%2099988-8868> Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 <%2837%29%203521-2183> Telefone celular: +55 (37) 99988-8868 <%2837%29%2099988-8868> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From taboege at ...626... Sat Apr 29 13:48:09 2017 From: taboege at ...626... (Tobias Boege) Date: Sat, 29 Apr 2017 13:48:09 +0200 Subject: [Gambas-user] RegExp.Replace() question (was: sliderbox bug: Still respond to mouse wheel when its disabled) In-Reply-To: References: Message-ID: <20170429114808.GA556@...3600...> On Fri, 28 Apr 2017, Fernando Cabral wrote: > Hi, gambas is new to me, but regex is not so new. But I am baffled with the > following result: > > str = "A#BB##CCC###" > print RegExp.Replace(str, "[#]+", ";") > A;BB;;CCC;;; > str = "A#BB##CCC###" > print RegExp.Replace(str, "[#][#]*", ";") > A;BB;;CCC;;; > str = "A#BB##CCC###" > print RegExp.Replace(str, "##**", ";") > A;BB;;CCC;;; > > In my opinion, in every example above the result should be: > A;BB;CC > Nevertheless, gambas always displays A;BB;CCC;;;. > > Am I missing something,, or does gambas has a bug in this point? > We had this topic a few days ago [1]. When you use RegExp.Replace(), the greediness of all quantifiers is inverted. So when you use "[#]+" under RegExp.Replace(), this has the same meaning as the expression (in PCRE syntax) "[#]+?" matching lazily (or ungreedily) against the string, which explains the result you get. If you want greedy behaviour (what you expected), then you have to use ungreedy quantifiers: Print RegExp.Replace("A#BB##CCC###", "[#]+?", ";") Print RegExp.Replace("A#BB##CCC###", "[#][#]*?", ";") Print RegExp.Replace("A#BB##CCC###", "##*?", ";") --- A;BB;CCC; A;BB;CCC; A;BB;CCC; Yes, admittedly it is strange behaviour of RegExp.Replace() to invert the greediness of all quantifiers and it was discovered just a few days ago. I don't know if it is going to be fixed though. I bet there was a rationale behind this setting, but we'll have to wait for a comment of Benoit who wrote the code. Regards, Tobi [1] https://sourceforge.net/p/gambas/mailman/message/35802891/ PS: When you want to talk about a new topic, make a new thread and don't compose your email by replying to an existing message from the mailing list. Currently our conversation about RegExp.Replace() takes place in a thread about a specific SliderBox bug, which makes it harder for people in the future who are searching for this discussion. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From leondavisjr at ...626... Sat Apr 29 14:36:12 2017 From: leondavisjr at ...626... (Leon Davis) Date: Sat, 29 Apr 2017 07:36:12 -0500 Subject: [Gambas-user] Friend functionality Message-ID: Gambas v3.9.2 using GTK+3 In Microsoft VB there is a "Friend" designation that allows classes in the same project to access each others members while protecting those members access from the dot notation. Example: a programmer cannot access a friend member by typing "MyClass.ClassMember". Is that functionality available in Gambas? From taboege at ...626... Sat Apr 29 15:05:34 2017 From: taboege at ...626... (Tobias Boege) Date: Sat, 29 Apr 2017 15:05:34 +0200 Subject: [Gambas-user] Friend functionality In-Reply-To: References: Message-ID: <20170429130534.GB556@...3600...> On Sat, 29 Apr 2017, Leon Davis wrote: > Gambas v3.9.2 using GTK+3 > > In Microsoft VB there is a "Friend" designation that allows classes in the > same project to access each others members while protecting those members > access from the dot notation. Example: a programmer cannot access a friend > member by typing "MyClass.ClassMember". Is that functionality available in > Gambas? It's not. I think the usual replacement pattern for this in Gambas is to declare a pair of functions: Public Sub _SetClassMember(Value As Type) Public Function _GetClassMember() As Type The leading underscore makes the function names hidden in the IDE, but you can still access them despite being hidden: MyClass._SetClassMember(x) Print MyClass._GetClassMember() Of course, this offers no real protection. Anyone can use these functions from anywhere. You just have to keep the existence of these functions a secret between MyClass and its "friends". For example, did you know that gb.gui.base's GridView class lets you raise its Select event at will if you call GridView._RaiseSelect()? Gambas has Public and Private for visibility, Read and the absence of Read for access and Static for storage. I hope I remember correctly that Benoit stated that he doesn't want the Gambas OO mechanisms to become as convoluted as C++'s. This probably includes the modifiers friend, protected, virtual, final and what have you from other languages, as well as multiple inheritance, polymorphism (sadly) and operator overloading (which is actually available to some extent for native components). Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From leondavisjr at ...626... Sat Apr 29 15:24:12 2017 From: leondavisjr at ...626... (Leon Davis) Date: Sat, 29 Apr 2017 08:24:12 -0500 Subject: [Gambas-user] Friend functionality In-Reply-To: <20170429130534.GB556@...3600...> References: <20170429130534.GB556@...3600...> Message-ID: Thank you very much for your help Regards Leon On Sat, Apr 29, 2017 at 8:05 AM, Tobias Boege wrote: > On Sat, 29 Apr 2017, Leon Davis wrote: > > Gambas v3.9.2 using GTK+3 > > > > In Microsoft VB there is a "Friend" designation that allows classes in > the > > same project to access each others members while protecting those > members > > access from the dot notation. Example: a programmer cannot access a > friend > > member by typing "MyClass.ClassMember". Is that functionality available > in > > Gambas? > > It's not. I think the usual replacement pattern for this in Gambas is to > declare a pair of functions: > > Public Sub _SetClassMember(Value As Type) > Public Function _GetClassMember() As Type > > The leading underscore makes the function names hidden in the IDE, but you > can still access them despite being hidden: > > MyClass._SetClassMember(x) > Print MyClass._GetClassMember() > > Of course, this offers no real protection. Anyone can use these functions > from anywhere. You just have to keep the existence of these functions a > secret between MyClass and its "friends". For example, did you know that > gb.gui.base's GridView class lets you raise its Select event at will if > you call GridView._RaiseSelect()? > > Gambas has Public and Private for visibility, Read and the absence of Read > for access and Static for storage. I hope I remember correctly that Benoit > stated that he doesn't want the Gambas OO mechanisms to become as > convoluted > as C++'s. This probably includes the modifiers friend, protected, virtual, > final and what have you from other languages, as well as multiple > inheritance, > polymorphism (sadly) and operator overloading (which is actually available > to some extent for native components). > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Apr 29 16:04:07 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 29 Apr 2017 16:04:07 +0200 Subject: [Gambas-user] RegExp.Replace() question In-Reply-To: <20170429114808.GA556@...3600...> References: <20170429114808.GA556@...3600...> Message-ID: Le 29/04/2017 ? 13:48, Tobias Boege a ?crit : > > Yes, admittedly it is strange behaviour of RegExp.Replace() to invert > the greediness of all quantifiers and it was discovered just a few days > ago. I don't know if it is going to be fixed though. I bet there was a > rationale behind this setting, but we'll have to wait for a comment of > Benoit who wrote the code. > I have no idea about why I forced the PCRE_UNGREEDY flag. :-/ Maybe to match the behaviour of the Gambas Replace() function. The only thing I can do is the following: when specifying explicitly the RegExp.Ungreedy constant in the RegExp.Replace() options, then do the contrary (remove the ungreedy flag). What do you think about that? -- Beno?t Minisini From taboege at ...626... Sat Apr 29 16:30:22 2017 From: taboege at ...626... (Tobias Boege) Date: Sat, 29 Apr 2017 16:30:22 +0200 Subject: [Gambas-user] RegExp.Replace() question In-Reply-To: References: <20170429114808.GA556@...3600...> Message-ID: <20170429143022.GC556@...3600...> On Sat, 29 Apr 2017, Beno?t Minisini wrote: > Le 29/04/2017 ? 13:48, Tobias Boege a ?crit : > > > > Yes, admittedly it is strange behaviour of RegExp.Replace() to invert > > the greediness of all quantifiers and it was discovered just a few days > > ago. I don't know if it is going to be fixed though. I bet there was a > > rationale behind this setting, but we'll have to wait for a comment of > > Benoit who wrote the code. > > > > I have no idea about why I forced the PCRE_UNGREEDY flag. :-/ > > Maybe to match the behaviour of the Gambas Replace() function. > Hmm, I know I was involved in adding the Match operator and Replace() method, at least mentally, so I must have read and liked the code, too. I guess it looked like the saner default for substitutions to be ungreedy. The greedy and ungreedy modifiers in PCRE were something I probably didn't have in mind at that time. > The only thing I can do is the following: when specifying explicitly the > RegExp.Ungreedy constant in the RegExp.Replace() options, then do the > contrary (remove the ungreedy flag). > > What do you think about that? > That's a straightforward fix but makes the code even more confusing: RegExp.Replace(str, "#*", "", RegExp.Ungreedy) would greedily replace strings of "#". Maybe it is more explicit to add another constant entirely, like RegExp.ReplaceGreedy which does the same as you proposed but has a matching name. The documentation should continue to mention that the default behaviour of Replace() is to invert greediness and IMHO it should advise not to use the ungreedy modifier "?" if possible to avoid confusion. Any other opinions? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Sat Apr 29 20:43:32 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 29 Apr 2017 20:43:32 +0200 Subject: [Gambas-user] RegExp.Replace() question In-Reply-To: <20170429143022.GC556@...3600...> References: <20170429114808.GA556@...3600...> <20170429143022.GC556@...3600...> Message-ID: Le 29/04/2017 ? 16:30, Tobias Boege a ?crit : > On Sat, 29 Apr 2017, Beno?t Minisini wrote: >> Le 29/04/2017 ? 13:48, Tobias Boege a ?crit : >>> >>> Yes, admittedly it is strange behaviour of RegExp.Replace() to invert >>> the greediness of all quantifiers and it was discovered just a few days >>> ago. I don't know if it is going to be fixed though. I bet there was a >>> rationale behind this setting, but we'll have to wait for a comment of >>> Benoit who wrote the code. >>> >> >> I have no idea about why I forced the PCRE_UNGREEDY flag. :-/ >> >> Maybe to match the behaviour of the Gambas Replace() function. >> > > Hmm, I know I was involved in adding the Match operator and Replace() method, > at least mentally, so I must have read and liked the code, too. I guess it > looked like the saner default for substitutions to be ungreedy. The greedy > and ungreedy modifiers in PCRE were something I probably didn't have in mind > at that time. > >> The only thing I can do is the following: when specifying explicitly the >> RegExp.Ungreedy constant in the RegExp.Replace() options, then do the >> contrary (remove the ungreedy flag). >> >> What do you think about that? >> > > That's a straightforward fix but makes the code even more confusing: > > RegExp.Replace(str, "#*", "", RegExp.Ungreedy) > > would greedily replace strings of "#". Maybe it is more explicit to add > another constant entirely, like RegExp.ReplaceGreedy which does the same > as you proposed but has a matching name. The documentation should continue > to mention that the default behaviour of Replace() is to invert greediness > and IMHO it should advise not to use the ungreedy modifier "?" if possible > to avoid confusion. > > Any other opinions? > > Regards, > Tobi > Done in revision #8131. The RegExp.Greedy constant allows to disable the default ungreedy option of RegExp.Replace(). Regards, -- Beno?t Minisini From fernandojosecabral at ...626... Sat Apr 29 23:40:33 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sat, 29 Apr 2017 18:40:33 -0300 Subject: [Gambas-user] RegExp.Replace() question In-Reply-To: References: <20170429114808.GA556@...3600...> Message-ID: Beno?t I am prety new to Gambas, but quite an old hand with regular expression (almost from the time when sed, awk and vi were created. All of them allow heavy use of regular expression). It took me many hours to understand that, contrary to customs, Gambas regex are ungreedy. It took me some more hours to find out that "?" could be used to make the operators + and * to work as usual (I mean, for old hands like me). And half an hour more to find out that "&1" replace the older "\1" and not so old "$1". Those things are annoying when you are getting used to a new lingo. Even so, I am very impressed with the power you have built into Gambas. Amazing. -fernando 2017-04-29 11:04 GMT-03:00 Beno?t Minisini : > Le 29/04/2017 ? 13:48, Tobias Boege a ?crit : > > > > Yes, admittedly it is strange behaviour of RegExp.Replace() to invert > > the greediness of all quantifiers and it was discovered just a few days > > ago. I don't know if it is going to be fixed though. I bet there was a > > rationale behind this setting, but we'll have to wait for a comment of > > Benoit who wrote the code. > > > > I have no idea about why I forced the PCRE_UNGREEDY flag. :-/ > > Maybe to match the behaviour of the Gambas Replace() function. > > The only thing I can do is the following: when specifying explicitly the > RegExp.Ungreedy constant in the RegExp.Replace() options, then do the > contrary (remove the ungreedy flag). > > What do you think about that? > > -- > Beno?t Minisini > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From fernandojosecabral at ...626... Sat Apr 29 23:48:46 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sat, 29 Apr 2017 18:48:46 -0300 Subject: [Gambas-user] RegExp.Replace() question (was: sliderbox bug: Still respond to mouse wheel when its disabled) In-Reply-To: <20170429114808.GA556@...3600...> References: <20170429114808.GA556@...3600...> Message-ID: Tobi, I was not aware and have been careless with the subject issue. Sorry. As to the Regexp.Replace quirk, I found it out the hardest way: trying, trying and trying. Now I hope I have that knack of it. At least with the more basic expressions. Thank you. - fernando 2017-04-29 8:48 GMT-03:00 Tobias Boege : > On Fri, 28 Apr 2017, Fernando Cabral wrote: > > Hi, gambas is new to me, but regex is not so new. But I am baffled with > the > > following result: > > > > str = "A#BB##CCC###" > > print RegExp.Replace(str, "[#]+", ";") > > A;BB;;CCC;;; > > str = "A#BB##CCC###" > > print RegExp.Replace(str, "[#][#]*", ";") > > A;BB;;CCC;;; > > str = "A#BB##CCC###" > > print RegExp.Replace(str, "##**", ";") > > A;BB;;CCC;;; > > > > In my opinion, in every example above the result should be: > > A;BB;CC > > Nevertheless, gambas always displays A;BB;CCC;;;. > > > > Am I missing something,, or does gambas has a bug in this point? > > > > We had this topic a few days ago [1]. When you use RegExp.Replace(), > the greediness of all quantifiers is inverted. So when you use > > "[#]+" > > under RegExp.Replace(), this has the same meaning as the expression > (in PCRE syntax) > > "[#]+?" > > matching lazily (or ungreedily) against the string, which explains > the result you get. If you want greedy behaviour (what you expected), > then you have to use ungreedy quantifiers: > > Print RegExp.Replace("A#BB##CCC###", "[#]+?", ";") > Print RegExp.Replace("A#BB##CCC###", "[#][#]*?", ";") > Print RegExp.Replace("A#BB##CCC###", "##*?", ";") > --- > A;BB;CCC; > A;BB;CCC; > A;BB;CCC; > > Yes, admittedly it is strange behaviour of RegExp.Replace() to invert > the greediness of all quantifiers and it was discovered just a few days > ago. I don't know if it is going to be fixed though. I bet there was a > rationale behind this setting, but we'll have to wait for a comment of > Benoit who wrote the code. > > Regards, > Tobi > > [1] https://sourceforge.net/p/gambas/mailman/message/35802891/ > > PS: When you want to talk about a new topic, make a new thread and don't > compose your email by replying to an existing message from the mailing > list. Currently our conversation about RegExp.Replace() takes place > in a thread about a specific SliderBox bug, which makes it harder for > people in the future who are searching for this discussion. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From taboege at ...626... Sun Apr 30 00:19:26 2017 From: taboege at ...626... (Tobias Boege) Date: Sun, 30 Apr 2017 00:19:26 +0200 Subject: [Gambas-user] RegExp.Replace() question In-Reply-To: References: <20170429114808.GA556@...3600...> Message-ID: <20170429221926.GD556@...3600...> On Sat, 29 Apr 2017, Fernando Cabral wrote: > Beno?t > > I am prety new to Gambas, but quite an old hand with regular expression > (almost from the time when sed, awk and vi were created. All of them allow > heavy use of regular expression). It took me many hours to understand that, > contrary to customs, > Gambas regex are ungreedy. It took me some more hours to find out that "?" > could be used to make the operators > + and * to work as usual (I mean, for old hands like me). And half an hour > more to find out that "&1" replace the older "\1" and not so old "$1". > Those things are annoying when you are getting used to a new lingo. > But these two things could have been cleared up by looking at the right portion(!) of the documentation, which is often hard to find in the beginning, I know. RegExp.Replace() is a method of the RegExp class which resides in the gb.pcre component. Its main page in the wiki [1] tells you that PCRE are Perl-Compatible Regular Expressions and links to the libpcre [2] page for its syntax. The Replace() method page [3] itself tells you to use "&1" for backreferences. This is for consistency with the Subst$() intrinsic function and other substitution functions in Gambas which came before RegExp.Replace() -- all of them use "&1". And for the future: you will encounter another type of regular expressions much more often in Gambas than the PCREs, namely the LIKE expressions [4]. You will notice that they are very primitive, maybe too primitive if you're used to sed-style expressions, and have an incompatible syntax. Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.pcre [2] http://gambaswiki.org/wiki/doc/pcre [3] http://gambaswiki.org/wiki/comp/gb.pcre/regexp/replace [4] http://gambaswiki.org/wiki/lang/like -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk