From adamnt42 at gmail.com Sat Sep 2 08:16:36 2023 From: adamnt42 at gmail.com (BB) Date: Sat, 2 Sep 2023 15:46:36 +0930 Subject: [Gambas-user] sqlite full text search i.e. virtual tables Message-ID: <26053140-cf28-c7f2-c236-14be0227a26d@gmail.com> Do we support queries on sqlite virtual tables? I am trying to implement a full text search on names in 3 tables. sqlite3 has a full text search (FTS) facility that seems to work quite well after limited testing* but I can't seem to get access to it via gb.db conn.Find() or conn.Exec(). The info on sqlite FTS can be found here . Any clues? tia Bruce * I can add, delete and change the base tables and can successfully "update" the FTS "table". Queries executed outside Gambas work fine. The search table has two columns, name and type where type is "person", "building", "place". A simple query on the FTS would be something like "SELECT * FROM namesrch WHERE name MATCH 'Haricot';" -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.fischer6 at web.de Sat Sep 2 10:46:45 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Sat, 2 Sep 2023 10:46:45 +0200 Subject: [Gambas-user] Some more example projects to be distributed with gambas Message-ID: Hi all, I created some example projects during my tour through the gambas universe that might be useful for others too. - DatabaseEditor: Example program that demonstrates how to use data-bound controls to edit database records I use DataSource, DataBrowser, DataControl and DataCombo here. Note that this example builds up the DB connection programmatically. - DatabaseEditorDesignTimeConnection: Example program that demonstrates how to use data-bound controls to edit database records. I use DataSource, DataBrowser, DataControl and DataCombo here. Note that this example uses a connection to the DB that is specified at design-time via the gambas IDE. As a consequence the IDE provides support when binding controls to tables and fields by offering the available tables or field names. - Multiprocessing: Learn to use a Task to do some background calculations. The Task class allows long running calculations to be executed in spawned process(es) to prevent UI from blocking during long running calculations. In this example prime numbers up to a max number are calculated which takes some time for big numbes. Therefore a single Task instance takes care of this calculation in the background. I already published these projects on the gambas software farm. If you are interested, please have a look into the projects. If you think that some of this might be relevant for other gambas newbies, include it into the examples distributed together with gambas. Regards ____________________________________ Martin Fischer From bsteers4 at gmail.com Sat Sep 2 11:14:52 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 2 Sep 2023 10:14:52 +0100 Subject: [Gambas-user] Some more example projects to be distributed with gambas In-Reply-To: References: Message-ID: On Sat, 2 Sept 2023 at 09:47, Martin Fischer wrote: > Hi all, > > I created some example projects during my tour through the gambas > universe that might be useful for others too. > > - DatabaseEditor: > Example program that demonstrates how to use data-bound controls to > edit database records > I use DataSource, DataBrowser, DataControl and DataCombo here. > Note that this example builds up the DB connection programmatically. > > - DatabaseEditorDesignTimeConnection: > Example program that demonstrates how to use data-bound controls to > edit database records. > I use DataSource, DataBrowser, DataControl and DataCombo here. > Note that this example uses a connection to the DB that is specified > at design-time via the gambas IDE. As a consequence the IDE provides > support when binding controls to tables and fields by offering the > available tables or field names. > > - Multiprocessing: > Learn to use a Task to do some background calculations. > The Task class allows long running calculations to be executed in > spawned process(es) to prevent UI from blocking during long running > calculations. > In this example prime numbers up to a max number are calculated which > takes some time for big numbes. > Therefore a single Task instance takes care of this calculation in > the background. > > I already published these projects on the gambas software farm. > > If you are interested, please have a look into the projects. > If you think that some of this might be relevant for other gambas > newbies, include it into the examples distributed together with gambas. > Are the "example" programs well documented? you can post them here... http://gambaswiki.org/wiki/app and here... https://forum.gambas.one/viewforum.php?f=13&sid=02b6ad70ecd1d329705bcd041622459e. .. There's a few other forums too. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.fischer6 at web.de Sat Sep 2 13:07:41 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Sat, 2 Sep 2023 13:07:41 +0200 Subject: [Gambas-user] Some more example projects to be distributed with gambas In-Reply-To: References: Message-ID: > > Are the "example" programs well documented? > > you can post them here... > http://gambaswiki.org/wiki/app > > and here... > https://forum.gambas.one/viewforum.php?f=13&sid=02b6ad70ecd1d329705bcd041622459e. .. > > There's a few other forums too. > > BruceS > Hi Bruce, now I'm confused... First of all, "well documented" is very subjective. - Are these examples as well documented as the other examples distributed with gambas? Yes :-) - Are they documented good enough? Depends. They try to show a single thing. They are minimal. Not much documentation needed then. But surely they do not explain all knowledge that is required to build them. For example: the database examples use a DataSource control and arrange the data-bound controls as children of it. Why? That's something the gambas documentation shall explain. It's not documented as part of the example. And that's fine. After this rant: here's how I see it as a learner of gambas: When I want to learn something new I do: 1. Read the documentation. 2. Go over tutorials. I used the examples distributed with gambas for that. Some were helpful, some not. That's normal. 3. Write my own examples to familiarize myself with the ecosystem. The examples distributed with gambas are tutorials. This means: - there shall be many of them... - each area of gambas shall be covered by at least one example - each example shall focus on one topic only (sure: not always possible) This means that an example is not some random app that someone wrote to solve a real (business-)problem. They are meant to be educational! I see the apps mentioned in the wiki and hosted on the software farm as the real application that do something useful. To sum this up: - educational, tutorial-style examples: distributed with gambas - real apps: hosted on software farm and/or mentioned in the wiki/app Am I wrong with this view? What is your take on this? Regards, Martin From adamnt42 at gmail.com Sat Sep 2 13:29:53 2023 From: adamnt42 at gmail.com (BB) Date: Sat, 2 Sep 2023 20:59:53 +0930 Subject: [Gambas-user] Some more example projects to be distributed with gambas In-Reply-To: References: Message-ID: <1b983b3b-abc4-5e7d-eb2c-e7a8de1d769a@gmail.com> On 2/9/23 8:37 pm, Martin Fischer wrote: >> >> Are the "example" programs well documented? >> >> you can post them here... >> http://gambaswiki.org/wiki/app >> >> and here... >> https://forum.gambas.one/viewforum.php?f=13&sid=02b6ad70ecd1d329705bcd041622459e. >> .. >> >> >> There's a few other forums too. >> >> BruceS >> > > Hi Bruce, > > now I'm confused... > > First of all, "well documented" is very subjective. > - Are these examples as well documented as the other examples > distributed with gambas? Yes :-) > - Are they documented good enough? Depends. They try to show a single > thing. They are minimal. Not much documentation needed then. But surely > they do not explain all knowledge that is required to build them. For > example: the database examples use a DataSource control and arrange the > data-bound controls as children of it. Why? That's something the gambas > documentation shall explain. It's not documented as part of the example. > And that's fine. > > After this rant: here's how I see it as a learner of gambas: > When I want to learn something new I do: > 1. Read the documentation. > 2. Go over tutorials. I used the examples distributed with gambas for > that. Some were helpful, some not. That's normal. > 3. Write my own examples to familiarize myself with the ecosystem. > > The examples distributed with gambas are tutorials. This means: > - there shall be many of them... > - each area of gambas shall be covered by at least one example > - each example shall focus on one topic only (sure: not always possible) > > This means that an example is not some random app that someone wrote to > solve a real (business-)problem. They are meant to be educational! > > I see the apps mentioned in the wiki and hosted on the software farm as > the real application that do something useful. > > To sum this up: > - educational, tutorial-style examples: distributed with gambas > - real apps: hosted on software farm and/or mentioned in the wiki/app > > Am I wrong with this view? > What is your take on this? > > Regards, > Martin > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Some may disagree but I reckon that well documented means a total overload of everything you thought of while writing that code. In defense and after a decade or so of revisiting my own sometimes years old code, the phrases "FIIK if I know what I was tying to do here" and similarly "WTF is this real" oft pop into mind. Even then sometimes the "assumptions" astound me ("Where the hell did you get the idea that this database query will always return a non-zero result?", "Why does nullifying a list based control mean that I cant find the row that I just deleted a moment ago?" "Who wrote this **** anyway?" etc). These days I have taken a leaf out of the un-lamented Ward Cunningham's doctrine and usually start writing a "story" inside any new procedure to try and explain to myself what-it-is-thet-it-is-thet-I-am-trying-to-do-here. Unless the proc is evidently so simple as to be taken for granted. You know what? Documentation costs, bucketloads on Monday, a few shekles on Tuesday, a grain of sand on Friday, possibly a groat next week. But a concubines ransom thereafter. ymmv The other bruce From adamnt42 at gmail.com Sat Sep 2 13:34:08 2023 From: adamnt42 at gmail.com (BB) Date: Sat, 2 Sep 2023 21:04:08 +0930 Subject: [Gambas-user] Some more example projects to be distributed with gambas In-Reply-To: <1b983b3b-abc4-5e7d-eb2c-e7a8de1d769a@gmail.com> References: <1b983b3b-abc4-5e7d-eb2c-e7a8de1d769a@gmail.com> Message-ID: <90e487e3-fc4c-9230-99ae-b79ee04ba83f@gmail.com> On 2/9/23 8:59 pm, BB wrote: > > On 2/9/23 8:37 pm, Martin Fischer wrote: >>> >>> Are the "example" programs well documented? >>> >>> you can post them here... >>> http://gambaswiki.org/wiki/app >>> >>> and here... >>> https://forum.gambas.one/viewforum.php?f=13&sid=02b6ad70ecd1d329705bcd041622459e. >>> .. >>> >>> >>> There's a few other forums too. >>> >>> BruceS >>> >> >> Hi Bruce, >> >> now I'm confused... >> >> First of all, "well documented" is very subjective. >> - Are these examples as well documented as the other examples >> distributed with gambas? Yes :-) >> - Are they documented good enough? Depends. They try to show a single >> thing. They are minimal. Not much documentation needed then. But surely >> they do not explain all knowledge that is required to build them. For >> example: the database examples use a DataSource control and arrange the >> data-bound controls as children of it. Why? That's something the gambas >> documentation shall explain. It's not documented as part of the example. >> And that's fine. >> >> After this rant: here's how I see it as a learner of gambas: >> When I want to learn something new I do: >> 1. Read the documentation. >> 2. Go over tutorials. I used the examples distributed with gambas for >> that. Some were helpful, some not. That's normal. >> 3. Write my own examples to familiarize myself with the ecosystem. >> >> The examples distributed with gambas are tutorials. This means: >> - there shall be many of them... >> - each area of gambas shall be covered by at least one example >> - each example shall focus on one topic only (sure: not always possible) >> >> This means that an example is not some random app that someone wrote to >> solve a real (business-)problem. They are meant to be educational! >> >> I see the apps mentioned in the wiki and hosted on the software farm as >> the real application that do something useful. >> >> To sum this up: >> - educational, tutorial-style examples: distributed with gambas >> - real apps: hosted on software farm and/or mentioned in the wiki/app >> >> Am I wrong with this view? >> What is your take on this? >> >> Regards, >> Martin >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Some may disagree but I reckon that well documented means a total > overload of everything you thought of while writing that code. In > defense and after a decade or so of revisiting my own sometimes years > old code, the phrases "FIIK if I know what I was tying to do here" and > similarly "WTF is this real" oft pop into mind. Even then sometimes > the "assumptions" astound me ("Where the hell did you get the idea > that this database query will always return a non-zero result?", "Why > does nullifying a list based control mean that I cant find the row > that I just deleted a moment ago?" "Who wrote this **** anyway?" etc). > > These days I have taken a leaf out of the un-lamented Ward > Cunningham's doctrine and usually start writing a "story" inside any > new procedure to try and explain to myself > what-it-is-thet-it-is-thet-I-am-trying-to-do-here. Unless the proc is > evidently so simple as to be taken for granted. > > You know what? Documentation costs, bucketloads on Monday, a few > shekles on Tuesday, a grain of sand on Friday, possibly a groat next > week. But a concubines ransom thereafter. > > ymmv > > The other bruce > Sorry, that last one should have been "But a lack of documentation will cost you a concubines ransom thereafter." From adamnt42 at gmail.com Sat Sep 2 14:02:03 2023 From: adamnt42 at gmail.com (BB) Date: Sat, 2 Sep 2023 21:32:03 +0930 Subject: [Gambas-user] Some more example projects to be distributed with gambas In-Reply-To: <90e487e3-fc4c-9230-99ae-b79ee04ba83f@gmail.com> References: <1b983b3b-abc4-5e7d-eb2c-e7a8de1d769a@gmail.com> <90e487e3-fc4c-9230-99ae-b79ee04ba83f@gmail.com> Message-ID: <51906e03-332a-2926-29e8-f577019031d4@gmail.com> (story) To illustrate, this type of thing. In the early 1970's I was employed as a "senior programmer/project manager" on a project at a rather large international merchant bank. One day I was hauled over the coals by the IT Director asking "Why doesn't your system stop the dealers from selling the stock lodged as security on a loan?". Thinking quickly I replied "Well, I guess the programmers assumed that no moron would even try that." I doubt that would stand up in court these days. But I do still remember the identity of the said programmer. (Wanders away with hands in pocket, whistling "Moonlight Shadow") On 2/9/23 9:04 pm, BB wrote: > > On 2/9/23 8:59 pm, BB wrote: >> >> On 2/9/23 8:37 pm, Martin Fischer wrote: >>>> >>>> Are the "example" programs well documented? >>>> >>>> you can post them here... >>>> http://gambaswiki.org/wiki/app >>>> >>>> and here... >>>> https://forum.gambas.one/viewforum.php?f=13&sid=02b6ad70ecd1d329705bcd041622459e. >>>> .. >>>> >>>> >>>> There's a few other forums too. >>>> >>>> BruceS >>>> >>> >>> Hi Bruce, >>> >>> now I'm confused... >>> >>> First of all, "well documented" is very subjective. >>> - Are these examples as well documented as the other examples >>> distributed with gambas? Yes :-) >>> - Are they documented good enough? Depends. They try to show a single >>> thing. They are minimal. Not much documentation needed then. But surely >>> they do not explain all knowledge that is required to build them. For >>> example: the database examples use a DataSource control and arrange the >>> data-bound controls as children of it. Why? That's something the gambas >>> documentation shall explain. It's not documented as part of the >>> example. >>> And that's fine. >>> >>> After this rant: here's how I see it as a learner of gambas: >>> When I want to learn something new I do: >>> 1. Read the documentation. >>> 2. Go over tutorials. I used the examples distributed with gambas for >>> that. Some were helpful, some not. That's normal. >>> 3. Write my own examples to familiarize myself with the ecosystem. >>> >>> The examples distributed with gambas are tutorials. This means: >>> - there shall be many of them... >>> - each area of gambas shall be covered by at least one example >>> - each example shall focus on one topic only (sure: not always >>> possible) >>> >>> This means that an example is not some random app that someone wrote to >>> solve a real (business-)problem. They are meant to be educational! >>> >>> I see the apps mentioned in the wiki and hosted on the software farm as >>> the real application that do something useful. >>> >>> To sum this up: >>> - educational, tutorial-style examples: distributed with gambas >>> - real apps: hosted on software farm and/or mentioned in the wiki/app >>> >>> Am I wrong with this view? >>> What is your take on this? >>> >>> Regards, >>> Martin >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> Some may disagree but I reckon that well documented means a total >> overload of everything you thought of while writing that code. In >> defense and after a decade or so of revisiting my own sometimes years >> old code, the phrases "FIIK if I know what I was tying to do here" >> and similarly "WTF is this real" oft pop into mind. Even then >> sometimes the "assumptions" astound me ("Where the hell did you get >> the idea that this database query will always return a non-zero >> result?", "Why does nullifying a list based control mean that I cant >> find the row that I just deleted a moment ago?" "Who wrote this **** >> anyway?" etc). >> >> These days I have taken a leaf out of the un-lamented Ward >> Cunningham's doctrine and usually start writing a "story" inside any >> new procedure to try and explain to myself >> what-it-is-thet-it-is-thet-I-am-trying-to-do-here. Unless the proc is >> evidently so simple as to be taken for granted. >> >> You know what? Documentation costs, bucketloads on Monday, a few >> shekles on Tuesday, a grain of sand on Friday, possibly a groat next >> week. But a concubines ransom thereafter. >> >> ymmv >> >> The other bruce >> > Sorry, that last one should have been "But a lack of documentation > will cost you a concubines ransom thereafter." From bsteers4 at gmail.com Sat Sep 2 14:03:01 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 2 Sep 2023 13:03:01 +0100 Subject: [Gambas-user] Some more example projects to be distributed with gambas In-Reply-To: References: Message-ID: On Sat, 2 Sept 2023 at 12:08, Martin Fischer wrote: > > > > Are the "example" programs well documented? > > > > you can post them here... > > http://gambaswiki.org/wiki/app > > > > and here... > > > https://forum.gambas.one/viewforum.php?f=13&sid=02b6ad70ecd1d329705bcd041622459e. > < > https://forum.gambas.one/viewforum.php?f=13&sid=02b6ad70ecd1d329705bcd041622459e > .>.. > > > > There's a few other forums too. > > > > BruceS > > > > Hi Bruce, > > now I'm confused... > > First of all, "well documented" is very subjective. > - Are these examples as well documented as the other examples > distributed with gambas? Yes :-) > - Are they documented good enough? Depends. They try to show a single > thing. They are minimal. Not much documentation needed then. But surely > they do not explain all knowledge that is required to build them. For > example: the database examples use a DataSource control and arrange the > data-bound controls as children of it. Why? That's something the gambas > documentation shall explain. It's not documented as part of the example. > And that's fine. > > After this rant: here's how I see it as a learner of gambas: > When I want to learn something new I do: > 1. Read the documentation. > 2. Go over tutorials. I used the examples distributed with gambas for > that. Some were helpful, some not. That's normal. > 3. Write my own examples to familiarize myself with the ecosystem. > > The examples distributed with gambas are tutorials. This means: > - there shall be many of them... > - each area of gambas shall be covered by at least one example > - each example shall focus on one topic only (sure: not always possible) > > This means that an example is not some random app that someone wrote to > solve a real (business-)problem. They are meant to be educational! > > I see the apps mentioned in the wiki and hosted on the software farm as > the real application that do something useful. > > To sum this up: > - educational, tutorial-style examples: distributed with gambas > - real apps: hosted on software farm and/or mentioned in the wiki/app > > Am I wrong with this view? > What is your take on this? > > Regards, > Martin > I think if every "gambas learner" as you describe yourself wants their examples distributed with gambas itself then gambas would soon become a HUGE download. I think the examples included with gambas should be written by someone who knows gambas inside and out not just a newb who's really proud of themself. (We've all been there) ;) I think sometimes I am too cheeky for my own good ;) lol I also think my opinion does not really matter, I'm just going blah blah blah here, if Benoit likes your examples then maybe hell add them to the collection? But I think it's what the farm was designed for, so people can put their examples there. no need to add more to everyones gambas download. Unless it's a well documented/commented example that'll help with understanding. ;) again , just my humble opinion, Benoit might not want it even if it is well documented. I guess it's just food for thought. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Sat Sep 2 14:50:49 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Sep 2023 14:50:49 +0200 Subject: [Gambas-user] sqlite full text search i.e. virtual tables In-Reply-To: <26053140-cf28-c7f2-c236-14be0227a26d@gmail.com> References: <26053140-cf28-c7f2-c236-14be0227a26d@gmail.com> Message-ID: Le 02/09/2023 ? 08:16, BB a ?crit?: > Do we support queries on sqlite virtual tables? I am trying to implement > a full text search on names in 3 tables. sqlite3 has a full text search > (FTS) facility that seems to work quite well after limited testing* but > I can't seem to get access to it via gb.db conn.Find() or conn.Exec(). > > The info on sqlite FTS can be found here . > > Any clues? > > tia > > Bruce > > * I can add, delete and change the base tables and can successfully > "update" the FTS "table". Queries executed outside Gambas work fine. The > search table has two columns, name and type where type is "person", > "building", "place". A simple query on the FTS would be something like > "SELECT * FROM namesrch WHERE name MATCH 'Haricot';" > The Exec() method allows you to run any SQL request, so I don't see why you couldn't use this SQLite extension. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Sat Sep 2 14:54:19 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Sep 2023 14:54:19 +0200 Subject: [Gambas-user] Some more example projects to be distributed with gambas In-Reply-To: References: Message-ID: <8d71bfd0-ec48-94da-f3a5-7feecb3565b1@gambas-basic.org> Le 02/09/2023 ? 10:46, Martin Fischer a ?crit?: > Hi all, > > I created some example projects during my tour through the gambas > universe that might be useful for others too. > > - DatabaseEditor: > ? Example program that demonstrates how to use data-bound controls to > ? edit database records > ? I use DataSource, DataBrowser, DataControl and DataCombo here. > ? Note that this example builds up the DB connection programmatically. > > - DatabaseEditorDesignTimeConnection: > ? Example program that demonstrates how to use data-bound controls to > ? edit database records. > ? I use DataSource, DataBrowser, DataControl and DataCombo here. > ? Note that this example uses a connection to the DB that is specified > ? at design-time via the gambas IDE. As a consequence the IDE provides > ? support when binding controls to tables and fields by offering the > ? available tables or field names. > > - Multiprocessing: > ? Learn to use a Task to do some background calculations. > ? The Task class allows long running calculations to be executed in > ? spawned process(es) to prevent UI from blocking during long running > ? calculations. > ? In this example prime numbers up to a max number are calculated which > ? takes some time for big numbes. > ? Therefore a single Task instance takes care of this calculation in > ? the background. > > I already published these projects on the gambas software farm. > > If you are interested, please have a look into the projects. > If you think that some of this might be relevant for other gambas > newbies, include it into the examples distributed together with gambas. > > Regards > ____________________________________ > Martin Fischer > If you know git, you can add your examples to 'app/examples/' and make a merge request on 'gitlab.com'. Otherwise I can add them myself. And a useful third solution: learn how to use git! Regards, -- Beno?t Minisini. From adamnt42 at gmail.com Sat Sep 2 15:17:56 2023 From: adamnt42 at gmail.com (BB) Date: Sat, 2 Sep 2023 22:47:56 +0930 Subject: [Gambas-user] sqlite full text search i.e. virtual tables In-Reply-To: References: <26053140-cf28-c7f2-c236-14be0227a26d@gmail.com> Message-ID: <23b19450-5ae8-c7a8-b8c4-552ef0157939@gmail.com> On 2/9/23 10:20 pm, Beno?t Minisini wrote: > Le 02/09/2023 ? 08:16, BB a ?crit?: >> Do we support queries on sqlite virtual tables? I am trying to >> implement a full text search on names in 3 tables. sqlite3 has a full >> text search (FTS) facility that seems to work quite well after >> limited testing* but I can't seem to get access to it via gb.db >> conn.Find() or conn.Exec(). >> >> The info on sqlite FTS can be found here >> . >> >> Any clues? >> >> tia >> >> Bruce >> >> * I can add, delete and change the base tables and can successfully >> "update" the FTS "table". Queries executed outside Gambas work fine. >> The search table has two columns, name and type where type is >> "person", "building", "place". A simple query on the FTS would be >> something like "SELECT * FROM namesrch WHERE name MATCH 'Haricot';" >> > > The Exec() method allows you to run any SQL request, so I don't see > why you couldn't use this SQLite extension. > > Regards, > Aaaargh! 3 hours ago it didn't work, now it does. It was raising an error that the table ("namesrch") did not exist, hence my post. Now, after dinner and a bit of TV, I came back and just before closing the project concerned tried it again. ... Are you some kind of sorcerer or something ? bests b From adamnt42 at gmail.com Sat Sep 2 15:18:12 2023 From: adamnt42 at gmail.com (BB) Date: Sat, 2 Sep 2023 22:48:12 +0930 Subject: [Gambas-user] sqlite full text search i.e. virtual tables In-Reply-To: References: <26053140-cf28-c7f2-c236-14be0227a26d@gmail.com> Message-ID: <4bb600c7-4ff7-4d11-9a32-0d7a80232a2c@gmail.com> On 2/9/23 10:20 pm, Beno?t Minisini wrote: > Le 02/09/2023 ? 08:16, BB a ?crit?: >> Do we support queries on sqlite virtual tables? I am trying to >> implement a full text search on names in 3 tables. sqlite3 has a full >> text search (FTS) facility that seems to work quite well after >> limited testing* but I can't seem to get access to it via gb.db >> conn.Find() or conn.Exec(). >> >> The info on sqlite FTS can be found here >> . >> >> Any clues? >> >> tia >> >> Bruce >> >> * I can add, delete and change the base tables and can successfully >> "update" the FTS "table". Queries executed outside Gambas work fine. >> The search table has two columns, name and type where type is >> "person", "building", "place". A simple query on the FTS would be >> something like "SELECT * FROM namesrch WHERE name MATCH 'Haricot';" >> > > The Exec() method allows you to run any SQL request, so I don't see > why you couldn't use this SQLite extension. > > Regards, > Aaaargh! 3 hours ago it didn't work, now it does. It was raising an error that the table ("namesrch") did not exist, hence my post. Now, after dinner and a bit of TV, I came back and just before closing the project concerned tried it again. ... Are you some kind of sorcerer or something ? bests b From benoit.minisini at gambas-basic.org Sat Sep 2 15:47:02 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Sep 2023 15:47:02 +0200 Subject: [Gambas-user] sqlite full text search i.e. virtual tables In-Reply-To: <23b19450-5ae8-c7a8-b8c4-552ef0157939@gmail.com> References: <26053140-cf28-c7f2-c236-14be0227a26d@gmail.com> <23b19450-5ae8-c7a8-b8c4-552ef0157939@gmail.com> Message-ID: Le 02/09/2023 ? 15:17, BB a ?crit?: >> >> The Exec() method allows you to run any SQL request, so I don't see >> why you couldn't use this SQLite extension. >> >> Regards, >> > Aaaargh! 3 hours ago it didn't work, now it does. > > It was raising an error that the table ("namesrch") did not exist, hence > my post. Now, after dinner and a bit of TV, I came back and just before > closing the project concerned tried it again. > > > ... > > > Are you some kind of sorcerer or something ? > > bests > > b > It happens to me all the time. Someone comes saying that his code does not work and that he is searching for hours. Then I ask him if he did everything right, and then he usually finds immediately what was wrong. :-) -- Beno?t Minisini. From martin.fischer6 at web.de Sat Sep 2 15:51:03 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Sat, 2 Sep 2023 15:51:03 +0200 Subject: [Gambas-user] Some more example projects to be distributed with gambas In-Reply-To: <8d71bfd0-ec48-94da-f3a5-7feecb3565b1@gambas-basic.org> References: <8d71bfd0-ec48-94da-f3a5-7feecb3565b1@gambas-basic.org> Message-ID: > > If you know git, you can add your examples to 'app/examples/' and make a > merge request on 'gitlab.com'. > > Otherwise I can add them myself. > > And a useful third solution: learn how to use git! > > Regards, > Benoit, I will create a MR. Feel free to do whatever you want with these examples in the MR. If you find them (or some of them) helpful, merge it to master. If not, ignore the MR. In any case: it was fun to create them and that's all that matters :-) Peace, Martin From jose.rodriguez at cenpalab.cu Mon Sep 4 02:16:54 2023 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Sun, 03 Sep 2023 20:16:54 -0400 Subject: [Gambas-user] [DMARC]Re: sqlite full text search i.e. virtual tables In-Reply-To: <4bb600c7-4ff7-4d11-9a32-0d7a80232a2c@gmail.com> References: <26053140-cf28-c7f2-c236-14be0227a26d@gmail.com> <4bb600c7-4ff7-4d11-9a32-0d7a80232a2c@gmail.com> Message-ID: <3e6e83f1fb0ad01e22f936104241cf31@cenpalab.cu> On 2023-09-02 09:18, BB wrote: > On 2/9/23 10:20 pm, Beno?t Minisini wrote: >> Le 02/09/2023 ? 08:16, BB a ?crit?: >>> Do we support queries on sqlite virtual tables? I am trying to >>> implement a full text search on names in 3 tables. sqlite3 has a full >>> text search (FTS) facility that seems to work quite well after >>> limited testing* but I can't seem to get access to it via gb.db >>> conn.Find() or conn.Exec(). >>> >>> The info on sqlite FTS can be found here >>> . >>> >>> Any clues? >>> >>> tia >>> >>> Bruce >>> >>> * I can add, delete and change the base tables and can successfully >>> "update" the FTS "table". Queries executed outside Gambas work fine. >>> The search table has two columns, name and type where type is >>> "person", "building", "place". A simple query on the FTS would be >>> something like "SELECT * FROM namesrch WHERE name MATCH 'Haricot';" >>> >> >> The Exec() method allows you to run any SQL request, so I don't see >> why you couldn't use this SQLite extension. >> >> Regards, >> > Aaaargh! 3 hours ago it didn't work, now it does. > That's par for the course. I find that after squeezing your brains and the docs, then a hefty bout of googling, an ep of your current goto TV series plus a drink or two (the latter is most important, hehehe) makes everything suddenly just falls into place. Regards, Joe1962 From adamnt42 at gmail.com Mon Sep 4 04:44:53 2023 From: adamnt42 at gmail.com (BB) Date: Mon, 4 Sep 2023 12:14:53 +0930 Subject: [Gambas-user] sqlite full text search i.e. virtual tables In-Reply-To: References: <26053140-cf28-c7f2-c236-14be0227a26d@gmail.com> <23b19450-5ae8-c7a8-b8c4-552ef0157939@gmail.com> Message-ID: <76f64e4f-b665-d75c-6597-814d8ebab748@gmail.com> On 2/9/23 11:17 pm, Beno?t Minisini wrote: > Le 02/09/2023 ? 15:17, BB a ?crit?: >>> >>> The Exec() method allows you to run any SQL request, so I don't see >>> why you couldn't use this SQLite extension. >>> >>> Regards, >>> >> Aaaargh! 3 hours ago it didn't work, now it does. >> >> It was raising an error that the table ("namesrch") did not exist, >> hence my post. Now, after dinner and a bit of TV, I came back and >> just before closing the project concerned tried it again. >> >> >> ... >> >> >> Are you some kind of sorcerer or something ? >> >> bests >> >> b >> > > It happens to me all the time. Someone comes saying that his code does > not work and that he is searching for hours. Then I ask him if he did > everything right, and then he usually finds immediately what was wrong. > > :-) > I _think_ that I _may_ have figured out what was happening. I had the database file open in a db browser ("DB Browser for SQLite") mucking about with the structure of the FTS table. After dinner I closed the browser which of course released it's "lock" on the database. Then when I re-ran my project it just worked, of course. I must remember that sqlite is a "single user" dbms.? b -------------- next part -------------- An HTML attachment was scrubbed... URL: From Karl.Reinl at Fen-Net.de Mon Sep 4 11:53:28 2023 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Mon, 04 Sep 2023 11:53:28 +0200 Subject: [Gambas-user] sqlite full text search i.e. virtual tables In-Reply-To: References: <26053140-cf28-c7f2-c236-14be0227a26d@gmail.com> <23b19450-5ae8-c7a8-b8c4-552ef0157939@gmail.com> Message-ID: <66c836c529c537cb593514c84e05e94ff211eb34.camel@Fen-Net.de> Am Samstag, dem 02.09.2023 um 15:47 +0200 schrieb Beno?t Minisini: > It happens to me all the time. Someone comes saying that his code > does not work and that he is searching for hours. Then I ask him if > he did everything right, and then he usually finds immediately what > was wrong. > At the end a classic, you have this problem, you get stuck with. Find a colleague, but you don't show him the code, no, you describe to him what you do, how you do it. While doing so, you usually notice the error by yourself. The best way is to have a coffee in the kitchen, far away from the computer. see also the mail from Joe1962 -- Amicalement Charlie From brian at westwoodsvcs.com Tue Sep 5 00:12:23 2023 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 4 Sep 2023 15:12:23 -0700 Subject: [Gambas-user] Toggle overwrite mode in textbox programmatically Message-ID: I am trying to toggle the input mode to overwrite in my program. to allow to edit a line of hex numbers without del and inserting new Is there a way to do this in gambas code? I have not been able to find it so far! except to actually press the insert key -- ~~~~ Brian -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x78BFB26402F48419.asc Type: application/pgp-keys Size: 2428 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From t.lee.davidson at gmail.com Tue Sep 5 02:33:49 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 4 Sep 2023 20:33:49 -0400 Subject: [Gambas-user] Toggle overwrite mode in textbox programmatically In-Reply-To: References: Message-ID: On 9/4/23 18:12, Brian G wrote: > I am trying to toggle the input mode to overwrite in my program. > > to allow to edit a line of hex numbers without del and inserting new > > Is there a way to do this in gambas code? > > I have not been able to find it so far! except to actually press the insert key You might try Desktop.SendKeys("[Insert]"). https://gambaswiki.org/wiki/comp/gb.desktop/desktop/sendkeys -- Lee From benoit.minisini at gambas-basic.org Tue Sep 5 13:03:42 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Sep 2023 13:03:42 +0200 Subject: [Gambas-user] Initial support for making AppImage Message-ID: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> Hi, I have just added to the IDE a new package type to the packager wizard: AppImage! You are welcome to test it and report any problem. I think it won't work easily. It is not entirely finished. Support for adding extra dependencies and extra files is not done yet. AFAIK, The AppImage limitations are the following: - You need the 'appimage-builder' tool. See: https://appimage-builder.readthedocs.io/en/latest/intro/install.html#intro-install - This tool apparently works only on Debian, Ubuntu and ArchLinux. Please check that if you can. - AppImage does not like applications using OpenGL. Please check that too. - The resulting AppImage files are big (at least 50 Mb) and slow to start (I mean slower than it should). Otherwise, it's cool. Regards, -- Beno?t Minisini. From brian at westwoodsvcs.com Tue Sep 5 14:22:53 2023 From: brian at westwoodsvcs.com (brian) Date: Tue, 5 Sep 2023 05:22:53 -0700 Subject: [Gambas-user] Toggle overwrite mode in textbox programmatically In-Reply-To: References: , Message-ID: <02FF15D9-4071-2D4F-9251-DBE04DB59FC2@hxcore.ol> An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Sep 5 15:02:58 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 5 Sep 2023 09:02:58 -0400 Subject: [Gambas-user] Toggle overwrite mode in textbox programmatically In-Reply-To: <02FF15D9-4071-2D4F-9251-DBE04DB59FC2@hxcore.ol> References: <02FF15D9-4071-2D4F-9251-DBE04DB59FC2@hxcore.ol> Message-ID: On 9/5/23 08:22, brian wrote: > Will this work with Wayland as well > > ~~~~~ Brian I don't know. Can you try it? -- Lee From adamnt42 at gmail.com Tue Sep 5 15:13:21 2023 From: adamnt42 at gmail.com (BB) Date: Tue, 5 Sep 2023 22:43:21 +0930 Subject: [Gambas-user] Toggle overwrite mode in textbox programmatically In-Reply-To: <02FF15D9-4071-2D4F-9251-DBE04DB59FC2@hxcore.ol> References: <02FF15D9-4071-2D4F-9251-DBE04DB59FC2@hxcore.ol> Message-ID: <6fc4b6da-0d71-42ac-8380-6380b4b4d7ae@gmail.com> On 5/9/23 9:52 pm, brian wrote: > Will this work with Wayland as well > > ~~~~~ Brian > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Probably "as well" as anything else with Wayland. /(Obvious smelly comment redacted)/ Theoretically, it should as you are only trying to send it "within" the current program. But "Whooe" knows. best of luck b -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Sep 5 15:32:41 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 5 Sep 2023 14:32:41 +0100 Subject: [Gambas-user] Toggle overwrite mode in textbox programmatically In-Reply-To: <02FF15D9-4071-2D4F-9251-DBE04DB59FC2@hxcore.ol> References: <02FF15D9-4071-2D4F-9251-DBE04DB59FC2@hxcore.ol> Message-ID: On Tue, 5 Sep 2023, 13:30 brian, wrote: > Will this work with Wayland as well > > ~~~~~ Brian > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Sendkeys is an x11 function I don't think Wayland does it. But Wayland with xwayland installed does get some things working. I'd say try it and see. But officially I think the answer is no. Desktop.SendKeys is an x11 only function. Respects BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Sep 5 15:37:14 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 5 Sep 2023 14:37:14 +0100 Subject: [Gambas-user] Toggle overwrite mode in textbox programmatically In-Reply-To: References: <02FF15D9-4071-2D4F-9251-DBE04DB59FC2@hxcore.ol> Message-ID: On Tue, 5 Sep 2023, 14:32 Bruce Steers, wrote: > > > On Tue, 5 Sep 2023, 13:30 brian, wrote: > >> Will this work with Wayland as well >> >> ~~~~~ Brian >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > Sendkeys is an x11 function I don't think Wayland does it. > > But Wayland with xwayland installed does get some things working. > > I'd say try it and see. > > But officially I think the answer is no. Desktop.SendKeys is an x11 only > function. > > Respects > BruceS > It's deffo no. Here's the sendkeys code... Static Public Sub SendKeys(Keys As String) Select Case LoadPlatform() Case "x11" X11.SendKeys(Keys) Default Main.NotSupported End Select End -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Tue Sep 5 16:27:11 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Sep 2023 16:27:11 +0200 Subject: [Gambas-user] Toggle overwrite mode in textbox programmatically In-Reply-To: References: Message-ID: Le 05/09/2023 ? 00:12, Brian G a ?crit?: > I am trying to toggle the input mode to overwrite in my program. > > to allow to edit a line of hex numbers without del and inserting new > > Is there a way to do this in gambas code? > > I have not been able to find it so far! except to actually press the > insert key > For information, GTK+ TextBox has support for overwrite mode, but not Qt5 TextBox. As I have to follow the less common denominator, you don't have access to that property! Regards, -- Beno?t Minisini. From gambas.fr at gmail.com Tue Sep 5 18:59:21 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 5 Sep 2023 18:59:21 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> Message-ID: Normally on fedora too Le mar. 5 sept. 2023 ? 13:04, Beno?t Minisini < benoit.minisini at gambas-basic.org> a ?crit : > Hi, > > I have just added to the IDE a new package type to the packager wizard: > AppImage! > > You are welcome to test it and report any problem. I think it won't work > easily. > > It is not entirely finished. Support for adding extra dependencies and > extra files is not done yet. > > AFAIK, The AppImage limitations are the following: > > - You need the 'appimage-builder' tool. See: > > https://appimage-builder.readthedocs.io/en/latest/intro/install.html#intro-install > > - This tool apparently works only on Debian, Ubuntu and ArchLinux. > Please check that if you can. > > - AppImage does not like applications using OpenGL. Please check that too. > > - The resulting AppImage files are big (at least 50 Mb) and slow to > start (I mean slower than it should). > > Otherwise, it's cool. > > Regards, > > -- > Beno?t Minisini. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.cruilles at yahoo.fr Tue Sep 5 19:17:30 2023 From: olivier.cruilles at yahoo.fr (Linus) Date: Tue, 5 Sep 2023 13:17:30 -0400 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> Message-ID: <807B4C0B-3A16-4CD0-A832-57B11C370AEC@yahoo.fr> Hello, ?appimage-builder? is a Pyhton3 script so to install it on Fedora and other I proceeded like that: Into you user account: python3 -m pip install appimage-builder Now I?m testing if it?s enough to produce an appimage from Gambas IDE on Fedora 37 Olivier Cruilles > Le 5 sept. 2023 ? 12:59, Fabien Bodard a ?crit : > > Normally on fedora too > > Le mar. 5 sept. 2023 ? 13:04, Beno?t Minisini > a ?crit : > Hi, > > I have just added to the IDE a new package type to the packager wizard: > AppImage! > > You are welcome to test it and report any problem. I think it won't work > easily. > > It is not entirely finished. Support for adding extra dependencies and > extra files is not done yet. > > AFAIK, The AppImage limitations are the following: > > - You need the 'appimage-builder' tool. See: > https://appimage-builder.readthedocs.io/en/latest/intro/install.html#intro-install > > - This tool apparently works only on Debian, Ubuntu and ArchLinux. > Please check that if you can. > > - AppImage does not like applications using OpenGL. Please check that too. > > - The resulting AppImage files are big (at least 50 Mb) and slow to > start (I mean slower than it should). > > Otherwise, it's cool. > > Regards, > > -- > Beno?t Minisini. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Tue Sep 5 19:18:44 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Sep 2023 19:18:44 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> Message-ID: <585dd586-198c-d88f-60a7-0ca12cbd81da@gambas-basic.org> Le 05/09/2023 ? 18:59, Fabien Bodard a ?crit?: > Normally on fedora too > It can use 'apt' on fedora? -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Tue Sep 5 19:24:57 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Sep 2023 19:24:57 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <807B4C0B-3A16-4CD0-A832-57B11C370AEC@yahoo.fr> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <807B4C0B-3A16-4CD0-A832-57B11C370AEC@yahoo.fr> Message-ID: <5239ec07-425d-a677-c948-373f7ce49b98@gambas-basic.org> Le 05/09/2023 ? 19:17, Linus via User a ?crit?: > Hello, > > ?appimage-builder? is a Pyhton3 script so to install it on Fedora and > other I proceeded like that: > > > Into you user account: > > ? ? ?python3 -m pip install appimage-builder > > Now I?m testing if it?s enough to produce an appimage from Gambas IDE on > Fedora 37 > > Olivier Cruilles > OK, thanks. If 'appimage-builder' runs on Fedora, and if it requires 'apt' to generate the AppImage, I will have to check that 'apt' is available, which is not necessary with Ubuntu or Debian. It's the same problem with ArchLinux. Regards, -- Beno?t Minisini. From olivier.cruilles at yahoo.fr Tue Sep 5 20:29:19 2023 From: olivier.cruilles at yahoo.fr (Linus) Date: Tue, 5 Sep 2023 14:29:19 -0400 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <5239ec07-425d-a677-c948-373f7ce49b98@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <807B4C0B-3A16-4CD0-A832-57B11C370AEC@yahoo.fr> <5239ec07-425d-a677-c948-373f7ce49b98@gambas-basic.org> Message-ID: Unfortunately it fail do to ?/etc/lsb-release? file does not exist on Fedora, even I installed ?redhat-lsb? package. This one does not provide /etc/lsb-release? file. On Internet, they mention to use ?/etc/os-release? that seems to be present on most distributions Olivier > Le 5 sept. 2023 ? 13:24, Beno?t Minisini a ?crit : > > Le 05/09/2023 ? 19:17, Linus via User a ?crit : >> Hello, >> ?appimage-builder? is a Pyhton3 script so to install it on Fedora and other I proceeded like that: >> Into you user account: >> python3 -m pip install appimage-builder >> Now I?m testing if it?s enough to produce an appimage from Gambas IDE on Fedora 37 >> Olivier Cruilles > > OK, thanks. > > If 'appimage-builder' runs on Fedora, and if it requires 'apt' to generate the AppImage, I will have to check that 'apt' is available, which is not necessary with Ubuntu or Debian. > > It's the same problem with ArchLinux. > > Regards, > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From benoit.minisini at gambas-basic.org Tue Sep 5 20:58:46 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Sep 2023 20:58:46 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <807B4C0B-3A16-4CD0-A832-57B11C370AEC@yahoo.fr> <5239ec07-425d-a677-c948-373f7ce49b98@gambas-basic.org> Message-ID: Le 05/09/2023 ? 20:29, Linus via User a ?crit?: > Unfortunately it fail do to ?/etc/lsb-release? file does not exist on Fedora, even I installed ?redhat-lsb? package. This one does not provide /etc/lsb-release? file. > > On Internet, they mention to use ?/etc/os-release? that seems to be present on most distributions > > Olivier > 'apt' is mandatory to retrieve Gambas packages from Ubuntu ppa, and so the name of the Ubuntu distribution is needed. I read it from '/etc/lsb-release' (so that the generated AppImage is in sync with your current system). So maybe I should add a combo to choose the distribution if '/etc/lsb-release' does not exist. In the meanwhile, if you can try patching the IDE source code to not read that file, but use a hardcoded Ubuntu version instead (for example 'lunar'), we will see if the process can go on. Anyway, The 'AppImageBuilder' website does not say that it works with Fedora. -- Beno?t Minisini. From bsteers4 at gmail.com Tue Sep 5 22:50:34 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 5 Sep 2023 21:50:34 +0100 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <807B4C0B-3A16-4CD0-A832-57B11C370AEC@yahoo.fr> <5239ec07-425d-a677-c948-373f7ce49b98@gambas-basic.org> Message-ID: On Tue, 5 Sep 2023, 19:30 Linus via User, wrote: > Unfortunately it fail do to ?/etc/lsb-release? file does not exist on > Fedora, even I installed ?redhat-lsb? package. This one does not provide > /etc/lsb-release? file. > > On Internet, they mention to use ?/etc/os-release? that seems to be > present on most distributions > > Olivier > I always check for both and also check for /etc/upstream-release/ folder for the same if I want to know the base version. Ie. LinuxMint holds its Ubuntu info there and many other upstream distros use that path too. lsb-release and os-release files have different key names to watch out for. Respects BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Tue Sep 5 23:53:40 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Sep 2023 23:53:40 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <807B4C0B-3A16-4CD0-A832-57B11C370AEC@yahoo.fr> <5239ec07-425d-a677-c948-373f7ce49b98@gambas-basic.org> Message-ID: <3be8373c-60aa-de2a-fc5c-66c59ac7a159@gambas-basic.org> Le 05/09/2023 ? 22:50, Bruce Steers a ?crit?: > > > On Tue, 5 Sep 2023, 19:30 Linus via User, > wrote: > > Unfortunately it fail do to ?/etc/lsb-release? file does not exist > on Fedora, even I installed ?redhat-lsb? package. This one does not > provide /etc/lsb-release? file. > > On Internet, they mention to use ?/etc/os-release? that seems to be > present on most distributions > > Olivier > > > I always check for both and also check for /etc/upstream-release/ folder > for the same if I want to know the base version. Ie. LinuxMint holds its > Ubuntu info there and many other upstream distros use that path too. > > lsb-release and os-release files have different key names to watch out for. > > Respects > BruceS > I don't need to know the system version, I need to choose an Ubuntu version for the local 'apt' used by the AppImageBuilder tool to build the AppImage. It does that by installing Ubuntu packages inside the AppImage build directory. Whatever AppImageBuilder supports, I need Ubuntu because the Gambas binary packages come from the Gambas Ubuntu PPA. If I could use the binary packages for any distrubtion, I think I could use Debian, ArchLinux... inside AppImageBuilder. But they are often known to not working properly. So, at the moment, Ubuntu is required to build an AppImage. For other systems, I need to know what packages source I can put inside the AppImageBuilder configuration file. For Debian, it's easy (but you will be sticked to older Gambas versions, which may be a problem for your application). For ArchLinux, I don't know what to put exactly in that configuration file. I will continue to read the documentation. For RPM-based distributions, I don't think they are supported, as it isn't stated in the AppImageBuilder documentation. But I may be wrong. Regards, -- Beno?t Minisini. From brian at westwoodsvcs.com Wed Sep 6 07:23:17 2023 From: brian at westwoodsvcs.com (brian) Date: Tue, 5 Sep 2023 22:23:17 -0700 Subject: [Gambas-user] Toggle overwrite mode in textbox programmatically In-Reply-To: References: , Message-ID: <60F6B512-E34A-F24C-B785-9BBADAB5D0A6@hxcore.ol> An HTML attachment was scrubbed... URL: From gambas at servinfo.it Wed Sep 6 11:37:34 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Wed, 6 Sep 2023 11:37:34 +0200 Subject: [Gambas-user] Concatenate collection Message-ID: <030445b9-71fb-8824-67d6-fb8f057128f5@servinfo.it> Hi all , is there a way to unite two collection without doing one key at time ? something like: dim a as collection = [ "val1": 1 , "val2": 2 ] dim b as collection = [ "val3": 3 , "val4": 4 ] print a + b? -->? [ "val1": 1 , "val2": 2 , "val3": 3 , "val4": 4 ] thank's in advance, marco. From adamnt42 at gmail.com Wed Sep 6 12:05:14 2023 From: adamnt42 at gmail.com (BB) Date: Wed, 6 Sep 2023 19:35:14 +0930 Subject: [Gambas-user] Concatenate collection In-Reply-To: <030445b9-71fb-8824-67d6-fb8f057128f5@servinfo.it> References: <030445b9-71fb-8824-67d6-fb8f057128f5@servinfo.it> Message-ID: <840894dc-ed67-6d8f-641c-8c57256537e9@gmail.com> On 6/9/23 7:07 pm, Marco Ancillotti wrote: > Hi all , > > is there a way to unite two collection without doing one key at time ? > > something like: > > dim a as collection = [ "val1": 1 , "val2": 2 ] > dim b as collection = [ "val3": 3 , "val4": 4 ] > > print a + b? -->? [ "val1": 1 , "val2": 2 , "val3": 3 , "val4": 4 ] > > thank's in advance, > marco. Good question! But no, not inbuilt. However, you could override the Collection class and add say a Merge(fromCollection as Collection) method, but you'd need to be careful of how you want to handle collisions. so then you could for example a.merge(b) to get "a" now containing the four. Or, you might look at the Collection.Copy source to see if there's something in there that could spark an idea. hth b From benoit.minisini at gambas-basic.org Wed Sep 6 12:44:39 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 6 Sep 2023 12:44:39 +0200 Subject: [Gambas-user] Concatenate collection In-Reply-To: <030445b9-71fb-8824-67d6-fb8f057128f5@servinfo.it> References: <030445b9-71fb-8824-67d6-fb8f057128f5@servinfo.it> Message-ID: <0623dd50-9c1a-c7b6-7230-5cf40c9970dc@gambas-basic.org> Le 06/09/2023 ? 11:37, Marco Ancillotti a ?crit?: > Hi all , > > is there a way to unite two collection without doing one key at time ? > > something like: > > dim a as collection = [ "val1": 1 , "val2": 2 ] > dim b as collection = [ "val3": 3 , "val4": 4 ] > > print a + b? -->? [ "val1": 1 , "val2": 2 , "val3": 3 , "val4": 4 ] > > thank's in advance, > marco. > It would be something like that: For Each v In b a[b.Key] = v Next Three lines of code should not be a big deal. But yes, it could be put into the interpreter as an Insert() method. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Wed Sep 6 12:45:51 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 6 Sep 2023 12:45:51 +0200 Subject: [Gambas-user] Concatenate collection In-Reply-To: <0623dd50-9c1a-c7b6-7230-5cf40c9970dc@gambas-basic.org> References: <030445b9-71fb-8824-67d6-fb8f057128f5@servinfo.it> <0623dd50-9c1a-c7b6-7230-5cf40c9970dc@gambas-basic.org> Message-ID: Le 06/09/2023 ? 12:44, Beno?t Minisini a ?crit?: > Le 06/09/2023 ? 11:37, Marco Ancillotti a ?crit?: >> Hi all , >> >> is there a way to unite two collection without doing one key at time ? >> >> something like: >> >> dim a as collection = [ "val1": 1 , "val2": 2 ] >> dim b as collection = [ "val3": 3 , "val4": 4 ] >> >> print a + b? -->? [ "val1": 1 , "val2": 2 , "val3": 3 , "val4": 4 ] >> >> thank's in advance, >> marco. >> > > It would be something like that: > > For Each v In b > ? a[b.Key] = v > Next > > Three lines of code should not be a big deal. > > But yes, it could be put into the interpreter as an Insert() method. > > Regards, > And no, I don't think it can be done without adding one key at a time. Because Collections are hash table. Regards, -- Beno?t Minisini. From jussi.lahtinen at gmail.com Wed Sep 6 14:55:14 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 6 Sep 2023 15:55:14 +0300 Subject: [Gambas-user] Concatenate collection In-Reply-To: <0623dd50-9c1a-c7b6-7230-5cf40c9970dc@gambas-basic.org> References: <030445b9-71fb-8824-67d6-fb8f057128f5@servinfo.it> <0623dd50-9c1a-c7b6-7230-5cf40c9970dc@gambas-basic.org> Message-ID: > > It would be something like that: > > For Each v In b > a[b.Key] = v > Next > > Three lines of code should not be a big deal. > > But yes, it could be put into the interpreter as an Insert() method. > What about duplicate keys? Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Sep 6 16:34:07 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 6 Sep 2023 10:34:07 -0400 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> Message-ID: <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> On 9/5/23 07:03, Beno?t Minisini wrote: > You need the 'appimage-builder' tool. See: https://appimage-builder.readthedocs.io/en/latest/intro/install.html#intro-install I'm confused. It appears that AppImageBuilder is a project by AppImageCrafters; while the official AppImage project is AppImageKit which provides 'appimagetool'. I just successfully built and executed a simple AppImage (size: 194Kb) with AppImageTool on openSUSE. > Whatever AppImageBuilder supports, I need Ubuntu because the Gambas binary packages come from the Gambas Ubuntu PPA. Again, I am confused. Is it not possible to simply pull the binary files from the user's own system? -- Lee From t.lee.davidson at gmail.com Wed Sep 6 16:39:31 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 6 Sep 2023 10:39:31 -0400 Subject: [Gambas-user] Concatenate collection In-Reply-To: References: <030445b9-71fb-8824-67d6-fb8f057128f5@servinfo.it> <0623dd50-9c1a-c7b6-7230-5cf40c9970dc@gambas-basic.org> Message-ID: On 9/6/23 08:55, Jussi Lahtinen wrote: > It would be something like that: > > For Each v In b > ? ?a[b.Key] = v > Next > > Three lines of code should not be a big deal. > > But yes, it could be put into the interpreter as an Insert() method. > > > What about duplicate keys? > > Jussi Good question. There would probably need to be a Mode parameter that tells the method how to handle them. Like, perhaps, 'overwrite' the receiver's key/value with the Inserted key/value, do not overwrite, or quarantine duplicate Inserted keys into a separate collection. -- Lee From benoit.minisini at gambas-basic.org Wed Sep 6 16:40:23 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 6 Sep 2023 16:40:23 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> Message-ID: Le 06/09/2023 ? 16:34, T Lee Davidson a ?crit?: > On 9/5/23 07:03, Beno?t Minisini wrote: >> You need the 'appimage-builder' tool. See: >> https://appimage-builder.readthedocs.io/en/latest/intro/install.html#intro-install > > I'm confused. It appears that AppImageBuilder is a project by > AppImageCrafters; while the official AppImage project is AppImageKit > which provides 'appimagetool'. > > I just successfully built and executed a simple AppImage (size: 194Kb) > with AppImageTool on openSUSE. > > >> Whatever AppImageBuilder supports, I need Ubuntu because the Gambas >> binary packages come from the Gambas Ubuntu PPA. > > Again, I am confused. Is it not possible to simply pull the binary files > from the user's own system? > > I don't know. I don't know AppImage enough, I just followed the process described here: https://appimage-builder.readthedocs.io/en/latest/examples/gambas3.html If you can explain how to do the same thing with 'appimagetool', you are welcome. The problem is: how to find all shared libraries to install from the gambas interpreter and all components needed by your project? 'appimage-builder' (almost) succeeds in that by using dependencies of Ubuntu packages. Regards, -- Beno?t Minisini. From gambas.fr at gmail.com Wed Sep 6 19:14:20 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 6 Sep 2023 19:14:20 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> Message-ID: Le mer. 6 sept. 2023 ? 16:41, Beno?t Minisini < benoit.minisini at gambas-basic.org> a ?crit : > Le 06/09/2023 ? 16:34, T Lee Davidson a ?crit : > > On 9/5/23 07:03, Beno?t Minisini wrote: > >> You need the 'appimage-builder' tool. See: > >> > https://appimage-builder.readthedocs.io/en/latest/intro/install.html#intro-install > > > > I'm confused. It appears that AppImageBuilder is a project by > > AppImageCrafters; while the official AppImage project is AppImageKit > > which provides 'appimagetool'. > > > > I just successfully built and executed a simple AppImage (size: 194Kb) > > with AppImageTool on openSUSE. > > > > > >> Whatever AppImageBuilder supports, I need Ubuntu because the Gambas > >> binary packages come from the Gambas Ubuntu PPA. > > > > Again, I am confused. Is it not possible to simply pull the binary files > > from the user's own system? > > > > > > I don't know. I don't know AppImage enough, I just followed the process > described here: > https://appimage-builder.readthedocs.io/en/latest/examples/gambas3.html > > If you can explain how to do the same thing with 'appimagetool', you are > welcome. > > The problem is: how to find all shared libraries to install from the > gambas interpreter and all components needed by your project? > 'appimage-builder' (almost) succeeds in that by using dependencies of > Ubuntu packages. > > Regards, > > -- > Beno?t Minisini. > > Appimagetool is used by appimagebuilder. Appimage builder is just a tool that make the AppDir with all the dependencies from binary packages. It use the dependencies tree generated by apt or else to make the virtual machine. this way is far more easy and have the security of a new clean system for each appimage. appimagetool can use a receipe to get the files from the system where the making occur. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Wed Sep 6 19:16:50 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 6 Sep 2023 19:16:50 +0200 Subject: [Gambas-user] Concatenate collection In-Reply-To: References: <030445b9-71fb-8824-67d6-fb8f057128f5@servinfo.it> <0623dd50-9c1a-c7b6-7230-5cf40c9970dc@gambas-basic.org> Message-ID: Le mer. 6 sept. 2023 ? 16:40, T Lee Davidson a ?crit : > On 9/6/23 08:55, Jussi Lahtinen wrote: > > It would be something like that: > > > > For Each v In b > > a[b.Key] = v > > Next > > > > Three lines of code should not be a big deal. > > > > But yes, it could be put into the interpreter as an Insert() method. > > > > > > What about duplicate keys? > > > > Jussi > > Good question. There would probably need to be a Mode parameter that tells > the method how to handle them. Like, perhaps, > 'overwrite' the receiver's key/value with the Inserted key/value, do not > overwrite, or quarantine duplicate Inserted keys into a > separate collection. > Well so 3 lines are not a big deal finally? It allow user to manage each detail. > > > > -- > Lee > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Sep 6 22:48:34 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 6 Sep 2023 16:48:34 -0400 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> Message-ID: <4c77f145-e842-4106-8d2a-a5a209c8a5a6@gmail.com> On 9/6/23 10:40, Beno?t Minisini wrote: > I don't know. I don't know AppImage enough, I just followed the process described here: > https://appimage-builder.readthedocs.io/en/latest/examples/gambas3.html > > If you can explain how to do the same thing with 'appimagetool', you are welcome. > > The problem is: how to find all shared libraries to install from the gambas interpreter and all components needed by your > project? 'appimage-builder' (almost) succeeds in that by using dependencies of Ubuntu?packages. And that is indeed a significant problem as generating a dependency tree seems to be no simple matter; at least not for RPM-based distros. Zypper (openSUSE) and DNF (Fedora) both utilize libsolv under the hood to resolve dependencies. There are examples for using it (written in C, Perl, Python, Ruby, and TCL) at the project's repository: https://github.com/openSUSE/libsolv/tree/master/examples However, building a (somewhat) universal dependency tree generator using libsolv would still undoubtedly be quite involved. So, it seems that appimage-builder just may be the way to go. Unfortunately, it does not work on openSUSE as the generated YML file was obviously unusable. -- Lee From benoit.minisini at gambas-basic.org Thu Sep 7 01:15:10 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Sep 2023 01:15:10 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <4c77f145-e842-4106-8d2a-a5a209c8a5a6@gmail.com> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> <4c77f145-e842-4106-8d2a-a5a209c8a5a6@gmail.com> Message-ID: <6a00498d-d1ab-d2cc-b0eb-d1598874e94c@gambas-basic.org> Le 06/09/2023 ? 22:48, T Lee Davidson a ?crit?: > However, building a (somewhat) universal dependency tree generator using > libsolv would still undoubtedly be quite involved. So, it seems that > appimage-builder just may be the way to go. Unfortunately, it does not > work on openSUSE as the generated YML file was obviously unusable. > As soon as 'apt' can run on your system, it will work. And there is no reason why 'apt' should not work on OpenSUSE. -- Beno?t Minisini. From olivier.cruilles at yahoo.fr Thu Sep 7 02:46:24 2023 From: olivier.cruilles at yahoo.fr (Linus) Date: Wed, 6 Sep 2023 20:46:24 -0400 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <6a00498d-d1ab-d2cc-b0eb-d1598874e94c@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> <4c77f145-e842-4106-8d2a-a5a209c8a5a6@gmail.com> <6a00498d-d1ab-d2cc-b0eb-d1598874e94c@gambas-basic.org> Message-ID: Hello, Yes ?apt? is part of the package available on Fedora 37 in my case, but no repository or files in /etc/apt/ is installed or configured. This is the documentation related to ?apt? on Fedora https://docs.fedoraproject.org/en-US/quick-docs/dnf-vs-apt/ Why is APT in the Fedora repositories? APT can not be used to install packages on Fedora, you have to use DNF instead. The apt command on Fedora used to???until Fedora 32 ???actually be APT-RPM, which basically mapped normal apt commands so that they worked with Fedora?s RPM package management system. However, APT-RPM is unmaintained, broken, and insecure, and so was dropped in favour of shipping the actual Debian APT software. Since APT exclusively deals with .deb packages, the aptcommand can no longer be used to manage Fedora packages. Its purpose is now purely as a tool for people building packages for Debian-based distributions on a Fedora system. Olivier > Le 6 sept. 2023 ? 19:15, Beno?t Minisini a ?crit : > > Le 06/09/2023 ? 22:48, T Lee Davidson a ?crit : >> However, building a (somewhat) universal dependency tree generator using libsolv would still undoubtedly be quite involved. So, it seems that appimage-builder just may be the way to go. Unfortunately, it does not work on openSUSE as the generated YML file was obviously unusable. > > As soon as 'apt' can run on your system, it will work. And there is no reason why 'apt' should not work on OpenSUSE. > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Thu Sep 7 02:58:25 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Sep 2023 02:58:25 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> <4c77f145-e842-4106-8d2a-a5a209c8a5a6@gmail.com> <6a00498d-d1ab-d2cc-b0eb-d1598874e94c@gambas-basic.org> Message-ID: <19154b31-6eea-3dfe-aa1e-1047371357ca@gambas-basic.org> Le 07/09/2023 ? 02:46, Linus via User a ?crit?: > Hello, > > Yes ?apt? is part of the package available on Fedora 37 in my case, but > no repository or files in /etc/apt/ is installed or configured. > If I don't find any apt configuration, I should choose an Ubuntu repository by default. And I have to fix the distribution choice problem. Then, logically, you will be able to make AppImage as soon as both 'apt' and 'appimage-builder' are installed. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Thu Sep 7 04:02:50 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Sep 2023 04:02:50 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <19154b31-6eea-3dfe-aa1e-1047371357ca@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> <4c77f145-e842-4106-8d2a-a5a209c8a5a6@gmail.com> <6a00498d-d1ab-d2cc-b0eb-d1598874e94c@gambas-basic.org> <19154b31-6eea-3dfe-aa1e-1047371357ca@gambas-basic.org> Message-ID: <57285345-dbb0-8438-b407-1ee668fea010@gambas-basic.org> Le 07/09/2023 ? 02:58, Beno?t Minisini a ?crit?: > Le 07/09/2023 ? 02:46, Linus via User a ?crit?: >> Hello, >> >> Yes ?apt? is part of the package available on Fedora 37 in my case, >> but no repository or files in /etc/apt/ is installed or configured. >> > > If I don't find any apt configuration, I should choose an Ubuntu > repository by default. > > And I have to fix the distribution choice problem. > > Then, logically, you will be able to make AppImage as soon as both 'apt' > and 'appimage-builder' are installed. > > Regards, > It's done in the last commit. Can you try it ? By installing 'apt' and 'appimage-builder' on your system, and then choosing a public Ubuntu repository and a distribution. From my system: - http://fr.archive.ubuntu.com/ubuntu/ - lunar But you can try any other repository and distribution just for checking. The distribution supported by the Gambas PPA are listed in the distribution combo-box of the packager wizard. For information: I noticed that JIT applications seem to not be reliable with lunar. But with older distributions, it seems to be better. Regards, -- Beno?t Minisini. From olivier.cruilles at yahoo.fr Thu Sep 7 04:35:56 2023 From: olivier.cruilles at yahoo.fr (Linus) Date: Wed, 6 Sep 2023 22:35:56 -0400 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <57285345-dbb0-8438-b407-1ee668fea010@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> <4c77f145-e842-4106-8d2a-a5a209c8a5a6@gmail.com> <6a00498d-d1ab-d2cc-b0eb-d1598874e94c@gambas-basic.org> <19154b31-6eea-3dfe-aa1e-1047371357ca@gambas-basic.org> <57285345-dbb0-8438-b407-1ee668fea010@gambas-basic.org> Message-ID: Here what I obtain: Sauvegarde du fichier CHANGELOG. ============================================================================== CR?ATION DU PAQUET POUR APPIMAGE. Fabrication du r?pertoire de construction. rm -rf '/home/linus/.var/tmp/AppImage/AppDir' mkdir -p '/home/linus/.var/tmp/AppImage/AppDir/usr/bin' mkdir -p '/home/linus/.var/tmp/AppImage/AppDir/usr/share/icons/hicolor/256x256/apps' G?n?ration du fichier de configuration de 'AppImageBuilder'. Cr?ation de l'AppImage... cd '/home/linus/.var/tmp/AppImage' appimage-builder --skip-script --skip-tests INFO:main:Running apt deploy INFO:apt:apt-get update E: Entr?e 1 mal form?e dans list fichier /home/linus/.var/tmp/AppImage/appimage-build/apt/sources.list (URI parse) E: La liste des sources ne peut ?tre lue. ERROR:root:"apt-get update" execution failed Traceback (most recent call last): File "/home/linus/.local/bin/appimage-builder", line 8, in sys.exit(__main__()) ^^^^^^^^^^ File "/home/linus/.local/lib/python3.11/site-packages/appimagebuilder/__main__.py", line 50, in __main__ invoker.execute(commands) File "/home/linus/.local/lib/python3.11/site-packages/appimagebuilder/invoker.py", line 29, in execute command() File "/home/linus/.local/lib/python3.11/site-packages/appimagebuilder/commands/apt_deploy.py", line 46, in __call__ deployed_packages = apt_deploy.deploy( ^^^^^^^^^^^^^^^^^^ File "/home/linus/.local/lib/python3.11/site-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 39, in deploy self._prepare_apt_venv() File "/home/linus/.local/lib/python3.11/site-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 48, in _prepare_apt_venv self.apt_venv.update() File "/home/linus/.local/lib/python3.11/site-packages/appimagebuilder/modules/deploy/apt/venv.py", line 161, in update shell.assert_successful_result(_proc) File "/home/linus/.local/lib/python3.11/site-packages/appimagebuilder/utils/shell.py", line 35, in assert_successful_result raise RuntimeError( RuntimeError: "apt-get update" execution failed with code 100 La construction des paquets a ?chou?. Package.MakeAppImagePackage.2942: Impossible de cr?er l'AppImage. Olivier Cruilles Senior Systems Administrator, Triton Digital 1440 Ste-Catherine Ouest, Suite 1200 | Montreal, QC, H3G 1R8 o +1-514-431-2960 olivier.cruilles at tritondigital.com Olivier > Le 6 sept. 2023 ? 22:02, Beno?t Minisini a ?crit : > > Le 07/09/2023 ? 02:58, Beno?t Minisini a ?crit : >> Le 07/09/2023 ? 02:46, Linus via User a ?crit : >>> Hello, >>> >>> Yes ?apt? is part of the package available on Fedora 37 in my case, but no repository or files in /etc/apt/ is installed or configured. >>> >> If I don't find any apt configuration, I should choose an Ubuntu repository by default. >> And I have to fix the distribution choice problem. >> Then, logically, you will be able to make AppImage as soon as both 'apt' and 'appimage-builder' are installed. >> Regards, > > It's done in the last commit. > > Can you try it ? By installing 'apt' and 'appimage-builder' on your system, and then choosing a public Ubuntu repository and a distribution. > > From my system: > - http://fr.archive.ubuntu.com/ubuntu/ > - lunar > > But you can try any other repository and distribution just for checking. > > The distribution supported by the Gambas PPA are listed in the distribution combo-box of the packager wizard. > > For information: I noticed that JIT applications seem to not be reliable with lunar. But with older distributions, it seems to be better. > > Regards, > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: S?lection_1398.png Type: image/png Size: 49640 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: S?lection_1399.png Type: image/png Size: 139356 bytes Desc: not available URL: From tercoide at hotmail.com Thu Sep 7 05:02:47 2023 From: tercoide at hotmail.com (martin cristia) Date: Thu, 7 Sep 2023 00:02:47 -0300 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: References: Message-ID: It creates the AppImage but it won't run > I have just added to the IDE a new package type to the packager wizard: > AppImage! > It won't create the AppImage if the program uses OpenGL > - AppImage does not like applications using OpenGL. Please check that too. > > [System] Gambas=3.18.90 OperatingSystem=Linux Distribution=Ubuntu 22.04.3 LTS Kernel=6.2.0-31-generic Architecture=x86_64 Cores=4 Memory=7807M Language=es_AR.UTF-8 Desktop=UBUNTU DesktopResolution=96 DesktopScale=8 WidgetTheme=yaru Font=Ubuntu,11 [Programs] gcc=gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 git=git version 2.34.1 [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.7.0 DBus=libdbus-1.so.3.19.13 GDK2=libgdk-x11-2.0.so.0.2400.33 GDK3=libgdk-3.so.0.2404.29 GStreamer=libgstreamer-1.0.so.0.2003.0 GTK+2=libgtk-x11-2.0.so.0.2400.33 GTK+3=libgtk-3.so.0.2404.29 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.118.0.0 QT5=libQt5Core.so.5.15.3 RSvg=librsvg-2.so.2.48.0 SDL=libSDL2-2.0.so.0.18.2 SQLite 3=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=ubuntu DISPLAY=:0 EDITOR=gnome-text-editor GB_GUI=gb.gtk3 GDMSESSION=ubuntu GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=64971 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_SETUP_DISPLAY=:1 GNOME_SHELL_SESSION_MODE=ubuntu GTK_MODULES=gail:atk-bridge HOME= IM_CONFIG_PHASE=1 INVOCATION_ID=9d5d2c0a15df4349a9d5d77a0bf6b086 JOURNAL_STREAM=8:30476 LANG=es_AR.UTF-8 LANGUAGE=es_AR.UTF-8 LC_ALL=es_AR.UTF-8 LOGNAME= MANAGERPID=1465 PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LOGGING_RULES=*.debug=false SESSION_MANAGER=local/:@/tmp/.ICE-unix/1609,unix/:/tmp/.ICE-unix/1609 SHELL=/bin/bash SHLVL=0 SSH_AGENT_LAUNCHER=gnome-keyring SSH_AUTH_SOCK=/run/user/1000/keyring/ssh SYSTEMD_EXEC_PID=1645 TZ=:/etc/localtime USER= USERNAME= WAYLAND_DISPLAY=wayland-0 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.8SOYA2 XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg XDG_CURRENT_DESKTOP=ubuntu:GNOME XDG_DATA_DIRS=/usr/share/ubuntu:/.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_SESSION_CLASS=user XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_TYPE=wayland XMODIFIERS=@im=ibus _=/usr/bin/gnome-session -- Saludos cordiales Martin From t.lee.davidson at gmail.com Thu Sep 7 05:09:43 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 6 Sep 2023 23:09:43 -0400 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <6a00498d-d1ab-d2cc-b0eb-d1598874e94c@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> <4c77f145-e842-4106-8d2a-a5a209c8a5a6@gmail.com> <6a00498d-d1ab-d2cc-b0eb-d1598874e94c@gambas-basic.org> Message-ID: <6aa7bb9e-9681-4f85-afa0-41daed966e8a@gmail.com> On 9/6/23 19:15, Beno?t Minisini wrote: > Le 06/09/2023 ? 22:48, T Lee Davidson a ?crit?: >> However, building a (somewhat) universal dependency tree generator using libsolv would still undoubtedly be quite involved. >> So, it seems that appimage-builder just may be the way to go. Unfortunately, it does not work on openSUSE as the generated YML >> file was obviously unusable. >> > > As soon as 'apt' can run on your system, it will work. And there is no reason why 'apt' should not work on OpenSUSE. > 'apt' (/usr/bin/apt) on my system is merely a symbolic link to 'aptitude' (/usr/bin/aptitude) which is provided by the 'zypper-aptitude' package which supposedly provides compatibility to Debian's aptitude command using zypper. In other words, all it does is allow one to use 'apt' commands on the front-end while running zypper on the back-end. Executing `apt` on the command line invokes zypper. Executing `aptitude` on the command line invokes the YaST2 software management GUI. The real 'apt' is not available in any of the official, or even community, openSUSE Leap repos. -- Lee From benoit.minisini at gambas-basic.org Thu Sep 7 05:21:36 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Sep 2023 05:21:36 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <6aa7bb9e-9681-4f85-afa0-41daed966e8a@gmail.com> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <80a0568e-79b5-4fd4-82f0-2e11eb884b19@gmail.com> <4c77f145-e842-4106-8d2a-a5a209c8a5a6@gmail.com> <6a00498d-d1ab-d2cc-b0eb-d1598874e94c@gambas-basic.org> <6aa7bb9e-9681-4f85-afa0-41daed966e8a@gmail.com> Message-ID: <2aad4f87-ef0e-d174-dff2-f7aeeb1398ba@gambas-basic.org> Le 07/09/2023 ? 05:09, T Lee Davidson a ?crit?: > On 9/6/23 19:15, Beno?t Minisini wrote: >> Le 06/09/2023 ? 22:48, T Lee Davidson a ?crit?: >>> However, building a (somewhat) universal dependency tree generator >>> using libsolv would still undoubtedly be quite involved. So, it seems >>> that appimage-builder just may be the way to go. Unfortunately, it >>> does not work on openSUSE as the generated YML file was obviously >>> unusable. >>> >> >> As soon as 'apt' can run on your system, it will work. And there is no >> reason why 'apt' should not work on OpenSUSE. >> > > 'apt' (/usr/bin/apt) on my system is merely a symbolic link to > 'aptitude' (/usr/bin/aptitude) which is provided by the > 'zypper-aptitude' package which supposedly provides compatibility to > Debian's aptitude command using zypper. In other words, all it does is > allow one to use 'apt' commands on the front-end while running zypper on > the back-end. > > Executing `apt` on the command line invokes zypper. Executing `aptitude` > on the command line invokes the YaST2 software management GUI. > > The real 'apt' is not available in any of the official, or even > community, openSUSE Leap repos. > > So you are doomed, unless you compile 'apt' from sources. Apparently there is a package for 'apt' on Fedora, so what is not possible on OpenSUSE should be possible on Fedora. Regards, -- Beno?t Minisini. From claus.dietrich at freenet.de Thu Sep 7 10:47:43 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Thu, 7 Sep 2023 10:47:43 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> Message-ID: <4be3c948-4490-58e8-de05-682b6bf83ff9@freenet.de> Hi I recently managed to generate Gambas AppImages and documented it for the German Gambas Club community (sorry - in German only): https://www.gambas-club.de/download/file.php?id=981 My method: - Generating the recipe - Adding required packages - Starting the generation of the Gambas executable in the IDE which does the entire rest automatically and also asks for the password of the signature. Today I tested the new IDE feature with Linux Mint 20.3 Mate with Gambas installed via ppa. The packaging failed with below output. In my practice with Gambas AppImages I always had to add additional packages which doesn't seem to be supported yet. Signatures are also not supported yet, right? Hope that this can all be fixed. Best regards Claus Speichere CHANGELOG Datei. ============================================================================== ERSTELLE PAKET F?R DEBIAN. Erstelle Build-Verzeichnis. rm -f '/home/claus/gb-scan-0-1-60_0.1.60'* rm -Rf '/home/claus/gb-scan-0-1-60-0.1.60' rm -Rf '/home/claus/gb-scan-0-1-60-0.1.60.orig' Erstelle Desktop-Datei... Quelldateien werden ins Debian-Format ?berf?hrt. Erstelle Paket... cd '/home/claus/gb-scan-0-1-60-0.1.60' dpkg-buildpackage -d -rfakeroot -uc -us dpkg-buildpackage: Information: Quellpaket gb-scan-0-1-60 dpkg-buildpackage: Information: Quellversion 0.1.60-1 dpkg-buildpackage: Information: Quelldistribution unstable dpkg-buildpackage: Information: Quelle ge?ndert durch claus dpkg-buildpackage: Information: Host-Architektur amd64 ?dpkg-source --before-build . ?fakeroot debian/rules clean dh_testdir dh_testroot rm -Rf 'src/gb.scan_0.1.60/.gambas' rm -f 'src/gb.scan_0.1.60/gb.scan_0.1.60' rm -f build-stamp install-stamp dh_clean ?dpkg-source -b . dpkg-source: Information: Quellformat ?1.0? wird verwendet dpkg-source: Information: gb-scan-0-1-60 wird in gb-scan-0-1-60_0.1.60.orig.tar.gz gebaut dpkg-source: Information: gb-scan-0-1-60 wird in gb-scan-0-1-60_0.1.60-1.diff.gz gebaut dpkg-source: Warnung: L?schen des Verzeichnisses src/gb.scan_0.1.60/.gambas wird ignoriert dpkg-source: Information: gb-scan-0-1-60 wird in gb-scan-0-1-60_0.1.60-1.dsc gebaut ?debian/rules build dh_testdir touch build-stamp gbc3 -e -a -g -t -x -j1? src/gb.scan_0.1.60 OK gba3 -o 'src/gb.scan_0.1.60/gb.scan_0.1.60' src/gb.scan_0.1.60 ?fakeroot debian/rules binary dh_testdir dh_testroot dh_prep dh_installdirs ln -s 'gb.scan_0.1.60' "/home/claus/gb-scan-0-1-60-0.1.60"/debian/gb-scan-0-1-60/usr/bin/'gb-scan-0-1-60' touch install-stamp dh_testdir -i dh_testroot -i dh_installdocs -i dh_installchangelogs -i dh_install -i dh_installmenu dh_compress -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i dpkg-deb: Paket ?gb-scan-0-1-60? wird in ?../gb-scan-0-1-60_0.1.60-1_all.deb? gebaut. dh_testdir ?dpkg-genbuildinfo ?dpkg-genchanges? >../gb-scan-0-1-60_0.1.60-1_amd64.changes dpkg-genchanges: Information: Originalquellen beim Hochladen nicht hinzuf?gen ?dpkg-source --after-build . dpkg-buildpackage: Information: Bin?rpakete(e) und Diff hochzuladen (Originalquellen NICHT enthalten) ============================================================================== ERSTELLE PAKET F?R APPIMAGE. Erstelle Build-Verzeichnis. rm -rf '/home/claus/.var/tmp/AppImage/AppDir' mkdir -p '/home/claus/.var/tmp/AppImage/AppDir/usr/bin' mkdir -p '/home/claus/.var/tmp/AppImage/AppDir/usr/share/icons/hicolor/256x256/apps' Generating 'AppImageBuilder' configuration file... Creating AppImage... cd '/home/claus/.var/tmp/AppImage' appimage-builder --skip-script --skip-tests INFO:main:Running apt deploy INFO:apt:apt-get update Ign:1 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una InRelease Ign:2 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una Release Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all Packages Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64 Packages Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all Packages Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64 Packages Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all Packages Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64 Packages Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all Packages Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64 Packages Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all Packages Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64 Packages Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all Packages Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64 Packages Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all Packages Fehl:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64 Packages ? 404? Not Found [IP: 185.125.190.52 80] Paketlisten werden gelesen... Fertig W: Das Depot ?http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una Release? enth?lt keine Release-Datei. N: Daten von solch einem Depot k?nnen nicht authentifiziert werden und deren Nutzung ist daher potentiell gef?hrlich. N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8). E: Fehlschlag beim Holen von http://ppa.launchpad.net/gambas-team/gambas3/ubuntu/dists/una/main/binary-amd64/Packages 404? Not Found [IP: 185.125.190.52 80] E: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt. ERROR:root:"apt-get update" execution failed Traceback (most recent call last): ? File "/usr/local/bin/appimage-builder", line 8, in ??? sys.exit(__main__()) ? File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/__main__.py", line 50, in __main__ ??? invoker.execute(commands) ? File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/invoker.py", line 29, in execute ??? command() ? File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/commands/apt_deploy.py", line 46, in __call__ ??? deployed_packages = apt_deploy.deploy( ? File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 39, in deploy ??? self._prepare_apt_venv() ? File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 48, in _prepare_apt_venv ??? self.apt_venv.update() ? File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/venv.py", line 161, in update ??? shell.assert_successful_result(_proc) ? File "/usr/local/lib/python3.8/dist-packages/appimagebuilder/utils/shell.py", line 35, in assert_successful_result ??? raise RuntimeError( RuntimeError: "apt-get update" execution failed with code 100 Die Paketerstellung ist fehlgeschlagen. Package.MakeAppImagePackage.2952: Unable to create AppImage. Am 05.09.23 um 13:03 schrieb Beno?t Minisini: > Hi, > > I have just added to the IDE a new package type to the packager > wizard: AppImage! > > You are welcome to test it and report any problem. I think it won't > work easily. > > It is not entirely finished. Support for adding extra dependencies and > extra files is not done yet. > > AFAIK, The AppImage limitations are the following: > > - You need the 'appimage-builder' tool. See: > https://appimage-builder.readthedocs.io/en/latest/intro/install.html#intro-install > > - This tool apparently works only on Debian, Ubuntu and ArchLinux. > Please check that if you can. > > - AppImage does not like applications using OpenGL. Please check that > too. > > - The resulting AppImage files are big (at least 50 Mb) and slow to > start (I mean slower than it should). > > Otherwise, it's cool. > > Regards, > From benoit.minisini at gambas-basic.org Thu Sep 7 12:21:11 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Sep 2023 12:21:11 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <4be3c948-4490-58e8-de05-682b6bf83ff9@freenet.de> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <4be3c948-4490-58e8-de05-682b6bf83ff9@freenet.de> Message-ID: <57b45af8-2b32-a34d-c55e-3a76e0e28b0f@gambas-basic.org> Le 07/09/2023 ? 10:47, Claus Dietrich a ?crit?: > Hi > > I recently managed to generate Gambas AppImages and documented it for > the German Gambas Club community (sorry - in German only): > > https://www.gambas-club.de/download/file.php?id=981 > > My method: > > - Generating the recipe > > - Adding required packages > > - Starting the generation of the Gambas executable in the IDE which does > the entire rest automatically and also asks for the password of the > signature. > > Today I tested the new IDE feature with Linux Mint 20.3 Mate with Gambas > installed via ppa. The packaging failed with below output. You must use the latest master and specify a correct Ubuntu repository and an Ubuntu version supported by the PPA ('una' is not). > > In my practice with Gambas AppImages I always had to add additional > packages which doesn't seem to be supported yet. Signatures are also not > supported yet, right? Hope that this can all be fixed. No idea yet, I must know how that works first. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Thu Sep 7 21:11:58 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Sep 2023 21:11:58 +0200 Subject: [Gambas-user] Gambas icon set for LibreOffice Message-ID: <7da40c1a-7ae4-7d31-afcc-16404f46e7e9@gambas-basic.org> Hi, Here the 0.3 version of the iconset: https://we.tl/t-DqAxGxC7N1 Enjoy! -- Beno?t Minisini. From t.lee.davidson at gmail.com Thu Sep 7 22:40:06 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 7 Sep 2023 16:40:06 -0400 Subject: [Gambas-user] GambasWiki -> 503 Service Unavailable Message-ID: <79c4e033-9841-4375-8455-0f1c08022d78@gmail.com> EOM -- Lee From jose.rodriguez at cenpalab.cu Thu Sep 7 22:53:17 2023 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Thu, 07 Sep 2023 16:53:17 -0400 Subject: [Gambas-user] [DMARC] GambasWiki -> 503 Service Unavailable In-Reply-To: <79c4e033-9841-4375-8455-0f1c08022d78@gmail.com> References: <79c4e033-9841-4375-8455-0f1c08022d78@gmail.com> Message-ID: <8c29ef44a327c3051f44f199f810d8a5@cenpalab.cu> On 2023-09-07 16:40, T Lee Davidson wrote: > EOM Only happens on some parts of the Wiki, at least for me. Regards, Joe1962 From t.lee.davidson at gmail.com Thu Sep 7 22:56:23 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 7 Sep 2023 16:56:23 -0400 Subject: [Gambas-user] [DMARC] GambasWiki -> 503 Service Unavailable In-Reply-To: <8c29ef44a327c3051f44f199f810d8a5@cenpalab.cu> References: <79c4e033-9841-4375-8455-0f1c08022d78@gmail.com> <8c29ef44a327c3051f44f199f810d8a5@cenpalab.cu> Message-ID: <46a92e87-9e92-4964-8dbb-abdc17063d24@gmail.com> On 9/7/23 16:53, jose.rodriguez at cenpalab.cu wrote: > On 2023-09-07 16:40, T Lee Davidson wrote: >> EOM > > > Only happens on some parts of the Wiki, at least for me. > > Regards, > Joe1962 Hmmm, I didn't think it may be only a partial service failure. This was only on the home page: https://gambaswiki.org/ -- Lee From jose.rodriguez at cenpalab.cu Thu Sep 7 23:00:16 2023 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Thu, 07 Sep 2023 17:00:16 -0400 Subject: [Gambas-user] [DMARC]Re: [DMARC] GambasWiki -> 503 Service Unavailable In-Reply-To: <46a92e87-9e92-4964-8dbb-abdc17063d24@gmail.com> References: <79c4e033-9841-4375-8455-0f1c08022d78@gmail.com> <8c29ef44a327c3051f44f199f810d8a5@cenpalab.cu> <46a92e87-9e92-4964-8dbb-abdc17063d24@gmail.com> Message-ID: On 2023-09-07 16:56, T Lee Davidson wrote: > On 9/7/23 16:53, jose.rodriguez at cenpalab.cu wrote: >> On 2023-09-07 16:40, T Lee Davidson wrote: >>> EOM >> >> >> Only happens on some parts of the Wiki, at least for me. >> >> Regards, >> Joe1962 > > Hmmm, I didn't think it may be only a partial service failure. This was > only on the home page: https://gambaswiki.org/ Indeed, the homepage gives 503, but this works: https://gambaswiki.org/wiki/ Several others from the left menu work, others don't. Regards, Joe1962 From t.lee.davidson at gmail.com Thu Sep 7 23:11:49 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 7 Sep 2023 17:11:49 -0400 Subject: [Gambas-user] [DMARC]Re: [DMARC] GambasWiki -> 503 Service Unavailable In-Reply-To: References: <79c4e033-9841-4375-8455-0f1c08022d78@gmail.com> <8c29ef44a327c3051f44f199f810d8a5@cenpalab.cu> <46a92e87-9e92-4964-8dbb-abdc17063d24@gmail.com> Message-ID: <9292a02b-4b49-4879-bf23-d56ff73b0d89@gmail.com> On 9/7/23 17:00, jose.rodriguez at cenpalab.cu wrote: > On 2023-09-07 16:56, T Lee Davidson wrote: >> On 9/7/23 16:53, jose.rodriguez at cenpalab.cu wrote: >>> On 2023-09-07 16:40, T Lee Davidson wrote: >>>> EOM >>> >>> >>> Only happens on some parts of the Wiki, at least for me. >>> >>> Regards, >>> Joe1962 >> >> Hmmm, I didn't think it may be only a partial service failure. This was only on the home page: https://gambaswiki.org/ > > Indeed, the homepage gives 503, but this works: > > https://gambaswiki.org/wiki/ > > Several others from the left menu work, others don't. > > Regards, > Joe1962 Yes, I am getting the same thing from here now. That's weird. -- Lee From benoit.minisini at gambas-basic.org Thu Sep 7 23:39:24 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Sep 2023 23:39:24 +0200 Subject: [Gambas-user] [DMARC]Re: [DMARC] GambasWiki -> 503 Service Unavailable In-Reply-To: <9292a02b-4b49-4879-bf23-d56ff73b0d89@gmail.com> References: <79c4e033-9841-4375-8455-0f1c08022d78@gmail.com> <8c29ef44a327c3051f44f199f810d8a5@cenpalab.cu> <46a92e87-9e92-4964-8dbb-abdc17063d24@gmail.com> <9292a02b-4b49-4879-bf23-d56ff73b0d89@gmail.com> Message-ID: <41e5b63e-cf91-b1a6-7681-32200047dad5@gambas-basic.org> Le 07/09/2023 ? 23:11, T Lee Davidson a ?crit?: > On 9/7/23 17:00, jose.rodriguez at cenpalab.cu wrote: >> On 2023-09-07 16:56, T Lee Davidson wrote: >>> On 9/7/23 16:53, jose.rodriguez at cenpalab.cu wrote: >>>> On 2023-09-07 16:40, T Lee Davidson wrote: >>>>> EOM >>>> >>>> >>>> Only happens on some parts of the Wiki, at least for me. >>>> >>>> Regards, >>>> Joe1962 >>> >>> Hmmm, I didn't think it may be only a partial service failure. This >>> was only on the home page: https://gambaswiki.org/ >> >> Indeed, the homepage gives 503, but this works: >> >> https://gambaswiki.org/wiki/ >> >> Several others from the left menu work, others don't. >> >> Regards, >> Joe1962 > > Yes, I am getting the same thing from here now. That's weird. > The wiki VM seems to be fully working. I guess it's the proxy of the company I work for that is broken again... I really have to take time to host that wiki somewhere else! It breaks too often. -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Thu Sep 7 23:40:33 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Sep 2023 23:40:33 +0200 Subject: [Gambas-user] [DMARC]Re: [DMARC] GambasWiki -> 503 Service Unavailable In-Reply-To: <41e5b63e-cf91-b1a6-7681-32200047dad5@gambas-basic.org> References: <79c4e033-9841-4375-8455-0f1c08022d78@gmail.com> <8c29ef44a327c3051f44f199f810d8a5@cenpalab.cu> <46a92e87-9e92-4964-8dbb-abdc17063d24@gmail.com> <9292a02b-4b49-4879-bf23-d56ff73b0d89@gmail.com> <41e5b63e-cf91-b1a6-7681-32200047dad5@gambas-basic.org> Message-ID: <758e37cc-7588-5ece-9823-0578593495e3@gambas-basic.org> Le 07/09/2023 ? 23:39, Beno?t Minisini a ?crit?: > Le 07/09/2023 ? 23:11, T Lee Davidson a ?crit?: >> On 9/7/23 17:00, jose.rodriguez at cenpalab.cu wrote: >>> On 2023-09-07 16:56, T Lee Davidson wrote: >>>> On 9/7/23 16:53, jose.rodriguez at cenpalab.cu wrote: >>>>> On 2023-09-07 16:40, T Lee Davidson wrote: >>>>>> EOM >>>>> >>>>> >>>>> Only happens on some parts of the Wiki, at least for me. >>>>> >>>>> Regards, >>>>> Joe1962 >>>> >>>> Hmmm, I didn't think it may be only a partial service failure. This >>>> was only on the home page: https://gambaswiki.org/ >>> >>> Indeed, the homepage gives 503, but this works: >>> >>> https://gambaswiki.org/wiki/ >>> >>> Several others from the left menu work, others don't. >>> >>> Regards, >>> Joe1962 >> >> Yes, I am getting the same thing from here now. That's weird. >> > > The wiki VM seems to be fully working. I guess it's the proxy of the > company I work for that is broken again... > > I really have to take time to host that wiki somewhere else! It breaks > too often. > Oops sorry, I spoke too fast. Server out of memory. -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Thu Sep 7 23:41:59 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Sep 2023 23:41:59 +0200 Subject: [Gambas-user] [DMARC]Re: [DMARC] GambasWiki -> 503 Service Unavailable In-Reply-To: <758e37cc-7588-5ece-9823-0578593495e3@gambas-basic.org> References: <79c4e033-9841-4375-8455-0f1c08022d78@gmail.com> <8c29ef44a327c3051f44f199f810d8a5@cenpalab.cu> <46a92e87-9e92-4964-8dbb-abdc17063d24@gmail.com> <9292a02b-4b49-4879-bf23-d56ff73b0d89@gmail.com> <41e5b63e-cf91-b1a6-7681-32200047dad5@gambas-basic.org> <758e37cc-7588-5ece-9823-0578593495e3@gambas-basic.org> Message-ID: Le 07/09/2023 ? 23:40, Beno?t Minisini a ?crit?: > Le 07/09/2023 ? 23:39, Beno?t Minisini a ?crit?: >> Le 07/09/2023 ? 23:11, T Lee Davidson a ?crit?: >>> On 9/7/23 17:00, jose.rodriguez at cenpalab.cu wrote: >>>> On 2023-09-07 16:56, T Lee Davidson wrote: >>>>> On 9/7/23 16:53, jose.rodriguez at cenpalab.cu wrote: >>>>>> On 2023-09-07 16:40, T Lee Davidson wrote: >>>>>>> EOM >>>>>> >>>>>> >>>>>> Only happens on some parts of the Wiki, at least for me. >>>>>> >>>>>> Regards, >>>>>> Joe1962 >>>>> >>>>> Hmmm, I didn't think it may be only a partial service failure. This >>>>> was only on the home page: https://gambaswiki.org/ >>>> >>>> Indeed, the homepage gives 503, but this works: >>>> >>>> https://gambaswiki.org/wiki/ >>>> >>>> Several others from the left menu work, others don't. >>>> >>>> Regards, >>>> Joe1962 >>> >>> Yes, I am getting the same thing from here now. That's weird. >>> >> >> The wiki VM seems to be fully working. I guess it's the proxy of the >> company I work for that is broken again... >> >> I really have to take time to host that wiki somewhere else! It breaks >> too often. >> > > Oops sorry, I spoke too fast. Server out of memory. > Since 20:27 UTC+2. -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Thu Sep 7 23:48:34 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Sep 2023 23:48:34 +0200 Subject: [Gambas-user] [DMARC]Re: [DMARC] GambasWiki -> 503 Service Unavailable In-Reply-To: References: <79c4e033-9841-4375-8455-0f1c08022d78@gmail.com> <8c29ef44a327c3051f44f199f810d8a5@cenpalab.cu> <46a92e87-9e92-4964-8dbb-abdc17063d24@gmail.com> <9292a02b-4b49-4879-bf23-d56ff73b0d89@gmail.com> <41e5b63e-cf91-b1a6-7681-32200047dad5@gambas-basic.org> <758e37cc-7588-5ece-9823-0578593495e3@gambas-basic.org> Message-ID: Le 07/09/2023 ? 23:41, Beno?t Minisini a ?crit?: > Le 07/09/2023 ? 23:40, Beno?t Minisini a ?crit?: >> Le 07/09/2023 ? 23:39, Beno?t Minisini a ?crit?: >>> Le 07/09/2023 ? 23:11, T Lee Davidson a ?crit?: >>>> On 9/7/23 17:00, jose.rodriguez at cenpalab.cu wrote: >>>>> On 2023-09-07 16:56, T Lee Davidson wrote: >>>>>> On 9/7/23 16:53, jose.rodriguez at cenpalab.cu wrote: >>>>>>> On 2023-09-07 16:40, T Lee Davidson wrote: >>>>>>>> EOM >>>>>>> >>>>>>> >>>>>>> Only happens on some parts of the Wiki, at least for me. >>>>>>> >>>>>>> Regards, >>>>>>> Joe1962 >>>>>> >>>>>> Hmmm, I didn't think it may be only a partial service failure. >>>>>> This was only on the home page: https://gambaswiki.org/ >>>>> >>>>> Indeed, the homepage gives 503, but this works: >>>>> >>>>> https://gambaswiki.org/wiki/ >>>>> >>>>> Several others from the left menu work, others don't. >>>>> >>>>> Regards, >>>>> Joe1962 >>>> >>>> Yes, I am getting the same thing from here now. That's weird. >>>> >>> >>> The wiki VM seems to be fully working. I guess it's the proxy of the >>> company I work for that is broken again... >>> >>> I really have to take time to host that wiki somewhere else! It >>> breaks too often. >>> >> >> Oops sorry, I spoke too fast. Server out of memory. >> > > Since 20:27 UTC+2. > A lot of request processes on the VM, and the infamous Linux oom-killer starts to kill them randomly. Until it reaches the webserver, and the program that watch it and restart it... -- Beno?t Minisini. From t.lee.davidson at gmail.com Fri Sep 8 17:09:55 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 8 Sep 2023 11:09:55 -0400 Subject: [Gambas-user] [DMARC]Re: [DMARC] GambasWiki -> 503 Service Unavailable In-Reply-To: References: <79c4e033-9841-4375-8455-0f1c08022d78@gmail.com> <8c29ef44a327c3051f44f199f810d8a5@cenpalab.cu> <46a92e87-9e92-4964-8dbb-abdc17063d24@gmail.com> <9292a02b-4b49-4879-bf23-d56ff73b0d89@gmail.com> <41e5b63e-cf91-b1a6-7681-32200047dad5@gambas-basic.org> <758e37cc-7588-5ece-9823-0578593495e3@gambas-basic.org> Message-ID: On 9/7/23 17:48, Beno?t Minisini wrote: > Le 07/09/2023 ? 23:41, Beno?t Minisini a ?crit?: >> Le 07/09/2023 ? 23:40, Beno?t Minisini a ?crit?: >>> Le 07/09/2023 ? 23:39, Beno?t Minisini a ?crit?: >>>> Le 07/09/2023 ? 23:11, T Lee Davidson a ?crit?: [snip] >>>> >>>> The wiki VM seems to be fully working. I guess it's the proxy of the company I work for that is broken again... >>>> >>>> I really have to take time to host that wiki somewhere else! It breaks too often. >>>> >>> >>> Oops sorry, I spoke too fast. Server out of memory. >>> >> >> Since 20:27 UTC+2. >> > > A lot of request processes on the VM, and the infamous Linux oom-killer starts to kill them randomly. Until it reaches the > webserver, and the program that watch it and restart it... > It appears to be working just fine today. Side note: I noticed that https://gambaswiki.org/wiki/tutorial/chat contains only one word, "chat". -- Lee From t.lee.davidson at gmail.com Fri Sep 8 19:26:54 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 8 Sep 2023 13:26:54 -0400 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> Message-ID: <46bbff89-9963-4a84-b251-a1005308af41@gmail.com> On 9/5/23 07:03, Beno?t Minisini wrote: > Hi, > > I have just added to the IDE a new package type to the packager wizard: AppImage! > > You are welcome to test it and report any problem. I think it won't work easily. > > It is not entirely finished. Support for adding extra dependencies and extra files is not done yet. > > AFAIK, The AppImage limitations are the following: > > - You need the 'appimage-builder' tool. See: https://appimage-builder.readthedocs.io/en/latest/intro/install.html#intro-install > > - This tool apparently works only on Debian, Ubuntu and ArchLinux. Please check that if you can. > > - AppImage does not like applications using OpenGL. Please check that too. > > - The resulting AppImage files are big (at least 50 Mb) and slow to start (I mean slower than it should). > > Otherwise, it's cool. > > Regards, > I installed Debian on a QEMU/KVM VM and tried to create an appimage of the default "hello world" new console application (hello.gambas). It failed. "Create-AppImage-Package-Output" attached. I also tried following the example at https://appimage-builder.readthedocs.io/en/latest/examples/gambas3.html. "appimage-builder --generate" failed to produce a YML file that looked usable; ie. it listed nothing to include in the AppDir:apt:include: section. "AppImageBuilder.yml" attached. I then tried making an appimage from hello.gambas following the procedures at the above appimage-builder example. The generate step failed as well with similar output to the example. "appimage-builer-generate-output" attached. I think the following line, common to both outputs except for the app name, may indicate at least part of the issue causing the failure to produce a viable YML file when trying to create an appimage manually: WARNING:AppRuntimeAnalyser:/tmp/.mount_appima0Khv6d/usr/bin/strace -f -E LD_LIBRARY_PATH= -e trace=openat --status=successful /home/user/devel/appimage-demo-gambas3/AppDir/usr/bin/appimage-demo-gambas3.gambas $@ exited with code 127 I didn't find any mention of Gambas exit codes on the Wiki, so I don't know what code 127 might mean. -- Lee -------------- next part -------------- Saving CHANGELOG file. ============================================================================== CREATING PACKAGE FOR APPIMAGE. Making build directory. rm -rf '/home/user/.var/tmp/AppImage/AppDir' mkdir -p '/home/user/.var/tmp/AppImage/AppDir/usr/bin' mkdir -p '/home/user/.var/tmp/AppImage/AppDir/usr/share/icons/hicolor/256x256/apps' Generating 'AppImageBuilder' configuration file... Creating AppImage... cd '/home/user/.var/tmp/AppImage' appimage-builder --skip-script --skip-tests INFO:main:Running apt deploy INFO:apt:apt-get update Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] Get:2 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu jammy InRelease [17.5 kB] Ign:3 http://deb.debian.org/debian jammy InRelease Get:4 http://ddebs.ubuntu.com jammy InRelease [41.3 kB] Ign:5 http://deb.debian.org/debian jammy-updates InRelease Ign:1 http://security.ubuntu.com/ubuntu jammy-security InRelease Get:6 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [36.5 kB] Get:7 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [822 kB] Ign:8 http://deb.debian.org/debian jammy Release Ign:2 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu jammy InRelease Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [781 kB] Get:10 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [761 kB] Ign:11 http://deb.debian.org/debian jammy-updates Release Ign:4 http://ddebs.ubuntu.com jammy InRelease Get:12 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu jammy/main amd64 Packages [15.9 kB] Get:13 http://ddebs.ubuntu.com jammy/universe amd64 Packages [4,944 kB] Ign:14 http://deb.debian.org/debian jammy/main all Packages Ign:15 http://deb.debian.org/debian jammy/universe all Packages Ign:16 http://deb.debian.org/debian jammy/restricted all Packages Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages Ign:14 http://deb.debian.org/debian jammy/main all Packages Ign:15 http://deb.debian.org/debian jammy/universe all Packages Ign:16 http://deb.debian.org/debian jammy/restricted all Packages Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages Get:30 http://ddebs.ubuntu.com jammy/multiverse amd64 Packages [83.5 kB] Get:31 http://ddebs.ubuntu.com jammy/main amd64 Packages [558 kB] Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages Ign:14 http://deb.debian.org/debian jammy/main all Packages Ign:15 http://deb.debian.org/debian jammy/universe all Packages Ign:16 http://deb.debian.org/debian jammy/restricted all Packages Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages Ign:14 http://deb.debian.org/debian jammy/main all Packages Ign:15 http://deb.debian.org/debian jammy/universe all Packages Ign:16 http://deb.debian.org/debian jammy/restricted all Packages Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages Ign:14 http://deb.debian.org/debian jammy/main all Packages Ign:15 http://deb.debian.org/debian jammy/universe all Packages Ign:16 http://deb.debian.org/debian jammy/restricted all Packages Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages Ign:14 http://deb.debian.org/debian jammy/main all Packages Ign:15 http://deb.debian.org/debian jammy/universe all Packages Ign:16 http://deb.debian.org/debian jammy/restricted all Packages Ign:17 http://deb.debian.org/debian jammy/universe amd64 Packages Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages Ign:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages Ign:14 http://deb.debian.org/debian jammy/main all Packages Ign:15 http://deb.debian.org/debian jammy/universe all Packages Ign:16 http://deb.debian.org/debian jammy/restricted all Packages Err:17 http://deb.debian.org/debian jammy/universe amd64 Packages 404 Not Found [IP: 199.232.30.132 80] Ign:18 http://deb.debian.org/debian jammy/multiverse all Packages Ign:19 http://deb.debian.org/debian jammy/restricted amd64 Packages Ign:20 http://deb.debian.org/debian jammy/multiverse amd64 Packages Ign:21 http://deb.debian.org/debian jammy/main amd64 Packages Err:22 http://deb.debian.org/debian jammy-updates/restricted amd64 Packages 404 Not Found [IP: 199.232.30.132 80] Ign:23 http://deb.debian.org/debian jammy-updates/restricted all Packages Ign:24 http://deb.debian.org/debian jammy-updates/main amd64 Packages Ign:25 http://deb.debian.org/debian jammy-updates/multiverse amd64 Packages Ign:26 http://deb.debian.org/debian jammy-updates/universe all Packages Ign:27 http://deb.debian.org/debian jammy-updates/main all Packages Ign:28 http://deb.debian.org/debian jammy-updates/multiverse all Packages Ign:29 http://deb.debian.org/debian jammy-updates/universe amd64 Packages Fetched 8,171 kB in 23s (359 kB/s) Reading package lists... Done W: GPG error: http://security.ubuntu.com/ubuntu jammy-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C W: The repository 'http://security.ubuntu.com/ubuntu jammy-security InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository 'http://deb.debian.org/debian jammy Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ppa.launchpad.net/gambas-team/gambas3/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 50B027516CAEE58D W: The repository 'http://ppa.launchpad.net/gambas-team/gambas3/ubuntu jammy InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: The repository 'http://deb.debian.org/debian jammy-updates Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ddebs.ubuntu.com jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C8CAB6595FDFF622 W: The repository 'http://ddebs.ubuntu.com jammy InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch http://deb.debian.org/debian/dists/jammy/universe/binary-amd64/Packages 404 Not Found [IP: 199.232.30.132 80] E: Failed to fetch http://deb.debian.org/debian/dists/jammy-updates/restricted/binary-amd64/Packages 404 Not Found [IP: 199.232.30.132 80] E: Some index files failed to download. They have been ignored, or old ones used instead. ERROR:root:"apt-get update" execution failed Traceback (most recent call last): File "/tmp/.mount_appimaCkiMWZ/usr/bin/appimage-builder", line 8, in sys.exit(__main__()) File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/__main__.py", line 50, in __main__ invoker.execute(commands) File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/invoker.py", line 29, in execute command() File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/commands/apt_deploy.py", line 46, in __call__ deployed_packages = apt_deploy.deploy( File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 39, in deploy self._prepare_apt_venv() File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/apt/deploy.py", line 48, in _prepare_apt_venv self.apt_venv.update() File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/modules/deploy/apt/venv.py", line 161, in update shell.assert_successful_result(_proc) File "/tmp/.mount_appimaCkiMWZ/usr/lib/python3.8/site-packages/appimagebuilder/utils/shell.py", line 35, in assert_successful_result raise RuntimeError( RuntimeError: "apt-get update" execution failed with code 100 The package build has failed. Package.MakeAppImagePackage.2951: Unable to create AppImage. -------------- next part -------------- A non-text attachment was scrubbed... Name: AppImageBuilder.yml Type: application/x-yaml Size: 1417 bytes Desc: not available URL: -------------- next part -------------- INFO:AppRuntimeAnalyser:/tmp/.mount_appima0Khv6d/usr/bin/strace -f -E LD_LIBRARY_PATH= -e trace=openat --status=successful /home/user/devel/appimage-demo-gambas3/AppDir/usr/bin/appimage-demo-gambas3.gambas $@ WARNING:AppRuntimeAnalyser:/tmp/.mount_appima0Khv6d/usr/bin/strace -f -E LD_LIBRARY_PATH= -e trace=openat --status=successful /home/user/devel/appimage-demo-gambas3/AppDir/usr/bin/appimage-demo-gambas3.gambas $@ exited with code 127 WARNING:AppRuntimeAnalyser:This may produce an incomplete/wrong recipe. Please make sure that the application runs properly. INFO:AppRuntimeAnalyser:Reading PT_INTERP from executables INFO:FilePackageResolver:/usr/bin/dpkg-query -S dpkg-query: error: --search needs at least one file name pattern argument Use --help for help about querying packages. INFO:dpkg-query:/usr/bin/dpkg-query -W -f=${binary:Package}: ${Depends}\n INFO:Generator:Recipe generation completed. From gambas.fr at gmail.com Fri Sep 8 19:27:49 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Sep 2023 19:27:49 +0200 Subject: [Gambas-user] Appimage Message-ID: Seem to have a problem on some lib access ... work on my own system but on virtual fedora it fail because some lib seem to miss ... why ? -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture d??cran du 2023-09-08 19-24-52.png Type: image/png Size: 59257 bytes Desc: not available URL: From benoit.minisini at gambas-basic.org Fri Sep 8 20:25:07 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Sep 2023 20:25:07 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <46bbff89-9963-4a84-b251-a1005308af41@gmail.com> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <46bbff89-9963-4a84-b251-a1005308af41@gmail.com> Message-ID: <860fc982-e9c2-d50d-c094-c602f674da93@gambas-basic.org> Le 08/09/2023 ? 19:26, T Lee Davidson a ?crit?: > > I installed Debian on a QEMU/KVM VM and tried to create an appimage of > the default "hello world" new console application (hello.gambas). It > failed. "Create-AppImage-Package-Output" attached. According to the output, you specified debian repositories. You must specified Ubuntu repositories, otherwise it can't work! > > I also tried following the example at > https://appimage-builder.readthedocs.io/en/latest/examples/gambas3.html. > "appimage-builder --generate" failed to produce a YML file that looked > usable; ie. it listed nothing to include in the AppDir:apt:include: > section. "AppImageBuilder.yml" attached. > > I then tried making an appimage from hello.gambas following the > procedures at the above appimage-builder example. The generate step > failed as well with similar output to the example. > "appimage-builer-generate-output" attached. > > I think the following line, common to both outputs except for the app > name, may indicate at least part of the issue causing the failure to > produce a viable YML file when trying to create an appimage manually: > WARNING:AppRuntimeAnalyser:/tmp/.mount_appima0Khv6d/usr/bin/strace -f -E > LD_LIBRARY_PATH= -e trace=openat --status=successful > /home/user/devel/appimage-demo-gambas3/AppDir/usr/bin/appimage-demo-gambas3.gambas $@ exited with code 127 > > I didn't find any mention of Gambas exit codes on the Wiki, so I don't > know what code 127 might mean. It's not a problem, as I don't use "appimage-builder --generate". It's not reliable. I just have to specify manually in the 'AppImageBuilder.yml' file the same dependencies as if I would create a Ubuntu binary package. Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Fri Sep 8 20:35:08 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 8 Sep 2023 14:35:08 -0400 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <860fc982-e9c2-d50d-c094-c602f674da93@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <46bbff89-9963-4a84-b251-a1005308af41@gmail.com> <860fc982-e9c2-d50d-c094-c602f674da93@gambas-basic.org> Message-ID: <067922f2-551d-4a1f-ab9a-f638f1786314@gmail.com> On 9/8/23 14:25, Beno?t Minisini wrote: > Le?08/09/2023???19:26,?T?Lee?Davidson?a??crit?: >> >> I installed Debian on a QEMU/KVM VM and tried to create an appimage of the default "hello world" new console application >> (hello.gambas). It failed.?"Create-AppImage-Package-Output"?attached. > > According to the output, you specified debian repositories. You must specified?Ubuntu?repositories,?otherwise?it?can't?work! It was the Gambas "Make installation package" wizard that specified debian repositories, no tme. I wasn't sure what to enter there, and so I clicked the "Get current system configuration" button. It populated "Ubuntu repository" with "http://deb.debian.org/debian/". -- Lee From benoit.minisini at gambas-basic.org Fri Sep 8 21:29:21 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Sep 2023 21:29:21 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <067922f2-551d-4a1f-ab9a-f638f1786314@gmail.com> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <46bbff89-9963-4a84-b251-a1005308af41@gmail.com> <860fc982-e9c2-d50d-c094-c602f674da93@gambas-basic.org> <067922f2-551d-4a1f-ab9a-f638f1786314@gmail.com> Message-ID: <8b35ab78-63b9-9547-5846-6ad718dbff5c@gambas-basic.org> Le 08/09/2023 ? 20:35, T Lee Davidson a ?crit?: > On 9/8/23 14:25, Beno?t Minisini wrote: >> Le?08/09/2023???19:26,?T?Lee?Davidson?a??crit?: >>> >>> I installed Debian on a QEMU/KVM VM and tried to create an appimage >>> of the default "hello world" new console application (hello.gambas). >>> It failed.?"Create-AppImage-Package-Output"?attached. >> >> According to the output, you specified debian repositories. You must >> specified?Ubuntu?repositories,?otherwise?it?can't?work! > > It was the Gambas "Make installation package" wizard that specified > debian repositories, no tme. I wasn't sure what to enter there, and so I > clicked the "Get current system configuration" button. It populated > "Ubuntu repository" with "http://deb.debian.org/debian/". Indeed, it gets the url from /etc/apt/sources.list, which points at your Debian repositories. You must enter an Ubuntu repository. For example: http://fr.archive.ubuntu.com/ubuntu/ I will try to detect that the current system is not Ubuntu to not read /etc/apt/sources.list in that case. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Fri Sep 8 21:38:12 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Sep 2023 21:38:12 +0200 Subject: [Gambas-user] Appimage In-Reply-To: References: Message-ID: <86030b11-3d06-a192-b56f-d1f70f8d3744@gambas-basic.org> Le 08/09/2023 ? 19:27, Fabien Bodard a ?crit?: > Seem to have a problem on some lib access?... work on my own system but > on virtual fedora it fail because some lib seem to miss ... why ? > > > > -- > Fabien Bodard > I think 'appimage-builder' does some weird tricks that sometimes makes 'apt' forget a dependency. Maybe 'libnls' is this sort of library that is loaded at runtime by 'glibc', but that is not a package dependency of 'glibc'. I may be wrong for sure, but I guess it's something like that. You can add explicitly 'libnls' as a package dependency in the packager wizard before building the AppImage. If we find some library required by AppImage on a specific system, I can hardcode the dependency in the source code. I already does that for some wayland client libraries that are not included if your project only uses 'gb.gtk3'. No idea why, as these libraries are an explicit dependency of GTK+3 on Ubuntu. The resulting AppImage is always at least about 50 Mo, so a few more library is not a big deal. Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Fri Sep 8 21:56:18 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 8 Sep 2023 15:56:18 -0400 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <8b35ab78-63b9-9547-5846-6ad718dbff5c@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <46bbff89-9963-4a84-b251-a1005308af41@gmail.com> <860fc982-e9c2-d50d-c094-c602f674da93@gambas-basic.org> <067922f2-551d-4a1f-ab9a-f638f1786314@gmail.com> <8b35ab78-63b9-9547-5846-6ad718dbff5c@gambas-basic.org> Message-ID: <978eb9ca-0e6b-46c8-a7c6-d12707104209@gmail.com> On 9/8/23 15:29, Beno?t Minisini wrote: > Indeed, it gets the url from /etc/apt/sources.list, which points at your Debian?repositories. > > You?must?enter?an?Ubuntu?repository. > > For?example: http://fr.archive.ubuntu.com/ubuntu/ > > I will try to detect that the current system is not Ubuntu to not read /etc/apt/sources.list?in?that?case. That works much better! I used that repo and "lunar". There were a bunch of warnings in the output, but in the end, "The packages have been successfully created." And, the appimage executes successfully. If it helps, the only *-release file I found in /etc was os-release. Content: PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" -- Lee From t.lee.davidson at gmail.com Fri Sep 8 22:27:00 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 8 Sep 2023 16:27:00 -0400 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> Message-ID: <4325dceb-769c-4925-adf8-70272f7e2fe3@gmail.com> On 9/5/23 07:03, Beno?t Minisini wrote: > - The resulting AppImage files are big (at least 50 Mb) and slow to start?(I?mean?slower?than?it?should). Just FYI: Specifying either gb.gtk3 or gb.qt5, as opposed to gb.gui, saves 9-10Mb in the resulting appimage. The simple "hello world" command-line app is only 5Mb. Using gb.gtk3 appears to launch slightly faster. Side note: With either GUI toolkit, showing a Message.Info dialog produced "gb.form: warning: unable to load gb.form.stock component" on the console. -- Lee From benoit.minisini at gambas-basic.org Fri Sep 8 22:30:26 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Sep 2023 22:30:26 +0200 Subject: [Gambas-user] Initial support for making AppImage In-Reply-To: <4325dceb-769c-4925-adf8-70272f7e2fe3@gmail.com> References: <9071edbf-18f9-e762-4552-c603e08902ab@gambas-basic.org> <4325dceb-769c-4925-adf8-70272f7e2fe3@gmail.com> Message-ID: Le 08/09/2023 ? 22:27, T Lee Davidson a ?crit?: > On 9/5/23 07:03, Beno?t Minisini wrote: >> - The resulting AppImage files are big (at least 50 Mb) and slow to >> start?(I?mean?slower?than?it?should). > > Just FYI: > > Specifying either gb.gtk3 or gb.qt5, as opposed to gb.gui, saves 9-10Mb > in the resulting appimage. Of course. If you choose 'gb.gui', I can't guess what you want, so I insert both of them. > > The simple "hello world" command-line app is only 5Mb. > > Using gb.gtk3 appears to launch slightly faster. > > Side note: With either GUI toolkit, showing a Message.Info dialog > produced "gb.form: warning: unable to load gb.form.stock component" on > the console. Yes, that component must be added even if you don't check it in your project, because it is often loaded at runtime to get the beautiful icons I made :-). Regards, -- Beno?t Minisini. From gambas.fr at gmail.com Fri Sep 8 23:40:53 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Sep 2023 23:40:53 +0200 Subject: [Gambas-user] Appimage In-Reply-To: <86030b11-3d06-a192-b56f-d1f70f8d3744@gambas-basic.org> References: <86030b11-3d06-a192-b56f-d1f70f8d3744@gambas-basic.org> Message-ID: Le ven. 8 sept. 2023 ? 21:39, Beno?t Minisini < benoit.minisini at gambas-basic.org> a ?crit : > Le 08/09/2023 ? 19:27, Fabien Bodard a ?crit : > > Seem to have a problem on some lib access ... work on my own system but > > on virtual fedora it fail because some lib seem to miss ... why ? > > > > > > > > -- > > Fabien Bodard > > > > I think 'appimage-builder' does some weird tricks that sometimes makes > 'apt' forget a dependency. > > Maybe 'libnls' is this sort of library that is loaded at runtime by > 'glibc', but that is not a package dependency of 'glibc'. > > I may be wrong for sure, but I guess it's something like that. > > You can add explicitly 'libnls' as a package dependency in the packager > wizard before building the AppImage. > > If we find some library required by AppImage on a specific system, I can > hardcode the dependency in the source code. > > I already does that for some wayland client libraries that are not > included if your project only uses 'gb.gtk3'. No idea why, as these > libraries are an explicit dependency of GTK+3 on Ubuntu. > > The resulting AppImage is always at least about 50 Mo, so a few more > library is not a big deal. > Only 15 mo for an sdl app ... Regards, > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Sat Sep 9 00:00:28 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 9 Sep 2023 00:00:28 +0200 Subject: [Gambas-user] Appimage In-Reply-To: References: <86030b11-3d06-a192-b56f-d1f70f8d3744@gambas-basic.org> Message-ID: <93edfc22-6b92-4230-2afc-b82ca0960376@gambas-basic.org> Le 08/09/2023 ? 23:40, Fabien Bodard a ?crit?: > I think 'appimage-builder' does some weird tricks that sometimes makes > 'apt' forget a dependency. > > Maybe 'libnls' is this sort of library that is loaded at runtime by > 'glibc', but that is not a package dependency of 'glibc'. > > I may be wrong for sure, but I guess it's something like that. > > You can add explicitly 'libnls' as a package dependency in the packager > wizard before building the AppImage. > > If we find some library required by AppImage on a specific system, I > can > hardcode the dependency in the source code. > > I already does that for some wayland client libraries that are not > included if your project only uses 'gb.gtk3'. No idea why, as these > libraries are an explicit dependency of GTK+3 on Ubuntu. > > The resulting AppImage is always at least about 50 Mo, so a few more > library is not a big deal. > > > Only 15 mo for an sdl app ... > Did you try to add the 'libnsl2' package manually? -- Beno?t Minisini. From gambas.fr at gmail.com Sat Sep 9 19:27:41 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 9 Sep 2023 19:27:41 +0200 Subject: [Gambas-user] Appimage In-Reply-To: <93edfc22-6b92-4230-2afc-b82ca0960376@gambas-basic.org> References: <86030b11-3d06-a192-b56f-d1f70f8d3744@gambas-basic.org> <93edfc22-6b92-4230-2afc-b82ca0960376@gambas-basic.org> Message-ID: terrible l'histoire des paquets... libnsl2 n'est pr?sent qu'a partir de jammy. This code was formerly part of glibc, but is now standalone to be able to link against TI-RPC for IPv6 support. Le sam. 9 sept. 2023 ? 00:01, Beno?t Minisini < benoit.minisini at gambas-basic.org> a ?crit : > Le 08/09/2023 ? 23:40, Fabien Bodard a ?crit : > > I think 'appimage-builder' does some weird tricks that sometimes > makes > > 'apt' forget a dependency. > > > > Maybe 'libnls' is this sort of library that is loaded at runtime by > > 'glibc', but that is not a package dependency of 'glibc'. > > > > I may be wrong for sure, but I guess it's something like that. > > > > You can add explicitly 'libnls' as a package dependency in the > packager > > wizard before building the AppImage. > > > > If we find some library required by AppImage on a specific system, I > > can > > hardcode the dependency in the source code. > > > > I already does that for some wayland client libraries that are not > > included if your project only uses 'gb.gtk3'. No idea why, as these > > libraries are an explicit dependency of GTK+3 on Ubuntu. > > > > The resulting AppImage is always at least about 50 Mo, so a few more > > library is not a big deal. > > > > > > Only 15 mo for an sdl app ... > > > > Did you try to add the 'libnsl2' package manually? > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sat Sep 9 19:56:28 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 9 Sep 2023 19:56:28 +0200 Subject: [Gambas-user] Appimage In-Reply-To: References: <86030b11-3d06-a192-b56f-d1f70f8d3744@gambas-basic.org> <93edfc22-6b92-4230-2afc-b82ca0960376@gambas-basic.org> Message-ID: Regarde moi ?a si c'est po meunion :-) le poid de mon app est de 20 mo a pr?sent. Par contre pas de barre de titre ... viva gnome. Il me reste plus qu'a voir si je peux g?n?rer un paquet sous fedora. -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture d??cran du 2023-09-09 19-32-48.png Type: image/png Size: 151192 bytes Desc: not available URL: From gambas.fr at gmail.com Sat Sep 9 23:07:28 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 9 Sep 2023 23:07:28 +0200 Subject: [Gambas-user] Appimage In-Reply-To: References: <86030b11-3d06-a192-b56f-d1f70f8d3744@gambas-basic.org> <93edfc22-6b92-4230-2afc-b82ca0960376@gambas-basic.org> Message-ID: j'ai eu encore un soucis avec majaro... libdecor... et oui la version que j'avais ne supporte pas wayland :-/ du coup c'est une version bionic qui a fait la balle ... donc sans libnsl 2 ce qui ne va pas a fedora ?... ya pas de miracle... entre les ?volution de gcc et de X c'est le bazzard Le sam. 9 sept. 2023 ? 19:56, Fabien Bodard a ?crit : > Regarde moi ?a si c'est po meunion :-) > > le poid de mon app est de 20 mo a pr?sent. Par contre pas de barre de > titre ... viva gnome. > > Il me reste plus qu'a voir si je peux g?n?rer un paquet sous fedora. > -- > Fabien Bodard > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.fischer6 at web.de Sun Sep 10 19:04:16 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Sun, 10 Sep 2023 19:04:16 +0200 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? Message-ID: <9563a759-f645-b570-0422-de0cefb54851@web.de> Hi all, I was quite surprised that gambas does not provide a general-purpose list implementation (I know, there is data.List, but that is not general purpose I think...) So I created one: -------------------------- ### A list implementation backed by an array of Variant. An ArrayList can keep up to MAX_INT entries.\ It grows automatically if the initial capacity of the backing array is exceeded.\ It will also shrink if you remove existing elements. Iteration-order is defined as insertion-order (for the classical "For" loop as well as for the "For-Each" loop).\ Usually this implementation is space and time-efficient and cache-friendly: - Add, Clear, Slice, SliceOfSize: O(1) - GetAt, SetAt: O(1) - Contains, Remove, RemoveAt, AsArray: O(n) Note that elements of this list can be accessed with the array-index-access operator ([]). This class is Serializable. Usage Example: Dim list As ArrayList = New ArrayList(10) ' optional initial capacity: 10 list.Add("e1") ' add some elements list.Add("e2") list.Add("e3") list.AddAll("e4", "e5", "e6") ' add many elements explicitly list.AddAllFromEnumerable(list2) ' add all elements from anything that can be traversed via For-Each loop, e.g an ArrayList or an array Dim specialElement = list[0] ' retrieve elements of list with array-index access list[1] = "e2_new" ' existing list elements can be changed For Each elem As String In list ' classic "For" and "For In" loops are supported process(elem) Next Dim sublist As SlicedArrayList = list.Slice(2, 4) ' get a sublist as view of original list. No copying involved here list.Sort(gb.Descent) ' sort the list in-place What do you think? ____________________________________ Martin Fischer From benoit.minisini at gambas-basic.org Sun Sep 10 19:55:15 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 10 Sep 2023 19:55:15 +0200 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? In-Reply-To: <9563a759-f645-b570-0422-de0cefb54851@web.de> References: <9563a759-f645-b570-0422-de0cefb54851@web.de> Message-ID: <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> Le 10/09/2023 ? 19:04, Martin Fischer a ?crit?: > Hi all, > > I was quite surprised that gambas does not provide a general-purpose > list implementation (I know, there is data.List, but that is not general > purpose I think...) > So I created one: > > -------------------------- > ### A list implementation backed by an array of Variant. > > An ArrayList can keep up to MAX_INT entries.\ > It grows automatically if the initial capacity of the backing array is > exceeded.\ > It will also shrink if you remove existing elements. > > Iteration-order is defined as insertion-order (for the classical "For" > loop as well as for the "For-Each" loop).\ > > Usually this implementation is space and time-efficient and cache-friendly: > - Add, Clear, Slice, SliceOfSize: O(1) > - GetAt, SetAt: O(1) > - Contains, Remove, RemoveAt, AsArray: O(n) > > Note that elements of this list can be accessed with the > array-index-access operator ([]). > > This class is Serializable. > > Usage Example: > ??? Dim list As ArrayList = New ArrayList(10) ' optional initial > capacity: 10 > > ??? list.Add("e1") ' add some elements > ??? list.Add("e2") > ??? list.Add("e3") > ??? list.AddAll("e4", "e5", "e6") ' add many elements explicitly > ??? list.AddAllFromEnumerable(list2) ' add all elements from anything > that can be traversed via For-Each loop, e.g an ArrayList or an array > > ??? Dim specialElement = list[0] ' retrieve elements of list with > array-index access > ??? list[1] = "e2_new" ' existing list elements can be changed > > ??? For Each elem As String In list ' classic "For" and "For In" loops > are supported > ?????? process(elem) > ??? Next > > ??? Dim sublist As SlicedArrayList = list.Slice(2, 4) ' get a sublist > as view of original list. No copying involved here > > ??? list.Sort(gb.Descent) ' sort the list in-place > > > What do you think? > > > ____________________________________ > Martin Fischer > I don't see the need of that as you can already use an array to do the same thing. Or maybe I missed something? -- Beno?t Minisini. From martin.fischer6 at web.de Sun Sep 10 21:10:07 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Sun, 10 Sep 2023 21:10:07 +0200 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? In-Reply-To: <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> References: <9563a759-f645-b570-0422-de0cefb54851@web.de> <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> Message-ID: > > I don't see the need of that as you can already use an array to do the > same thing. > > Or maybe I missed something? > Benoit, first I was confused about your reply... Then I thought: He really should know... Then I fired up gambas to find out if native arrays do already have the convenience of my ArrayList... And yes: you are right. Arrays resize automatically and have a "add to tail" method (Add), and, and, and, ... The only thing they do not have is the Slice (sublist view) stuff. But that is surely not a justification to add another class. I'm just wondering why I did not find this in the gambas-wiki. Is it possible that this is basically undocumented? Regards Martin From gradobag at gradobag.it Sun Sep 10 22:53:01 2023 From: gradobag at gradobag.it (Gianluigi) Date: Sun, 10 Sep 2023 22:53:01 +0200 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? In-Reply-To: References: <9563a759-f645-b570-0422-de0cefb54851@web.de> <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> Message-ID: Il 10/09/23 21:10, Martin Fischer ha scritto: >> >> I don't see the need of that as you can already use an array to do the >> same thing. >> >> Or maybe I missed something? >> > > Benoit, > > first I was confused about your reply... > Then I thought: He really should know... > Then I fired up gambas to find out if native arrays do already have the > convenience of my ArrayList... > > And yes: you are right. Arrays resize automatically and have a "add to > tail" method (Add), and, and, and, ... > The only thing they do not have is the Slice (sublist view) stuff. But > that is surely not a justification to add another class. > > I'm just wondering why I did not find this in the gambas-wiki. Is it > possible that this is basically undocumented? > > Regards > Martin > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Sorry Martin, I didn't understand what you mean by 'Slice', something like that? Public Sub Main() ? Dim aArr As String[] = ["A", "B", "C", "D", "E", "F", "G"] ? For Each s As String In aArr.Copy(3, 3) ??? Print s ? Next End Regards Gianluigi From jussi.lahtinen at gmail.com Sun Sep 10 23:02:51 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 11 Sep 2023 00:02:51 +0300 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? In-Reply-To: References: <9563a759-f645-b570-0422-de0cefb54851@web.de> <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> Message-ID: The documentation is there. https://gambaswiki.org/wiki/cat/array Here example specifically for string arrays: https://gambaswiki.org/wiki/comp/gb/string[] Jussi On Sun, Sep 10, 2023 at 10:11?PM Martin Fischer wrote: > > > > I don't see the need of that as you can already use an array to do the > > same thing. > > > > Or maybe I missed something? > > > > Benoit, > > first I was confused about your reply... > Then I thought: He really should know... > Then I fired up gambas to find out if native arrays do already have the > convenience of my ArrayList... > > And yes: you are right. Arrays resize automatically and have a "add to > tail" method (Add), and, and, and, ... > The only thing they do not have is the Slice (sublist view) stuff. But > that is surely not a justification to add another class. > > I'm just wondering why I did not find this in the gambas-wiki. Is it > possible that this is basically undocumented? > > Regards > Martin > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Sep 10 23:03:18 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Sep 2023 23:03:18 +0200 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? In-Reply-To: References: <9563a759-f645-b570-0422-de0cefb54851@web.de> <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> Message-ID: Le dim. 10 sept. 2023 ? 22:54, Gianluigi a ?crit : > Il 10/09/23 21:10, Martin Fischer ha scritto: > >> > >> I don't see the need of that as you can already use an array to do the > >> same thing. > >> > >> Or maybe I missed something? > >> > > > > Benoit, > > > > first I was confused about your reply... > > Then I thought: He really should know... > > Then I fired up gambas to find out if native arrays do already have the > > convenience of my ArrayList... > > > > And yes: you are right. Arrays resize automatically and have a "add to > > tail" method (Add), and, and, and, ... > > The only thing they do not have is the Slice (sublist view) stuff. But > > that is surely not a justification to add another class. > > > > I'm just wondering why I did not find this in the gambas-wiki. Is it > > possible that this is basically undocumented? > > > > Regards > > Martin > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Sorry Martin, > > I didn't understand what you mean by 'Slice', something like that? > > Public Sub Main() > > Dim aArr As String[] = ["A", "B", "C", "D", "E", "F", "G"] > > For Each s As String In aArr.Copy(3, 3) > Print s > Next > > End > > Regards > > Gianluigi > in langage like rust a slice is a kind of special pointer to an array or any list with 3 coords like arrayref,position, length. dim myarray as array = [...,...,... dim mySlice as Slice = MyArray.Slice(2,23) for each s in MySlice ... I you change value in array then the value change also in the slice as it is just a pointer to an array part. It can be usefull on string analysis. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gradobag at gradobag.it Mon Sep 11 09:53:56 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 11 Sep 2023 09:53:56 +0200 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? In-Reply-To: References: <9563a759-f645-b570-0422-de0cefb54851@web.de> <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> Message-ID: Il 10/09/23 23:03, Fabien Bodard ha scritto: > in langage like rust a slice is a kind of special pointer to an array > or any list with 3 coords like arrayref,position, length. > > dim myarray as array = [...,...,... > > dim mySlice as Slice = MyArray.Slice(2,23) > > for each s in MySlice > ... > > I you change value in array then the value change also in the slice as > it is just a pointer to an array part. > > It can be usefull?on string analysis. > > Fabien Bodard > Hi Fabien, Thanks for the explanations, now I know something more than the programming :-) You are always kind Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gradobag at gradobag.it Mon Sep 11 10:18:33 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 11 Sep 2023 10:18:33 +0200 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? In-Reply-To: References: <9563a759-f645-b570-0422-de0cefb54851@web.de> <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> Message-ID: <1bdea338-19d7-17f4-6df6-8f9eaaa34fc7@gradobag.it> Il 11/09/23 09:53, Gianluigi ha scritto: > Il 10/09/23 23:03, Fabien Bodard ha scritto: >> in langage like rust a slice is a kind of special pointer to an array >> or any list with 3 coords like arrayref,position, length. >> >> dim myarray as array = [...,...,... >> >> dim mySlice as Slice = MyArray.Slice(2,23) >> >> for each s in MySlice >> ... >> >> I you change value in array then the value change also in the slice >> as it is just a pointer to an array part. >> >> It can be usefull?on string analysis. >> >> Fabien Bodard >> > > Hi Fabien, > > Thanks for the explanations, now I know something more than the > programming :-) > > You are always kind > > Regards > > Gianluigi > You made me want to check out Bjarne Stroustrup's book. Slice is well explained, unfortunately it is 'way' beyond my mental capabilities. Modestly, my ignorance is vast and touches all points :-D Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Sep 11 17:37:04 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 11 Sep 2023 11:37:04 -0400 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? In-Reply-To: <1bdea338-19d7-17f4-6df6-8f9eaaa34fc7@gradobag.it> References: <9563a759-f645-b570-0422-de0cefb54851@web.de> <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> <1bdea338-19d7-17f4-6df6-8f9eaaa34fc7@gradobag.it> Message-ID: <29f6e49d-3cd9-4992-bcb8-f02de0bd8285@gmail.com> On 9/11/23 04:18, Gianluigi wrote: > You made me want to check out Bjarne Stroustrup's book. > > Slice is well explained, unfortunately it is 'way' beyond my mental capabilities. > I have to doubt, Gianluigi, that slices are beyond your comprehension. They are actually not complex. Perhaps that book's explanation was rather convoluted. A slice is, simply stated, a limited view of an array. Suppose we could do this: Dim aStrings As String[] = ["one", "two", "three", "four", "five", "six", "seven"] Dim aSlice As Slice = aStrings.Slice(2, 3) ' Syntax equals Slice(startIndex, Length) [ Except in Python :-\ ] The slice's view of the underlying array would consist of only the values ["three", "four", "five"] and would be indexed starting at zero. Print aSlice[1] ' Would print "four" Since a slice is not a copy of a subset of an array (but holds a reference to the underlying array), changing a value in the slice also changes the referenced value in the array: aSlice[1] = "nine" ' aStrings now equals ["one", "two", "three", "nine", "five", "six", "seven"] See? Simple. (But, I may not have explained it very well either.) -- Lee From adamnt42 at gmail.com Mon Sep 11 18:10:16 2023 From: adamnt42 at gmail.com (BB) Date: Tue, 12 Sep 2023 01:40:16 +0930 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? In-Reply-To: <29f6e49d-3cd9-4992-bcb8-f02de0bd8285@gmail.com> References: <9563a759-f645-b570-0422-de0cefb54851@web.de> <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> <1bdea338-19d7-17f4-6df6-8f9eaaa34fc7@gradobag.it> <29f6e49d-3cd9-4992-bcb8-f02de0bd8285@gmail.com> Message-ID: On 12/9/23 1:07 am, T Lee Davidson wrote: > On 9/11/23 04:18, Gianluigi wrote: >> You made me want to check out Bjarne Stroustrup's book. >> >> Slice is well explained, unfortunately it is 'way' beyond my mental >> capabilities. >> > > I have to doubt, Gianluigi, that slices are beyond your comprehension. > They are actually not complex. Perhaps that book's explanation was > rather convoluted. > > A slice is, simply stated, a limited view of an array. > > Suppose we could do this: > > Dim aStrings As String[] = ["one", "two", "three", "four", "five", > "six", "seven"] > Dim aSlice As Slice = aStrings.Slice(2, 3) ' Syntax equals > Slice(startIndex, Length) [ Except in Python :-\ ] > > The slice's view of the underlying array would consist of only the > values ["three", "four", "five"] and would be indexed starting at zero. > > Print aSlice[1] ' Would print "four" > > Since a slice is not a copy of a subset of an array (but holds a > reference to the underlying array), changing a value in the slice also > changes the referenced value in the array: > > aSlice[1] = "nine" > ' aStrings now equals ["one", "two", "three", "nine", "five", "six", > "seven"] > > See? Simple. (But, I may not have explained it very well either.) > > and presumably, since they are "just" a reference into the array, you could do adds or inserts into the array using either the array or the slice and they would stay synchronised. I am not sure what extracts or removes would be capable of mucking up though. Using Lee's sample aSlice = aStrings.Slice(5,2) aStrings.Remove(5,2) 'Where would aSlice be pointing to now? Would it be null or an empty String[]? or aStrings.Extract(4,-1) ' Where would aSlice be pointing to now? Would it be null or an empty String[]? I think they have to be an empty string array, but the reference into the original array must be destroyed. b From gradobag at gradobag.it Mon Sep 11 18:27:01 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 11 Sep 2023 18:27:01 +0200 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? In-Reply-To: <29f6e49d-3cd9-4992-bcb8-f02de0bd8285@gmail.com> References: <9563a759-f645-b570-0422-de0cefb54851@web.de> <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> <1bdea338-19d7-17f4-6df6-8f9eaaa34fc7@gradobag.it> <29f6e49d-3cd9-4992-bcb8-f02de0bd8285@gmail.com> Message-ID: Il 11/09/23 17:37, T Lee Davidson ha scritto: > On 9/11/23 04:18, Gianluigi wrote: >> You made me want to check out Bjarne Stroustrup's book. >> >> Slice is well explained, unfortunately it is 'way' beyond my mental >> capabilities. >> > > I have to doubt, Gianluigi, that slices are beyond your comprehension. > They are actually not complex. Perhaps that book's explanation was > rather convoluted. > > A slice is, simply stated, a limited view of an array. > > Suppose we could do this: > > Dim aStrings As String[] = ["one", "two", "three", "four", "five", > "six", "seven"] > Dim aSlice As Slice = aStrings.Slice(2, 3) ' Syntax equals > Slice(startIndex, Length) [ Except in Python :-\ ] > > The slice's view of the underlying array would consist of only the > values ["three", "four", "five"] and would be indexed starting at zero. > > Print aSlice[1] ' Would print "four" > > Since a slice is not a copy of a subset of an array (but holds a > reference to the underlying array), changing a value in the slice also > changes the referenced value in the array: > > aSlice[1] = "nine" > ' aStrings now equals ["one", "two", "three", "nine", "five", "six", > "seven"] > > See? Simple. (But, I may not have explained it very well either.) > He Lee, Now I can say I really understand and yes, it is not difficult. Fabien tried to explain it to me but for my mind he was too hurried. But he can afford it, since he participates in the production of that divine nectar called Cognac :-) Thank you all Regards Gianluigi From t.lee.davidson at gmail.com Mon Sep 11 19:04:16 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 11 Sep 2023 13:04:16 -0400 Subject: [Gambas-user] Would an ArrayList datatype be helpful for gambas users? In-Reply-To: References: <9563a759-f645-b570-0422-de0cefb54851@web.de> <04b8eb75-57e1-ff25-c13e-51493839c6a4@gambas-basic.org> <1bdea338-19d7-17f4-6df6-8f9eaaa34fc7@gradobag.it> <29f6e49d-3cd9-4992-bcb8-f02de0bd8285@gmail.com> Message-ID: <40c3bd1e-2639-4df4-994c-d2763eac1844@gmail.com> On 9/11/23 12:10, BB wrote: > I am not sure what extracts or removes would be capable of mucking up though.?Using?Lee's?sample > > aSlice?=?aStrings.Slice(5,2) > aStrings.Remove(5,2) 'Where would aSlice be pointing to now? Would it be null?or?an?empty?String[]? > > or > > aStrings.Extract(4,-1) ' Where would aSlice be pointing to now? Would it be?null?or?an?empty?String[]? In both situations, that would depend on how the particular language implements a slice under the hood. If it holds a reference on the underlying array, ie. the array's first data element (using an offset and a length as limiters), then any access of the slice's elements, now non-existent in the array, would be an out of bounds condition of the array. If on the other hand, the slice holds a reference to the index /within/ the array which is specified by the slice's starting index, then the reference would become invalid, ie. a dangling pointer. And, yes, I think the reference into the original array must be nullified. > I think they have to be an empty string array, but the reference into the?original?array?must?be?destroyed. -- Lee From gambas.fr at gmail.com Mon Sep 11 19:37:23 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 11 Sep 2023 19:37:23 +0200 Subject: [Gambas-user] inotify Message-ID: hi, is it possible to watch a file in the /proc path ? I'm trying to watch /proc/self/mountstats... but I'm not able to catch the file modification :-/ any idea ? -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.premoli at tiscali.it Mon Sep 11 20:46:31 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Mon, 11 Sep 2023 20:46:31 +0200 Subject: [Gambas-user] inotify In-Reply-To: References: Message-ID: Il 11.09.2023 19:37 Fabien Bodard ha scritto: > hi, is it possible to watch a file in the /proc path ? > I'm trying to watch /proc/self/mountstats... but I'm not able to > catch > the file modification :-/ > any idea ? > Fabien Bodard Dim variable as string exec ["cat", "/path/you/want/file/you/want] to variable print variable From vuott at tutanota.com Tue Sep 12 00:17:35 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Tue, 12 Sep 2023 00:17:35 +0200 (CEST) Subject: [Gambas-user] inotify In-Reply-To: References: Message-ID: ...maybe: [code] Private dr As String Private lun As String Private fl As File Public Sub Main() ? dr = "/proc/self/mountstats" lun = File.Load(dr) ? fl = Open dr For Read Watch ?? End Public Sub File_Read() ? Dim s As String ?? If Exist(dr) Then ?? s = File.Load(dr) ?? If lun <> s Then? ???? Print "File '"; dr; "' has been modified !\n"???? Print s ? Endif ?? lun = s Else ?? Print "\nfile '"; dr; "'?was destroyed !"?? fl.Close Endif ??? End[/code] 11 set 2023, 19:38 da gambas.fr at gmail.com: > hi, > > is it possible to watch a file in the /proc path ? > > I'm trying to watch /proc/self/mountstats... but I'm not able to catch the file modification :-/ > > any idea ? > > -- > Fabien Bodard > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Sep 12 06:04:07 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 12 Sep 2023 00:04:07 -0400 Subject: [Gambas-user] inotify In-Reply-To: References: Message-ID: On 9/11/23 13:37, Fabien Bodard wrote: > hi, > > is it possible to watch a file in the /proc path ? > > I'm trying to watch /proc/self/mountstats... but I'm not able to catch the file modification :-/ > > any idea ? > > -- > Fabien Bodard From `man 7 inotify` in the "Limitations and caveats" section: "Furthermore, various pseudo-filesystems such as /proc, /sys, and /dev/pts are not monitorable with inotify." -- Lee From adamnt42 at gmail.com Tue Sep 12 12:19:47 2023 From: adamnt42 at gmail.com (BB) Date: Tue, 12 Sep 2023 19:49:47 +0930 Subject: [Gambas-user] inotify In-Reply-To: References: Message-ID: <26cc6bb6-ec4a-48be-31cc-37977d45e94b@gmail.com> On 12/9/23 1:34 pm, T Lee Davidson wrote: > On 9/11/23 13:37, Fabien Bodard wrote: >> hi, >> >> is it possible to watch a file in the /proc path ? >> >> I'm trying to watch /proc/self/mountstats... but I'm not able to >> catch the file modification :-/ >> >> any idea ? >> >> -- >> Fabien Bodard > > From `man 7 inotify` in the "Limitations and caveats" section: > "Furthermore, various pseudo-filesystems such as /proc, /sys, and > /dev/pts are not monitorable with inotify." > "Well caught, SIr Davidson!!" I tried a bit of a fudge test today "tailing" the said file fairly briskly while swapping some USB doodads and here at least, the change in mountstats was appearing quite some time after the USB had been mounted and the file manager appeared. Up to 2 seconds later. I don't know if that's an artifact or just a distro thing but it would seem that if that lag is widespread then polling and "stat"-ing it a fairly leisurely pace could suffice? b From gambas.fr at gmail.com Tue Sep 12 13:47:15 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 12 Sep 2023 13:47:15 +0200 Subject: [Gambas-user] inotify In-Reply-To: <26cc6bb6-ec4a-48be-31cc-37977d45e94b@gmail.com> References: <26cc6bb6-ec4a-48be-31cc-37977d45e94b@gmail.com> Message-ID: Hi, bruce ... yes I think a stat call on a 5 sec delay will do the job. thank you to all ... and to Lee to Point me on the inotify doc :-/, I forgot to read it :-D -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Sep 12 16:25:25 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 12 Sep 2023 10:25:25 -0400 Subject: [Gambas-user] inotify In-Reply-To: References: <26cc6bb6-ec4a-48be-31cc-37977d45e94b@gmail.com> Message-ID: On 9/12/23 07:47, Fabien Bodard wrote: > thank you to all ... and to Lee to Point me on the inotify doc :-/, I forgot to read it :-D Actually, thanks should not go to me but to whomever wrote the content of the warning box at the top of https://gambaswiki.org/wiki/comp/gb.inotify/watch (I assume Beno?t). For in that box, it says: 'You should read the "Limitations and caveats" section of the inotify manpage (man 7 inotify). This same manpage is a good source for additional information.' :-) -- Lee From benoit.minisini at gambas-basic.org Tue Sep 12 16:30:56 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 12 Sep 2023 16:30:56 +0200 Subject: [Gambas-user] inotify In-Reply-To: References: <26cc6bb6-ec4a-48be-31cc-37977d45e94b@gmail.com> Message-ID: <5203221f-c989-a87c-989f-77eda9bb3c93@gambas-basic.org> Le 12/09/2023 ? 16:25, T Lee Davidson a ?crit?: > On 9/12/23 07:47, Fabien Bodard wrote: >> thank you to all ... and to Lee to Point me on the inotify doc :-/, I >> forgot to read it :-D > > Actually, thanks should not go to me but to whomever wrote the content > of the warning box at the top of > https://gambaswiki.org/wiki/comp/gb.inotify/watch (I assume Beno?t). > It's actually Tobias Boege who wrote that. You can see that by browsing the page history in the wiki. Thanks to him! -- Beno?t Minisini. From gambas.fr at gmail.com Tue Sep 12 19:33:12 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 12 Sep 2023 19:33:12 +0200 Subject: [Gambas-user] inotify In-Reply-To: <5203221f-c989-a87c-989f-77eda9bb3c93@gambas-basic.org> References: <26cc6bb6-ec4a-48be-31cc-37977d45e94b@gmail.com> <5203221f-c989-a87c-989f-77eda9bb3c93@gambas-basic.org> Message-ID: Le mar. 12 sept. 2023 ? 16:31, Beno?t Minisini < benoit.minisini at gambas-basic.org> a ?crit : > Le 12/09/2023 ? 16:25, T Lee Davidson a ?crit : > > On 9/12/23 07:47, Fabien Bodard wrote: > >> thank you to all ... and to Lee to Point me on the inotify doc :-/, I > >> forgot to read it :-D > > > > Actually, thanks should not go to me but to whomever wrote the content > > of the warning box at the top of > > https://gambaswiki.org/wiki/comp/gb.inotify/watch (I assume Beno?t). > > > > It's actually Tobias Boege who wrote that. You can see that by browsing > the page history in the wiki. Thanks to him! > Yes and it's really usefull > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Thu Sep 14 04:19:59 2023 From: isafiur at gmail.com (Safiur Rahman) Date: Thu, 14 Sep 2023 08:04:59 +0545 Subject: [Gambas-user] How to rearrange menu in gb.web.gui Message-ID: Hi I am using gb.web.gui application with menu bar at top. With containers of different arrangement, mediaquery in CSS and viewport in Form header I could achieve responsive application for both mobile size and desktop size devices. The only thing I could not arrange is top menu. Is there anyway to display top menu in two or more rows if the device width is reduced? -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: From gradobag at gradobag.it Thu Sep 14 11:56:47 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 14 Sep 2023 11:56:47 +0200 Subject: [Gambas-user] How to rearrange menu in gb.web.gui In-Reply-To: References: Message-ID: Il 14/09/23 04:19, Safiur Rahman ha scritto: > Hi > > I am using gb.web.gui application with menu bar at top. > With containers of different arrangement, mediaquery in CSS and > viewport in Form header I could achieve responsive application for > both mobile size and desktop size devices. The only thing I could not > arrange is top menu. Is there anyway to display top menu in two or > more rows if the device width is reduced? > > -- > Regards > Safiur Rahman > > ----[http://gambaswiki.org/wiki/doc/netiquette ]---- Hi as usual I'll call bullshit, but if you don't always have to show all the menus, you could play on the Visible property of the menus Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gradobag at gradobag.it Thu Sep 14 12:32:59 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 14 Sep 2023 12:32:59 +0200 Subject: [Gambas-user] How to rearrange menu in gb.web.gui In-Reply-To: References: Message-ID: <5803405f-c8ca-36e8-ef2f-6b527c021499@gradobag.it> Il 14/09/23 11:56, Gianluigi ha scritto: > Il 14/09/23 04:19, Safiur Rahman ha scritto: >> Hi >> >> I am using gb.web.gui application with menu bar at top. >> With containers of different arrangement, mediaquery in CSS and >> viewport in Form header I could achieve responsive application for >> both mobile size and desktop size devices. The only thing I could not >> arrange is top menu. Is there anyway to display top menu in two or >> more rows if the device width is reduced? >> >> -- >> Regards >> Safiur Rahman >> >> ----[http://gambaswiki.org/wiki/doc/netiquette ]---- > > Hi > > as usual I'll call bullshit, but if you don't always have to show all > the menus, you could play on the Visible property of the menus > > Regards > > Gianluigi > As for the Hamburger menu you can download the Webapp4 project here: https://gambas-buch.de/doku.php?id=k24:k24.6:k24.6.2:k24.6.2.4:start&s[]=webapp Maybe you find an inspiration Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.fischer6 at web.de Thu Sep 14 16:03:04 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Thu, 14 Sep 2023 16:03:04 +0200 Subject: [Gambas-user] Finally/Catch and Return: How is that meant to be used? Message-ID: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> Hi all, I think I don't understand the approach to error handling gambas has chosen. Let's take a simple, very common problem: a function that shall return the id (int) of something. To get this id, a looooong and very complicated sequence of steps have to be taken. This involves the allocation of resources that have to be cleaned up in any case. All kinds of errors could happen on the way (errors might get risen). Here is pseudocode for this: ----------------------- Public Function getComplicatedId() As Integer Dim result As Integer ' do some very complicated stuff ' resources are allocated on the way. E.g. heap Alloc Return result Finally ' clean up resources here Catch ' do some logging here Error.Raise("Can't handle this!") End ----------------------- The first problem with this code is that the "Return result" causes the Finally block to be skipped. Moving the "Return result" as last statement into the Finally block does work but prevents the Catch block to be executed in case of an error. Bad. I'm sure that there is a way to handle cleanup and errors in a clean manner (I mean: without Gotos and Labels). I just can't see how to do it with Return, Finally and Catch... Does anyone have an explanation or example or reference to a sample/documentation for this problem? Thanks __________________________________ Martin Fischer From benoit.minisini at gambas-basic.org Thu Sep 14 16:30:19 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 Sep 2023 16:30:19 +0200 Subject: [Gambas-user] Finally/Catch and Return: How is that meant to be used? In-Reply-To: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> References: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> Message-ID: Le 14/09/2023 ? 16:03, Martin Fischer a ?crit?: > Hi all, > > I think I don't understand the approach to error handling gambas has > chosen. > > Let's take a simple, very common problem: a function that shall return > the id (int) of something. To get this id, a looooong and very > complicated sequence of steps have to be taken. This involves the > allocation of resources that have to be cleaned up in any case. All > kinds of errors could happen on the way (errors might get risen). > > Here is pseudocode for this: > > ----------------------- > Public Function getComplicatedId() As Integer > ????Dim result As Integer > > ????' do some very complicated stuff > ????' resources are allocated on the way. E.g. heap Alloc > > ????Return result > > Finally > ????' clean up resources here > Catch > ????' do some logging here > ????Error.Raise("Can't handle this!") > End > ----------------------- > > The first problem with this code is that the "Return result" causes the > Finally block to be skipped. > > Moving the "Return result" as last statement into the Finally block does > work but prevents the Catch block to be executed in case of an error. Bad. > > I'm sure that there is a way to handle cleanup and errors in a clean > manner (I mean: without Gotos and Labels). I just can't see how to do it > with Return, Finally and Catch... > > Does anyone have an explanation or example or reference to a > sample/documentation for this problem? > > Thanks > > __________________________________ > Martin Fischer > The only way to deal with that problem I see is the following: ----------------------- Public Function getComplicatedId() As Integer Dim result As Integer Dim bReturn As Boolean ' do some very complicated stuff ' resources are allocated on the way. E.g. heap Alloc bReturn = True Finally ' clean up resources here if bReturn Then Return result Catch ' do some logging here Error.Raise("Can't handle this!") End ----------------------- The interpreter misses a flag local to the function that allows to tell that Finally was reached without raising an error. Regards, -- Beno?t Minisini. From gradobag at gradobag.it Thu Sep 14 16:30:25 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 14 Sep 2023 16:30:25 +0200 Subject: [Gambas-user] Finally/Catch and Return: How is that meant to be used? In-Reply-To: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> References: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> Message-ID: <89b308ba-535c-729a-b0d8-76087b86bd34@gradobag.it> Il 14/09/23 16:03, Martin Fischer ha scritto: > Hi all, > > I think I don't understand the approach to error handling gambas has > chosen. > > Let's take a simple, very common problem: a function that shall return > the id (int) of something. To get this id, a looooong and very > complicated sequence of steps have to be taken. This involves the > allocation of resources that have to be cleaned up in any case. All > kinds of errors could happen on the way (errors might get risen). > > Here is pseudocode for this: > > ----------------------- > Public Function getComplicatedId() As Integer > ????Dim result As Integer > > ????' do some very complicated stuff > ????' resources are allocated on the way. E.g. heap Alloc > > ????Return result > > Finally > ????' clean up resources here > Catch > ????' do some logging here > ????Error.Raise("Can't handle this!") > End > ----------------------- > > The first problem with this code is that the "Return result" causes the > Finally block to be skipped. > > Moving the "Return result" as last statement into the Finally block does > work but prevents the Catch block to be executed in case of an error. > Bad. > > I'm sure that there is a way to handle cleanup and errors in a clean > manner (I mean: without Gotos and Labels). I just can't see how to do it > with Return, Finally and Catch... > > Does anyone have an explanation or example or reference to a > sample/documentation for this problem? > > Thanks > > __________________________________ > Martin Fischer > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- I think (but I'm not sure) that this answer your question: http://gambaswiki.org/wiki/lang/finally?nl Regards Gianluigi From gambas at servinfo.it Thu Sep 14 16:39:57 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Thu, 14 Sep 2023 16:39:57 +0200 Subject: [Gambas-user] Problema with stop event on gb.web.gui Message-ID: <0f24ec7e-847e-4f1e-2881-4cb94db8c6cd@servinfo.it> Hi all, I have a problem using stop event on keypress inside a webtextbox on gb.web.gui. If I made a simple: Public Sub WebTextBox1_KeyPress() ? If InStr("0123456789", Key.Text) = 0 Then ??? Stop Event ? Endif End The webtextbox continue to receive all value , also number. Is this a bug or working with gb.web.gui pretend a different approach to made a textbox accept only some values ? Thanks in advance, Marco. From martin.fischer6 at web.de Thu Sep 14 16:48:05 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Thu, 14 Sep 2023 16:48:05 +0200 Subject: [Gambas-user] Finally/Catch and Return: How is that meant to be used? In-Reply-To: <89b308ba-535c-729a-b0d8-76087b86bd34@gradobag.it> References: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> <89b308ba-535c-729a-b0d8-76087b86bd34@gradobag.it> Message-ID: <3ba971ec-f756-6bc4-e5a3-9d163f158b54@web.de> > > I think (but I'm not sure) that this answer your question: > > http://gambaswiki.org/wiki/lang/finally?nl > > Regards > > Gianluigi > Gianluigi, thanks for the reference, but I'm aware of that already. My problem comes from this harmless looking paragraph in the document you referenced: This does not completely Ensure that code is run no matter what. If RETURN is used to exit a function before Finally then the Finally part will only run if an error is raised. This is a substantial deviation from "Finally"-semantics in other languages. This is why I'm surprised... Regards, Martin From martin.fischer6 at web.de Thu Sep 14 17:04:16 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Thu, 14 Sep 2023 17:04:16 +0200 Subject: [Gambas-user] Finally/Catch and Return: How is that meant to be used? In-Reply-To: References: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> Message-ID: > > The only way to deal with that problem I see is the following: > > ----------------------- > Public Function getComplicatedId() As Integer > ??? Dim result As Integer > ??? Dim bReturn As Boolean > > ??? ' do some very complicated stuff > ??? ' resources are allocated on the way. E.g. heap Alloc > > ??? bReturn = True > > Finally > ??? ' clean up resources here > ??? if bReturn Then Return result > > Catch > ??? ' do some logging here > ??? Error.Raise("Can't handle this!") > End > ----------------------- > > The interpreter misses a flag local to the function that allows to tell > that Finally was reached without raising an error. > > Regards, > Benoit, yes, that does the job. But, well, it feels a bit ugly... I mean: it's hard to define the proper semantics of Finally with this 'complications'. Anyway, thank you for the hint. Maybe, in a release 4 or so, we will get a 'do-what-I-expect-you-to-do"-Finally?? Regards Martin From gradobag at gradobag.it Thu Sep 14 18:21:46 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 14 Sep 2023 18:21:46 +0200 Subject: [Gambas-user] Finally/Catch and Return: How is that meant to be used? In-Reply-To: <3ba971ec-f756-6bc4-e5a3-9d163f158b54@web.de> References: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> <89b308ba-535c-729a-b0d8-76087b86bd34@gradobag.it> <3ba971ec-f756-6bc4-e5a3-9d163f158b54@web.de> Message-ID: Il 14/09/23 16:48, Martin Fischer ha scritto: >> >> I think (but I'm not sure) that this answer your question: >> >> http://gambaswiki.org/wiki/lang/finally?nl >> >> Regards >> >> Gianluigi >> > > Gianluigi, > > thanks for the reference, but I'm aware of that already. > My problem comes from this harmless looking paragraph in the document > you referenced: > > ????This does not completely Ensure that code is run no matter what. > ????If RETURN is used to exit a function before Finally then the > ????Finally part will only run if an error is raised. > > This is a substantial deviation from "Finally"-semantics in other > languages. This is why I'm surprised... > > Regards, > Martin > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Hi Martin, Many thanks you for the explanations, but it seems to me that if all languages have to follow dogmas why there is so many and all different? Regards Gianluigi From martin.fischer6 at web.de Thu Sep 14 19:22:41 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Thu, 14 Sep 2023 19:22:41 +0200 Subject: [Gambas-user] Finally/Catch and Return: How is that meant to be used? In-Reply-To: References: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> <89b308ba-535c-729a-b0d8-76087b86bd34@gradobag.it> <3ba971ec-f756-6bc4-e5a3-9d163f158b54@web.de> Message-ID: > Il 14/09/23 16:48, Martin Fischer ha scritto: >>> >>> I think (but I'm not sure) that this answer your question: >>> >>> http://gambaswiki.org/wiki/lang/finally?nl >>> >>> Regards >>> >>> Gianluigi >>> >> >> Gianluigi, >> >> thanks for the reference, but I'm aware of that already. >> My problem comes from this harmless looking paragraph in the document >> you referenced: >> >> ????This does not completely Ensure that code is run no matter what. >> ????If RETURN is used to exit a function before Finally then the >> ????Finally part will only run if an error is raised. >> >> This is a substantial deviation from "Finally"-semantics in other >> languages. This is why I'm surprised... >> >> Regards, >> Martin >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > Hi Martin, > > Many thanks you for the explanations, but it seems to me that if all > languages have to follow dogmas why there is so many and all different? > > Regards > > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Hi Gianluigi, for me, it's not about dogma. I'm fine with different languages solving problems differently. A C program uses different patterns than a C++ program or a Python or a Java program. My point is that during the evolution of languages some patterns appear over and over again. Because there is a need to solve very similar problems in these languages! Let's take for example the pattern "function". This thing takes parameters from the caller, does something and returns something to the caller back. This solves the problem of abstracting functionality that has to be used at multiple places with only slight variations (the parameters). And so on... This is such a common problem in programming languages that most of them have "functions". Now, let's move to the Finally-pattern. This stands for an abstraction that allows you to execute a block of code as final operation of a function, no matter how this function was left (normal return or exception). As such it allows you to clean up resources allocated during the function very easily and reliably. Again, this is such a common problem that many languages have a means to implement this pattern. You might be aware of the old VisualBasic way of solving this problem. Yes, you could do it, but it was effort and error-prone. Maybe this is the reason why gambas decided to offer a Finally pattern. My surprise was just that gambas implements this Finally-abstraction in a leaky way. Means: the usual "Finally guaranties that the finally-block is executed no matter how you leave the function" does not hold. Instead a weaker guarantee is implemented that does not solve the complete problem that is normally solved by Finally. But: I do not complain. I just want to understand how gambas works. Regards, Martin From gradobag at gradobag.it Thu Sep 14 22:28:33 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 14 Sep 2023 22:28:33 +0200 Subject: [Gambas-user] Finally/Catch and Return: How is that meant to be used? In-Reply-To: References: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> <89b308ba-535c-729a-b0d8-76087b86bd34@gradobag.it> <3ba971ec-f756-6bc4-e5a3-9d163f158b54@web.de> Message-ID: Il 14/09/23 19:22, Martin Fischer ha scritto: >> Il 14/09/23 16:48, Martin Fischer ha scritto: >>>> >>>> I think (but I'm not sure) that this answer your question: >>>> >>>> http://gambaswiki.org/wiki/lang/finally?nl >>>> >>>> Regards >>>> >>>> Gianluigi >>>> >>> >>> Gianluigi, >>> >>> thanks for the reference, but I'm aware of that already. >>> My problem comes from this harmless looking paragraph in the document >>> you referenced: >>> >>> ????This does not completely Ensure that code is run no matter what. >>> ????If RETURN is used to exit a function before Finally then the >>> ????Finally part will only run if an error is raised. >>> >>> This is a substantial deviation from "Finally"-semantics in other >>> languages. This is why I'm surprised... >>> >>> Regards, >>> Martin >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> Hi Martin, >> >> Many thanks you for the explanations, but it seems to me that if all >> languages have to follow dogmas why there is so many and all different? >> >> Regards >> >> Gianluigi >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Hi Gianluigi, > > for me, it's not about dogma. I'm fine with different languages solving > problems differently. A C program uses different patterns than a C++ > program or a Python or a Java program. > > My point is that during the evolution of languages some patterns appear > over and over again. Because there is a need to solve very similar > problems in these languages! > > Let's take for example the pattern "function". This thing takes > parameters from the caller, does something and returns something to the > caller back. This solves the problem of abstracting functionality that > has to be used at multiple places with only slight variations (the > parameters). And so on... > > This is such a common problem in programming languages that most of them > have "functions". > > Now, let's move to the Finally-pattern. This stands for an abstraction > that allows you to execute a block of code as final operation of a > function, no matter how this function was left (normal return or > exception). As such it allows you to clean up resources allocated during > the function very easily and reliably. Again, this is such a common > problem that many languages have a means to implement this pattern. > > You might be aware of the old VisualBasic way of solving this problem. > Yes, you could do it, but it was effort and error-prone. Maybe this is > the reason why gambas decided to offer a Finally pattern. > > My surprise was just that gambas implements this Finally-abstraction in > a leaky way. Means: the usual "Finally guaranties that the finally-block > is executed no matter how you leave the function" does not hold. Instead > a weaker guarantee is implemented that does not solve the complete > problem that is normally solved by Finally. > > But: I do not complain. I just want to understand how gambas works. > > Regards, > Martin Dear Martin, it is clear that you are a good programmer and you know what you are talking about. You were very kind to answer me and also very clear in your explanations. You reminded me of someone I respect and it won't be long before he explains to me how to use Gambas :-) It's night here so I wish you a goodnight Regards Gianluigi From benoit.minisini at gambas-basic.org Thu Sep 14 22:42:03 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 Sep 2023 22:42:03 +0200 Subject: [Gambas-user] Finally/Catch and Return: How is that meant to be used? In-Reply-To: References: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> <89b308ba-535c-729a-b0d8-76087b86bd34@gradobag.it> <3ba971ec-f756-6bc4-e5a3-9d163f158b54@web.de> Message-ID: Le 14/09/2023 ? 19:22, Martin Fischer a ?crit?: > > Hi Gianluigi, > > for me, it's not about dogma. I'm fine with different languages solving > problems differently. A C program uses different patterns than a C++ > program or a Python or a Java program. > > My point is that during the evolution of languages some patterns appear > over and over again. Because there is a need to solve very similar > problems in these languages! > > Let's take for example the pattern "function". This thing takes > parameters from the caller, does something and returns something to the > caller back. This solves the problem of abstracting functionality that > has to be used at multiple places with only slight variations (the > parameters). And so on... > > This is such a common problem in programming languages that most of them > have "functions". > > Now, let's move to the Finally-pattern. This stands for an abstraction > that allows you to execute a block of code as final operation of a > function, no matter how this function was left (normal return or > exception). As such it allows you to clean up resources allocated during > the function very easily and reliably. Again, this is such a common > problem that many languages have a means to implement this pattern. > > You might be aware of the old VisualBasic way of solving this problem. > Yes, you could do it, but it was effort and error-prone. Maybe this is > the reason why gambas decided to offer a Finally pattern. > > My surprise was just that gambas implements this Finally-abstraction in > a leaky way. Means: the usual "Finally guaranties that the finally-block > is executed no matter how you leave the function" does not hold. Instead > a weaker guarantee is implemented that does not solve the complete > problem that is normally solved by Finally. > > But: I do not complain. I just want to understand how gambas works. > > Regards, > Martin > I understand your point. You could have complained! I see two reasons why it works like that... The first one is that I tried to minimize the distance between the syntax of the language and what is really done by the interpreter. If I have to make Finally always run when the function exists, it must be implemented by a subroutine behind the hood, so that it can be called from any place in the function. The other reason is lazyness. In other word, it's not actually such a big deal as every local object or string is always released at the end of the function, whatever happens. The problem only comes when you allocate something that must be released manually. I'm thinking about the Alloc() function and database transactions. But 99% of the time you are supposed to use Gambas objects or strings, whose associated ressources are automatically released. Regards, -- Beno?t Minisini. From martin.fischer6 at web.de Thu Sep 14 23:12:19 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Thu, 14 Sep 2023 23:12:19 +0200 Subject: [Gambas-user] Finally/Catch and Return: How is that meant to be used? In-Reply-To: References: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> <89b308ba-535c-729a-b0d8-76087b86bd34@gradobag.it> <3ba971ec-f756-6bc4-e5a3-9d163f158b54@web.de> Message-ID: Benoit, > > I understand your point. You could have complained! > I never complain about things I get for free :-) > I see two reasons why it works like that... > > The first one is that I tried to minimize the distance between the > syntax of the language and what is really done by the interpreter. > > If I have to make Finally always run when the function exists, it must > be implemented by a subroutine behind the hood, so that it can be called > from any place in the function. > > The other reason is lazyness. > I understand your reasoning, but would still prefer "completeness of abstraction". > In other word, it's not actually such a big deal as every local object > or string is always released at the end of the function, whatever happens. > > The problem only comes when you allocate something that must be released > manually. I'm thinking about the Alloc() function and database > transactions. > > But 99% of the time you are supposed to use Gambas objects or strings, > whose associated ressources are automatically released. > Good point. The example that I was working on actually made native calls, which means Alloc's and Free's in the Finally block... By the way: what about file streams? I would expect that these streams have to be closed as soon as possible and reliably, e.g in a Finally block in the method that opened it. Right? Good night for today, Martin From benoit.minisini at gambas-basic.org Thu Sep 14 23:14:28 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 Sep 2023 23:14:28 +0200 Subject: [Gambas-user] Gambas icon set for LibreOffice 0.4 Message-ID: <5861b58b-1d8f-4e69-eca7-53c87baa36c4@gambas-basic.org> Hi, The Gambas icon set has been published on the official LibreOffice extensions web site. https://extensions.libreoffice.org/fr/extensions/show/41982 It's still a beta version, as not everything is finished. But it's mostly usuable. I was surprised that apparently some of the images or icons displayed by LibreOffice seem to be hardcoded in the source code. That's too bad! Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Fri Sep 15 00:21:58 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Sep 2023 00:21:58 +0200 Subject: [Gambas-user] Finally/Catch and Return: How is that meant to be used? In-Reply-To: References: <46cbaccf-2a0c-aeae-5afb-7d7bba1214cb@web.de> <89b308ba-535c-729a-b0d8-76087b86bd34@gradobag.it> <3ba971ec-f756-6bc4-e5a3-9d163f158b54@web.de> Message-ID: <8b96024f-8cdc-5580-459f-24f45d23dd16@gambas-basic.org> Le 14/09/2023 ? 23:12, Martin Fischer a ?crit?: >> >> But 99% of the time you are supposed to use Gambas objects or strings, >> whose associated ressources are automatically released. >> > > Good point. The example that I was working on actually made native > calls, which means Alloc's and Free's in the Finally block... > > By the way: what about file streams? I would expect that these streams > have to be closed as soon as possible and reliably, e.g in a Finally > block in the method that opened it. Right? > > Good night for today, > Martin > Stream objects are closed when they are freed. If you create a stream with OPEN in the function, it will be closed when it is released, which will happen before the function exits, provided that you didn't store a reference on that stream outside of the function. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Fri Sep 15 15:48:29 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Sep 2023 15:48:29 +0200 Subject: [Gambas-user] Problema with stop event on gb.web.gui In-Reply-To: <0f24ec7e-847e-4f1e-2881-4cb94db8c6cd@servinfo.it> References: <0f24ec7e-847e-4f1e-2881-4cb94db8c6cd@servinfo.it> Message-ID: <7d9ea825-83f2-f3d7-bb3b-36efda3e9675@gambas-basic.org> Le 14/09/2023 ? 16:39, Marco Ancillotti a ?crit?: > Hi all, > > I have a problem using stop event on keypress inside a webtextbox on > gb.web.gui. > > If I made a simple: > > Public Sub WebTextBox1_KeyPress() > ? If InStr("0123456789", Key.Text) = 0 Then > ??? Stop Event > ? Endif > End > > The webtextbox continue to receive all value , also number. > > Is this a bug or working with gb.web.gui pretend a different approach to > made a textbox accept only some values ? > > Thanks in advance, > Marco. > You can't cancel keypress events in 'gb.web.gui', as they occur inside the browser. The browser is not allowed (not by me!) to send the event to the server and waits for its answer to know if it should cancel the event or not. 'Stop Event' just prevents the trigerring of shortcuts associated with the pressed key. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Fri Sep 15 15:57:13 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Sep 2023 15:57:13 +0200 Subject: [Gambas-user] How to rearrange menu in gb.web.gui In-Reply-To: References: Message-ID: <848ea83e-61b0-2761-0c5f-843c29aeef2b@gambas-basic.org> Le 14/09/2023 ? 04:19, Safiur Rahman a ?crit?: > Hi > > I am using gb.web.gui application with menu bar at top. > With containers of different arrangement, mediaquery in CSS and viewport > in Form header I could achieve responsive application for both mobile > size and desktop size devices. The only thing I could not arrange is top > menu. Is there anyway to display top menu in two or more rows if the > device width is reduced? > > -- > Regards > Safiur Rahman > Indeed, the top menu-bar does not really fit smartphone vertical screens, as it is implemented with a WebHBox. In the last commit, the menu-bar is now implemented with a container using "Row" arrangement. Tell me if it's better for you. Regards, -- Beno?t Minisini. From gambas at servinfo.it Fri Sep 15 18:06:17 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Fri, 15 Sep 2023 18:06:17 +0200 Subject: [Gambas-user] Problema with stop event on gb.web.gui In-Reply-To: <7d9ea825-83f2-f3d7-bb3b-36efda3e9675@gambas-basic.org> References: <0f24ec7e-847e-4f1e-2881-4cb94db8c6cd@servinfo.it> <7d9ea825-83f2-f3d7-bb3b-36efda3e9675@gambas-basic.org> Message-ID: <21e3b8a5-6105-7f1d-a13c-7a99f221e711@servinfo.it> Hi Beno?t , thank's for the answer , is there another way to filter what can be inserted in a webtextbox ? Il 15/09/23 15:48, Beno?t Minisini ha scritto: > > You can't cancel keypress events in 'gb.web.gui', as they occur inside > the browser. > > The browser is not allowed (not by me!) to send the event to the > server and waits for its answer to know if it should cancel the event > or not. > > 'Stop Event' just prevents the trigerring of shortcuts associated with > the pressed key. > From roberto.premoli at tiscali.it Fri Sep 15 22:05:56 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Fri, 15 Sep 2023 22:05:56 +0200 Subject: [Gambas-user] =?utf-8?q?Play_=28and_record=29_sound_in_gambas3?= =?utf-8?q?=3A_how_to_do=3F?= Message-ID: <4d40d9510c6eb67f81488f548bcf5398@tiscali.it> Hello, how to play sound in gambas? i just need to play saund, no matter wav, mp3 or what ever format. I search on wiki, founr "musi" and read i t but i understood nothing. Someone can just drop a line? I just need the instruction ti play "/path/sound.mp3" Second ad if possible: can i record audio form micrpone and save on file using native command in gambas? Thanks, Roberto -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.premoli at tiscali.it Sat Sep 16 00:35:46 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Sat, 16 Sep 2023 00:35:46 +0200 Subject: [Gambas-user] =?utf-8?q?Play_=28and_record=29_sound_in_gambas3?= =?utf-8?q?=3A_how_to_do=3F?= In-Reply-To: <4d40d9510c6eb67f81488f548bcf5398@tiscali.it> References: <4d40d9510c6eb67f81488f548bcf5398@tiscali.it> Message-ID: Il 15.09.2023 22:05 roberto.premoli at tiscali.it ha scritto: > Hello, > how to play sound in gambas? i just need to play saund, no matter > wav, > mp3 or what ever format. > I search on wiki, founr "musi" and read i t but i understood nothing. > Someone can just drop a line? > I just need the instruction ti play "/path/sound.mp3" > > Second ad if possible: can i record audio form micrpone and save on > file > using native command in gambas? > > Thanks, > Roberto i solved adding library gb.sdl2.audio and then running command: Music.Load("//home/utente/audio.mp3") Music.Play() From isafiur at gmail.com Sat Sep 16 17:53:44 2023 From: isafiur at gmail.com (Safiur Rahman) Date: Sat, 16 Sep 2023 21:38:44 +0545 Subject: [Gambas-user] How to rearrange menu in gb.web.gui In-Reply-To: References: Message-ID: Its perfect. Thank you very much. On Thu, Sep 14, 2023 at 8:04?AM Safiur Rahman wrote: > Hi > > I am using gb.web.gui application with menu bar at top. > With containers of different arrangement, mediaquery in CSS and viewport > in Form header I could achieve responsive application for both mobile size > and desktop size devices. The only thing I could not arrange is top menu. > Is there anyway to display top menu in two or more rows if the device width > is reduced? > > -- > Regards > Safiur Rahman > -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Sat Sep 16 21:34:57 2023 From: isafiur at gmail.com (Safiur Rahman) Date: Sun, 17 Sep 2023 01:19:57 +0545 Subject: [Gambas-user] Sample code to convert image to b/w image Message-ID: Hi I want to achieve the following black-in-white image output with Imagemagick with gambas $ convert old.png -alpha off -threshold 50% new.png Any sample code to achieve it? Also using Image.Opacity and Image.Threshold, I get following errors With Image.Opacity(50) I am getting error "The image must have an alpha channel" With Image.Threshold(0.5) the gambas crashed. -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Sat Sep 16 22:16:51 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 16 Sep 2023 22:16:51 +0200 Subject: [Gambas-user] Sample code to convert image to b/w image In-Reply-To: References: Message-ID: Le 16/09/2023 ? 21:34, Safiur Rahman a ?crit?: > Hi > > I want to achieve the following black-in-white image output with > Imagemagick with gambas > $ convert old.png -alpha off -threshold 50% new.png > > Any sample code to achieve it? > > Also using Image.Opacity and Image.Threshold, I get following errors > > With Image.Opacity(50) I am getting error "The image must have an alpha > channel" > With Image.Threshold(0.5) the gambas crashed. > > > > -- > Regards > Safiur Rahman > Please can you provide a small project that reproduces the crash? -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Sat Sep 16 22:17:50 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 16 Sep 2023 22:17:50 +0200 Subject: [Gambas-user] Problema with stop event on gb.web.gui In-Reply-To: <21e3b8a5-6105-7f1d-a13c-7a99f221e711@servinfo.it> References: <0f24ec7e-847e-4f1e-2881-4cb94db8c6cd@servinfo.it> <7d9ea825-83f2-f3d7-bb3b-36efda3e9675@gambas-basic.org> <21e3b8a5-6105-7f1d-a13c-7a99f221e711@servinfo.it> Message-ID: Le 15/09/2023 ? 18:06, Marco Ancillotti a ?crit?: > Hi Beno?t , > thank's for the answer , is there another way to filter what can be > inserted in a webtextbox ? > Not directly, but you can try to use the Change event to remove the forbidden characters from the WebTextBox. -- Beno?t Minisini. From roberto.premoli at tiscali.it Sun Sep 17 01:47:22 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Sun, 17 Sep 2023 01:47:22 +0200 Subject: [Gambas-user] =?utf-8?q?is_possible_to_=22inglobe=22_data_=28aud?= =?utf-8?q?io=2C_video=2C_etc=29_into_gambas_code=3F?= Message-ID: <3f7f25d829840ad2a06081181ac71f01@tiscali.it> hello, my need is ti advise the user with sound: i just discovered how to play a audio with music.load("/path/to/clip.mp3") music.play() and it run smooth. Anyway, it coud happen that clip.mp3 can be corrupted, deleted, etc. So the qeustion is: it is possible to "inglobe" int into the source code of gambas? it will allow me to avoid to manage the extenal clip.mp3 because it will be always inside the program. As alternative, is possible to generate some advise sound equivalent to "allert", "incamig call", "new mail", etc with primitive of gambas without use external audio sounds clip? Thanks, Roberto -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Sun Sep 17 04:02:11 2023 From: isafiur at gmail.com (Safiur Rahman) Date: Sun, 17 Sep 2023 07:47:11 +0545 Subject: [Gambas-user] Sample code to convert image to b/w image In-Reply-To: References: Message-ID: Application using gb.image, gb.image.effect and gb.media in addition to gb.qt5 There are two controls for image: Drawing Area (dwgVideo) and ImageView (ImageView1) Private myPlayer As New MediaPlayer As "Player" Public Sub Button1_Click() With myPlayer If .State = Media.Playing Then .Stop Endif .URL = "v4l2://" & ComboBox1.Text .SetWindow(dwgVideo) .Play() End With End 'While adding values of Opacity or threshold there is error Public Sub BtnTakeShot_Click() Dim ximage As Image If myPlayer.State <> Media.Playing Then Return ximage = myPlayer.Video.Image If chkopacity.Value Then ximage = ximage.Opacity(spnopacity.Value) Endif If chkthres.Value Then ximage.Threshold(spnthreshold.Value) Endif ImageView1.Image = ximage End Attached a sample project On Sun, Sep 17, 2023 at 1:19?AM Safiur Rahman wrote: > Hi > > I want to achieve the following black-in-white image output with > Imagemagick with gambas > $ convert old.png -alpha off -threshold 50% new.png > > Any sample code to achieve it? > > Also using Image.Opacity and Image.Threshold, I get following errors > > With Image.Opacity(50) I am getting error "The image must have an alpha > channel" > With Image.Threshold(0.5) the gambas crashed. > > > > -- > Regards > Safiur Rahman > -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.zip Type: application/zip Size: 15347 bytes Desc: not available URL: From bsteers4 at gmail.com Sun Sep 17 14:00:02 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 17 Sep 2023 13:00:02 +0100 Subject: [Gambas-user] is possible to "inglobe" data (audio, video, etc) into gambas code? In-Reply-To: <3f7f25d829840ad2a06081181ac71f01@tiscali.it> References: <3f7f25d829840ad2a06081181ac71f01@tiscali.it> Message-ID: On Sun, 17 Sept 2023 at 00:48, wrote: > hello, > my need is ti advise the user with sound: i just discovered how to play a > audio with > > music.load("/path/to/clip.mp3") > music.play() > > and it run smooth. > > Anyway, it coud happen that clip.mp3 can be corrupted, deleted, etc. > > So the qeustion is: > > it is possible to "inglobe" int into the source code of gambas? > > it will allow me to avoid to manage the extenal clip.mp3 because it will > be always inside the program. > > As alternative, is possible to generate some advise sound equivalent to > "allert", "incamig call", "new mail", etc with primitive of gambas without > use external audio sounds clip? > > Thanks, > Roberto > do you just mean "include" your sound files with the executable? that is fairly simple. Just create a folder in your project directory, for example "sounds" (you must not use .hidden folder names unless it's name is .public) Put your clip.mp3 file into the sounds folder then access it like this.. music.load("./sounds/clip.mp3") or music.load("sounds/clip.mp3") BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Sun Sep 17 23:01:04 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 17 Sep 2023 23:01:04 +0200 Subject: [Gambas-user] Pre-release of Gambs 3.18.4 Message-ID: <43a5c7f4-499c-2274-e2a4-ff0be84969c5@gambas-basic.org> Hi, Here is the pre-release of Gambas 3.18.4. Release notes are at: https://gambaswiki.org/wiki/doc/release/3.18.4. Source code is at: https://gitlab.com/gambas/gambas/-/archive/3.18.4/gambas-3.18.4.tar.bz2 Please download and compile it, and tell me if you encounter any problem. As usual, Ubuntu packages will follow in a few days on the Gambas Stable PPA, if no problem is encountered. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Sun Sep 17 23:02:07 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 17 Sep 2023 23:02:07 +0200 Subject: [Gambas-user] Pre-release of Gambs 3.18.4 In-Reply-To: <43a5c7f4-499c-2274-e2a4-ff0be84969c5@gambas-basic.org> References: <43a5c7f4-499c-2274-e2a4-ff0be84969c5@gambas-basic.org> Message-ID: Oops, I forgot an A. Does my keyboard starting to drop me as my mouse wheel? -- Beno?t Minisini. From gradobag at gradobag.it Mon Sep 18 14:11:55 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 18 Sep 2023 14:11:55 +0200 Subject: [Gambas-user] Pre-release of Gambs 3.18.4 In-Reply-To: <43a5c7f4-499c-2274-e2a4-ff0be84969c5@gambas-basic.org> References: <43a5c7f4-499c-2274-e2a4-ff0be84969c5@gambas-basic.org> Message-ID: <1671b4ce-5084-e2f7-3123-c8ef827b03fb@gradobag.it> Il 17/09/23 23:01, Beno?t Minisini ha scritto: > Hi, > > Here is the pre-release of Gambas 3.18.4. > > Release notes are at: > https://gambaswiki.org/wiki/doc/release/3.18.4. > > Source code is at: > https://gitlab.com/gambas/gambas/-/archive/3.18.4/gambas-3.18.4.tar.bz2 > > Please download and compile it, and tell me if you encounter any problem. > > As usual, Ubuntu packages will follow in a few days on the Gambas > Stable PPA, if no problem is encountered. > > Regards, > Hi Benoit, I've done some testing, and as far as I'm concerned, everything seems to work fine. If you believe, now you can dedicate yourself to version 3.19 :-) Regards Gianluigi [System] Gambas=3.18.4 07c51f5 (stable) OperatingSystem=Linux Distribution=Linux Mint 21.2 Victoria Kernel=5.15.0-83-generic Architecture=x86_64 Cores=1 Memory=6930M Language=it_IT.UTF-8 Desktop=CINNAMON DesktopResolution=96 DesktopScale=7 WidgetTheme=mint-y-aqua Font=Ubuntu,10 [Programs] gcc=gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 git=git version 2.34.1 [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.7.0 DBus=libdbus-1.so.3.19.13 GDK2=libgdk-x11-2.0.so.0.2400.33 GDK3=libgdk-3.so.0.2404.29 GStreamer=libgstreamer-1.0.so.0.2003.0 GTK+2=libgtk-x11-2.0.so.0.2400.33 GTK+3=libgtk-3.so.0.2404.29 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.118.0.0 QT5=libQt5Core.so.5.15.3 RSvg=librsvg-2.so.2.48.0 SDL=libSDL2-2.0.so.0.18.2 SQLite 3=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=5.8.4 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=cinnamon GDM_LANG=it GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=3394 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK3_MODULES=xapp-gtk3-module GTK_MODULES=gail:atk-bridge HOME= LANG=it_IT.UTF-8 LANGUAGE=it_IT.UTF-8 LC_ALL=it_IT.UTF-8 LOGNAME= PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/1484,unix/:/tmp/.ICE-unix/1484 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= 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:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From isafiur at gmail.com Mon Sep 18 18:18:30 2023 From: isafiur at gmail.com (Safiur Rahman) Date: Mon, 18 Sep 2023 22:03:30 +0545 Subject: [Gambas-user] Sample code to convert image to b/w image In-Reply-To: References: Message-ID: Hi Should I file a bug report in bugtracker? On Sun, Sep 17, 2023 at 7:47?AM Safiur Rahman wrote: > Application using gb.image, gb.image.effect and gb.media in addition to > gb.qt5 > > There are two controls for image: > Drawing Area (dwgVideo) and ImageView (ImageView1) > > Private myPlayer As New MediaPlayer As "Player" > > Public Sub Button1_Click() > > With myPlayer > If .State = Media.Playing Then > .Stop > Endif > .URL = "v4l2://" & ComboBox1.Text > .SetWindow(dwgVideo) > .Play() > End With > > End > > 'While adding values of Opacity or threshold there is error > Public Sub BtnTakeShot_Click() > > Dim ximage As Image > > If myPlayer.State <> Media.Playing Then Return > ximage = myPlayer.Video.Image > > If chkopacity.Value Then > ximage = ximage.Opacity(spnopacity.Value) > Endif > > If chkthres.Value Then > ximage.Threshold(spnthreshold.Value) > Endif > > ImageView1.Image = ximage > > End > > Attached a sample project > > On Sun, Sep 17, 2023 at 1:19?AM Safiur Rahman wrote: > >> Hi >> >> I want to achieve the following black-in-white image output with >> Imagemagick with gambas >> $ convert old.png -alpha off -threshold 50% new.png >> >> Any sample code to achieve it? >> >> Also using Image.Opacity and Image.Threshold, I get following errors >> >> With Image.Opacity(50) I am getting error "The image must have an alpha >> channel" >> With Image.Threshold(0.5) the gambas crashed. >> >> >> >> -- >> Regards >> Safiur Rahman >> > > > -- > Regards > Safiur Rahman > -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Mon Sep 18 18:24:45 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Mon, 18 Sep 2023 18:24:45 +0200 (CEST) Subject: [Gambas-user] Sample code to convert image to b/w image In-Reply-To: References: Message-ID: ? Also using Image.Opacity and Image.Threshold, I get following errors ? The notice says you need to obtain data image with Alpha channel (like RGBA). It seems that you can solve it by converting the "Image" Object to a "Picture" and then converting the "Picture" back to an "Image" Object. You also need to divide the values of both "Spinbox" by 100 to get a float value. Ehmmm... so, I suggest: [code] ...... If myPlayer.State <> Media.Playing Then Return ximage = myPlayer.Video.Image.Picture.Image If chkopacity.Value Then ? ximage = ximage.Opacity(spnopacity.Value / 100) Endif If chkthres.Value Then ? ximage.Threshold(spnthreshold.Value / 100) Endif ...... [/code] 17 set 2023, 04:03 da isafiur at gmail.com: > Application using gb.image, gb.image.effect and gb.media in addition to gb.qt5 > > There are two controls for image: > Drawing Area (dwgVideo) and ImageView (ImageView1) > > Private myPlayer As New MediaPlayer As "Player" > > Public Sub Button1_Click() > > ? With myPlayer > ? ? If .State = Media.Playing Then > ? ? ? .Stop > ? ? Endif > ? ? .URL = "v4l2://" & ComboBox1.Text > ? ? .SetWindow(dwgVideo) > ? ? .Play() > ? End With > > End > > 'While adding values of Opacity or threshold there is error > Public Sub BtnTakeShot_Click() > > ? Dim ximage As Image > > ? If myPlayer.State <> Media.Playing Then Return > ? ximage = myPlayer.Video.Image > > ? If chkopacity.Value Then > ? ? ximage = ximage.Opacity(spnopacity.Value) > ? Endif > > ? If chkthres.Value Then > ? ? ximage.Threshold(spnthreshold.Value) > ? Endif > > ? ImageView1.Image = ximage > ? > End > > Attached a sample project > > On Sun, Sep 17, 2023 at 1:19?AM Safiur Rahman <> isafiur at gmail.com> > wrote: > >> Hi >> >> I want to achieve the following black-in-white image output with Imagemagick with gambas >> $ convert old.png -alpha off -threshold 50% new.png >> >> Any sample code to achieve it? >> >> Also using Image.Opacity and Image.Threshold, I get following errors >> >> With Image.Opacity(50) I am getting error "The image must have an alpha channel" >> With Image.Threshold(0.5) the gambas crashed. >> >> >> >> -- >> Regards >> Safiur Rahman >> > > > -- > Regards > Safiur Rahman > -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Mon Sep 18 19:13:01 2023 From: isafiur at gmail.com (Safiur Rahman) Date: Mon, 18 Sep 2023 22:58:01 +0545 Subject: [Gambas-user] Sample code to convert image to b/w image In-Reply-To: References: Message-ID: Thank you very much. This solved the problem. On Mon, 18 Sep 2023, 22:03 Safiur Rahman, wrote: > Hi > > Should I file a bug report in bugtracker? > > On Sun, Sep 17, 2023 at 7:47?AM Safiur Rahman wrote: > >> Application using gb.image, gb.image.effect and gb.media in addition to >> gb.qt5 >> >> There are two controls for image: >> Drawing Area (dwgVideo) and ImageView (ImageView1) >> >> Private myPlayer As New MediaPlayer As "Player" >> >> Public Sub Button1_Click() >> >> With myPlayer >> If .State = Media.Playing Then >> .Stop >> Endif >> .URL = "v4l2://" & ComboBox1.Text >> .SetWindow(dwgVideo) >> .Play() >> End With >> >> End >> >> 'While adding values of Opacity or threshold there is error >> Public Sub BtnTakeShot_Click() >> >> Dim ximage As Image >> >> If myPlayer.State <> Media.Playing Then Return >> ximage = myPlayer.Video.Image >> >> If chkopacity.Value Then >> ximage = ximage.Opacity(spnopacity.Value) >> Endif >> >> If chkthres.Value Then >> ximage.Threshold(spnthreshold.Value) >> Endif >> >> ImageView1.Image = ximage >> >> End >> >> Attached a sample project >> >> On Sun, Sep 17, 2023 at 1:19?AM Safiur Rahman wrote: >> >>> Hi >>> >>> I want to achieve the following black-in-white image output with >>> Imagemagick with gambas >>> $ convert old.png -alpha off -threshold 50% new.png >>> >>> Any sample code to achieve it? >>> >>> Also using Image.Opacity and Image.Threshold, I get following errors >>> >>> With Image.Opacity(50) I am getting error "The image must have an alpha >>> channel" >>> With Image.Threshold(0.5) the gambas crashed. >>> >>> >>> >>> -- >>> Regards >>> Safiur Rahman >>> >> >> >> -- >> Regards >> Safiur Rahman >> > > > -- > Regards > Safiur Rahman > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at servinfo.it Mon Sep 18 19:32:28 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Mon, 18 Sep 2023 19:32:28 +0200 Subject: [Gambas-user] Problema with stop event on gb.web.gui In-Reply-To: References: <0f24ec7e-847e-4f1e-2881-4cb94db8c6cd@servinfo.it> <7d9ea825-83f2-f3d7-bb3b-36efda3e9675@gambas-basic.org> <21e3b8a5-6105-7f1d-a13c-7a99f221e711@servinfo.it> Message-ID: <2d9cee71-0090-c350-11d2-ee427f4106da@servinfo.it> Ok , I solved with someting like: Public Sub WebTextBox1_Change() Dim sout As String Dim i As Integer = 0 sout = "" For i = 0 To (Len(Last.Text) - 1) ? If Last.Text[i] Match "^[\\/a-zA-Z0-9.-]+$" Then ??? sout &= Last.Text[i] ? Endif Next ? Last.Text = sout End It flash the new character a little but it works. Thank's, Marco. Il 16/09/23 22:17, Beno?t Minisini ha scritto: > Le 15/09/2023 ? 18:06, Marco Ancillotti a ?crit?: >> Hi Beno?t , >> thank's for the answer , is there another way to filter what can be >> inserted in a webtextbox ? >> > > Not directly, but you can try to use the Change event to remove the > forbidden characters from the WebTextBox. > From benoit.minisini at gambas-basic.org Mon Sep 18 19:40:25 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 18 Sep 2023 19:40:25 +0200 Subject: [Gambas-user] Problema with stop event on gb.web.gui In-Reply-To: <2d9cee71-0090-c350-11d2-ee427f4106da@servinfo.it> References: <0f24ec7e-847e-4f1e-2881-4cb94db8c6cd@servinfo.it> <7d9ea825-83f2-f3d7-bb3b-36efda3e9675@gambas-basic.org> <21e3b8a5-6105-7f1d-a13c-7a99f221e711@servinfo.it> <2d9cee71-0090-c350-11d2-ee427f4106da@servinfo.it> Message-ID: Le 18/09/2023 ? 19:32, Marco Ancillotti a ?crit?: > Ok , I solved with someting like: > > Public Sub WebTextBox1_Change() > Dim sout As String > Dim i As Integer = 0 > > sout = "" > For i = 0 To (Len(Last.Text) - 1) > ? If Last.Text[i] Match "^[\\/a-zA-Z0-9.-]+$" Then That's killing a fly with an atomic bomb! :-) Do that instead, if you want to save CPU: If Last.Text[i] Like "[/a-zA-Z0-9.-]" Then Don't remember that using "Match" implies loading the PCRE component and its shared library, compiling a regexp, and executing it. I don't think it's needed just for checking one ASCII character! Regards, -- Beno?t Minisini. From sharon at 455.co.il Mon Sep 18 20:05:33 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 18 Sep 2023 21:05:33 +0300 Subject: [Gambas-user] WebPage variables Message-ID: <20230918180533.M14403@455.co.il> Hello I'm trying to figure out how to work with a WebPage (gb.web) I created a page with: First name Last Name and a submit button When I click the button I want to read the values from a text box of: First name Last Name I do manage to get the values typed by: Request.Post["fname"] Request.Post["lname"] But I can't get them to move back to the page This resets all values The sample is attached Thanks for the help -------------- next part -------------- A non-text attachment was scrubbed... Name: w7.zip Type: application/zip Size: 17741 bytes Desc: not available URL: From sharon at 455.co.il Mon Sep 18 22:00:11 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 18 Sep 2023 23:00:11 +0300 Subject: [Gambas-user] WebPage variables In-Reply-To: <20230918180533.M14403@455.co.il> References: <20230918180533.M14403@455.co.il> Message-ID: <20230918194835.M56009@455.co.il> Hello I found my mistake In line 10 in Main.class I wrote by mistake: gb_fname = Request.Post["lname"] instead of gb_lname = Request.Post["lname"] Now it's working Anyway, I wanted to know if it is true that I am using the event: _new Thank you ---------- Original Message ----------- From: "Mayost Sharon" To: Gambas Mailing List Sent: Mon, 18 Sep 2023 21:05:33 +0300 Subject: [Gambas-user] WebPage variables > Hello > > I'm trying to figure out how to work with a WebPage (gb.web) > > I created a page with: > > First name > Last Name > and a submit button > > When I click the button I want to read the values from a text box of: > First name > Last Name > > I do manage to get the values typed by: > Request.Post["fname"] > Request.Post["lname"] > > But I can't get them to move back to the page > > This resets all values > > The sample is attached > > Thanks for the help ------- End of Original Message ------- From sharon at 455.co.il Mon Sep 18 23:03:59 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Sep 2023 00:03:59 +0300 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <20230918180533.M14403@455.co.il> References: <20230918180533.M14403@455.co.il> Message-ID: <20230918210359.M37463@455.co.il> Hello Further to the discussion: https://lists.gambas-basic.org/pipermail/user/2023-September/080147.html I have another new question I am trying to load the page: Website1 When I put in: First name = G Surname = B I want to load the single webpage1 page without the first page But it loads me Webpage1 along with the first page An example is attached Thank you -------------- next part -------------- A non-text attachment was scrubbed... Name: w7.zip Type: application/zip Size: 18997 bytes Desc: not available URL: From t.lee.davidson at gmail.com Tue Sep 19 00:53:22 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 18 Sep 2023 18:53:22 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <20230918210359.M37463@455.co.il> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> Message-ID: <3bb400b7-6c1e-4e25-bacd-9f3053c20ce4@gmail.com> On 9/18/23 17:03, Mayost Sharon wrote: > Hello > > Further to the discussion: > https://lists.gambas-basic.org/pipermail/user/2023-September/080147.html > > > I have another new question > > I am trying to load the page: > Website1 > > When I put in: > First name = G > Surname = B > > I want to load the single webpage1 page without the first page > > But it loads me Webpage1 along with the first page > > An example is attached > > Thank you Try putting the logic at the very top of Main.webpage (before any HTML) instead of in Main.class: [code] <% If Request.Post.Fields.Count > 0 Then gb_fname = Request.Post["fname"] gb_lname = Request.Post["lname"] gb_warning = True If UCase(gb_fname) = "G" And UCase(gb_lname) = "B" Then ' I want To load the single webpage1 page without the first page Response.Redirect("Webpage1.webpage") Quit Endif Endif %> [/code] I can't verify that this actually works because the Debug Browser appears to be caching the response and won't always pick up code changes. I first tried redirecting to localhost:8080 which worked, but now the application won't redirect to any other location. -- Lee From sharon at 455.co.il Tue Sep 19 06:53:54 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Sep 2023 07:53:54 +0300 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <3bb400b7-6c1e-4e25-bacd-9f3053c20ce4@gmail.com> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <3bb400b7-6c1e-4e25-bacd-9f3053c20ce4@gmail.com> Message-ID: <20230919045150.M64475@455.co.il> ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Mon, 18 Sep 2023 18:53:22 -0400 Subject: Re: [Gambas-user] How to load a new page on gb.web by code > On 9/18/23 17:03, Mayost Sharon wrote: > > Hello > > > > Further to the discussion: > > https://lists.gambas-basic.org/pipermail/user/2023-September/080147.html > > > > > > I have another new question > > > > I am trying to load the page: > > Website1 > > > > When I put in: > > First name = G > > Surname = B > > > > I want to load the single webpage1 page without the first page > > > > But it loads me Webpage1 along with the first page > > > > An example is attached > > > > Thank you > > Try putting the logic at the very top of Main.webpage (before any HTML) > instead of in Main.class: [code] <% If Request.Post.Fields.Count > 0 Then > gb_fname = Request.Post["fname"] gb_lname = Request.Post["lname"] > gb_warning = True > > If UCase(gb_fname) = "G" And UCase(gb_lname) = "B" Then > ' I want To load the single webpage1 page without the first page > Response.Redirect("Webpage1.webpage") > Quit > Endif > Endif > %> > [/code] > > I can't verify that this actually works because the Debug Browser appears to > be caching the response and won't always pick up code changes. I first tried > redirecting to localhost:8080 which worked, but now the application won't > redirect to any other location. > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Hello I tried your solution But it gives a blank white page It does not load the webpage1 page From sharon at 455.co.il Tue Sep 19 10:37:57 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Sep 2023 11:37:57 +0300 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <20230918210359.M37463@455.co.il> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> Message-ID: <20230919082959.M42262@455.co.il> Hello I succeeded (in an inexplicable way) Load the second page (Webpage1.webpage) In the code in line 18 I added two lines Webpage1.Render Quit But still when I click on the second page (Webpage1.webpage) on the submit button It returns back to the main page (Main.webpage) And it's not good because I can't get the request values of the second page (Webpage1.webpage) An example is attached Thanks ---------- Original Message ----------- From: "Mayost Sharon" To: Gambas Mailing List Sent: Tue, 19 Sep 2023 00:03:59 +0300 Subject: [Gambas-user] How to load a new page on gb.web by code > Hello > > Further to the discussion: > https://lists.gambas-basic.org/pipermail/user/2023-September/080147.html > > I have another new question > > I am trying to load the page: > Website1 > > When I put in: > First name = G > Surname = B > > I want to load the single webpage1 page without the first page > > But it loads me Webpage1 along with the first page > > An example is attached > > Thank you ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: w7.zip Type: application/zip Size: 21169 bytes Desc: not available URL: From martin.fischer6 at web.de Tue Sep 19 10:49:22 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Tue, 19 Sep 2023 10:49:22 +0200 Subject: [Gambas-user] Use gambas WebPages as general-purpose template engine Message-ID: <9e430c8b-2e84-1d41-2fcc-b66c26789fe2@web.de> Hi fellow gambassins, I created a demo project that uses gambas WebPages as general-purpose template engine (means: it does not target web-pages, but just model->string). I know that there has been interest in adding a template-engine to gambas (at least, there is a merge request for it). Maybe this would at least be worth to be included as sample-project or so. Here is the readme of the sample project: ------------------------------------------ ### Use Gambas WebPages as templates WebPages are designed to be used in the context of web-applications. As it turns out, they can also be used as general-purpose template engine (with some limitations that I will explain below). #### The model This sample uses a simple demo model consisting of a list of persons (CPerson). This model is made globally available in the module 'MainTemplateModel' for a template to access and render it (it is not possible to pass a model to a WebPage as constructor argument). #### The main template The template named 'MainTemplate' is responsible for rendering the model. It uses static text and gambas code to do this. Note that it is possible to use all syntactic constructs defined in [Gambas WebPage](https://gambaswiki.org/wiki/doc/webpage) but constructs that do html-escape before printing something might not be adequate for your use-case. This means that if you do not want to rendere a html document with your template, avoid the `<%=expression%>` syntax because that will apply html excaping before printing. Instead use a block of code like so: `<%Print expression;%>` #### Usage of sub-templates The MainTemplate delegates the rendering of person birthday to a sub-template called 'BirthdateTemplate'. It passes the person's birthdate (a Date object) as argument to this sub-template. Within the BirthdateTemplate, you can access the arguments value by accessing the `_Arg` collection The runtime puts all arguments passed to a sub-page into this collection, keyed by the name of the argument (as used in the calling page) Note that you might also use the bang-syntax `<%!argName%>` in the sub-template. The problem is that it is not possible to manipulate the arguments value with this syntax. In our example one param named 'birthdate' is passed to the BirthdateTemplate which is of type Date. We want to extract only the date-part of it and format it like so: `<%Print Format(_Arg["birthdate"], "dd.mm.yyyy");%>` Is this case you can not use the bang-syntax. Use a code-block with a Print inside (like above). Note that there is a problem here: by accessing the `_Arg` collection, we break encapsulation. The name of this collection is an implementation detail of the WebPage machinery. It might change without notice in future versions of gambas. Unfortunately, it's the only way to avoid the very restrictive bang-syntax at the moment. --------------------------------------------------- I think WebPages are quite usable as general-purpose template engine. BUT: usage of the _Arg collection in sub-templates might be a show-stopper (read the last paragraph of the readme again...). What do you think? Does all this make sense to you? Regards ____________________________________ Martin Fischer From sharon at 455.co.il Tue Sep 19 11:35:54 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Sep 2023 12:35:54 +0300 Subject: [Gambas-user] Use gambas WebPages as general-purpose template engine In-Reply-To: <9e430c8b-2e84-1d41-2fcc-b66c26789fe2@web.de> References: <9e430c8b-2e84-1d41-2fcc-b66c26789fe2@web.de> Message-ID: <20230919093418.M95913@455.co.il> hello Is there an example file? Thanks ---------- Original Message ----------- From: Martin Fischer To: Gambas Mailing List Sent: Tue, 19 Sep 2023 10:49:22 +0200 Subject: [Gambas-user] Use gambas WebPages as general-purpose template engine > Hi fellow gambassins, > > I created a demo project that uses gambas WebPages as general-purpose > template engine (means: it does not target web-pages, but just > model->string). > > I know that there has been interest in adding a template-engine to > gambas (at least, there is a merge request for it). Maybe this would at > least be worth to be included as sample-project or so. > > Here is the readme of the sample project: > > ------------------------------------------ > ### Use Gambas WebPages as templates > > WebPages are designed to be used in the context of web-applications. > As it turns out, they can also be used as general-purpose template engine > (with some limitations that I will explain below). > > #### The model > > This sample uses a simple demo model consisting of a list of persons > (CPerson). > This model is made globally available in the module 'MainTemplateModel' > for a template > to access and render it (it is not possible to pass a model to a WebPage > as constructor argument). > > #### The main template > > The template named 'MainTemplate' is responsible for rendering the > model. It uses static text and > gambas code to do this. > Note that it is possible to use all syntactic constructs defined in > [Gambas WebPage](https://gambaswiki.org/wiki/doc/webpage) > but constructs that do html-escape before printing something might not > be adequate for > your use-case. This means that if you do not want to rendere a html > document with your template, > avoid the `<%=expression%>` syntax because that will apply html excaping > before printing. > Instead use a block of code like so: `<%Print expression;%>` > > #### Usage of sub-templates > > The MainTemplate delegates the rendering of person birthday to a > sub-template called > 'BirthdateTemplate'. It passes the person's birthdate (a Date object) as > argument to this sub-template. > > Within the BirthdateTemplate, you can access the arguments value by > accessing the `_Arg` collection > The runtime puts all arguments passed to a sub-page into this > collection, keyed by the name of the > argument (as used in the calling page) > > Note that you might also use the bang-syntax `<%!argName%>` in the > sub-template. > The problem is that it is not possible to manipulate the arguments value > with this syntax. > > In our example one param named 'birthdate' is passed to the > BirthdateTemplate which is of type Date. > We want to extract only the date-part of it and format it like so: > `<%Print Format(_Arg["birthdate"], "dd.mm.yyyy");%>` > Is this case you can not use the bang-syntax. Use a code-block with a > Print inside (like above). > > Note that there is a problem here: by accessing the `_Arg` collection, > we break encapsulation. > The name of this collection is an implementation detail of the WebPage > machinery. It might change > without notice in future versions of gambas. Unfortunately, it's the > only way to avoid the > very restrictive bang-syntax at the moment. > --------------------------------------------------- > > I think WebPages are quite usable as general-purpose template engine. > BUT: usage of the _Arg collection in sub-templates might be a > show-stopper (read the last paragraph of the readme again...). > > What do you think? > Does all this make sense to you? > > Regards > ____________________________________ > Martin Fischer > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- From martin.fischer6 at web.de Tue Sep 19 12:01:55 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Tue, 19 Sep 2023 12:01:55 +0200 Subject: [Gambas-user] Use gambas WebPages as general-purpose template engine In-Reply-To: <20230919093418.M95913@455.co.il> References: <9e430c8b-2e84-1d41-2fcc-b66c26789fe2@web.de> <20230919093418.M95913@455.co.il> Message-ID: <679bf257-e8ab-8291-ba06-7642b82da486@web.de> > > Is there an example file? > I attach it to this mail Regards, Martin -------------- next part -------------- A non-text attachment was scrubbed... Name: TemplateEngine-0.0.1.tar.gz Type: application/gzip Size: 14234 bytes Desc: not available URL: From bsteers4 at gmail.com Tue Sep 19 12:28:13 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 19 Sep 2023 11:28:13 +0100 Subject: [Gambas-user] wiki login not working Message-ID: If i try to edit a wiki page (or do a search) I get the following problem... I select "Login" and enter details. I am then apparently logged in as i see all the other options when logged in. Then if I try a search or hit Edit on a page i am then apparently not logged in and have to enter log in details again, then I'm not on the Edit page and have to press Edit again, and need to enter log in details again. So i cannot search or edit anything. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From gbWilly at protonmail.com Tue Sep 19 13:25:53 2023 From: gbWilly at protonmail.com (gbWilly) Date: Tue, 19 Sep 2023 11:25:53 +0000 Subject: [Gambas-user] wiki login not working In-Reply-To: References: Message-ID: <1dFWuy9QByXSvzPyIB5wBe-Rv1cSjeKrZqpOEsv2cPBqRrHyLGVvGXWo8hwSeBQMqcppyOLfnPQSUYsRGUhM4YNBBXWnYe7eFvGfth8ZGi4=@protonmail.com> ------- Original Message ------- On Tuesday, September 19th, 2023 at 12:28, Bruce Steers wrote: > If i try to edit a wiki page (or do a search) I get the following problem... > > I select "Login" and enter details. > I am then apparently logged in as i see all the other options when logged in. > Then if I try a search or hit Edit on a page i am then apparently not logged in and have to enter log in details again, then I'm not on the Edit page and have to press Edit again, and need to enter log in details again. > > So i cannot search or edit anything. > > Respects > BruceS Hi Bruce, Could it be you logged in from the Gambas webpage where the wiki is embedded (https://gambas.sourceforge.net/en/main.html#) as that does mess with your login Go directly to the wiki page (https://gambaswiki.org/wiki) to login and all should work, at least it does for me. Cheers, gbWilly -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Sep 19 13:54:34 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 19 Sep 2023 12:54:34 +0100 Subject: [Gambas-user] wiki login not working In-Reply-To: <1dFWuy9QByXSvzPyIB5wBe-Rv1cSjeKrZqpOEsv2cPBqRrHyLGVvGXWo8hwSeBQMqcppyOLfnPQSUYsRGUhM4YNBBXWnYe7eFvGfth8ZGi4=@protonmail.com> References: <1dFWuy9QByXSvzPyIB5wBe-Rv1cSjeKrZqpOEsv2cPBqRrHyLGVvGXWo8hwSeBQMqcppyOLfnPQSUYsRGUhM4YNBBXWnYe7eFvGfth8ZGi4=@protonmail.com> Message-ID: On Tue, 19 Sept 2023 at 12:27, gbWilly via User wrote: > > ------- Original Message ------- > On Tuesday, September 19th, 2023 at 12:28, Bruce Steers < > bsteers4 at gmail.com> wrote: > > If i try to edit a wiki page (or do a search) I get the following > problem... > > I select "Login" and enter details. > I am then apparently logged in as i see all the other options when logged > in. > Then if I try a search or hit Edit on a page i am then apparently not > logged in and have to enter log in details again, then I'm not on the Edit > page and have to press Edit again, and need to enter log in details again. > > So i cannot search or edit anything. > > Respects > BruceS > > > Hi Bruce, > > Could it be you logged in from the Gambas webpage where the wiki is > embedded (https://gambas.sourceforge.net/en/main.html#) as that does mess > with your login > > Go directly to the wiki page (https://gambaswiki.org/wiki) to login and > all should work, at least it does for me. > > Cheers, > > gbWilly > I tried logging in on the main page (your link) and now it works. Looking at my browsing history i was at the same urls not the sourceforge embedded url. But now it works so i'm happy, cheers :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From gradobag at gradobag.it Tue Sep 19 14:42:04 2023 From: gradobag at gradobag.it (Gianluigi) Date: Tue, 19 Sep 2023 14:42:04 +0200 Subject: [Gambas-user] wiki login not working In-Reply-To: References: <1dFWuy9QByXSvzPyIB5wBe-Rv1cSjeKrZqpOEsv2cPBqRrHyLGVvGXWo8hwSeBQMqcppyOLfnPQSUYsRGUhM4YNBBXWnYe7eFvGfth8ZGi4=@protonmail.com> Message-ID: Il 19/09/23 13:54, Bruce Steers ha scritto: > > > On Tue, 19 Sept 2023 at 12:27, gbWilly via User > wrote: > > > ------- Original Message ------- > On Tuesday, September 19th, 2023 at 12:28, Bruce Steers > wrote: > >> If i try to edit a wiki page (or do a search) I get the following >> problem... >> >> I select "Login" and enter details. >> I am then apparently logged in as i see all the other options >> when logged in. >> Then if I try a search or hit Edit on a page i am then apparently >> not logged in and have to enter log in details again, then I'm >> not on the Edit page and have to press Edit again, and need to >> enter log in details again. >> >> So i cannot search or edit anything. >> >> Respects >> BruceS >> > > Hi Bruce, > > Could it be you logged in from the Gambas webpage where the wiki > is embedded (https://gambas.sourceforge.net/en/main.html#) as that > does mess with your login > > Go directly to the wiki page (https://gambaswiki.org/wiki) to > login and all should work, at least it does for me. > > Cheers, > > gbWilly > > > I tried logging in on the main page (your link) and now it works. > Looking at my browsing history i was at the same urls not the > sourceforge embedded url. > > But now it works so i'm happy, cheers :) > BruceS > > ----[http://gambaswiki.org/wiki/doc/netiquette ]---- Hi Bruce, if, like me, you get there via Firefox shortcuts, check that the link is correct (see attached image) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: shortcut.png Type: image/png Size: 23127 bytes Desc: not available URL: From t.lee.davidson at gmail.com Tue Sep 19 16:01:08 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 19 Sep 2023 10:01:08 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <20230919082959.M42262@455.co.il> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> Message-ID: <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> On 9/19/23 04:37, Mayost Sharon wrote: > Hello I succeeded (in an inexplicable way) Load the second page (Webpage1.webpage) In the code in line 18 I added two lines > Webpage1.Render Quit But still when I click on the second page (Webpage1.webpage) on the submit button It returns back to the > main page (Main.webpage) And it's not good because I can't get the request values of the second page (Webpage1.webpage) An > example is attached Thanks Again, put the code in Main.webpage, not in Main.class. In other words, take the code of the _new subroutine from Main.class and put it at the very top of Main.page enclosed in code tags: <% %> -- Lee From t.lee.davidson at gmail.com Tue Sep 19 16:25:09 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 19 Sep 2023 10:25:09 -0400 Subject: [Gambas-user] wiki login not working In-Reply-To: References: <1dFWuy9QByXSvzPyIB5wBe-Rv1cSjeKrZqpOEsv2cPBqRrHyLGVvGXWo8hwSeBQMqcppyOLfnPQSUYsRGUhM4YNBBXWnYe7eFvGfth8ZGi4=@protonmail.com> Message-ID: <6c49f82a-d9fa-4713-ba20-331744a8f8fb@gmail.com> On 9/19/23 07:54, Bruce Steers wrote: > > > On Tue, 19 Sept 2023 at 12:27, gbWilly via User > wrote: > > [snip] > > Hi Bruce, > > Could it be you logged in from the Gambas webpage where the wiki is embedded (https://gambas.sourceforge.net/en/main.html# > ) as that does mess with your login > > Go directly to the wiki page (https://gambaswiki.org/wiki ) to login and all should work, at > least it does for me. > > Cheers, > > gbWilly > > > I tried logging in on the main page (your link) and now it works. > Looking at my browsing history i was at the same urls not the sourceforge embedded url. > > But now it works so i'm happy, cheers :) > BruceS Perhaps we should have the Wiki break out of the frame. ? It could be done with Javascript [1], or by placing a link on the Wiki home page [2]. [1]: if (window.top.location != window.location) { window.top.location.replace(window.location); } [2]: Break out of frame One caveat to option 1 is that webpage translators that rely on frames would likely not work. -- Lee From roberto.premoli at tiscali.it Tue Sep 19 17:38:07 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Tue, 19 Sep 2023 17:38:07 +0200 Subject: [Gambas-user] =?utf-8?q?is_possible_to_=22inglobe=22_data_=28aud?= =?utf-8?q?io=2C_video=2C_etc=29_into_gambas_code=3F?= In-Reply-To: References: <3f7f25d829840ad2a06081181ac71f01@tiscali.it> Message-ID: Il 17.09.2023 14:00 Bruce Steers ha scritto: > On Sun, 17 Sept 2023 at 00:48, wrote: > >> hello, >> my need is ti advise the user with sound: i just discovered how to >> play >> a audio with >> >> music.load("/path/to/clip.mp3") >> music.play() >> >> and it run smooth. >> >> Anyway, it coud happen that clip.mp3 can be corrupted, deleted, etc. >> >> So the qeustion is: >> >> it is possible to "inglobe" int into the source code of gambas? >> >> it will allow me to avoid to manage the extenal clip.mp3 because it >> will be always inside the program. >> >> As alternative, is possible to generate some advise sound equivalent >> to >> "allert", "incamig call", "new mail", etc with primitive of gambas >> without use external audio sounds clip? >> >> Thanks, >> Roberto > > do you just mean "include" your sound files with the executable? > that is fairly simple. > Just create a folder in your project directory, for example "sounds" > (you > must not use .hidden folder names unless it's name is .public) > Put your clip.mp3 file into the sounds folder then access it like > this.. > music.load("./sounds/clip.mp3") > or > music.load("sounds/clip.mp3") > BruceS i already did this, but it is not "INSIDE" the code, is still a separate file. it is "WITH" the executable, i want it "INSIDE" the executable. is it possible? Links: ------ [1] mailto:roberto.premoli at tiscali.it From bsteers4 at gmail.com Tue Sep 19 19:59:56 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 19 Sep 2023 18:59:56 +0100 Subject: [Gambas-user] is possible to "inglobe" data (audio, video, etc) into gambas code? In-Reply-To: References: <3f7f25d829840ad2a06081181ac71f01@tiscali.it> Message-ID: On Tue, 19 Sept 2023 at 16:39, wrote: > Il 17.09.2023 14:00 Bruce Steers ha scritto: > > > On Sun, 17 Sept 2023 at 00:48, wrote: > > > >> hello, > >> my need is ti advise the user with sound: i just discovered how to > >> play > >> a audio with > >> > >> music.load("/path/to/clip.mp3") > >> music.play() > >> > >> and it run smooth. > >> > >> Anyway, it coud happen that clip.mp3 can be corrupted, deleted, etc. > >> > >> So the qeustion is: > >> > >> it is possible to "inglobe" int into the source code of gambas? > >> > >> it will allow me to avoid to manage the extenal clip.mp3 because it > >> will be always inside the program. > >> > >> As alternative, is possible to generate some advise sound equivalent > >> to > >> "allert", "incamig call", "new mail", etc with primitive of gambas > >> without use external audio sounds clip? > >> > >> Thanks, > >> Roberto > > > > do you just mean "include" your sound files with the executable? > > that is fairly simple. > > Just create a folder in your project directory, for example "sounds" > > (you > > must not use .hidden folder names unless it's name is .public) > > Put your clip.mp3 file into the sounds folder then access it like > > this.. > > music.load("./sounds/clip.mp3") > > or > > music.load("sounds/clip.mp3") > > BruceS > > i already did this, but it is not "INSIDE" the code, is still a > separate file. > it is "WITH" the executable, i want it "INSIDE" the executable. is it > possible? > Yes it should be inside the executable. It will not be included if it's name begins with a dot like .my_mp3.mp3 It will not be included if it's folder name begins with a dot like .my_mp3s/My_.mp3 otherwise the file should be inside the executable. you can read the executables contents using gba3 -l eg. gba3 -l /my/dir/My_Project.gambas if your mp3's are not hidden or in a hidden folder then they should be inside and accessible with the uri's i previously mentioned. Post a sample project where the mp3 is not being inside the executable and i'll see if i can find the issue. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Tue Sep 19 20:07:08 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 19 Sep 2023 20:07:08 +0200 Subject: [Gambas-user] is possible to "inglobe" data (audio, video, etc) into gambas code? In-Reply-To: References: <3f7f25d829840ad2a06081181ac71f01@tiscali.it> Message-ID: <6421e469-ea06-64ee-e55f-6750059051f3@gambas-basic.org> Le 19/09/2023 ? 19:59, Bruce Steers a ?crit?: > > > On Tue, 19 Sept 2023 at 16:39, > wrote: > > Il 17.09.2023 14:00 Bruce Steers ha scritto: > > > On Sun, 17 Sept 2023 at 00:48, wrote: > > > >> hello, > >> my need is ti advise the user with sound: i just discovered how to > >> play > >> a audio with > >> > >> music.load("/path/to/clip.mp3") > >> music.play() > >> > >> and it run smooth. > >> > >> Anyway, it coud happen that clip.mp3 can be corrupted, deleted, etc. > >> > >> So the qeustion is: > >> > >> it is possible to "inglobe" int into the source code of gambas? > >> > >> it will allow me to avoid to manage the extenal clip.mp3 because it > >> will be always inside the program. > >> > >> As alternative, is possible to generate some advise sound > equivalent > >> to > >> "allert", "incamig call", "new mail", etc with primitive of gambas > >> without use external audio sounds clip? > >> > >> Thanks, > >> Roberto > > > > do you just mean "include" your sound files with the executable? > > that is fairly simple. > > Just create a folder in your project directory, for example "sounds" > > (you > > must not use .hidden folder names unless it's name is .public) > > Put your clip.mp3 file into the sounds folder then access it like > > this.. > > music.load("./sounds/clip.mp3") > > or > > music.load("sounds/clip.mp3") > > BruceS > > i already did this, but it is not "INSIDE" the code, is still a > separate file. > it is "WITH" the executable, i want it "INSIDE" the executable. is it > possible? > > > Yes it should be inside the executable. > > It will not be included if it's name begins with a dot like .my_mp3.mp3 > It will not be included if it's folder name begins with a dot like > .my_mp3s/My_.mp3 > > otherwise the file should be inside the executable. > > you can read the executables contents using gba3 -l > eg. > gba3 -l /my/dir/My_Project.gambas > > if your mp3's are not hidden or in a hidden folder then they should be > inside and accessible with the uri's i previously mentioned. > > Post a sample project where the mp3 is not being inside the executable > and i'll see if i can find the issue. > > Respects > BruceS > Note that if you use Music.Load(), as this SDL function cannot read inside Gambas archive, a copy of the file is done in the process temporary directory so that SDL can use it. Regards, -- Beno?t Minisini. From bsteers4 at gmail.com Tue Sep 19 20:41:06 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 19 Sep 2023 19:41:06 +0100 Subject: [Gambas-user] is possible to "inglobe" data (audio, video, etc) into gambas code? In-Reply-To: <6421e469-ea06-64ee-e55f-6750059051f3@gambas-basic.org> References: <3f7f25d829840ad2a06081181ac71f01@tiscali.it> <6421e469-ea06-64ee-e55f-6750059051f3@gambas-basic.org> Message-ID: On Tue, 19 Sept 2023 at 19:08, Beno?t Minisini < benoit.minisini at gambas-basic.org> wrote: > Le 19/09/2023 ? 19:59, Bruce Steers a ?crit : > > > > > > On Tue, 19 Sept 2023 at 16:39, > > wrote: > > > > Il 17.09.2023 14:00 Bruce Steers ha scritto: > > > > > On Sun, 17 Sept 2023 at 00:48, wrote: > > > > > >> hello, > > >> my need is ti advise the user with sound: i just discovered how > to > > >> play > > >> a audio with > > >> > > >> music.load("/path/to/clip.mp3") > > >> music.play() > > >> > > >> and it run smooth. > > >> > > >> Anyway, it coud happen that clip.mp3 can be corrupted, deleted, > etc. > > >> > > >> So the qeustion is: > > >> > > >> it is possible to "inglobe" int into the source code of gambas? > > >> > > >> it will allow me to avoid to manage the extenal clip.mp3 because > it > > >> will be always inside the program. > > >> > > >> As alternative, is possible to generate some advise sound > > equivalent > > >> to > > >> "allert", "incamig call", "new mail", etc with primitive of > gambas > > >> without use external audio sounds clip? > > >> > > >> Thanks, > > >> Roberto > > > > > > do you just mean "include" your sound files with the executable? > > > that is fairly simple. > > > Just create a folder in your project directory, for example > "sounds" > > > (you > > > must not use .hidden folder names unless it's name is .public) > > > Put your clip.mp3 file into the sounds folder then access it like > > > this.. > > > music.load("./sounds/clip.mp3") > > > or > > > music.load("sounds/clip.mp3") > > > BruceS > > > > i already did this, but it is not "INSIDE" the code, is still a > > separate file. > > it is "WITH" the executable, i want it "INSIDE" the executable. is it > > possible? > > > > > > Yes it should be inside the executable. > > > > It will not be included if it's name begins with a dot like .my_mp3.mp3 > > It will not be included if it's folder name begins with a dot like > > .my_mp3s/My_.mp3 > > > > otherwise the file should be inside the executable. > > > > you can read the executables contents using gba3 -l > > eg. > > gba3 -l /my/dir/My_Project.gambas > > > > if your mp3's are not hidden or in a hidden folder then they should be > > inside and accessible with the uri's i previously mentioned. > > > > Post a sample project where the mp3 is not being inside the executable > > and i'll see if i can find the issue. > > > > Respects > > BruceS > > > > Note that if you use Music.Load(), as this SDL function cannot read > inside Gambas archive, a copy of the file is done in the process > temporary directory so that SDL can use it. > > Regards, > > -- > Beno?t Minisini aah yes so you would want code something like this if you have a clip.mp3 file in a folder called sounds in the project dir... Public sClipFile As String = "./sounds/clip.mp3" Public Sub Form_Load() PlayInternalMusic(sClipFile) End Public Sub PlayInternalMusic(sFile As String) Dim sTempName As String = File.Dir(Temp()) &/ File.Name(sFile) If Not Exist(sTempName) Then Copy sFile To sTempName Music.Load(sTempName) Music.Play() End Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Tue Sep 19 20:56:12 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 19 Sep 2023 20:56:12 +0200 Subject: [Gambas-user] is possible to "inglobe" data (audio, video, etc) into gambas code? In-Reply-To: References: <3f7f25d829840ad2a06081181ac71f01@tiscali.it> <6421e469-ea06-64ee-e55f-6750059051f3@gambas-basic.org> Message-ID: Le 19/09/2023 ? 20:41, Bruce Steers a ?crit?: > aah yes so you would want code something like this if you have a > clip.mp3 file in a folder called sounds in the project dir... > > Public sClipFile As String = "./sounds/clip.mp3" > > Public Sub Form_Load() > > ?PlayInternalMusic(sClipFile) > > End > > Public Sub PlayInternalMusic(sFile As String) > > ? Dim sTempName As String = File.Dir(Temp()) &/ File.Name(sFile) > > ? If Not Exist(sTempName) Then Copy sFile To sTempName > ? Music.Load(sTempName) > ? Music.Play() > > End > > Respects > BruceS > No, as it is done automatically by the interpreter. -- Beno?t Minisini. From sharon at 455.co.il Tue Sep 19 22:10:24 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Sep 2023 23:10:24 +0300 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> Message-ID: <20230919195927.M80874@455.co.il> ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Tue, 19 Sep 2023 10:01:08 -0400 Subject: Re: [Gambas-user] How to load a new page on gb.web by code > On 9/19/23 04:37, Mayost Sharon wrote: > > Hello I succeeded (in an inexplicable way) Load the second page (Webpage1.webpage) In the code in line 18 I added two lines > > Webpage1.Render Quit But still when I click on the second page (Webpage1.webpage) on the submit button It returns back to the > > main page (Main.webpage) And it's not good because I can't get the request values of the second page (Webpage1.webpage) An > > example is attached Thanks > > Again, put the code in Main.webpage, not in Main.class. In other words, take > the code of the _new subroutine from Main.class and put it at the very top of > Main.page enclosed in code tags: <% %> > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Hello first thanks But I tried to put the code as you say, and it's still not good. 1. When I click the button on the second page it returns to the Main.webpage page 2. It is very inconvenient to write a lot of code inside Wabpage because if you can't stop and check for bugs, etc. Maybe I don't understand the process of the gb.web, but my expectation was that every page when I click on submit buttons that are supposed to perform an action should have been conducted on the page itself that was loaded, unless I specifically say in the action to go to another page What I currently understand is that every time he performs an action he always returns to the main page The question is, does it have to be this way? Thank you From chrisml at deganius.de Tue Sep 19 22:10:34 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 19 Sep 2023 22:10:34 +0200 Subject: [Gambas-user] Pre-release of Gambs 3.18.4 In-Reply-To: <43a5c7f4-499c-2274-e2a4-ff0be84969c5@gambas-basic.org> References: <43a5c7f4-499c-2274-e2a4-ff0be84969c5@gambas-basic.org> Message-ID: <15c1a74a-f403-e62c-2893-499d96a437ea@deganius.de> Am 17.09.23 um 23:01 schrieb Beno?t Minisini: > Here is the pre-release of Gambas 3.18.4. > > Release notes are at: > https://gambaswiki.org/wiki/doc/release/3.18.4. > > Source code is at: > https://gitlab.com/gambas/gambas/-/archive/3.18.4/gambas-3.18.4.tar.bz2 > > Please download and compile it, and tell me if you encounter any problem. Thank you! I will try but i do not have much time this week. For now: It's own tests pass. My tests pass. Looks beautiful. :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Tue Sep 19 23:44:50 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 19 Sep 2023 22:44:50 +0100 Subject: [Gambas-user] is possible to "inglobe" data (audio, video, etc) into gambas code? In-Reply-To: References: <3f7f25d829840ad2a06081181ac71f01@tiscali.it> <6421e469-ea06-64ee-e55f-6750059051f3@gambas-basic.org> Message-ID: On Tue, 19 Sep 2023, 19:57 Beno?t Minisini, < benoit.minisini at gambas-basic.org> wrote: > Le 19/09/2023 ? 20:41, Bruce Steers a ?crit : > > aah yes so you would want code something like this if you have a > > clip.mp3 file in a folder called sounds in the project dir... > > > > Public sClipFile As String = "./sounds/clip.mp3" > > > > Public Sub Form_Load() > > > > PlayInternalMusic(sClipFile) > > > > End > > > > Public Sub PlayInternalMusic(sFile As String) > > > > Dim sTempName As String = File.Dir(Temp()) &/ File.Name(sFile) > > > > If Not Exist(sTempName) Then Copy sFile To sTempName > > Music.Load(sTempName) > > Music.Play() > > > > End > > > > Respects > > BruceS > > > > No, as it is done automatically by the interpreter. > > -- > Beno?t Minisini. > Oops sorry my mistake I misread "what it does" as "what we should do" ? Respects BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Sep 20 00:48:08 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 19 Sep 2023 18:48:08 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <20230919195927.M80874@455.co.il> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> Message-ID: <0235eac4-6244-480f-9343-a10361f776e4@gmail.com> On 9/19/23 16:10, Mayost Sharon wrote: > Maybe I don't understand the process of the gb.web, but my expectation was that every page when I click on submit buttons that > are supposed to perform an action should have been conducted on the page itself that was loaded, unless I specifically say in > the action to go to another page That's not exactly how HTML forms work. First, the page is sent to the browser that displays the form with its submit button. If the form has no 'action' attribute, as in this case, the browser submits the form to the very same URL. So, the Gambas script is called again, and the page HTML source is sent to the browser again. And, since the code calls Webpage1.Render and then Quits, Webpage1 is rendered as the only content of Main.webpage. > What I currently understand is that every time he performs an action he always returns to the main page This is because there is also no 'action' attribute in the form on Webpage1. So, the browser submits that form to the same Gambas script which, by default, renders Main.webpage. It seems that we should be able to have the browser fetch Webpage1 by using the relative URL: w7.gambas/Webpage1.webpage. But, that doesn't work. Also, Response.Redirect doesn't seem to work; at least not the way I am trying it. I put the following code at the very top of Main.webpage, and no redirect occurred: <% Response.Redirect("https://gambaswiki.org/wiki") Quit %> (This was on an Apache server trying with Firefox and Chromium.) Hopefully, Beno?t can clarify why this isn't working the way it seems it should. -- Lee From benoit.minisini at gambas-basic.org Wed Sep 20 01:03:04 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Sep 2023 01:03:04 +0200 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <0235eac4-6244-480f-9343-a10361f776e4@gmail.com> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <0235eac4-6244-480f-9343-a10361f776e4@gmail.com> Message-ID: <2f554817-3787-d2db-1a8d-502ea1b964d3@gambas-basic.org> Le 20/09/2023 ? 00:48, T Lee Davidson a ?crit?: > ... > > Hopefully, Beno?t can clarify why this isn't working the way it seems it > should. > A WebPage is just a class that prints HTML to the standard output, aiming at being run from a CGI script. This HTML is printed by a function generated by the Gambas compiler from the form defined in the IDE. This function is called by the Render() method. So if you call Response.Redirect() inside a WebPage, it's too late. You are currently generating the response, and Response.Redirect() must be called before Response.Begin(), otherwise it has no effect. In other words, the choose of which WebPage you want to render must me done outside of any WebPage. For a real understanding, the entire 'gb.web' component is written in Gambas, and the source code is available. Regards, -- Beno?t Minisini. From gambas at servinfo.it Wed Sep 20 09:36:47 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Wed, 20 Sep 2023 09:36:47 +0200 Subject: [Gambas-user] Execute script from ide Message-ID: <67a8d73e-8c86-5630-c46c-c878119ef8ef@servinfo.it> Hi all , I usually have some script on a project because I use that to make some internal processing or to load the binary to the right server. When I right click on that from the ide I see the usual stuff ( open , open with , duplicate , ... ) . Is possible to add a menu item to run the script on a window ? It will speed up my works a lot since I write script directly from the ide and every time I need to run one I need to go to tools , open terminal , run script by hand and then close the terminal. I think we need simply to check if file have execute permission and launch it the default terminal app. Thanks in advance, Marco. From bsteers4 at gmail.com Wed Sep 20 10:00:29 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 20 Sep 2023 09:00:29 +0100 Subject: [Gambas-user] Execute script from ide In-Reply-To: <67a8d73e-8c86-5630-c46c-c878119ef8ef@servinfo.it> References: <67a8d73e-8c86-5630-c46c-c878119ef8ef@servinfo.it> Message-ID: On Wed, 20 Sep 2023, 08:39 Marco Ancillotti, wrote: > Hi all , > > I usually have some script on a project because I use that to make some > internal processing or to load the binary to the > right server. > > When I right click on that from the ide I see the usual stuff ( open , > open with , duplicate , ... ) . > > Is possible to add a menu item to run the script on a window ? > > It will speed up my works a lot since I write script directly from the > ide and every time I need to run one I need to go to tools , > open terminal , run script by hand and then close the terminal. > > I think we need simply to check if file have execute permission and > launch it the default terminal app. > > Thanks in advance, > Marco. > There is an option to run a command when you hit "make executable" Maybe you can use that? I have "external tools" like the pluma plugin with my gambas so I could just use that. You should also be able to right click the script and select "open in file manager" then just double click the script to run it. (On systems that allow script execution from double click) Ps. If you use the command.. bash ./scriptname Then it don't need to be executable or need a shebang. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at servinfo.it Wed Sep 20 10:53:39 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Wed, 20 Sep 2023 10:53:39 +0200 Subject: [Gambas-user] Execute script from ide In-Reply-To: References: <67a8d73e-8c86-5630-c46c-c878119ef8ef@servinfo.it> Message-ID: <88e5acba-3184-04fe-3720-b36214b071e0@servinfo.it> Il 20/09/23 10:00, Bruce Steers ha scritto: > > There is an option to run a command when you hit "make executable" > Maybe you can use that? I don't have that option , maybe because I'm using kde. > I have "external tools" like the pluma plugin with my gambas so I > could just use that. I don't have any "external tools" > > You should also be able to right click the script and select "open in > file manager" then just double click the script to run it. (On systems > that allow script execution from double click) > > Ps. If you use the command.. > bash ./scriptname > > Then it don't need to be executable or need a shebang. I know but is not that simple or integrated like "right click -> execute" thanks, Marco. From aishen at free.fr Wed Sep 20 12:36:38 2023 From: aishen at free.fr (aishen) Date: Wed, 20 Sep 2023 12:36:38 +0200 Subject: [Gambas-user] Pre-release of Gambs 3.18.4 In-Reply-To: <43a5c7f4-499c-2274-e2a4-ff0be84969c5@gambas-basic.org> References: <43a5c7f4-499c-2274-e2a4-ff0be84969c5@gambas-basic.org> Message-ID: <88be1def-de86-7118-2fca-f88b1bc8d0fe@free.fr> Hi, I compiled it in ubuntu 22-04 wsl2 It works fine but I am enaugh prog to test it, examples are working fine , I find it wonderfull when I started gambas (1) I would never think it could work on windows so well Thank you for this application Regards Henri Le 17/09/2023 ? 23:01, Beno?t Minisini a ?crit?: > Hi, > > Here is the pre-release of Gambas 3.18.4. > > Release notes are at: > https://gambaswiki.org/wiki/doc/release/3.18.4. > > Source code is at: > https://gitlab.com/gambas/gambas/-/archive/3.18.4/gambas-3.18.4.tar.bz2 > > Please download and compile it, and tell me if you encounter any problem. > > As usual, Ubuntu packages will follow in a few days on the Gambas > Stable PPA, if no problem is encountered. > > Regards, > From t.lee.davidson at gmail.com Wed Sep 20 15:31:27 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 20 Sep 2023 09:31:27 -0400 Subject: [Gambas-user] Execute script from ide In-Reply-To: <88e5acba-3184-04fe-3720-b36214b071e0@servinfo.it> References: <67a8d73e-8c86-5630-c46c-c878119ef8ef@servinfo.it> <88e5acba-3184-04fe-3720-b36214b071e0@servinfo.it> Message-ID: <96795790-71db-400e-b0c6-4b1837d04153@gmail.com> On 9/20/23 04:53, Marco Ancillotti wrote: >> There?is?an?option?to?run?a?command?when?you?hit?"make?executable" >> Maybe?you?can?use?that? > I?don't?have?that?option?,?maybe?because?I'm?using?kde. It's not a desktop feature. It's a Gambas feature. In the Project menu, there is "Configure executable..." Once that dialog is open, there are two tabs at the top: "Location" and "Options". On the Options tab is "Run this shell command after" with a textbox to enter the shell command. -- Lee From gambas at servinfo.it Wed Sep 20 15:46:03 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Wed, 20 Sep 2023 15:46:03 +0200 Subject: [Gambas-user] Execute script from ide In-Reply-To: <96795790-71db-400e-b0c6-4b1837d04153@gmail.com> References: <67a8d73e-8c86-5630-c46c-c878119ef8ef@servinfo.it> <88e5acba-3184-04fe-3720-b36214b071e0@servinfo.it> <96795790-71db-400e-b0c6-4b1837d04153@gmail.com> Message-ID: Il 20/09/23 15:31, T Lee Davidson ha scritto: > It's not a desktop feature. It's a Gambas feature. > > In the Project menu, there is "Configure executable..." Once that > dialog is open, there are two tabs at the top: "Location" and > "Options". On the Options tab is "Run this shell command after" with a > textbox to enter the shell command. ok , I found it but I need to run script when I need and not when I build executable. I can use this to upload to server but not on all other case. moreover I need to see the output of the script to know if the loading was successful. Thanks, marco. From benoit.minisini at gambas-basic.org Wed Sep 20 15:52:11 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Sep 2023 15:52:11 +0200 Subject: [Gambas-user] Execute script from ide In-Reply-To: <67a8d73e-8c86-5630-c46c-c878119ef8ef@servinfo.it> References: <67a8d73e-8c86-5630-c46c-c878119ef8ef@servinfo.it> Message-ID: Le 20/09/2023 ? 09:36, Marco Ancillotti a ?crit?: > Hi all , > > I usually have some script on a project because I use that to make some > internal processing or to load the binary to the > right server. > > When I right click on that from the ide I see the usual stuff ( open , > open with , duplicate , ... ) . > > Is possible to add a menu item to run the script on a window ? > > It will speed up my works a lot since I write script directly from the > ide and every time I need to run one I need to go to tools , > open terminal , run script by hand and then close the terminal. > > I think we need simply to check if file have execute permission and > launch it the default terminal app. > > Thanks in advance, > Marco. > It should be possible to do that. By the way, I'm thinking about a feature related to that problem (running commands to manage a project). I imagine some "Gambas project configuration files" located in the parent directories of a project. These configuration files will be able to: - Define some variables. - Define some visual things for the IDE, to help make the difference between projects. - Run some shell commands in some context (before/after having compiled the project, making the executable, and so on...). - Associate a command with a new menu entry in the IDE, in some pre-defined places. - ... (add your own ideas here). This sort of "meta" configuration file will allow to define the way you manage one project, or a group of projects. Especially how to deploy it for example. And so automatically, and once. No need to manually run anything each time you make the executable. I see one problem: if you share your project, you don't share the meta configuration files, and so the project may be incomplete (depending of what the commands really do). What do people think about that? -- Beno?t Minisini. From gambas at servinfo.it Wed Sep 20 15:55:47 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Wed, 20 Sep 2023 15:55:47 +0200 Subject: [Gambas-user] webtextbox and object.attach Message-ID: <791014eb-ab3d-819d-0e6e-1cbfde74bb5c@servinfo.it> Hi all, I have a gb.web.gui app , I made a webtextbox and use it's _Change() event to modify the content when I insert something. It works but , if I want to move che _Change() on a different class and then connect using object.attach() it seem to not work. Other event like _KeyPress() works but _Change() don't. I made something like: WEBFORM CLASS: Public Sub WebForm_Open() ? Object.Attach(, , "aaa") Object.Attach(, , "bbb") End MYCLASS CLASS: Create Static Public Sub aaa_Change() ? Object.Lock(Last) ? Last.Text = "hello" ? Object.Unlock(Last) End Public Sub bbb_KeyPress() ? Last.Text = "_" End The first don't work but the second do , is there some particularity on using _Change form other class ? Thanks, marco. From gambas at servinfo.it Wed Sep 20 16:00:43 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Wed, 20 Sep 2023 16:00:43 +0200 Subject: [Gambas-user] Execute script from ide In-Reply-To: References: <67a8d73e-8c86-5630-c46c-c878119ef8ef@servinfo.it> Message-ID: <9ba574a3-3e2f-ca94-0c99-1b857d4a2296@servinfo.it> Il 20/09/23 15:52, Beno?t Minisini ha scritto: > I see one problem: if you share your project, you don't share the meta > configuration files, and so the project may be incomplete (depending > of what the commands really do). > > What do people think about that? This will be a great feature , also why not save all ON the project so when someone share it everyone get all ? I mean we can simply define a standard name to script sourced or runned before or after some event and all will work. Something like: - env.sh ( contain all variables that need to be sourced ) - before_create.sh ( script to run before making executable ) - after_create.sh ( script to run after making executable ) ... and so on. From benoit.minisini at gambas-basic.org Wed Sep 20 16:07:36 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Sep 2023 16:07:36 +0200 Subject: [Gambas-user] Execute script from ide In-Reply-To: <9ba574a3-3e2f-ca94-0c99-1b857d4a2296@servinfo.it> References: <67a8d73e-8c86-5630-c46c-c878119ef8ef@servinfo.it> <9ba574a3-3e2f-ca94-0c99-1b857d4a2296@servinfo.it> Message-ID: Le 20/09/2023 ? 16:00, Marco Ancillotti a ?crit?: > Il 20/09/23 15:52, Beno?t Minisini ha scritto: >> I see one problem: if you share your project, you don't share the meta >> configuration files, and so the project may be incomplete (depending >> of what the commands really do). >> >> What do people think about that? > > This will be a great feature , also why not save all ON the project so > when someone share it everyone get all ? Because I want these meta files to be shared by many projects. Usually all the projects of a bigger one. But we can allow the meta file to be present inside the project too. > > I mean we can simply define a standard name to script sourced or runned > before or after some event and all will work. > > Something like: > - env.sh ( contain all variables that need to be sourced ) > - before_create.sh ( script to run before making executable ) > - after_create.sh ( script to run after making executable ) > ... and so on. > No, because the command associated with a specific context will be a shell command, but not necessarily a shell script. And it could be located anywhere. Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Wed Sep 20 16:24:12 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 20 Sep 2023 10:24:12 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <20230919195927.M80874@455.co.il> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> Message-ID: <383652f5-0357-487b-a933-ed33c195775d@gmail.com> On 9/19/23 16:10, Mayost Sharon wrote: > Hello first thanks But I tried to put the code as you say, and it's still not good. 1. When I click the button on the second > page it returns to the Main.webpage page 2. It is very inconvenient to write a lot of code inside Wabpage because if you can't > stop and check for bugs, etc. Maybe I don't understand the process of the gb.web, but my expectation was that every page when I > click on submit buttons that are supposed to perform an action should have been conducted on the page itself that was loaded, > unless I specifically say in the action to go to another page What I currently understand is that every time he performs an > action he always returns to the main page The question is, does it have to be this way? Thank you Well, since I don't have time at present to analyze the gb.web code to determine how to answer your original question posed in the subject line, all I can suggest at the moment is that you use Javascript to validate the form data prior to it being submitted, and use Main.webpage as a main controller similar to this: <% If Request.Post.Fields.Count > 0 Then Select Request.Post["gb_action"] ' gb_action will be defined differently in each distinct page Case "Webpage1" 'Render or Include Webpage1 Case "Webpage2" 'Render or Include Webpage2' End Select Endif %> -- Lee From gambas at servinfo.it Wed Sep 20 16:30:37 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Wed, 20 Sep 2023 16:30:37 +0200 Subject: [Gambas-user] Execute script from ide In-Reply-To: References: <67a8d73e-8c86-5630-c46c-c878119ef8ef@servinfo.it> <9ba574a3-3e2f-ca94-0c99-1b857d4a2296@servinfo.it> Message-ID: <0a122092-4287-836d-6cb1-b7b53122b4ea@servinfo.it> Il 20/09/23 16:07, Beno?t Minisini ha scritto: > Because I want these meta files to be shared by many projects. Usually > all the projects of a bigger one. > > But we can allow the meta file to be present inside the project too. Something like define a property in a project like "son of" so it get all meta from a father project ? > No, because the command associated with a specific context will be a > shell command, but not necessarily a shell script. And it could be > located anywhere. Imho this can be solved by removing file extension so every file that start with a #! will be managed by the shell , also it can be a link so the real script can be everywhere or simply we can call the real script inside the standard one. From sbungay at smartsonsite.com Wed Sep 20 18:41:07 2023 From: sbungay at smartsonsite.com (sbungay) Date: Wed, 20 Sep 2023 12:41:07 -0400 Subject: [Gambas-user] Pop-up to identify control being selected? Message-ID: <16ff5d4a-66c4-e238-7c6c-a2732f3ef9bd@smartsonsite.com> GAMBAS 3.18.3. Presbyopia (the progressive inability of the eye to focus on near objects as we age) is something to be considered when designing a UI. For example, in the area where a control is selected for inclusion on a form, hovering the mouse pointer over the control would (in earlier versions if the IDE) result in a pop-up containing the name of the control being hovered over. That pop-up did not have a different focal distance than the item being looked at and moving to the next control did not require refocusing on where the mouse is to move to the next item. Please restore the pop-up in the control selection area. From benoit.minisini at gambas-basic.org Wed Sep 20 20:02:27 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Sep 2023 20:02:27 +0200 Subject: [Gambas-user] Pop-up to identify control being selected? In-Reply-To: <16ff5d4a-66c4-e238-7c6c-a2732f3ef9bd@smartsonsite.com> References: <16ff5d4a-66c4-e238-7c6c-a2732f3ef9bd@smartsonsite.com> Message-ID: Le 20/09/2023 ? 18:41, sbungay a ?crit?: > GAMBAS 3.18.3. > > Presbyopia (the progressive inability of the eye to focus on near > objects as we age) is something to be considered when designing a UI. > For example, in the area where a control is selected for inclusion on a > form, hovering the mouse pointer over the control would (in earlier > versions if the IDE) result in a pop-up containing the name of the > control being hovered over. That pop-up did not have a different focal > distance than the item being looked at and moving to the next control > did not require refocusing on where the mouse is to move to the next item. > > Please restore the pop-up in the control selection area. > OK, done in last commit. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Wed Sep 20 20:03:16 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Sep 2023 20:03:16 +0200 Subject: [Gambas-user] Release of Gambas 3.18.4 Message-ID: <82b48a09-e290-7ff3-543b-489bc8bca0bf@gambas-basic.org> Hi, The release is now official, and Ubuntu packages are available on the Stable Gambas PPA. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Wed Sep 20 20:05:05 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Sep 2023 20:05:05 +0200 Subject: [Gambas-user] Pop-up to identify control being selected? In-Reply-To: References: <16ff5d4a-66c4-e238-7c6c-a2732f3ef9bd@smartsonsite.com> Message-ID: <1e336193-c645-5e00-1739-05d17a47f30d@gambas-basic.org> Le 20/09/2023 ? 20:02, Beno?t Minisini a ?crit?: > Le 20/09/2023 ? 18:41, sbungay a ?crit?: >> GAMBAS 3.18.3. >> >> Presbyopia (the progressive inability of the eye to focus on near >> objects as we age) is something to be considered when designing a UI. >> For example, in the area where a control is selected for inclusion on >> a form, hovering the mouse pointer over the control would (in earlier >> versions if the IDE) result in a pop-up containing the name of the >> control being hovered over. That pop-up did not have a different focal >> distance than the item being looked at and moving to the next control >> did not require refocusing on where the mouse is to move to the next >> item. >> >> Please restore the pop-up in the control selection area. >> > > OK, done in last commit. > > Regards, > If you really need it now, you just have to uncomment the line #46 in the FToolPanel.class file, recompile and reinstall the IDE. Regards, -- Beno?t Minisini. From sbungay at smartsonsite.com Wed Sep 20 20:13:15 2023 From: sbungay at smartsonsite.com (Smarts On Site) Date: Wed, 20 Sep 2023 14:13:15 -0400 Subject: [Gambas-user] Pop-up to identify control being selected? In-Reply-To: <1e336193-c645-5e00-1739-05d17a47f30d@gambas-basic.org> References: <16ff5d4a-66c4-e238-7c6c-a2732f3ef9bd@smartsonsite.com> <1e336193-c645-5e00-1739-05d17a47f30d@gambas-basic.org> Message-ID: <18ab3cbd678.27a9.7b18a53a2c01c31c232c1ae1614fbb8a@smartsonsite.com> Thank you Benoit. On September 20, 2023 14:07:04 Beno?t Minisini wrote: > Le 20/09/2023 ? 20:02, Beno?t Minisini a ?crit : >> Le 20/09/2023 ? 18:41, sbungay a ?crit : >>> GAMBAS 3.18.3. >>> >>> Presbyopia (the progressive inability of the eye to focus on near >>> objects as we age) is something to be considered when designing a UI. >>> For example, in the area where a control is selected for inclusion on >>> a form, hovering the mouse pointer over the control would (in earlier >>> versions if the IDE) result in a pop-up containing the name of the >>> control being hovered over. That pop-up did not have a different focal >>> distance than the item being looked at and moving to the next control >>> did not require refocusing on where the mouse is to move to the next >>> item. >>> >>> Please restore the pop-up in the control selection area. >>> >> >> OK, done in last commit. >> >> Regards, >> > > If you really need it now, you just have to uncomment the line #46 in > the FToolPanel.class file, recompile and reinstall the IDE. > > Regards, > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Wed Sep 20 20:23:51 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 20 Sep 2023 21:23:51 +0300 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <383652f5-0357-487b-a933-ed33c195775d@gmail.com> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> Message-ID: <20230920180921.M29534@455.co.il> ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Wed, 20 Sep 2023 10:24:12 -0400 Subject: Re: [Gambas-user] How to load a new page on gb.web by code > On 9/19/23 16:10, Mayost Sharon wrote: > > Hello first thanks But I tried to put the code as you say, and it's still not good. 1. When I click the button on the second > > page it returns to the Main.webpage page 2. It is very inconvenient to write a lot of code inside Wabpage because if you can't > > stop and check for bugs, etc. Maybe I don't understand the process of the gb.web, but my expectation was that every page when I > > click on submit buttons that are supposed to perform an action should have been conducted on the page itself that was loaded, > > unless I specifically say in the action to go to another page What I currently understand is that every time he performs an > > action he always returns to the main page The question is, does it have to be this way? Thank you > > Well, since I don't have time at present to analyze the gb.web code to > determine how to answer your original question posed in the subject line, all > I can suggest at the moment is that you use Javascript to validate the form > data prior to it being submitted, and use Main.webpage as a main controller > similar to this: <% If Request.Post.Fields.Count > 0 Then Select > Request.Post["gb_action"] ' gb_action will be defined differently in each > distinct page Case "Webpage1" 'Render or Include Webpage1 > Case "Webpage2" 'Render or Include Webpage2' End Select Endif %> > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Hello Thanks again And sorry for the English translation According to Beno?t answer See gb.web You shouldn't manage multiple pages on the same project, so you can't switch from page to page If I understand correctly it should actually be a PHP joke that has several PHP pages Then I move from page to page via ACTION or REDIRECT In GB, then you need to create several projects, each project is a page, and then the transition between one and the other will also be with ACTION and REDIRECT But instead of writing the name of the page with a PHP dot, we at GB will write for example: prj_web1.gambas prj_web2.gambas prj_web3.gambas ... Anyway, I'm also trying to reach a solution, I'm currently preparing an example. When I'm done I'll add it to this discussion And we will see if this is a correct solution From benoit.minisini at gambas-basic.org Wed Sep 20 20:50:26 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Sep 2023 20:50:26 +0200 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <20230920180921.M29534@455.co.il> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> Message-ID: <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> Le 20/09/2023 ? 20:23, Mayost Sharon a ?crit?: > > Hello > > Thanks again > And sorry for the English translation > > According to Beno?t answer > See gb.web > You shouldn't manage multiple pages on the same project, so you can't switch from page to page > If I understand correctly it should actually be a PHP joke that has several PHP pages > Then I move from page to page via ACTION or REDIRECT > In GB, then you need to create several projects, each project is a page, and then the transition between one and the other will also be with ACTION and REDIRECT > But instead of writing the name of the page with a PHP dot, we at GB will write for example: > prj_web1.gambas > prj_web2.gambas > prj_web3.gambas > ... > > Anyway, I'm also trying to reach a solution, I'm currently preparing an example. > When I'm done I'll add it to this discussion > And we will see if this is a correct solution > No, you didn't understand. You must create one WebPage for each page in one project. Then you create a startup module Main, and from the Main method of that Main module, you choose the page you want to render, according to the value of 'Request.Path'. Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Wed Sep 20 23:01:45 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 20 Sep 2023 17:01:45 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> Message-ID: On 9/20/23 14:50, Beno?t Minisini wrote: > You?must?create?one?WebPage?for?each?page?in?one?project. > > Then you create a startup module Main, and from the Main method of that Main module, you choose the page you want to render, > according to the value?of?'Request.Path'. Mayost, Benoit just confirmed what I was thinking about using a Main module. (But, I hadn't thought of using Request.Path - nice tip.) Based on this, I have created a small demonstration project. The way I have done things is probably not the best way especially given the use of global variables in the Main module. But, perhaps it will give you some ideas. -- Lee P.S. If you're confused about the format of the attachment, see https://gambaswiki.org/wiki/howto/opengmailtxt -------------- next part -------------- H4sIAAAAAAAAA+xcB1gT2RYOxRVx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XcbZkezyG/nEWow3595J++sl72fzIUe5ngirPe8x3cDS6WZvM3MvHunw 74kGMCas3eS1eybUaJF7/eRHT4M0a+6VXWPEuevlfZ8CTIHmt49l/IOk9z/yQVTy6WOTM/z2ttVN AWuc/LNtZvCXIaLg51HJgMNw4TAenSdayf6QgxYA2WKnXtQXAS2RXmrtF4eqmtP+vnopjNBGwUL+ fqXweANlXRAV/WM9ELwg8b++YD4M21pL+AJFNV8JCCSAdwCb4y9ri789u0LYZyVfyYXyhypQmf78 B2Z/LNnuUyu0DE/eTrXopjx1fOY0GFqrWQX+Nz74/Au/4w/7f9x+34//p+bxT+z/kZD49f7vn4Jf 57/+e+PH/p8fRv+vOgKWYuP/2PmvUlJY2V/nv/4M/IH/f7zJ70/N45/gf+yv899+Dn7x/783fvD/ D6P/H8T/krJSv/j/Z+AP/E9pjpuebn9mHv/M/n/K+b+/+P9fj1/7//+98Zf3P/75Rv83+L/v/wch Lff3/C8t8+v9/z8FlHcu0tEdviVHh6XDimHFJOjo7KzFPG/aO1FeNE/5TPn3y5j/f8Uf/L/d768D /VPz+Kf03y///1Pwv/f/f6Pw/mH999fU/+6a/cJ/BT/8/w+j/x+l/yR/6b+fgT/wP+Xonz85j3+c /yXAD7/4/2fgF///e+MH/1OM/l/F/v8M/0vKyUj84v+fgT+u/99wdcDZ3Pwz8/hH+F9WUur3+T/s r/Wfn4K/53/Q84qBXSEtJScrK/8H/v9Dqs3/OfW/u2a/8F/BX9b//3yj/xv8v+b/JLESf2f/UtIS cr/m/34GDv/1/JdzP4YARtPeCYeREsPSXfgxJ/z7GYZ0JmDl7V1dFH9MEaq7Orv9R3t3bAIgDAUB tM822ruDoAtECSKCQgoLp1dT6QQivNf9K6/8zW3rPev5/BW+0jvo49DNR2rq0MZxiVPKTRWuHsso Xsp7ub8uAAAAAAAAAAAA4KdOgZG1bgDIAAA= From benoit.minisini at gambas-basic.org Wed Sep 20 23:07:36 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Sep 2023 23:07:36 +0200 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> Message-ID: <168a56bf-9395-28c2-ff27-3f122f795bc9@gambas-basic.org> Le 20/09/2023 ? 23:01, T Lee Davidson a ?crit?: > On 9/20/23 14:50, Beno?t Minisini wrote: >> You?must?create?one?WebPage?for?each?page?in?one?project. >> >> Then you create a startup module Main, and from the Main method of >> that Main module, you choose the page you want to render, according to >> the value?of?'Request.Path'. > > Mayost, > > Benoit just confirmed what I was thinking about using a Main module. > (But, I hadn't thought of using Request.Path - nice tip.) > This is not really a tip, this is the only way to know what the users want to see (usually a different request path means a different page). Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Wed Sep 20 23:10:00 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 20 Sep 2023 17:10:00 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <168a56bf-9395-28c2-ff27-3f122f795bc9@gambas-basic.org> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <168a56bf-9395-28c2-ff27-3f122f795bc9@gambas-basic.org> Message-ID: <35ef97bc-6d63-41c8-a7c7-c469c76e1b17@gmail.com> On 9/20/23 17:07, Beno?t Minisini wrote: >> Benoit just confirmed what I was thinking about using a Main module. (But,?I?hadn't?thought?of?using?Request.Path?-?nice?tip.) >> > > This is not really a tip, this is the only way to know what the users > want?to?see?(usually?a?different?request?path?means?a?different?page). Well it was a tip for me! :-D -- Lee From brian at westwoodsvcs.com Thu Sep 21 03:14:43 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Sep 2023 18:14:43 -0700 (PDT) Subject: [Gambas-user] _init inside modules? Message-ID: <649100987.15169.1695258883214.JavaMail.zimbra@westwoodsvcs.com> Should _init be called for modules, which in fact end up being a form of object? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Sep 21 04:27:22 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Sep 2023 19:27:22 -0700 (PDT) Subject: [Gambas-user] Would it be useful if possible to send signals thru debug Message-ID: <2101535854.15233.1695263242839.JavaMail.zimbra@westwoodsvcs.com> I was wondering if it was possible to have the IDE be able to send different signals to the running app under test so as to correctly test the catching of signals, Or maybe there is already a way. Also I think I have noticed that when terminal closes the app no longer receives the sighup I am thinking that it did in the past. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Sep 21 06:41:02 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Sep 2023 21:41:02 -0700 (PDT) Subject: [Gambas-user] Tasks signals mapped to main application_signal Message-ID: <1520318438.15393.1695271262905.JavaMail.zimbra@westwoodsvcs.com> When a task wants to capture a signal, the signal goes to the main application application_signal Not the one created inside the task, would it not be more correct to remap the signal handler included in the task definition rather that in the main module of the forked applications application_signal function. See attached program. It can be worked around, but what if, the main and tasks have differing signal needs? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TestSignals-0.0.2.tar.gz.gmail.txt URL: From sharon at 455.co.il Thu Sep 21 07:56:09 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 21 Sep 2023 08:56:09 +0300 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> Message-ID: <20230921055556.M36048@455.co.il> ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Wed, 20 Sep 2023 17:01:45 -0400 Subject: Re: [Gambas-user] How to load a new page on gb.web by code > On 9/20/23 14:50, Beno?t Minisini wrote: > > You?must?create?one?WebPage?for?each?page?in?one?project. > > > > Then you create a startup module Main, and from the Main method of that Main module, you choose the page you want to render, > > according to the value?of?'Request.Path'. > > Mayost, > > Benoit just confirmed what I was thinking about using a Main module. (But, I > hadn't thought of using Request.Path - nice tip.) > > Based on this, I have created a small demonstration project. The way I have > done things is probably not the best way especially given the use of global > variables in the Main module. But, perhaps it will give you some ideas. > > -- > Lee > > P.S. If you're confused about the format of the attachment, see https://gambaswiki.org/wiki/howto/opengmailtxt ------- End of Original Message ------- Hello Thank you It helped me move forward Regarding the Request.Path issue, I still don't understand what it can solve Suppose I write on the page in the part of the form like this:
1. If I'm inside the IDE it doesn't do anything, it doesn't really open the page 2. If I compile the project and put it inside the HTTPD server Then I go to: http://127.0.0.1/cgi-bin/w7.gambas I get the page fine But if I click the submit button It says that there is no such page and in the address line of the browser you see that it has changed to http://127.0.0.1/cgi-bin/Webpage1.webpage From gradobag at gradobag.it Thu Sep 21 11:24:30 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 21 Sep 2023 11:24:30 +0200 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <20230921055556.M36048@455.co.il> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> Message-ID: Il 21/09/23 07:56, Mayost Sharon ha scritto: > ---------- Original Message ----------- > From: T Lee Davidson > To: user at lists.gambas-basic.org > Sent: Wed, 20 Sep 2023 17:01:45 -0400 > Subject: Re: [Gambas-user] How to load a new page on gb.web by code > >> On 9/20/23 14:50, Beno?t Minisini wrote: >>> You?must?create?one?WebPage?for?each?page?in?one?project. >>> >>> Then you create a startup module Main, and from the Main method of that Main module, you choose the page you want to render, >>> according to the value?of?'Request.Path'. >> Mayost, >> >> Benoit just confirmed what I was thinking about using a Main module. (But, I >> hadn't thought of using Request.Path - nice tip.) >> >> Based on this, I have created a small demonstration project. The way I have >> done things is probably not the best way especially given the use of global >> variables in the Main module. But, perhaps it will give you some ideas. >> >> -- >> Lee >> >> P.S. If you're confused about the format of the attachment, see https://gambaswiki.org/wiki/howto/opengmailtxt > ------- End of Original Message ------- > > Hello > Thank you > > It helped me move forward > > Regarding the Request.Path issue, I still don't understand what it can solve > > Suppose I write on the page in the part of the form like this: > > 1. If I'm inside the IDE it doesn't do anything, it doesn't really open the page > 2. If I compile the project and put it inside the HTTPD server > Then I go to: > http://127.0.0.1/cgi-bin/w7.gambas > I get the page fine > But if I click the submit button > It says that there is no such page and in the address line of the browser you see that it has changed to > http://127.0.0.1/cgi-bin/Webpage1.webpage > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Hi, Not sure if that's what you want, I made a small change to 'page' in Main. See attachment Regards Gianluigi P.S: Have you read the lessons on the German book? -------------- next part -------------- H4sIAAAAAAAAA+xaCVhT17MPm2IsimIr4sI1CogFspEAliSsssiigBuKkuUSAiGB5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DueDm6uSr8PiFZ3c3F3cz0M6/4/T4r+p9TDBCNrm2sOvnil0wwG1rZO 1vb4O0oyDF6e+L/DQPF3vP/+/d/dAP+f4/f8/x3/+z/q/Gf5P/Ff/wr87v9bDnfAue925/5/SRn/ afyvrMx/PP9HRv5P/Ne/BKYaeE+nu27umIuud+/cN2e4ZAuyvOT/jgj8w8//b+Pf9d/fh/D9D+J/ udMyf/j/D/7gD/7gD/7gD/7gD/7gD/7gD/7gD/7g/wb+DYXa0TYAeAAA From benoit.minisini at gambas-basic.org Thu Sep 21 12:11:55 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Sep 2023 12:11:55 +0200 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <20230921055556.M36048@455.co.il> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> Message-ID: <9db4cb60-4f76-da08-f5c0-e31ba67cbd34@gambas-basic.org> Le 21/09/2023 ? 07:56, Mayost Sharon a ?crit?: > > Hello > Thank you > > It helped me move forward > > Regarding the Request.Path issue, I still don't understand what it can solve > > Suppose I write on the page in the part of the form like this: > > 1. If I'm inside the IDE it doesn't do anything, it doesn't really open the page > 2. If I compile the project and put it inside the HTTPD server > Then I go to: > http://127.0.0.1/cgi-bin/w7.gambas > I get the page fine > But if I click the submit button > It says that there is no such page and in the address line of the browser you see that it has changed to > http://127.0.0.1/cgi-bin/Webpage1.webpage > The 'action' attribute is an URL, not the name of Gambas class inside your project. I think you mistake what happens on the client, and what happens on the server. How can you map the URL to your webpage? Inside the server code, by using the 'Request.Path' property. It tells you the URL of the request, from which you decide which WebPage you will display (or not, depending on the request). Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Thu Sep 21 14:54:06 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 21 Sep 2023 08:54:06 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <20230921055556.M36048@455.co.il> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> Message-ID: <2eba729c-ae4e-4bda-852d-4e42aa56372d@gmail.com> On 9/21/23 01:56, Mayost Sharon wrote: > Regarding the Request.Path issue, I still don't understand what it can solve Request.Path would be useful if you had a link to one webpage from another webpage. Let's suppose you had a link to Home in Webpage1 as "Home". When the link is clicked and the Gambas script is called, Request.Path would hold the value "/Home". This would tell you that the user wants the Home page, so you would render it. -- Lee From t.lee.davidson at gmail.com Thu Sep 21 14:58:52 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 21 Sep 2023 08:58:52 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> Message-ID: <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> On 9/21/23 05:24, Gianluigi wrote: > Have?you?read?the?lessons?on?the?German?book? I thought of referring Mayost to that as well, Gianluigi. But, I searched and searched and could not find that excellent multi-page application that Hans and Claus developed. I no longer have it on my hard drive. -- Lee From gradobag at gradobag.it Thu Sep 21 15:09:17 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 21 Sep 2023 15:09:17 +0200 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> Message-ID: <9262ad34-aa58-9ca8-b929-12eb98a1c5ad@gradobag.it> Il 21/09/23 14:58, T Lee Davidson ha scritto: > On 9/21/23 05:24, Gianluigi wrote: >> Have?you?read?the?lessons?on?the?German?book? > > I thought of referring Mayost to that as well, Gianluigi. But, I > searched and searched and could not find that excellent multi-page > application that Hans and Claus developed. I no longer have it on my > hard drive. > > Hi Lee, I think you are referring to this: https://gambas-buch.de/lib/exe/fetch.php?media=k24:k24.6:k24.6.2.4:webapp4-3.7.5.tar.gz Instead this is the lesson of what was mentioned by Benoit: https://gambas-buch.de/doku.php?id=k24:k24.6:k24.6.1:start&s[]=request&s[]=path Regards Gianluigi From hans at gambas-buch.de Thu Sep 21 15:14:07 2023 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 21 Sep 2023 15:14:07 +0200 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> Message-ID: Am 21.09.23 um 14:58 schrieb T Lee Davidson: > I thought of referring Mayost to that as well, Gianluigi. But, I > searched and searched and could not find that excellent multi-page > application that Hans and Claus developed. I no longer have it on my > hard drive. Hi. I informed Mayost and he said that the tip helped him. Regards Hans From dickson.tim at googlemail.com Thu Sep 21 16:13:08 2023 From: dickson.tim at googlemail.com (Tim Dickson) Date: Thu, 21 Sep 2023 15:13:08 +0100 Subject: [Gambas-user] Pre-release of Gambs 3.18.4 In-Reply-To: <43a5c7f4-499c-2274-e2a4-ff0be84969c5@gambas-basic.org> References: <43a5c7f4-499c-2274-e2a4-ff0be84969c5@gambas-basic.org> Message-ID: <46487ac6-5e1d-497c-bc38-617dc6e4b573@googlemail.com> Gambas 3.18.4 slackbuild submitted, so hopefully should go live this weekend. (at https://slackbuilds.org/repository/15.0/development/gambas3/?? ) regards, Tim On 17/09/2023 22:01, Beno?t Minisini wrote: > Hi, > > Here is the pre-release of Gambas 3.18.4. > > Release notes are at: > https://gambaswiki.org/wiki/doc/release/3.18.4. > > Source code is at: > https://gitlab.com/gambas/gambas/-/archive/3.18.4/gambas-3.18.4.tar.bz2 > > Please download and compile it, and tell me if you encounter any problem. > > As usual, Ubuntu packages will follow in a few days on the Gambas > Stable PPA, if no problem is encountered. > > Regards, > From t.lee.davidson at gmail.com Thu Sep 21 23:24:29 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 21 Sep 2023 17:24:29 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <9262ad34-aa58-9ca8-b929-12eb98a1c5ad@gradobag.it> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> <9262ad34-aa58-9ca8-b929-12eb98a1c5ad@gradobag.it> Message-ID: <56cb148c-8d51-4286-bfe4-bf2dd2b62199@gmail.com> On 9/21/23 09:09, Gianluigi wrote: > I?think?you?are?referring?to?this: > > https://gambas-buch.de/lib/exe/fetch.php?media=k24:k24.6:k24.6.2.4:webapp4-3.7.5.tar.gz Yes, that is indeed the application to which I was referring. Thank you. And after looking some more, I now know why I couldn't find it. The English version chapter link for "24.6.2 WebPage" [https://gambas-buch.de/dwen/doku.php?id=k24:k24.6:k24.6.2:start] says: "This topic does not exist yet" -- Lee From t.lee.davidson at gmail.com Thu Sep 21 23:28:54 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 21 Sep 2023 17:28:54 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> Message-ID: <2e71b46d-56a4-4246-ada7-5a95fff6689e@gmail.com> On 9/21/23 09:14, Hans Lehmann wrote: > Am 21.09.23 um 14:58 schrieb T Lee Davidson: >> I thought of referring Mayost to that as well, Gianluigi. But, I searched and searched and could not find that excellent >> multi-page application that Hans and Claus developed. I no longer have it on my hard drive. > > Hi. I informed Mayost and he said that the tip helped him. > > Regards > Hans Great, Hans. Thank you. -- Lee From akrobaticone at gmail.com Fri Sep 22 08:42:55 2023 From: akrobaticone at gmail.com (Michele V.) Date: Fri, 22 Sep 2023 08:42:55 +0200 Subject: [Gambas-user] Gambas 3.18.4 PPA Ubuntu 20.04 missing Message-ID: HI In stable gambas PPA there are no packages for Ubuntu 20.04 for Gambas 3.18.4 is there perhaps some problem? Regards Michele ------------------------------------------------------------------------------------------------------------------------------------------- Io scrivo da UBUNTU GNU/LINUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Fri Sep 22 09:55:22 2023 From: hans at gambas-buch.de (Hans Lehmann) Date: Fri, 22 Sep 2023 09:55:22 +0200 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <56cb148c-8d51-4286-bfe4-bf2dd2b62199@gmail.com> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> <9262ad34-aa58-9ca8-b929-12eb98a1c5ad@gradobag.it> <56cb148c-8d51-4286-bfe4-bf2dd2b62199@gmail.com> Message-ID: Am 21.09.23 um 23:24 schrieb T Lee Davidson: > On 9/21/23 09:09, Gianluigi wrote: >> I?think?you?are?referring?to?this: >> >> https://gambas-buch.de/lib/exe/fetch.php?media=k24:k24.6:k24.6.2.4:webapp4-3.7.5.tar.gz >> > > Yes, that is indeed the application to which I was referring. Thank you. > > And after looking some more, I now know why I couldn't find it. > The English version chapter link for "24.6.2 WebPage" > [https://gambas-buch.de/dwen/doku.php?id=k24:k24.6:k24.6.2:start] says: > "This topic does not exist yet" Hello Lee. I am not very happy myself that many chapters have not been translated yet. This had been done in the past by my granddaughter Emma. For professional reasons, she had to stop translating (temporarily). But she promised that it will continue from October 2023. Let's hope for the best. With kind regards Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri Sep 22 11:44:21 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 22 Sep 2023 11:44:21 +0200 Subject: [Gambas-user] Gambas 3.18.4 PPA Ubuntu 20.04 missing In-Reply-To: References: Message-ID: <6c35d878-db60-8607-06b1-6c1341987abd@deganius.de> Am 22.09.23 um 08:42 schrieb Michele V.: > In stable gambas PPA there are no packages for Ubuntu 20.04 for Gambas > 3.18.4 > is there perhaps some problem? Yes, i'm waiting also. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From sharon at 455.co.il Fri Sep 22 13:09:05 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 22 Sep 2023 14:09:05 +0300 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> <9262ad34-aa58-9ca8-b929-12eb98a1c5ad@gradobag.it> <56cb148c-8d51-4286-bfe4-bf2dd2b62199@gmail.com> Message-ID: <20230922110151.M94242@455.co.il> ---------- Original Message ----------- From: Hans Lehmann To: user at lists.gambas-basic.org Sent: Fri, 22 Sep 2023 09:55:22 +0200 Subject: Re: [Gambas-user] How to load a new page on gb.web by code > Am 21.09.23 um 23:24 schrieb T Lee Davidson: > On9/21/23 09:09, Gianluigi wrote: > I?think?you?are?referring?to?this: > > https://gambas-buch.de/lib/exe/fetch.php?media=k24:k24.6:k24.6.2.4:webapp4-3.7.5.tar.gz > > Yes, that is indeed the application to which I was referring.Thank you. > > And after looking some more, I now know why I couldn't find it. > The English version chapter link for "24.6.2 WebPage" [https://gambas-buch.de/dwen/doku.php?id=k24:k24.6:k24.6.2:start]says: > "This topic does not exist yet" > > Hello Lee. > > I am not very happy myself that many chapters have not beentranslated yet. > This had been done in the past by my granddaughterEmma. For professional > reasons, she had to stop translating(temporarily). But she promised that it > will continue from October2023. Let's hope for the best. > > With kind regards > > Hans ------- End of Original Message ------- Hello First, thank you very much again for the guides There is a lot of information Beno?t wrote in answer to my question that you should use: "Request.Path" I went through your webapp4-3.7.5 project I don't see you using "Request.Path" So maybe I'm missing Beno?t point Thanks From gradobag at gradobag.it Fri Sep 22 13:32:33 2023 From: gradobag at gradobag.it (Gianluigi) Date: Fri, 22 Sep 2023 13:32:33 +0200 Subject: [Gambas-user] Error from GPU Message-ID: <939594e3-4404-5380-b6d1-574213b7d3b3@gradobag.it> Hi, A friend of ours (Franco) from the Italian forum updated a Gambas project. Now it gets this error message from the GPU, in a terminal window: "libGL error: MESA-LOADER: failed to open nouveau: /usr/lib64/dri/nouveau_dri.so: impossibile aprire il file oggetto condiviso: File o directory non esistente (search paths /usr/lib64/dri, suffix _dri) libGL error: failed to load driver: nouveau" Both the project and the system work fine anyway and he wouldn't want to add the driver. Question: Is it possible to avoid seeing the error? Attached is the system information and screenshot (*) Regards Gianluigi (*) [System] Gambas=3.18.4 07c51f51 (stable) OperatingSystem=Linux Distribution=openSUSE Leap 15.4 Kernel=5.14.21-150400.24.81-default Architecture=x86_64 Cores=12 Memory=15849M Language=it_IT.UTF-8 Desktop=KDE DesktopResolution=96 DesktopScale=7 WidgetTheme=breeze Font=Noto Sans,10 [Programs] gcc=gcc (SUSE Linux) 7.5.0 pngquant=2.11.2 (November 2017) trans=Translate Shell?????? 0.9.6.12 [Libraries] Cairo=/usr/lib64/libcairo.so.2.11600.0 Curl=/usr/lib64/libcurl.so.4.8.0 DBus=/usr/lib64/libdbus-1.so.3.19.4 GDK2=/usr/lib64/libgdk-x11-2.0.so.0.2400.33 GDK3=/usr/lib64/libgdk-3.so.0.2404.30 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.2001.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.33 GTK+3=/usr/lib64/libgtk-3.so.0.2404.30 OpenGL=/usr/lib64/libGL.so.1.7.0 Poppler=/usr/lib64/libpoppler.so.117.0.0 QT5=/usr/lib64/libQt5Core.so.5.15.2 RSvg=/usr/lib64/librsvg-2.so.2.48.0 SDL=/usr/lib64/libSDL2-2.0.so.0.8.0 SQLite 3=/usr/lib64/libsqlite3.so.0.8.6 [Environment] AUDIODRIVER=pulseaudio COLORTERM=1 CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu CPU=x86_64 CSHEDIT=emacs DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=/usr/share/xsessions/plasma5 DISPLAY=:0 FROM_HEADER= GB_GUI=gb.qt5 GPG_TTY=non ? un tty GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0:/.config/gtkrc-2.0 GTK_IM_MODULE=cedilla GTK_MODULES=canberra-gtk-module GTK_RC_FILES=/etc/gtk/gtkrc:/.gtkrc:/.config/gtkrc G_BROKEN_FILENAMES=1 G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 HISTSIZE=1000 HOME= HOST= HOSTNAME= HOSTTYPE=x86_64 JAVA_BINDIR=/usr/lib64/jvm/jre-11-openjdk/bin JAVA_HOME=/usr/lib64/jvm/jre-11-openjdk JAVA_ROOT=/usr/lib64/jvm/jre-11-openjdk JRE_HOME=/usr/lib64/jvm/java-11-openjdk-11 KDE_APPLICATIONS_AS_SCOPE=1 KDE_FULL_SESSION=true KDE_SESSION_UID=1000 KDE_SESSION_VERSION=5 LANG=it_IT.UTF-8 LANGUAGE=it_IT.UTF-8 LC_ALL=it_IT.UTF-8 LESS=-M -I -R LESSCLOSE=lessclose.sh %s %s LESSKEY=/etc/lesskey.bin LESSOPEN=lessopen.sh %s LESS_ADVANCED_PREPROCESSOR=no LOGNAME= MACHTYPE=x86_64-suse-linux MAIL=/var/spool/mail/ MANPATH=/usr/local/man:/usr/share/man MINICOM=-c on MORE=-sl OSTYPE=linux PAGER=less PATH=/bin:/usr/local/bin:/usr/bin:/bin PROFILEREAD=true PWD= PYTHONSTARTUP=/etc/pythonstart QEMU_AUDIO_DRV=pa QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=xim QT_IM_SWITCHER=imsw-multi QT_LOGGING_RULES=*.debug=false SESSION_MANAGER=local/:@/tmp/.ICE-unix/2900,unix/:/tmp/.ICE-unix/2900 SHELL=/bin/bash SHLVL=0 SSH_ASKPASS=/usr/lib/ssh/ssh-askpass SYSTEMD_EXEC_PID=1789 TERM=xterm TZ=:/etc/localtime USER= WINDOWMANAGER=/usr/bin/startplasma-x11 XAUTHLOCALHOSTNAME= XAUTHORITY=/run/user/1000/xauth_tBduYX XCURSOR_SIZE=24 XCURSOR_THEME=breeze_cursors XDG_CONFIG_DIRS=/.config/kdedefaults:/etc/xdg XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=KDE XDG_SESSION_ID=21 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session11 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB XMODIFIERS=@im=local XNLSPATH=/usr/share/X11/nls XSESSION_IS_UP=yes force_s3tc_enable=true -------------- next part -------------- A non-text attachment was scrubbed... Name: gpu-error.jpeg Type: image/jpeg Size: 21753 bytes Desc: not available URL: From benoit.minisini at gambas-basic.org Fri Sep 22 14:26:48 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 22 Sep 2023 14:26:48 +0200 Subject: [Gambas-user] Gambas 3.18.4 PPA Ubuntu 20.04 missing In-Reply-To: <6c35d878-db60-8607-06b1-6c1341987abd@deganius.de> References: <6c35d878-db60-8607-06b1-6c1341987abd@deganius.de> Message-ID: Le 22/09/2023 ? 11:44, Christof Thalhofer a ?crit?: > Am 22.09.23 um 08:42 schrieb Michele V.: > >> In stable gambas PPA there are no packages for Ubuntu 20.04 for Gambas >> 3.18.4 >> is there perhaps some problem? > > Yes, i'm? waiting also. > > Alles Gute > > Christof Thalhofer > Sorry, it seems I forgot to build that distribution - I have to update and request a build for each one manually. If I could automate this process, it would not happen. Regards, -- Beno?t Minisini. From adamnt42 at gmail.com Fri Sep 22 14:30:40 2023 From: adamnt42 at gmail.com (BB) Date: Fri, 22 Sep 2023 22:00:40 +0930 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> <9262ad34-aa58-9ca8-b929-12eb98a1c5ad@gradobag.it> <56cb148c-8d51-4286-bfe4-bf2dd2b62199@gmail.com> Message-ID: On 22/9/23 5:25 pm, Hans Lehmann wrote: > Am 21.09.23 um 23:24 schrieb T Lee Davidson: >> On 9/21/23 09:09, Gianluigi wrote: >>> I?think?you?are?referring?to?this: >>> >>> https://gambas-buch.de/lib/exe/fetch.php?media=k24:k24.6:k24.6.2.4:webapp4-3.7.5.tar.gz >>> >> >> Yes, that is indeed the application to which I was referring. Thank you. >> >> And after looking some more, I now know why I couldn't find it. >> The English version chapter link for "24.6.2 WebPage" >> [https://gambas-buch.de/dwen/doku.php?id=k24:k24.6:k24.6.2:start] says: >> "This topic does not exist yet" > > Hello Lee. > > I am not very happy myself that many chapters have not been translated > yet. This had been done in the past by my granddaughter Emma. For > professional reasons, she had to stop translating (temporarily). But > she promised that it will continue from October 2023. Let's hope for > the best. > > With kind regards > > Hans > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- In that case, so many thanks to Emma. -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Fri Sep 22 14:54:11 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 22 Sep 2023 14:54:11 +0200 Subject: [Gambas-user] Gambas 3.18.4 PPA Ubuntu 20.04 missing In-Reply-To: References: <6c35d878-db60-8607-06b1-6c1341987abd@deganius.de> Message-ID: <38d68d08-c42d-de24-b848-fc735390abde@gambas-basic.org> Le 22/09/2023 ? 14:26, Beno?t Minisini a ?crit?: > Le 22/09/2023 ? 11:44, Christof Thalhofer a ?crit?: >> Am 22.09.23 um 08:42 schrieb Michele V.: >> >>> In stable gambas PPA there are no packages for Ubuntu 20.04 for Gambas >>> 3.18.4 >>> is there perhaps some problem? >> >> Yes, i'm? waiting also. >> >> Alles Gute >> >> Christof Thalhofer >> > > Sorry, it seems I forgot to build that distribution - I have to update > and request a build for each one manually. If I could automate this > process, it would not happen. > > Regards, > It should be ok now. Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Fri Sep 22 15:18:25 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 22 Sep 2023 09:18:25 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: <20230922110151.M94242@455.co.il> References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> <9262ad34-aa58-9ca8-b929-12eb98a1c5ad@gradobag.it> <56cb148c-8d51-4286-bfe4-bf2dd2b62199@gmail.com> <20230922110151.M94242@455.co.il> Message-ID: On 9/22/23 07:09, Mayost Sharon wrote: > Beno?t wrote in answer to my question that you should use: "Request.Path" I went through your webapp4-3.7.5 project I don't see > you using "Request.Path" So maybe I'm missing Beno?t point Beno?t didn't mean that you should /always/ use Request.Path. Request.Path is applicable if you have links in your WebPages to other Webpages. For example, if you had a link to the Home webpage in Webpage1, like so "Go to Home". In that case, you would need to use Request.Path to determine which of your application's webpages was requested. But in your application where you determine which page to render based solely on web form submissions, the use of Request.Path does not apply. -- Lee From t.lee.davidson at gmail.com Fri Sep 22 15:24:49 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 22 Sep 2023 09:24:49 -0400 Subject: [Gambas-user] How to load a new page on gb.web by code In-Reply-To: References: <20230918180533.M14403@455.co.il> <20230918210359.M37463@455.co.il> <20230919082959.M42262@455.co.il> <6650c54c-a480-453a-a7d8-f244f319d0c3@gmail.com> <20230919195927.M80874@455.co.il> <383652f5-0357-487b-a933-ed33c195775d@gmail.com> <20230920180921.M29534@455.co.il> <91519b0b-8a48-262c-2837-6e41819c76bc@gambas-basic.org> <20230921055556.M36048@455.co.il> <2e2bc1eb-f408-49c6-9c43-fa0fabb48913@gmail.com> <9262ad34-aa58-9ca8-b929-12eb98a1c5ad@gradobag.it> <56cb148c-8d51-4286-bfe4-bf2dd2b62199@gmail.com> Message-ID: On 9/22/23 03:55, Hans Lehmann wrote: > I am not very happy myself that many chapters have not been translated yet. This had been done in the past by my granddaughter > Emma. For professional reasons, she had to stop translating (temporarily). But she promised that it will continue from October > 2023. Let's hope for the best. Oh. I did not realize that the translation was an ongoing process, and so thought the missing pages were merely an oversight. (And, I agree with BB. Many thanks to Emma.) When things slow down for the season so I have more free time, I might be able to help with that if you wish. (To keep Mayost's thread on-topic, you may contact me off-list about that.) -- Lee From t.lee.davidson at gmail.com Fri Sep 22 15:29:52 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 22 Sep 2023 09:29:52 -0400 Subject: [Gambas-user] Gambas 3.18.4 PPA Ubuntu 20.04 missing In-Reply-To: References: <6c35d878-db60-8607-06b1-6c1341987abd@deganius.de> Message-ID: <1f09d9ff-1583-41a3-9c79-61ca2c48b32d@gmail.com> On 9/22/23 08:26, Beno?t Minisini wrote: > Sorry, it seems I forgot to build that distribution - I have to update and request a build for each one manually. If I could > automate this process,?it?would?not?happen. I am not very familiar with GitLab, but doesn't it provide build automation? And, doesn't it interface with LaunchPad? (Or, are you already using such a process [and I'm simply speaking from my other end] ?) -- Lee From benoit.minisini at gambas-basic.org Fri Sep 22 15:36:34 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 22 Sep 2023 15:36:34 +0200 Subject: [Gambas-user] Gambas 3.18.4 PPA Ubuntu 20.04 missing In-Reply-To: <1f09d9ff-1583-41a3-9c79-61ca2c48b32d@gmail.com> References: <6c35d878-db60-8607-06b1-6c1341987abd@deganius.de> <1f09d9ff-1583-41a3-9c79-61ca2c48b32d@gmail.com> Message-ID: <03578dad-a277-1231-a73f-7181d1c19bc8@gambas-basic.org> Le 22/09/2023 ? 15:29, T Lee Davidson a ?crit?: > On 9/22/23 08:26, Beno?t Minisini wrote: >> Sorry, it seems I forgot to build that distribution - I have to update >> and request a build for each one manually. If I could automate this >> process,?it?would?not?happen. > > I am not very familiar with GitLab, but doesn't it provide build > automation? And, doesn't it interface with LaunchPad? > (Or, are you already using such a process [and I'm simply speaking from > my other end] ?) > Nothing to do with GitLab. Ubuntu PPA are made on Launchpad. Launchpad builds can be run daily or manually for each distribution or group of distributions: you create a "recipe", and each recipe builds one or more distributions, provided they are build the same way, i.e. with the same packages dependencies. And I didn't find a way to build the recipes on demand, so I have to request their build manually one by one. Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Fri Sep 22 15:47:03 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 22 Sep 2023 09:47:03 -0400 Subject: [Gambas-user] Error from GPU In-Reply-To: <939594e3-4404-5380-b6d1-574213b7d3b3@gradobag.it> References: <939594e3-4404-5380-b6d1-574213b7d3b3@gradobag.it> Message-ID: <047df706-7407-4858-9c11-3e7fcd622103@gmail.com> On 9/22/23 07:32, Gianluigi wrote: > A?friend?of?ours?(Franco)?from?the?Italian?forum?updated?a?Gambas?project. > Now?it?gets?this?error?message?from?the?GPU,?in?a?terminal?window: > "libGL error: MESA-LOADER: failed to open nouveau: /usr/lib64/dri/nouveau_dri.so: impossibile aprire il file oggetto condiviso: > File o directory non esistente (search paths /usr/lib64/dri, suffix?_dri) > libGL?error:?failed?to?load?driver:?nouveau" > Both the project and the system work fine anyway and he wouldn't want to add?the?driver. > Question:?Is?it?possible?to?avoid?seeing?the?error? I think probably not when using libGL. I don't blame Franco for not wanting to install the Mesa driver. Having to use nouveau for Nvidia cards is bad enough. Relatively recently, I swapped out a Radeon card for an Nvidia hoping to get better performance; and also got the "failed to load nouveau.dri" errors when testing it. The performance was absolutely pathetic. I installed the Mesa driver hoping to fix the performance issue, and all it did was muck things up. I promptly swapped back to the Radeon card. -- Lee Leap 15.5 From gradobag at gradobag.it Fri Sep 22 16:26:28 2023 From: gradobag at gradobag.it (Gianluigi) Date: Fri, 22 Sep 2023 16:26:28 +0200 Subject: [Gambas-user] Error from GPU In-Reply-To: <047df706-7407-4858-9c11-3e7fcd622103@gmail.com> References: <939594e3-4404-5380-b6d1-574213b7d3b3@gradobag.it> <047df706-7407-4858-9c11-3e7fcd622103@gmail.com> Message-ID: <9eca52e2-8973-8643-fac0-280bc9074ff7@gradobag.it> Il 22/09/23 15:47, T Lee Davidson ha scritto: > On 9/22/23 07:32, Gianluigi wrote: >> A?friend?of?ours?(Franco)?from?the?Italian?forum?updated?a?Gambas?project. >> >> Now?it?gets?this?error?message?from?the?GPU,?in?a?terminal?window: >> "libGL error: MESA-LOADER: failed to open nouveau: >> /usr/lib64/dri/nouveau_dri.so: impossibile aprire il file oggetto >> condiviso: File o directory non esistente (search paths >> /usr/lib64/dri, suffix?_dri) >> libGL?error:?failed?to?load?driver:?nouveau" >> Both the project and the system work fine anyway and he wouldn't want >> to add?the?driver. >> Question:?Is?it?possible?to?avoid?seeing?the?error? > > I think probably not when using libGL. I don't blame Franco for not > wanting to install the Mesa driver. Having to use nouveau for Nvidia > cards is bad enough. > > Relatively recently, I swapped out a Radeon card for an Nvidia hoping > to get better performance; and also got the "failed to load > nouveau.dri" errors when testing it. The performance was absolutely > pathetic. I installed the Mesa driver hoping to fix the performance > issue, and all it did was muck things up. I promptly swapped back to > the Radeon card. > > Your answer is disheartening :-( I have never used Suse if it were Ubuntu I would recommend using a proprietary driver which has become open source since 2022, but frankly I don't feel like recommending it on a system I don't know. If Benoit has not an idea, I think Franco have to adapt to closing the terminal and that's it. Thank you very much. Gianluigi From benoit.minisini at gambas-basic.org Fri Sep 22 16:29:04 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 22 Sep 2023 16:29:04 +0200 Subject: [Gambas-user] Error from GPU In-Reply-To: <9eca52e2-8973-8643-fac0-280bc9074ff7@gradobag.it> References: <939594e3-4404-5380-b6d1-574213b7d3b3@gradobag.it> <047df706-7407-4858-9c11-3e7fcd622103@gmail.com> <9eca52e2-8973-8643-fac0-280bc9074ff7@gradobag.it> Message-ID: Le 22/09/2023 ? 16:26, Gianluigi a ?crit?: > Il 22/09/23 15:47, T Lee Davidson ha scritto: >> On 9/22/23 07:32, Gianluigi wrote: >>> A?friend?of?ours?(Franco)?from?the?Italian?forum?updated?a?Gambas?project. >>> Now?it?gets?this?error?message?from?the?GPU,?in?a?terminal?window: >>> "libGL error: MESA-LOADER: failed to open nouveau: >>> /usr/lib64/dri/nouveau_dri.so: impossibile aprire il file oggetto >>> condiviso: File o directory non esistente (search paths >>> /usr/lib64/dri, suffix?_dri) >>> libGL?error:?failed?to?load?driver:?nouveau" >>> Both the project and the system work fine anyway and he wouldn't want >>> to add?the?driver. >>> Question:?Is?it?possible?to?avoid?seeing?the?error? >> >> I think probably not when using libGL. I don't blame Franco for not >> wanting to install the Mesa driver. Having to use nouveau for Nvidia >> cards is bad enough. >> >> Relatively recently, I swapped out a Radeon card for an Nvidia hoping >> to get better performance; and also got the "failed to load >> nouveau.dri" errors when testing it. The performance was absolutely >> pathetic. I installed the Mesa driver hoping to fix the performance >> issue, and all it did was muck things up. I promptly swapped back to >> the Radeon card. >> >> > Your answer is disheartening :-( > I have never used Suse if it were Ubuntu I would recommend using a > proprietary driver which has become open source since 2022, but frankly > I don't feel like recommending it on a system I don't know. > > If Benoit has not an idea, I think Franco have to adapt to closing the > terminal and that's it. > > Thank you very much. > > Gianluigi > When I see such a message, it usually means that the system is broken. I don't see how Gambas can have any relation with that. Regards, -- Beno?t Minisini. From gradobag at gradobag.it Fri Sep 22 16:38:07 2023 From: gradobag at gradobag.it (Gianluigi) Date: Fri, 22 Sep 2023 16:38:07 +0200 Subject: [Gambas-user] Error from GPU In-Reply-To: References: <939594e3-4404-5380-b6d1-574213b7d3b3@gradobag.it> <047df706-7407-4858-9c11-3e7fcd622103@gmail.com> <9eca52e2-8973-8643-fac0-280bc9074ff7@gradobag.it> Message-ID: <71962055-d8f0-d87b-5992-36cb4439761c@gradobag.it> Il 22/09/23 16:29, Beno?t Minisini ha scritto: > Le 22/09/2023 ? 16:26, Gianluigi a ?crit?: >> Il 22/09/23 15:47, T Lee Davidson ha scritto: >>> On 9/22/23 07:32, Gianluigi wrote: >>>> A?friend?of?ours?(Franco)?from?the?Italian?forum?updated?a?Gambas?project. >>>> >>>> Now?it?gets?this?error?message?from?the?GPU,?in?a?terminal?window: >>>> "libGL error: MESA-LOADER: failed to open nouveau: >>>> /usr/lib64/dri/nouveau_dri.so: impossibile aprire il file oggetto >>>> condiviso: File o directory non esistente (search paths >>>> /usr/lib64/dri, suffix?_dri) >>>> libGL?error:?failed?to?load?driver:?nouveau" >>>> Both the project and the system work fine anyway and he wouldn't >>>> want to add?the?driver. >>>> Question:?Is?it?possible?to?avoid?seeing?the?error? >>> >>> I think probably not when using libGL. I don't blame Franco for not >>> wanting to install the Mesa driver. Having to use nouveau for Nvidia >>> cards is bad enough. >>> >>> Relatively recently, I swapped out a Radeon card for an Nvidia >>> hoping to get better performance; and also got the "failed to load >>> nouveau.dri" errors when testing it. The performance was absolutely >>> pathetic. I installed the Mesa driver hoping to fix the performance >>> issue, and all it did was muck things up. I promptly swapped back to >>> the Radeon card. >>> >>> >> Your answer is disheartening :-( >> I have never used Suse if it were Ubuntu I would recommend using a >> proprietary driver which has become open source since 2022, but >> frankly I don't feel like recommending it on a system I don't know. >> >> If Benoit has not an idea, I think Franco have to adapt to closing >> the terminal and that's it. >> >> Thank you very much. >> >> Gianluigi >> > > When I see such a message, it usually means that the system is broken. > I don't see how Gambas can have any relation with that. > > Regards, > Ok, I'll pass your answers on to Franco. Many thanks again to both of you Regards Gianluigi From gradobag at gradobag.it Fri Sep 22 16:56:40 2023 From: gradobag at gradobag.it (Gianluigi) Date: Fri, 22 Sep 2023 16:56:40 +0200 Subject: [Gambas-user] Gambas 3.18.4 PPA Ubuntu 20.04 missing In-Reply-To: <38d68d08-c42d-de24-b848-fc735390abde@gambas-basic.org> References: <6c35d878-db60-8607-06b1-6c1341987abd@deganius.de> <38d68d08-c42d-de24-b848-fc735390abde@gambas-basic.org> Message-ID: <59615cc0-e7e1-a437-7b7b-2b9a8079f0b8@gradobag.it> Il 22/09/23 14:54, Beno?t Minisini ha scritto: > Le 22/09/2023 ? 14:26, Beno?t Minisini a ?crit?: >> Le 22/09/2023 ? 11:44, Christof Thalhofer a ?crit?: >>> Am 22.09.23 um 08:42 schrieb Michele V.: >>> >>>> In stable gambas PPA there are no packages for Ubuntu 20.04 for Gambas >>>> 3.18.4 >>>> is there perhaps some problem? >>> >>> Yes, i'm? waiting also. >>> >>> Alles Gute >>> >>> Christof Thalhofer >>> >> >> Sorry, it seems I forgot to build that distribution - I have to >> update and request a build for each one manually. If I could automate >> this process, it would not happen. >> >> Regards, >> > > It should be ok now. > > Regards, > The update came immediately and well. Perfect thanks Gianluigi From chrisml at deganius.de Fri Sep 22 17:39:12 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 22 Sep 2023 17:39:12 +0200 Subject: [Gambas-user] Gambas 3.18.4 PPA Ubuntu 20.04 missing In-Reply-To: <38d68d08-c42d-de24-b848-fc735390abde@gambas-basic.org> References: <6c35d878-db60-8607-06b1-6c1341987abd@deganius.de> <38d68d08-c42d-de24-b848-fc735390abde@gambas-basic.org> Message-ID: <55bb595c-73d4-b7f9-947b-c68de4e6d8d4@deganius.de> Am 22.09.23 um 14:54 schrieb Beno?t Minisini: > It should be ok now. Yes, thank you very much! :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From t.lee.davidson at gmail.com Sat Sep 23 00:29:45 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 22 Sep 2023 18:29:45 -0400 Subject: [Gambas-user] Error from GPU In-Reply-To: <9eca52e2-8973-8643-fac0-280bc9074ff7@gradobag.it> References: <939594e3-4404-5380-b6d1-574213b7d3b3@gradobag.it> <047df706-7407-4858-9c11-3e7fcd622103@gmail.com> <9eca52e2-8973-8643-fac0-280bc9074ff7@gradobag.it> Message-ID: <3a452db1-5913-4cdf-9df1-daa5a535e714@gmail.com> On 9/22/23 10:26, Gianluigi wrote: > I have never used Suse if it were Ubuntu I would recommend using a proprietary driver which has become open source since 2022, > but frankly I?don't?feel?like?recommending?it?on?a?system?I?don't?know. I don't think there would be any issue with an Nvidia proprietary driver, even on openSUSE. However, there may be an issue getting a proprietary driver for his graphics card, depending on how old it is. There may no longer be a driver available that is not already End Of Life, and therefore, no longer supported or "guaranteed" to work. -- Lee From gradobag at gradobag.it Sat Sep 23 08:01:01 2023 From: gradobag at gradobag.it (Gianluigi) Date: Sat, 23 Sep 2023 08:01:01 +0200 Subject: [Gambas-user] Error from GPU In-Reply-To: <3a452db1-5913-4cdf-9df1-daa5a535e714@gmail.com> References: <939594e3-4404-5380-b6d1-574213b7d3b3@gradobag.it> <047df706-7407-4858-9c11-3e7fcd622103@gmail.com> <9eca52e2-8973-8643-fac0-280bc9074ff7@gradobag.it> <3a452db1-5913-4cdf-9df1-daa5a535e714@gmail.com> Message-ID: <17fd4d3d-f036-f850-6deb-aeb03cf85fe0@gradobag.it> Il 23/09/23 00:29, T Lee Davidson ha scritto: > On 9/22/23 10:26, Gianluigi wrote: >> I have never used Suse if it were Ubuntu I would recommend using a >> proprietary driver which has become open source since 2022, but >> frankly I?don't?feel?like?recommending?it?on?a?system?I?don't?know. > > I don't think there would be any issue with an Nvidia proprietary > driver, even on openSUSE. However, there may be an issue getting a > proprietary driver for his graphics card, depending on how old it is. > There may no longer be a driver available that is not already End Of > Life, and therefore, no longer supported or "guaranteed" to work. > > Thanks Lee, I reported your words to Franco. Regards Gianluigi From akrobaticone at gmail.com Sat Sep 23 14:25:46 2023 From: akrobaticone at gmail.com (Michele V.) Date: Sat, 23 Sep 2023 14:25:46 +0200 Subject: [Gambas-user] Gambas 3.18.4 PPA Ubuntu 20.04 missing Message-ID: >It should be ok now. >Regards, >-- >Beno?t Minisini. It works! Many thanks Regards Michele ------------------------------------------------------------------------------------------------------------------------------------------- Io scrivo da UBUNTU GNU/LINUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.fischer6 at web.de Sun Sep 24 21:34:02 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Sun, 24 Sep 2023 21:34:02 +0200 Subject: [Gambas-user] Trouble with X11.GetWindowProperty() Message-ID: Hi fellow gambassins, I want to read the value of the WM_CLASS X11 atom by using X11.GetWindowProperty(winId, "WM_CLASS") WM_CLASS is a string-atom, so GetWindowProperty should return a Variant containing a String[] (one string for instanceName, one for className). BUT what I get is a Variant containing a single String that contains the NULL bytes that terminate the C-strings. In the debugger such a string (for the Firefox window) looks like: "Navigator\x00firefox\x00" Now: is this a bug or a feature? Sure. I can read this string as stream like so: -------------------------------------------------------- '' Returns the WM_CLASS of the given window Fast Public Function GetWindowClass(winId As Integer) As WindowClass Dim wmClass As String = X11.GetWindowProperty(winId, "WM_CLASS") Dim resStream As Stream resStream = Open String wmClass For Read resStream.NullTerminatedString = True Dim instanceName, className As String instanceName = Read #resStream As String Seek #resStream, instanceName.Len + 1 ' skip the \0 to be able to read next string className = Read #resStream As String Return New WindowClass([instanceName, className]) Catch Error.Raise(Subst("Could not get WM_CLASS for window &1: &2", winId, Error.Text)) End -------------------------------------------------------- But this does not seem to be the way it should work... Any ideas about this issue? Regards, Martin ____________________________ Martin Fischer From benoit.minisini at gambas-basic.org Sun Sep 24 21:47:37 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Sun, 24 Sep 2023 21:47:37 +0200 Subject: [Gambas-user] Trouble with X11.GetWindowProperty() In-Reply-To: References: Message-ID: <63a3e729-61a7-4fdf-a4a7-2a8f593614aa@gambas-basic.org> Le 24/09/2023 ? 21:34, Martin Fischer a ?crit?: > Hi fellow gambassins, > > I want to read the value of the WM_CLASS X11 atom by using > ? X11.GetWindowProperty(winId, "WM_CLASS") > > WM_CLASS is a string-atom, so GetWindowProperty should return a Variant > containing a String[] (one string for instanceName, one for className). > > BUT what I get is a Variant containing a single String that contains the > NULL bytes that terminate the C-strings. > In the debugger such a string (for the Firefox window) looks like: > ? "Navigator\x00firefox\x00" > > Now: is this a bug or a feature? > > Sure. I can read this string as stream like so: > It seems that the WM_CLASS property has a special format, as there are special dedicated X11 methods to read or write it. Apparently it's two null terminated strings sticked, the first one being the application class, the second one the application name. Regards, -- Beno?t Minisini. From martin.fischer6 at web.de Sun Sep 24 22:48:02 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Sun, 24 Sep 2023 22:48:02 +0200 Subject: [Gambas-user] Trouble with X11.GetWindowProperty() In-Reply-To: <63a3e729-61a7-4fdf-a4a7-2a8f593614aa@gambas-basic.org> References: <63a3e729-61a7-4fdf-a4a7-2a8f593614aa@gambas-basic.org> Message-ID: <2E59125B-688B-4CB2-BAC5-3FA4F3B7B3EC@web.de> Benoit, I see. For me, thats OK. Thanks, Martin Am 24. September 2023 21:47:37 MESZ schrieb "Beno?t Minisini" : >Le 24/09/2023 ? 21:34, Martin Fischer a ?crit?: >> Hi fellow gambassins, >> >> I want to read the value of the WM_CLASS X11 atom by using >> ? X11.GetWindowProperty(winId, "WM_CLASS") >> >> WM_CLASS is a string-atom, so GetWindowProperty should return a Variant >> containing a String[] (one string for instanceName, one for className). >> >> BUT what I get is a Variant containing a single String that contains the >> NULL bytes that terminate the C-strings. >> In the debugger such a string (for the Firefox window) looks like: >> ? "Navigator\x00firefox\x00" >> >> Now: is this a bug or a feature? >> >> Sure. I can read this string as stream like so: >> > >It seems that the WM_CLASS property has a special format, as there are special dedicated X11 methods to read or write it. > >Apparently it's two null terminated strings sticked, the first one being the application class, the second one the application name. > >Regards, > >-- >Beno?t Minisini. > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Mon Sep 25 00:49:17 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Mon, 25 Sep 2023 00:49:17 +0200 (CEST) Subject: [Gambas-user] Trouble with X11.GetWindowProperty() In-Reply-To: References: Message-ID: Excuse me, why don't you use the "Replace()" function ? Print Replace(X11.GetWindowProperty(winId, "WM_CLASS"), Chr(0), Space(4)) 24 set 2023, 21:35 da martin.fischer6 at web.de: > Hi fellow gambassins, > > I want to read the value of the WM_CLASS X11 atom by using > X11.GetWindowProperty(winId, "WM_CLASS") > > WM_CLASS is a string-atom, so GetWindowProperty should return a Variant > containing a String[] (one string for instanceName, one for className). > > BUT what I get is a Variant containing a single String that contains the > NULL bytes that terminate the C-strings. > In the debugger such a string (for the Firefox window) looks like: > "Navigator\x00firefox\x00" > > Now: is this a bug or a feature? > > Sure. I can read this string as stream like so: > > -------------------------------------------------------- > '' Returns the WM_CLASS of the given window > Fast Public Function GetWindowClass(winId As Integer) As WindowClass > Dim wmClass As String = X11.GetWindowProperty(winId, "WM_CLASS") > > Dim resStream As Stream > resStream = Open String wmClass For Read > resStream.NullTerminatedString = True > > Dim instanceName, className As String > instanceName = Read #resStream As String > Seek #resStream, instanceName.Len + 1 ' skip the \0 to be able to > read next string > className = Read #resStream As String > > Return New WindowClass([instanceName, className]) > > Catch > Error.Raise(Subst("Could not get WM_CLASS for window &1: &2", > winId, Error.Text)) > End > -------------------------------------------------------- > > But this does not seem to be the way it should work... > > > Any ideas about this issue? > > Regards, > Martin > ____________________________ > Martin Fischer > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.fischer6 at web.de Mon Sep 25 10:42:58 2023 From: martin.fischer6 at web.de (Martin Fischer) Date: Mon, 25 Sep 2023 10:42:58 +0200 Subject: [Gambas-user] Trouble with X11.GetWindowProperty() In-Reply-To: References: Message-ID: <1d1ab20d-8596-2036-6d9c-950844764fad@web.de> > Excuse me, why don't you use the "Replace()" function ? > > Print Replace(X11.GetWindowProperty(winId, "WM_CLASS"), Chr(0), Space(4)) > Hi Buddy, you are absolutely right! I think I was so confused about the \0's within the string that I started to think in bytes... I replaced this complete procedure with this one: ------------------------------------------ Public Function GetWindowClass(winId As Integer) As WindowClass Dim wmClass As String = X11.GetWindowProperty(winId, "WM_CLASS") Dim classParts As String[] = Split(wmClass, Chr(0)) Return New WindowClass([classParts[0], classParts[1]]) Catch Error.Raise(Subst("Could not get WM_CLASS for window &1: &2", winId, Error.Text)) End ------------------------------------------ Thanks, Martin From roberto.premoli at tiscali.it Mon Sep 25 19:53:04 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Mon, 25 Sep 2023 19:53:04 +0200 Subject: [Gambas-user] =?utf-8?q?How_to_create_an_array_of_checkbox=3F?= Message-ID: Hello,i using checbox, 16 checboxez, form check01 to check16. i manage it individually position, value, text, etc. Now program need to be expandedto 64 (maybe 128 in future) checkbox. To hndle manually is a pain, with high risk to do human misake in copy/paste of code. I need an array like check(index 0 to 63). I know is not possible to do in IDE, but i dont know ho tto do in code. I tied to search in gambaswiki without find so i came here to ask. A little example will be greatly apprecated howto create an array of checkbox. thanks, Roberto -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Sep 25 20:11:39 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 25 Sep 2023 14:11:39 -0400 Subject: [Gambas-user] How to create an array of checkbox? In-Reply-To: References: Message-ID: On 9/25/23 13:53, roberto.premoli at tiscali.it wrote: > Hello,i using checbox, 16 checboxez, form?check01 to?check16. > i manage it individually? position, value, text, etc. > > Now program need to be expandedto 64 (maybe 128 in future) checkbox. > > To hndle manually is a pain, with high risk to do human misake in copy/paste of code. > > I need an array like check(index 0 to 63). > > I know is not possible to do in IDE, but i dont know ho tto do in code. I tied to search in gambaswiki without find so i came > here to ask. > A little example will be greatly apprecated howto create?an array of checkbox. > > thanks, > Roberto Maybe Object[] will do what you need: https://gambaswiki.org/wiki/comp/gb/object[] -- Lee From roberto.premoli at tiscali.it Mon Sep 25 21:17:12 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Mon, 25 Sep 2023 21:17:12 +0200 Subject: [Gambas-user] =?utf-8?q?How_to_create_an_array_of_checkbox=3F?= In-Reply-To: References: Message-ID: <4b9d564818b69294044041aa7ab79b15@tiscali.it> Il 25.09.2023 20:11 T Lee Davidson ha scritto: > On 9/25/23 13:53, roberto.premoli at tiscali.it [1]wrote: > >> Hello,i using checbox, 16 checboxez, form check01 to check16. i >> manage >> it individually position, value, text, etc. Now program need to be >> expandedto 64 (maybe 128 in future) checkbox. To hndle manually is a >> pain, with high risk to do human misake in copy/paste of code. I >> need >> an array like check(index 0 to 63). I know is not possible to do in >> IDE, but i dont know ho tto do in code. I tied to search in >> gambaswiki >> without find so i came here to ask. A little example will be greatly >> apprecated howto create an array of checkbox. thanks, Roberto > > Maybe Object[] will do what you need: > https://gambaswiki.org/wiki/comp/gb/object[] [2] > > -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette [3] ]---- Links: ------ [1] mailto:roberto.premoli at tiscali.it [2] https://gambaswiki.org/wiki/comp/gb/object[] [3] http://gambaswiki.org/wiki/doc/netiquette it works, craete an array of check box. but now how can i interact with that? if i draw a checbbox in code, then i have therlative action (mousedown, etc) that i can fill with my code , bit with this dinamically created objec,s where can i wrote te relative cod tu react to actions on them? From vuott at tutanota.com Mon Sep 25 23:32:16 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Mon, 25 Sep 2023 23:32:16 +0200 (CEST) Subject: [Gambas-user] How to create an array of checkbox? In-Reply-To: <4b9d564818b69294044041aa7ab79b15@tiscali.it> References: <4b9d564818b69294044041aa7ab79b15@tiscali.it> Message-ID: You can also directly use an array of "CheckBox":? ? CheckBox[...] You can also avoid using an array, though: [code] Public Sub Form_Open() ? ? Dim cb As CheckBox ?? ? For b As Byte = 0 To 3 ??? With cb = New CheckBox(Me) As "CheckCheck" ????? .X = (b + 1) * 50 ????? .Y = 100 ????? .W = 20 ????? .H = 10 ????? .Name = "CheckBox n. " & CStr(b) ??? End With ? Next ? End Public Sub CheckCheck_MouseDown() ? ? Print Last.Name ? End?[/code] 25 set 2023, 21:18 da roberto.premoli at tiscali.it: > Il 25.09.2023 20:11 T Lee Davidson ha scritto: > >> On 9/25/23 13:53, roberto.premoli at tiscali.it [1]wrote: >> >>> Hello,i using checbox, 16 checboxez, form check01 to check16. i manage >>> it individually position, value, text, etc. Now program need to be >>> expandedto 64 (maybe 128 in future) checkbox. To hndle manually is a >>> pain, with high risk to do human misake in copy/paste of code. I need >>> an array like check(index 0 to 63). I know is not possible to do in >>> IDE, but i dont know ho tto do in code. I tied to search in gambaswiki >>> without find so i came here to ask. A little example will be greatly >>> apprecated howto create an array of checkbox. thanks, Roberto >>> >> >> Maybe Object[] will do what you need: >> https://gambaswiki.org/wiki/comp/gb/object[] [2] >> >> -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette [3] ]---- >> > > > Links: > ------ > [1] mailto:roberto.premoli at tiscali.it > [2] https://gambaswiki.org/wiki/comp/gb/object[] > [3] http://gambaswiki.org/wiki/doc/netiquette > > > it works, craete an array of check box. but now how can i interact with that? if i draw a checbbox in code, then i have therlative action (mousedown, etc) that i can fill with my code , bit with this dinamically created objec,s where can i wrote te relative cod tu react to actions on them? > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gradobag at gradobag.it Mon Sep 25 23:59:47 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 25 Sep 2023 23:59:47 +0200 Subject: [Gambas-user] How to create an array of checkbox? In-Reply-To: References: <4b9d564818b69294044041aa7ab79b15@tiscali.it> Message-ID: <01d70923-7532-7068-4cd0-081e36c77278@gradobag.it> Il 25/09/23 23:32, vuott--- via User ha scritto: > > You can also directly use an array of "CheckBox":? ? CheckBox[...] > > You can also avoid using an array, though: > > [code] > Public Sub Form_Open() > > ? Dim cb As CheckBox > > ? For b As Byte = 0 To 3 > ??? With cb = New CheckBox(Me) As "CheckCheck" > ????? .X = (b + 1) * 50 > ????? .Y = 100 > ????? .W = 20 > ????? .H = 10 > ????? .Name = "CheckBox n. " & CStr(b) > ??? End With > ? Next > > End > > Public Sub CheckCheck_MouseDown() > > ? Print Last.Name > > End > [/code] > > > > 25 set 2023, 21:18 da roberto.premoli at tiscali.it: > > Il 25.09.2023 20:11 T Lee Davidson ha scritto: > > On 9/25/23 13:53, roberto.premoli at tiscali.it [1]wrote: > > Hello,i using checbox, 16 checboxez, form check01 to > check16. i manage > it individually position, value, text, etc. Now program > need to be > expandedto 64 (maybe 128 in future) checkbox. To hndle > manually is a > pain, with high risk to do human misake in copy/paste of > code. I need > an array like check(index 0 to 63). I know is not possible > to do in > IDE, but i dont know ho tto do in code. I tied to search > in gambaswiki > without find so i came here to ask. A little example will > be greatly > apprecated howto create an array of checkbox. thanks, Roberto > > > Maybe Object[] will do what you need: > https://gambaswiki.org/wiki/comp/gb/object[] [2] > > -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette [3] ]---- > > > > Links: > ------ > [1] mailto:roberto.premoli at tiscali.it > [2] https://gambaswiki.org/wiki/comp/gb/object[] > [3] http://gambaswiki.org/wiki/doc/netiquette > > > it works, craete an array of check box. but now how can i interact > with that? if i draw a checbbox in code, then i have therlative > action (mousedown, etc) that i can fill with my code , bit with > this dinamically created objec,s where can i wrote te relative cod > tu react to actions on them? > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[http://gambaswiki.org/wiki/doc/netiquette ]---- Yes, I agree with vuott and I would write the code as follows: ------------------------------------------- Private hCheck As CheckBox Public Sub Form_Open() ? Dim hScroll As ScrollView ? With Me ??? .Arrangement = Arrange.Fill ??? .W = 200 ??? .h = 500 ? End With ? With hScroll = New ScrollView(Me) ??? .ScrollBar = Scroll.Vertical ??? .Arrangement = Arrange.Vertical ? End With ? For i As Integer = 0 To 63 ??? With hCheck = New CheckBox(hScroll) As "Check" ????? .Name = "CheckBox" & CStr(i + 1) ????? .Text = "CheckBox " & CStr(i + 1) ??? End With ? Next End Public Sub Check_Click() ? Print Last.Name;; Last.value End ------------------------------------------ Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.premoli at tiscali.it Tue Sep 26 00:17:39 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Tue, 26 Sep 2023 00:17:39 +0200 Subject: [Gambas-user] =?utf-8?q?How_to_create_an_array_of_checkbox=3F?= In-Reply-To: References: <4b9d564818b69294044041aa7ab79b15@tiscali.it> Message-ID: <6431275abfc96ef3d9f25fe8f4a0e1f3@tiscali.it> done, but now i have another problem: how can I address the single element of array? for example if i want to chance some value of a precise element of array, for example background, like this: public sub button1_Mousedown() CheckCheck[2].background = 255 end it return me the follow error "unknown identifier: CheckCheck". probably i do wrong sintax but i dont know the right one Il 25.09.2023 23:32 vuott--- via User ha scritto: > You can also directly use an array of "CheckBox": CheckBox[...] > > You can also avoid using an array, though: > [code] > Public Sub Form_Open() > > Dim cb As CheckBox > > For b As Byte = 0 To 3 > With cb = New CheckBox(Me) As "CheckCheck" > .X = (b + 1) * 50 > .Y = 100 > .W = 20 > .H = 10 > .Name = "CheckBox n. " & CStr(b) > End With > Next > > End > Public Sub CheckCheck_MouseDown() > > Print Last.Name > > End > [/code] > 25 set 2023, 21:18 da roberto.premoli at tiscali.it: > >> Il 25.09.2023 20:11 T Lee Davidson ha scritto: >> >>> On 9/25/23 13:53, roberto.premoli at tiscali.it [1]wrote: >>> >>>> Hello,i using checbox, 16 checboxez, form check01 to check16. i manage >>>> it individually position, value, text, etc. Now program need to be >>>> expandedto 64 (maybe 128 in future) checkbox. To hndle manually is a >>>> pain, with high risk to do human misake in copy/paste of code. I need >>>> an array like check(index 0 to 63). I know is not possible to do in >>>> IDE, but i dont know ho tto do in code. I tied to search in gambaswiki >>>> without find so i came here to ask. A little example will be greatly >>>> apprecated howto create an array of checkbox. thanks, Roberto >>> >>> Maybe Object[] will do what you need: >>> https://gambaswiki.org/wiki/comp/gb/object[] [2] >>> -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette [3] ]---- >> >> Links: >> ------ >> [1] mailto:roberto.premoli at tiscali.it >> [2] https://gambaswiki.org/wiki/comp/gb/object[] >> [3] http://gambaswiki.org/wiki/doc/netiquette >> it works, craete an array of check box. but now how can i interact with that? if i draw a checbbox in code, then i have therlative action (mousedown, etc) that i can fill with my code , bit with this dinamically created objec,s where can i wrote te relative cod tu react to actions on them? >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From denisc at exemail.com.au Tue Sep 26 01:10:41 2023 From: denisc at exemail.com.au (Denis Crowther) Date: Tue, 26 Sep 2023 09:10:41 +1000 Subject: [Gambas-user] How to create an array of checkbox? In-Reply-To: <6431275abfc96ef3d9f25fe8f4a0e1f3@tiscali.it> References: <4b9d564818b69294044041aa7ab79b15@tiscali.it> <6431275abfc96ef3d9f25fe8f4a0e1f3@tiscali.it> Message-ID: On 9/26/23 08:17, roberto.premoli at tiscali.it wrote: > for example if i want to chance some value of a precise element of > array, for example background, like this: > > public sub button1_Mousedown() > > ? CheckCheck[2].background = 255 > > end > > > it return me the follow error "unknown identifier: CheckCheck". > probably i do wrong sintax but i dont know the right one > > *** sorry Typo Dim cb As CheckBox cb = CheckCheck[2] ''CheckCheck[2].background = 255 cb.background = 255 -- Regards Denis From denisc at exemail.com.au Tue Sep 26 00:58:02 2023 From: denisc at exemail.com.au (Denis Crowther) Date: Tue, 26 Sep 2023 08:58:02 +1000 Subject: [Gambas-user] How to create an array of checkbox? In-Reply-To: <6431275abfc96ef3d9f25fe8f4a0e1f3@tiscali.it> References: <4b9d564818b69294044041aa7ab79b15@tiscali.it> <6431275abfc96ef3d9f25fe8f4a0e1f3@tiscali.it> Message-ID: On 9/26/23 08:17, roberto.premoli at tiscali.it wrote: > for example if i want to chance some value of a precise element of > array, for example background, like this: > > public sub button1_Mousedown() > > ? CheckCheck[2].background = 255 > > end > > > it return me the follow error "unknown identifier: CheckCheck". > probably i do wrong sintax but i dont know the right one > > Dim cb As CheckBox cb = CheckCheck[2] CheckCheck[2].background = 255 -- Regards Denis From vuott at tutanota.com Tue Sep 26 02:02:40 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Tue, 26 Sep 2023 02:02:40 +0200 (CEST) Subject: [Gambas-user] How to create an array of checkbox? In-Reply-To: <6431275abfc96ef3d9f25fe8f4a0e1f3@tiscali.it> References: <4b9d564818b69294044041aa7ab79b15@tiscali.it> <6431275abfc96ef3d9f25fe8f4a0e1f3@tiscali.it> Message-ID: I did not use an array. With my code you have to identify a feature, more specifically a Property that identifies the graphic Object, whose background color you want to change. Example: [code] Private cb As CheckBox Public Sub Form_Open() ?? ? For b As Byte = 0 To 3 ??? With cb = New CheckBox(Me) As "CheckCheck" ????? .X = (b + 1) * 70 ????? .Y = 100 ????? .W = 50 ????? .H = 10 ????? .Name = "CheckBox n. " & CStr(b) ??? End With ? Next ? End Public Sub CheckCheck_MouseDown() ? ? Print Last.Name ? End Public Sub Button1_Click() ? Dim ob As Object ? For Each ob In Me.Children ' Identify the name of the first "CheckBox" and changes its background color: ??? If ob.Name = "CheckBox n. 0" Then ob.Background = Color.Red ? Next End 26 set 2023, 00:18 da roberto.premoli at tiscali.it: > done, but now i have another problem: how can I address the single element of array? > > for example if i want to chance some value of a precise element of array, for example background, like this: > > public sub button1_Mousedown() > > ? CheckCheck[2].background = 255 > > end > > > > it return me the follow error "unknown identifier: CheckCheck". > probably i do wrong sintax but i dont know the right one > > > > > Il 25.09.2023 23:32 vuott--- via User ha scritto: > > > >> >> You>> >> can>> >> also>> >> directly>> >> use>> >> an>> >> array>> >> of>> ">> CheckBox":? ? CheckBox[...] >> >> >> You can also avoid using an array, though: >> >> [code] >> Public Sub Form_Open() >> ? >> ? Dim cb As CheckBox >> ?? >> ? For b As Byte = 0 To 3 >> ??? With cb = New CheckBox(Me) As "CheckCheck" >> ????? .X = (b + 1) * 50 >> ????? .Y = 100 >> ????? .W = 20 >> ????? .H = 10 >> ????? .Name = "CheckBox n. " & CStr(b) >> ??? End With >> ? Next >> ? >> End >> Public Sub CheckCheck_MouseDown() >> ? >> ? Print Last.Name >> ? >> End? >> [/code] >> 25 set 2023, 21:18 da roberto.premoli at tiscali.it: >> >>> Il 25.09.2023 20:11 T Lee Davidson ha scritto: >>> >>>> On 9/25/23 13:53, roberto.premoli at tiscali.it [1]wrote: >>>> >>>>> Hello,i using checbox, 16 checboxez, form check01 to check16. i manage >>>>> it individually position, value, text, etc. Now program need to be >>>>> expandedto 64 (maybe 128 in future) checkbox. To hndle manually is a >>>>> pain, with high risk to do human misake in copy/paste of code. I need >>>>> an array like check(index 0 to 63). I know is not possible to do in >>>>> IDE, but i dont know ho tto do in code. I tied to search in gambaswiki >>>>> without find so i came here to ask. A little example will be greatly >>>>> apprecated howto create an array of checkbox. thanks, Roberto >>>>> >>>> Maybe Object[] will do what you need: >>>> https://gambaswiki.org/wiki/comp/gb/object[] [2] >>>> -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette [3] ]---- >>>> >>> Links: >>> ------ >>> [1] mailto:roberto.premoli at tiscali.it >>> [2] https://gambaswiki.org/wiki/comp/gb/object[] >>> [3] http://gambaswiki.org/wiki/doc/netiquette >>> it works, craete an array of check box. but now how can i interact with that? if i draw a checbbox in code, then i have therlative action (mousedown, etc) that i can fill with my code , bit with this dinamically created objec,s where can i wrote te relative cod tu react to actions on them? >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Tue Sep 26 02:09:21 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Tue, 26 Sep 2023 02:09:21 +0200 (CEST) Subject: [Gambas-user] How to create an array of checkbox? In-Reply-To: References: <4b9d564818b69294044041aa7ab79b15@tiscali.it> <6431275abfc96ef3d9f25fe8f4a0e1f3@tiscali.it> Message-ID: ...now let's do an analogous example, but with checkbox array: [code] Private ccbb As New CheckBox[4] Public Sub Form_Open() ?? ? For b As Byte = 0 To 3 ??? With ccbb[b] = New CheckBox(Me) As "CheckCheck" ????? .X = (b + 1) * 70 ????? .Y = 100 ????? .W = 50 ????? .H = 10 ????? .Name = "CheckBox n. " & CStr(b) ??? End With ? Next ? End Public Sub CheckCheck_MouseDown() ? ? Print Last.Name ? End Public Sub Button1_Click() ? ccbb[2].Background = Color.Red End [/code] 26 set 2023, 02:03 da user at lists.gambas-basic.org: > > I did not use an array. > > With my code you have to identify a feature, more specifically a Property that identifies the graphic Object, whose background color you want to change. > > Example: > [code] > Private cb As CheckBox > > Public Sub Form_Open() > ?? > ? For b As Byte = 0 To 3 > ??? With cb = New CheckBox(Me) As "CheckCheck" > ????? .X = (b + 1) * 70 > ????? .Y = 100 > ????? .W = 50 > ????? .H = 10 > ????? .Name = "CheckBox n. " & CStr(b) > ??? End With > ? Next > ? > End > > Public Sub CheckCheck_MouseDown() > ? > ? Print Last.Name > ? > End > > Public Sub Button1_Click() > > ? Dim ob As Object > > ? For Each ob In Me.Children > ' Identify the name of the first "CheckBox" and changes its background color: > ??? If ob.Name = "CheckBox n. 0" Then ob.Background = Color.Red > ? Next > > End > > > > 26 set 2023, 00:18 da roberto.premoli at tiscali.it: > >> done, but now i have another problem: how can I address the single element of array? >> >> for example if i want to chance some value of a precise element of array, for example background, like this: >> >> public sub button1_Mousedown() >> >> ? CheckCheck[2].background = 255 >> >> end >> >> >> >> >> it return me the follow error "unknown identifier: CheckCheck". >> probably i do wrong sintax but i dont know the right one >> >> >> >> >> Il 25.09.2023 23:32 vuott--- via User ha scritto: >> >> >> >> >>> >>> You>>> >>> can>>> >>> also>>> >>> directly>>> >>> use>>> >>> an>>> >>> array>>> >>> of>>> ">>> CheckBox":? ? CheckBox[...] >>> >>> >>> You can also avoid using an array, though: >>> >>> [code] >>> Public Sub Form_Open() >>> ? >>> ? Dim cb As CheckBox >>> ?? >>> ? For b As Byte = 0 To 3 >>> ??? With cb = New CheckBox(Me) As "CheckCheck" >>> ????? .X = (b + 1) * 50 >>> ????? .Y = 100 >>> ????? .W = 20 >>> ????? .H = 10 >>> ????? .Name = "CheckBox n. " & CStr(b) >>> ??? End With >>> ? Next >>> ? >>> End >>> Public Sub CheckCheck_MouseDown() >>> ? >>> ? Print Last.Name >>> ? >>> End? >>> [/code] >>> 25 set 2023, 21:18 da roberto.premoli at tiscali.it: >>> >>>> Il 25.09.2023 20:11 T Lee Davidson ha scritto: >>>> >>>>> On 9/25/23 13:53, roberto.premoli at tiscali.it [1]wrote: >>>>> >>>>>> Hello,i using checbox, 16 checboxez, form check01 to check16. i manage >>>>>> it individually position, value, text, etc. Now program need to be >>>>>> expandedto 64 (maybe 128 in future) checkbox. To hndle manually is a >>>>>> pain, with high risk to do human misake in copy/paste of code. I need >>>>>> an array like check(index 0 to 63). I know is not possible to do in >>>>>> IDE, but i dont know ho tto do in code. I tied to search in gambaswiki >>>>>> without find so i came here to ask. A little example will be greatly >>>>>> apprecated howto create an array of checkbox. thanks, Roberto >>>>>> >>>>> Maybe Object[] will do what you need: >>>>> https://gambaswiki.org/wiki/comp/gb/object[] [2] >>>>> -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette [3] ]---- >>>>> >>>> Links: >>>> ------ >>>> [1] mailto:roberto.premoli at tiscali.it >>>> [2] https://gambaswiki.org/wiki/comp/gb/object[] >>>> [3] http://gambaswiki.org/wiki/doc/netiquette >>>> it works, craete an array of check box. but now how can i interact with that? if i draw a checbbox in code, then i have therlative action (mousedown, etc) that i can fill with my code , bit with this dinamically created objec,s where can i wrote te relative cod tu react to actions on them? >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.premoli at tiscali.it Tue Sep 26 08:15:15 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Tue, 26 Sep 2023 08:15:15 +0200 Subject: [Gambas-user] =?utf-8?q?How_to_create_an_array_of_checkbox=3F?= In-Reply-To: References: <4b9d564818b69294044041aa7ab79b15@tiscali.it> <6431275abfc96ef3d9f25fe8f4a0e1f3@tiscali.it> Message-ID: <977e066d020ebbd7dd809203681eba1b@tiscali.it> AND HERE WE ARE! this is exactly was I was looking for! thank you and to all who helped me. JUST LAST QUESTION: this code create the array and wrote them into the main window, the Form. In my actual code the list of single checkbox are inside a panel (so if i move the panel, i move all the object inside and make it more easy for me to arrange his position around the main window, the Form). So, it is possible to create those ccbb[index] inside Panel1 and if yes, how? Il 26.09.2023 02:09 vuott--- via User ha scritto: > ...now let's do an analogous example, but with checkbox array: > [code] > Private ccbb As New CheckBox[4] > Public Sub Form_Open() > > For b As Byte = 0 To 3 > With ccbb[b] = New CheckBox(Me) As "CheckCheck" > .X = (b + 1) * 70 > .Y = 100 > .W = 50 > .H = 10 > .Name = "CheckBox n. " & CStr(b) > End With > Next > > End > Public Sub CheckCheck_MouseDown() > > Print Last.Name > > End > Public Sub Button1_Click() > ccbb[2].Background = Color.Red > End > [/code] > 26 set 2023, 02:03 da user at lists.gambas-basic.org: > >> I did not use an array. >> With my code you have to identify a feature, more specifically a Property that identifies the graphic Object, whose background color you want to change. >> Example: >> [code] >> Private cb As CheckBox >> Public Sub Form_Open() >> >> For b As Byte = 0 To 3 >> With cb = New CheckBox(Me) As "CheckCheck" >> .X = (b + 1) * 70 >> .Y = 100 >> .W = 50 >> .H = 10 >> .Name = "CheckBox n. " & CStr(b) >> End With >> Next >> >> End >> Public Sub CheckCheck_MouseDown() >> >> Print Last.Name >> >> End >> Public Sub Button1_Click() >> Dim ob As Object >> For Each ob In Me.Children >> ' Identify the name of the first "CheckBox" and changes its background color: >> If ob.Name = "CheckBox n. 0" Then ob.Background = Color.Red >> Next >> End >> 26 set 2023, 00:18 da roberto.premoli at tiscali.it: >> >>> done, but now i have another problem: how can I address the single element of array? >>> for example if i want to chance some value of a precise element of array, for example background, like this: >>> public sub button1_Mousedown() >>> CheckCheck[2].background = 255 >>> end >>> >>> it return me the follow error "unknown identifier: CheckCheck". >>> probably i do wrong sintax but i dont know the right one >>> Il 25.09.2023 23:32 vuott--- via User ha scritto: >>> >>>> You can also directly use an array of "CheckBox": CheckBox[...] >>>> >>>> You can also avoid using an array, though: >>>> [code] >>>> Public Sub Form_Open() >>>> >>>> Dim cb As CheckBox >>>> >>>> For b As Byte = 0 To 3 >>>> With cb = New CheckBox(Me) As "CheckCheck" >>>> .X = (b + 1) * 50 >>>> .Y = 100 >>>> .W = 20 >>>> .H = 10 >>>> .Name = "CheckBox n. " & CStr(b) >>>> End With >>>> Next >>>> >>>> End >>>> Public Sub CheckCheck_MouseDown() >>>> >>>> Print Last.Name >>>> >>>> End >>>> [/code] >>>> 25 set 2023, 21:18 da roberto.premoli at tiscali.it: >>>> >>>>> Il 25.09.2023 20:11 T Lee Davidson ha scritto: >>>>> >>>>>> On 9/25/23 13:53, roberto.premoli at tiscali.it [1]wrote: >>>>>> >>>>>>> Hello,i using checbox, 16 checboxez, form check01 to check16. i manage >>>>>>> it individually position, value, text, etc. Now program need to be >>>>>>> expandedto 64 (maybe 128 in future) checkbox. To hndle manually is a >>>>>>> pain, with high risk to do human misake in copy/paste of code. I need >>>>>>> an array like check(index 0 to 63). I know is not possible to do in >>>>>>> IDE, but i dont know ho tto do in code. I tied to search in gambaswiki >>>>>>> without find so i came here to ask. A little example will be greatly >>>>>>> apprecated howto create an array of checkbox. thanks, Roberto >>>>>> >>>>>> Maybe Object[] will do what you need: >>>>>> https://gambaswiki.org/wiki/comp/gb/object[] [2] >>>>>> -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette [3] ]---- >>>>> >>>>> Links: >>>>> ------ >>>>> [1] mailto:roberto.premoli at tiscali.it >>>>> [2] https://gambaswiki.org/wiki/comp/gb/object[] >>>>> [3] http://gambaswiki.org/wiki/doc/netiquette >>>>> it works, craete an array of check box. but now how can i interact with that? if i draw a checbbox in code, then i have therlative action (mousedown, etc) that i can fill with my code , bit with this dinamically created objec,s where can i wrote te relative cod tu react to actions on them? >>>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Tue Sep 26 08:37:25 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Tue, 26 Sep 2023 08:37:25 +0200 (CEST) Subject: [Gambas-user] How to create an array of checkbox? In-Reply-To: <977e066d020ebbd7dd809203681eba1b@tiscali.it> References: <4b9d564818b69294044041aa7ab79b15@tiscali.it> <6431275abfc96ef3d9f25fe8f4a0e1f3@tiscali.it> <977e066d020ebbd7dd809203681eba1b@tiscali.it> Message-ID: Robe'... you have to make them "Children" of the "Panel": ?? With ccbb[b] = New CheckBox(Panel1) As "CheckCheck" 26 set 2023, 08:15 da roberto.premoli at tiscali.it: > AND HERE WE ARE! > this is exactly was I was looking for! thank you and to all who helped me. > JUST LAST QUESTION: this code create the array and wrote them into the main window, the Form. > In my actual code the list of single checkbox are inside a panel (so if i move the panel, i move all the object inside and make it more easy for me to arrange his position around the main window, the Form). > So, it is possible to create those ccbb[index] inside Panel1 and if yes, how? > > > Il 26.09.2023 02:09 vuott--- via User ha scritto: > > >> ...now let's do an analogous example, but with checkbox array: >> [code] >> Private ccbb As New CheckBox[4] >> Public Sub Form_Open() >> ?? >> ? For b As Byte = 0 To 3 >> ??? With ccbb[b] = New CheckBox(Me) As "CheckCheck" >> ????? .X = (b + 1) * 70 >> ????? .Y = 100 >> ????? .W = 50 >> ????? .H = 10 >> ????? .Name = "CheckBox n. " & CStr(b) >> ??? End With >> ? Next >> ? >> End >> Public Sub CheckCheck_MouseDown() >> ? >> ? Print Last.Name >> ? >> End >> Public Sub Button1_Click() >> ? ccbb[2].Background = Color.Red >> End >> [/code] >> 26 set 2023, 02:03 da user at lists.gambas-basic.org: >> >>> >>> I did not use an array. >>> >>> With my code you have to identify a feature, more specifically a Property that identifies the graphic Object, whose background color you want to change. >>> Example: >>> [code] >>> Private cb As CheckBox >>> Public Sub Form_Open() >>> ?? >>> ? For b As Byte = 0 To 3 >>> ??? With cb = New CheckBox(Me) As "CheckCheck" >>> ????? .X = (b + 1) * 70 >>> ????? .Y = 100 >>> ????? .W = 50 >>> ????? .H = 10 >>> ????? .Name = "CheckBox n. " & CStr(b) >>> ??? End With >>> ? Next >>> ? >>> End >>> Public Sub CheckCheck_MouseDown() >>> ? >>> ? Print Last.Name >>> ? >>> End >>> Public Sub Button1_Click() >>> ? Dim ob As Object >>> ? For Each ob In Me.Children >>> ' Identify the name of the first "CheckBox" and changes its background color: >>> ??? If ob.Name = "CheckBox n. 0" Then ob.Background = Color.Red >>> ? Next >>> End >>> 26 set 2023, 00:18 da roberto.premoli at tiscali.it: >>> >>>> done, but now i have another problem: how can I address the single element of array? >>>> for example if i want to chance some value of a precise element of array, for example background, like this: >>>> public sub button1_Mousedown() >>>> ? CheckCheck[2].background = 255 >>>> end >>>> >>>> ? >>>> >>>> it return me the follow error "unknown identifier: CheckCheck". >>>> probably i do wrong sintax but i dont know the right one >>>> Il 25.09.2023 23:32 vuott--- via User ha scritto: >>>> >>>> ? >>>> >>>> >>>>> >>>>> You>>>>> >>>>> can>>>>> >>>>> also>>>>> >>>>> directly>>>>> >>>>> use>>>>> >>>>> an>>>>> >>>>> array>>>>> >>>>> of>>>>> ">>>>> CheckBox":? ? CheckBox[...] >>>>> >>>>> >>>>> You can also avoid using an array, though: >>>>> >>>>> [code] >>>>> Public Sub Form_Open() >>>>> ? >>>>> ? Dim cb As CheckBox >>>>> ?? >>>>> ? For b As Byte = 0 To 3 >>>>> ??? With cb = New CheckBox(Me) As "CheckCheck" >>>>> ????? .X = (b + 1) * 50 >>>>> ????? .Y = 100 >>>>> ????? .W = 20 >>>>> ????? .H = 10 >>>>> ????? .Name = "CheckBox n. " & CStr(b) >>>>> ??? End With >>>>> ? Next >>>>> ? >>>>> End >>>>> Public Sub CheckCheck_MouseDown() >>>>> ? >>>>> ? Print Last.Name >>>>> ? >>>>> End? >>>>> [/code] >>>>> 25 set 2023, 21:18 da roberto.premoli at tiscali.it: >>>>> >>>>>> Il 25.09.2023 20:11 T Lee Davidson ha scritto: >>>>>> >>>>>>> On 9/25/23 13:53, roberto.premoli at tiscali.it [1]wrote: >>>>>>> >>>>>>>> Hello,i using checbox, 16 checboxez, form check01 to check16. i manage >>>>>>>> it individually position, value, text, etc. Now program need to be >>>>>>>> expandedto 64 (maybe 128 in future) checkbox. To hndle manually is a >>>>>>>> pain, with high risk to do human misake in copy/paste of code. I need >>>>>>>> an array like check(index 0 to 63). I know is not possible to do in >>>>>>>> IDE, but i dont know ho tto do in code. I tied to search in gambaswiki >>>>>>>> without find so i came here to ask. A little example will be greatly >>>>>>>> apprecated howto create an array of checkbox. thanks, Roberto >>>>>>>> >>>>>>> Maybe Object[] will do what you need: >>>>>>> https://gambaswiki.org/wiki/comp/gb/object[] [2] >>>>>>> -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette [3] ]---- >>>>>>> >>>>>> Links: >>>>>> ------ >>>>>> [1] mailto:roberto.premoli at tiscali.it >>>>>> [2] https://gambaswiki.org/wiki/comp/gb/object[] >>>>>> [3] http://gambaswiki.org/wiki/doc/netiquette >>>>>> it works, craete an array of check box. but now how can i interact with that? if i draw a checbbox in code, then i have therlative action (mousedown, etc) that i can fill with my code , bit with this dinamically created objec,s where can i wrote te relative cod tu react to actions on them? >>>>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>>>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.premoli at tiscali.it Tue Sep 26 10:15:52 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Tue, 26 Sep 2023 10:15:52 +0200 Subject: [Gambas-user] =?utf-8?q?How_to_create_an_array_of_checkbox=3F?= In-Reply-To: References: <4b9d564818b69294044041aa7ab79b15@tiscali.it> <6431275abfc96ef3d9f25fe8f4a0e1f3@tiscali.it> <977e066d020ebbd7dd809203681eba1b@tiscali.it> Message-ID: <4ad4e7aca9e3b9bf49e44b93a3e8723e@tiscali.it> none, thank you. (ma se dici "robe' " allora ti posso rispondere: fatto, grazie :-) ) Il 26.09.2023 08:37 vuott--- via User ha scritto: > Robe'... you have to make them "Children" of the "Panel": > With ccbb[b] = New CheckBox(Panel1) As "CheckCheck" > 26 set 2023, 08:15 da roberto.premoli at tiscali.it: > >> AND HERE WE ARE! >> this is exactly was I was looking for! thank you and to all who helped me. >> JUST LAST QUESTION: this code create the array and wrote them into the main window, the Form. >> In my actual code the list of single checkbox are inside a panel (so if i move the panel, i move all the object inside and make it more easy for me to arrange his position around the main window, the Form). >> So, it is possible to create those ccbb[index] inside Panel1 and if yes, how? >> >> Il 26.09.2023 02:09 vuott--- via User ha scritto: >> >>> ...now let's do an analogous example, but with checkbox array: >>> [code] >>> Private ccbb As New CheckBox[4] >>> Public Sub Form_Open() >>> >>> For b As Byte = 0 To 3 >>> With ccbb[b] = New CheckBox(Me) As "CheckCheck" >>> .X = (b + 1) * 70 >>> .Y = 100 >>> .W = 50 >>> .H = 10 >>> .Name = "CheckBox n. " & CStr(b) >>> End With >>> Next >>> >>> End >>> Public Sub CheckCheck_MouseDown() >>> >>> Print Last.Name >>> >>> End >>> Public Sub Button1_Click() >>> ccbb[2].Background = Color.Red >>> End >>> [/code] >>> 26 set 2023, 02:03 da user at lists.gambas-basic.org: >>> >>>> I did not use an array. >>>> With my code you have to identify a feature, more specifically a Property that identifies the graphic Object, whose background color you want to change. >>>> Example: >>>> [code] >>>> Private cb As CheckBox >>>> Public Sub Form_Open() >>>> >>>> For b As Byte = 0 To 3 >>>> With cb = New CheckBox(Me) As "CheckCheck" >>>> .X = (b + 1) * 70 >>>> .Y = 100 >>>> .W = 50 >>>> .H = 10 >>>> .Name = "CheckBox n. " & CStr(b) >>>> End With >>>> Next >>>> >>>> End >>>> Public Sub CheckCheck_MouseDown() >>>> >>>> Print Last.Name >>>> >>>> End >>>> Public Sub Button1_Click() >>>> Dim ob As Object >>>> For Each ob In Me.Children >>>> ' Identify the name of the first "CheckBox" and changes its background color: >>>> If ob.Name = "CheckBox n. 0" Then ob.Background = Color.Red >>>> Next >>>> End >>>> 26 set 2023, 00:18 da roberto.premoli at tiscali.it: >>>> >>>>> done, but now i have another problem: how can I address the single element of array? >>>>> for example if i want to chance some value of a precise element of array, for example background, like this: >>>>> public sub button1_Mousedown() >>>>> CheckCheck[2].background = 255 >>>>> end >>>>> >>>>> it return me the follow error "unknown identifier: CheckCheck". >>>>> probably i do wrong sintax but i dont know the right one >>>>> Il 25.09.2023 23:32 vuott--- via User ha scritto: >>>>> >>>>>> You can also directly use an array of "CheckBox": CheckBox[...] >>>>>> >>>>>> You can also avoid using an array, though: >>>>>> [code] >>>>>> Public Sub Form_Open() >>>>>> >>>>>> Dim cb As CheckBox >>>>>> >>>>>> For b As Byte = 0 To 3 >>>>>> With cb = New CheckBox(Me) As "CheckCheck" >>>>>> .X = (b + 1) * 50 >>>>>> .Y = 100 >>>>>> .W = 20 >>>>>> .H = 10 >>>>>> .Name = "CheckBox n. " & CStr(b) >>>>>> End With >>>>>> Next >>>>>> >>>>>> End >>>>>> Public Sub CheckCheck_MouseDown() >>>>>> >>>>>> Print Last.Name >>>>>> >>>>>> End >>>>>> [/code] >>>>>> 25 set 2023, 21:18 da roberto.premoli at tiscali.it: >>>>>> >>>>>>> Il 25.09.2023 20:11 T Lee Davidson ha scritto: >>>>>>> >>>>>>>> On 9/25/23 13:53, roberto.premoli at tiscali.it [1]wrote: >>>>>>>> >>>>>>>>> Hello,i using checbox, 16 checboxez, form check01 to check16. i manage >>>>>>>>> it individually position, value, text, etc. Now program need to be >>>>>>>>> expandedto 64 (maybe 128 in future) checkbox. To hndle manually is a >>>>>>>>> pain, with high risk to do human misake in copy/paste of code. I need >>>>>>>>> an array like check(index 0 to 63). I know is not possible to do in >>>>>>>>> IDE, but i dont know ho tto do in code. I tied to search in gambaswiki >>>>>>>>> without find so i came here to ask. A little example will be greatly >>>>>>>>> apprecated howto create an array of checkbox. thanks, Roberto >>>>>>>> >>>>>>>> Maybe Object[] will do what you need: >>>>>>>> https://gambaswiki.org/wiki/comp/gb/object[] [2] >>>>>>>> -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette [3] ]---- >>>>>>> >>>>>>> Links: >>>>>>> ------ >>>>>>> [1] mailto:roberto.premoli at tiscali.it >>>>>>> [2] https://gambaswiki.org/wiki/comp/gb/object[] >>>>>>> [3] http://gambaswiki.org/wiki/doc/netiquette >>>>>>> it works, craete an array of check box. but now how can i interact with that? if i draw a checbbox in code, then i have therlative action (mousedown, etc) that i can fill with my code , bit with this dinamically created objec,s where can i wrote te relative cod tu react to actions on them? >>>>>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Tue Sep 26 19:22:31 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 26 Sep 2023 20:22:31 +0300 Subject: [Gambas-user] gb.web Request.Path Message-ID: <20230926171418.M29395@455.co.il> Hello Should Request.Path perform an action when you put a value in it? For example: In the browser I write: http://127.0.0.1/cgi-bin/wp1.gambas/ Then inside the code in the MAIN() procedure I am writing: Request.Path="/Webpage1" Should this change the text in the browser to http://127.0.0.1/cgi-bin/wp1.gambas/Webpage1 Thanks From benoit.minisini at gambas-basic.org Tue Sep 26 20:04:03 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Tue, 26 Sep 2023 20:04:03 +0200 Subject: [Gambas-user] gb.web Request.Path In-Reply-To: <20230926171418.M29395@455.co.il> References: <20230926171418.M29395@455.co.il> Message-ID: Le 26/09/2023 ? 19:22, Mayost Sharon a ?crit?: > Hello > > Should Request.Path perform an action when you put a value in it? > > For example: > In the browser I write: > http://127.0.0.1/cgi-bin/wp1.gambas/ > > Then inside the code in the MAIN() procedure > I am writing: > Request.Path="/Webpage1" > Should this change the text in the browser to > http://127.0.0.1/cgi-bin/wp1.gambas/Webpage1 > > Thanks > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Of course not. Request.Path is a server thing (it's stored in the memory of the server), not a client thing. You must learn the HTTP protocol if you want to correctly deal with web applications. The URL displayed by the browser is controled by the browser. You can change it indirectly by using javascript in the browser. If you want the server to ask the browser to move to another URL, you must use an "HTTP redirection", which has its own rules. See the Response.Redirect() method. Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Tue Sep 26 20:23:29 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 26 Sep 2023 14:23:29 -0400 Subject: [Gambas-user] Grouped control's events are overshadowed by the Group events Message-ID: In a project I have some ValueBoxes that I have grouped so that I can perform the same action on any one of them for the same event. But, I want only one of them to do something different for a different event. However, the individual control's event handlers are not triggered when an event handler for the group exists. Is this by design, or a bug? Small demo project attached. -- Lee -------------- next part -------------- H4sIAAAAAAAAA+19CTzUW///F2MfEbJkGxIqy+xmsowloQgttuxjso89ihiEUCgtsqSIFkW27NkJ SZIoyZalJFuy8/+q+9xb3e5zu8/T0/0/z8/7ZV4zzvme7znne87n8/58zjmfGWkZXUtvDZKlNcnN XWY/yd1D3c3SxdaOaOkI/DDAQWDR6I/vIL5+hyNQSACBxsDRWAQWi8ECcARSFosCYN4/rgl/DE93 D0s3sCk/o67/D4GCw5w87JxICggsHiOLQWDwOGlwQMCBwGHQTGCu5ee5KDheGolC4WXxWARmNZf4 x2X/7p6t4XvwhcjL/GfqWJVxWQxm9R0hi/kk94jf9MFHXfCl/KPhSCQAw/xnmvMl/iH/nu4kt39+ Hagh/0n+18rtvwRfjv9nXCBtR3QmS7uQbf79Ov5c//82/ggscnX80XDMmv7/GUDiv9T/SBxSGo7C YED9jvmd+l/NBAUZg8BjZTFMYFHiHxb9u/u1hu/Dl/L/A4X+M3wm/9/Q/0gsEiX7lfxjMGg4APsp Mvl/XP+H6e5RZ2HauCqvLJoaO/YCABWw+mKgA99M3K4fAt967VRVdd33qqsAAM85ooWFfBMA0VoH hRYe2aym/G4P0/rTekxQDRiisIBCJWthbTF7mGUHEm7ylEXScqAuhYuvR5LamOEqAcjS2B7bdJ/a Sly5gx12+IimMmP0bRorcW7OgA4lbtQ4ZzAET/NMUemuynZ2OcawxDPGCVDrIeDZBEPZQLONxZ3Z yvJy+fXC59GnAix95GiCqgWOxzao0NEt69OFOF1Yb5W0VLFM4pTbf8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6mT618rsdLOD7fJ0hMFl v7/MPk8ybI/z4V/qQf5JGSz6XyojBfqedh52lo4wN9DVtHQHHeC/e1R+Hv7J+Z9Px3x/QB3fx/9f 7P+jwew1/v8J+Ob67+cnfL5c/0XhpOFoNFYWgfnK//t92b+7Z2v4Hny9/vvDhP4zfJR/7B/zPwKB +t3+DwK9xv8/A5+COL4R5bHpi5nBBGf6Byv/GsnxS/zGP6I21gT+vxF/zP/Wdm4kooez25F/u44/ 5//f/f4nVha7xv8/A3/99z+RshgkOGLotd///F/AV/z/44T+M/yZ/w9HI76SfywcgVzj/5+Bgzs+ ecMwNbKH2xHTT+Gc0r/9EOyaIP9v44/53+bjuYAfUcf38T8aZA7QFUBjPu7/ItFr/P8z8Jn/j8OD bj0KjpDGgQOCweHhsr87//Vx/xeFgaOQWOQX/P9x+V8WLY1CIvEoNHZt9f+/BV/x/yeh/3v2fz+T fwxqdf9vbf/3P48/1v+gAUAm/ZDvAPi+9V80FoNEYhHwT9//hFpb//0p+Hz9dzWMH776HT54pKws Fg3Hfjv+H4+Ho9CyCNRa/P//AL7S/78J/Q/kgO/U/5/JPxa5av+t6f//PP54/D8/A/RrKuJfoYU/ 1/+IL8cfiUCh1+L/fwr+uf7/pv2PAPU/CoNZU///C/hj+f83hf4z/Nn6Hwr7lf4HtT92bf/vp+DX +M/fhvu3KNCDvyWaMu0/4kJSEHE64u7qKMKka+lhqyAiLSPCtMdZ19Ld3cvZzVphp6WjO4lpL8mJ 5GRFcvsqWdOG7OxGUrW1dHMnefyStsPO3cXR8og2ycPS2tLD8qsb7Cc5gbkepH9cDF4BNhRsgx35 sLMdkQRmkkki4OWunuAkdlc4KCJiyqTh7O6hIOLoDM5mW/CjCNMBcNwURNyJbnYu4H9ramkNa1jD GtawhjWsYQ3/p/H/ALtYUY4AoAAA From benoit.minisini at gambas-basic.org Tue Sep 26 20:31:01 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Tue, 26 Sep 2023 20:31:01 +0200 Subject: [Gambas-user] Grouped control's events are overshadowed by the Group events In-Reply-To: References: Message-ID: Le 26/09/2023 ? 20:23, T Lee Davidson a ?crit?: > In a project I have some ValueBoxes that I have grouped so that I can > perform the same action on any one of them for the same event. But, I > want only one of them to do something different for a different event. > > However, the individual control's event handlers are not triggered when > an event handler for the group exists. > > Is this by design, or a bug? > > Small demo project attached. > This is by design. There is no "individual" or "group" event handlers. Each object has its own event handlers, all using the same prefix. It's just that two different objects can use the same prefix (I named these prefix "event names", not a beautiful choice). Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Tue Sep 26 20:41:35 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 26 Sep 2023 14:41:35 -0400 Subject: [Gambas-user] Grouped control's events are overshadowed by the Group events In-Reply-To: References: Message-ID: <506b5db0-9b58-409c-b8a8-d44f21762777@gmail.com> On 9/26/23 14:31, Beno?t Minisini wrote: > Le 26/09/2023 ? 20:23, T Lee Davidson a ?crit?: >> In a project I have some ValueBoxes that I have grouped so that I can perform the same action on any one of them for the same >> event. But, I want only one of them to do something different for a different event. >> >> However, the individual control's event handlers are not triggered when an event handler for the group exists. >> >> Is this by design, or a bug? >> >> Small demo project attached. >> > > This is by design. There is no "individual" or "group" event handlers. Each object has its own event handlers, all using the > same prefix. It's just that two different objects can use the same prefix (I named these prefix "event names", not a beautiful > choice). I'm not sure I quite understand what you mean by the "prefix". What I think you mean is that if objects are grouped, then they would all use the same prefix in the event handler name. But, regardless if I am understanding that correctly, if the behavior is by design, then I would need to create an event handler for the group and test Last.Name to determine whether or not to take action. -- Lee From benoit.minisini at gambas-basic.org Tue Sep 26 20:44:52 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Tue, 26 Sep 2023 20:44:52 +0200 Subject: [Gambas-user] Grouped control's events are overshadowed by the Group events In-Reply-To: <506b5db0-9b58-409c-b8a8-d44f21762777@gmail.com> References: <506b5db0-9b58-409c-b8a8-d44f21762777@gmail.com> Message-ID: <5d108399-1714-4b7a-8778-f8fe0e6906d2@gambas-basic.org> Le 26/09/2023 ? 20:41, T Lee Davidson a ?crit?: > On 9/26/23 14:31, Beno?t Minisini wrote: >> Le 26/09/2023 ? 20:23, T Lee Davidson a ?crit?: >>> In a project I have some ValueBoxes that I have grouped so that I can >>> perform the same action on any one of them for the same event. But, I >>> want only one of them to do something different for a different event. >>> >>> However, the individual control's event handlers are not triggered >>> when an event handler for the group exists. >>> >>> Is this by design, or a bug? >>> >>> Small demo project attached. >>> >> >> This is by design. There is no "individual" or "group" event handlers. >> Each object has its own event handlers, all using the same prefix. >> It's just that two different objects can use the same prefix (I named >> these prefix "event names", not a beautiful choice). > > I'm not sure I quite understand what you mean by the "prefix". What I > think you mean is that if objects are grouped, then they would all use > the same prefix in the event handler name. > > But, regardless if I am understanding that correctly, if the behavior is > by design, then I would need to create an event handler for the group > and test Last.Name to determine whether or not to take action. > You can do that, or you can use Object.Attach() to reattach the specific control with a specific prefix. Regards, -- Beno?t Minisini. From claus.dietrich at freenet.de Tue Sep 26 20:50:01 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Tue, 26 Sep 2023 20:50:01 +0200 Subject: [Gambas-user] Desktop.SendMail method broken on the master? Message-ID: Hi The Desktop.SendMail method seems to be broken on the latest ppa master. I tested it on my Linux Mint 20.3 Mate and Linux Mint 21.2 Cinnamon VMs. On my physical machine it works as it should with the new stable V3.18.4. A minimum demo app is attached which I used for testing. Best regards Claus -------------- next part -------------- A non-text attachment was scrubbed... Name: Sendmail_Bug_Demo-0.0.1.tar.gz Type: application/gzip Size: 34856 bytes Desc: not available URL: From t.lee.davidson at gmail.com Tue Sep 26 21:04:37 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 26 Sep 2023 15:04:37 -0400 Subject: [Gambas-user] Grouped control's events are overshadowed by the Group events In-Reply-To: <5d108399-1714-4b7a-8778-f8fe0e6906d2@gambas-basic.org> References: <506b5db0-9b58-409c-b8a8-d44f21762777@gmail.com> <5d108399-1714-4b7a-8778-f8fe0e6906d2@gambas-basic.org> Message-ID: <0bc5688b-18f8-4879-aa1e-0540eda3666a@gmail.com> On 9/26/23 14:44, Beno?t Minisini wrote: > Le 26/09/2023 ? 20:41, T Lee Davidson a ?crit?: >> On 9/26/23 14:31, Beno?t Minisini wrote: >>> Le 26/09/2023 ? 20:23, T Lee Davidson a ?crit?: >>>> In a project I have some ValueBoxes that I have grouped so that I can perform the same action on any one of them for the >>>> same event. But, I want only one of them to do something different for a different event. >>>> >>>> However, the individual control's event handlers are not triggered when an event handler for the group exists. >>>> >>>> Is this by design, or a bug? >>>> >>>> Small demo project attached. >>>> >>> >>> This is by design. There is no "individual" or "group" event handlers. Each object has its own event handlers, all using the >>> same prefix. It's just that two different objects can use the same prefix (I named these prefix "event names", not a >>> beautiful choice). >> >> I'm not sure I quite understand what you mean by the "prefix". What I think you mean is that if objects are grouped, then they >> would all use the same prefix in the event handler name. >> >> But, regardless if I am understanding that correctly, if the behavior is by design, then I would need to create an event >> handler for the group and test Last.Name to determine whether or not to take action. >> > > You can do that, or you can use Object.Attach() to reattach the specific control with a specific prefix. Using Object.Attach() effectively removes that control from the group I had it in. Which is not what I want. Regardless, I think I now understand that an object can use only one prefix (for its event handler name), and adding a Group property essentially overrides the prefix based on its name. So, I can either test its name in the shared prefix event handler, or remove it from the group and let it have its own event handlers. -- Lee From brian at westwoodsvcs.com Tue Sep 26 21:26:17 2023 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 26 Sep 2023 12:26:17 -0700 Subject: [Gambas-user] Many Java Script messages when displaying html in webview Message-ID: <37f391bc-832c-0886-b1b6-96e1a55c6149@westwoodsvcs.com> When I am displaying a webview with a url being displayed I start to get a lot of js messages sent to the std out it is a problem for my app. Is there some way to suppress the js output from the webview component ? See attached image as an example. -- ~~~~ Brian G -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot at 2023-09-26 12-21-50.png Type: image/png Size: 264129 bytes Desc: not available URL: From t.lee.davidson at gmail.com Tue Sep 26 21:40:31 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 26 Sep 2023 15:40:31 -0400 Subject: [Gambas-user] Desktop.SendMail method broken on the master? In-Reply-To: References: Message-ID: On 9/26/23 14:50, Claus Dietrich wrote: > Hi > > The Desktop.SendMail method seems to be broken on the latest ppa master. > > I tested it on my Linux Mint 20.3 Mate and Linux Mint 21.2 Cinnamon VMs. > > On my physical machine it works as it should with the new stable V3.18.4. > > A minimum demo app is attached which I used for testing. > > Best regards > > Claus It works as expected on Debian 12 in a VM on Master which I just pulled and recompiled. -- Lee From claus.dietrich at freenet.de Tue Sep 26 23:16:22 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Tue, 26 Sep 2023 23:16:22 +0200 Subject: [Gambas-user] Desktop.SendMail method broken on the master? In-Reply-To: References: Message-ID: <8baf2dcb-eed1-107f-ca31-bdb0a67b35fc@freenet.de> Hi Many thanks for your test. Compared with the stable version the master provides following additional output when I launch the compiled app in the console: gbx3 [6433]: warning: circular references detected: gbx3 [6433]: warning: 6 allocation(s) non freed. Internally Gambas seems to use the xdg-email tool. Other than the Desktop.Sendmail method the shell command |xdg-email --attach scanner.png| works fine on my VMs with the Gambas master. Regards Claus Am 26.09.23 um 21:40 schrieb T Lee Davidson: > On 9/26/23 14:50, Claus Dietrich wrote: >> Hi >> >> The Desktop.SendMail method seems to be broken on the latest ppa master. >> >> I tested it on my Linux Mint 20.3 Mate and Linux Mint 21.2 Cinnamon VMs. >> >> On my physical machine it works as it should with the new stable >> V3.18.4. >> >> A minimum demo app is attached which I used for testing. >> >> Best regards >> >> Claus > > It works as expected on Debian 12 in a VM on Master which I just > pulled and recompiled. > > From t.lee.davidson at gmail.com Tue Sep 26 23:35:47 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 26 Sep 2023 17:35:47 -0400 Subject: [Gambas-user] Desktop.SendMail method broken on the master? In-Reply-To: <8baf2dcb-eed1-107f-ca31-bdb0a67b35fc@freenet.de> References: <8baf2dcb-eed1-107f-ca31-bdb0a67b35fc@freenet.de> Message-ID: <5a8dadac-3ae8-478f-a495-c161395c7a8b@gmail.com> On 9/26/23 17:16, Claus Dietrich wrote: > Hi > > Many?thanks?for?your?test. > > Compared with the stable version the master provides following additional?output?when?I?launch?the?compiled?app?in?the?console: > > gbx3?[6433]:?warning:?circular?references?detected: > gbx3?[6433]:?warning:?6?allocation(s)?non?freed. > > Internally Gambas seems to use the xdg-email tool. Other than the Desktop.Sendmail?method?the?shell?command > > |xdg-email?--attach?scanner.png| > > works?fine?on?my?VMs?with?the?Gambas?master. > > Regards > > Claus Oops, I just realized that I reported incorrectly. I ran it again to compare the additional output. Using Qt5, I get: gbx3 [1491]: warning: circular references detected: gbx3 [1491]: warning: 3 allocation(s) non freed. And, I happened notice that 'scanner.png' does not get attached on Master but does on Stable (3.18.4). -- Lee From benoit.minisini at gambas-basic.org Wed Sep 27 00:03:53 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Wed, 27 Sep 2023 00:03:53 +0200 Subject: [Gambas-user] Desktop.SendMail method broken on the master? In-Reply-To: References: Message-ID: <4bc4f139-bb75-45b9-b539-ed67cd46f6a8@gambas-basic.org> Le 26/09/2023 ? 20:50, Claus Dietrich a ?crit?: > Hi > > The Desktop.SendMail method seems to be broken on the latest ppa master. > > I tested it on my Linux Mint 20.3 Mate and Linux Mint 21.2 Cinnamon VMs. > > On my physical machine it works as it should with the new stable V3.18.4. > > A minimum demo app is attached which I used for testing. > > Best regards > > Claus > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- On master, Desktop routines are based on xdg portal instead of xdg shell scripts. The xdg portal (the future) is not necessarily everywhere in better shape than the xdg shell scripts (the deprecated). I confirm that the attachment is not taken into account, whereas it seems I did what it must be done to send them through DBus. I will check that. Otherwise, my e-mail client (Thunderbird) opens correctly on KDE. But KDE has a good implementation of xdg portal, which is often not the case in other desktops. Regards, -- Beno?t Minisini. From chrisml at deganius.de Wed Sep 27 06:58:28 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 27 Sep 2023 06:58:28 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 Message-ID: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> Hi, i have an new problem with Gambas 3.18.4 with my application. Since many years it does a HTTPClient.Get every 20 seconds to fetch some data from a HTTP server. Since Gambas 3.18.4 it freezes after 40 minutes on my machine (seems to be exactly and reliable). Is there a new timeout of 40 minutes since Gambas 3.18.4 that the process is running into? Any idea? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Wed Sep 27 14:03:43 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 27 Sep 2023 14:03:43 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> Message-ID: Am 27.09.23 um 06:58 schrieb Christof Thalhofer: > Since Gambas 3.18.4 it freezes after 40 minutes on my machine (seems to > be exactly and reliable). > > Is there a new timeout of 40 minutes since Gambas 3.18.4 that the > process is running into? > > Any idea? This is a log: ------------------------------------------------------- About 120 times the client does this: ------------------------------------------------------- * Trying 192.168.199.1:80... * TCP_NODELAY set * Connected to degapp (192.168.199.1) port 80 (#0) * Server auth using Basic with user 'christof' > GET /1/eingaenge? HTTP/1.1 Host: degapp Authorization: Basic sdfsdfsdfsdfsdfsdfsdfsdf= User-Agent: Gambas/3.18 (gb.net.curl; Linux) Accept: */* * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Date: Wed, 27 Sep 2023 11:34:51 GMT < Server: Apache/2.4.38 (Debian) < Content-Length: 4 < Content-Type: text/html;charset=utf-8 < * Connection #0 to host degapp left intact ------------------------------------------------------- And after 40 mins this happens reliably: ------------------------------------------------------- * getaddrinfo() thread failed to start * Couldn't resolve host 'degapp' * Closing connection 0 Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Wed Sep 27 16:48:02 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 27 Sep 2023 07:48:02 -0700 Subject: [Gambas-user] Many Java Script messages when displaying html in webview In-Reply-To: <37f391bc-832c-0886-b1b6-96e1a55c6149@westwoodsvcs.com> References: <37f391bc-832c-0886-b1b6-96e1a55c6149@westwoodsvcs.com> Message-ID: If anyone is interested I found the following solution. Tried using *error**to* and *output to*, but these only redirect the gambas3 io instructions. So I included the following code in my program. This uses the system calls dup and dup2 to temporarily replace the stdout and stderr handle with a handle to? /dev/null. This then just writes the messages to the bit bucket. In my case I am dynamically creating the webview window as a task and controlling it from my main application. Using the c system library calls to duplicate the file descriptors ?? extern dup(oldHandle as integer) as integer in "libc:6" ?? extern dup2(newHandle as integer, replaceiHandle as integer) as integer in "libc:6" ?? Public OldStdout as integer ?? Public OldStderr as integer ?? Public StdOut as integer = 1 ?? Public StdErr as integer = 2 Then in the function just before opening the webView ??? Dim efile as file ??? efile = open "/dev/null" for write ??? OldStdout = dup(StdOut)??? ??? ??? ??? ' We must save the old stdout handle ??? OldStderr = dup(StdErr)??? ??? ??? ??? ? ' We must also save the old stderr handle ??? dup2(efile.handle,StdOut)?????????????? ' use our file handle ??? dup2(efile.handle,StdErr)??????????????? ' use our file handle ??? close efile??????????????????????????????????????? ' Close this file as we don't need it any more Then just after the webview closes, perhaps in the close event to restore the original file descriptors ??? dup2(OldStderr,StdOut) ??? dup2(OldStderr,StdErr) This seems to work, If anyone has a reason not to do this, please send a comment! ~~~~~~~~~~~~~ Brian G On 9/26/23 12:26, Brian G wrote: > When I am displaying a webview with a url being displayed I start to > get a lot of js messages sent to the std out it is a problem for my app. > > Is there some way to suppress the js output from the webview component ? > > See attached image as an example. > > > > ----[http://gambaswiki.org/wiki/doc/netiquette ]---- -- ~~~~ Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x78BFB26402F48419.asc Type: application/pgp-keys Size: 2428 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From claus.dietrich at freenet.de Wed Sep 27 21:01:20 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Wed, 27 Sep 2023 21:01:20 +0200 Subject: [Gambas-user] Desktop.SendMail method broken on the master? In-Reply-To: <4bc4f139-bb75-45b9-b539-ed67cd46f6a8@gambas-basic.org> References: <4bc4f139-bb75-45b9-b539-ed67cd46f6a8@gambas-basic.org> Message-ID: Hi Beno?t Am 27.09.23 um 00:03 schrieb Beno?t Minisini: > I confirm that the attachment is not taken into account, whereas it > seems I did what it must be done to send them through DBus. I will > check that. Just to avoid a misunderstanding ... I missed to explain, that the Desktop.Sendmail method fails to open the standard email client in the master version. This has nothing to do with the attachment. Thanks a lot for having a look into it. Best regards Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Sep 27 21:04:53 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 27 Sep 2023 15:04:53 -0400 Subject: [Gambas-user] Many Java Script messages when displaying html in webview In-Reply-To: References: <37f391bc-832c-0886-b1b6-96e1a55c6149@westwoodsvcs.com> Message-ID: On 9/27/23 10:48, Brian G wrote: > ??? dup2(OldStderr,StdOut) > ??? dup2(OldStderr,StdErr) Shouldn't that be: dup2(OldStdout,StdOut) dup2(OldStderr,StdErr) ? I ask just in case you copied it directly from your project's code. -- Lee From t.lee.davidson at gmail.com Wed Sep 27 21:22:57 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 27 Sep 2023 15:22:57 -0400 Subject: [Gambas-user] Desktop.SendMail method broken on the master? In-Reply-To: References: <4bc4f139-bb75-45b9-b539-ed67cd46f6a8@gambas-basic.org> Message-ID: On 9/27/23 15:01, Claus Dietrich wrote: > Just to avoid a misunderstanding ... I missed to explain, that the Desktop.Sendmail method fails to open the standard email > client in the master version. This has nothing to do with the attachment. Thanks a lot for having a look into it. Using KDE on Debian, Desktop.Sendmail has no problem opening either Kmail or Thunderbird. What desktop are you using? -- Lee From roberto.premoli at tiscali.it Wed Sep 27 21:29:05 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Wed, 27 Sep 2023 21:29:05 +0200 Subject: [Gambas-user] =?utf-8?q?does_exit_a_instruction_to_convert_hexad?= =?utf-8?q?ecimal_to_decimal=3F?= Message-ID: <1059b21ee1cb47071213692ccf5db77a@tiscali.it> Hello, I use hex$ to convert decimal to hexadecimal, and it works But I ave also the opposite need, to convert a HEXacecimal value into a DECimal value but it seems does not exist a "DEC$" I can write my own routine that elaborate the string (i.e. "EA") and return the equivalent inter decimal 234, but it will be better to use the gambas instruction, , if it exist. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed Sep 27 21:46:41 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 27 Sep 2023 12:46:41 -0700 Subject: [Gambas-user] _init method in modules Message-ID: I am confused. Should the _init method be called when a module is loaded. I thought that at some time in the past it was. But I guess I am wrong? -- ~~~~ Brian -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x78BFB26402F48419.asc Type: application/pgp-keys Size: 2428 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Wed Sep 27 21:57:18 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 27 Sep 2023 12:57:18 -0700 Subject: [Gambas-user] _init method in modules In-Reply-To: References: Message-ID: Ah, yes it is, but the debugger will not stop at a break point in the _init function. Now the question is... is there a way to get a breakpoint to happen in the _init function? has anyone had this problem? On 9/27/23 12:46, Brian G wrote: > I am confused. Should the _init method be called when a module is > loaded. I thought that at some time in the past it was. > > But I guess I am wrong? > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- ~~~~ Brian -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x78BFB26402F48419.asc Type: application/pgp-keys Size: 2428 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Wed Sep 27 22:05:40 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 27 Sep 2023 13:05:40 -0700 Subject: [Gambas-user] _init method in modules In-Reply-To: References: Message-ID: Update, I can get it to stop at the first breakpoint after a stop instruction inserted at the beginning of the _init. and step thru the init..... but when I continue execution it goes off to never never land and seems to hang... Is this a bug or a feature? On 9/27/23 12:46, Brian G wrote: > I am confused. Should the _init method be called when a module is > loaded. I thought that at some time in the past it was. > > But I guess I am wrong? > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- ~~~~ Brian -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x78BFB26402F48419.asc Type: application/pgp-keys Size: 2428 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Wed Sep 27 22:28:36 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 27 Sep 2023 13:28:36 -0700 Subject: [Gambas-user] does exit a instruction to convert hexadecimal to decimal? In-Reply-To: <1059b21ee1cb47071213692ccf5db77a@tiscali.it> References: <1059b21ee1cb47071213692ccf5db77a@tiscali.it> Message-ID: Here is an example of using eval to read hex numbers Sub readhex() As Integer Dim hexvalue As String again: Print "enter hex number > "; Flush Line Input hexvalue If Not IsHexa(hexvalue) Then ?? Print "Bad Hex value" ?? Goto again Endif Return Eval("&h0" & hexvalue) End On 9/27/23 12:29, roberto.premoli at tiscali.it wrote: > Hello, > I use hex$?to convert decimal to hexadecimal, and it works > > But I ave also the opposite need, to convert a HEXacecimal value into > a DECimal value but it seems does not exist a "DEC$" > > I can write my own routine that elaborate the string (i.e. "EA") and > return the equivalent inter decimal 234, but it will be better to use > the gambas instruction, , if it exist. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- ~~~~ Brian -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x78BFB26402F48419.asc Type: application/pgp-keys Size: 2428 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Wed Sep 27 22:35:13 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 27 Sep 2023 13:35:13 -0700 Subject: [Gambas-user] does exit a instruction to convert hexadecimal to decimal? In-Reply-To: <1059b21ee1cb47071213692ccf5db77a@tiscali.it> References: <1059b21ee1cb47071213692ccf5db77a@tiscali.it> Message-ID: <00f2f623-b295-d6a0-edaf-805cfcb6d433@westwoodsvcs.com> You cal also use num = VAL("&H0"&mystring) On 9/27/23 12:29, roberto.premoli at tiscali.it wrote: > Hello, > I use hex$?to convert decimal to hexadecimal, and it works > > But I ave also the opposite need, to convert a HEXacecimal value into > a DECimal value but it seems does not exist a "DEC$" > > I can write my own routine that elaborate the string (i.e. "EA") and > return the equivalent inter decimal 234, but it will be better to use > the gambas instruction, , if it exist. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- ~~~~ Brian -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0x78BFB26402F48419.asc Type: application/pgp-keys Size: 2428 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: From vuott at tutanota.com Thu Sep 28 00:13:58 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Thu, 28 Sep 2023 00:13:58 +0200 (CEST) Subject: [Gambas-user] does exit a instruction to convert hexadecimal to decimal? In-Reply-To: <00f2f623-b295-d6a0-edaf-805cfcb6d433@westwoodsvcs.com> References: <1059b21ee1cb47071213692ccf5db77a@tiscali.it> <00f2f623-b295-d6a0-edaf-805cfcb6d433@westwoodsvcs.com> Message-ID: the "&" character alone is sufficient: ?? num = Val("&" & mystring) 27 set 2023, 22:42 da brian at westwoodsvcs.com: > You cal also use num = VAL("&H0"&mystring) > > On 9/27/23 12:29, roberto.premoli at tiscali.it wrote: > >> Hello, >> I use hex$?to convert decimal to hexadecimal, and it works >> >> But I ave also the opposite need, to convert a HEXacecimal value into a DECimal value but it seems does not exist a "DEC$" >> >> I can write my own routine that elaborate the string (i.e. "EA") and return the equivalent inter decimal 234, but it will be better to use the gambas instruction, , if it exist. >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > -- > ~~~~ Brian > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Sep 28 10:24:14 2023 From: adamnt42 at gmail.com (BB) Date: Thu, 28 Sep 2023 17:54:14 +0930 Subject: [Gambas-user] _init method in modules In-Reply-To: References: Message-ID: <678acbeb-6bb0-a27f-8ca7-85147a7e6252@gmail.com> Whether both of these symptoms are bugs or features, I do not know. But they have both been around for a looooong time. From my unreliable memory one time that I did "enjoy" this frustration (that's a collective noun for "bug or feature"), I hazily recall that I had to either "Debug" or "Print" whatever the aspect of the module that I was having trouble with was. Hope that may get you a bit further down the line. b On 28/9/23 5:35 am, Brian G wrote: > Update, I can get it to stop at the first breakpoint after a stop > instruction inserted at the beginning of the _init. and step thru the > init..... > > but when I continue execution it goes off to never never land and > seems to hang... > > Is this a bug or a feature? > > On 9/27/23 12:46, Brian G wrote: >> I am confused. Should the _init method be called when a module is >> loaded. I thought that at some time in the past it was. >> >> But I guess I am wrong? From claus.dietrich at freenet.de Thu Sep 28 12:31:35 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Thu, 28 Sep 2023 12:31:35 +0200 Subject: [Gambas-user] Desktop.SendMail method broken on the master? In-Reply-To: <5a8dadac-3ae8-478f-a495-c161395c7a8b@gmail.com> References: <8baf2dcb-eed1-107f-ca31-bdb0a67b35fc@freenet.de> <5a8dadac-3ae8-478f-a495-c161395c7a8b@gmail.com> Message-ID: <3f2e13e7-0ce7-f3fe-407b-f7b4e013e69b@freenet.de> Hi Am 27.09.23 um 21:22 schrieb T Lee Davidson: > Using KDE on Debian, Desktop.Sendmail has no problem opening either Kmail or Thunderbird. > > What desktop are you using? As I wrote - Cinnamon and Mate. I just tested an affected Gambas AppImage (generated on a VM with an up-to-date master) on a Kubuntu VM. Thunderbird is openend but the attachment is missing. On an OpenSuse 15.3 Leap KDE VM the AppImage failed to open the dafault KMail-Client. A dialogue asked me for a password of the password valet. On a Debian 12 (Bookworm) KDE VM KMail is opened but the attachment is missing. Best regards Claus From isafiur at gmail.com Thu Sep 28 14:53:44 2023 From: isafiur at gmail.com (Safiur Rahman) Date: Thu, 28 Sep 2023 18:38:44 +0545 Subject: [Gambas-user] WebTextBox border is shown even after the control is no more visible Message-ID: Hi On sliding the container containing WebTextBox, the border of WebTextBox is visible even after the WebTextBox is no more displayed. Please check this video. http://safiur.com.np/gambas/gambas-border.webm Attached project -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: border.zip Type: application/zip Size: 15082 bytes Desc: not available URL: From mtitouinfo at yahoo.fr Thu Sep 28 15:08:21 2023 From: mtitouinfo at yahoo.fr (Manu) Date: Thu, 28 Sep 2023 15:08:21 +0200 Subject: [Gambas-user] does exit a instruction to convert hexadecimal to decimal? In-Reply-To: References: <1059b21ee1cb47071213692ccf5db77a@tiscali.it> <00f2f623-b295-d6a0-edaf-805cfcb6d433@westwoodsvcs.com> Message-ID: <51dda585-d723-11e9-4927-15b185ed5f67@yahoo.fr> hello, remember this shortcut: gbs3 -e 'dim a as byte=255: print a, hex(a), bin(a), oct(a), &hff, &x11111111, &o377' 255 FF 11111111 377 255 255 255 Le 28/09/2023 ? 00:13, vuott--- via User a ?crit : > the "&" character alone is sufficient: > > num = Val("&" & mystring) Le 28/09/2023 ? 00:13, vuott--- via User a ?crit?: > the "&" character alone is sufficient: > > ?? num = Val("&" & mystring) > From t.lee.davidson at gmail.com Thu Sep 28 15:31:01 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 28 Sep 2023 09:31:01 -0400 Subject: [Gambas-user] WebTextBox border is shown even after the control is no more visible In-Reply-To: References: Message-ID: <6c682f91-aa9c-43de-9d29-1791f37adadb@gmail.com> On 9/28/23 08:53, Safiur Rahman wrote: > Hi > > On sliding the container containing WebTextBox, the border of WebTextBox is visible even after the WebTextBox is no more > displayed. Please check this video. > http://safiur.com.np/gambas/gambas-border.webm > > Attached project > > -- > Regards > Safiur Rahman It does not behave that way on Chromium [Version 117.0.5938.88 (openSUSE Build) stable (64-bit)]. It scrolls just as it should. -- Lee From isafiur at gmail.com Thu Sep 28 16:01:50 2023 From: isafiur at gmail.com (Safiur Rahman) Date: Thu, 28 Sep 2023 19:46:50 +0545 Subject: [Gambas-user] WebTextBox border is shown even after the control is no more visible In-Reply-To: References: Message-ID: Hi Lee I am using Google Chrome Version 117.0.5938.92 (Official Build) (64-bit) Ubuntu 22.04. I also checked in Windows 11 and the problem is the same. The border of WebTextBox is visible when the control is no longer visible. Can you pinpoint CSS parameter which can make that border transparent when the control moves? On Thu, Sep 28, 2023 at 6:38?PM Safiur Rahman wrote: > Hi > > On sliding the container containing WebTextBox, the border of WebTextBox > is visible even after the WebTextBox is no more displayed. Please check > this video. > http://safiur.com.np/gambas/gambas-border.webm > > Attached project > > -- > Regards > Safiur Rahman > -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Sep 28 17:02:44 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 28 Sep 2023 17:02:44 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> Message-ID: Am 27.09.23 um 14:03 schrieb Christof Thalhofer: > ------------------------------------------------------- > And after 40 mins this happens reliably: > ------------------------------------------------------- > > * getaddrinfo() thread failed to start > > * Couldn't resolve host 'degapp' > * Closing connection 0 I guess it has something to do with these changes, because with Gambas 3.18.2 my application runs forever without any problem: > commit dfbbebe0506f888a84a1b4732940ba39ba155168 > Author: Beno?t Minisini > Date: Wed Jul 26 19:34:32 2023 +0200 > > FtpClient: Correctly initialize curl options before reusing a connection. > > [GB.NET.CURL] > * BUG: FtpClient: Correctly initialize curl options before reusing a connection. > > commit c23d80a04f03540a0ad46f2fa255150dfb7dc5c4 > Author: Beno?t Minisini > Date: Wed Jul 26 17:10:28 2023 +0200 > > Do not always clear the libcurl handle, reuse it as much as possible. > > [GB.NET.CURL] > * OPT: Do not always clear the libcurl handle, reuse it as much as possible. > * BUG: Correctly check if user or password changes. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From benoit.minisini at gambas-basic.org Thu Sep 28 17:11:12 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Thu, 28 Sep 2023 17:11:12 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> Message-ID: <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> Le 28/09/2023 ? 17:02, Christof Thalhofer a ?crit?: > Am 27.09.23 um 14:03 schrieb Christof Thalhofer: > >> ------------------------------------------------------- >> And after 40 mins this happens reliably: >> ------------------------------------------------------- >> >> * getaddrinfo() thread failed to start >> >> * Couldn't resolve host 'degapp' >> * Closing connection 0 > > I guess it has something to do with these changes, because with Gambas > 3.18.2 my application runs forever without any problem: Logically it should, but why does reusing the handle (as it should be done according to the curl documentation) create a freeze 40 minutes later? And why 40 minutes? -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Thu Sep 28 17:23:56 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Thu, 28 Sep 2023 17:23:56 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> Message-ID: <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> Le 28/09/2023 ? 17:11, Beno?t Minisini a ?crit?: > Le 28/09/2023 ? 17:02, Christof Thalhofer a ?crit?: >> Am 27.09.23 um 14:03 schrieb Christof Thalhofer: >> >>> ------------------------------------------------------- >>> And after 40 mins this happens reliably: >>> ------------------------------------------------------- >>> >>> * getaddrinfo() thread failed to start >>> >>> * Couldn't resolve host 'degapp' >>> * Closing connection 0 >> >> I guess it has something to do with these changes, because with Gambas >> 3.18.2 my application runs forever without any problem: > > Logically it should, but why does reusing the handle (as it should be > done according to the curl documentation) create a freeze 40 minutes > later? And why 40 minutes? > Normally, you should get the old behaviour if you recreate a new HttpClient object each time you make a request. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Thu Sep 28 17:25:10 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Thu, 28 Sep 2023 17:25:10 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> Message-ID: <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> Le 28/09/2023 ? 17:23, Beno?t Minisini a ?crit?: > Le 28/09/2023 ? 17:11, Beno?t Minisini a ?crit?: >> Le 28/09/2023 ? 17:02, Christof Thalhofer a ?crit?: >>> Am 27.09.23 um 14:03 schrieb Christof Thalhofer: >>> >>>> ------------------------------------------------------- >>>> And after 40 mins this happens reliably: >>>> ------------------------------------------------------- >>>> >>>> * getaddrinfo() thread failed to start >>>> >>>> * Couldn't resolve host 'degapp' >>>> * Closing connection 0 >>> >>> I guess it has something to do with these changes, because with >>> Gambas 3.18.2 my application runs forever without any problem: >> >> Logically it should, but why does reusing the handle (as it should be >> done according to the curl documentation) create a freeze 40 minutes >> later? And why 40 minutes? >> > > Normally, you should get the old behaviour if you recreate a new > HttpClient object each time you make a request. > > Regards, > Another point: can you count exactly how many requests you run before it freezes? Regards, -- Beno?t Minisini. From chrisml at deganius.de Thu Sep 28 18:18:00 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 28 Sep 2023 18:18:00 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> Message-ID: <22020928-fcb2-a942-69ac-d5502e54f75b@deganius.de> Am 28.09.23 um 17:25 schrieb Beno?t Minisini: > Le 28/09/2023 ? 17:23, Beno?t Minisini a ?crit?: >> Le 28/09/2023 ? 17:11, Beno?t Minisini a ?crit?: >>> Le 28/09/2023 ? 17:02, Christof Thalhofer a ?crit?: >>>> Am 27.09.23 um 14:03 schrieb Christof Thalhofer: >>>> >>>>> ------------------------------------------------------- >>>>> And after 40 mins this happens reliably: >>>>> ------------------------------------------------------- >>>>> >>>>> * getaddrinfo() thread failed to start >>>>> >>>>> * Couldn't resolve host 'degapp' >>>>> * Closing connection 0 >>>> >>>> I guess it has something to do with these changes, because with >>>> Gambas 3.18.2 my application runs forever without any problem: >>> >>> Logically it should, but why does reusing the handle (as it should be >>> done according to the curl documentation) create a freeze 40 minutes >>> later? And why 40 minutes? >>> >> >> Normally, you should get the old behaviour if you recreate a new >> HttpClient object each time you make a request. As far as I see, the code does exactly this. > Another point: can you count exactly how many requests you run before it > freezes? Now i reduced the time between the connections. From 15000 ms (15 seconds) to 300ms. Then the freeze comes faster but not as fast as it should ... Much more strange: It does not happen on a virtual machine with the same Ubuntu version and Gambas 3.18.4 compiled. It's one of the weirdest bugs i've ever encountered ... ;-) I will test and report. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Thu Sep 28 18:54:17 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 28 Sep 2023 18:54:17 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> Message-ID: Am 28.09.23 um 17:25 schrieb Beno?t Minisini: > Another point: can you count exactly how many requests you run before it > freezes? I think i got it. After 1351 Counts it freezes independently of the time between the requests (Speed). As it runs i can watch it eating memory. What does the debugger show? 'MIB' is easy, thats memory. The other is file handles? I guess so: Speed Count Memory File handles start end start end 300 1351 48 MIB ~140MIB ~89 ~8100 200 1351 48MIB 142 ~89 8191 ('~' means i guess) So it eats memory and file handles. And at a certain point it crashes. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Thu Sep 28 19:07:04 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 28 Sep 2023 19:07:04 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> Message-ID: <57226fa7-6eef-0cfa-359e-3f251ae98e62@deganius.de> Am 28.09.23 um 18:54 schrieb Christof Thalhofer: > What does the debugger show? 'MIB' is easy, thats memory. The other is > file handles? I guess so: No. I guess stack size. > Speed Count Memory File handles > start end start end > 300 1351 48 MIB ~140MIB ~89 ~8100 > 200 1351 48MIB 142 ~89 8191 ulimit -a -s: stack size (kbytes) 8192 Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Thu Sep 28 21:33:00 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 28 Sep 2023 21:33:00 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> Message-ID: <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> Am 28.09.23 um 18:54 schrieb Christof Thalhofer: > Speed Count Memory File handles > start end start end > 300 1351 48 MIB ~140MIB ~89 ~8100 > 200 1351 48MIB 142 ~89 8191 After compiling 3.18.4 on my VM (Ubuntu testmachine) i can reproduce it there also. It crashes after 164 rounds. The same happens with the last commit '1a73eb99884415'. So the bug is still there. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From benoit.minisini at gambas-basic.org Thu Sep 28 22:06:30 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Thu, 28 Sep 2023 22:06:30 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> Message-ID: <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> Le 28/09/2023 ? 21:33, Christof Thalhofer a ?crit?: > Am 28.09.23 um 18:54 schrieb Christof Thalhofer: > >> Speed?? Count? Memory?????????????? File handles >> ???????????????? start???? end??????? start???? end >> 300???? 1351?? 48 MIB??? ~140MIB??? ~89??????? ~8100 >> 200???? 1351?? 48MIB????? 142?????? ~89?????? 8191 > > After compiling 3.18.4 on my VM (Ubuntu testmachine) i can reproduce it > there also. It crashes after 164 rounds. > > The same happens with the last commit '1a73eb99884415'. So the bug is > still there. > > Alles Gute > > Christof Thalhofer > How do you use exactly your HttpClient object? Which properties do you set with which values? Which methods do you call with which arguments? -- Beno?t Minisini. From t.lee.davidson at gmail.com Thu Sep 28 22:36:47 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 28 Sep 2023 16:36:47 -0400 Subject: [Gambas-user] WebTextBox border is shown even after the control is no more visible In-Reply-To: References: Message-ID: <74354606-6fbd-45c9-86c6-65d973f50fd9@gmail.com> On 9/28/23 10:01, Safiur Rahman wrote: > Hi Lee > > I am using Google Chrome Version 117.0.5938.92 (Official Build) (64-bit) Ubuntu 22.04. I also checked in Windows 11 and the > problem is the same. > The border of WebTextBox is visible when the control is no longer visible. Can you pinpoint CSS parameter which can make that > border transparent when the control moves? No. But, I just now noticed that if the control has focus (ie. it was clicked or tabbed to), it gets highlighted as the active element. That highlighting is what says in place. I happens with WebTextBox1, WebTextArea1, and even with WebTextBox2 when scrolling up. -- Lee From t.lee.davidson at gmail.com Thu Sep 28 22:47:22 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 28 Sep 2023 16:47:22 -0400 Subject: [Gambas-user] WebTextBox border is shown even after the control is no more visible In-Reply-To: <74354606-6fbd-45c9-86c6-65d973f50fd9@gmail.com> References: <74354606-6fbd-45c9-86c6-65d973f50fd9@gmail.com> Message-ID: On 9/28/23 16:36, T Lee Davidson wrote: > On 9/28/23 10:01, Safiur Rahman wrote: >> Hi Lee >> >> I am using Google Chrome Version 117.0.5938.92 (Official Build) (64-bit) Ubuntu 22.04. I also checked in Windows 11 and the >> problem is the same. >> The border of WebTextBox is visible when the control is no longer visible. Can you pinpoint CSS parameter which can make that >> border transparent when the control moves? > > No. > > But, I just now noticed that if the control has focus (ie. it was clicked or tabbed to), it gets highlighted as the active > element. That highlighting is what says in place. I happens with WebTextBox1, WebTextArea1, and even with WebTextBox2 when > scrolling up. This may be the CSS that generates the highlight: #gw-focus { display: none; position: absolute; /*border: solid 2px rgba(0,127,255,0.5);*/ box-shadow: 0 0 0.25rem rgba(0,127,255,1) inset; pointer-events: none; } And, perhaps it is the "position: absolute;" that causes it to stick in place. -- Lee From chrisml at deganius.de Thu Sep 28 22:56:37 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 28 Sep 2023 22:56:37 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> Message-ID: Am 28.09.23 um 22:06 schrieb Beno?t Minisini: > How do you use exactly your HttpClient object? Which properties do you > set with which values? Which methods do you call with which arguments? This is the Get() function which does the job: > Private $H As New HttpClient As "HClient" > > Public Function Get() As String > > Dim sBuffer As String > > ' $H.URL is filled at another place > If $H.URL Then > > $H.Async = False > $H.Timeout = 600 > > $H.Get > > ' Success - read the data > If Lof($H) Then sBuffer = Read #$H, Lof($H) > > If $H.Code > 299 Then > Error.Raise("Degapp Fehler ? Code " & $H.Code & " " & sBuffer) > Endif > > If $H.Status < 0 Then > Error.Raise("Connection zu Degapp kaputt. Curl Status (" & $H.Status & ") kleiner 0.") > Else > $H.Close > Return sBuffer > End If > Else > Error.Raise("Der Pfad f?r Degapp ist nicht definiert.") > Endif > > End It's inspired from code in http://gambaswiki.org/wiki/comp/gb.net.curl/httpclient Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From t.lee.davidson at gmail.com Thu Sep 28 23:05:42 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 28 Sep 2023 17:05:42 -0400 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> Message-ID: On 9/28/23 16:56, Christof Thalhofer wrote: > Am 28.09.23 um 22:06 schrieb Beno?t Minisini: > >> How do you use exactly your HttpClient object? Which properties do you >> set with which values? Which methods do you call with which arguments? > > This is the Get() function which does the job: > >> Private $H As New HttpClient As "HClient" >> > Public Function Get() As String >> >> ??? Dim sBuffer As String >> > >???? ' $H.URL is filled at another place >> ??? If $H.URL Then >> >> ??????? $H.Async = False >> ??????? $H.Timeout = 600 >> >> ??????? $H.Get >> >> ??????? ' Success - read the data >> ??????? If Lof($H) Then sBuffer = Read #$H, Lof($H) >> >> ??????? If $H.Code > 299 Then >> ??????????? Error.Raise("Degapp Fehler ? Code " & $H.Code & " " & sBuffer) >> ??????? Endif >> >> ??????? If $H.Status < 0 Then >> ??????????? Error.Raise("Connection zu Degapp kaputt. Curl Status (" & $H.Status & ") kleiner 0.") >> ??????? Else >> ??????????? $H.Close >> ??????????? Return sBuffer >> ??????? End If >> ??? Else >> ??????? Error.Raise("Der Pfad f?r Degapp ist nicht definiert.") >> ??? Endif >> >> End > > It's inspired from code in > > http://gambaswiki.org/wiki/comp/gb.net.curl/httpclient > > Alles Gute > > Christof Thalhofer I doubt it's causing the issue, but shouldn't .Status be checked for Curl error values prior to reading the stream into the buffer? -- Lee From benoit.minisini at gambas-basic.org Thu Sep 28 23:17:57 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Thu, 28 Sep 2023 23:17:57 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> Message-ID: <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> Le 28/09/2023 ? 22:56, Christof Thalhofer a ?crit?: > Am 28.09.23 um 22:06 schrieb Beno?t Minisini: > >> How do you use exactly your HttpClient object? Which properties do you >> set with which values? Which methods do you call with which arguments? > > This is the Get() function which does the job: > >> Private $H As New HttpClient As "HClient" >> > Public Function Get() As String >> >> ??? Dim sBuffer As String >> > >???? ' $H.URL is filled at another place >> ??? If $H.URL Then >> >> ??????? $H.Async = False >> ??????? $H.Timeout = 600 >> >> ??????? $H.Get >> >> ??????? ' Success - read the data >> ??????? If Lof($H) Then sBuffer = Read #$H, Lof($H) >> >> ??????? If $H.Code > 299 Then >> ??????????? Error.Raise("Degapp Fehler ? Code " & $H.Code & " " & >> sBuffer) >> ??????? Endif >> >> ??????? If $H.Status < 0 Then >> ??????????? Error.Raise("Connection zu Degapp kaputt. Curl Status (" & >> $H.Status & ") kleiner 0.") >> ??????? Else >> ??????????? $H.Close >> ??????????? Return sBuffer >> ??????? End If >> ??? Else >> ??????? Error.Raise("Der Pfad f?r Degapp ist nicht definiert.") >> ??? Endif >> >> End > > It's inspired from code in > > http://gambaswiki.org/wiki/comp/gb.net.curl/httpclient > > Alles Gute > > Christof Thalhofer > Do you run the event loop between two calls to Get()? -- Beno?t Minisini. From chrisml at deganius.de Fri Sep 29 08:01:10 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 29 Sep 2023 08:01:10 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> Message-ID: <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> Am 28.09.23 um 23:17 schrieb Beno?t Minisini: > Do you run the event loop between two calls to Get()? It's a timer in the main form of the application called 'TimerLeds'. Every time it triggers, it runs a Sub 'RetrieveFlags()' in the form's class that creates a new object of the class 'DegApp' (which contains the Get() function). Code shortened: > Public Sub TimerLeds_Timer() > RetrieveFlags() > End > > Sub RetrieveFlags() > > Dim App As New DegApp > jsonliste = App.Get() > ' then do some stuff with jsonliste > End 'RetrieveFlags()' does some stuff with 'jsonliste' but even when I switch that code off it eats memory and crashes the application after a while. I also tried also to insert 'App = Null' at the end of RetrieveFlags() but still it eats memory. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From benoit.minisini at gambas-basic.org Fri Sep 29 15:06:14 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Fri, 29 Sep 2023 15:06:14 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> Message-ID: <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> Le 29/09/2023 ? 08:01, Christof Thalhofer a ?crit?: > Am 28.09.23 um 23:17 schrieb Beno?t Minisini: > >> Do you run the event loop between two calls to Get()? > > It's a timer in the main form of the application called 'TimerLeds'. > Every time it triggers, it runs a Sub 'RetrieveFlags()' in the form's > class that creates a new object of the class 'DegApp' (which contains > the Get() function). > > Code shortened: > >> Public Sub TimerLeds_Timer() >> ??? RetrieveFlags() >> End >> >> Sub RetrieveFlags() >> ??? Dim App As New DegApp >> ??? jsonliste = App.Get() >> ??? ' then do some stuff with jsonliste >> End > > 'RetrieveFlags()' does some stuff with 'jsonliste' but even when I > switch that code off it eats memory and crashes the application after a > while. > > I also tried also to insert 'App = Null' at the end of RetrieveFlags() > but still it eats memory. > > Alles Gute > > Christof Thalhofer > I asked because I tried a simple loop that does an HttpClient.Get() 8192 times. It eats a bit of memory if I don't call the event loop, because some stuff is freed only during it. But if I call 'Wait' after each request, I have no memory leak. So it may be something related to the URL requested... I tried with "localhost". Regards, -- Beno?t Minisini. From claus.dietrich at freenet.de Fri Sep 29 17:35:59 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Fri, 29 Sep 2023 17:35:59 +0200 Subject: [Gambas-user] How to reduce the size of PDFs generated with PDFSurface/Cairo Message-ID: Hi I am using the Gambas PDFSurface and Cairo to generate and assemble multi-page PDFs. When I insert a jpg-image from my scanner (A4 size, 300dpi, 90% quality) with a size of 730 kB? the resulting single page PDF is blown up to a size of 2.8 MB. A stripped down demo project is attached: https://send.vis.ee/download/62247b9c0d0529a1/#JidKAJn64IdF4G1c-4B07A Does anyone know a way to obtain a PDF file with a similar size (resp. compression) like the source image by using native Gambas means (=without installing tools like ImageMagick)? Best regards Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Sep 30 00:20:10 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 30 Sep 2023 00:20:10 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> Message-ID: Am 29.09.23 um 15:06 schrieb Beno?t Minisini: > I asked because I tried a simple loop that does an HttpClient.Get() 8192 > times. It eats a bit of memory if I don't call the event loop, because > some stuff is freed only during it. But if I call 'Wait' after each > request, I have no memory leak. I tried. 'Wait' didn't help. On my VM it crashes after 159 loops. What does the debugger show on the right side of MIB? The stack size? This was what i was talking about (it was exactly 8191 when the program on my main machine crashed, on the VM it is exactly 1022). > So it may be something related to the URL requested... I tried with > "localhost". It calls 'http://degapp/1/eingaenge' where an Apache sits and responses a Json string. If the program able to raise an error before it stalls it says: > * getaddrinfo() thread failed to start > > * Couldn't resolve host 'degapp' > * Closing connection 0 Hmm ... Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From benoit.minisini at gambas-basic.org Sat Sep 30 00:42:45 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Sep 2023 00:42:45 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> Message-ID: <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> Le 30/09/2023 ? 00:20, Christof Thalhofer a ?crit?: > Am 29.09.23 um 15:06 schrieb Beno?t Minisini: > >> I asked because I tried a simple loop that does an HttpClient.Get() 8192 >> times. It eats a bit of memory if I don't call the event loop, because >> some stuff is freed only during it. But if I call 'Wait' after each >> request, I have no memory leak. > > I tried. 'Wait' didn't help. On my VM it crashes after 159 loops. > > What does the debugger show on the right side of MIB? The stack size? > This was what i was talking about (it was exactly 8191 when the program > on my main machine crashed, on the VM it is exactly 1022). No, it's the number of opened file descriptors. You get a file descriptor leak. But I don't have it when I tried my simple HttpClient.Get() loop. -- Beno?t Minisini. From chrisml at deganius.de Sat Sep 30 01:11:52 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 30 Sep 2023 01:11:52 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> Message-ID: Am 30.09.23 um 00:42 schrieb Beno?t Minisini: >> What does the debugger show on the right side of MIB? The stack size? >> This was what i was talking about (it was exactly 8191 when the program >> on my main machine crashed, on the VM it is exactly 1022). > > No, it's the number of opened file descriptors. Ok, thank you! Its a nice feature of the debugger, I saw it the first time. :-) > You get a file descriptor leak. But I don't have it when I tried my > simple HttpClient.Get() loop. I didn't have it until 3.18.4. This code ran since 2019-01-26 without any problems. So the question is: What happens now and whats the reason? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From benoit.minisini at gambas-basic.org Sat Sep 30 02:15:19 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Sep 2023 02:15:19 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> Message-ID: <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> Le 30/09/2023 ? 01:11, Christof Thalhofer a ?crit?: > Am 30.09.23 um 00:42 schrieb Beno?t Minisini: > >>> What does the debugger show on the right side of MIB? The stack size? >>> This was what i was talking about (it was exactly 8191 when the program >>> on my main machine crashed, on the VM it is exactly 1022). >> >> No, it's the number of opened file descriptors. > > Ok, thank you! Its a nice feature of the debugger, I saw it the first > time. :-) > >> You get a file descriptor leak. But I don't have it when I tried my >> simple HttpClient.Get() loop. > > I didn't have it until 3.18.4. This code ran since 2019-01-26 without > any problems. So the question is: What happens now and whats the reason? > > Alles Gute > > Christof Thalhofer > As I cannot reproduce it with a simple HttpClient.Get() loop, this is something that you are doing that I'm not doing. I think it could be related to the URL (I don't see any other difference) that triggers a different internal beahviour of libcurl : for example DNS resolution. Do you target a DNS name or a direct IP address? -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Sat Sep 30 02:16:08 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Sep 2023 02:16:08 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> Message-ID: Le 30/09/2023 ? 02:15, Beno?t Minisini a ?crit?: > Le 30/09/2023 ? 01:11, Christof Thalhofer a ?crit?: >> Am 30.09.23 um 00:42 schrieb Beno?t Minisini: >> >>>> What does the debugger show on the right side of MIB? The stack size? >>>> This was what i was talking about (it was exactly 8191 when the program >>>> on my main machine crashed, on the VM it is exactly 1022). >>> >>> No, it's the number of opened file descriptors. >> >> Ok, thank you! Its a nice feature of the debugger, I saw it the first >> time. :-) >> >>> You get a file descriptor leak. But I don't have it when I tried my >>> simple HttpClient.Get() loop. >> >> I didn't have it until 3.18.4. This code ran since 2019-01-26 without >> any problems. So the question is: What happens now and whats the reason? >> >> Alles Gute >> >> Christof Thalhofer >> > > As I cannot reproduce it with a simple HttpClient.Get() loop, this is > something that you are doing that I'm not doing. I think it could be > related to the URL (I don't see any other difference) that triggers a > different internal beahviour of libcurl : for example DNS resolution. Do > you target a DNS name or a direct IP address? > And did you try to recreate a new HttpClient object at each loop? -- Beno?t Minisini. From vuott at tutanota.com Sat Sep 30 02:22:18 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sat, 30 Sep 2023 02:22:18 +0200 (CEST) Subject: [Gambas-user] Error starting Gambas IDE - "d98df39 (master) Message-ID: Hello, I updated my Gambas with "d98df39" (master) version. When I start the Gambas IDE, a window appears and it reports the following error: This application has raised an unexpected error and must abort. Out of Bounds (#21). [gb.gui.base]._GridView_Columns._Layout.140 regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Sat Sep 30 02:37:01 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Sep 2023 02:37:01 +0200 Subject: [Gambas-user] Error starting Gambas IDE - "d98df39 (master) In-Reply-To: References: Message-ID: Le 30/09/2023 ? 02:22, vuott--- via User a ?crit?: > Hello, > I updated my Gambas with "d98df39" (master) version. > When I start the Gambas IDE, a window appears and it reports the > following error: > > This application has raised an unexpected error and must abort. > Out of Bounds (#21). > [gb.gui.base]._GridView_Columns._Layout.140 > > > regards > It should be fixed now. Regards, -- Beno?t Minisini. From brian at westwoodsvcs.com Sat Sep 30 03:48:25 2023 From: brian at westwoodsvcs.com (Brian G) Date: Fri, 29 Sep 2023 18:48:25 -0700 (PDT) Subject: [Gambas-user] Wiki displays stack trace!? Message-ID: <357981378.20632.1696038505479.JavaMail.zimbra@westwoodsvcs.com> when I look at the help screen for editor.cut copy or trace it displays a stack trace. Has anyone else seen this error? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot at 2023-09-29 18-45-01.png Type: image/png Size: 135654 bytes Desc: not available URL: From t.lee.davidson at gmail.com Sat Sep 30 04:07:07 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 29 Sep 2023 22:07:07 -0400 Subject: [Gambas-user] Wiki displays stack trace!? In-Reply-To: <357981378.20632.1696038505479.JavaMail.zimbra@westwoodsvcs.com> References: <357981378.20632.1696038505479.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 9/29/23 21:48, Brian G wrote: > when I look at the help screen for editor.cut copy or trace it displays a stack trace. > > Has anyone else seen this error? > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G How are you getting Search tab to show up?? All I get is Classes. -- Lee From vuott at tutanota.com Sat Sep 30 04:26:40 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sat, 30 Sep 2023 04:26:40 +0200 (CEST) Subject: [Gambas-user] Error starting Gambas IDE - "d98df39 (master) In-Reply-To: References: Message-ID: Ok, now it works. 30 set 2023, 02:38 da benoit.minisini at gambas-basic.org: > Le 30/09/2023 ? 02:22, vuott--- via User a ?crit?: > >> Hello, >> I updated my Gambas with "d98df39" (master) version. >> When I start the Gambas IDE, a window appears and it reports the following error: >> >> This application has raised an unexpected error and must abort. >> Out of Bounds (#21). >> [gb.gui.base]._GridView_Columns._Layout.140 >> >> >> regards >> > > It should be fixed now. > > Regards, > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Sep 30 07:35:09 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 30 Sep 2023 07:35:09 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> Message-ID: Am 30.09.23 um 02:15 schrieb Beno?t Minisini: > As I cannot reproduce it with a simple HttpClient.Get() loop, this is > something that you are doing that I'm not doing. I think it could be > related to the URL (I don't see any other difference) that triggers a > different internal beahviour of libcurl : for example DNS resolution. Do > you target a DNS name or a direct IP address? A DNS name. The URL is 'http://degapp/1/eingaenge?' > And did you try to recreate a new HttpClient object at each loop? Yes the code does this since 2019. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From gambas.fr at gmail.com Sat Sep 30 11:12:37 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 30 Sep 2023 11:12:37 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> Message-ID: Hi Christopher, Can you try to change your get function Like This : Public Function Get(sUrl as String) As String Dim sBuffer As String If sUrl Then $H = New HttpClient As "HClient" $H.Url = sUrl $H.Async = False $H.Timeout = 600 $H.Get ' Success - read the data If Lof($H) Then sBuffer = Read #$H, Lof($H) If $H.Code 299 Then Error.Raise("Degapp Fehler ? Code " & $H.Code & " " & sBuffer) Endif If $H.Status < 0 Then Error.Raise("Connection zu Degapp kaputt. Curl Status (" & $H.Status & ") kleiner 0.") Else $H.Close Return sBuffer End If Else Error.Raise("Der Pfad f?r Degapp ist nicht definiert.") Endif Wait End In This case any call to get generate a new HttpClient and a Wait call You have to pass the required Url to the function or use a private variable To Set the Url at the Client Creation. I want you to try that please to be sure that you not have any call to the Get function without instanciate a new Client. As you wish. Best regards, Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Sat Sep 30 12:25:36 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Sep 2023 12:25:36 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> Message-ID: Le 30/09/2023 ? 02:15, Beno?t Minisini a ?crit?: > Le 30/09/2023 ? 01:11, Christof Thalhofer a ?crit?: >> Am 30.09.23 um 00:42 schrieb Beno?t Minisini: >> >>>> What does the debugger show on the right side of MIB? The stack size? >>>> This was what i was talking about (it was exactly 8191 when the program >>>> on my main machine crashed, on the VM it is exactly 1022). >>> >>> No, it's the number of opened file descriptors. >> >> Ok, thank you! Its a nice feature of the debugger, I saw it the first >> time. :-) >> >>> You get a file descriptor leak. But I don't have it when I tried my >>> simple HttpClient.Get() loop. >> >> I didn't have it until 3.18.4. This code ran since 2019-01-26 without >> any problems. So the question is: What happens now and whats the reason? >> >> Alles Gute >> >> Christof Thalhofer >> > > As I cannot reproduce it with a simple HttpClient.Get() loop, this is > something that you are doing that I'm not doing. I think it could be > related to the URL (I don't see any other difference) that triggers a > different internal beahviour of libcurl : for example DNS resolution. Do > you target a DNS name or a direct IP address? > Another point: DNS resolution (the getaddrinfo() thing) is entirely dynamic in glibc. It can read files, call threads, does a lot things to get the IP from a DNS name, depending on your system configuration. So if the leak comes from that, it's hard to reproduce on a different system. Did you change anything related to that on your system? Can you try to replace "degapp" by the IP of the server in the URL? Thanks. -- Beno?t Minisini. From chrisml at deganius.de Sat Sep 30 12:50:20 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 30 Sep 2023 12:50:20 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> Message-ID: <3121e250-0dfe-3e12-35a4-d91ef417a6e7@deganius.de> Hello Fabien, hello Beno?t, Am 30.09.23 um 11:12 schrieb Fabien Bodard: > Can you try to change your get function > > Like This : > > Public Function Get(sUrl as String) As String > > Dim sBuffer As String > > If sUrl Then > $H = New HttpClient As "HClient" > $H.Url = sUrl > $H.Async = False > $H.Timeout = 600 > > $H.Get > > ' Success - read the data > If Lof($H) Then sBuffer = Read #$H, Lof($H) > > If $H.Code 299 Then > Error.Raise("Degapp Fehler ? Code " & $H.Code & " " & sBuffer) > Endif > > If $H.Status < 0 Then > Error.Raise("Connection zu Degapp kaputt. Curl Status (" & > $H.Status & ") kleiner 0.") > Else > $H.Close > Return sBuffer > End If > Else > Error.Raise("Der Pfad f?r Degapp ist nicht definiert.") > Endif > > Wait > > End > > > In This case any call to get generate a new HttpClient and a Wait call Thank you! I had the same idea this morning and did a similar thing (except the 'Wait', but now I tried it). Meanwhile I have an extra branch of my software just to investigate this bug. No change in behavior, it still leaks file descriptors ... but now I tested further. With this the leak is gone!: > 'For testing: Get with HttpClient defined in the scope of the function > Public Function Get() As String > > Dim sBuffer, sUrl As String > Dim H As HttpClient > > sUrl = "http://degapp/1/eingaenge?" > > If sUrl Then > H = New HttpClient As "HClient" > > H.Auth = Net.AuthBasic > H.User = LocalSettings.Username > H.Password = LocalSettings.PW > > H.Url = sUrl > H.Async = False > H.Timeout = 600 > > H.Get > > ' Success - read the data > If Lof(H) Then sBuffer = Read #H, Lof(H) > > If H.Code = 299 Then > Error.Raise("Degapp Fehler ? Code " & H.Code & " " & sBuffer) > Endif > > If H.Status < 0 Then > Error.Raise("Connection zu Degapp kaputt. Curl Status (" & H.Status & ") kleiner 0.") > Else > H.Close > Return sBuffer > End If > Else > Error.Raise("Der Pfad f?r Degapp ist nicht definiert.") > Endif > > End Now the HttpClient object lives only inside the scope of the function. Then it leaks no file desriptors any more! If the HttpClient object exists in the scope of the class the bug occurs! Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From benoit.minisini at gambas-basic.org Sat Sep 30 12:59:30 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Sep 2023 12:59:30 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <3121e250-0dfe-3e12-35a4-d91ef417a6e7@deganius.de> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <47b90fe7-3860-49c6-9a6a-80bc3814493f@gambas-basic.org> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> <3121e250-0dfe-3e12-35a4-d91ef417a6e7@deganius.de> Message-ID: <92cb33b3-c94b-43a4-bdee-028b9a959cda@gambas-basic.org> Le 30/09/2023 ? 12:50, Christof Thalhofer a ?crit?: > Hello Fabien, hello Beno?t, > > Am 30.09.23 um 11:12 schrieb Fabien Bodard: > >> Can you try to change your get function >> >> Like This : >> >> ?? Public Function Get(sUrl as String) As String >> >> ????? Dim sBuffer As String >> >> ????? If sUrl Then >> ????????? $H = New HttpClient As "HClient" >> ????????? $H.Url = sUrl >> ????????? $H.Async = False >> ????????? $H.Timeout = 600 >> >> ????????? $H.Get >> >> ????????? ' Success - read the data >> ????????? If Lof($H) Then sBuffer = Read #$H, Lof($H) >> >> ????????? If $H.Code? 299 Then >> ????????????? Error.Raise("Degapp Fehler ? Code " & $H.Code & " " & >> sBuffer) >> ????????? Endif >> >> ????????? If $H.Status < 0 Then >> ????????????? Error.Raise("Connection zu Degapp kaputt. Curl Status (" & >> $H.Status & ") kleiner 0.") >> ????????? Else >> ????????????? $H.Close >> ????????????? Return sBuffer >> ????????? End If >> ????? Else >> ????????? Error.Raise("Der Pfad f?r Degapp ist nicht definiert.") >> ????? Endif >> >> ??? Wait >> >> ? End >> >> >> In This case any call to get generate a new HttpClient and a Wait call > > Thank you! I had the same idea this morning and did a similar thing > (except the 'Wait', but now I tried it). Meanwhile I have an extra > branch of my software just to investigate this bug. > > No change in behavior, it still leaks file descriptors ... > > but now I tested further. With this the leak is gone!: > >> 'For testing: Get with HttpClient defined in the scope of the function >> Public Function Get() As String >> ??? Dim sBuffer, sUrl As String ??? Dim H As HttpClient ??? sUrl = >> "http://degapp/1/eingaenge?" >> ??? If sUrl Then ??????? H = New HttpClient As "HClient" >> H.Auth = Net.AuthBasic >> ??????? H.User = LocalSettings.Username >> ??????? H.Password = LocalSettings.PW >> ??????? H.Url = sUrl >> ??????? H.Async = False ??????? H.Timeout = 600 >> ??????? H.Get >> ??????? ' Success - read the data ??????? If Lof(H) Then sBuffer = >> Read #H, Lof(H) >> ??????? If H.Code = 299 Then ??????????? Error.Raise("Degapp Fehler ? >> Code " & H.Code & " " & sBuffer) ??????? Endif >> ??????? If H.Status < 0 Then ??????????? Error.Raise("Connection zu >> Degapp kaputt. Curl Status (" & H.Status & ") kleiner 0.") >> Else ??????????? H.Close ??????????? Return sBuffer ??????? End If >> Else ??????? Error.Raise("Der Pfad f?r Degapp ist nicht definiert.") >> ??? Endif >> End > > Now the HttpClient object lives only inside the scope of the function. > Then it leaks no file desriptors any more! > > If the HttpClient object exists in the scope of the class the bug occurs! > > Alles Gute > > Christof Thalhofer > Still can't reproduce the leak... Can you send the full project? -- Beno?t Minisini. From chrisml at deganius.de Sat Sep 30 14:31:46 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 30 Sep 2023 14:31:46 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <92cb33b3-c94b-43a4-bdee-028b9a959cda@gambas-basic.org> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <0c8bf1c1-f410-4798-8d4e-1794e59de03b@gambas-basic.org> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> <3121e250-0dfe-3e12-35a4-d91ef417a6e7@deganius.de> <92cb33b3-c94b-43a4-bdee-028b9a959cda@gambas-basic.org> Message-ID: <58b8a44d-6233-f4e3-e37c-6becda70c0d6@deganius.de> Am 30.09.23 um 12:59 schrieb Beno?t Minisini: > Still can't reproduce the leak... Can you send the full project? No. Too much internal things in it. I'll try to reproduce it with localhost and strip down the project this evening. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From roberto.premoli at tiscali.it Sat Sep 30 17:34:00 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Sat, 30 Sep 2023 17:34:00 +0200 Subject: [Gambas-user] strange 2nd minimized window Message-ID: <2a340096aa6f9f35592772f63e696935@tiscali.it> hello. since 2 days ago, when i run with F5 my code it start and run, but also a "little stick" appears on dsiplay. I try to interact with it using mouse and it reveal to be a super minimized window, that i can resize to enlarge and move. This window has nothin inside it (o btto, nlabe, nothing), it has only the same tittle of the FMAin.form of my project and no more. I caa close it without any problem and my code go on to work. Because it appear only recently, i suppose it is some king of "debug" window. I think I had click around onto men to activate it and now, i ont know how to disable even if i navicate and see almost all menu options of IDE. Btw, it pop up also whenn i compile the projent into a .deb and istall it: beside the main wondow, also this superminimized window appear. So, i ask how to remove this apparently unusefulaand noising wndow. -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sat Sep 30 19:10:43 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 30 Sep 2023 13:10:43 -0400 Subject: [Gambas-user] strange 2nd minimized window In-Reply-To: <2a340096aa6f9f35592772f63e696935@tiscali.it> References: <2a340096aa6f9f35592772f63e696935@tiscali.it> Message-ID: <2f99635a-5867-4668-99f1-5d36c9aa135d@gmail.com> On 9/30/23 11:34, roberto.premoli at tiscali.it wrote: > hello. > since 2 days ago, when i run with F5 my code it start and run, but also a "little stick" appears on dsiplay. > I try to interact with it using mouse and it reveal to be a super minimized window, that i can resize to enlarge and move. > This window has nothin inside it (o btto, nlabe, nothing), it has only the same tittle of? the FMAin.form of my project and no more. > I caa close it without any problem and my code go on to work. > > Because it appear only recently, i suppose it is some king of "debug" window. I think I had click around onto men to activate it > and now, i ont know how to disable even if i navicate and see almost? all menu options of IDE. > Btw, it pop up also whenn i compile the projent into a .deb and istall it: beside the main wondow, also this superminimized > window appear. > > So, i ask how to remove this apparently unusefulaand noising wndow. You didn't say for sure, but it sounds like this happens with only one project. If so, perhaps check the project's '.settings' file and see if [DebugWindow] Count has a value greater than zero. I've never seen or heard of this, so I'm just guessing as to what to do. Otherwise, if it is a small project without sensitive information, please send it. Or strip it down so it can be sent to the list. -- Lee From roberto.premoli at tiscali.it Sat Sep 30 19:44:04 2023 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Sat, 30 Sep 2023 19:44:04 +0200 Subject: [Gambas-user] strange 2nd minimized window In-Reply-To: <2f99635a-5867-4668-99f1-5d36c9aa135d@gmail.com> References: <2a340096aa6f9f35592772f63e696935@tiscali.it> <2f99635a-5867-4668-99f1-5d36c9aa135d@gmail.com> Message-ID: <1d080742dba0cbc4482e5455c819ce5e@tiscali.it> Il 30.09.2023 19:10 T Lee Davidson ha scritto: > On 9/30/23 11:34, roberto.premoli at tiscali.it [1]wrote: > >> hello. since 2 days ago, when i run with F5 my code it start and >> run, >> but also a "little stick" appears on dsiplay. I try to interact with >> it >> using mouse and it reveal to be a super minimized window, that i can >> resize to enlarge and move. This window has nothin inside it (o >> btto, >> nlabe, nothing), it has only the same tittle of the FMAin.form of my >> project and no more. I caa close it without any problem and my code >> go >> on to work. Because it appear only recently, i suppose it is some >> king >> of "debug" window. I think I had click around onto men to activate >> it >> and now, i ont know how to disable even if i navicate and see almost >> all menu options of IDE. Btw, it pop up also whenn i compile the >> projent into a .deb and istall it: beside the main wondow, also this >> superminimized window appear. So, i ask how to remove this >> apparently >> unuseful and noising window. > > You didn't say for sure, but it sounds like this happens with only > one > project. If so, perhaps check the project's '.settings' > file and see if [DebugWindow] Count has a value greater than zero. > I've > never seen or heard of this, so I'm just guessing as to > what to do. > > Otherwise, if it is a small project without sensitive information, > please > send it. Or strip it down so it can be sent to the list. this happens only in this project, no on others. So it is some strange i did here. i tried to poke into .settings, also deleting it. Close gambas, reopen gambas recharge project. Than Alt+F7, then F5 but that strange "stick" still pop up. So it is some weird i did to it. Project is massive and, unfortunately, hightly sensitive so i CANNOT share around. S possoble To stripe it down and share, but code is... intricate, so i have to find what sensitive i can delete without make if crash... I trap myself in a strange and weird situation... From chrisml at deganius.de Sat Sep 30 19:56:20 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 30 Sep 2023 19:56:20 +0200 Subject: [Gambas-user] HTTPClient freeze after 40 mins with Gambas 3.18.4 In-Reply-To: <58b8a44d-6233-f4e3-e37c-6becda70c0d6@deganius.de> References: <1c7c8abf-d013-6ba9-0cba-b945d465da65@deganius.de> <599571d5-6776-4d55-a3c8-9df257194435@gambas-basic.org> <42b88c0f-b7c0-0191-fd6b-6ead6b5de5db@deganius.de> <3d4b8a09-4380-4a96-ae90-dc8cc0fd2948@gambas-basic.org> <8dea90a6-da68-44c0-bfbf-2a405a8a93d6@gambas-basic.org> <91325372-5f9f-8c15-df87-5a740ea4d90f@deganius.de> <95811c79-ca7e-4e8f-90b7-a1dee27e04c4@gambas-basic.org> <4015a0f7-8b53-4159-bd10-b62047f5aea6@gambas-basic.org> <6c59e518-ac86-4470-877b-a7c5f60d2188@gambas-basic.org> <3121e250-0dfe-3e12-35a4-d91ef417a6e7@deganius.de> <92cb33b3-c94b-43a4-bdee-028b9a959cda@gambas-basic.org> <58b8a44d-6233-f4e3-e37c-6becda70c0d6@deganius.de> Message-ID: <5187022a-c6ca-8e9a-ae38-ad9e007aef72@deganius.de> Am 30.09.23 um 14:31 schrieb Christof Thalhofer: > Am 30.09.23 um 12:59 schrieb Beno?t Minisini: > >> Still can't reproduce the leak... Can you send the full project? > > No. Too much internal things in it. I'll try to reproduce it with > localhost and strip down the project this evening. I reported a new bug, there you can find the projects and a video: http://gambaswiki.org/bugtracker/edit?object=BUG.2793 Can you confirm? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From gradobag at gradobag.it Sat Sep 30 23:08:36 2023 From: gradobag at gradobag.it (Gianluigi) Date: Sat, 30 Sep 2023 23:08:36 +0200 Subject: [Gambas-user] Error compiling gb.web etc. Message-ID: <0a594143-a5a0-1194-a49c-89a4b438db7b@gradobag.it> Hi Benoit, the terminal writes this: Compiling 'gb.web.form' component... gbc3: error: Component not found: gb.web Compiling 'gb.web.gui' component... gbc3: error: Component not found: gb.web ... || || Unable to compile 'gb.web' component || Unable to compile 'gb.web.form' component || Unable to compile 'gb.web.gui' component || Regards Gianluigi From benoit.minisini at gambas-basic.org Sat Sep 30 23:20:03 2023 From: benoit.minisini at gambas-basic.org (=?UTF-8?Q?Beno=C3=AEt_Minisini?=) Date: Sat, 30 Sep 2023 23:20:03 +0200 Subject: [Gambas-user] Error compiling gb.web etc. In-Reply-To: <0a594143-a5a0-1194-a49c-89a4b438db7b@gradobag.it> References: <0a594143-a5a0-1194-a49c-89a4b438db7b@gradobag.it> Message-ID: Le 30/09/2023 ? 23:08, Gianluigi a ?crit?: > Hi Benoit, > > the terminal writes this: > > Compiling 'gb.web.form' component... > gbc3: error: Component not found: gb.web > Compiling 'gb.web.gui' component... > gbc3: error: Component not found: gb.web > ... > > || > || Unable to compile 'gb.web' component > || Unable to compile 'gb.web.form' component > || Unable to compile 'gb.web.gui' component > || > > > Regards > > Gianluigi > It should be better now. Regards, -- Beno?t Minisini. From gradobag at gradobag.it Sat Sep 30 23:37:27 2023 From: gradobag at gradobag.it (Gianluigi) Date: Sat, 30 Sep 2023 23:37:27 +0200 Subject: [Gambas-user] Error compiling gb.web etc. In-Reply-To: References: <0a594143-a5a0-1194-a49c-89a4b438db7b@gradobag.it> Message-ID: <9770a0ef-c0e3-f309-d1ff-e402befee171@gradobag.it> Il 30/09/23 23:20, Beno?t Minisini ha scritto: > It should be better now. Yes, it's OK now A thousand thanks :-) Regards Gianluigi