From taboege at gmail.com Fri Jan 1 02:44:22 2021 From: taboege at gmail.com (Tobias Boege) Date: Fri, 1 Jan 2021 02:44:22 +0100 Subject: [Gambas-user] BSD gambas compile In-Reply-To: References: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> <20201231163132.GD1282@highrise.localdomain> <20201231190448.GE1282@highrise.localdomain> Message-ID: <20210101014422.GF1282@highrise.localdomain> On Thu, 31 Dec 2020, Bruce Steers wrote: > Do not fret Tobias. > I have a knack for looking at things alternatively. > The double $$ is not something I've used before so issued that line as I > would have done. I tried a number of other things too till I found the > issue. > > Why? You ask. Lol, I'm sure we've both been at this long enough to know, > god knows why it works better that way, but it does ? > > And yes I've checked the output trunk_version.h file against original and > using changes on bsd and linux. > Tis all good ? > I found my old Raspberry Pi (model B from 2012) and installed FreeBSD on it. (If you thought your VM was slow...) I can confirm that the current master branch does not produce trunk_version.h on FreeBSD and that your change fixes that, but it does so for the wrong reasons :-P The *reason* for the failure I was asking for is this incompatibility in the `test` utility between my GNU coreutils on Linux and the FreeBSD version: gnulinux$ test existing_file -nt nonexisting_file ; echo $? 0 freebsd% test existing_file -nt nonexisting_file ; echo $? 1 Such a check is employed in the make recipe to decide whether to remake the trunk_version.h file. On FreeBSD, this check passes silently without creating trunk_version.h. Your change actually breaks the check into always succeeding because the $GIT_BRANCH variable is evaluated too early -- in make context, instead of in shell context. Thus the shell command executed from make checks for the presence of the ../.git/refs/heads/IT_BRANCH file which does not exist normally. (The $G part of $GIT_BRANCH is evaluated away to the empty string already in make, because you removed one layer of dollars. You can observe this by removing the @-silencer from the trunk_version.h recipe in the generated Makefile.) This may appear good enough, because the correct data ends up in the correct header file, but it causes the compiler and interpreter to be partially recompiled unconditionally every time you recompile Gambas, because the header file is unconditionally rewritten with the same data every time you call `make` and hence appears to the build process as if it contains new data. My alternative fix is attached. You may want to integrate it into your patch set of other BSD compile fixes in place of your latest commit. Or I can apply it to master directly if Beno?t agrees. And a late happy new year from UTC+0100! Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- >From 0bbd6cb5d273171b4d53662dc1ec377760598c96 Mon Sep 17 00:00:00 2001 From: Tobias Boege Date: Thu, 31 Dec 2020 23:46:44 +0100 Subject: [PATCH] Fix generation of trunk_version.h on BSD [CONFIGURATION] * BUG: Do not rely on `test a -nt b` to be true when a exists and b does not. This does not appear to hold true on (Free)BSD. --- main/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/Makefile.am b/main/Makefile.am index b23d7963a..56e581438 100644 --- a/main/Makefile.am +++ b/main/Makefile.am @@ -7,12 +7,12 @@ CLEANFILES = trunk_version.h .PHONY: trunk_version.h trunk_version.h: @if test -d ../.svn ; then \ - if test ../.svn/wc.db -nt trunk_version.h || test ../.svn/entries -nt trunk_version.h; then \ + if test \! -e trunk_version.h -o ../.svn/wc.db -nt trunk_version.h -o ../.svn/entries -nt trunk_version.h; then \ echo '#define TRUNK_VERSION "'`LC_ALL=C svn info 2>/dev/null | grep Revision | egrep -wo [0-9]+`'"' > trunk_version.h; \ fi \ elif test -d ../.git ; then \ GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`; \ - if test \! -e ../.git/refs/heads/$$GIT_BRANCH -o ../.git/refs/heads/$$GIT_BRANCH -nt trunk_version.h; then \ + if test \! -e trunk_version.h -o \! -e ../.git/refs/heads/$$GIT_BRANCH -o ../.git/refs/heads/$$GIT_BRANCH -nt trunk_version.h; then \ if GIT_TAG=$$(git describe --exact-match $$GIT_BRANCH 2>/dev/null) ; then \ GIT_BRANCH="$$GIT_TAG"; \ fi; \ -- 2.28.0 From olivier.cruilles at yahoo.fr Fri Jan 1 02:53:29 2021 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Thu, 31 Dec 2020 20:53:29 -0500 Subject: [Gambas-user] Happy new year 2021 References: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2.ref@yahoo.fr> Message-ID: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> Hello all, Happy new year 2021 and best gambas to all. Thank you Benoit for all the best work you give us with gambas. Now 15 years I discovered Gambas and I still amaze by this language. Olivier Cruilles From gambas.fr at gmail.com Fri Jan 1 03:30:06 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 1 Jan 2021 03:30:06 +0100 Subject: [Gambas-user] Happy new year 2021 In-Reply-To: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> References: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2.ref@yahoo.fr> <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> Message-ID: Happy new year to all gambasian, I wish all the best for this new 2021 year Thank you to Beno?t for this great exp?rience and the powerfull tool you give and maintain for us since more than 20 year now.. yes I fall in live since 20 year now ?. 2001 feb -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Fri Jan 1 09:17:17 2021 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Fri, 01 Jan 2021 11:17:17 +0300 Subject: [Gambas-user] =?utf-8?q?Happy_new_year_2021?= In-Reply-To: References: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2.ref@yahoo.fr> <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> Message-ID: <1609489037.517526196@f4.my.com> Happy New year to everyone, thanks Ben for all the amazing work. -- Thanks Brian Thursday, 31 December 2020, 06:31PM -08:00 from Fabien Bodard gambas.fr at gmail.com : >Happy new year to all gambasian, I wish all the best for this new 2021 year > >Thank you to Beno?t for this great exp?rience and the powerfull tool you give and maintain for us since more than 20 year now.. yes I fall in live since 20 year now ?. 2001 feb > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean-yvon.renaut at wanadoo.fr Fri Jan 1 09:44:21 2021 From: jean-yvon.renaut at wanadoo.fr (Jean-Yvon) Date: Fri, 1 Jan 2021 09:44:21 +0100 Subject: [Gambas-user] Happy new year 2021 In-Reply-To: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> References: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2.ref@yahoo.fr> <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> Message-ID: <1fbe1bff-b320-b002-d770-7e7f54b39e84@wanadoo.fr> Hello all i wish all an happy and best new year Jean-Yvon Le 01/01/2021 ? 02:53, Yahoo via User a ?crit?: > Hello all, > > Happy new year 2021 and best gambas to all. > > Thank you Benoit for all the best work you give us with gambas. > > Now 15 years I discovered Gambas and I still amaze by this language. > > Olivier Cruilles > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bagonergi at gmail.com Fri Jan 1 10:24:47 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 1 Jan 2021 10:24:47 +0100 Subject: [Gambas-user] Happy new year 2021 In-Reply-To: <1fbe1bff-b320-b002-d770-7e7f54b39e84@wanadoo.fr> References: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2.ref@yahoo.fr> <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> <1fbe1bff-b320-b002-d770-7e7f54b39e84@wanadoo.fr> Message-ID: I join in your wishes for a happy 2021 and thanks to Benoit. I had tried Linux in 2004 but had given up on it, too difficult for my poor skills. I discovered Gambas in 2014 and thanks to Gambas I am now already 7 happy years with Linux. Thanks Benoit ! Gianluigi P.S. Va te faire foutre 2020 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Fri Jan 1 10:25:41 2021 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 1 Jan 2021 11:25:41 +0200 Subject: [Gambas-user] fill color WebProgressBar In-Reply-To: <6161558b-e2ae-a798-bdb9-40823c5a2844@gmail.com> References: <20201223210527.M89504@455.co.il> <6161558b-e2ae-a798-bdb9-40823c5a2844@gmail.com> Message-ID: <20210101091805.M16286@455.co.il> ---------- Original Message ----------- From: Beno?t Minisini To: user at lists.gambas-basic.org Sent: Thu, 31 Dec 2020 01:33:01 +0100 Subject: Re: [Gambas-user] fill color WebProgressBar > Le 23/12/2020 ? 22:08, Mayost Sharon a ?crit?: > > hello > > > > How to change the fill color of the WebProgressBar > > > > Thanks > > > > By using a custom style sheet. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- I tried: WebProgressBar1.Style["background"] = "green" WebProgressBar1.Refresh This replaces the overall background And not the filling thenk From bsteers4 at gmail.com Fri Jan 1 17:15:05 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 1 Jan 2021 16:15:05 +0000 Subject: [Gambas-user] BSD gambas compile In-Reply-To: <20210101014422.GF1282@highrise.localdomain> References: <561eaf2a-c44a-554a-5836-eb67747f4ed3@gmail.com> <20201231163132.GD1282@highrise.localdomain> <20201231190448.GE1282@highrise.localdomain> <20210101014422.GF1282@highrise.localdomain> Message-ID: > > > And yes I've checked the output trunk_version.h file against original and > > using changes on bsd and linux. > > Tis all good ? > > > > I found my old Raspberry Pi (model B from 2012) and installed FreeBSD on > it. > (If you thought your VM was slow...) I can confirm that the current master > branch does not produce trunk_version.h on FreeBSD and that your change > fixes that, but it does so for the wrong reasons :-P > Aah , Thank you Tobias for taking the time, yes like i said i have never used or seen that double dollar method. I applied a little tweak here and there and was testing on linux and bsd. I'm very glad you stepped in there to make things right :) (ironically when i read that i was compiling on my Pi too (but Raspbian) lol, took a couple of hours to fully compile :-\ ) > My alternative fix is attached. You may want to integrate it into your > patch set of other BSD compile fixes in place of your latest commit. > Or I can apply it to master directly if Beno?t agrees. > Cheers, have applied your code to my main-bsd branch. I think this fix and the #ifndef condition i applied to main/gbx/gbx_c_file.c should be applied to master. then there is just the issue with the rmdir command and gambas is fully BSD compliant. then i could remove my branch. Or another alternative i guess would be If Ben made a BSD branch for BSD users To be honest , i'm initially finding a number of issues going on with gambas and BSD, it's not right at all. I just ran sudo in a gambas terminalview app and it said it needed a terminal :-\ things like a sliderbox is not displaying text properly in the value box (as are a number of other textbox controls) Benoit.. Do you want bug reports for BSD? (there could be a fair few) > And a late happy new year from UTC+0100! > Tobias > Likewise dude, lets hope this year things get better for all :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 1 17:21:51 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 1 Jan 2021 17:21:51 +0100 Subject: [Gambas-user] fill color WebProgressBar In-Reply-To: <20210101091805.M16286@455.co.il> References: <20201223210527.M89504@455.co.il> <6161558b-e2ae-a798-bdb9-40823c5a2844@gmail.com> <20210101091805.M16286@455.co.il> Message-ID: Le 01/01/2021 ? 10:25, Mayost Sharon a ?crit?: > > ---------- Original Message ----------- > From: Beno?t Minisini > To: user at lists.gambas-basic.org > Sent: Thu, 31 Dec 2020 01:33:01 +0100 > Subject: Re: [Gambas-user] fill color WebProgressBar > >> Le 23/12/2020 ? 22:08, Mayost Sharon a ?crit?: >>> hello >>> >>> How to change the fill color of the WebProgressBar >>> >>> Thanks >>> >> >> By using a custom style sheet. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ------- End of Original Message ------- > > I tried: > > WebProgressBar1.Style["background"] = "green" > WebProgressBar1.Refresh > > This replaces the overall background > And not the filling > > thenk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I was talking about the custom style sheet of your project, i.e. the 'style.css' file you put in the 'Public' folder. And you must use the debugger mode of your browser to check which CSS class you have to modify exactly. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Fri Jan 1 17:42:51 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 1 Jan 2021 16:42:51 +0000 Subject: [Gambas-user] Happy new year 2021 In-Reply-To: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> References: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2.ref@yahoo.fr> <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> Message-ID: Happy new year all. Much love and respect to all from the Isle of wight UK. Ultimate thanks to Benoit for the phenomenon that is Gambas, not sure how many years i've been using it but it was Gambas2 when i started. Thanks for the software, the listening and understanding of all us users (especially this one) and all our requests. Thanks for opportunity to be some small part of a community of creatives, and for the opportunity to be able to put back into something i have got so much out of over the years. i think the next gambas is going to be awesome and practically bug free at this rate :) Thanks to ALL the Gambas team (you know who you are) and apologies if needed, I know I can be a dick as times, i hope i have more good points than bad points though , I think me heart is in the right place ;) Thanks for the help, the correcting my misunderstandings, the time. Thank you. Here's for things getting better , even if we have to do it ourselves....... Much love to the Gambas family <3 Bruce Steers -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 1 18:29:31 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 1 Jan 2021 18:29:31 +0100 Subject: [Gambas-user] Happy new year 2021 In-Reply-To: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> References: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2.ref@yahoo.fr> <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> Message-ID: <7724a453-23e8-9aaa-0c38-a26ac83988cd@gmail.com> Le 01/01/2021 ? 02:53, Yahoo via User a ?crit?: > Hello all, > > Happy new year 2021 and best gambas to all. > > Thank you Benoit for all the best work you give us with gambas. > > Now 15 years I discovered Gambas and I still amaze by this language. > > Olivier Cruilles > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Happy new year to all of you! I wish the best for everyone. Even if I think that 2021 will be worst than 2020, we must keep hope. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Fri Jan 1 18:30:53 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 1 Jan 2021 18:30:53 +0100 Subject: [Gambas-user] Happy new year 2021 In-Reply-To: <7724a453-23e8-9aaa-0c38-a26ac83988cd@gmail.com> References: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2.ref@yahoo.fr> <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> <7724a453-23e8-9aaa-0c38-a26ac83988cd@gmail.com> Message-ID: <13a4bdf2-6daf-b3cf-beeb-e7e5413f7ca2@gmail.com> Le 01/01/2021 ? 18:29, Beno?t Minisini a ?crit?: > > Happy new year to all of you! > > I wish the best for everyone. Even if I think that 2021 will be worst Oops --> worse. -- Beno?t Minisini From bsteers4 at gmail.com Fri Jan 1 18:59:47 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 1 Jan 2021 17:59:47 +0000 Subject: [Gambas-user] Happy new year 2021 In-Reply-To: <7724a453-23e8-9aaa-0c38-a26ac83988cd@gmail.com> References: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2.ref@yahoo.fr> <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> <7724a453-23e8-9aaa-0c38-a26ac83988cd@gmail.com> Message-ID: > Happy new year to all of you! > > I wish the best for everyone. Even if I think that 2021 will be worst > than 2020, we must keep hope. > Let's hope for the best for all, there is always a way, even if it's not the exact right way the effort towards trying as best we can can result in the right things happening with some interaction of the more knowledgable. (sound familiar? ;) ) #DebugTheWorld ;) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.roper at iinet.net.au Sat Jan 2 06:36:24 2021 From: ian.roper at iinet.net.au (Ian Roper) Date: Sat, 2 Jan 2021 13:36:24 +0800 Subject: [Gambas-user] My instance of Gambas not starting after update this morning. Message-ID: <36d13f29-9667-21a5-e418-de0054e7f006@iinet.net.au> Used Gambas earlier this morning without issue. Closed it down and did the update No longer starts. Using PPA gambas-team/gambas-daily Error Message from typing 'gambas3' into the console. ================================================== gb.gui: warning: 'gb.gtk3.webview' component not found, using 'gb.qt5' instead qt5ct: using qt5ct plugin ** ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( ** Cannot find interface of library 'gb.qt5.x11' ** ** ERROR: #27: Cannot load component 'gb.qt5.x11': cannot find component ** ** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2]. ** [1] http://gambaswiki.org/bugtracker ** [2] https://lists.gambas-basic.org/listinfo/user Cheers, IR From brian at westwoodsvcs.com Sat Jan 2 14:43:19 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 2 Jan 2021 05:43:19 -0800 (PST) Subject: [Gambas-user] Todays daily, issue Message-ID: <416784242.2211.1609594999967.JavaMail.zimbra@westwoodsvcs.com> ** ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( ** Cannot find interface of library 'gb.gtk3.x11' ** ** ERROR: #27: Cannot load component 'gb.gtk3.x11': cannot find component ** ** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2]. ** [1] http://gambaswiki.org/bugtracker ** [2] https://lists.gambas-basic.org/listinfo/user ** Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jan 2 14:58:23 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jan 2021 14:58:23 +0100 Subject: [Gambas-user] Todays daily, issue In-Reply-To: <416784242.2211.1609594999967.JavaMail.zimbra@westwoodsvcs.com> References: <416784242.2211.1609594999967.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 02/01/2021 ? 14:43, Brian G a ?crit?: > ** > ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( > ** Cannot find interface of library 'gb.gtk3.x11' > ** > ** ERROR: #27: Cannot load component 'gb.gtk3.x11': cannot find component > ** > ** Please send a bug report to the gambas bugtracker [1] or to the > gambas mailing-list [2]. > ** [1] http://gambaswiki.org/bugtracker > ** [2] https://lists.gambas-basic.org/listinfo/user > ** > > Thank You > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I'm working on it... -- Beno?t Minisini From mbelmonte at belmotek.net Sat Jan 2 16:57:43 2021 From: mbelmonte at belmotek.net (Martin) Date: Sat, 2 Jan 2021 16:57:43 +0100 Subject: [Gambas-user] Happy new year 2021 In-Reply-To: References: <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2.ref@yahoo.fr> <626ABE2D-1964-4BD1-9AA7-575A3AB3A8B2@yahoo.fr> Message-ID: <3dced051-c51f-7251-9585-0417a624a08f@belmotek.net> This past year has been difficult, I hope that this 2021 that we have just released will be better than the previous one, being realistic it probably is not. But knowing that there are altruistic people on the other side of the network cable, in this case gambas3 developers, makes one more capable of facing some everyday problems with more knowledge, more power. Thanks for making Gambas3, in my case it allowed me to make programs that I could not do otherwise. Thanks Beno?t and everyone who makes this IDE better every day. I wish you a good 2021. Mart?n Belmonte. El 1/1/21 a las 3:30, Fabien Bodard escribi?: > Happy new year to all gambasian, I wish all the best for this new 2021 > year > > Thank you to Beno?t for this great exp?rience and the powerfull tool > you give and maintain for us since more than 20 year now.. yes I fall > in live since 20 year now ?. 2001 feb > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jan 2 19:06:06 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jan 2021 19:06:06 +0100 Subject: [Gambas-user] Gambas daily ppa now working again Message-ID: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> Hi, The gambas daily ppa should work again, except the packages for Ubuntu 12.04 that do not compile. This will be fixed later. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 2 19:07:18 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jan 2021 19:07:18 +0100 Subject: [Gambas-user] Gambas daily ppa now working again In-Reply-To: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> References: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> Message-ID: <1689f2ff-eb46-c758-4216-b568b155e3ec@gmail.com> Le 02/01/2021 ? 19:06, Beno?t Minisini a ?crit?: > Hi, > > The gambas daily ppa should work again, except the packages for Ubuntu > 12.04 that do not compile. This will be fixed later. > > Regards, > I had to change the package versioning number: if updating does not work, tell me, and uninstall the old daily ppa packages before installing them again. Regards, -- Beno?t Minisini From gambas.fr at gmail.com Sat Jan 2 21:35:44 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 2 Jan 2021 21:35:44 +0100 Subject: [Gambas-user] Stock In-Reply-To: References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> Message-ID: Ok this was a problem from the stock class ... gnome have evolved from gconf to dconf ... and cinamon is not gnome . Now you can call all wanted icons like that and it come with the accurate theme. hPic = Picture["icon:/16/devices/drive-removable-media-usb"] regards From gambas.fr at gmail.com Sat Jan 2 21:41:32 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 2 Jan 2021 21:41:32 +0100 Subject: [Gambas-user] gb.disk Message-ID: This is a small class based on udisk2 dbus that allow to display disks (blocks) and related info to their drive. I've voluntary reduced the number of infos to those I think needed but maybe there is alway too many. then I want to integrate that to the gambas tree and add the view part to gambas form to be able to navigate on sd or usb thumb drive from gambas dialogs. -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.disks-0.0.2.tar.gz Type: application/gzip Size: 14722 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture d??cran du 2021-01-02 21-41-12.png Type: image/png Size: 27892 bytes Desc: not available URL: From g4mba5 at gmail.com Sat Jan 2 21:50:37 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jan 2021 21:50:37 +0100 Subject: [Gambas-user] Stock In-Reply-To: References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> Message-ID: <4ad394db-1426-9a63-b9a9-c2db2e6fb1b9@gmail.com> Le 02/01/2021 ? 21:35, Fabien Bodard a ?crit?: > > Now you can call all wanted icons like that and it come with the > accurate theme. > > hPic = Picture["icon:/16/devices/drive-removable-media-usb"] > > regards > I don't want that feature: Picture["icon:/..."] is for Gambas stock icons, not for freedesktop icons (or whatever their real name is, icon names being not standardized). Can you remove it? Accessing icons by freedesktop name through themes should be implemented in the 'gb.desktop' component. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 2 21:52:38 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jan 2021 21:52:38 +0100 Subject: [Gambas-user] gb.disk In-Reply-To: References: Message-ID: <6268e253-6171-97a1-0dd2-752071359d76@gmail.com> Le 02/01/2021 ? 21:41, Fabien Bodard a ?crit?: > This is a small class based on udisk2 dbus that allow to display disks > (blocks) and related info to their drive. > > I've voluntary reduced the number of infos to those I think needed but > maybe there is alway too many. > > then I want to integrate that to the gambas tree and add the view part > to gambas form to be able to navigate on sd or usb thumb drive from > gambas dialogs. > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > You must be aware that 'gb.dbus' is not necessarily available, and so the directory controls must adapt. -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 2 22:40:43 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jan 2021 22:40:43 +0100 Subject: [Gambas-user] Stock In-Reply-To: References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> Message-ID: <7a8eeadd-e81f-bfd9-8b25-b7414d765102@gmail.com> Le 02/01/2021 ? 21:35, Fabien Bodard a ?crit?: > Ok this was a problem from the stock class ... gnome have evolved from > gconf to dconf ... OK, but you must not remove the use of gconf! A system can use an old version of gnome. And you should have factorized the code using 'dconf'... Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 2 22:51:29 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jan 2021 22:51:29 +0100 Subject: [Gambas-user] Stock In-Reply-To: <7a8eeadd-e81f-bfd9-8b25-b7414d765102@gmail.com> References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> <7a8eeadd-e81f-bfd9-8b25-b7414d765102@gmail.com> Message-ID: Le 02/01/2021 ? 22:40, Beno?t Minisini a ?crit?: > Le 02/01/2021 ? 21:35, Fabien Bodard a ?crit?: >> Ok this was a problem from the stock class ... gnome have evolved from >> gconf to dconf ... > > OK, but you must not remove the use of gconf! A system can use an old > version of gnome. > > And you should have factorized the code using 'dconf'... > > Regards, > OK, I have restored the use of 'gconf', and merged the detection of 'gnome', 'mate' & 'cinnamon' desktops. Regards, -- Beno?t Minisini From amicolinux at linuxmail.org Sat Jan 2 23:09:27 2021 From: amicolinux at linuxmail.org (Ridolfi Simone) Date: Sat, 2 Jan 2021 23:09:27 +0100 Subject: [Gambas-user] Gambas manuals for beginners ... possibly free Message-ID: <622ebdcb-1844-bdd4-b0ce-38da548fdfa4@linuxmail.org> Hello everyone, since now due to the current situation I have a lot of free time I thought I was learning a programming language under linux and I thought about gamabs given its similarity with visual basic (with which I have already had to do) but looking on the net I found little material on this language and therefore I wanted to ask you if anyone has any idea where to find the manuals of the latest versions of gambas and that they are suitable for a neophyte .. if they are free I would be really happy. Thank you all Simone From gambas.fr at gmail.com Sat Jan 2 23:24:15 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 2 Jan 2021 23:24:15 +0100 Subject: [Gambas-user] Stock In-Reply-To: References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> <7a8eeadd-e81f-bfd9-8b25-b7414d765102@gmail.com> Message-ID: This was not a feature I've added . But somethinh that exist already ?. Ok I 'm agree for gconf I've maybe underevaluate the need for older distribution. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 2 23:34:01 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 2 Jan 2021 22:34:01 +0000 Subject: [Gambas-user] Gambas manuals for beginners ... possibly free In-Reply-To: <622ebdcb-1844-bdd4-b0ce-38da548fdfa4@linuxmail.org> References: <622ebdcb-1844-bdd4-b0ce-38da548fdfa4@linuxmail.org> Message-ID: Welcome to the wonderful world of gambas basic :) There is a good book called "Beginners Guide To Gambas" you can buy the book and i think there are also a few free ebook downloads of it too. The IDE is very intuitive in the way help pops up describing how to use things as you type them. Pressing the Ctrl key on words in the IDE can pop open the help on what you clicked. There are also many example programs on the software farm, some quite simple and with explanations that can be a very good way to learn, by examples :) Wishing well BruceS On Sat, 2 Jan 2021 at 22:15, Ridolfi Simone wrote: > Hello everyone, since now due to the current situation I have a lot of > free time I thought I was learning a programming language under linux > and I thought about gamabs given its similarity with visual basic (with > which I have already had to do) but looking on the net I found little > material on this language and therefore I wanted to ask you if anyone > has any idea where to find the manuals of the latest versions of gambas > and that they are suitable for a neophyte .. if they are free I would be > really happy. > > Thank you all > > Simone > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jan 3 00:24:23 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jan 2021 00:24:23 +0100 Subject: [Gambas-user] Stock In-Reply-To: References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> <7a8eeadd-e81f-bfd9-8b25-b7414d765102@gmail.com> Message-ID: <1ba66639-23df-91a7-080b-4b8781e57a8e@gmail.com> Le 02/01/2021 ? 23:24, Fabien Bodard a ?crit?: > This was not a feature I've added . But somethinh that exist already ?. > > Ok I 'm agree for gconf I've maybe underevaluate the need for older > distribution. > I'm trying to make Gambas compile on Ubuntu 12.04! -- Beno?t Minisini From gambas.fr at gmail.com Sun Jan 3 00:32:13 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 3 Jan 2021 00:32:13 +0100 Subject: [Gambas-user] gb.disk In-Reply-To: <6268e253-6171-97a1-0dd2-752071359d76@gmail.com> References: <6268e253-6171-97a1-0dd2-752071359d76@gmail.com> Message-ID: Le sam. 2 janv. 2021 ? 21:53, Beno?t Minisini a ?crit : > > Le 02/01/2021 ? 21:41, Fabien Bodard a ?crit : > > This is a small class based on udisk2 dbus that allow to display disks > > (blocks) and related info to their drive. > > > > I've voluntary reduced the number of infos to those I think needed but > > maybe there is alway too many. > > > > then I want to integrate that to the gambas tree and add the view part > > to gambas form to be able to navigate on sd or usb thumb drive from > > gambas dialogs. > > > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > You must be aware that 'gb.dbus' is not necessarily available, and so > the directory controls must adapt. Maybe I need to add a thing based on lsblk for the case where dbus is not available ? Well after all I think I must to re-write the class with less things but more accurate to what I want to do. Less properties and more easy to overdrive. So I can work with the both ways DBus and lsblk/mount and other devices info on the other hand....And on the need tools for BSD. The main goal will be to display connected devices, getting their mount points and if possible detect when something change (plug/unplug/mounting). No more. And some simple functions like Mounting/unmounting. A Base Class (Blocks) will allow to list the available Blocks (_Block), and rely them to their devices (_Drive). What did you think about that Way ? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From gambas.fr at gmail.com Sun Jan 3 00:33:03 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 3 Jan 2021 00:33:03 +0100 Subject: [Gambas-user] Stock In-Reply-To: <1ba66639-23df-91a7-080b-4b8781e57a8e@gmail.com> References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> <7a8eeadd-e81f-bfd9-8b25-b7414d765102@gmail.com> <1ba66639-23df-91a7-080b-4b8781e57a8e@gmail.com> Message-ID: > > > > I'm trying to make Gambas compile on Ubuntu 12.04! > 8 year .... Wow > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Sun Jan 3 00:27:58 2021 From: vuott at tiscali.it (vuott at tiscali.it) Date: Sun, 03 Jan 2021 00:27:58 +0100 Subject: [Gambas-user] Gambas manuals for beginners ... possibly free In-Reply-To: <622ebdcb-1844-bdd4-b0ce-38da548fdfa4@linuxmail.org> References: <622ebdcb-1844-bdd4-b0ce-38da548fdfa4@linuxmail.org> Message-ID: While waiting for a manual, I suggest a visit to these websites: - http://gambas.sourceforge.net/en/main.html - http://gambaswiki.org/wiki - https://gambas-es.org/ - https://foro.gambas-es.org/forum.php - http://www.gambasforge.org/ - http://www.gambas-club.de/index.php - https://forum.gambas.one/ - http://www.gambaslinux.fr/ - http://89.234.156.109/ - https://www.gambas-it.org/smf/ - http://www.gambas-it.org/wiki/index.php?title=Pagina_principale - https://gambas-buch.de/dwen/doku.php - https://de.wikibooks.org/wiki/Gambas - http://www.gambasforge.org/wiki - http://sologambas.blogspot.it/p/indice.html - https://cursogambas.blogspot.com/p/indice.html - https://pigalore.miraheze.org/wiki/Main_Page - http://icculus.org/piga/ - http://gambaswiki.org/wiki/doc/book?nh&l=en - https://en.wikibooks.org/wiki/Programming_Gambas_from_Zip - https://wordpress.gambas.one/a-book-by-gerry-buzolic/ Il 02.01.2021 23:09 Ridolfi Simone ha scritto: > Hello everyone, since now due to the current situation I have a lot of > free time I thought I was learning a programming language under linux > and I thought about gamabs given its similarity with visual basic (with > which I have already had to do) but looking on the net I found little > material on this language and therefore I wanted to ask you if anyone > has any idea where to find the manuals of the latest versions of gambas > and that they are suitable for a neophyte .. if they are free I would be > really happy. > > Thank you all > > Simone > > ----[ http://gambaswiki.org/wiki/doc/netiquette [1] ]---- Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99? al mese. http://tisca.li/smart30 -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jan 3 01:01:17 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jan 2021 01:01:17 +0100 Subject: [Gambas-user] gb.disk In-Reply-To: References: <6268e253-6171-97a1-0dd2-752071359d76@gmail.com> Message-ID: Le 03/01/2021 ? 00:32, Fabien Bodard a ?crit?: > > A Base Class (Blocks) will allow to list the available Blocks > (_Block), and rely them to their devices (_Drive). > > What did you think about that Way ? > I'd like to have: 1) A static class "Disks" that allows to enumerate "Disk" objects. These "Disk" objects are the udisk2 "blocks". 2) The "Disk" object may give access to a "Drive" object that represents the udisk2 "drive". 3) A dynamic class to watch the changes in the disks. Maybe the "Disks" class can be used too: all "Disks" objects will internally share the same static disk data. The "Disks" class will have the "CREATE STATIC" flag so that it can be used statically (for enumerating) and dynamically (for watching). 4) You must handle errors. When you mount or unmount disks for example. And you have to return error messages if possible. Regards, -- Beno?t Minisini From tmorehen at ajm-software.com Sun Jan 3 02:29:11 2021 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 2 Jan 2021 20:29:11 -0500 Subject: [Gambas-user] Stock In-Reply-To: <4ad394db-1426-9a63-b9a9-c2db2e6fb1b9@gmail.com> References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> <4ad394db-1426-9a63-b9a9-c2db2e6fb1b9@gmail.com> Message-ID: <6745693d-4b2e-9b35-1262-71b8eaea6807@ajm-software.com> Why not use Picture["theme/..."] to access freedesktop icons? Instead of "theme", you could use "themeicon", "freedesktop", "freedesktopicon", "desktop", "desktopicon" or whatever. This could be done either as a re-write to the current picture class as it won't impact current uses or as a sub-class of Picture in the gb.desktop component. BTW, you don't need the "devices" sub-path.? Freedesktop icon names are unique.? Benoit is right about theme icon names not being standardized.? Some are organized theme/class/size and some theme/size/class On 2021-01-02 3:50 p.m., Beno?t Minisini wrote: > Le 02/01/2021 ? 21:35, Fabien Bodard a ?crit?: >> >> Now you can call all wanted icons? like that and it come with the >> accurate theme. >> >> ? hPic = Picture["icon:/16/devices/drive-removable-media-usb"] >> >> regards >> > > I don't want that feature: Picture["icon:/..."] is for Gambas stock > icons, not for freedesktop icons (or whatever their real name is, icon > names being not standardized). > > Can you remove it? > > Accessing icons by freedesktop name through themes should be > implemented in the 'gb.desktop' component. > > Regards, > From sharon at 455.co.il Sun Jan 3 10:15:20 2021 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 3 Jan 2021 11:15:20 +0200 Subject: [Gambas-user] fill color WebProgressBar In-Reply-To: References: <20201223210527.M89504@455.co.il> <6161558b-e2ae-a798-bdb9-40823c5a2844@gmail.com> <20210101091805.M16286@455.co.il> Message-ID: <20210103091039.M91756@455.co.il> ---------- Original Message ----------- From: Beno?t Minisini To: user at lists.gambas-basic.org Sent: Fri, 1 Jan 2021 17:21:51 +0100 Subject: Re: [Gambas-user] fill color WebProgressBar > Le 01/01/2021 ? 10:25, Mayost Sharon a ?crit?: > > > > ---------- Original Message ----------- > > From: Beno?t Minisini > > To: user at lists.gambas-basic.org > > Sent: Thu, 31 Dec 2020 01:33:01 +0100 > > Subject: Re: [Gambas-user] fill color WebProgressBar > > > >> Le 23/12/2020 ? 22:08, Mayost Sharon a ?crit?: > >>> hello > >>> > >>> How to change the fill color of the WebProgressBar > >>> > >>> Thanks > >>> > >> > >> By using a custom style sheet. > >> > >> Regards, > >> > >> -- > >> Beno?t Minisini > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ------- End of Original Message ------- > > > > I tried: > > > > WebProgressBar1.Style["background"] = "green" > > WebProgressBar1.Refresh > > > > This replaces the overall background > > And not the filling > > > > thenk > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > I was talking about the custom style sheet of your project, i.e. the > 'style.css' file you put in the 'Public' folder. > > And you must use the debugger mode of your browser to check which CSS > class you have to modify exactly. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- First of all thank you very much If I change in the 'style.css' file it changes at all I wanted to give a different color to the control: WebProgressBar1 WebProgressBar2 WebProgressBar3 Is it possible? Thank you From hans at gambas-buch.de Sun Jan 3 12:14:18 2021 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 3 Jan 2021 12:14:18 +0100 Subject: [Gambas-user] SetCookie/DeleteCookie Message-ID: <0c607441-e71c-1c68-4932-67467a89d7f2@gambas-buch.de> Hello. I still use the WebPage class for creating web pages, because gb.web.form is considered obsolete, gb.web.gui is hidden in the project settings and the syntax suits me because I know the PHP language well. I would like to work on the following 2 tasks: * Set a cookie with the name "N", the value "V" and a lifetime "E" of 1 hour (for example). * Deleting the cookie before "E" expires. At the moment I can't find an approach for both solutions. In addition, I have no idea how to control the setting and deletion of the cookie. Can anyone help me with tips and source code snippets? With kind regards Honsek From kicco.gambas at libero.it Sun Jan 3 12:14:30 2021 From: kicco.gambas at libero.it (kicco.gambas) Date: Sun, 3 Jan 2021 12:14:30 +0100 Subject: [Gambas-user] Gambas daily ppa now working again In-Reply-To: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> References: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> Message-ID: <8a9dc608-d0da-26a7-78d8-4e2ac6f2fc92@libero.it> Beno?t , it doesn't work on Ubuntu 18.08! bye Il 02/01/21 19:06, Beno?t Minisini ha scritto: > Hi, > > The gambas daily ppa should work again, except the packages for Ubuntu > 12.04 that do not compile. This will be fixed later. > > Regards, > From kicco.gambas at libero.it Sun Jan 3 12:26:26 2021 From: kicco.gambas at libero.it (kicco.gambas) Date: Sun, 3 Jan 2021 12:26:26 +0100 Subject: [Gambas-user] Gambas daily ppa now working again In-Reply-To: <8a9dc608-d0da-26a7-78d8-4e2ac6f2fc92@libero.it> References: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> <8a9dc608-d0da-26a7-78d8-4e2ac6f2fc92@libero.it> Message-ID: <9a7bf9a9-6728-366e-3aae-d61a4475c42d@libero.it> 18.04 !!! Il 03/01/21 12:14, kicco.gambas via User ha scritto: > Beno?t , it doesn't work on Ubuntu 18.08! > > bye > > Il 02/01/21 19:06, Beno?t Minisini ha scritto: >> Hi, >> >> The gambas daily ppa should work again, except the packages for >> Ubuntu 12.04 that do not compile. This will be fixed later. >> >> Regards, >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From charlie at cogier.com Sun Jan 3 13:51:12 2021 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 3 Jan 2021 12:51:12 +0000 Subject: [Gambas-user] Gambas manuals for beginners ... possibly free In-Reply-To: <622ebdcb-1844-bdd4-b0ce-38da548fdfa4@linuxmail.org> References: <622ebdcb-1844-bdd4-b0ce-38da548fdfa4@linuxmail.org> Message-ID: <3d8391c1-52be-41c7-74aa-19110feeb1b4@cogier.com> Hi Simone, Have a look at Gambas.One There are 2 free books available and a forum to ask your questions. Charlie Admin Gambas.One On 02/01/2021 22:09, Ridolfi Simone wrote: > Hello everyone, since now due to the current situation I have a lot of > free time I thought I was learning a programming language under linux > and I thought about gamabs given its similarity with visual basic (with > which I have already had to do) but looking on the net I found little > material on this language and therefore I wanted to ask you if anyone > has any idea where to find the manuals of the latest versions of gambas > and that they are suitable for a neophyte .. if they are free I would be > really happy. > > Thank you all > > Simone > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Jan 3 14:46:29 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 3 Jan 2021 14:46:29 +0100 Subject: [Gambas-user] Stock In-Reply-To: <6745693d-4b2e-9b35-1262-71b8eaea6807@ajm-software.com> References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> <4ad394db-1426-9a63-b9a9-c2db2e6fb1b9@gmail.com> <6745693d-4b2e-9b35-1262-71b8eaea6807@ajm-software.com> Message-ID: Le dim. 3 janv. 2021 ? 02:30, Tony Morehen a ?crit : > > Why not use Picture["theme/..."] to access freedesktop icons? Instead of > "theme", you could use "themeicon", "freedesktop", "freedesktopicon", > "desktop", "desktopicon" or whatever. > > This could be done either as a re-write to the current picture class as > it won't impact current uses or as a sub-class of Picture in the > gb.desktop component. > > BTW, you don't need the "devices" sub-path. Freedesktop icon names are > unique. Benoit is right about theme icon names not being standardized. > Some are organized theme/class/size and some theme/size/class Well you surely don't know that but the Stock code is really powerful and resolves these problems since many years now :-) In the past I've begun to work on that when I've started to implement DesktopMime to get mime infos and by the way Mimetype Icon of the current theme. So the class gets the current desktop theme, resolves the inheritance of the theme (and adapts to different structures) , try to find the icon in a degressive order, or svg. So the problem is only on Icons names. But hard work have been done on these to have Symbolic links with standart names for devices and mimetype... truely its not perfect :-) That's why Benoit made the map file. So for example for my device viewer, I will need to add entries for devices icons in this file and in the gb.form.stock. I'm not a good programmer so fortunately Benoit keep an eye on my work and make correction and improvement on my work ... often ... too often :-D. Regards, Fabien From g4mba5 at gmail.com Sun Jan 3 15:49:39 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jan 2021 15:49:39 +0100 Subject: [Gambas-user] fill color WebProgressBar In-Reply-To: <20210103091039.M91756@455.co.il> References: <20201223210527.M89504@455.co.il> <6161558b-e2ae-a798-bdb9-40823c5a2844@gmail.com> <20210101091805.M16286@455.co.il> <20210103091039.M91756@455.co.il> Message-ID: <4deff45f-338d-5942-d0e1-690a77b2c1b2@gmail.com> Le 03/01/2021 ? 10:15, Mayost Sharon a ?crit?: > > First of all thank you very much > > If I change in the 'style.css' file it changes at all > I wanted to give a different color to the control: > > WebProgressBar1 > WebProgressBar2 > WebProgressBar3 > > Is it possible? > > Thank you > Of course: did you check their CSS classes with the debugger of your navigator? -- Beno?t Minisini From kicco.gambas at libero.it Sun Jan 3 15:59:16 2021 From: kicco.gambas at libero.it (kicco.gambas) Date: Sun, 3 Jan 2021 15:59:16 +0100 Subject: [Gambas-user] Gambas daily ppa now working again In-Reply-To: <9a7bf9a9-6728-366e-3aae-d61a4475c42d@libero.it> References: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> <8a9dc608-d0da-26a7-78d8-4e2ac6f2fc92@libero.it> <9a7bf9a9-6728-366e-3aae-d61a4475c42d@libero.it> Message-ID: <111db86e-dcea-1622-dc37-3d1106adb835@libero.it> Even the last one just compiled from commit c3d351d1 doesn't work! Regards Il 03/01/21 12:26, kicco.gambas via User ha scritto: > 18.04 !!! > > Il 03/01/21 12:14, kicco.gambas via User ha scritto: >> Beno?t , it doesn't work on Ubuntu 18.08! >> >> bye >> >> Il 02/01/21 19:06, Beno?t Minisini ha scritto: >>> Hi, >>> >>> The gambas daily ppa should work again, except the packages for >>> Ubuntu 12.04 that do not compile. This will be fixed later. >>> >>> Regards, >>> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Sun Jan 3 16:01:29 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jan 2021 16:01:29 +0100 Subject: [Gambas-user] Stock In-Reply-To: References: <66a38c5b-a5cf-d72d-4095-f091877f3348@gmail.com> <4ad394db-1426-9a63-b9a9-c2db2e6fb1b9@gmail.com> <6745693d-4b2e-9b35-1262-71b8eaea6807@ajm-software.com> Message-ID: <87f1ebb5-9c44-aa29-80d5-e5b6f4293b3b@gmail.com> Le 03/01/2021 ? 14:46, Fabien Bodard a ?crit?: > Le dim. 3 janv. 2021 ? 02:30, Tony Morehen a ?crit : >> >> Why not use Picture["theme/..."] to access freedesktop icons? Instead of >> "theme", you could use "themeicon", "freedesktop", "freedesktopicon", >> "desktop", "desktopicon" or whatever. >> >> This could be done either as a re-write to the current picture class as >> it won't impact current uses or as a sub-class of Picture in the >> gb.desktop component. >> >> BTW, you don't need the "devices" sub-path. Freedesktop icon names are >> unique. Benoit is right about theme icon names not being standardized. >> Some are organized theme/class/size and some theme/size/class > > Well you surely don't know that but the Stock code is really powerful > and resolves these problems since many years now :-) > > In the past I've begun to work on that when I've started to implement > DesktopMime to get mime infos and by the way Mimetype Icon of the > current theme. > > So the class gets the current desktop theme, resolves the inheritance > of the theme (and adapts to different structures) , try to find the > icon in a degressive order, or svg. > > So the problem is only on Icons names. But hard work have been done on > these to have Symbolic links with standart names for devices and > mimetype... truely its not perfect :-) > > That's why Benoit made the map file. So for example for my device > viewer, I will need to add entries for devices icons in this file and > in the gb.form.stock. > > I'm not a good programmer so fortunately Benoit keep an eye on my work > and make correction and improvement on my work ... often ... too often > :-D. > > Regards, > > Fabien > I'd just want "icon:/..." to match standard Gambas only. The Stock algorithm quickly described by Fabien is a way to use icon names that resolve to KDE / Gnome icon themes automagically in a desktop-agnostic way. So I think that accessing icons directly (or almost directly) is a freedesktop thing and should be handled by a class in the 'gb.desktop' component. Then we can add a handle to special icon urls in the Picture class of 'gb.gui' that would pass the url path to the 'gb.desktop' class - exactly the same way as "icon:/" sends its path to the Stock class if it exists. But I still find accessing desktop icons directly a bad idea, because they are not standardized: - If you can't find an icon both in a KDE theme and in a Gnome theme, then for sure it is a specific icon. Your application may not work if the theme you use is not installed. - If you can find it almost in every theme, then why not just add it to the icon map file in 'gb.form'? Tell me then, because I'm almost add all of them. - Moreover, some features are added to the icon themes that make them a complete mess: monochrom versions of some icons, icons that are used only as indicators, strange sizes, and so on... Hard to handle that in a desktop-agnostic way. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sun Jan 3 16:16:54 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jan 2021 16:16:54 +0100 Subject: [Gambas-user] Gambas daily ppa now working again In-Reply-To: <111db86e-dcea-1622-dc37-3d1106adb835@libero.it> References: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> <8a9dc608-d0da-26a7-78d8-4e2ac6f2fc92@libero.it> <9a7bf9a9-6728-366e-3aae-d61a4475c42d@libero.it> <111db86e-dcea-1622-dc37-3d1106adb835@libero.it> Message-ID: <13d40e84-d565-13e7-8361-d211384b20e3@gmail.com> Le 03/01/2021 ? 15:59, kicco.gambas via User a ?crit?: > Even the last one just compiled from commit c3d351d1 doesn't work! > > Regards > What does not work exactly? -- Beno?t Minisini From kicco.gambas at libero.it Sun Jan 3 16:34:08 2021 From: kicco.gambas at libero.it (kicco.gambas) Date: Sun, 3 Jan 2021 16:34:08 +0100 Subject: [Gambas-user] Gambas daily ppa now working again In-Reply-To: <13d40e84-d565-13e7-8361-d211384b20e3@gmail.com> References: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> <8a9dc608-d0da-26a7-78d8-4e2ac6f2fc92@libero.it> <9a7bf9a9-6728-366e-3aae-d61a4475c42d@libero.it> <111db86e-dcea-1622-dc37-3d1106adb835@libero.it> <13d40e84-d565-13e7-8361-d211384b20e3@gmail.com> Message-ID: error: #27 Il 03/01/21 16:16, Beno?t Minisini ha scritto: > Le 03/01/2021 ? 15:59, kicco.gambas via User a ?crit?: >> Even the last one just compiled from commit c3d351d1 doesn't work! >> >> Regards >> > > What does not work exactly? > -------------- next part -------------- ** ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( ** Cannot find interface of library 'gb.gtk3.x11' ** ** ERROR: #27: Cannot load component 'gb.gtk3.x11': cannot find component ** ** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2]. ** [1] http://gambaswiki.org/bugtracker ** [2] https://lists.gambas-basic.org/listinfo/user ** From brian at westwoodsvcs.com Sun Jan 3 17:19:17 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 3 Jan 2021 08:19:17 -0800 (PST) Subject: [Gambas-user] Scripter issue/errors Message-ID: <1616581458.2625.1609690757328.JavaMail.zimbra@westwoodsvcs.com> Hi Beno?t , The scripter does not handle correctly public or static Defs when the assigned value spans multiple lines, I would like to change the code to correct that in one of four ways 1) by parsing it more completely... extra overhead 2) allowing \ at the end of multi line statements to force ignore the \n 3) update the documentation to say not to do that. 4) whatever you think is correct in some cases the fast unsafe directives are not properly handles, needs some work to get it right and figure out just what causes the issue. I am working on that now. Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jan 3 17:49:19 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jan 2021 17:49:19 +0100 Subject: [Gambas-user] Scripter issue/errors In-Reply-To: <1616581458.2625.1609690757328.JavaMail.zimbra@westwoodsvcs.com> References: <1616581458.2625.1609690757328.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <80d8dbe7-8099-0cae-f733-629e20a7bbc9@gmail.com> Le 03/01/2021 ? 17:19, Brian G a ?crit?: > Hi Beno?t , > > ?The scripter does not handle correctly public or static Defs when the > assigned value spans multiple lines, > ? ? I would like to change the code to correct that in one of four ways > > ? 1) by parsing it more completely... extra overhead > ? 2) allowing \ at the end of multi line statements to force ignore the \n > ? 3) update the documentation to say not to do that. > ? 4) whatever you think is correct > > ? ?in some cases the fast unsafe directives are not properly handles, > needs some work to get it right > ? ?and figure out just what causes the issue. I am working on that now. > > > Brian G OK, except 2). This is not compatible with Gambas syntax, so don't do that. -- Beno?t Minisini From bsteers4 at gmail.com Sun Jan 3 19:15:55 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 3 Jan 2021 18:15:55 +0000 Subject: [Gambas-user] application-x-gambas3.png Message-ID: Just as note.. I've been installing some new OS's and can report the application-x-gambas3.png does not register/show properly on the following systems... Fedora33 Ubuntu21 Suse (Leap) the mime filetype does register, i can double-click a gambas file and it launches okay but unlike this Mint20 system the orange icon does not show. No idea why? Ps, i noticed the icon was showing in a dialog file requester just not on the desktop/caja BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jan 3 22:37:18 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jan 2021 22:37:18 +0100 Subject: [Gambas-user] Gambas daily ppa now working again In-Reply-To: References: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> <8a9dc608-d0da-26a7-78d8-4e2ac6f2fc92@libero.it> <9a7bf9a9-6728-366e-3aae-d61a4475c42d@libero.it> <111db86e-dcea-1622-dc37-3d1106adb835@libero.it> <13d40e84-d565-13e7-8361-d211384b20e3@gmail.com> Message-ID: Le 03/01/2021 ? 16:34, kicco.gambas via User a ?crit?: > error: #27 > > Il 03/01/21 16:16, Beno?t Minisini ha scritto: >> Le 03/01/2021 ? 15:59, kicco.gambas via User a ?crit?: >>> Even the last one just compiled from commit c3d351d1 doesn't work! >>> >>> Regards >>> >> >> What does not work exactly? >> > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It should work now, I have just tested on Ubuntu 18.04. The remaining problems are: - Ubuntu 12.04. - The 'gambas3' package that does not install everything. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sun Jan 3 23:45:06 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 3 Jan 2021 22:45:06 +0000 Subject: [Gambas-user] Could gitlab-ci + package builder = easy install? Message-ID: There's a thought been mulling around in my head. We have 2 things already happening... gitlab-ci and how it works making a temporary system and compiling/building and installing complete gambas3 for various distros. We also have packager routines built into gambas that can create an installable .deb/.rpm/etc package from a project for each distro supported in the CI. So can these 2 things not somehow be bought together? My thinking is the CI could be made to make a package file of gambas it just compiled for its distro and copying the file somewhere before the runner finishes. Seems like it's something sooo close to be able to happen. Do the folks who made the packaging code think this is possible to adapt the code to package gambas itself? Ultimate aim here is to make upgrading much simpler for various distros. No need for compile, no need for PPA , just download an auto-created package file and double click. If it's a crap ton of coding involved then i would understand a reluctance but i can't help think there is already code doing similar things so will it be that massive a task? Just a thought. All the best :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.roper at iinet.net.au Sun Jan 3 23:51:53 2021 From: ian.roper at iinet.net.au (Ian Roper) Date: Mon, 4 Jan 2021 06:51:53 +0800 Subject: [Gambas-user] 'gb.qt5.webkit error Message-ID: GUI Console error on run: gb.gui.qt.webkit: unable to load 'gb.qt5.webkit' component Pop-Up message: Cannot load class 'Webview': end of file. ???????? Components -------------------------------------------------------------------------------- ????????? Component=gb.image *????????? Component=gb.gui.qt* ????????? Component=gb.form ????????? Component=gb.db ????????? Component=gb.eval ????????? Component=gb.eval.highlight ????????? Component=gb.form.dialog ????????? Component=gb.util ????????? Component=gb.form.editor ????????? Component=gb.settings ????????? Component=gb.form.mdi *????????? Component=gb.gui.qt.webkit* ????????? Component=gb.util.web ?????????????????????????? -End of Technical Document- [System] Gambas=3.15.90 OperatingSystem=Linux Kernel=5.4.0-58-generic Architecture=x86_64 Distribution=Linux Mint 20 Ulyana Desktop=CINNAMON Theme=mint-y Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=4.6.7 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=cinnamon GDM_LANG=en_AU GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=6156 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 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=en_AU.UTF-8 LANGUAGE=en_AU.UTF-8 LC_ALL=en_AU.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path 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/1136,unix/:/tmp/.ICE-unix/1136 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1210 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Jan 4 00:18:32 2021 From: adamnt42 at gmail.com (Bruce) Date: Mon, 4 Jan 2021 09:48:32 +1030 Subject: [Gambas-user] Could gitlab-ci + package builder = easy install? In-Reply-To: References: Message-ID: <3e49e882-04d6-7bad-16ec-0290d05d7202@gmail.com> On 4/1/21 9:15 am, Bruce Steers wrote: > There's a thought been mulling around in my head. > > We have 2 things already happening... > gitlab-ci and how it works making a temporary system and compiling/building > and installing complete gambas3 for various distros. > > We also have packager routines built into gambas that can create an > installable .deb/.rpm/etc package from a project for each distro supported > in the CI. > > So can these 2 things not somehow be bought together? > > My thinking is the CI could be made to make a package file of gambas it > just compiled for its distro and copying the file somewhere before the > runner finishes. > > Seems like it's something sooo close to be able to happen. > > Do the folks who made the packaging code think this is possible to adapt > the code to package gambas itself? > > Ultimate aim here is to make upgrading much simpler for various distros. > No need for compile, no need for PPA , just download an auto-created > package file and double click. > > If it's a crap ton of coding involved then i would understand a reluctance > but i can't help think there is already code doing similar things so will > it be that massive a task? > > Just a thought. > All the best :) > BruceS > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Can the IDE package builder cope with the C/C+ components? What's so hard about the autotools incantaion anyway? I think that if problems arode then you'd just have the same problems when attempting the same thing via a package? Would you need to be able to build a spec file for "any" disdtro (rather than the known package types? Don't forget that the IDE packager is not creating a "real" program package. It just makes a "set of files" package that just get copied to various places. The project "executable" that is installed is just a gambas whatsy-code file (can't think of the proper name). Gambas itself, on the other hand, is prescribed as a set of packages that would need to be installed by hand (or whatever package manager. Doesn't this mean you would be replacing a three step process with a four or five step process? And we'd still have the same problem with "package dependancies" vs "library dependancies". (Just some thoughts, be an interesting thing to see though.) b From brian at westwoodsvcs.com Mon Jan 4 01:03:38 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 3 Jan 2021 16:03:38 -0800 (PST) Subject: [Gambas-user] ncurses, question Message-ID: <94784286.2858.1609718618363.JavaMail.zimbra@westwoodsvcs.com> Hi Tobias, I see you authored the ncurses package, I have a question Is there some way with ncurses to issue the endwin within my program after I am done with a window and screen screen object. I see that the gb.ncurses main does an init and end..... but..... doing something like: dim a as new window stuff a. def_prog_mode() ' save the mode a.endwin() ' restore the tty mode do stuff program on terminal a.refresh() ' to pop it back to ncurses mode a.endwin stuff to do Thanks for any help you can provide. Or anyone else if your aware. Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Jan 4 01:05:11 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 3 Jan 2021 16:05:11 -0800 (PST) Subject: [Gambas-user] Gambas daily ppa now working again In-Reply-To: References: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> <8a9dc608-d0da-26a7-78d8-4e2ac6f2fc92@libero.it> <9a7bf9a9-6728-366e-3aae-d61a4475c42d@libero.it> <111db86e-dcea-1622-dc37-3d1106adb835@libero.it> <13d40e84-d565-13e7-8361-d211384b20e3@gmail.com> Message-ID: <1414166115.2860.1609718711403.JavaMail.zimbra@westwoodsvcs.com> I removed and reinstalled gambas on mint 19.3 still the same error the ide will not load, same error as before Thank You Brian G ----- Original Message ----- From: "Beno?t Minisini" To: "Gambas mailing list" Sent: Sunday, January 3, 2021 9:37:18 PM Subject: Re: [Gambas-user] Gambas daily ppa now working again Le 03/01/2021 ? 16:34, kicco.gambas via User a ?crit?: > error: #27 > > Il 03/01/21 16:16, Beno?t Minisini ha scritto: >> Le 03/01/2021 ? 15:59, kicco.gambas via User a ?crit?: >>> Even the last one just compiled from commit c3d351d1 doesn't work! >>> >>> Regards >>> >> >> What does not work exactly? >> > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It should work now, I have just tested on Ubuntu 18.04. The remaining problems are: - Ubuntu 12.04. - The 'gambas3' package that does not install everything. Regards, -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Mon Jan 4 01:31:19 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Jan 2021 01:31:19 +0100 Subject: [Gambas-user] 'gb.qt5.webkit error In-Reply-To: References: Message-ID: <7bef504a-2927-ba11-0c70-7b0f6161dc3a@gmail.com> Le 03/01/2021 ? 23:51, Ian Roper a ?crit?: > > GUI Console error on run: > > gb.gui.qt.webkit: unable to load 'gb.qt5.webkit' component Which program do you run? -- Beno?t Minisini From ian.roper at iinet.net.au Mon Jan 4 02:56:00 2021 From: ian.roper at iinet.net.au (Ian Roper) Date: Mon, 4 Jan 2021 09:56:00 +0800 Subject: [Gambas-user] 'gb.qt5.webkit error In-Reply-To: <7bef504a-2927-ba11-0c70-7b0f6161dc3a@gmail.com> References: <7bef504a-2927-ba11-0c70-7b0f6161dc3a@gmail.com> Message-ID: <8c2976b0-7eb2-9ee9-87ad-03817c74b63b@iinet.net.au> "Which program do you run? :" Just a project with a some webview components - not sure I understand the context of the question ? If I change the components to gb.qt5 & gb.qt5.webview : No error but the webview is not editable. If you change to gb.gui.qt & gb.gui.qt.webview then the error appears. : webview has the editable parameter. I have three projects that use webview controls - all last worked about(?) 2 weeks ago. Cheers, IR On 4/1/21 8:31 am, Beno?t Minisini wrote: > Le 03/01/2021 ? 23:51, Ian Roper a ?crit?: >> >> GUI Console error on run: >> >> gb.gui.qt.webkit: unable to load 'gb.qt5.webkit' component > > Which program do you run? > From g4mba5 at gmail.com Mon Jan 4 03:58:38 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Jan 2021 03:58:38 +0100 Subject: [Gambas-user] 'gb.qt5.webkit error In-Reply-To: <8c2976b0-7eb2-9ee9-87ad-03817c74b63b@iinet.net.au> References: <7bef504a-2927-ba11-0c70-7b0f6161dc3a@gmail.com> <8c2976b0-7eb2-9ee9-87ad-03817c74b63b@iinet.net.au> Message-ID: Le 04/01/2021 ? 02:56, Ian Roper a ?crit?: > "Which program do you run? :" Just a project with a some webview > components - not sure I understand the context of the question ? > > If I change the components to gb.qt5 & gb.qt5.webview : No error but the > webview is not editable. > > If you change to gb.gui.qt & gb.gui.qt.webview then the error appears. : > webview has the editable parameter. > > > I have three projects that use webview controls - all last worked > about(?) 2 weeks ago. > > Cheers, > > IR > How did you install or update Gambas? Can you check that gb.qt5.webkit is installed on your system? -- Beno?t Minisini From ian.roper at iinet.net.au Mon Jan 4 04:29:32 2021 From: ian.roper at iinet.net.au (Ian Roper) Date: Mon, 4 Jan 2021 11:29:32 +0800 Subject: [Gambas-user] 'gb.qt5.webkit error In-Reply-To: References: <7bef504a-2927-ba11-0c70-7b0f6161dc3a@gmail.com> <8c2976b0-7eb2-9ee9-87ad-03817c74b63b@iinet.net.au> Message-ID: <7c986c67-c901-168b-ffcf-e9055ac591e7@iinet.net.au> Full search from root: not found. see attachment for 'found' list. Cheers, IR On 4/1/21 10:58 am, Beno?t Minisini wrote: > Le 04/01/2021 ? 02:56, Ian Roper a ?crit?: >> "Which program do you run? :" Just a project with a some webview >> components - not sure I understand the context of the question ? >> >> If I change the components to gb.qt5 & gb.qt5.webview : No error but >> the webview is not editable. >> >> If you change to gb.gui.qt & gb.gui.qt.webview then the error >> appears. : webview has the editable parameter. >> >> >> I have three projects that use webview controls - all last worked >> about(?) 2 weeks ago. >> >> Cheers, >> >> IR >> > > How did you install or update Gambas? > > Can you check that gb.qt5.webkit is installed on your system? > -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2021-01-04 11-27-46.png Type: image/png Size: 20319 bytes Desc: not available URL: From ian.roper at iinet.net.au Mon Jan 4 04:48:13 2021 From: ian.roper at iinet.net.au (Ian Roper) Date: Mon, 4 Jan 2021 11:48:13 +0800 Subject: [Gambas-user] 'gb.qt5.webkit error In-Reply-To: <7c986c67-c901-168b-ffcf-e9055ac591e7@iinet.net.au> References: <7bef504a-2927-ba11-0c70-7b0f6161dc3a@gmail.com> <8c2976b0-7eb2-9ee9-87ad-03817c74b63b@iinet.net.au> <7c986c67-c901-168b-ffcf-e9055ac591e7@iinet.net.au> Message-ID: <189064cd-2590-25e7-1ec7-17f3868cdbba@iinet.net.au> Forgot to include: using PPA: gambas-team/gambas-daily IR On 4/1/21 11:29 am, Ian Roper wrote: > Full search from root: not found. > > see attachment for 'found' list. > > Cheers, > > IR > > > On 4/1/21 10:58 am, Beno?t Minisini wrote: >> Le 04/01/2021 ? 02:56, Ian Roper a ?crit?: >>> "Which program do you run? :" Just a project with a some webview >>> components - not sure I understand the context of the question ? >>> >>> If I change the components to gb.qt5 & gb.qt5.webview : No error but >>> the webview is not editable. >>> >>> If you change to gb.gui.qt & gb.gui.qt.webview then the error >>> appears. : webview has the editable parameter. >>> >>> >>> I have three projects that use webview controls - all last worked >>> about(?) 2 weeks ago. >>> >>> Cheers, >>> >>> IR >>> >> >> How did you install or update Gambas? >> >> Can you check that gb.qt5.webkit is installed on your system? >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Jan 4 06:28:45 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 4 Jan 2021 05:28:45 +0000 Subject: [Gambas-user] OpenSuse (tumbleweed) Updated wiki for compilation Message-ID: Someone here mentioned they wished the wiki had OpenSuse updated. Well I've added tumbleweed http://gambaswiki.org/wiki/install/opensuse#t2 dependency install command list.... zypper install libtool gcc glew-devel libgmime-devel gtk2-devel gtk3-devel libQt5WebKit5-devel libqt5-qtx11extras-devel libQt5WebKit5 libQt5WebKitWidgets-devel libqt5-qtwebengine-devel libQt5Xml-devel libQt5Sql-devel libqt5-qtsvg-devel libQt5Gui-devel libQt5Core-devel libQt5Sql5-postgresql libQt5Sql5-unixODBC webkit2gtk3-devel libICE-devel libSM-devel unixODBC-devel libzip-devel libmariadb-devel gsl-devel libopenssl-devel alure-devel postgresql-devel postgresql-server-devel libcurl-devel libSDL_ttf-devel libSDL_mixer-devel libSDL-devel libSDL2_ttf-devel libSDL2_mixer-devel libSDL2_image-devel libSDL2-devel libxslt-devel libv4l-devel librsvg-devel gtkglext-devel libgnome-keyring-devel libjpeg62-devel libpoppler-devel libpoppler-glib-devel imlib2-devel gmp-devel gstreamermm-devel configure command... ./configure -C --disable-qt4 --disable-sqlite2 Gitlab-CI added tumbleweed on a branch and it passes here ... https://gitlab.com/bsteers4/gambas/-/blob/opensuse-tumbleweed/.gitlab-ci.yml -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Jan 4 06:40:38 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 4 Jan 2021 05:40:38 +0000 Subject: [Gambas-user] OpenSuse (tumbleweed) Updated wiki for compilation In-Reply-To: References: Message-ID: Correction libgmime-devel should be gmime-devel (wiki and gitlab-ci are corrected) BruceS On Mon, 4 Jan 2021 at 05:28, Bruce Steers wrote: > Someone here mentioned they wished the wiki had OpenSuse updated. > > Well I've added tumbleweed > http://gambaswiki.org/wiki/install/opensuse#t2 > > dependency install command list.... > > zypper install libtool gcc glew-devel libgmime-devel gtk2-devel gtk3-devel libQt5WebKit5-devel libqt5-qtx11extras-devel libQt5WebKit5 libQt5WebKitWidgets-devel libqt5-qtwebengine-devel libQt5Xml-devel libQt5Sql-devel libqt5-qtsvg-devel libQt5Gui-devel libQt5Core-devel libQt5Sql5-postgresql libQt5Sql5-unixODBC webkit2gtk3-devel libICE-devel libSM-devel unixODBC-devel libzip-devel libmariadb-devel gsl-devel libopenssl-devel alure-devel postgresql-devel postgresql-server-devel libcurl-devel libSDL_ttf-devel libSDL_mixer-devel libSDL-devel libSDL2_ttf-devel libSDL2_mixer-devel libSDL2_image-devel libSDL2-devel libxslt-devel libv4l-devel librsvg-devel gtkglext-devel libgnome-keyring-devel libjpeg62-devel libpoppler-devel libpoppler-glib-devel imlib2-devel gmp-devel gstreamermm-devel > > configure command... > ./configure -C --disable-qt4 --disable-sqlite2 > > Gitlab-CI added tumbleweed on a branch and it passes here ... > https://gitlab.com/bsteers4/gambas/-/blob/opensuse-tumbleweed/.gitlab-ci.yml > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From psaux7 at tuta.io Mon Jan 4 06:42:53 2021 From: psaux7 at tuta.io (psaux7 at tuta.io) Date: Mon, 4 Jan 2021 06:42:53 +0100 (CET) Subject: [Gambas-user] Could gitlab-ci + package builder = easy install? In-Reply-To: References: Message-ID: 3. Jan. 2021, 23:45 von bsteers4 at gmail.com: > > There's a thought been mulling around in my head. > > We have 2 things already happening... > gitlab-ci and how it works making a temporary system and compiling/building and installing complete gambas3 for various distros. > > We also have packager routines built into gambas that can create an installable .deb/.rpm/etc package from a project for each distro supported in the CI. > > So can these 2 things not somehow be bought together? > > My thinking is the CI could be made to make a package file of gambas it just compiled for its distro and copying the file somewhere before the runner finishes. > > Seems like it's something sooo close to be able to happen. > > Do the folks who made the packaging code think this is possible to adapt the code to package gambas itself? > > Ultimate aim here is to make upgrading much simpler for various distros. > No need for compile, no need for PPA , just download an auto-created package file and double click. > > If it's a crap ton of coding involved then i would understand a reluctance but i can't help think there is already code doing similar things so will it be that massive a task? > > Just a thought. > All the best :) > BruceS > Why not use OBS ( https://build.opensuse.org/ ) ?It seems to support many distributions, so everything would be in one place. I found the following at https://software.opensuse.org/package/gambas3: https://software.opensuse.org//download.html?project=home:munix9&package=gambas3 https://software.opensuse.org//download.html?project=home:munix9:unstable&package=gambas3 From psaux7 at tuta.io Mon Jan 4 07:40:46 2021 From: psaux7 at tuta.io (psaux7 at tuta.io) Date: Mon, 4 Jan 2021 07:40:46 +0100 (CET) Subject: [Gambas-user] Could gitlab-ci + package builder = easy install? In-Reply-To: References: Message-ID: 4. Jan. 2021, 06:42 von user at lists.gambas-basic.org: > > 3. Jan. 2021, 23:45 von bsteers4 at gmail.com: > >> >> There's a thought been mulling around in my head. >> >> We have 2 things already happening... >> gitlab-ci and how it works making a temporary system and compiling/building and installing complete gambas3 for various distros. >> >> ... >> > Why not use OBS ( https://build.opensuse.org/ ) ?It seems to support many distributions, so everything would be in one place. > I found the following at https://software.opensuse.org/package/gambas3: > https://software.opensuse.org//download.html?project=home:munix9&package=gambas3 > https://software.opensuse.org//download.html?project=home:munix9:unstable&package=gambas3 > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >From the same user there is for example also the package "celestia" for openSUSE, Debian and Ubuntu: https://build.opensuse.org/project/monitor/home:munix9:unstable https://software.opensuse.org//download.html?project=home:munix9:unstable&package=celestia Multi-build seems to be possible without any problems (with the appropriate configuration for the respective distribution). Maybe we could contact munix9 and ask if this could be extended for Gambas as well (Debian, Ubuntu, Arch, ...). From kicco.gambas at libero.it Mon Jan 4 09:29:51 2021 From: kicco.gambas at libero.it (kicco.gambas) Date: Mon, 4 Jan 2021 09:29:51 +0100 Subject: [Gambas-user] Gambas daily ppa now working again In-Reply-To: <1414166115.2860.1609718711403.JavaMail.zimbra@westwoodsvcs.com> References: <1e05c56c-b5a8-e23d-263e-160ba87067b2@gmail.com> <8a9dc608-d0da-26a7-78d8-4e2ac6f2fc92@libero.it> <9a7bf9a9-6728-366e-3aae-d61a4475c42d@libero.it> <111db86e-dcea-1622-dc37-3d1106adb835@libero.it> <13d40e84-d565-13e7-8361-d211384b20e3@gmail.com> <1414166115.2860.1609718711403.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <2b9190a4-7276-d73d-2508-f1b646bf84cd@libero.it> Now? for me it's ok on Ubuntu 18.04 after recompiling commit 197adab0 thank you! Il 04/01/21 01:05, Brian G ha scritto: > I removed and reinstalled gambas on mint 19.3 still the same error the ide will not load, same error as before > > Thank You > Brian G > > ----- Original Message ----- > From: "Beno?t Minisini" > To: "Gambas mailing list" > Sent: Sunday, January 3, 2021 9:37:18 PM > Subject: Re: [Gambas-user] Gambas daily ppa now working again > > Le 03/01/2021 ? 16:34, kicco.gambas via User a ?crit?: >> error: #27 >> >> Il 03/01/21 16:16, Beno?t Minisini ha scritto: >>> Le 03/01/2021 ? 15:59, kicco.gambas via User a ?crit?: >>>> Even the last one just compiled from commit c3d351d1 doesn't work! >>>> >>>> Regards >>>> >>> What does not work exactly? >>> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > It should work now, I have just tested on Ubuntu 18.04. > > The remaining problems are: > - Ubuntu 12.04. > - The 'gambas3' package that does not install everything. > > Regards, > From kicking177 at gmail.com Mon Jan 4 09:36:57 2021 From: kicking177 at gmail.com (KKing) Date: Mon, 4 Jan 2021 08:36:57 +0000 Subject: [Gambas-user] ncurses, question Message-ID: > Is there some way with ncurses to issue the endwin within my program after I am done with a window and screen screen object. > I see that the gb.ncurses main does an init and end..... but..... I'm not saying this is the right way to do but in my ncurses programs I've done the following within main program .... Dim mWarning As MWarning strMessage = "This is a popup warning" mWarning = New MWarning mWarning.Main(strMessage) .... and a module for each ncurses Window I temporarily use e.g. ' Gambas module file Private $hWarning As Window Public Sub Main(strMessage As String, Optional colValue As Integer) As String ? Dim intInput As Integer ? Dim strReturn As String ? strReturn = "" ? $hWarning = New Window(False, 0, 0, 120, 40) As "WarningScreen" ? $hWarning.Background = Color.Red ? If (colValue <> Null) Then ??? Try $hWarning.Background = colValue ? Endif ? $hWarning.Print(strMessage, 1, 10,, Main.iColPairInput) ? $hWarning.Print(" Press any key to Continue ", 2, 14,, Main.iColPairInput) ? intInput = $hWarning.Read() ? $hWarning = Null ? Return strReturn End From g4mba5 at gmail.com Mon Jan 4 13:41:46 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Jan 2021 13:41:46 +0100 Subject: [Gambas-user] 'gb.qt5.webkit error In-Reply-To: <189064cd-2590-25e7-1ec7-17f3868cdbba@iinet.net.au> References: <7bef504a-2927-ba11-0c70-7b0f6161dc3a@gmail.com> <8c2976b0-7eb2-9ee9-87ad-03817c74b63b@iinet.net.au> <7c986c67-c901-168b-ffcf-e9055ac591e7@iinet.net.au> <189064cd-2590-25e7-1ec7-17f3868cdbba@iinet.net.au> Message-ID: <847bf03a-5948-a742-1223-6ed8f46bcb45@gmail.com> Le 04/01/2021 ? 04:48, Ian Roper a ?crit?: > Forgot to include: using PPA: gambas-team/gambas-daily > Try to remove all gambas packages, and install them again after having updated your repositories. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Mon Jan 4 13:42:18 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Jan 2021 13:42:18 +0100 Subject: [Gambas-user] 'gb.qt5.webkit error In-Reply-To: <847bf03a-5948-a742-1223-6ed8f46bcb45@gmail.com> References: <7bef504a-2927-ba11-0c70-7b0f6161dc3a@gmail.com> <8c2976b0-7eb2-9ee9-87ad-03817c74b63b@iinet.net.au> <7c986c67-c901-168b-ffcf-e9055ac591e7@iinet.net.au> <189064cd-2590-25e7-1ec7-17f3868cdbba@iinet.net.au> <847bf03a-5948-a742-1223-6ed8f46bcb45@gmail.com> Message-ID: Le 04/01/2021 ? 13:41, Beno?t Minisini a ?crit?: > Le 04/01/2021 ? 04:48, Ian Roper a ?crit?: >> Forgot to include: using PPA: gambas-team/gambas-daily >> > > Try to remove all gambas packages, and install them again after having > updated your repositories. > > Regards, > Normally, the 'gambas3' meta-package now installs all other gambas packages. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Mon Jan 4 15:08:16 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 4 Jan 2021 14:08:16 +0000 Subject: [Gambas-user] Could gitlab-ci + package builder = easy install? In-Reply-To: <3e49e882-04d6-7bad-16ec-0290d05d7202@gmail.com> References: <3e49e882-04d6-7bad-16ec-0290d05d7202@gmail.com> Message-ID: On Sun, 3 Jan 2021 at 23:19, Bruce wrote: > On 4/1/21 9:15 am, Bruce Steers wrote: > > There's a thought been mulling around in my head. > > > > We have 2 things already happening... > > gitlab-ci and how it works making a temporary system and > compiling/building > > and installing complete gambas3 for various distros. > > > > We also have packager routines built into gambas that can create an > > installable .deb/.rpm/etc package from a project for each distro > supported > > in the CI. > > > > So can these 2 things not somehow be bought together? > > > > My thinking is the CI could be made to make a package file of gambas it > > just compiled for its distro and copying the file somewhere before the > > runner finishes. > > > > Seems like it's something sooo close to be able to happen. > > > > Do the folks who made the packaging code think this is possible to adapt > > the code to package gambas itself? > > > > Ultimate aim here is to make upgrading much simpler for various distros. > > No need for compile, no need for PPA , just download an auto-created > > package file and double click. > > > > If it's a crap ton of coding involved then i would understand a > reluctance > > but i can't help think there is already code doing similar things so will > > it be that massive a task? > > > > Just a thought. > > All the best :) > > BruceS > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > Can the IDE package builder cope with the C/C+ components? > What's so hard about the autotools incantaion anyway? I think that if > problems arode then you'd just have the same problems when attempting > the same thing via a package? > Would you need to be able to build a spec file for "any" disdtro (rather > than the known package types? > I think the autotools method is much more bloated than the PPA method . compiling needs loads more dependencies than just installing and takes a lot longer too. Plus the huge downside of not having gambas listed as installed by the OS's packager. Initially I'm not thinking of ANY distro, just the ones supported in the gitlab-ci file. I do not know how the daily builds are made for ubuntu but can't help think for each distro there must be a similar method can be used, Just use the PPA code and adapt per distro? > Don't forget that the IDE packager is not creating a "real" program > package. It just makes a "set of files" package that just get copied to > various places. The project "executable" that is installed is just a > gambas whatsy-code file (can't think of the proper name). > yes i know some files are not really files but symlinks but still nothing a small bash script could not create. Gambas itself, on the other hand, is prescribed as a set of packages > that would need to be installed by hand (or whatever package manager. > Doesn't this mean you would be replacing a three step process with a > four or five step process? > Mostly though it's 3 main things, the gb* files in /usr/bin plus /usr/share/gambas3 and /usr/lib/gambas3. I know there a little more to it but mostly it's just that. And we'd still have the same problem with "package dependancies" vs > "library dependancies". > Probably wouldn't take much to add another file similar to gitlab-ci.yml but one that listed dependencies for just running gambas not compiling it. > (Just some thoughts, be an interesting thing to see though.) > b > I'd sure like to see it , it's all a bit beyond me though, seems to me gambas is a bit restricted in it's ability to "simply" upgrade to latest version (restricted by the distro repositories) And sure you and I know and can easily use the autotools method but for some the mere mention of the word "compile" frightens people off. I'm sure we must have the combined knowledge and ability here to make our own install/upgrade possible. I get the feeling you and I share a view that gambas should be for linux what vb is for window$. But for this i think the thinking about gambas needs to diverge slightly, It needs to be looked at in 2 ways, the IDE for coders and the runtimes for users. And the users need complete simplicity to upgrade to the latest runtimes so our programs can work for all, not just people with the ability to upgrade as it is now. Kinda how VB works, i remember having to download the latest vb runtimes for various programs I used long before i ever downloaded the vb6 (god I'm old lol) development environment and got into programming. But that's a difference with VB, it's got it's eye on the end users not just the programmers, I'm not so sure gambas has the same ethos. It's a thought i think worth considering for the gambas team. Me , as a developer who wants to write software for all to use, has found an issue in wanting to do that. Upgrading is just beyond some people. Sadly I'm a bit of a dreamer, I see things simply before I see how outrageously complicated it is ;) Could be a task worth taking on though. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Mon Jan 4 16:37:21 2021 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 4 Jan 2021 16:37:21 +0100 Subject: [Gambas-user] SetCookie/DeleteCookie In-Reply-To: <0c607441-e71c-1c68-4932-67467a89d7f2@gambas-buch.de> References: <0c607441-e71c-1c68-4932-67467a89d7f2@gambas-buch.de> Message-ID: <9c1468fd-e200-b9c0-6d85-39a0fd4d50b6@gambas-buch.de> Hello, since my request to set a cookie from a WebPage did not find an answer so far, I present my source code in excerpts: The class site.class contains among others this procedure: Public Sub Set_Cookie() ? Dim dExpires As Date ? dExpires = DateAdd(Now(), gb.Minute, 30) ? Response.SetCookie("GBB", "Osterburg", "", "/", dExpires, True) End and here the content of the file site.webpage: ? *<%Set_Cookie%>* ??? DB-REPORT ??? ??? ??? ??? ??? ? ? ???
?????

Aktuelle Zeit:

???
???
??? <% PrintDBTable() %> ? Unfortunately no cookie is set. Therefore the question: Where is the error? With kind regards Hans From g4mba5 at gmail.com Mon Jan 4 16:50:18 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Jan 2021 16:50:18 +0100 Subject: [Gambas-user] SetCookie/DeleteCookie In-Reply-To: <9c1468fd-e200-b9c0-6d85-39a0fd4d50b6@gambas-buch.de> References: <0c607441-e71c-1c68-4932-67467a89d7f2@gambas-buch.de> <9c1468fd-e200-b9c0-6d85-39a0fd4d50b6@gambas-buch.de> Message-ID: Le 04/01/2021 ? 16:37, Hans Lehmann a ?crit?: > Hello, > > since my request to set a cookie from a WebPage did not find an answer > so far, I present my source code in excerpts: > > The class site.class contains among others this procedure: > > Public Sub Set_Cookie() > > ? Dim dExpires As Date > > ? dExpires = DateAdd(Now(), gb.Minute, 30) > ? Response.SetCookie("GBB", "Osterburg", "", "/", dExpires, True) > > End > > and here the content of the file site.webpage: > > > > ? > > *<%Set_Cookie%>* > > ??? DB-REPORT > ??? > ??? > ??? > ??? href="favicon/favicon_blue.ico"> > ??? > ? > ? > ???
> ?????

Aktuelle Zeit:

> ???
> ???
> ??? <% PrintDBTable() %> > ? > > > > Unfortunately no cookie is set. Therefore the question: Where is the error? > > With kind regards > > Hans > As soon as your WebPage is not buffered, you cannot send HTTP headers (like cookies) while sending the page (the headers must be sent before the contents). You must call SetCookie() before rendering the page, or set the Buffered property of your WebPage to TRUE. Regards, -- Beno?t Minisini From taboege at gmail.com Mon Jan 4 17:22:59 2021 From: taboege at gmail.com (Tobias Boege) Date: Mon, 4 Jan 2021 17:22:59 +0100 Subject: [Gambas-user] ncurses, question In-Reply-To: <94784286.2858.1609718618363.JavaMail.zimbra@westwoodsvcs.com> References: <94784286.2858.1609718618363.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <20210104162259.GC1913868@highrise.localdomain> On Sun, 03 Jan 2021, Brian G wrote: > Hi Tobias, > > I see you authored the ncurses package, I have a question > > Is there some way with ncurses to issue the endwin within my program after I am done with a window and screen screen object. > I see that the gb.ncurses main does an init and end..... but..... > > doing something like: > > dim a as new window > stuff > a. def_prog_mode() ' save the mode > a.endwin() ' restore the tty mode > do stuff program on terminal > a.refresh() ' to pop it back to ncurses mode > > a.endwin > stuff to do > I could have sworn that I implemented this long ago, but apparently not. It is now done in df5022e3. You get two new methods: Screen.Suspend, which does def_prog_mode() and endwin(), and Screen.Resume, which does a doupdate(). All other calls to refresh() or doupdate() from the gb.ncurses component are effectively blocked until you do a Screen.Resume, so you don't accidentally return to ncurses mode, e.g. due to Timers which redraw screen components periodically in your application. Although the changes still happen to the ncurses windows which are now tucked away somewhere in memory only. All the changes done to your windows while you were suspended become visible once you resume. I do not want to give the Gambas programmer direct access to def_prog_mode() and endwin(), because gb.ncurses does its own sort of buffering on top of ncurses and needs to know what state it is in. Attached is a demonstration. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: curstest-0.0.1.tar.gz Type: application/gzip Size: 11622 bytes Desc: not available URL: From bsteers4 at gmail.com Mon Jan 4 18:00:49 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 4 Jan 2021 17:00:49 +0000 Subject: [Gambas-user] OpenSuse (tumbleweed) Updated wiki for compilation In-Reply-To: References: Message-ID: I just tested it on a Leap Live usb and it all worked fine. So wiki has been updated to state it's valid for both Leap15.2 and Tumbleweed15.3 BruceS On Mon, 4 Jan 2021 at 05:40, Bruce Steers wrote: > Correction > > libgmime-devel should be gmime-devel (wiki and gitlab-ci are corrected) > > BruceS > > > On Mon, 4 Jan 2021 at 05:28, Bruce Steers wrote: > >> Someone here mentioned they wished the wiki had OpenSuse updated. >> >> Well I've added tumbleweed >> http://gambaswiki.org/wiki/install/opensuse#t2 >> >> dependency install command list.... >> >> zypper install libtool gcc glew-devel libgmime-devel gtk2-devel gtk3-devel libQt5WebKit5-devel libqt5-qtx11extras-devel libQt5WebKit5 libQt5WebKitWidgets-devel libqt5-qtwebengine-devel libQt5Xml-devel libQt5Sql-devel libqt5-qtsvg-devel libQt5Gui-devel libQt5Core-devel libQt5Sql5-postgresql libQt5Sql5-unixODBC webkit2gtk3-devel libICE-devel libSM-devel unixODBC-devel libzip-devel libmariadb-devel gsl-devel libopenssl-devel alure-devel postgresql-devel postgresql-server-devel libcurl-devel libSDL_ttf-devel libSDL_mixer-devel libSDL-devel libSDL2_ttf-devel libSDL2_mixer-devel libSDL2_image-devel libSDL2-devel libxslt-devel libv4l-devel librsvg-devel gtkglext-devel libgnome-keyring-devel libjpeg62-devel libpoppler-devel libpoppler-glib-devel imlib2-devel gmp-devel gstreamermm-devel >> >> configure command... >> ./configure -C --disable-qt4 --disable-sqlite2 >> >> Gitlab-CI added tumbleweed on a branch and it passes here ... >> https://gitlab.com/bsteers4/gambas/-/blob/opensuse-tumbleweed/.gitlab-ci.yml >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Jan 4 18:58:02 2021 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 4 Jan 2021 09:58:02 -0800 (PST) Subject: [Gambas-user] ncurses, question In-Reply-To: <20210104162259.GC1913868@highrise.localdomain> References: <94784286.2858.1609718618363.JavaMail.zimbra@westwoodsvcs.com> <20210104162259.GC1913868@highrise.localdomain> Message-ID: <88078466.3081.1609783082902.JavaMail.zimbra@westwoodsvcs.com> Thank you Tobias! Very much appreciated Thank You Brian G ----- Original Message ----- From: "Tobias Boege" To: "Gambas mailing list" Sent: Monday, January 4, 2021 4:22:59 PM Subject: Re: [Gambas-user] ncurses, question On Sun, 03 Jan 2021, Brian G wrote: > Hi Tobias, > > I see you authored the ncurses package, I have a question > > Is there some way with ncurses to issue the endwin within my program after I am done with a window and screen screen object. > I see that the gb.ncurses main does an init and end..... but..... > > doing something like: > > dim a as new window > stuff > a. def_prog_mode() ' save the mode > a.endwin() ' restore the tty mode > do stuff program on terminal > a.refresh() ' to pop it back to ncurses mode > > a.endwin > stuff to do > I could have sworn that I implemented this long ago, but apparently not. It is now done in df5022e3. You get two new methods: Screen.Suspend, which does def_prog_mode() and endwin(), and Screen.Resume, which does a doupdate(). All other calls to refresh() or doupdate() from the gb.ncurses component are effectively blocked until you do a Screen.Resume, so you don't accidentally return to ncurses mode, e.g. due to Timers which redraw screen components periodically in your application. Although the changes still happen to the ncurses windows which are now tucked away somewhere in memory only. All the changes done to your windows while you were suspended become visible once you resume. I do not want to give the Gambas programmer direct access to def_prog_mode() and endwin(), because gb.ncurses does its own sort of buffering on top of ncurses and needs to know what state it is in. Attached is a demonstration. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Mon Jan 4 19:22:19 2021 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 4 Jan 2021 10:22:19 -0800 (PST) Subject: [Gambas-user] ncurses, question In-Reply-To: <88078466.3081.1609783082902.JavaMail.zimbra@westwoodsvcs.com> References: <94784286.2858.1609718618363.JavaMail.zimbra@westwoodsvcs.com> <20210104162259.GC1913868@highrise.localdomain> <88078466.3081.1609783082902.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <407685434.3100.1609784539959.JavaMail.zimbra@westwoodsvcs.com> Tobias, When I run your program in a terminal it hangs in the ncurses mode no input unless I add an explicit quit instruction. quit 0 if i just add a screen.suspend() it goes back to terminal but never exits Thank You Brian G ----- Original Message ----- From: "Brian" To: "Gambas mailing list" Subject: Re: [Gambas-user] ncurses, question From sharon at 455.co.il Mon Jan 4 21:13:25 2021 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 4 Jan 2021 22:13:25 +0200 Subject: [Gambas-user] fill color WebProgressBar In-Reply-To: <4deff45f-338d-5942-d0e1-690a77b2c1b2@gmail.com> References: <20201223210527.M89504@455.co.il> <6161558b-e2ae-a798-bdb9-40823c5a2844@gmail.com> <20210101091805.M16286@455.co.il> <20210103091039.M91756@455.co.il> <4deff45f-338d-5942-d0e1-690a77b2c1b2@gmail.com> Message-ID: <20210104201145.M7782@455.co.il> ---------- Original Message ----------- From: Beno?t Minisini To: user at lists.gambas-basic.org Sent: Sun, 3 Jan 2021 15:49:39 +0100 Subject: Re: [Gambas-user] fill color WebProgressBar > Le 03/01/2021 ? 10:15, Mayost Sharon a ?crit?: > > > > First of all thank you very much > > > > If I change in the 'style.css' file it changes at all > > I wanted to give a different color to the control: > > > > WebProgressBar1 > > WebProgressBar2 > > WebProgressBar3 > > > > Is it possible? > > > > Thank you > > > > Of course: did you check their CSS classes with the debugger of your > navigator? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Do you mean this thing: .gw-progressbar-bar { position: absolute; height: 100%; background: # C0C0C0; border: solid 1px white; z-index: -1; } From g4mba5 at gmail.com Mon Jan 4 22:59:26 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Jan 2021 22:59:26 +0100 Subject: [Gambas-user] fill color WebProgressBar In-Reply-To: <20210104201145.M7782@455.co.il> References: <20201223210527.M89504@455.co.il> <6161558b-e2ae-a798-bdb9-40823c5a2844@gmail.com> <20210101091805.M16286@455.co.il> <20210103091039.M91756@455.co.il> <4deff45f-338d-5942-d0e1-690a77b2c1b2@gmail.com> <20210104201145.M7782@455.co.il> Message-ID: <8ecad3ba-44f5-805b-24f8-606518f75eff@gmail.com> Le 04/01/2021 ? 21:13, Mayost Sharon a ?crit?: > > Do you mean this thing: > .gw-progressbar-bar { > position: absolute; > height: 100%; > background: # C0C0C0; > border: solid 1px white; > z-index: -1; > } > Yes. Each control has its own id, so that you can reach it with CSS. Then you use that class to colorize the bar as you like: #id > .gw-progressbar-bar { background-color: yellow; } Regards, -- Beno?t Minisini From ian.roper at iinet.net.au Tue Jan 5 02:15:08 2021 From: ian.roper at iinet.net.au (Ian Roper) Date: Tue, 5 Jan 2021 09:15:08 +0800 Subject: [Gambas-user] 'gb.qt5.webkit error - fixed In-Reply-To: References: <7bef504a-2927-ba11-0c70-7b0f6161dc3a@gmail.com> <8c2976b0-7eb2-9ee9-87ad-03817c74b63b@iinet.net.au> <7c986c67-c901-168b-ffcf-e9055ac591e7@iinet.net.au> <189064cd-2590-25e7-1ec7-17f3868cdbba@iinet.net.au> <847bf03a-5948-a742-1223-6ed8f46bcb45@gmail.com> Message-ID: <5367b990-18eb-a524-69a9-34b75ebe2f63@iinet.net.au> Did as instructed and the webveiw control is now working fine. - many thanks. IR On 4/1/21 8:42 pm, Beno?t Minisini wrote: > Le 04/01/2021 ? 13:41, Beno?t Minisini a ?crit?: >> Le 04/01/2021 ? 04:48, Ian Roper a ?crit?: >>> Forgot to include: using PPA: gambas-team/gambas-daily >>> >> >> Try to remove all gambas packages, and install them again after >> having updated your repositories. >> >> Regards, >> > > Normally, the 'gambas3' meta-package now installs all other gambas > packages. > > Regards, > From sharon at 455.co.il Tue Jan 5 11:49:56 2021 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 5 Jan 2021 12:49:56 +0200 Subject: [Gambas-user] fill color WebProgressBar In-Reply-To: <8ecad3ba-44f5-805b-24f8-606518f75eff@gmail.com> References: <20201223210527.M89504@455.co.il> <6161558b-e2ae-a798-bdb9-40823c5a2844@gmail.com> <20210101091805.M16286@455.co.il> <20210103091039.M91756@455.co.il> <4deff45f-338d-5942-d0e1-690a77b2c1b2@gmail.com> <20210104201145.M7782@455.co.il> <8ecad3ba-44f5-805b-24f8-606518f75eff@gmail.com> Message-ID: <20210105104743.M16701@455.co.il> ---------- Original Message ----------- From: Beno?t Minisini To: user at lists.gambas-basic.org Sent: Mon, 4 Jan 2021 22:59:26 +0100 Subject: Re: [Gambas-user] fill color WebProgressBar > Le 04/01/2021 ? 21:13, Mayost Sharon a ?crit?: > > > > Do you mean this thing: > > .gw-progressbar-bar { > > position: absolute; > > height: 100%; > > background: # C0C0C0; > > border: solid 1px white; > > z-index: -1; > > } > > > > Yes. Each control has its own id, so that you can reach it with CSS. > Then you use that class to colorize the bar as you like: > > #id > .gw-progressbar-bar { > background-color: yellow; > } > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Many thanks I did not understand how to do this Will it be possible to correct me with the attached example WebProgressBar1 red WebProgressBar2 green Thanks From sharon at 455.co.il Tue Jan 5 12:20:20 2021 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 5 Jan 2021 13:20:20 +0200 Subject: [Gambas-user] fill color WebProgressBar In-Reply-To: <20210105104743.M16701@455.co.il> References: <20201223210527.M89504@455.co.il> <6161558b-e2ae-a798-bdb9-40823c5a2844@gmail.com> <20210101091805.M16286@455.co.il> <20210103091039.M91756@455.co.il> <4deff45f-338d-5942-d0e1-690a77b2c1b2@gmail.com> <20210104201145.M7782@455.co.il> <8ecad3ba-44f5-805b-24f8-606518f75eff@gmail.com> <20210105104743.M16701@455.co.il> Message-ID: <20210105111840.M60329@455.co.il> ---------- Original Message ----------- From: "Mayost Sharon" To: Gambas Mailing List Sent: Tue, 5 Jan 2021 12:49:56 +0200 Subject: Re: [Gambas-user] fill color WebProgressBar > ---------- Original Message ----------- > From: Beno?t Minisini > To: user at lists.gambas-basic.org > Sent: Mon, 4 Jan 2021 22:59:26 +0100 > Subject: Re: [Gambas-user] fill color WebProgressBar > > > Le 04/01/2021 ? 21:13, Mayost Sharon a ?crit?: > > > > > > Do you mean this thing: > > > .gw-progressbar-bar { > > > position: absolute; > > > height: 100%; > > > background: # C0C0C0; > > > border: solid 1px white; > > > z-index: -1; > > > } > > > > > > > Yes. Each control has its own id, so that you can reach it with CSS. > > Then you use that class to colorize the bar as you like: > > > > #id > .gw-progressbar-bar { > > background-color: yellow; > > } > > > > Regards, > > > > -- > > Beno?t Minisini > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ------- End of Original Message ------- > > Many thanks > > I did not understand how to do this > Will it be possible to correct me with the attached example > > WebProgressBar1 red > WebProgressBar2 green > > Thanks > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Sorry I did not attach a file to the previous post -------------- next part -------------- A non-text attachment was scrubbed... Name: test_css.zip Type: application/zip Size: 16312 bytes Desc: not available URL: From mbelmonte at belmotek.net Tue Jan 5 14:50:59 2021 From: mbelmonte at belmotek.net (Martin) Date: Tue, 5 Jan 2021 14:50:59 +0100 Subject: [Gambas-user] gb.dwg started In-Reply-To: <20201213230211.GH1811581@highrise.localdomain> References: <20201213230211.GH1811581@highrise.localdomain> Message-ID: <29e3009b-38b9-1660-b693-0d28633e70a6@belmotek.net> Hi Tobias, I saw this email just today, I don't know why it was in the my spam folder.Thanks for the tips, I have reviewed them against the notes that I am using for the component compiling process. Tanks. Martin Belmonte. El 14/12/20 a las 0:02, Tobias Boege escribi?: > On Sun, 13 Dec 2020, Martin wrote: >> Hi, >> >> I started to make the gb.dwg component I am following the instructions from >> Tobias Boege "Writing a native component for gambas" [0]. >> > Oh, I hate documents that don't have their creation date printed on them. > From the svn revision 6903 mentioned in the text, I estimate this was > written in 2015. I haven't tracked how the process changed since then. > > I still have the source code for that document and could rehost it (I am > no longer in control over my old student website) and correct any mistakes. > >> The objective is to use the project made for Reini Urban [1] and of course >> the LibreDWG library. >> >> [0] https://wasd.urz.uni-magdeburg.de/tboege/gambas/native_comp.pdf >> >> [1] https://github.com/LibreDWG/gambas3-bindings >> > Wow, I didn't know Reini Urban was interested in Gambas! > >> So I follow the first steps. >> >> 0) Install all the dependecies recomended by the web site for Arch distro (I >> use Manjaro) -> sudo pacman -Syu --needed --noconfirmalure ... here tthe >> option "--noconfirmalure" doesent work on my terminal then I decide not use >> it > This is almost surely a typo. "--noconfirmalure" should be two words: > "--noconfirm", which is an actual option of pacman (although I would > personally not use it when I install something interactively anyway), > and "alure", which is a dependency of gb.openal. > >> 1) Download the source code - ok >> >> 2 ) Made the gb.dw.conf file, then run ./make-compoente gb.dwg but doesent >> work properly, the message was: >> >> which: no cpp in (/home/USER/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl) >> ./make-component: error: cpp was not found >> > This indicates that you do not have a C compiler installed or one whose > preprocessor is not called "cpp". Install for example "gcc" on Arch Linux > and you should get your cpp. > > Otherwise, make-component is just a convenience script. You do not have > to use it to make a functional new component. The cargo cult way which I > used more often than make-component is to copy a small native component > and adapt its source code. You can, in a clean Gambas repository, > > $ cp -r gb.gmp gb.dwg > > and then adapt the following files > > gb.dwg/configure.ac > - this is basically what you enter into gb.dwg.conf plus data > on how the build process can figure out if the backing native > library (something with "dwg"?) is installed or not > > gb.dwg/Makefile.am > - rename GMP_DIR to DWG_DIR > > gb.dwg/src/gb.gmp.component > - rename to gb.dwg.component and fill in correct information > > gb.dwg/src/Makefile.am > - change all GMP to DWG and register your source files > > gb.dwg/src/*.{c,h} > - this is your implementation, the files mentioned in the Makefile.am > > and register the new component to the top-level build process via > > configure.ac > - add gb.dwg to the long list of subdirectories > > Makefile.am > - add your @dwg_dir@ to the long list of subdirectories > > Then ./reconf-all && ./configure to see if it gets picked up. > > Regards, > Tobias > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Jan 6 13:52:05 2021 From: taboege at gmail.com (Tobias Boege) Date: Wed, 6 Jan 2021 13:52:05 +0100 Subject: [Gambas-user] ncurses, question In-Reply-To: <407685434.3100.1609784539959.JavaMail.zimbra@westwoodsvcs.com> References: <94784286.2858.1609718618363.JavaMail.zimbra@westwoodsvcs.com> <20210104162259.GC1913868@highrise.localdomain> <88078466.3081.1609783082902.JavaMail.zimbra@westwoodsvcs.com> <407685434.3100.1609784539959.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <20210106125205.GE1913868@highrise.localdomain> On Mon, 04 Jan 2021, Brian G wrote: > Tobias, > > When I run your program in a terminal > it hangs in the ncurses mode no input unless I add > an explicit quit instruction. > > quit 0 > > if i just add a screen.suspend() > it goes back to terminal but never exits > Isn't this normal? Do you have an old ncurses project which behaves differently since that commit? I have an older 3.14.90 here where a gb.ncurses application also doesn't terminate on its own. This is because gb.ncurses watches the input file descriptor for keystrokes, keeping the Gambas process running in the event loop, for as long as there is a valid Window object. (This is the same as with gb.qt4, superficially.) And there is always a default, static Window object representing the whole screen. The project I sent you should print, step out of and into ncurses mode and print again, all on its own. When it says "Bye bye", you can ctrl+c it. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Wed Jan 6 13:56:03 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 6 Jan 2021 13:56:03 +0100 Subject: [Gambas-user] ncurses, question In-Reply-To: <20210106125205.GE1913868@highrise.localdomain> References: <94784286.2858.1609718618363.JavaMail.zimbra@westwoodsvcs.com> <20210104162259.GC1913868@highrise.localdomain> <88078466.3081.1609783082902.JavaMail.zimbra@westwoodsvcs.com> <407685434.3100.1609784539959.JavaMail.zimbra@westwoodsvcs.com> <20210106125205.GE1913868@highrise.localdomain> Message-ID: <79877c4e-b96d-1ae1-9e06-80553321aad7@gmail.com> Le 06/01/2021 ? 13:52, Tobias Boege a ?crit?: > On Mon, 04 Jan 2021, Brian G wrote: >> Tobias, >> >> When I run your program in a terminal >> it hangs in the ncurses mode no input unless I add >> an explicit quit instruction. >> >> quit 0 >> >> if i just add a screen.suspend() >> it goes back to terminal but never exits >> > > Isn't this normal? Do you have an old ncurses project which behaves > differently since that commit? I have an older 3.14.90 here where a > gb.ncurses application also doesn't terminate on its own. > > This is because gb.ncurses watches the input file descriptor for > keystrokes, keeping the Gambas process running in the event loop, > for as long as there is a valid Window object. (This is the same > as with gb.qt4, superficially.) And there is always a default, > static Window object representing the whole screen. > > The project I sent you should print, step out of and into ncurses > mode and print again, all on its own. When it says "Bye bye", you > can ctrl+c it. > > Best, > Tobias > Shouldn't the user be able to close the default static window to terminate the application? -- Beno?t Minisini From taboege at gmail.com Wed Jan 6 22:25:05 2021 From: taboege at gmail.com (Tobias Boege) Date: Wed, 6 Jan 2021 22:25:05 +0100 Subject: [Gambas-user] ncurses, question In-Reply-To: <79877c4e-b96d-1ae1-9e06-80553321aad7@gmail.com> References: <94784286.2858.1609718618363.JavaMail.zimbra@westwoodsvcs.com> <20210104162259.GC1913868@highrise.localdomain> <88078466.3081.1609783082902.JavaMail.zimbra@westwoodsvcs.com> <407685434.3100.1609784539959.JavaMail.zimbra@westwoodsvcs.com> <20210106125205.GE1913868@highrise.localdomain> <79877c4e-b96d-1ae1-9e06-80553321aad7@gmail.com> Message-ID: <20210106212505.GF1913868@highrise.localdomain> On Wed, 06 Jan 2021, Beno?t Minisini wrote: > Le 06/01/2021 ? 13:52, Tobias Boege a ?crit?: > > On Mon, 04 Jan 2021, Brian G wrote: > > > Tobias, > > > > > > When I run your program in a terminal > > > it hangs in the ncurses mode no input unless I add > > > an explicit quit instruction. > > > > > > quit 0 > > > > > > if i just add a screen.suspend() > > > it goes back to terminal but never exits > > > > > > > Isn't this normal? Do you have an old ncurses project which behaves > > differently since that commit? I have an older 3.14.90 here where a > > gb.ncurses application also doesn't terminate on its own. > > > > This is because gb.ncurses watches the input file descriptor for > > keystrokes, keeping the Gambas process running in the event loop, > > for as long as there is a valid Window object. (This is the same > > as with gb.qt4, superficially.) And there is always a default, > > static Window object representing the whole screen. > > > > The project I sent you should print, step out of and into ncurses > > mode and print again, all on its own. When it says "Bye bye", you > > can ctrl+c it. > > > > Best, > > Tobias > > > > Shouldn't the user be able to close the default static window to terminate > the application? > Closing is currently bound to the window's reference count. You can close it by assigning Null to every variable holding the window object. To implement a Close method, I would need to know how to mark an object as invalid using the interpreter APIs after I destroyed its contents, even if other parts of the program still hold a reference to the window. Can you tell me? Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Wed Jan 6 22:31:55 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 6 Jan 2021 22:31:55 +0100 Subject: [Gambas-user] ncurses, question In-Reply-To: <20210106212505.GF1913868@highrise.localdomain> References: <94784286.2858.1609718618363.JavaMail.zimbra@westwoodsvcs.com> <20210104162259.GC1913868@highrise.localdomain> <88078466.3081.1609783082902.JavaMail.zimbra@westwoodsvcs.com> <407685434.3100.1609784539959.JavaMail.zimbra@westwoodsvcs.com> <20210106125205.GE1913868@highrise.localdomain> <79877c4e-b96d-1ae1-9e06-80553321aad7@gmail.com> <20210106212505.GF1913868@highrise.localdomain> Message-ID: <6763edf9-0c23-785a-753a-675f896fbe34@gmail.com> Le 06/01/2021 ? 22:25, Tobias Boege a ?crit?: >> Shouldn't the user be able to close the default static window to terminate >> the application? >> > > Closing is currently bound to the window's reference count. You can close it > by assigning Null to every variable holding the window object. To implement > a Close method, I would need to know how to mark an object as invalid using > the interpreter APIs after I destroyed its contents, even if other parts of > the program still hold a reference to the window. Can you tell me? > > Best, > Tobias > You have to add "GB_HOOK_CHECK(xxxx)," to the class description, where "xxxx" is the name of a function declared that way: int xxxx(void *object) { // Return 1 if the Gambas object "object" is invalid, // and 0 if it is valid. } You have an example with CWIDGET_check() in the CWidget.cpp files of gb.gtk, gb.gtk3, gb.qt4 or gb.qt5. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Thu Jan 7 02:11:50 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 7 Jan 2021 03:11:50 +0200 Subject: [Gambas-user] gb.gmp Message-ID: Firstly, thanks for the excellent component! I accidentally tried to give BigInt a value from a string, which was "60.02", IE not integer. The result was a non-human readable error message. You can demonstrate the problem with one line: Print BigInt.FromString("60.02") Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 7 02:23:33 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Jan 2021 02:23:33 +0100 Subject: [Gambas-user] gb.gmp In-Reply-To: References: Message-ID: <29022005-a55c-9e0e-c9df-d3c34aba4a8c@gmail.com> Le 07/01/2021 ? 02:11, Jussi Lahtinen a ?crit?: > Firstly, thanks for the excellent component! > I accidentally tried to give BigInt a value from a string, which was > "60.02", IE not integer. > The result was a non-human readable error message. > You can demonstrate the problem with one line: > > Print BigInt.FromString("60.02") > > > Jussi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Fixed in commit https://gitlab.com/gambas/gambas/-/commit/a30f69c2894c590231077ef17f9932056e2d51f3. -- Beno?t Minisini From ocoquet at 3d-phenomen.fr Thu Jan 7 13:36:46 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 7 Jan 2021 13:36:46 +0100 Subject: [Gambas-user] About call sub from string Message-ID: <39b4c4e6-c9c4-7959-7b3b-ba35c870f392@3d-phenomen.fr> Hi all, Is somebody to know if it's possible to call a sub from a stringvar which contain the name of the sub ? I've tryed EVAL but don't work :( exemple of what I want to do: public sub main() Dim mavar as string = "masub()" eval (mavar,"") endsub public sub masub() endsub Thank's for reply Olivier Coquet From taboege at gmail.com Thu Jan 7 13:54:05 2021 From: taboege at gmail.com (Tobias Boege) Date: Thu, 7 Jan 2021 13:54:05 +0100 Subject: [Gambas-user] About call sub from string In-Reply-To: <39b4c4e6-c9c4-7959-7b3b-ba35c870f392@3d-phenomen.fr> References: <39b4c4e6-c9c4-7959-7b3b-ba35c870f392@3d-phenomen.fr> Message-ID: <20210107125405.GG1913868@highrise.localdomain> On Thu, 07 Jan 2021, Olivier Coquet wrote: > Hi all, > > Is somebody to know if it's possible to call a sub from a stringvar which > contain the name of the sub ? > > I've tryed EVAL but don't work :( > > exemple of what I want to do: > > public sub main() > > Dim mavar as string = "masub()" > > eval (mavar,"") > > endsub > > public sub masub() > > endsub > Except the built-in functions, Gambas has no free-standing subroutines, it only has methods. To call them you need some kind of object which provides a context to the method. Eval does not do that for you. [ When you call masub() in Gambas code, that code is always in a class and will always be executed in the context of some object. In that call, the method name is lexically resolved with respect to the current class and implicitly called in the context of the current object, aka Me. ] Once you have the method name mavar and an object x, you can use Object.Call(x, mavar) ' optional Array of arguments after mavar Object.Call(Me, mavar) ' if you don't have a specific x, use x = Me Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From ocoquet at 3d-phenomen.fr Thu Jan 7 14:07:11 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 7 Jan 2021 14:07:11 +0100 Subject: [Gambas-user] About call sub from string In-Reply-To: <20210107125405.GG1913868@highrise.localdomain> References: <39b4c4e6-c9c4-7959-7b3b-ba35c870f392@3d-phenomen.fr> <20210107125405.GG1913868@highrise.localdomain> Message-ID: <1c245508-2be1-821d-c7d6-a6ee72d0b941@3d-phenomen.fr> Yes!!!! this is the answer that I wanted :) regards and many thanks for that. Olivier Coquet Le 07/01/2021 ? 13:54, Tobias Boege a ?crit?: > On Thu, 07 Jan 2021, Olivier Coquet wrote: >> Hi all, >> >> Is somebody to know if it's possible to call a sub from a stringvar which >> contain the name of the sub ? >> >> I've tryed EVAL but don't work :( >> >> exemple of what I want to do: >> >> public sub main() >> >> Dim mavar as string = "masub()" >> >> eval (mavar,"") >> >> endsub >> >> public sub masub() >> >> endsub >> > Except the built-in functions, Gambas has no free-standing subroutines, > it only has methods. To call them you need some kind of object which > provides a context to the method. Eval does not do that for you. > [ When you call masub() in Gambas code, that code is always in a class > and will always be executed in the context of some object. In that call, > the method name is lexically resolved with respect to the current class > and implicitly called in the context of the current object, aka Me. ] > > Once you have the method name mavar and an object x, you can use > > Object.Call(x, mavar) ' optional Array of arguments after mavar > Object.Call(Me, mavar) ' if you don't have a specific x, use x = Me > > Best, > Tobias > From ocoquet at 3d-phenomen.fr Thu Jan 7 13:21:27 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 7 Jan 2021 13:21:27 +0100 Subject: [Gambas-user] Hi All first post presentation Message-ID: <057bd8fd-e110-b6a6-1a86-25ee009a9a60@3d-phenomen.fr> Hi all from France, Little message to test and to say "Bonjour ? tous". Regards Olivier Coquet From ocoquet at 3d-phenomen.fr Thu Jan 7 14:39:02 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 7 Jan 2021 14:39:02 +0100 Subject: [Gambas-user] About call sub from string In-Reply-To: <20210107125405.GG1913868@highrise.localdomain> References: <39b4c4e6-c9c4-7959-7b3b-ba35c870f392@3d-phenomen.fr> <20210107125405.GG1913868@highrise.localdomain> Message-ID: <0795db87-16da-6136-d0da-65d65707e6b2@3d-phenomen.fr> So, just a little problem, Function that i call with object.call take tow arguments. First is a string Second is an array of strings. How can I pass this tow arguments in a single array ? Regards From France Olivier Coquet Pure Gambas http server class-work in progress. Le 07/01/2021 ? 13:54, Tobias Boege a ?crit?: > On Thu, 07 Jan 2021, Olivier Coquet wrote: >> Hi all, >> >> Is somebody to know if it's possible to call a sub from a stringvar which >> contain the name of the sub ? >> >> I've tryed EVAL but don't work :( >> >> exemple of what I want to do: >> >> public sub main() >> >> Dim mavar as string = "masub()" >> >> eval (mavar,"") >> >> endsub >> >> public sub masub() >> >> endsub >> > Except the built-in functions, Gambas has no free-standing subroutines, > it only has methods. To call them you need some kind of object which > provides a context to the method. Eval does not do that for you. > [ When you call masub() in Gambas code, that code is always in a class > and will always be executed in the context of some object. In that call, > the method name is lexically resolved with respect to the current class > and implicitly called in the context of the current object, aka Me. ] > > Once you have the method name mavar and an object x, you can use > > Object.Call(x, mavar) ' optional Array of arguments after mavar > Object.Call(Me, mavar) ' if you don't have a specific x, use x = Me > > Best, > Tobias > From taboege at gmail.com Thu Jan 7 14:47:10 2021 From: taboege at gmail.com (Tobias Boege) Date: Thu, 7 Jan 2021 14:47:10 +0100 Subject: [Gambas-user] About call sub from string In-Reply-To: <0795db87-16da-6136-d0da-65d65707e6b2@3d-phenomen.fr> References: <39b4c4e6-c9c4-7959-7b3b-ba35c870f392@3d-phenomen.fr> <20210107125405.GG1913868@highrise.localdomain> <0795db87-16da-6136-d0da-65d65707e6b2@3d-phenomen.fr> Message-ID: <20210107134710.GI1913868@highrise.localdomain> On Thu, 07 Jan 2021, Olivier Coquet wrote: > So, just a little problem, > > Function that i call with object.call take tow arguments. > > First is a string > > Second is an array of strings. > > How can I pass this tow arguments in a single array ? > masub(...) becomes Object.Call(Me, "masub", [...]) no matter how many arguments you want to pass, e.g. Object.Call(Me, "masub", [monstring, monarray]) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From ocoquet at 3d-phenomen.fr Thu Jan 7 14:51:51 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 7 Jan 2021 14:51:51 +0100 Subject: [Gambas-user] About call sub from string In-Reply-To: <20210107134710.GI1913868@highrise.localdomain> References: <39b4c4e6-c9c4-7959-7b3b-ba35c870f392@3d-phenomen.fr> <20210107125405.GG1913868@highrise.localdomain> <0795db87-16da-6136-d0da-65d65707e6b2@3d-phenomen.fr> <20210107134710.GI1913868@highrise.localdomain> Message-ID: <1f3c83c3-a18d-9d7c-da77-bccdf9fc2711@3d-phenomen.fr> Many thank's Olivier Coquet Le 07/01/2021 ? 14:47, Tobias Boege a ?crit?: > On Thu, 07 Jan 2021, Olivier Coquet wrote: >> So, just a little problem, >> >> Function that i call with object.call take tow arguments. >> >> First is a string >> >> Second is an array of strings. >> >> How can I pass this tow arguments in a single array ? >> > masub(...) > > becomes > > Object.Call(Me, "masub", [...]) > > no matter how many arguments you want to pass, e.g. > > Object.Call(Me, "masub", [monstring, monarray]) > From gambas.fr at gmail.com Thu Jan 7 15:19:03 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 7 Jan 2021 15:19:03 +0100 Subject: [Gambas-user] Hi All first post presentation In-Reply-To: <057bd8fd-e110-b6a6-1a86-25ee009a9a60@3d-phenomen.fr> References: <057bd8fd-e110-b6a6-1a86-25ee009a9a60@3d-phenomen.fr> Message-ID: Bonjour Olivier :-) Bienvenu ! Welcome ! Le jeu. 7 janv. 2021 ? 14:10, Olivier Coquet a ?crit : > > Hi all from France, > > Little message to test and to say "Bonjour ? tous". > > Regards > > Olivier Coquet > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From ocoquet at 3d-phenomen.fr Thu Jan 7 15:24:40 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 7 Jan 2021 15:24:40 +0100 Subject: [Gambas-user] Hi All first post presentation In-Reply-To: References: <057bd8fd-e110-b6a6-1a86-25ee009a9a60@3d-phenomen.fr> Message-ID: <278cad99-62fd-d96e-9fa6-e4e3485b3b65@3d-phenomen.fr> Bonjour Fabien, Pour information, j'ai ouvert il y a 3 semaines, un forum en Fran?ais dont voici l'adresse: http://forum.3d-phenomen.fr/ Uniquement Francophone, vu qu'il n'y en avait plus aucun. Pour le reste, c'est ici que ?a se passera en anglais :) Amiti? Olivier Le 07/01/2021 ? 15:19, Fabien Bodard a ?crit?: > Bonjour Olivier :-) > > Bienvenu ! > > Welcome ! > > Le jeu. 7 janv. 2021 ? 14:10, Olivier Coquet a ?crit : >> Hi all from France, >> >> Little message to test and to say "Bonjour ? tous". >> >> Regards >> >> Olivier Coquet >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > From gambas.fr at gmail.com Thu Jan 7 16:16:31 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 7 Jan 2021 16:16:31 +0100 Subject: [Gambas-user] Hi All first post presentation In-Reply-To: <278cad99-62fd-d96e-9fa6-e4e3485b3b65@3d-phenomen.fr> References: <057bd8fd-e110-b6a6-1a86-25ee009a9a60@3d-phenomen.fr> <278cad99-62fd-d96e-9fa6-e4e3485b3b65@3d-phenomen.fr> Message-ID: Le jeu. 7 janv. 2021 ? 15:26, Olivier Coquet a ?crit : > > Bonjour Fabien, > > Pour information, j'ai ouvert il y a 3 semaines, un forum en Fran?ais > dont voici l'adresse: > > http://forum.3d-phenomen.fr/ > > Uniquement Francophone, vu qu'il n'y en avait plus aucun. C'est vraiment cool que tu l'ai fait :-) > > Pour le reste, c'est ici que ?a se passera en anglais :) > > Amiti? > > Olivier > > Le 07/01/2021 ? 15:19, Fabien Bodard a ?crit : > > Bonjour Olivier :-) > > > > Bienvenu ! > > > > Welcome ! > > > > Le jeu. 7 janv. 2021 ? 14:10, Olivier Coquet a ?crit : > >> Hi all from France, > >> > >> Little message to test and to say "Bonjour ? tous". > >> > >> Regards > >> > >> Olivier Coquet > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From ocoquet at 3d-phenomen.fr Thu Jan 7 16:17:18 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 7 Jan 2021 16:17:18 +0100 Subject: [Gambas-user] About call sub from string In-Reply-To: <20210107134710.GI1913868@highrise.localdomain> References: <39b4c4e6-c9c4-7959-7b3b-ba35c870f392@3d-phenomen.fr> <20210107125405.GG1913868@highrise.localdomain> <0795db87-16da-6136-d0da-65d65707e6b2@3d-phenomen.fr> <20210107134710.GI1913868@highrise.localdomain> Message-ID: Great thank's, all work now perfectly. Regards Olivier Le 07/01/2021 ? 14:47, Tobias Boege a ?crit?: > On Thu, 07 Jan 2021, Olivier Coquet wrote: >> So, just a little problem, >> >> Function that i call with object.call take tow arguments. >> >> First is a string >> >> Second is an array of strings. >> >> How can I pass this tow arguments in a single array ? >> > masub(...) > > becomes > > Object.Call(Me, "masub", [...]) > > no matter how many arguments you want to pass, e.g. > > Object.Call(Me, "masub", [monstring, monarray]) > From bagonergi at gmail.com Thu Jan 7 18:20:18 2021 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 7 Jan 2021 18:20:18 +0100 Subject: [Gambas-user] Hi All first post presentation In-Reply-To: <057bd8fd-e110-b6a6-1a86-25ee009a9a60@3d-phenomen.fr> References: <057bd8fd-e110-b6a6-1a86-25ee009a9a60@3d-phenomen.fr> Message-ID: Il giorno gio 7 gen 2021 alle ore 14:10 Olivier Coquet < ocoquet at 3d-phenomen.fr> ha scritto: > Hi all from France, > > Little message to test and to say "Bonjour ? tous". > > Regards > > Olivier Coquet > Hi, welcome from me too. If I'm not indiscreet, can I ask you why no longer participate in the Gambas Forge forum ( http://89.234.156.109/index.html )? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Thu Jan 7 18:42:40 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 7 Jan 2021 18:42:40 +0100 Subject: [Gambas-user] Hi All first post presentation In-Reply-To: References: <057bd8fd-e110-b6a6-1a86-25ee009a9a60@3d-phenomen.fr> Message-ID: :) Because I search and not find ! But now, I go to participate, tow forum I think it's not so much, I speak a lot :) regards Olivier Le 07/01/2021 ? 18:20, Gianluigi a ?crit?: > > > Il giorno gio 7 gen 2021 alle ore 14:10 Olivier Coquet > > ha scritto: > > Hi all from France, > > Little message to test and to say "Bonjour ? tous". > > Regards > > Olivier Coquet > > > Hi, welcome from me too. > > If I'm not indiscreet, can I ask you why no longer participate in the > Gambas Forge forum ( http://89.234.156.109/index.html > )? > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Jan 7 19:19:02 2021 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 7 Jan 2021 19:19:02 +0100 Subject: [Gambas-user] Hi All first post presentation In-Reply-To: References: <057bd8fd-e110-b6a6-1a86-25ee009a9a60@3d-phenomen.fr> Message-ID: Right, two is better than one :-) Regards Gianluigi Il giorno gio 7 gen 2021 alle ore 18:44 Olivier Coquet < ocoquet at 3d-phenomen.fr> ha scritto: > :) > > Because I search and not find ! > > But now, I go to participate, tow forum I think it's not so much, I speak > a lot :) > > regards > > Olivier > Le 07/01/2021 ? 18:20, Gianluigi a ?crit : > > > > Il giorno gio 7 gen 2021 alle ore 14:10 Olivier Coquet < > ocoquet at 3d-phenomen.fr> ha scritto: > >> Hi all from France, >> >> Little message to test and to say "Bonjour ? tous". >> >> Regards >> >> Olivier Coquet >> > > Hi, welcome from me too. > > If I'm not indiscreet, can I ask you why no longer participate in the > Gambas Forge forum ( http://89.234.156.109/index.html )? > > Regards > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Jan 8 09:55:01 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Jan 2021 09:55:01 +0100 Subject: [Gambas-user] My first working gambas appimage Message-ID: Hi to all, This is my first working appimage https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing Can you try to run it. It must run on all Linux systems. This app just show a windows and a close button. The sources are here : https://github.com/AppImageCrafters/appimage-demo-gambas3 I'm working with Alexis Lopez Zubieta from the appimage-builder project who have accepted to help me. -- Fabien Bodard From mbelmonte at belmotek.net Fri Jan 8 10:03:12 2021 From: mbelmonte at belmotek.net (Martin) Date: Fri, 8 Jan 2021 10:03:12 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: <86a0f826-57b3-4829-6354-452d1ed7754a@belmotek.net> Hi, I try to run by run ./app.... sh ./app.... bash ./app.... ./app.... I change permissions to exec but none worked Regards. El 8/1/21 a las 9:55, Fabien Bodard escribi?: > Hi to all, > > This is my first working appimage > > https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing > > Can you try to run it. It must run on all Linux systems. > > This app just show a windows and a close button. > > The sources are here : > https://github.com/AppImageCrafters/appimage-demo-gambas3 > > > I'm working with Alexis Lopez Zubieta from the appimage-builder > project who have accepted to help me. > From gambas.fr at gmail.com Fri Jan 8 10:06:10 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Jan 2021 10:06:10 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: <86a0f826-57b3-4829-6354-452d1ed7754a@belmotek.net> References: <86a0f826-57b3-4829-6354-452d1ed7754a@belmotek.net> Message-ID: Le ven. 8 janv. 2021 ? 10:03, Martin a ?crit : > > Hi, > > I try to run by > > run ./app.... > > sh ./app.... > > bash ./app.... > > ./app.... > > I change permissions to exec but none worked > > Regards. I need details :-) > > > El 8/1/21 a las 9:55, Fabien Bodard escribi?: > > Hi to all, > > > > This is my first working appimage > > > > https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing > > > > Can you try to run it. It must run on all Linux systems. > > > > This app just show a windows and a close button. > > > > The sources are here : > > https://github.com/AppImageCrafters/appimage-demo-gambas3 > > > > > > I'm working with Alexis Lopez Zubieta from the appimage-builder > > project who have accepted to help me. > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From gambas.fr at gmail.com Fri Jan 8 10:06:40 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Jan 2021 10:06:40 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: <86a0f826-57b3-4829-6354-452d1ed7754a@belmotek.net> Message-ID: Le ven. 8 janv. 2021 ? 10:06, Fabien Bodard a ?crit : > > Le ven. 8 janv. 2021 ? 10:03, Martin a ?crit : > > > > Hi, > > > > I try to run by > > > > run ./app.... > > > > sh ./app.... > > > > bash ./app.... > > > > ./app.... > > > > I change permissions to exec but none worked > > > > Regards. > > I need details :-) what is you distrib ? and Desktop environment From mbelmonte at belmotek.net Fri Jan 8 10:20:17 2021 From: mbelmonte at belmotek.net (Martin) Date: Fri, 8 Jan 2021 10:20:17 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: <86a0f826-57b3-4829-6354-452d1ed7754a@belmotek.net> Message-ID: <5fccb574-083c-560c-e171-16e7e7f6dedc@belmotek.net> Yes, it works I send a attached picture in other email but it did not arrive yet. I use manjaro xfce flavor Regards. El 8/1/21 a las 10:06, Fabien Bodard escribi?: > Le ven. 8 janv. 2021 ? 10:06, Fabien Bodard a ?crit : >> Le ven. 8 janv. 2021 ? 10:03, Martin a ?crit : >>> Hi, >>> >>> I try to run by >>> >>> run ./app.... >>> >>> sh ./app.... >>> >>> bash ./app.... >>> >>> ./app.... >>> >>> I change permissions to exec but none worked >>> >>> Regards. >> I need details :-) > what is you distrib ? and Desktop environment > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Fri Jan 8 10:06:56 2021 From: mbelmonte at belmotek.net (Martin) Date: Fri, 8 Jan 2021 10:06:56 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: <86a0f826-57b3-4829-6354-452d1ed7754a@belmotek.net> References: <86a0f826-57b3-4829-6354-452d1ed7754a@belmotek.net> Message-ID: ok, works with right click El 8/1/21 a las 10:03, Martin escribi?: > Hi, > > I try to run by > > run ./app.... > > sh ./app.... > > bash ./app.... > > ./app.... > > I change permissions to exec but none worked > > Regards. > > > El 8/1/21 a las 9:55, Fabien Bodard escribi?: >> Hi to all, >> >> This is my first working appimage >> >> https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing >> >> >> Can you try to run it.? It must run on all Linux systems. >> >> This app just show a windows and a close button. >> >> The sources are here : >> https://github.com/AppImageCrafters/appimage-demo-gambas3 >> >> >> I'm working with Alexis Lopez Zubieta from the appimage-builder >> project who have accepted to help me. >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla_2021-01-08_10-04-46.png Type: image/png Size: 5720 bytes Desc: not available URL: From gambas.fr at gmail.com Fri Jan 8 10:42:13 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Jan 2021 10:42:13 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: <86a0f826-57b3-4829-6354-452d1ed7754a@belmotek.net> Message-ID: yep has I think there is a font problem ... but nothing weird Le ven. 8 janv. 2021 ? 10:39, Martin a ?crit : > > ok, works with right click > > > El 8/1/21 a las 10:03, Martin escribi?: > > Hi, > > > > I try to run by > > > > run ./app.... > > > > sh ./app.... > > > > bash ./app.... > > > > ./app.... > > > > I change permissions to exec but none worked > > > > Regards. > > > > > > El 8/1/21 a las 9:55, Fabien Bodard escribi?: > >> Hi to all, > >> > >> This is my first working appimage > >> > >> https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing > >> > >> > >> Can you try to run it. It must run on all Linux systems. > >> > >> This app just show a windows and a close button. > >> > >> The sources are here : > >> https://github.com/AppImageCrafters/appimage-demo-gambas3 > >> > >> > >> I'm working with Alexis Lopez Zubieta from the appimage-builder > >> project who have accepted to help me. > >> > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From criguada at gmail.com Fri Jan 8 10:45:27 2021 From: criguada at gmail.com (Cristiano Guadagnino) Date: Fri, 8 Jan 2021 10:45:27 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Hi Fabien, this is great!! I ran it without difficulties here (openSUSE Tumbleweed) as you can see from the screenshot. While running, it showed a lot of warnings, which I'm reporting here: ~> ./appimage-demo-gambas3-latest-x86_64.AppImage > /usr/bin/AppImageLauncher: /usr/lib64/libcurl.so.4: no version information > available (required by > /usr/bin/../lib/x86_64-linux-gnu/appimagelauncher/libappimageupdate.so) > > (process:16979): GLib-CRITICAL **: 10:40:14.486: g_file_test: assertion > 'filename != NULL' failed > gb.gui: warning: 'gb.qt5' component not found, using 'gb.gtk3' instead > Gtk-Message: 10:40:25.835: Failed to load module "canberra-gtk-module" > Gtk-Message: 10:40:25.905: Failed to load module "colorreload-gtk-module" > Gtk-Message: 10:40:25.906: Failed to load module > "window-decorations-gtk-module" > Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element > "its:rules" > Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element > "its:translateRule" > Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute > 'translate' > Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute > 'selector' > Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute > 'xmlns:its' > Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute > 'version' > Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element > "description" > Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: > unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: > unknown element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: > invalid attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: > invalid attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: > invalid attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: > invalid attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: > unknown element "description" > Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line > 4: unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line > 5: unknown element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: > invalid attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: > invalid attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: > invalid attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: > invalid attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line > 8: unknown element "description" > Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: > unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: > unknown element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: > invalid attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: > invalid attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: > invalid attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: > invalid attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 8: > unknown element "description" > Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: > unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 9: > unknown element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 9: > invalid attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 9: > invalid attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 10: > invalid attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 10: > invalid attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 12: > unknown element "description" > Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/56-user.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/56-user.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/56-user.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/56-user.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/56-user.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/56-user.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/56-user.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/61-latin.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/61-latin.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/61-latin.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/61-latin.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/61-latin.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/61-latin.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/61-latin.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 34: > unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: > unknown element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: > invalid attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: > invalid attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: > invalid attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: > invalid attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid > attribute 'version' > Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf [image: image.png] Great work! Regards Cris Il giorno ven 8 gen 2021 alle ore 09:56 Fabien Bodard ha scritto: > Hi to all, > > This is my first working appimage > > > https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing > > Can you try to run it. It must run on all Linux systems. > > This app just show a windows and a close button. > > The sources are here : > https://github.com/AppImageCrafters/appimage-demo-gambas3 > > > I'm working with Alexis Lopez Zubieta from the appimage-builder > project who have accepted to help me. > > -- > Fabien Bodard > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 33850 bytes Desc: not available URL: From karl.reinl at fen-net.de Fri Jan 8 10:28:50 2021 From: karl.reinl at fen-net.de (Karl Reinl) Date: Fri, 08 Jan 2021 10:28:50 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: <9d3fa8f68016e862f8a4541a83517a2c0a5198d0.camel@fen-net.de> Am Freitag, den 08.01.2021, 09:55 +0100 schrieb Fabien Bodard: > Hi to all, > > This is my first working appimage > > https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing > > Can you try to run it. It must run on all Linux systems. > > This app just show a windows and a close button. > > The sources are here : > https://github.com/AppImageCrafters/appimage-demo-gambas3 > > > I'm working with Alexis Lopez Zubieta from the appimage-builder > project who have accepted to help me. > Salut Fabien, works, just had to set executable (x) -- Amicalement Charlie From bagonergi at gmail.com Fri Jan 8 11:36:27 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 8 Jan 2021 11:36:27 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Il giorno ven 8 gen 2021 alle ore 09:56 Fabien Bodard ha scritto: > Hi to all, > > This is my first working appimage > ... > On Ubuntu 18.04 LTS it works great. See attached image :-D Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: appimage.png Type: image/png Size: 46130 bytes Desc: not available URL: From gambas.fr at gmail.com Fri Jan 8 11:50:27 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Jan 2021 11:50:27 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: I'm installing a manjaro to understand what going wrong. Le ven. 8 janv. 2021 ? 11:37, Gianluigi a ?crit : > > > > Il giorno ven 8 gen 2021 alle ore 09:56 Fabien Bodard ha scritto: >> >> Hi to all, >> >> This is my first working appimage >> ... > > > On Ubuntu 18.04 LTS it works great. > See attached image > :-D > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From bagonergi at gmail.com Fri Jan 8 12:03:49 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 8 Jan 2021 12:03:49 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Sorry but... maybe before trying it's best if people read this: https://appimage.org/ ...before clicking or double clicking, the permissions must be correct and allow the file to run as a program. Regards Gianluigi Il giorno ven 8 gen 2021 alle ore 11:51 Fabien Bodard ha scritto: > I'm installing a manjaro to understand what going wrong. > > Le ven. 8 janv. 2021 ? 11:37, Gianluigi a ?crit : > > > > > > > > Il giorno ven 8 gen 2021 alle ore 09:56 Fabien Bodard < > gambas.fr at gmail.com> ha scritto: > >> > >> Hi to all, > >> > >> This is my first working appimage > >> ... > > > > > > On Ubuntu 18.04 LTS it works great. > > See attached image > > :-D > > Regards > > Gianluigi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > -- > Fabien Bodard > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Jan 8 12:21:00 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Jan 2021 12:21:00 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Le ven. 8 janv. 2021 ? 12:05, Gianluigi a ?crit : > > Sorry but... > maybe before trying it's best if people read this: > https://appimage.org/ > > ...before clicking or double clicking, the permissions must be correct and allow the file to run as a program. > > Regards > Gianluigi > All people know that ;-P From chrisml at deganius.de Fri Jan 8 12:23:18 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 8 Jan 2021 12:23:18 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: <140820dd-c667-a5e7-c36b-213d271ab384@deganius.de> Am 08.01.21 um 09:55 schrieb Fabien Bodard: > Hi to all, > > This is my first working appimage > > https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing > > Can you try to run it. It must run on all Linux systems. Wow 41 MB. It runs, this is what it logs to stdout/stderr: christof at tof-x230 ~/Desktop/mytmp ? ./appimage-demo-gambas3-latest-x86_64.AppImage Gtk-Message: 12:20:42.775: Failed to load module "canberra-gtk-module" Gtk-Message: 12:20:42.781: Failed to load module "canberra-gtk-module" Here on Xubuntu 18.04. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From gambas.fr at gmail.com Fri Jan 8 12:42:45 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Jan 2021 12:42:45 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: <140820dd-c667-a5e7-c36b-213d271ab384@deganius.de> References: <140820dd-c667-a5e7-c36b-213d271ab384@deganius.de> Message-ID: Le ven. 8 janv. 2021 ? 12:24, Christof Thalhofer a ?crit : > Am 08.01.21 um 09:55 schrieb Fabien Bodard: > > Hi to all, > > > > This is my first working appimage > > > > > https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing > > > > Can you try to run it. It must run on all Linux systems. > > Wow 41 MB. > What.. wow ? > > It runs, this is what it logs to stdout/stderr: > > christof at tof-x230 ~/Desktop/mytmp ? > ./appimage-demo-gambas3-latest-x86_64.AppImage > Gtk-Message: 12:20:42.775: Failed to load module "canberra-gtk-module" > Gtk-Message: 12:20:42.781: Failed to load module "canberra-gtk-module" > > Here on Xubuntu 18.04. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tercoide at hotmail.com Fri Jan 8 12:55:20 2021 From: tercoide at hotmail.com (martin cristia) Date: Fri, 8 Jan 2021 08:55:20 -0300 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Works great! It was something I was wondering if was even possible a while ago. Thanks From bagonergi at gmail.com Fri Jan 8 13:32:53 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 8 Jan 2021 13:32:53 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: <140820dd-c667-a5e7-c36b-213d271ab384@deganius.de> References: <140820dd-c667-a5e7-c36b-213d271ab384@deganius.de> Message-ID: Il giorno ven 8 gen 2021 alle ore 12:24 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 08.01.21 um 09:55 schrieb Fabien Bodard: > > Hi to all, > > > > This is my first working appimage > > > > > https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing > > > > Can you try to run it. It must run on all Linux systems. > > Wow 41 MB. > > It runs, this is what it logs to stdout/stderr: > > christof at tof-x230 ~/Desktop/mytmp ? > ./appimage-demo-gambas3-latest-x86_64.AppImage > Gtk-Message: 12:20:42.775: Failed to load module "canberra-gtk-module" > Gtk-Message: 12:20:42.781: Failed to load module "canberra-gtk-module" > ... > You are missing the module, if you no longer want to see the warning in a terminal type: sudo apt install libcanberra-gtk-module Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jan 8 13:40:44 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 8 Jan 2021 13:40:44 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Il giorno ven 8 gen 2021 alle ore 12:22 Fabien Bodard ha scritto: > > All people know that ;-P > > Now for sure ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Jan 8 15:06:45 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Jan 2021 15:06:45 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: <140820dd-c667-a5e7-c36b-213d271ab384@deganius.de> Message-ID: Le ven. 8 janv. 2021 ? 13:34, Gianluigi a ?crit : > > > Il giorno ven 8 gen 2021 alle ore 12:24 Christof Thalhofer < > chrisml at deganius.de> ha scritto: > >> Am 08.01.21 um 09:55 schrieb Fabien Bodard: >> > Hi to all, >> > >> > This is my first working appimage >> > >> > >> https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing >> > >> > Can you try to run it. It must run on all Linux systems. >> >> Wow 41 MB. >> >> It runs, this is what it logs to stdout/stderr: >> >> christof at tof-x230 ~/Desktop/mytmp ? >> ./appimage-demo-gambas3-latest-x86_64.AppImage >> Gtk-Message: 12:20:42.775: Failed to load module "canberra-gtk-module" >> Gtk-Message: 12:20:42.781: Failed to load module "canberra-gtk-module" >> ... >> > > You are missing the module, if you no longer want to see the warning in a > terminal type: > sudo apt install libcanberra-gtk-module > No I need to add it to the appimage > > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jan 8 15:15:10 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 8 Jan 2021 15:15:10 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: <140820dd-c667-a5e7-c36b-213d271ab384@deganius.de> Message-ID: Il giorno ven 8 gen 2021 alle ore 15:07 Fabien Bodard ha scritto: > > No I need to add it to the appimage > > Okay, sorry Christof ? Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Jan 8 17:02:00 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 8 Jan 2021 16:02:00 +0000 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: 41mb for a hello world :-\ my command results.... (LinuxMint20) bonus:~$ /home/bonus/Downloads/appimage-demo-gambas3-latest-x86_64.AppImage ** (appimage-demo-gambas3.gambas:6865): WARNING **: 15:58:26.410: While connecting to session manager: None of the authentication protocols specified are supported. /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: g_date_time_format_iso8601 Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules" Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'translate' Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'selector' Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'version' Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: unknown element "its:translateRu le" Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: unknown element "its:transla teRule" Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 8: unknown element "description " Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: unknown element "its:translat eRule" Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: unknown element "its:translat eRule" Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: unknown element "its:translateRu le" Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 34: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: unknown element "its:translateRu le" Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 8: unknown element "description" Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'version' Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: unknown element "its:rules" Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: unknown element "its:translateRule" Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'translate' Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'selector' Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'xmlns:its' Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version' Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf On Fri, 8 Jan 2021 at 08:56, Fabien Bodard wrote: > Hi to all, > > This is my first working appimage > > > https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing > > Can you try to run it. It must run on all Linux systems. > > This app just show a windows and a close button. > > The sources are here : > https://github.com/AppImageCrafters/appimage-demo-gambas3 > > > I'm working with Alexis Lopez Zubieta from the appimage-builder > project who have accepted to help me. > > -- > Fabien Bodard > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Jan 8 17:26:49 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Jan 2021 17:26:49 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Le ven. 8 janv. 2021 ? 17:03, Bruce Steers a ?crit : > 41mb for a hello world :-\ > my command results.... > (LinuxMint20) > It is no more fore more ? It is the cost for full Independent linux application Please what is your distribution > bonus:~$ /home/bonus/Downloads/appimage-demo-gambas3-latest-x86_64.AppImage > > ** (appimage-demo-gambas3.gambas:6865): WARNING **: 15:58:26.410: While > connecting to session manager: > None of the authentication protocols specified are supported. > /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: > g_date_time_format_iso8601 > Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so > Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element > "its:rules" > Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element > "its:translateRule" > Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute > 'translate' > Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute > 'selector' > Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute > 'xmlns:its' > Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute > 'version' > Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element > "description" > Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: > unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: > unknown element "its:translateRu > le" > Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: > invalid attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: > invalid attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: > invalid attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: > invalid attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: > unknown element "description" > Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line > 4: unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line > 5: unknown element "its:transla > teRule" > Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: > invalid attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: > invalid attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: > invalid attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: > invalid attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line > 8: unknown element "description > " > Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: > unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: > unknown element "its:translat > eRule" > Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: > invalid attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: > invalid attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: > invalid attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: > invalid attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 8: > unknown element "description" > Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: > unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: > unknown element "its:translat > eRule" > Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: > invalid attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: > invalid attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: > invalid attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: > invalid attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 8: > unknown element "description" > Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: > unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: > unknown element "its:translateRu > le" > Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: > invalid attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: > invalid attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: > invalid attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: > invalid attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: > unknown element "description" > Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 34: > unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: > unknown element "its:translateRu > le" > Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: > invalid attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: > invalid attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: > invalid attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: > invalid attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 8: unknown > element "description" > Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 4: > unknown element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: > unknown element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 8: > unknown element "description" > Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid > attribute 'version' > Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: unknown > element "its:rules" > Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: unknown > element "its:translateRule" > Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid > attribute 'translate' > Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid > attribute 'selector' > Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid > attribute 'xmlns:its' > Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid > attribute 'version' > Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf > > > On Fri, 8 Jan 2021 at 08:56, Fabien Bodard wrote: > >> Hi to all, >> >> This is my first working appimage >> >> >> https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing >> >> Can you try to run it. It must run on all Linux systems. >> >> This app just show a windows and a close button. >> >> The sources are here : >> https://github.com/AppImageCrafters/appimage-demo-gambas3 >> >> >> I'm working with Alexis Lopez Zubieta from the appimage-builder >> project who have accepted to help me. >> >> -- >> Fabien Bodard >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Fri Jan 8 17:55:41 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Fri, 8 Jan 2021 17:55:41 +0100 Subject: [Gambas-user] HTTP Gambas server Message-ID: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> Hi all, Is somebody interested by a pure Gambas HTTP server (just gb.net and gb.crypt needed) ? I work on this since 4 week and it is completely working. It's a class you can import in a project and which run when instanced. The source package contain, class in a little project with sample form which demonstrate some functionality. The server accept GET and POST requests, the functionality to redirect *.gbp pages to main prog Function which can make some modifications before send it to the browser. A web-docs folder contain some sample pages (form, create users, pages with images, login, etc...) Server has a basic session carrying with cookies. With this, all programs can be "web communicant" in stand alone mode. Tell me if you want to download (version 0.0.15 is coming tomorrow on my Gambas forum). Regards From France Olivier Coquet From bsteers4 at gmail.com Fri Jan 8 18:03:46 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 8 Jan 2021 17:03:46 +0000 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Mint20 (I did say) Gambas trunk Yeah, I get it. It's probably going to be better for larger apps. Only other AppImage I have is balena etcher and that's nearly 90mb Also I'm converting my gambas download/compile/install script into a gambas app but will only work of course if gambas is already installed and working. This could be a solution to that ? Looks very in depth to make it. Can you make an app that does it for us? ? On Fri, 8 Jan 2021, 16:28 Fabien Bodard, wrote: > > > Le ven. 8 janv. 2021 ? 17:03, Bruce Steers a ?crit : > >> 41mb for a hello world :-\ >> my command results.... >> (LinuxMint20) >> > > It is no more fore more ? > > It is the cost for full Independent linux application > > Please what is your distribution > > > >> bonus:~$ >> /home/bonus/Downloads/appimage-demo-gambas3-latest-x86_64.AppImage >> >> ** (appimage-demo-gambas3.gambas:6865): WARNING **: 15:58:26.410: While >> connecting to session manager: >> None of the authentication protocols specified are supported. >> /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: >> g_date_time_format_iso8601 >> Failed to load module: >> /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so >> Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element >> "its:rules" >> Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element >> "its:translateRule" >> Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute >> 'translate' >> Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute >> 'selector' >> Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute >> 'xmlns:its' >> Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute >> 'version' >> Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element >> "description" >> Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: >> unknown element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: >> unknown element "its:translateRu >> le" >> Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: >> invalid attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: >> invalid attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: >> invalid attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: >> invalid attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: >> unknown element "description" >> Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line >> 4: unknown element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line >> 5: unknown element "its:transla >> teRule" >> Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: >> invalid attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: >> invalid attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: >> invalid attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: >> invalid attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line >> 8: unknown element "description >> " >> Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line >> 4: unknown element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line >> 5: unknown element "its:translat >> eRule" >> Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: >> invalid attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: >> invalid attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: >> invalid attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: >> invalid attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line >> 8: unknown element "description" >> Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line >> 4: unknown element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line >> 5: unknown element "its:translat >> eRule" >> Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: >> invalid attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: >> invalid attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: >> invalid attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: >> invalid attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line >> 8: unknown element "description" >> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: >> unknown element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: >> unknown element "its:translateRu >> le" >> Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: >> invalid attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: >> invalid attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: >> invalid attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: >> invalid attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: >> unknown element "description" >> Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown >> element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: unknown >> element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 8: unknown >> element "description" >> Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown >> element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 5: unknown >> element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 8: unknown >> element "description" >> Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown >> element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 5: unknown >> element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 8: unknown >> element "description" >> Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: >> unknown element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 5: >> unknown element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 8: >> unknown element "description" >> Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown >> element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 5: unknown >> element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: unknown >> element "description" >> Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown >> element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 5: unknown >> element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 8: unknown >> element "description" >> Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown >> element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 5: unknown >> element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 8: unknown >> element "description" >> Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown >> element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 5: unknown >> element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 8: unknown >> element "description" >> Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 34: >> unknown element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: >> unknown element "its:translateRu >> le" >> Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: >> invalid attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: >> invalid attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: >> invalid attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: >> invalid attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown >> element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: unknown >> element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 8: unknown >> element "description" >> Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 4: unknown >> element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 5: unknown >> element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 4: >> unknown element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: >> unknown element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 8: >> unknown element "description" >> Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 4: >> unknown element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 5: >> unknown element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid >> attribute 'version' >> Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: >> unknown element "its:rules" >> Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: >> unknown element "its:translateRule" >> Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid >> attribute 'translate' >> Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid >> attribute 'selector' >> Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid >> attribute 'xmlns:its' >> Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid >> attribute 'version' >> Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf >> >> >> On Fri, 8 Jan 2021 at 08:56, Fabien Bodard wrote: >> >>> Hi to all, >>> >>> This is my first working appimage >>> >>> >>> https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing >>> >>> Can you try to run it. It must run on all Linux systems. >>> >>> This app just show a windows and a close button. >>> >>> The sources are here : >>> https://github.com/AppImageCrafters/appimage-demo-gambas3 >>> >>> >>> I'm working with Alexis Lopez Zubieta from the appimage-builder >>> project who have accepted to help me. >>> >>> -- >>> Fabien Bodard >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Jan 8 18:49:27 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Jan 2021 18:49:27 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Le ven. 8 janv. 2021 ? 18:04, Bruce Steers a ?crit : > Mint20 (I did say) > Gambas trunk > > Yeah, I get it. It's probably going to be better for larger apps. > > Only other AppImage I have is balena etcher and that's nearly 90mb > > Also I'm converting my gambas download/compile/install script into a > gambas app but will only work of course if gambas is already installed and > working. This could be a solution to that ? > > Looks very in depth to make it. > Can you make an app that does it for us? ? > > The appimage is only for those who don't wan't to have an application easy to deploy and maintain... I remember my suffering on Laurux :-/ ... because users was not proprammers and comme for the most part from windows... and don't have time to lost in finding why the update of their system break all ... I've dreamed to have this kind of tool. The size of a appimage or other full embedded are often less big than a windows app even if it embbed a full linux distrib or near. 40mb for my app ... the most of the size is gtk in fact. It's also 40 mb for qt5. I'm not like ubuntu poeple that imagine a complete system based on snaps... but for some apps like erp .... well why not.... I'm using it already for Cura. > > On Fri, 8 Jan 2021, 16:28 Fabien Bodard, wrote: > >> >> >> Le ven. 8 janv. 2021 ? 17:03, Bruce Steers a ?crit : >> >>> 41mb for a hello world :-\ >>> my command results.... >>> (LinuxMint20) >>> >> >> It is no more fore more ? >> >> It is the cost for full Independent linux application >> >> Please what is your distribution >> >> >> >>> bonus:~$ >>> /home/bonus/Downloads/appimage-demo-gambas3-latest-x86_64.AppImage >>> >>> ** (appimage-demo-gambas3.gambas:6865): WARNING **: 15:58:26.410: While >>> connecting to session manager: >>> None of the authentication protocols specified are supported. >>> /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: >>> g_date_time_format_iso8601 >>> Failed to load module: >>> /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so >>> Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element >>> "its:rules" >>> Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element >>> "its:translateRule" >>> Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute >>> 'translate' >>> Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute >>> 'selector' >>> Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute >>> 'xmlns:its' >>> Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute >>> 'version' >>> Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element >>> "description" >>> Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: >>> unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: >>> unknown element "its:translateRu >>> le" >>> Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: >>> invalid attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: >>> invalid attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: >>> invalid attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: >>> invalid attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: >>> unknown element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line >>> 4: unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line >>> 5: unknown element "its:transla >>> teRule" >>> Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line >>> 5: invalid attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line >>> 5: invalid attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line >>> 6: invalid attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line >>> 6: invalid attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line >>> 8: unknown element "description >>> " >>> Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line >>> 4: unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line >>> 5: unknown element "its:translat >>> eRule" >>> Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: >>> invalid attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: >>> invalid attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: >>> invalid attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: >>> invalid attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line >>> 8: unknown element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line >>> 4: unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line >>> 5: unknown element "its:translat >>> eRule" >>> Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: >>> invalid attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: >>> invalid attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: >>> invalid attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: >>> invalid attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line >>> 8: unknown element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: >>> unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: >>> unknown element "its:translateRu >>> le" >>> Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: >>> invalid attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: >>> invalid attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: >>> invalid attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: >>> invalid attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: >>> unknown element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: >>> unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: >>> unknown element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 8: >>> unknown element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown >>> element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 5: unknown >>> element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 8: unknown >>> element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown >>> element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 5: unknown >>> element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 8: unknown >>> element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: >>> unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 5: >>> unknown element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 8: >>> unknown element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown >>> element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 5: unknown >>> element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: unknown >>> element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown >>> element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 5: unknown >>> element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 8: unknown >>> element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown >>> element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 5: unknown >>> element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 8: unknown >>> element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown >>> element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 5: unknown >>> element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 8: unknown >>> element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 34: >>> unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: >>> unknown element "its:translateRu >>> le" >>> Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: >>> invalid attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: >>> invalid attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: >>> invalid attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: >>> invalid attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: >>> unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: >>> unknown element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 8: >>> unknown element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 4: unknown >>> element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 5: unknown >>> element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 4: >>> unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: >>> unknown element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: >>> invalid attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: >>> invalid attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: >>> invalid attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: >>> invalid attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 8: >>> unknown element "description" >>> Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 4: >>> unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 5: >>> unknown element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: >>> unknown element "its:rules" >>> Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: >>> unknown element "its:translateRule" >>> Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid >>> attribute 'translate' >>> Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid >>> attribute 'selector' >>> Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid >>> attribute 'xmlns:its' >>> Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid >>> attribute 'version' >>> Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf >>> >>> >>> On Fri, 8 Jan 2021 at 08:56, Fabien Bodard wrote: >>> >>>> Hi to all, >>>> >>>> This is my first working appimage >>>> >>>> >>>> https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing >>>> >>>> Can you try to run it. It must run on all Linux systems. >>>> >>>> This app just show a windows and a close button. >>>> >>>> The sources are here : >>>> https://github.com/AppImageCrafters/appimage-demo-gambas3 >>>> >>>> >>>> I'm working with Alexis Lopez Zubieta from the appimage-builder >>>> project who have accepted to help me. >>>> >>>> -- >>>> Fabien Bodard >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 8 19:02:38 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Jan 2021 19:02:38 +0100 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> Message-ID: <87c08478-88d4-751a-385e-58392ae7824a@gmail.com> Le 08/01/2021 ? 17:55, Olivier Coquet a ?crit?: > Hi all, > > Is somebody interested by a pure Gambas HTTP server (just gb.net and > gb.crypt needed) ? > > I work on this since 4 week and it is completely working. > > It's a class you can import in a project and which run when instanced. > > The source package contain, class in a little project with sample form > which demonstrate some functionality. > > The server accept GET and POST requests, the functionality to redirect > *.gbp pages to main prog Function which can make some modifications > before send it to the browser. > > A web-docs folder contain some sample pages (form, create users, pages > with images, login, etc...) > > Server has a basic session carrying with cookies. > > With this, all programs can be "web communicant" in stand alone mode. > > Tell me if you want to download (version 0.0.15 is coming tomorrow on my > Gambas forum). > > Regards From France > > Olivier Coquet > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- I'm interested (as soon as it is well implemented). Can you send your project here? -- Beno?t Minisini From bagonergi at gmail.com Fri Jan 8 19:15:25 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 8 Jan 2021 19:15:25 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Fabien, your appimage, It also works well on Mint 20.04 and Ubuntu 20.04 ? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 8 19:26:07 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Jan 2021 19:26:07 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: <784e8275-5dd0-5fb6-9794-48a2029f5ba6@gmail.com> Le 08/01/2021 ? 09:55, Fabien Bodard a ?crit?: > Hi to all, > > This is my first working appimage > > https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing > > Can you try to run it. It must run on all Linux systems. > > This app just show a windows and a close button. > > The sources are here : > https://github.com/AppImageCrafters/appimage-demo-gambas3 > > > I'm working with Alexis Lopez Zubieta from the appimage-builder > project who have accepted to help me. > Mmm... If the Gambas IDE can have an AppImage generator, it will be cool. Does the AppImage builder program still require 'apt'? -- Beno?t Minisini From gambas.fr at gmail.com Fri Jan 8 20:41:10 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 8 Jan 2021 20:41:10 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: <784e8275-5dd0-5fb6-9794-48a2029f5ba6@gmail.com> References: <784e8275-5dd0-5fb6-9794-48a2029f5ba6@gmail.com> Message-ID: > > Mmm... If the Gambas IDE can have an AppImage generator, it will be cool. > > Does the AppImage builder program still require 'apt'? > > -- > Beno?t Minisini yes ... the receipe is simple to generate ... it need just the gambas deb package name here : # appimage-builder recipe see https://appimage-builder.readthedocs.io for details version: 1 script: - rm -rf AppDir || true - mkdir -p AppDir/usr/bin AppDir/usr/share/icons/hicolor/32x32/apps/ - cp project/mapview.png AppDir/usr/share/icons/hicolor/32x32/apps/ - cp project.gambas AppDir/usr/bin/appimage-demo-gambas3.gambas AppDir: path: ./AppDir app_info: id: org.appimagecrafters.appimage-demo-gambas3 name: appimage-demo-gambas3 icon: mapview version: latest exec: usr/bin/gbr3 exec_args: $APPDIR/usr/bin/appimage-demo-gambas3.gambas -- $@ apt: arch: amd64 allow_unauthenticated: true sources: - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ bionic main restricted - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ bionic-updates main restricted - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ bionic universe - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ bionic-updates universe - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ bionic multiverse - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ bionic-updates multiverse - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security main restricted - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security universe - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security multiverse - sourceline: deb http://archive.neon.kde.org/user bionic main - sourceline: deb http://ppa.launchpad.net/gambas-team/gambas3/ubuntu bionic main include: - gambas3-gb-form - gambas3-gb-gtk3 - gambas3-runtime exclude: - adwaita-icon-theme - adwaita-icon-theme-full - humanity-icon-theme files: exclude: - usr/share/man - usr/share/doc/*/README.* - usr/share/doc/*/changelog.* - usr/share/doc/*/NEWS.* - usr/share/doc/*/TODO.* - usr/include runtime: env: GB_PATH: $APPDIR/usr/bin/gbr3 test: fedora: image: appimagecrafters/tests-env:fedora-30 command: ./AppRun use_host_x: true # debian: # image: appimagecrafters/tests-env:debian-stable # command: ./AppRun # use_host_x: true # arch: # image: appimagecrafters/tests-env:archlinux-latest # command: ./AppRun # use_host_x: true # centos: # image: appimagecrafters/tests-env:centos-7 # command: ./AppRun # use_host_x: true # ubuntu: # image: appimagecrafters/tests-env:ubuntu-xenial # command: ./AppRun # use_host_x: true AppImage: arch: x86_64 update-information: guess sign-key: None This is really simple... Note : the app image weight is 65 mo with qt5 40 with gtk3 38 with gtk2 and only 28 with qt4 > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From bagonergi at gmail.com Fri Jan 8 22:15:50 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 8 Jan 2021 22:15:50 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Il giorno ven 8 gen 2021 alle ore 19:15 Gianluigi ha scritto: > Fabien, > your appimage, > It also works well on Mint 20.04 and Ubuntu 20.04 > This is the Mint configuration if you need the other configurations as well, tell me. Regards Gianluigi [System] Gambas=3.15.90 a30f69c (master) OperatingSystem=Linux Kernel=5.8.0-36-generic Architecture=x86_64 Distribution=Linux Mint 20 Ulyana Desktop=CINNAMON Theme=mint-y Language=it_IT.UTF-8 Memory=5382M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=4.6.7 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=2597 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 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 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/941,unix/:/tmp/.ICE-unix/941 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1014 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=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.roper at iinet.net.au Fri Jan 8 23:44:36 2021 From: ian.roper at iinet.net.au (Ian Roper) Date: Sat, 9 Jan 2021 06:44:36 +0800 Subject: [Gambas-user] Unable to collapse code after rebuild. Message-ID: <83853b7f-71a8-9a77-8e4a-2313c1f0f345@iinet.net.au> This is a '*me and my computer problem*' I did a rebuild recently and copied in a backup of the /.config/gambas3 folder, to see if i could preserve my settings. That actually worked. Same background, same theme ect The only thing I can't do is open or collapse folded code. If I select format code, then it will open any collapsed code but I can't collapse it again. If I create a new project, I get the same results. Anybody have an idea of where I should be looking to resolve this. Cheers, IR -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Sat Jan 9 00:10:34 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Sat, 9 Jan 2021 00:10:34 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Works well on my Kubuntu 20.04. However, it has this ugly list of font errors... Regards Rolf Am 08.01.21 um 09:55 schrieb Fabien Bodard: > Hi to all, > > This is my first working appimage > > https://drive.google.com/file/d/1ZeZiMHeDWhVvk9erbNsqyuHUWcxcLNN6/view?usp=sharing > > Can you try to run it. It must run on all Linux systems. > > This app just show a windows and a close button. > > The sources are here : > https://github.com/AppImageCrafters/appimage-demo-gambas3 > > > I'm working with Alexis Lopez Zubieta from the appimage-builder > project who have accepted to help me. > From jussi.lahtinen at gmail.com Sat Jan 9 01:30:41 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 9 Jan 2021 02:30:41 +0200 Subject: [Gambas-user] Format & localization bug Message-ID: I don't understand why "d.m.yyyy hh:nn" changes to "d.m.yyyy hh.nn". I would expect the given format to be respected. See the attachment. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FormatBug-0.0.7.tar.gz Type: application/gzip Size: 11974 bytes Desc: not available URL: From buster6seven at gmail.com Sat Jan 9 01:54:35 2021 From: buster6seven at gmail.com (Shane) Date: Sat, 9 Jan 2021 11:54:35 +1100 Subject: [Gambas-user] Array Declaration Message-ID: <68332e17-6e11-abe7-dfc0-a8ff76827b01@gmail.com> Hey Group Is there a better way to do this Public Points as new Point[] then in a sub Points.Add(Point(2,0)) .... x amount of times .... Points.Add(Point(1,0)) From dosida at gmail.com Sat Jan 9 02:53:54 2021 From: dosida at gmail.com (Dimitris Anogiatis) Date: Fri, 8 Jan 2021 18:53:54 -0700 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Can you describe the process? How did you do it? On Fri, Jan 8, 2021 at 4:56 AM martin cristia wrote: > Works great! > > It was something I was wondering if was even possible a while ago. > > Thanks > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Jan 9 03:57:54 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 9 Jan 2021 04:57:54 +0200 Subject: [Gambas-user] Array Declaration In-Reply-To: <68332e17-6e11-abe7-dfc0-a8ff76827b01@gmail.com> References: <68332e17-6e11-abe7-dfc0-a8ff76827b01@gmail.com> Message-ID: Better in what sense? Maybe? Points = [Point(1, 0), Point(2, 0)] Jussi On Sat, Jan 9, 2021 at 2:55 AM Shane wrote: > Hey Group Is there a better way to do this > > Public Points as new Point[] > > > then in a sub > > Points.Add(Point(2,0)) > > .... > > x amount of times > > .... > > Points.Add(Point(1,0)) > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sat Jan 9 04:33:23 2021 From: buster6seven at gmail.com (Shane) Date: Sat, 9 Jan 2021 14:33:23 +1100 Subject: [Gambas-user] Array Declaration In-Reply-To: References: <68332e17-6e11-abe7-dfc0-a8ff76827b01@gmail.com> Message-ID: <0370318a-02a3-42d4-0a06-37b58b1c9000@gmail.com> Yes that was what i was after thank you On 9/1/21 1:57 pm, Jussi Lahtinen wrote: > Better in what sense? > Maybe? > Points = [Point(1, 0), Point(2, 0)] > > Jussi > > On Sat, Jan 9, 2021 at 2:55 AM Shane > wrote: > > Hey Group Is there a better way to do this > > Public Points as new Point[] > > > then in a sub > > Points.Add(Point(2,0)) > > .... > > x amount of times > > .... > > Points.Add(Point(1,0)) > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 9 05:07:55 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 9 Jan 2021 04:07:55 +0000 Subject: [Gambas-user] Unable to collapse code after rebuild. In-Reply-To: <83853b7f-71a8-9a77-8e4a-2313c1f0f345@iinet.net.au> References: <83853b7f-71a8-9a77-8e4a-2313c1f0f345@iinet.net.au> Message-ID: try going to Preferences/Editor and making sure "Procedure Folding" is selected. On Fri, 8 Jan 2021 at 22:45, Ian Roper wrote: > This is a '*me and my computer problem*' > > I did a rebuild recently and copied in a backup of the /.config/gambas3 > folder, to see if i could preserve my settings. > > That actually worked. Same background, same theme ect > > The only thing I can't do is open or collapse folded code. > > If I select format code, then it will open any collapsed code but I can't > collapse it again. > > If I create a new project, I get the same results. > > > Anybody have an idea of where I should be looking to resolve this. > > > Cheers, > > IR > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 9 05:43:51 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 9 Jan 2021 04:43:51 +0000 Subject: [Gambas-user] Unable to collapse code after rebuild. In-Reply-To: <83853b7f-71a8-9a77-8e4a-2313c1f0f345@iinet.net.au> References: <83853b7f-71a8-9a77-8e4a-2313c1f0f345@iinet.net.au> Message-ID: aah no wait. It seems to only work now if you press the shift button as well as clicking the minus sign. On Fri, 8 Jan 2021 at 22:45, Ian Roper wrote: > This is a '*me and my computer problem*' > > I did a rebuild recently and copied in a backup of the /.config/gambas3 > folder, to see if i could preserve my settings. > > That actually worked. Same background, same theme ect > > The only thing I can't do is open or collapse folded code. > > If I select format code, then it will open any collapsed code but I can't > collapse it again. > > If I create a new project, I get the same results. > > > Anybody have an idea of where I should be looking to resolve this. > > > Cheers, > > IR > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Sat Jan 9 08:46:59 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Sat, 9 Jan 2021 08:46:59 +0100 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: <87c08478-88d4-751a-385e-58392ae7824a@gmail.com> References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> <87c08478-88d4-751a-385e-58392ae7824a@gmail.com> Message-ID: <38525f7e-f9b1-bbe0-7c86-0db1b84c9d33@3d-phenomen.fr> Hi Benoit, I clean my sources archive and i'll send it here. it completely operational but some (lot of :) ) bugs are presents. Olivier Le 08/01/2021 ? 19:02, Beno?t Minisini a ?crit?: > Le 08/01/2021 ? 17:55, Olivier Coquet a ?crit?: >> Hi all, >> >> Is somebody interested by a pure Gambas HTTP server (just gb.net and >> gb.crypt needed) ? >> >> I work on this since 4 week and it is completely working. >> >> It's a class you can import in a project and which run when instanced. >> >> The source package contain, class in a little project with sample >> form which demonstrate some functionality. >> >> The server accept GET and POST requests, the functionality to >> redirect *.gbp pages to main prog Function which can make some >> modifications before send it to the browser. >> >> A web-docs folder contain some sample pages (form, create users, >> pages with images, login, etc...) >> >> Server has a basic session carrying with cookies. >> >> With this, all programs can be "web communicant" in stand alone mode. >> >> Tell me if you want to download (version 0.0.15 is coming tomorrow on >> my Gambas forum). >> >> Regards From France >> >> Olivier Coquet >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > I'm interested (as soon as it is well implemented). Can you send your > project here? > From ocoquet at 3d-phenomen.fr Sat Jan 9 09:24:49 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Sat, 9 Jan 2021 09:24:49 +0100 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: <87c08478-88d4-751a-385e-58392ae7824a@gmail.com> References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> <87c08478-88d4-751a-385e-58392ae7824a@gmail.com> Message-ID: <865a42b9-f078-eb55-82af-a52b30b8dda7@3d-phenomen.fr> Here it is ! Comments are welcome All sources are commented. Olivier Coquet Le 08/01/2021 ? 19:02, Beno?t Minisini a ?crit?: > Le 08/01/2021 ? 17:55, Olivier Coquet a ?crit?: >> Hi all, >> >> Is somebody interested by a pure Gambas HTTP server (just gb.net and >> gb.crypt needed) ? >> >> I work on this since 4 week and it is completely working. >> >> It's a class you can import in a project and which run when instanced. >> >> The source package contain, class in a little project with sample >> form which demonstrate some functionality. >> >> The server accept GET and POST requests, the functionality to >> redirect *.gbp pages to main prog Function which can make some >> modifications before send it to the browser. >> >> A web-docs folder contain some sample pages (form, create users, >> pages with images, login, etc...) >> >> Server has a basic session carrying with cookies. >> >> With this, all programs can be "web communicant" in stand alone mode. >> >> Tell me if you want to download (version 0.0.15 is coming tomorrow on >> my Gambas forum). >> >> Regards From France >> >> Olivier Coquet >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > I'm interested (as soon as it is well implemented). Can you send your > project here? > -------------- next part -------------- A non-text attachment was scrubbed... Name: crashtest-0.0.15.tar.gz Type: application/gzip Size: 80197 bytes Desc: not available URL: From bagonergi at gmail.com Sat Jan 9 12:19:27 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 9 Jan 2021 12:19:27 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Fabien, if i understand correctly, do you want it to be tested only on computers without Gambas? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Sat Jan 9 13:12:53 2021 From: ocoquet at 3d-phenomen.fr (ocoquet) Date: Sat, 09 Jan 2021 13:12:53 +0100 Subject: [Gambas-user] http gambas serveur Message-ID: <202101091212.109CCwxs003121@sd-89727.dedibox.fr> Hi all,I've posted complet class of http server, if somebody can test it, it will be realy interesting for me to have your opinion ..RegardsOlivier coquet.Envoy? depuis mon appareil Galaxy -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 9 14:56:42 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 9 Jan 2021 13:56:42 +0000 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: On Fri, 8 Jan 2021 at 17:50, Fabien Bodard wrote: > > > Le ven. 8 janv. 2021 ? 18:04, Bruce Steers a ?crit : > >> Mint20 (I did say) >> Gambas trunk >> >> Yeah, I get it. It's probably going to be better for larger apps. >> >> Only other AppImage I have is balena etcher and that's nearly 90mb >> >> Also I'm converting my gambas download/compile/install script into a >> gambas app but will only work of course if gambas is already installed and >> working. This could be a solution to that ? >> >> Looks very in depth to make it. >> Can you make an app that does it for us? ? >> >> > The appimage is only for those who don't wan't to have an application easy > to deploy and maintain... I remember my suffering on Laurux :-/ ... because > users was not proprammers and comme for the most part from windows... and > don't have time to lost in finding why the update of their system break all > ... I've dreamed to have this kind of tool. > > The size of a appimage or other full embedded are often less big than a > windows app even if it embbed a full linux distrib or near. > > 40mb for my app ... the most of the size is gtk in fact. It's also 40 mb > for qt5. > > I'm not like ubuntu poeple that imagine a complete system based on > snaps... but for some apps like erp .... well why not.... I'm using it > already for Cura. > Awesome :) I'm thinking it'll be perfect for my app. the main reason my compiler/installer had to be a shell script and not a gambas app was because Gambas may not be installed or working when running it. A gambas app that can run regardless of any previous gambas installation would be great. My aim here is to make upgrading gambas to latest version so simple even those non programmer people from windows can install/upgrade it ;) Great work Fab. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sat Jan 9 17:36:17 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 9 Jan 2021 17:36:17 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: WIthout gambas ... or gtk or qt ... normally just a computer with X must do the job ... normally :-/ Le sam. 9 janv. 2021 ? 12:20, Gianluigi a ?crit : > > Fabien, > if i understand correctly, do you want it to be tested only on computers without Gambas? > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From karl.reinl at fen-net.de Sat Jan 9 18:26:07 2021 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sat, 09 Jan 2021 18:26:07 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Am Samstag, den 09.01.2021, 17:36 +0100 schrieb Fabien Bodard: > WIthout gambas ... or gtk or qt ... normally just a computer with X > must do the job ... normally :-/ > > Le sam. 9 janv. 2021 ? 12:20, Gianluigi a ?crit > : > > Fabien, > > if i understand correctly, do you want it to be tested only on > > computers without Gambas? > > > > Regards > > Gianluigi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > yes that work, do not check if qt or gtk (think both) but no gambas3 at all. It works -- Amicalement Charlie From gambas.fr at gmail.com Sat Jan 9 19:08:25 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 9 Jan 2021 19:08:25 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Le sam. 9 janv. 2021 ? 18:27, Karl Reinl a ?crit : > > Am Samstag, den 09.01.2021, 17:36 +0100 schrieb Fabien Bodard: > > WIthout gambas ... or gtk or qt ... normally just a computer with X > > must do the job ... normally :-/ > > > > Le sam. 9 janv. 2021 ? 12:20, Gianluigi a ?crit > > : > > > Fabien, > > > if i understand correctly, do you want it to be tested only on > > > computers without Gambas? > > > > > > Regards > > > Gianluigi > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > yes that work, do not check if qt or gtk (think both) but no gambas3 at > all. > It works I still have problem on archlinux with fonts :-/ > -- > Amicalement > Charlie > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From bsteers4 at gmail.com Sat Jan 9 19:29:38 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 9 Jan 2021 18:29:38 +0000 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: I tested it on TinyCore CorePlus that has variations so i tested on a few WMs like Joes, Ice and OpenBox ... http://tinycorelinux.net/ all had the same error.. appimage-demo-gambas3-latest-x86_64.AppImage: line 1: syntax error: unexpected ")" BruceS On Sat, 9 Jan 2021 at 16:37, Fabien Bodard wrote: > WIthout gambas ... or gtk or qt ... normally just a computer with X > must do the job ... normally :-/ > > Le sam. 9 janv. 2021 ? 12:20, Gianluigi a ?crit : > > > > Fabien, > > if i understand correctly, do you want it to be tested only on computers > without Gambas? > > > > Regards > > Gianluigi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > -- > Fabien Bodard > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sat Jan 9 23:03:45 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 10 Jan 2021 09:03:45 +1100 Subject: [Gambas-user] DrawImage Message-ID: hey Am I correct in believing that this code would put a copy of img1 at x=100, y=100 of backimg backimg = img1.DrawImage(img1, 100, 100) it draws img1 but at 0,0 any ideas? Cheers Shane From jussi.lahtinen at gmail.com Sat Jan 9 23:16:48 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jan 2021 00:16:48 +0200 Subject: [Gambas-user] DrawImage In-Reply-To: References: Message-ID: Try: backimg = Image.DrawImage(img1, 100, 100) Or: img1.DrawImage(img1, 100, 100) backimg = img1 Jussi On Sun, Jan 10, 2021 at 12:04 AM Shane wrote: > hey > > Am I correct in believing that this code would put a copy of img1 at > x=100, y=100 of backimg > > backimg = img1.DrawImage(img1, 100, 100) > > it draws img1 but at 0,0 > > any ideas? > > Cheers Shane > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sat Jan 9 23:23:30 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 10 Jan 2021 09:23:30 +1100 Subject: [Gambas-user] DrawImage In-Reply-To: References: Message-ID: Hi jussi tried backimg = Image.DrawImage(img1, 100, 100) returns Error Image.DrawImage is not static img1.DrawImage(img1, 100, 100) backimg = img1 Did the same as what I was doing thanks On 10/1/21 9:16 am, Jussi Lahtinen wrote: > Try: > backimg = Image.DrawImage(img1, 100, 100) > Or: > img1.DrawImage(img1, 100, 100) > backimg = img1 > > > Jussi > > On Sun, Jan 10, 2021 at 12:04 AM Shane > wrote: > > hey > > Am I correct in believing that this code would put a copy of img1 at > x=100, y=100 of backimg > > backimg = img1.DrawImage(img1, 100, 100) > > it draws img1 but at 0,0 > > any ideas? > > Cheers Shane > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sat Jan 9 23:38:58 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 10 Jan 2021 09:38:58 +1100 Subject: [Gambas-user] DrawImage In-Reply-To: References: Message-ID: <0f1f877c-399e-4bff-6143-1e506ea0177e@gmail.com> Hi jussi tried backimg = Image.DrawImage(img1, 100, 100) returns Error Image.DrawImage is not static img1.DrawImage(img1, 100, 100) backimg = img1 Did the same as what I was doing also it deleting the rest of the backimg thanks On 10/1/21 9:16 am, Jussi Lahtinen wrote: > Try: > backimg = Image.DrawImage(img1, 100, 100) > Or: > img1.DrawImage(img1, 100, 100) > backimg = img1 > > > Jussi > > On Sun, Jan 10, 2021 at 12:04 AM Shane > wrote: > > hey > > Am I correct in believing that this code would put a copy of img1 at > x=100, y=100 of backimg > > backimg = img1.DrawImage(img1, 100, 100) > > it draws img1 but at 0,0 > > any ideas? > > Cheers Shane > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Jan 9 23:59:35 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 9 Jan 2021 23:59:35 +0100 Subject: [Gambas-user] DrawImage In-Reply-To: <0f1f877c-399e-4bff-6143-1e506ea0177e@gmail.com> References: <0f1f877c-399e-4bff-6143-1e506ea0177e@gmail.com> Message-ID: Would you like to do something like this? Private hImg1 As Image Private hImg2 As Image Public Sub Form_Open() DrawingArea1.Width = 256 DrawingArea1.Height = 512 hImg1 = Picture["icon:/256/access"].Image hImg2 = hImg1.Copy() DrawingArea1.Refresh End Public Sub DrawingArea1_Draw() With paint .Begin(DrawingArea1) .DrawImage(hImg1, DrawingArea1.X, DrawingArea1.Y) .DrawImage(hImg2, DrawingArea1.X, DrawingArea1.Y + 256) .End End With End Regards Gianluigi Il giorno sab 9 gen 2021 alle ore 23:40 Shane ha scritto: > Hi jussi > > tried > > backimg = Image.DrawImage(img1, 100, 100) > > returns Error Image.DrawImage is not static > img1.DrawImage(img1, 100, 100) > backimg = img1 > > Did the same as what I was doing > also it deleting the rest of the backimg > > thanks > > > On 10/1/21 9:16 am, Jussi Lahtinen wrote: > > Try: > backimg = Image.DrawImage(img1, 100, 100) > Or: > img1.DrawImage(img1, 100, 100) > backimg = img1 > > > Jussi > > On Sun, Jan 10, 2021 at 12:04 AM Shane wrote: > >> hey >> >> Am I correct in believing that this code would put a copy of img1 at >> x=100, y=100 of backimg >> >> backimg = img1.DrawImage(img1, 100, 100) >> >> it draws img1 but at 0,0 >> >> any ideas? >> >> Cheers Shane >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Jan 10 00:03:14 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 10 Jan 2021 10:03:14 +1100 Subject: [Gambas-user] DrawImage In-Reply-To: References: <0f1f877c-399e-4bff-6143-1e506ea0177e@gmail.com> Message-ID: Sorry Gianluigi I should have mentioned that I am using SDL so no DrawingArea thanks anyway On 10/1/21 9:59 am, Gianluigi wrote: > Would you like to do something like this? > > Private hImg1 As Image > Private hImg2 As Image > > Public Sub Form_Open() > > ? DrawingArea1.Width = 256 > ? DrawingArea1.Height = 512 > ? hImg1 = Picture["icon:/256/access"].Image > ? hImg2 = hImg1.Copy() > ? DrawingArea1.Refresh > > End > > Public Sub DrawingArea1_Draw() > > ? With paint > ? ? .Begin(DrawingArea1) > ? ? .DrawImage(hImg1, DrawingArea1.X, DrawingArea1.Y) > ? ? .DrawImage(hImg2, DrawingArea1.X, DrawingArea1.Y + 256) > ? ? .End > ? End With > > End > > Regards > Gianluigi > > Il giorno sab 9 gen 2021 alle ore 23:40 Shane > ha scritto: > > Hi jussi > > tried > > backimg = Image.DrawImage(img1, 100, 100) > > returns Error Image.DrawImage is not static > > img1.DrawImage(img1, 100, 100) > backimg = img1 > > Did the same as what I was doing > also it deleting the rest of the backimg > > thanks > > > On 10/1/21 9:16 am, Jussi Lahtinen wrote: >> Try: >> backimg = Image.DrawImage(img1, 100, 100) >> Or: >> img1.DrawImage(img1, 100, 100) >> backimg = img1 >> >> >> Jussi >> >> On Sun, Jan 10, 2021 at 12:04 AM Shane > > wrote: >> >> hey >> >> Am I correct in believing that this code would put a copy of >> img1 at >> x=100, y=100 of backimg >> >> backimg = img1.DrawImage(img1, 100, 100) >> >> it draws img1 but at 0,0 >> >> any ideas? >> >> Cheers Shane >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> ----[http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jan 10 00:25:26 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 10 Jan 2021 00:25:26 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: Fabien, here we tested on Ubuntu and Xubuntu 18.04 with excellent results, only the warning per library canberra as communicated by Christof. While Xubuntu and Ubuntu 20.04 give a lot of warnings as communicated by BruceS, moreover Ubuntu opens a bad window. I enclose warnings and image. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: appimage.png Type: image/png Size: 15091 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: AppImageFabien.zip Type: application/zip Size: 1544 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Sun Jan 10 01:12:43 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jan 2021 02:12:43 +0200 Subject: [Gambas-user] DrawImage In-Reply-To: <0f1f877c-399e-4bff-6143-1e506ea0177e@gmail.com> References: <0f1f877c-399e-4bff-6143-1e506ea0177e@gmail.com> Message-ID: > > backimg = Image.DrawImage(img1, 100, 100) > > returns Error Image.DrawImage is not static > OK. I thought maybe it was a static function. I think it is a bug, but we need to see more code to be sure. Can you isolate the problem into a small project? > ... also it deleting the rest of the backimg > That is expected, I didn't know the backimg had something already. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jan 10 01:13:52 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 10 Jan 2021 01:13:52 +0100 Subject: [Gambas-user] DrawImage In-Reply-To: References: Message-ID: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> Le 09/01/2021 ? 23:03, Shane a ?crit?: > hey > > Am I correct in believing that this code would put a copy of img1 at > x=100, y=100 of backimg > > backimg = img1.DrawImage(img1, 100, 100) > > it draws img1 but at 0,0 > > any ideas? > > Cheers Shane > Of course not, your code has no sense at all. To do what you want, you must write: backimg.DrawImage(img1, 100, 100) Regards, -- Beno?t Minisini From buster6seven at gmail.com Sun Jan 10 01:29:42 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 10 Jan 2021 11:29:42 +1100 Subject: [Gambas-user] DrawImage In-Reply-To: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> Message-ID: Ok looks like there is a bug simple test program attached On 10/1/21 11:13 am, Beno?t Minisini wrote: > Le 09/01/2021 ? 23:03, Shane a ?crit?: >> hey >> >> Am I correct in believing that this code would put a copy of img1 at >> x=100, y=100 of backimg >> >> backimg = img1.DrawImage(img1, 100, 100) >> >> it draws img1 but at 0,0 >> >> any ideas? >> >> Cheers Shane >> > > Of course not, your code has no sense at all. > > To do what you want, you must write: > > backimg.DrawImage(img1, 100, 100) > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: test-0.0.1.tar.gz Type: application/gzip Size: 68813 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Sun Jan 10 01:37:32 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jan 2021 02:37:32 +0200 Subject: [Gambas-user] DrawImage In-Reply-To: References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> Message-ID: No everything works, the bug is in your code. This modifies the backimg: backimg.DrawImage(img1, 100, 100) This draws the backimg: Draw.Image(backimg, 0, 0) So, you have them in wrong order. Jussi On Sun, Jan 10, 2021 at 2:30 AM Shane wrote: > Ok looks like there is a bug > > simple test program attached > > > On 10/1/21 11:13 am, Beno?t Minisini wrote: > > Le 09/01/2021 ? 23:03, Shane a ?crit : > >> hey > >> > >> Am I correct in believing that this code would put a copy of img1 at > >> x=100, y=100 of backimg > >> > >> backimg = img1.DrawImage(img1, 100, 100) > >> > >> it draws img1 but at 0,0 > >> > >> any ideas? > >> > >> Cheers Shane > >> > > > > Of course not, your code has no sense at all. > > > > To do what you want, you must write: > > > > backimg.DrawImage(img1, 100, 100) > > > > Regards, > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jan 10 01:44:41 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jan 2021 02:44:41 +0200 Subject: [Gambas-user] DrawImage In-Reply-To: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> Message-ID: > Of course not, your code has no sense at all. > > To do what you want, you must write: > > backimg.DrawImage(img1, 100, 100) > By quick read of the documentation, it looks like that is a function (method) that should return the modified image. Like File.Open returns string. http://gambaswiki.org/wiki/comp/gb.image/image/drawimage Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Jan 10 01:52:18 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 10 Jan 2021 11:52:18 +1100 Subject: [Gambas-user] DrawImage In-Reply-To: References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> Message-ID: Ok I see DrawImage is not persistent is there a way to add things to an existing image and have it persistent On 10/1/21 11:37 am, Jussi Lahtinen wrote: > No everything works, the bug is in your code. > > This modifies the backimg: > backimg.DrawImage(img1, 100, 100) > > This draws the backimg: > Draw.Image(backimg, 0, 0) > > So, you have them in wrong order. > > > Jussi > > On Sun, Jan 10, 2021 at 2:30 AM Shane > wrote: > > Ok looks like there is a bug > > simple test program attached > > > On 10/1/21 11:13 am, Beno?t Minisini wrote: > > Le 09/01/2021 ? 23:03, Shane a ?crit?: > >> hey > >> > >> Am I correct in believing that this code would put a copy of > img1 at > >> x=100, y=100 of backimg > >> > >> backimg = img1.DrawImage(img1, 100, 100) > >> > >> it draws img1 but at 0,0 > >> > >> any ideas? > >> > >> Cheers Shane > >> > > > > Of course not, your code has no sense at all. > > > > To do what you want, you must write: > > > > backimg.DrawImage(img1, 100, 100) > > > > Regards, > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jan 10 03:07:35 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jan 2021 04:07:35 +0200 Subject: [Gambas-user] DrawImage In-Reply-To: References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> Message-ID: > > Ok I see DrawImage is not persistent is there a way to add things to an > existing image and have it persistent > Not sure what you mean. You have to keep on redrawing the image on screen every time you modify it. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Jan 10 03:37:05 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 10 Jan 2021 13:37:05 +1100 Subject: [Gambas-user] DrawImage In-Reply-To: References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> Message-ID: So it seems I have to alter the backimg with DrawImage then make it stay there using Draw.Image within in the current loop sub Draw() Draw.Clear backimg.DrawImage(img1, 15, 15) backimg.DrawImage(img2, 50, 50) Draw.Image(backimg,0,0) end sub but what i want to do is sub MouseMove() backimg.DrawImage(img1,Mouse.X,Mouse.Y) end So I want to paste the img1 into backimg then display the result Image On 10/1/21 1:07 pm, Jussi Lahtinen wrote: > > Ok I see DrawImage is not persistent is there a way to add things > to an existing image and have it persistent > > Not sure what you mean. You have to keep on redrawing the image on > screen every time you modify it. > > > Jussi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Jan 10 03:43:30 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 10 Jan 2021 13:43:30 +1100 Subject: [Gambas-user] DrawImage In-Reply-To: References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> Message-ID: <861d4d30-cb42-3228-58ca-b8ab55ba7cb2@gmail.com> From The Wiki Image (gb.image) This class implements an image. The image contents are stored in the process memory, not in the display server like a Picture . To get or set individual pixel values, you can treat the Image class as a two-dimensional array: Image[x,y] would refer to the pixel at position (x, y) within the image. _All methods except _Copy _modify the image and return itself._ -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Jan 10 03:52:29 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 10 Jan 2021 13:52:29 +1100 Subject: [Gambas-user] DrawImage In-Reply-To: References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> Message-ID: <66f128c0-16be-d5f0-5ff9-bcdaccbb66f9@gmail.com> Public Sub Window_Draw() ? ? Dim H As Integer ? H = Font.DefaultHeight * 4 ? Draw.Clear ? backimg.Resize(640, 480) _<-This makes it work as expected_ ? Draw.Image(backimg, 0, 0) ? Draw.Font.Size = H ? Draw.Text("Gambas", 0, 0) ? Draw.Text(CStr($hWindow.FrameCount), 0, H) End Public Sub Window_MouseMove() ? ? backimg = backimg.DrawImage(img1, Mouse.X, Mouse.Y) End -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Jan 10 03:56:23 2021 From: buster6seven at gmail.com (Shane) Date: Sun, 10 Jan 2021 13:56:23 +1100 Subject: [Gambas-user] DrawImage In-Reply-To: References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> Message-ID: <34e1e818-adb8-e7b8-ab3e-5fc2269d8fc3@gmail.com> But what I really need is a way of making a image of parts that change the original but is never seen From jussi.lahtinen at gmail.com Sun Jan 10 04:22:33 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jan 2021 05:22:33 +0200 Subject: [Gambas-user] DrawImage In-Reply-To: <34e1e818-adb8-e7b8-ab3e-5fc2269d8fc3@gmail.com> References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> <34e1e818-adb8-e7b8-ab3e-5fc2269d8fc3@gmail.com> Message-ID: Not sure I follow, but look at the attachment. Is that what you mean? Jussi On Sun, Jan 10, 2021 at 4:57 AM Shane wrote: > But what I really need is a way of making a image of parts that change > the original but is never seen > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test-0.0.2.tar.gz Type: application/gzip Size: 68851 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Sun Jan 10 04:32:00 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jan 2021 05:32:00 +0200 Subject: [Gambas-user] DrawImage In-Reply-To: References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> <34e1e818-adb8-e7b8-ab3e-5fc2269d8fc3@gmail.com> Message-ID: Or is this what you mean? See the attachment. It's a bit of a hack. I hope someone actually familiar with SDL can help further. Jussi On Sun, Jan 10, 2021 at 5:22 AM Jussi Lahtinen wrote: > Not sure I follow, but look at the attachment. Is that what you mean? > > Jussi > > On Sun, Jan 10, 2021 at 4:57 AM Shane wrote: > >> But what I really need is a way of making a image of parts that change >> the original but is never seen >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test-0.0.3.tar.gz Type: application/gzip Size: 68912 bytes Desc: not available URL: From gambas.fr at gmail.com Sun Jan 10 09:07:54 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Jan 2021 09:07:54 +0100 Subject: [Gambas-user] My first working gambas appimage In-Reply-To: References: Message-ID: The appimage ins based on Ubuntu 18.04 so that's maybe explain the problem :-/. Le dim. 10 janv. 2021 ? 00:26, Gianluigi a ?crit : > > Fabien, > here we tested on Ubuntu and Xubuntu 18.04 with excellent results, only the warning per library canberra as communicated by Christof. > While Xubuntu and Ubuntu 20.04 give a lot of warnings as communicated by BruceS, moreover Ubuntu opens a bad window. > I enclose warnings and image. > > Regards > Gianluigi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From gambas.fr at gmail.com Sun Jan 10 09:32:21 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Jan 2021 09:32:21 +0100 Subject: [Gambas-user] DrawImage In-Reply-To: References: <9a875b82-4716-3b27-51ae-ffe8940406d2@gmail.com> <34e1e818-adb8-e7b8-ab3e-5fc2269d8fc3@gmail.com> Message-ID: Well so it's like a lens that show the background image at the mouse point ?... only the area under the mouse is reveled. -------------- next part -------------- A non-text attachment was scrubbed... Name: backshow-0.0.1.tar.gz Type: application/gzip Size: 148098 bytes Desc: not available URL: From gambas.fr at gmail.com Sun Jan 10 09:37:26 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Jan 2021 09:37:26 +0100 Subject: [Gambas-user] http gambas serveur In-Reply-To: <202101091212.109CCwxs003121@sd-89727.dedibox.fr> References: <202101091212.109CCwxs003121@sd-89727.dedibox.fr> Message-ID: Ok I've tested ... It seem really interesting :-). But unfortunately I've not the required competences to make more advanced judgement :-). More over I think I will use it for my own projects :-D Le sam. 9 janv. 2021 ? 13:14, ocoquet a ?crit : > > Hi all, > > I've posted complet class of http server, if somebody can test it, it will be realy interesting for me to have your opinion .. > > Regards > > Olivier coquet. > > > Envoy? depuis mon appareil Galaxy > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From gambas.fr at gmail.com Sun Jan 10 09:57:57 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Jan 2021 09:57:57 +0100 Subject: [Gambas-user] New appimage version Message-ID: Hi, This is a new version ... with the font working ... It seem I need to add some dependencies manually. For TinyCore I need to investigate ... remember that an image is dependent to the architecture... actually it's 86_64 so try on accurate version :-) -- Fabien Bodard From gambas.fr at gmail.com Sun Jan 10 10:09:03 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Jan 2021 10:09:03 +0100 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: Le dim. 10 janv. 2021 ? 09:57, Fabien Bodard a ?crit : > > Hi, > > This is a new version ... with the font working ... It seem I need to > add some dependencies manually. > > For TinyCore I need to investigate ... remember that an image is > dependent to the architecture... actually it's 86_64 > > so try on accurate version :-) > -- > Fabien Bodard Well with the link :-) https://drive.google.com/file/d/1G-AZqdLVfn7tbVuS24HpmRLfHdOpBqdH/view?usp=sharing -- Fabien Bodard From ocoquet at 3d-phenomen.fr Sun Jan 10 10:12:07 2021 From: ocoquet at 3d-phenomen.fr (ocoquet) Date: Sun, 10 Jan 2021 10:12:07 +0100 Subject: [Gambas-user] http gambas serveur In-Reply-To: Message-ID: <202101100912.10A9CCes025446@sd-89727.dedibox.fr> Thank's Fabien, it's my goal, make a http server directly integrated in gambas to make peoples without competence able to connect there own program to the web...OlivierEnvoy? depuis mon appareil Galaxy -------- Message d'origine --------De : Fabien Bodard Date : 10/01/2021 09:38 (GMT+01:00) ? : Gambas Mailing List Objet : Re: [Gambas-user] http gambas serveur Ok I've tested ... It seem really interesting :-). But unfortunatelyI've not the required competences to make more advanced judgement :-).More over I think I will use it for my own projects :-DLe sam. 9 janv. 2021 ? 13:14, ocoquet a ?crit :>> Hi all,>> I've posted complet class of http server, if somebody can test it, it will be realy interesting for me to have your opinion ..>> Regards>> Olivier coquet.>>> Envoy? depuis mon appareil Galaxy>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]------ Fabien Bodard----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jan 10 11:15:08 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 10 Jan 2021 11:15:08 +0100 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: Il giorno dom 10 gen 2021 alle ore 10:10 Fabien Bodard ha scritto: > Le dim. 10 janv. 2021 ? 09:57, Fabien Bodard a > ?crit : > > > > Hi, > > > > This is a new version ... with the font working ... It seem I need to > > add some dependencies manually. > > > > For TinyCore I need to investigate ... remember that an image is > > dependent to the architecture... actually it's 86_64 > > > > so try on accurate version :-) > > -- > > Fabien Bodard > > Well with the link :-) > > > https://drive.google.com/file/d/1G-AZqdLVfn7tbVuS24HpmRLfHdOpBqdH/view?usp=sharing > > -- > Fabien Bodard > > Fabien, I'm sorry but on Ubuntu 20.04.1 LTS there are fewer warnings(*), but the window is the same as the previous image sent. Regards Gianluigi (*) ./*.AppImage /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so: undefined symbol: g_task_set_name Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: g_date_time_format_iso8601 Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so: undefined symbol: g_task_set_name Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so: undefined symbol: g_mount_operation_get_is_tcrypt_system_volume Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so /tmp/.mount_appimarzcs8e/usr/lib/x86_64-linux-gnu/libgnutls.so.30: version `GNUTLS_3_6_3' not found (required by /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so) Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so ** (appimage-demo-gambas3.gambas:5026): WARNING **: 10:59:42.442: While connecting to session manager: None of the authentication protocols specified are supported. (appimage-demo-gambas3.gambas:5026): Gtk-WARNING **: 10:59:42.456: Theme parsing error: gtk.css:1521:23: 'font-feature-settings' is not a valid property name (appimage-demo-gambas3.gambas:5026): Gtk-WARNING **: 10:59:42.460: Theme parsing error: gtk.css:3460:25: 'font-feature-settings' is not a valid property name (appimage-demo-gambas3.gambas:5026): Gtk-WARNING **: 10:59:42.461: Theme parsing error: gtk.css:3922:23: 'font-feature-settings' is not a valid property name -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Jan 10 11:22:02 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Jan 2021 11:22:02 +0100 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: What did you call a bad window ? Le dim. 10 janv. 2021 ? 11:16, Gianluigi a ?crit : > > > > Il giorno dom 10 gen 2021 alle ore 10:10 Fabien Bodard ha scritto: >> >> Le dim. 10 janv. 2021 ? 09:57, Fabien Bodard a ?crit : >> > >> > Hi, >> > >> > This is a new version ... with the font working ... It seem I need to >> > add some dependencies manually. >> > >> > For TinyCore I need to investigate ... remember that an image is >> > dependent to the architecture... actually it's 86_64 >> > >> > so try on accurate version :-) >> > -- >> > Fabien Bodard >> >> Well with the link :-) >> >> https://drive.google.com/file/d/1G-AZqdLVfn7tbVuS24HpmRLfHdOpBqdH/view?usp=sharing >> >> -- >> Fabien Bodard >> > > Fabien, > > I'm sorry but on Ubuntu 20.04.1 LTS there are fewer warnings(*), but the window is the same as the previous image sent. > > Regards > Gianluigi > > (*) ./*.AppImage > /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so: undefined symbol: g_task_set_name > Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so > /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: g_date_time_format_iso8601 > Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so > /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so: undefined symbol: g_task_set_name > Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so > /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so: undefined symbol: g_mount_operation_get_is_tcrypt_system_volume > Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so > /tmp/.mount_appimarzcs8e/usr/lib/x86_64-linux-gnu/libgnutls.so.30: version `GNUTLS_3_6_3' not found (required by /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so) > Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so > > ** (appimage-demo-gambas3.gambas:5026): WARNING **: 10:59:42.442: While connecting to session manager: > None of the authentication protocols specified are supported. > > (appimage-demo-gambas3.gambas:5026): Gtk-WARNING **: 10:59:42.456: Theme parsing error: gtk.css:1521:23: 'font-feature-settings' is not a valid property name > > (appimage-demo-gambas3.gambas:5026): Gtk-WARNING **: 10:59:42.460: Theme parsing error: gtk.css:3460:25: 'font-feature-settings' is not a valid property name > > (appimage-demo-gambas3.gambas:5026): Gtk-WARNING **: 10:59:42.461: Theme parsing error: gtk.css:3922:23: 'font-feature-settings' is not a valid property name > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From bagonergi at gmail.com Sun Jan 10 11:37:02 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 10 Jan 2021 11:37:02 +0100 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: Il giorno dom 10 gen 2021 alle ore 11:23 Fabien Bodard ha scritto: > What did you call a bad window ? > > I don't understand what you are asking me. I started the app both with the terminal command (./*.AppImage) and with the double click. I am attaching the image again. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: appimage.png Type: image/png Size: 15091 bytes Desc: not available URL: From gambas.fr at gmail.com Sun Jan 10 12:24:58 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Jan 2021 12:24:58 +0100 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: because this image seem good :-/ Le dim. 10 janv. 2021 ? 11:38, Gianluigi a ?crit : > > > > Il giorno dom 10 gen 2021 alle ore 11:23 Fabien Bodard ha scritto: >> >> What did you call a bad window ? >> > > I don't understand what you are asking me. > I started the app both with the terminal command (./*.AppImage) and with the double click. > I am attaching the image again. > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From gambas.fr at gmail.com Sun Jan 10 12:40:59 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Jan 2021 12:40:59 +0100 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: https://drive.google.com/file/d/1SzKbioVSZZGdEP_60jSAA7bZ15lRc5Rv/view?usp=sharing New One Le dim. 10 janv. 2021 ? 12:24, Fabien Bodard a ?crit : > > because this image seem good :-/ > > Le dim. 10 janv. 2021 ? 11:38, Gianluigi a ?crit : > > > > > > > > Il giorno dom 10 gen 2021 alle ore 11:23 Fabien Bodard ha scritto: > >> > >> What did you call a bad window ? > >> > > > > I don't understand what you are asking me. > > I started the app both with the terminal command (./*.AppImage) and with the double click. > > I am attaching the image again. > > > > Regards > > Gianluigi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > -- > Fabien Bodard -- Fabien Bodard From bsteers4 at gmail.com Sun Jan 10 13:04:23 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 10 Jan 2021 12:04:23 +0000 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: Just this... Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so But otherwise working on Mint 20 :) BruceS On Sun, 10 Jan 2021 at 11:42, Fabien Bodard wrote: > > https://drive.google.com/file/d/1SzKbioVSZZGdEP_60jSAA7bZ15lRc5Rv/view?usp=sharing > > New One > > Le dim. 10 janv. 2021 ? 12:24, Fabien Bodard a > ?crit : > > > > because this image seem good :-/ > > > > Le dim. 10 janv. 2021 ? 11:38, Gianluigi a ?crit : > > > > > > > > > > > > Il giorno dom 10 gen 2021 alle ore 11:23 Fabien Bodard < > gambas.fr at gmail.com> ha scritto: > > >> > > >> What did you call a bad window ? > > >> > > > > > > I don't understand what you are asking me. > > > I started the app both with the terminal command (./*.AppImage) and > with the double click. > > > I am attaching the image again. > > > > > > Regards > > > Gianluigi > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > > -- > > Fabien Bodard > > > > -- > Fabien Bodard > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Sun Jan 10 13:22:02 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Sun, 10 Jan 2021 13:22:02 +0100 Subject: [Gambas-user] http gambas serveur In-Reply-To: References: <202101091212.109CCwxs003121@sd-89727.dedibox.fr> Message-ID: HTTP Gambas Server Class v0.0.15 Thank's Fabien, Hello, I take the time to give you some information about my Gambas http server. Originally, I wrote this class to make my home automation program accessible from a tablet or a smartphone. Some researches had told me that to achieve this, I needed to install a web server, the php module and some other stuff. I also had to configure all this to work together. Last but not least, all these installations were dependent on linux distribution and therefore not very easily transportable. So I decided to write something simple, easily transportable and above all not dependent on anything but Gambas itself. That's how this http server class was born. The first versions only accepted browser connections and sent a pure html page, but as time went by and needs changed, I enriched it with more advanced features: get requests, *.gbp pages equivalent to php etc. Today, the class can answer GET and POST requests, redirect pages, call a procedure in the main program when a *.gbp page is requested, manage encrypted logins and passwords, manage, through cookies, the validity of a session, etc.... Due to its relatively simple principle, any program can become a "communicating web" by just copying and pasting the class, creating a processing procedure in the main program and instantiating the class. I've added some examples in the web-docs folder in which I demonstrate the verification of a login and password, the verification of the validity of a session if the page is protected, the sending and processing of information entered in a form, etc.... Do not hesitate to ask me if you are interested in additional functions. For your information, this class is the first one I am writing, 25 days ago I had no idea how classes work, a demonstration of how simple Gambas Basic is. Maybe the next step will be to transform all this into a component if I can do it and understand how to build a component.... Friendship to all Olivier Coquet. PS: excuse me for English, i'm French and as all French peoples, I speak English "like a Spanish caw", this page is a translation made with deepl :) Translated with www.DeepL.com/Translator (free version) Le 10/01/2021 ? 09:37, Fabien Bodard a ?crit?: > Ok I've tested ... It seem really interesting :-). But unfortunately > I've not the required competences to make more advanced judgement :-). > > More over I think I will use it for my own projects :-D > > Le sam. 9 janv. 2021 ? 13:14, ocoquet a ?crit : >> Hi all, >> >> I've posted complet class of http server, if somebody can test it, it will be realy interesting for me to have your opinion .. >> >> Regards >> >> Olivier coquet. >> >> >> Envoy? depuis mon appareil Galaxy >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > From bagonergi at gmail.com Sun Jan 10 13:55:11 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 10 Jan 2021 13:55:11 +0100 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: Il giorno dom 10 gen 2021 alle ore 12:42 Fabien Bodard ha scritto: > > https://drive.google.com/file/d/1SzKbioVSZZGdEP_60jSAA7bZ15lRc5Rv/view?usp=sharing > > New One > > Now the sentence is ok, but the x in the bar still looks like a whale with the spray jet Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Jan 10 15:09:03 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Jan 2021 15:09:03 +0100 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: Le dim. 10 janv. 2021 ? 13:56, Gianluigi a ?crit : > > > > Il giorno dom 10 gen 2021 alle ore 12:42 Fabien Bodard ha scritto: >> >> https://drive.google.com/file/d/1SzKbioVSZZGdEP_60jSAA7bZ15lRc5Rv/view?usp=sharing >> >> New One >> > > > Now the sentence is ok, but the x in the bar still looks like a whale with the spray jet haaa ok lol ... It's certainly an icon problem in the humanity theme ... well this icon is certainly in conflict with local theme. > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From brian at westwoodsvcs.com Sun Jan 10 21:24:56 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 10 Jan 2021 12:24:56 -0800 (PST) Subject: [Gambas-user] Testing scripter, but found this script to be slow Message-ID: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> I have been testing scripter, using the attached script. This does not have anything to do with the actual testing But if i remove the fast unsafe the program barely runs. I was wondering if anyone cold tell me why? It is really amazing to me the difference. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: donut Type: application/octet-stream Size: 3388 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Sun Jan 10 23:16:56 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 11 Jan 2021 00:16:56 +0200 Subject: [Gambas-user] Testing scripter, but found this script to be slow In-Reply-To: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> References: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> Message-ID: At least the "unsafe" should be unnecessary for good performance. Look at what the profiler says. To me it looks like you are doing a lot of unnecessary operations. 4x theta and phi spacings, and you should have almost four times better performance. Jussi On Sun, Jan 10, 2021 at 10:36 PM Brian G wrote: > I have been testing scripter, using the attached script. > > This does not have anything to do with the actual testing > > But if i remove the fast unsafe the program barely runs. I was wondering > if anyone cold tell me why? > > It is really amazing to me the difference. > > Thank You > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sun Jan 10 23:39:10 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 10 Jan 2021 14:39:10 -0800 (PST) Subject: [Gambas-user] Testing scripter, but found this script to be slow In-Reply-To: References: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <931169253.4884.1610318350106.JavaMail.zimbra@westwoodsvcs.com> Dont undestand what you mean by 4x theta and phi spacings, and you should have almost four times better performance. do you mean increase the spacing by 4, then yes that would make it do less work. But I am really wondering what gambas is doing that makes it so much slower without the fast. when mostly its is math. 131,xxx iterations per image depending of screen size. Maybe it was a silly question, oh well. Thank You Brian G From: "Jussi Lahtinen" To: "Gambas mailing list" Sent: Sunday, January 10, 2021 2:16:56 PM Subject: Re: [Gambas-user] Testing scripter, but found this script to be slow At least the "unsafe" should be unnecessary for good performance. Look at what the profiler says. To me it looks like you are doing a lot of unnecessary operations. 4x theta and phi spacings, and you should have almost four times better performance. Jussi On Sun, Jan 10, 2021 at 10:36 PM Brian G < [ mailto:brian at westwoodsvcs.com | brian at westwoodsvcs.com ] > wrote: I have been testing scripter, using the attached script. This does not have anything to do with the actual testing But if i remove the fast unsafe the program barely runs. I was wondering if anyone cold tell me why? It is really amazing to me the difference. Thank You Brian G ----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Jan 11 00:00:55 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 11 Jan 2021 01:00:55 +0200 Subject: [Gambas-user] Testing scripter, but found this script to be slow In-Reply-To: <931169253.4884.1610318350106.JavaMail.zimbra@westwoodsvcs.com> References: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> <931169253.4884.1610318350106.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Yes, it does a lot of work per character. The spacing doesn't make a difference unless you use a large terminal. But I understand, it's not a satisfying solution. However, almost nothing is needed to be calculated before luminance. So the code is in wrong order. Now everything is calculated whether L>0 or not. JIT just is very fast. Jussi On Mon, Jan 11, 2021 at 12:50 AM Brian G wrote: > Dont undestand what you mean by > 4x theta and phi spacings, and you should have almost four times better > performance. > > do you mean increase the spacing by 4, then yes that would make it do less > work. > > But I am really wondering what gambas is doing that makes it so much > slower without the fast. > when mostly its is math. 131,xxx iterations per image depending of screen > size. > > Maybe it was a silly question, oh well. > > Thank You > Brian G > > ------------------------------ > *From: *"Jussi Lahtinen" > *To: *"Gambas mailing list" > *Sent: *Sunday, January 10, 2021 2:16:56 PM > *Subject: *Re: [Gambas-user] Testing scripter, but found this script to > be slow > > At least the "unsafe" should be unnecessary for good performance. Look at > what the profiler says. > To me it looks like you are doing a lot of unnecessary operations. 4x > theta and phi spacings, and you should have almost four times better > performance. > > > Jussi > > On Sun, Jan 10, 2021 at 10:36 PM Brian G wrote: > >> I have been testing scripter, using the attached script. >> >> This does not have anything to do with the actual testing >> >> But if i remove the fast unsafe the program barely runs. I was wondering >> if anyone cold tell me why? >> >> It is really amazing to me the difference. >> >> Thank You >> Brian G >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Jan 11 01:37:16 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 10 Jan 2021 16:37:16 -0800 (PST) Subject: [Gambas-user] Testing scripter, but found this script to be slow In-Reply-To: References: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> <931169253.4884.1610318350106.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1359627150.4961.1610325436321.JavaMail.zimbra@westwoodsvcs.com> I tried moving everything inside the L > 0 that I could and it did not make much difference, the time must somehow be in the for look construct.. Interesting ! maybe I will try a while loop instead. Thank You Brian G From: "Jussi Lahtinen" To: "Gambas mailing list" Sent: Sunday, January 10, 2021 3:00:55 PM Subject: Re: [Gambas-user] Testing scripter, but found this script to be slow Yes, it does a lot of work per character. The spacing doesn't make a difference unless you use a large terminal. But I understand, it's not a satisfying solution. However, almost nothing is needed to be calculated before luminance. So the code is in wrong order. Now everything is calculated whether L>0 or not. JIT just is very fast. Jussi On Mon, Jan 11, 2021 at 12:50 AM Brian G < [ mailto:brian at westwoodsvcs.com | brian at westwoodsvcs.com ] > wrote: Dont undestand what you mean by 4x theta and phi spacings, and you should have almost four times better performance. do you mean increase the spacing by 4, then yes that would make it do less work. But I am really wondering what gambas is doing that makes it so much slower without the fast. when mostly its is math. 131,xxx iterations per image depending of screen size. Maybe it was a silly question, oh well. Thank You Brian G From: "Jussi Lahtinen" < [ mailto:jussi.lahtinen at gmail.com | jussi.lahtinen at gmail.com ] > To: "Gambas mailing list" < [ mailto:user at lists.gambas-basic.org | user at lists.gambas-basic.org ] > Sent: Sunday, January 10, 2021 2:16:56 PM Subject: Re: [Gambas-user] Testing scripter, but found this script to be slow At least the "unsafe" should be unnecessary for good performance. Look at what the profiler says. To me it looks like you are doing a lot of unnecessary operations. 4x theta and phi spacings, and you should have almost four times better performance. Jussi On Sun, Jan 10, 2021 at 10:36 PM Brian G < [ mailto:brian at westwoodsvcs.com | brian at westwoodsvcs.com ] > wrote: BQ_BEGIN I have been testing scripter, using the attached script. This does not have anything to do with the actual testing But if i remove the fast unsafe the program barely runs. I was wondering if anyone cold tell me why? It is really amazing to me the difference. Thank You Brian G ----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- ----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- ----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- BQ_END ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Jan 11 01:53:10 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 11 Jan 2021 01:53:10 +0100 Subject: [Gambas-user] Testing scripter, but found this script to be slow In-Reply-To: <1359627150.4961.1610325436321.JavaMail.zimbra@westwoodsvcs.com> References: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> <931169253.4884.1610318350106.JavaMail.zimbra@westwoodsvcs.com> <1359627150.4961.1610325436321.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <89e1f693-5ccc-7b2d-db34-e72b7acc22f5@gmail.com> Le 11/01/2021 ? 01:37, Brian G a ?crit?: > I tried moving everything inside the L > 0 that I could and it did not > make much difference, the time must somehow be in the for look construct.. > Interesting ! maybe I will try a while loop instead. > > Thank You > Brian G > Just make a project of that script and use the IDE profiler to know where time is spent. -- Beno?t Minisini From brian at westwoodsvcs.com Mon Jan 11 02:27:08 2021 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Mon, 11 Jan 2021 04:27:08 +0300 Subject: [Gambas-user] =?utf-8?q?Testing_scripter=2C_but_found_this_scrip?= =?utf-8?q?t_to_be_slow?= In-Reply-To: <89e1f693-5ccc-7b2d-db34-e72b7acc22f5@gmail.com> References: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> <1359627150.4961.1610325436321.JavaMail.zimbra@westwoodsvcs.com> <89e1f693-5ccc-7b2d-db34-e72b7acc22f5@gmail.com> Message-ID: <1610328428.787578277@f9.my.com> Ok, This is just for curiosity. Will give it a look. -- Thanks Brian Sunday, 10 January 2021, 04:54PM -08:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 11/01/2021 ? 01:37, Brian G a ?crit?: > I tried moving everything inside the L > 0 that I could and it did not > make much difference, the time must somehow be in the for look construct.. > Interesting ! maybe I will try a while loop instead. > > Thank You > Brian G > > >Just make a project of that script and use the IDE profiler to know >where time is spent. > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Jan 11 04:56:31 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 11 Jan 2021 05:56:31 +0200 Subject: [Gambas-user] Format & localization bug In-Reply-To: References: Message-ID: Bump. Anyone? Workarounds? Jussi On Sat, Jan 9, 2021 at 2:30 AM Jussi Lahtinen wrote: > I don't understand why "d.m.yyyy hh:nn" changes to "d.m.yyyy hh.nn". I > would expect the given format to be respected. > See the attachment. > > > Jussi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jan 11 06:09:06 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 11 Jan 2021 01:09:06 -0400 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: <865a42b9-f078-eb55-82af-a52b30b8dda7@3d-phenomen.fr> References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> <87c08478-88d4-751a-385e-58392ae7824a@gmail.com> <865a42b9-f078-eb55-82af-a52b30b8dda7@3d-phenomen.fr> Message-ID: i'm intereting in that.. but could you made a git on gitlab or ? well is pretty only two files but you documented in francias.. so any help on? lnguaje is a barrier in new gambas features last days El s?b, 9 de ene. de 2021 a la(s) 04:26, Olivier Coquet (ocoquet at 3d-phenomen.fr) escribi?: > > Here it is ! > > Comments are welcome > > All sources are commented. > > Olivier Coquet > > > Le 08/01/2021 ? 19:02, Beno?t Minisini a ?crit : > > Le 08/01/2021 ? 17:55, Olivier Coquet a ?crit : > >> Hi all, > >> > >> Is somebody interested by a pure Gambas HTTP server (just gb.net and > >> gb.crypt needed) ? > >> > >> I work on this since 4 week and it is completely working. > >> > >> It's a class you can import in a project and which run when instanced. > >> > >> The source package contain, class in a little project with sample > >> form which demonstrate some functionality. > >> > >> The server accept GET and POST requests, the functionality to > >> redirect *.gbp pages to main prog Function which can make some > >> modifications before send it to the browser. > >> > >> A web-docs folder contain some sample pages (form, create users, > >> pages with images, login, etc...) > >> > >> Server has a basic session carrying with cookies. > >> > >> With this, all programs can be "web communicant" in stand alone mode. > >> > >> Tell me if you want to download (version 0.0.15 is coming tomorrow on > >> my Gambas forum). > >> > >> Regards From France > >> > >> Olivier Coquet > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > I'm interested (as soon as it is well implemented). Can you send your > > project here? > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From mckaygerhard at gmail.com Mon Jan 11 06:12:55 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 11 Jan 2021 01:12:55 -0400 Subject: [Gambas-user] Gambas manuals for beginners ... possibly free In-Reply-To: References: <622ebdcb-1844-bdd4-b0ce-38da548fdfa4@linuxmail.org> Message-ID: El s?b, 2 de ene. de 2021 a la(s) 19:44, escribi?: > - http://www.gambasforge.org/ > - http://89.234.156.109/ was always hard to me understan the forge. please any updates on the documentation .. has so many hard coded things! puff From mckaygerhard at gmail.com Mon Jan 11 06:28:50 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 11 Jan 2021 01:28:50 -0400 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: FAbian.. i'm interesting on that will be included in gambas ide.. the main reason is for run in those linux like alpine by example.. so ther's one problem.. what about if some dependences like openall (is not include in alpine for some reason..= on the appimage we can include the openall needs but .. will be against glibc so..(alpine use muslc) later i think about it and check that if i build an app image the embedded things will be linked against glibc so? this wil not work so in those linux. so neither freebsd etc etc and so and so? El dom, 10 de ene. de 2021 a la(s) 10:10, Fabien Bodard (gambas.fr at gmail.com) escribi?: > > Le dim. 10 janv. 2021 ? 13:56, Gianluigi a ?crit : > > > > > > > > Il giorno dom 10 gen 2021 alle ore 12:42 Fabien Bodard ha scritto: > >> > >> https://drive.google.com/file/d/1SzKbioVSZZGdEP_60jSAA7bZ15lRc5Rv/view?usp=sharing > >> > >> New One > >> > > > > > > Now the sentence is ok, but the x in the bar still looks like a whale with the spray jet > haaa ok lol ... It's certainly an icon problem in the humanity theme > ... well this icon is certainly in conflict with local theme. > > > > Regards > > Gianluigi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > -- > Fabien Bodard > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From ocoquet at 3d-phenomen.fr Mon Jan 11 08:33:05 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Mon, 11 Jan 2021 08:33:05 +0100 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> <87c08478-88d4-751a-385e-58392ae7824a@gmail.com> <865a42b9-f078-eb55-82af-a52b30b8dda7@3d-phenomen.fr> Message-ID: <2a1a91d5-0683-598f-8f51-fc96d5bcec08@3d-phenomen.fr> Hi Piccoro, what is your preferred language ? Olivier Le 11/01/2021 ? 06:09, PICCORO McKAY Lenz a ?crit?: > i'm intereting in that.. but could you made a git on gitlab or ? well > is pretty only two files but you documented in francias.. so any help > on? lnguaje is a barrier in new gambas features last days > > El s?b, 9 de ene. de 2021 a la(s) 04:26, Olivier Coquet > (ocoquet at 3d-phenomen.fr) escribi?: >> Here it is ! >> >> Comments are welcome >> >> All sources are commented. >> >> Olivier Coquet >> >> >> Le 08/01/2021 ? 19:02, Beno?t Minisini a ?crit : >>> Le 08/01/2021 ? 17:55, Olivier Coquet a ?crit : >>>> Hi all, >>>> >>>> Is somebody interested by a pure Gambas HTTP server (just gb.net and >>>> gb.crypt needed) ? >>>> >>>> I work on this since 4 week and it is completely working. >>>> >>>> It's a class you can import in a project and which run when instanced. >>>> >>>> The source package contain, class in a little project with sample >>>> form which demonstrate some functionality. >>>> >>>> The server accept GET and POST requests, the functionality to >>>> redirect *.gbp pages to main prog Function which can make some >>>> modifications before send it to the browser. >>>> >>>> A web-docs folder contain some sample pages (form, create users, >>>> pages with images, login, etc...) >>>> >>>> Server has a basic session carrying with cookies. >>>> >>>> With this, all programs can be "web communicant" in stand alone mode. >>>> >>>> Tell me if you want to download (version 0.0.15 is coming tomorrow on >>>> my Gambas forum). >>>> >>>> Regards From France >>>> >>>> Olivier Coquet >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> I'm interested (as soon as it is well implemented). Can you send your >>> project here? >>> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From ocoquet at 3d-phenomen.fr Mon Jan 11 11:07:08 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Mon, 11 Jan 2021 11:07:08 +0100 Subject: [Gambas-user] HTTP Gambas server Message-ID: Hi all, First test of integration in a project. Time to integrate (include fmain.treatment of *.gbp pages creation) : 17 mins Needed modifications on class: 0 Needed modifications on original project: 5 (treatment Function, start server, stop server, class instantiation, control to start and stop server). Running OK at first time! For this first test of integration, a new machine was used with fresh install of Linux (raspbian) and Gambas basic, nothing else. machine = Raspberry pi 3b+. Added elements in original application folder: web-docs folder for html pages, minimalist userpwd.txt with login/pwd for one user (admin), all copied from archive sources. After this first experience, I decide to add a minimalist userpwd.txt (with admin login/default mdp) creation in the class if the file is not present. This eliminate the need of copying this file from archives. A complete doc in html format (French / English) is in progress. Regards Olivier Coquet From sharon at 455.co.il Mon Jan 11 13:30:52 2021 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 11 Jan 2021 14:30:52 +0200 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> Message-ID: <20210111122628.M71950@455.co.il> ---------- Original Message ----------- From: Olivier Coquet To: Gambas Mailing List Sent: Fri, 8 Jan 2021 17:55:41 +0100 Subject: [Gambas-user] HTTP Gambas server > Hi all, > > Is somebody interested by a pure Gambas HTTP server (just gb.net and > gb.crypt needed) ? > > I work on this since 4 week and it is completely working. > > It's a class you can import in a project and which run when instanced. > > The source package contain, class in a little project with sample form > which demonstrate some functionality. > > The server accept GET and POST requests, the functionality to redirect > *.gbp pages to main prog Function which can make some modifications > before send it to the browser. > > A web-docs folder contain some sample pages (form, create users, pages > with images, login, etc...) > > Server has a basic session carrying with cookies. > > With this, all programs can be "web communicant" in stand alone mode. > > Tell me if you want to download (version 0.0.15 is coming tomorrow on my > Gambas forum). > > Regards From France > > Olivier Coquet > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- I tried the version that works well. I have a few questions: 1. Will it be possible to run it: gb.web.gui 2. Is there any documentation on the gbp file Thank you From ocoquet at 3d-phenomen.fr Mon Jan 11 13:51:03 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Mon, 11 Jan 2021 13:51:03 +0100 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: <20210111122628.M71950@455.co.il> References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> <20210111122628.M71950@455.co.il> Message-ID: Hi Mayost, Thank's for the test. For your first question: 1. Will it be possible to run it: gb.web.gui ? No it's not, it's not the goal for instance (Maybe in the future.....:) ) The goal of this project is to be totally free of dependencies (except gb.crypt and gb.net) to run on small machines (Raspberry for example) and it must be implemented without competences except Gambas Basic elementary programing and htm editing. For your second question: Is there any documentation on the gbp file ? For instance, except in my head, there is no help files, i'm working on it. *.gbp are standards html pages with tow specificities 1) a special balise just before Title Balises, to say that this page need a valide cookie session to be viewed. 2) Some {XXXXX} witch must be replaced bye treatment procedure before sending to navigator. Can be what you want "//contenu//, {mavaleur}" etc..... but I prefer {....} it's more clear for me :) The concept of this server is : use pages, requests, forms parameters....inside a Gambas basic procedure or Function and not as an inside page program like php make it. This morning, i've make my first integration of this class in program, originally not made to communicate with web, after installation of class, my program communicate without other things (but for instance it do absolutely nothing :). I Hope, this made a correct answer to your questions. Olivier Coquet Le 11/01/2021 ? 13:30, Mayost Sharon a ?crit?: > ---------- Original Message ----------- > From: Olivier Coquet > To: Gambas Mailing List > Sent: Fri, 8 Jan 2021 17:55:41 +0100 > Subject: [Gambas-user] HTTP Gambas server > >> Hi all, >> >> Is somebody interested by a pure Gambas HTTP server (just gb.net and >> gb.crypt needed) ? >> >> ... >> >> With this, all programs can be "web communicant" in stand alone mode. >> >> Tell me if you want to download (version 0.0.15 is coming tomorrow on my >> Gambas forum). >> >> Regards From France >> >> Olivier Coquet >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ------- End of Original Message ------- > > I tried the version that works well. > > I have a few questions: > 1. Will it be possible to run it: gb.web.gui > 2. Is there any documentation on the gbp file > > Thank you > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Mon Jan 11 18:02:14 2021 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 11 Jan 2021 09:02:14 -0800 (PST) Subject: [Gambas-user] Testing scripter, but found this script to be slow In-Reply-To: <1610328428.787578277@f9.my.com> References: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> <1359627150.4961.1610325436321.JavaMail.zimbra@westwoodsvcs.com> <89e1f693-5ccc-7b2d-db34-e72b7acc22f5@gmail.com> <1610328428.787578277@f9.my.com> Message-ID: <591453131.5363.1610384533985.JavaMail.zimbra@westwoodsvcs.com> I have attached for those of you having coffee this morning a quick morning donut..... Beno?t, I have been using Gambas for many years, It continues to Impress me, It is truly a fine and amazing product. The tools you have created and the flexibility are wonderful. Thank You! Brian G From: "Brian" To: "Gambas mailing list" Sent: Sunday, January 10, 2021 5:27:08 PM Subject: Re: [Gambas-user] Testing scripter, but found this script to be slow Ok, This is just for curiosity. Will give it a look. -- Thanks Brian Sunday, 10 January 2021, 04:54PM -08:00 from Beno?t Minisini [ mailto:g4mba5 at gmail.com | g4mba5 at gmail.com ] : Le 11/01/2021 ? 01:37, Brian G a ?crit : > I tried moving everything inside the L > 0 that I could and it did not > make much difference, the time must somehow be in the for look construct.. > Interesting ! maybe I will try a while loop instead. > > Thank You > Brian G > Just make a project of that script and use the IDE profiler to know where time is spent. -- Beno?t Minisini ----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: donut Type: application/octet-stream Size: 3810 bytes Desc: not available URL: From g4mba5 at gmail.com Mon Jan 11 19:16:29 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 11 Jan 2021 19:16:29 +0100 Subject: [Gambas-user] Testing scripter, but found this script to be slow In-Reply-To: <591453131.5363.1610384533985.JavaMail.zimbra@westwoodsvcs.com> References: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> <1359627150.4961.1610325436321.JavaMail.zimbra@westwoodsvcs.com> <89e1f693-5ccc-7b2d-db34-e72b7acc22f5@gmail.com> <1610328428.787578277@f9.my.com> <591453131.5363.1610384533985.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 11/01/2021 ? 18:02, Brian G a ?crit?: > I have attached for those of you having coffee this morning a quick > morning donut..... > Here is a slightly better version. Tips: IIf() is not optimized by the JIT compiler. Use a normal IF test instead. Regards, -- Beno?t Minisini -------------- next part -------------- #!/usr/bin/gbs3 ' Gambas Script File Created 01/10/2021 20:11:31.237 ' Original Donut program by Andy Sloane ' https://www.a1k0n.net/2011/07/20/donut-math.html ' Gambas module file Fast Unsafe Const theta_spacing As Float = 0.03 Const phi_spacing As Float = 0.01 Const R1 As Float = 1.00 Const R2 As Float = 2.00 Const K2 As Float = 5.0 Private myterm As Stream = File.out Private screen_width As Float = myterm.term.width Private screen_height As Float = myterm.term.height 'Calculate K1 based On screen size: the maximum x - distance occurs 'roughly at the edge Of the torus, which Is At x = R1 + R2, z = 0. we 'want that To be displaced 3 / 8 ths Of the width Of the screen, which 'Is 3 / 4 th Of the way From the center To the side Of the screen. 'screen_width * 3 / 8 = K1 * (R1 + R2) / (K2 + 0) 'screen_width * K2 * 3 / (8 * (R1 + R2)) = K1 Private K1 As Float = screen_width * K2 * 1.00 / (9.00 * (R1 + R2)) Private iterations As Long = 0 Public Sub Main() Print "Hello world" Print "\x1b[2J" Dim a, b As Float Dim fTimer as Float Dec screen_height While True fTimer = Timer render_frame(a, b) a += 0.07 b += 0.03 iterations = 0 fTimer = Timer - fTimer Print Format(fTimer, "0.####");"s"; Wend End Public Sub render_frame(a As Float, b As Float) 'precompute sines And cosines Of A And B Dim cosA As Float = Cos(A) Dim sinA As Float = Sin(A) Dim cosB As Float = Cos(B) Dim sinB As Float = Sin(B) Dim boutput As New Byte[screen_width, screen_height] Dim zbuffer As New Float[screen_width, screen_height] Dim sBuffer As String bOutput.Fill(32) For theta As Float = 0.00 To 6.27 Step theta_spacing ' < pi * 2 6.28 Dim costheta As Float = Cos(theta) Dim sintheta As Float = Sin(theta) Dim theta1 As Float = (sinA * sintheta) Dim Theta2 As Float = (costheta * sinB) Dim Theta3 As Float = (cosA * costheta) Dim Theta4 As Float = (cosA * sintheta) Dim Theta5 As Float = (costheta * sinA) Dim circlex As Float = r2 + (r1 * costheta) Dim circley As Float = r1 * sintheta For phi As Float = 0.00 To 6.27 Step phi_spacing ' < pi * 2 6.28 Inc iterations Dim cosphi As Float = Cos(phi) Dim sinphi As Float = Sin(phi) 'calc luminance 'Dim L As Float = (cosphi * costheta * sinB) - (cosA * costheta * sinphi) - (sinA * sintheta) + (cosB * ((cosA * sintheta) - (costheta * sinA * sinphi))) Dim L As Float = (cosphi * Theta2) - (Theta3 * sinphi) - Theta1 + (cosB * (Theta4 - (Theta5 * sinphi))) ' L ranges From -sqrt(2) To + sqrt(2).If it 's < 0, the surface ' Is Pointing away From us, so we won 't bother trying to plot it. If L > 0 Then Dim x As Float = circlex * (cosb * cosphi + sina * sinb * sinphi) - (circley * cosa * sinB) Dim y As Float = circlex * (sinb * cosphi - sina * cosb * sinphi) + (circley * cosa * cosB) Dim z As Float = k2 + cosa * circlex * sinphi + circley * sina Dim ooz As Float = 1.00 / z 'x And y projection.note that y Is Negated here, because y 'goes up In 3D space but down On 2D displays. Dim xp As Integer = CInt(screen_width / 2.00 + k1 * ooz * x) Dim yp As Integer = CInt(screen_height / 2.00 - k1 * ooz * y) If xp < 0 Then xp = 0 Else If xp >= screen_width Then xp = screen_width - 1 Endif If yp < 0 Then yp = 0 Else If yp >= screen_height Then yp = screen_height - 1 Endif If ooz > zbuffer[xp, yp] Then zbuffer[xp, yp] = ooz bOutput[xp, yp] = Asc(" .,-~:;=!*$#@", 1 + Abs(CInt(L * 8))) Endif Endif Next Next 'print to the screen Print "\e[J\e[H"; Flush sBuffer = "" For j As Integer = 0 To screen_height - 1 For i As Integer = 0 To screen_width - 1 sBuffer &= Chr(bOutput[i, j]) Next sBuffer &= "\n" Next Print Left$(sBuffer, -1); End From gambas.fr at gmail.com Mon Jan 11 19:59:20 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 11 Jan 2021 19:59:20 +0100 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: I think after a quick look you must forget to have something working on Alpine (despite the fact I really like the work done n this distrib). The appimage conceptors are currently looking after a way to turnaround to linker problem... You have to wait .... Le lun. 11 janv. 2021 ? 06:30, PICCORO McKAY Lenz a ?crit : > > FAbian.. i'm interesting on that will be included in gambas ide.. > > the main reason is for run in those linux like alpine by example.. so > ther's one problem.. what about if some dependences like openall (is > not include in alpine for some reason..= on the appimage we can > include the openall needs but .. will be against glibc so..(alpine use > muslc) later i think about it and check that if i build an app image > the embedded things will be linked against glibc so? this wil not work > so in those linux. so neither freebsd etc etc and so and so? > > El dom, 10 de ene. de 2021 a la(s) 10:10, Fabien Bodard > (gambas.fr at gmail.com) escribi?: > > > > Le dim. 10 janv. 2021 ? 13:56, Gianluigi a ?crit : > > > > > > > > > > > > Il giorno dom 10 gen 2021 alle ore 12:42 Fabien Bodard ha scritto: > > >> > > >> https://drive.google.com/file/d/1SzKbioVSZZGdEP_60jSAA7bZ15lRc5Rv/view?usp=sharing > > >> > > >> New One > > >> > > > > > > > > > Now the sentence is ok, but the x in the bar still looks like a whale with the spray jet > > haaa ok lol ... It's certainly an icon problem in the humanity theme > > ... well this icon is certainly in conflict with local theme. > > > > > > Regards > > > Gianluigi > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > > -- > > Fabien Bodard > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From brian at westwoodsvcs.com Tue Jan 12 00:13:26 2021 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 11 Jan 2021 15:13:26 -0800 (PST) Subject: [Gambas-user] Testing scripter, but found this script to be slow In-Reply-To: References: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> <1359627150.4961.1610325436321.JavaMail.zimbra@westwoodsvcs.com> <89e1f693-5ccc-7b2d-db34-e72b7acc22f5@gmail.com> <1610328428.787578277@f9.my.com> <591453131.5363.1610384533985.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <659836223.5485.1610406806861.JavaMail.zimbra@westwoodsvcs.com> Cool Beno?t, Great tips, I did not know iif was not optimized I use it all over the place so darn convenient. I forgot about the \e in a string for escape... Thank You Brian G ----- Original Message ----- From: "Beno?t Minisini" To: "Gambas mailing list" Sent: Monday, January 11, 2021 10:16:29 AM Subject: Re: [Gambas-user] Testing scripter, but found this script to be slow Le 11/01/2021 ? 18:02, Brian G a ?crit?: > I have attached for those of you having coffee this morning a quick > morning donut..... > Here is a slightly better version. Tips: IIf() is not optimized by the JIT compiler. Use a normal IF test instead. Regards, -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Tue Jan 12 01:57:11 2021 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 11 Jan 2021 16:57:11 -0800 (PST) Subject: [Gambas-user] Testing scripter, but found this script to be slow In-Reply-To: <659836223.5485.1610406806861.JavaMail.zimbra@westwoodsvcs.com> References: <2073721699.4810.1610310296429.JavaMail.zimbra@westwoodsvcs.com> <1359627150.4961.1610325436321.JavaMail.zimbra@westwoodsvcs.com> <89e1f693-5ccc-7b2d-db34-e72b7acc22f5@gmail.com> <1610328428.787578277@f9.my.com> <591453131.5363.1610384533985.JavaMail.zimbra@westwoodsvcs.com> <659836223.5485.1610406806861.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1240503958.5523.1610413031174.JavaMail.zimbra@westwoodsvcs.com> More donuts, this also displays the frames per second.... Rather Hypnotic, I did not know how much faster xterm is than mate-term at rendering text before LOL Thank You Brian G ----- Original Message ----- From: "Brian" To: "Gambas mailing list" Subject: Re: [Gambas-user] Testing scripter, but found this script to be slow -------------- next part -------------- A non-text attachment was scrubbed... Name: donut Type: application/octet-stream Size: 4437 bytes Desc: not available URL: From ocoquet at 3d-phenomen.fr Tue Jan 12 09:57:05 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Tue, 12 Jan 2021 09:57:05 +0100 Subject: [Gambas-user] HTTP Gambas server (v0.0.16) Message-ID: <71c0e83e-07b1-9a97-ed9c-133da03ca25e@3d-phenomen.fr> Hi all, New version with bugs corrections and some features added. v 0.0.16? - 12/01/2021 - Sample Treatment procedure now use named arguments vs numbering, this allow order inversion in form field in the form at design time without influence on detection of them. - Correction of bug in invalid session detection (a "u" replaced a "U" in code :) ). - Correction of bug in Cookie sending (a "u" replaced a "U" in code, re :) :) ) - userpwd file is now created if not present (first run), this create an Admin user with default password "password" which is defined in a var in the header of class (must be changed by your master program just after instantiation. - Add of ListUsers Function which return list of registered users in an array of strings. - Sample Treatment procedure send good link if user exist when trying to create an existing user("admin/..." replaced "../..."). Enjoy Olivier Coquet -------------- next part -------------- A non-text attachment was scrubbed... Name: crashtest-0.0.16.tar.gz Type: application/gzip Size: 84726 bytes Desc: not available URL: From ocoquet at 3d-phenomen.fr Tue Jan 12 14:03:24 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Tue, 12 Jan 2021 14:03:24 +0100 Subject: [Gambas-user] Split Function ??? Message-ID: <357438c1-4423-2c9b-8399-ba94560f890d@3d-phenomen.fr> Hi all, I have a problem with Split function. If I have a string like this: *"Test - test2 - test3 test4"* and I split with *" - "* separation string, I obtain *"Test" "test2" "test3" "test4"* and I want: *"Test" "test2" "test3 test4"* How can I make this ? regards Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Jan 12 14:17:48 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 12 Jan 2021 14:17:48 +0100 Subject: [Gambas-user] Format & localization bug In-Reply-To: References: Message-ID: Le 09/01/2021 ? 01:30, Jussi Lahtinen a ?crit?: > I don't understand why "d.m.yyyy hh:nn" changes to "d.m.yyyy hh.nn". I > would expect the given format to be respected. > See the attachment. > > > Jussi > > Please provide your system information. -- Beno?t Minisini From g4mba5 at gmail.com Tue Jan 12 14:21:00 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 12 Jan 2021 14:21:00 +0100 Subject: [Gambas-user] Format & localization bug In-Reply-To: References: Message-ID: Le 12/01/2021 ? 14:17, Beno?t Minisini a ?crit?: > Le 09/01/2021 ? 01:30, Jussi Lahtinen a ?crit?: >> I don't understand why "d.m.yyyy hh:nn" changes to "d.m.yyyy hh.nn". I >> would expect the given format to be respected. >> See the attachment. >> >> >> Jussi >> >> > > Please provide your system information. > If it's actually Finnish, then today is printed as: ti 12. tatammikuu 2021 14.18.46 So "." becomes the time separator, and so the ":" in the time format is replaced by that ".". Regards, -- Beno?t Minisini From g4mba5 at gmail.com Tue Jan 12 14:22:21 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 12 Jan 2021 14:22:21 +0100 Subject: [Gambas-user] Split Function ??? In-Reply-To: <357438c1-4423-2c9b-8399-ba94560f890d@3d-phenomen.fr> References: <357438c1-4423-2c9b-8399-ba94560f890d@3d-phenomen.fr> Message-ID: <3489ed14-062e-cdd3-2de5-16c7ec6f2d23@gmail.com> Le 12/01/2021 ? 14:03, Olivier Coquet a ?crit?: > Hi all, > > I have a problem with Split function. > > If I have a string like this: > > *"Test - test2 - test3 test4"* > > and I split with *" - "* separation string, I obtain > > *"Test" "test2" "test3" "test4"* > > and I want: > > *"Test" "test2" "test3 test4"* > > How can I make this ? > > > regards > > Olivier > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Read the documentation : Split() only splits with one character separators. The separator string " - " actually means " " or "-". To split with any string separator, you have to write your own function. Regards, -- Beno?t Minisini From charlie at cogier.com Tue Jan 12 14:21:26 2021 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 12 Jan 2021 13:21:26 +0000 Subject: [Gambas-user] Split Function ??? In-Reply-To: <357438c1-4423-2c9b-8399-ba94560f890d@3d-phenomen.fr> References: <357438c1-4423-2c9b-8399-ba94560f890d@3d-phenomen.fr> Message-ID: Hi Olivier, Try this: - '**************************** Public Sub Form_Open() ? Dim s As String = "Test - test2 - test3 test4" ? Dim sArray As String[] = Split(s, "-") 'NOT " - " ? Dim iLoop As Integer ? For iLoop = 0 To sArray.Max ??? Print Trim(sArray[iLoop]) ? Next End '**************************** Charlie On 12/01/2021 13:03, Olivier Coquet wrote: > > Hi all, > > I have a problem with Split function. > > If I have a string like this: > > *"Test - test2 - test3 test4"* > > and I split with *" - "* separation string, I obtain > > *"Test" "test2" "test3" "test4"* > > and I want: > > *"Test" "test2" "test3 test4"* > > How can I make this ? > > > regards > > Olivier > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Tue Jan 12 15:22:02 2021 From: ocoquet at 3d-phenomen.fr (ocoquet) Date: Tue, 12 Jan 2021 15:22:02 +0100 Subject: [Gambas-user] Split Function ??? In-Reply-To: <3489ed14-062e-cdd3-2de5-16c7ec6f2d23@gmail.com> Message-ID: <202101121422.10CEM7Qr030814@sd-89727.dedibox.fr> Thank's Benoit, for this subject documentation is not clear :)RegardsOlivierEnvoy? depuis mon appareil Galaxy -------- Message d'origine --------De : Beno?t Minisini Date : 12/01/2021 14:23 (GMT+01:00) ? : user at lists.gambas-basic.org Objet : Re: [Gambas-user] Split Function ??? Le 12/01/2021 ? 14:03, Olivier Coquet a ?crit?:> Hi all,> > I have a problem with Split function.> > If I have a string like this:> > *"Test - test2 - test3 test4"*> > and I split with *" - "* separation string, I obtain> > *"Test" "test2" "test3" "test4"*> > and I want:> > *"Test" "test2" "test3 test4"*> > How can I make this ?> > > regards> > Olivier> > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----> Read the documentation : Split() only splits with one character separators. The separator string " - " actually means " " or "-".To split with any string separator, you have to write your own function.Regards,-- Beno?t Minisini----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Tue Jan 12 15:23:15 2021 From: ocoquet at 3d-phenomen.fr (ocoquet) Date: Tue, 12 Jan 2021 15:23:15 +0100 Subject: [Gambas-user] Split Function ??? In-Reply-To: Message-ID: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> Thank's Charlie, i'll try this....RegardsOlivierEnvoy? depuis mon appareil Galaxy -------- Message d'origine --------De : Charlie Ogier Date : 12/01/2021 14:47 (GMT+01:00) ? : user at lists.gambas-basic.org Objet : Re: [Gambas-user] Split Function ??? Hi Olivier, Try this: - '**************************** Public Sub Form_Open() ? Dim s As String = "Test - test2 - test3 test4" ? Dim sArray As String[] = Split(s, "-") 'NOT " - " ? Dim iLoop As Integer ? For iLoop = 0 To sArray.Max ??? Print Trim(sArray[iLoop]) ? Next End '**************************** Charlie On 12/01/2021 13:03, Olivier Coquet wrote: Hi all, I have a problem with Split function. If I have a string like this: "Test - test2 - test3 test4" and I split with " - " separation string, I obtain "Test" "test2" "test3" "test4" and I want: "Test" "test2" "test3 test4" How can I make this ? regards Olivier ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Tue Jan 12 18:13:07 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 12 Jan 2021 18:13:07 +0100 Subject: [Gambas-user] Split Function ??? In-Reply-To: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> References: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> Message-ID: Well split(Replace ("Test - test2 - test3 test4", " - ",",")) will do the job Le mar. 12 janv. 2021 ? 15:26, ocoquet a ?crit : > > Thank's Charlie, i'll try this.... > > Regards > > Olivier > > > Envoy? depuis mon appareil Galaxy > > > -------- Message d'origine -------- > De : Charlie Ogier > Date : 12/01/2021 14:47 (GMT+01:00) > ? : user at lists.gambas-basic.org > Objet : Re: [Gambas-user] Split Function ??? > > Hi Olivier, > > Try this: - > > '**************************** > Public Sub Form_Open() > > Dim s As String = "Test - test2 - test3 test4" > Dim sArray As String[] = Split(s, "-") 'NOT " - " > Dim iLoop As Integer > > For iLoop = 0 To sArray.Max > Print Trim(sArray[iLoop]) > Next > > End > '**************************** > > Charlie > > On 12/01/2021 13:03, Olivier Coquet wrote: > > Hi all, > > I have a problem with Split function. > > If I have a string like this: > > "Test - test2 - test3 test4" > > and I split with " - " separation string, I obtain > > "Test" "test2" "test3" "test4" > > and I want: > > "Test" "test2" "test3 test4" > > How can I make this ? > > > regards > > Olivier > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From ocoquet at 3d-phenomen.fr Tue Jan 12 18:24:11 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Tue, 12 Jan 2021 18:24:11 +0100 Subject: [Gambas-user] Split Function ??? In-Reply-To: References: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> Message-ID: thank's Fabien, but I don't understand what is the "," ??? Olivier Le 12/01/2021 ? 18:13, Fabien Bodard a ?crit?: > Well > > split(Replace ("Test - test2 - test3 test4", " - ",",")) > > will do the job > > Le mar. 12 janv. 2021 ? 15:26, ocoquet a ?crit : >> Thank's Charlie, i'll try this.... >> >> Regards >> >> Olivier >> >> >> Envoy? depuis mon appareil Galaxy >> >> >> -------- Message d'origine -------- >> De : Charlie Ogier >> Date : 12/01/2021 14:47 (GMT+01:00) >> ? : user at lists.gambas-basic.org >> Objet : Re: [Gambas-user] Split Function ??? >> >> Hi Olivier, >> >> Try this: - >> >> '**************************** >> Public Sub Form_Open() >> >> Dim s As String = "Test - test2 - test3 test4" >> Dim sArray As String[] = Split(s, "-") 'NOT " - " >> Dim iLoop As Integer >> >> For iLoop = 0 To sArray.Max >> Print Trim(sArray[iLoop]) >> Next >> >> End >> '**************************** >> >> Charlie >> >> On 12/01/2021 13:03, Olivier Coquet wrote: >> >> Hi all, >> >> I have a problem with Split function. >> >> If I have a string like this: >> >> "Test - test2 - test3 test4" >> >> and I split with " - " separation string, I obtain >> >> "Test" "test2" "test3" "test4" >> >> and I want: >> >> "Test" "test2" "test3 test4" >> >> How can I make this ? >> >> >> regards >> >> Olivier >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > From gambas.fr at gmail.com Tue Jan 12 18:28:24 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 12 Jan 2021 18:28:24 +0100 Subject: [Gambas-user] Split Function ??? In-Reply-To: References: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> Message-ID: Le mar. 12 janv. 2021 ? 18:25, Olivier Coquet a ?crit : > > thank's Fabien, but I don't understand what is the "," ??? .... a comma ? :-D > > > Olivier > > Le 12/01/2021 ? 18:13, Fabien Bodard a ?crit : > > Well > > > > split(Replace ("Test - test2 - test3 test4", " - ",",")) > > > > will do the job > > > > Le mar. 12 janv. 2021 ? 15:26, ocoquet a ?crit : > >> Thank's Charlie, i'll try this.... > >> > >> Regards > >> > >> Olivier > >> > >> > >> Envoy? depuis mon appareil Galaxy > >> > >> > >> -------- Message d'origine -------- > >> De : Charlie Ogier > >> Date : 12/01/2021 14:47 (GMT+01:00) > >> ? : user at lists.gambas-basic.org > >> Objet : Re: [Gambas-user] Split Function ??? > >> > >> Hi Olivier, > >> > >> Try this: - > >> > >> '**************************** > >> Public Sub Form_Open() > >> > >> Dim s As String = "Test - test2 - test3 test4" > >> Dim sArray As String[] = Split(s, "-") 'NOT " - " > >> Dim iLoop As Integer > >> > >> For iLoop = 0 To sArray.Max > >> Print Trim(sArray[iLoop]) > >> Next > >> > >> End > >> '**************************** > >> > >> Charlie > >> > >> On 12/01/2021 13:03, Olivier Coquet wrote: > >> > >> Hi all, > >> > >> I have a problem with Split function. > >> > >> If I have a string like this: > >> > >> "Test - test2 - test3 test4" > >> > >> and I split with " - " separation string, I obtain > >> > >> "Test" "test2" "test3" "test4" > >> > >> and I want: > >> > >> "Test" "test2" "test3 test4" > >> > >> How can I make this ? > >> > >> > >> regards > >> > >> Olivier > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >> > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From bsteers4 at gmail.com Tue Jan 12 18:35:03 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 12 Jan 2021 17:35:03 +0000 Subject: [Gambas-user] Split Function ??? In-Reply-To: References: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> Message-ID: ',' is the default delimiter for Split() if no separator is given. Using Replace ("Test - test2 - test3 test4", " - ",",") will replace all ' - ' occurrence for ',' then Split() without using a separator splits at every ',' If you wanted to use your own delimiter char like '|' use... Split(Replace ("Test - test2 - test3 test4", " - ","|"), "|") BruceS On Tue, 12 Jan 2021 at 17:25, Olivier Coquet wrote: > thank's Fabien, but I don't understand what is the "," ??? > > > Olivier > > Le 12/01/2021 ? 18:13, Fabien Bodard a ?crit : > > Well > > > > split(Replace ("Test - test2 - test3 test4", " - ",",")) > > > > will do the job > > > > Le mar. 12 janv. 2021 ? 15:26, ocoquet a ?crit > : > >> Thank's Charlie, i'll try this.... > >> > >> Regards > >> > >> Olivier > >> > >> > >> Envoy? depuis mon appareil Galaxy > >> > >> > >> -------- Message d'origine -------- > >> De : Charlie Ogier > >> Date : 12/01/2021 14:47 (GMT+01:00) > >> ? : user at lists.gambas-basic.org > >> Objet : Re: [Gambas-user] Split Function ??? > >> > >> Hi Olivier, > >> > >> Try this: - > >> > >> '**************************** > >> Public Sub Form_Open() > >> > >> Dim s As String = "Test - test2 - test3 test4" > >> Dim sArray As String[] = Split(s, "-") 'NOT " - " > >> Dim iLoop As Integer > >> > >> For iLoop = 0 To sArray.Max > >> Print Trim(sArray[iLoop]) > >> Next > >> > >> End > >> '**************************** > >> > >> Charlie > >> > >> On 12/01/2021 13:03, Olivier Coquet wrote: > >> > >> Hi all, > >> > >> I have a problem with Split function. > >> > >> If I have a string like this: > >> > >> "Test - test2 - test3 test4" > >> > >> and I split with " - " separation string, I obtain > >> > >> "Test" "test2" "test3" "test4" > >> > >> and I want: > >> > >> "Test" "test2" "test3 test4" > >> > >> How can I make this ? > >> > >> > >> regards > >> > >> Olivier > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >> > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Tue Jan 12 18:35:43 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Tue, 12 Jan 2021 18:35:43 +0100 Subject: [Gambas-user] Split Function ??? In-Reply-To: References: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> Message-ID: Hi Fabien, :) :) :) :) Yes but what is the function of "," in split arguments ? Olivier Le 12/01/2021 ? 18:28, Fabien Bodard a ?crit?: > Le mar. 12 janv. 2021 ? 18:25, Olivier Coquet a ?crit : >> thank's Fabien, but I don't understand what is the "," ??? > .... a comma ? :-D >> >> Olivier >> >> Le 12/01/2021 ? 18:13, Fabien Bodard a ?crit : >>> Well >>> >>> split(Replace ("Test - test2 - test3 test4", " - ",",")) >>> >>> will do the job >>> >>> Le mar. 12 janv. 2021 ? 15:26, ocoquet a ?crit : >>>> Thank's Charlie, i'll try this.... >>>> >>>> Regards >>>> >>>> Olivier >>>> >>>> >>>> Envoy? depuis mon appareil Galaxy >>>> >>>> >>>> -------- Message d'origine -------- >>>> De : Charlie Ogier >>>> Date : 12/01/2021 14:47 (GMT+01:00) >>>> ? : user at lists.gambas-basic.org >>>> Objet : Re: [Gambas-user] Split Function ??? >>>> >>>> Hi Olivier, >>>> >>>> Try this: - >>>> >>>> '**************************** >>>> Public Sub Form_Open() >>>> >>>> Dim s As String = "Test - test2 - test3 test4" >>>> Dim sArray As String[] = Split(s, "-") 'NOT " - " >>>> Dim iLoop As Integer >>>> >>>> For iLoop = 0 To sArray.Max >>>> Print Trim(sArray[iLoop]) >>>> Next >>>> >>>> End >>>> '**************************** >>>> >>>> Charlie >>>> >>>> On 12/01/2021 13:03, Olivier Coquet wrote: >>>> >>>> Hi all, >>>> >>>> I have a problem with Split function. >>>> >>>> If I have a string like this: >>>> >>>> "Test - test2 - test3 test4" >>>> >>>> and I split with " - " separation string, I obtain >>>> >>>> "Test" "test2" "test3" "test4" >>>> >>>> and I want: >>>> >>>> "Test" "test2" "test3 test4" >>>> >>>> How can I make this ? >>>> >>>> >>>> regards >>>> >>>> Olivier >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > From ocoquet at 3d-phenomen.fr Tue Jan 12 18:37:53 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Tue, 12 Jan 2021 18:37:53 +0100 Subject: [Gambas-user] Split Function ??? In-Reply-To: References: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> Message-ID: <1a37b6d2-960e-a7c9-51fb-f121a68862cb@3d-phenomen.fr> hi Bruce, I've omitted the "Replace" :) Olivier Le 12/01/2021 ? 18:35, Bruce Steers a ?crit?: > ',' is the default delimiter for Split() if no separator is given. > > Using Replace ("Test - test2 - test3 test4", " - ",",")? will replace > all ' - ' occurrence for ',' > then Split() without using a separator splits at every ',' > > If you wanted to use your own delimiter char like '|' use... > Split(Replace ("Test - test2 - test3 test4", " - ","|"), "|") > > BruceS > > On Tue, 12 Jan 2021 at 17:25, Olivier Coquet > wrote: > > thank's Fabien, but I don't understand what is the "," ??? > > > Olivier > > Le 12/01/2021 ? 18:13, Fabien Bodard a ?crit?: > > Well > > > > split(Replace ("Test - test2 - test3 test4", " - ",",")) > > > > will do the job > > > > Le mar. 12 janv. 2021 ? 15:26, ocoquet > a ?crit : > >> Thank's Charlie, i'll try this.... > >> > >> Regards > >> > >> Olivier > >> > >> > >> Envoy? depuis mon appareil Galaxy > >> > >> > >> -------- Message d'origine -------- > >> De : Charlie Ogier > > >> Date : 12/01/2021 14:47 (GMT+01:00) > >> ? : user at lists.gambas-basic.org > > >> Objet : Re: [Gambas-user] Split Function ??? > >> > >> Hi Olivier, > >> > >> Try this: - > >> > >> '**************************** > >> Public Sub Form_Open() > >> > >>? ? Dim s As String = "Test - test2 - test3 test4" > >>? ? Dim sArray As String[] = Split(s, "-") 'NOT " - " > >>? ? Dim iLoop As Integer > >> > >>? ? For iLoop = 0 To sArray.Max > >>? ? ? Print Trim(sArray[iLoop]) > >>? ? Next > >> > >> End > >> '**************************** > >> > >> Charlie > >> > >> On 12/01/2021 13:03, Olivier Coquet wrote: > >> > >> Hi all, > >> > >> I have a problem with Split function. > >> > >> If I have a string like this: > >> > >> "Test - test2 - test3 test4" > >> > >> and I split with " - " separation string, I obtain > >> > >> "Test" "test2" "test3" "test4" > >> > >> and I want: > >> > >> "Test" "test2" "test3 test4" > >> > >> How can I make this ? > >> > >> > >> regards > >> > >> Olivier > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > >> > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Tue Jan 12 18:39:06 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 12 Jan 2021 18:39:06 +0100 Subject: [Gambas-user] Split Function ??? In-Reply-To: References: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> Message-ID: Thank you Bruce :-), that's exactly that. A phone call have delayed my answer... From gambas.fr at gmail.com Tue Jan 12 18:40:10 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 12 Jan 2021 18:40:10 +0100 Subject: [Gambas-user] Split Function ??? In-Reply-To: References: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> Message-ID: ok you must read that like : Dim s as string s = Replace ("Test - test2 - test3 test4", " - ","|") split(s) Le mar. 12 janv. 2021 ? 18:39, Olivier Coquet a ?crit : > > Hi Fabien, > > :) :) :) :) > > Yes but what is the function of "," in split arguments ? > > Olivier > > Le 12/01/2021 ? 18:28, Fabien Bodard a ?crit : > > Le mar. 12 janv. 2021 ? 18:25, Olivier Coquet a ?crit : > >> thank's Fabien, but I don't understand what is the "," ??? > > .... a comma ? :-D > >> > >> Olivier > >> > >> Le 12/01/2021 ? 18:13, Fabien Bodard a ?crit : > >>> Well > >>> > >>> split(Replace ("Test - test2 - test3 test4", " - ",",")) > >>> > >>> will do the job > >>> > >>> Le mar. 12 janv. 2021 ? 15:26, ocoquet a ?crit : > >>>> Thank's Charlie, i'll try this.... > >>>> > >>>> Regards > >>>> > >>>> Olivier > >>>> > >>>> > >>>> Envoy? depuis mon appareil Galaxy > >>>> > >>>> > >>>> -------- Message d'origine -------- > >>>> De : Charlie Ogier > >>>> Date : 12/01/2021 14:47 (GMT+01:00) > >>>> ? : user at lists.gambas-basic.org > >>>> Objet : Re: [Gambas-user] Split Function ??? > >>>> > >>>> Hi Olivier, > >>>> > >>>> Try this: - > >>>> > >>>> '**************************** > >>>> Public Sub Form_Open() > >>>> > >>>> Dim s As String = "Test - test2 - test3 test4" > >>>> Dim sArray As String[] = Split(s, "-") 'NOT " - " > >>>> Dim iLoop As Integer > >>>> > >>>> For iLoop = 0 To sArray.Max > >>>> Print Trim(sArray[iLoop]) > >>>> Next > >>>> > >>>> End > >>>> '**************************** > >>>> > >>>> Charlie > >>>> > >>>> On 12/01/2021 13:03, Olivier Coquet wrote: > >>>> > >>>> Hi all, > >>>> > >>>> I have a problem with Split function. > >>>> > >>>> If I have a string like this: > >>>> > >>>> "Test - test2 - test3 test4" > >>>> > >>>> and I split with " - " separation string, I obtain > >>>> > >>>> "Test" "test2" "test3" "test4" > >>>> > >>>> and I want: > >>>> > >>>> "Test" "test2" "test3 test4" > >>>> > >>>> How can I make this ? > >>>> > >>>> > >>>> regards > >>>> > >>>> Olivier > >>>> > >>>> > >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >>>> > >>>> > >>>> > >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >>> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From bsteers4 at gmail.com Tue Jan 12 18:46:29 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 12 Jan 2021 17:46:29 +0000 Subject: [Gambas-user] bugtracker error Message-ID: Bugtracker shows error 502 page when submitting. So i tried again. But although it shows error page seems bug IS submitted as have duplicate. Sorry for duplicate BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Jan 12 19:15:03 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 12 Jan 2021 18:15:03 +0000 Subject: [Gambas-user] Split Function ??? In-Reply-To: <1a37b6d2-960e-a7c9-51fb-f121a68862cb@3d-phenomen.fr> References: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> <1a37b6d2-960e-a7c9-51fb-f121a68862cb@3d-phenomen.fr> Message-ID: No you need the Replace() if you wish to split using a string using more than one single char as the pattern. " - " is 3 chars, 2 spaces and a - so the Split() command splits at every space as well as the "-" Like Benoit said the Split() function only really uses one char. Using Spit(Str," - ") is like giving a list of " " and "-" to split at. To split a string at an instance of more than one char you have to first convert the delimiters in the string into a single char. So using Replace(sText, " - ", "-") makes " - " just "-" Hope that makes sense BruceS On Tue, 12 Jan 2021 at 17:40, Olivier Coquet wrote: > hi Bruce, > > I've omitted the "Replace" :) > > Olivier > Le 12/01/2021 ? 18:35, Bruce Steers a ?crit : > > ',' is the default delimiter for Split() if no separator is given. > > Using Replace ("Test - test2 - test3 test4", " - ",",") will replace all > ' - ' occurrence for ',' > then Split() without using a separator splits at every ',' > > If you wanted to use your own delimiter char like '|' use... > Split(Replace ("Test - test2 - test3 test4", " - ","|"), "|") > > BruceS > > On Tue, 12 Jan 2021 at 17:25, Olivier Coquet > wrote: > >> thank's Fabien, but I don't understand what is the "," ??? >> >> >> Olivier >> >> Le 12/01/2021 ? 18:13, Fabien Bodard a ?crit : >> > Well >> > >> > split(Replace ("Test - test2 - test3 test4", " - ",",")) >> > >> > will do the job >> > >> > Le mar. 12 janv. 2021 ? 15:26, ocoquet a >> ?crit : >> >> Thank's Charlie, i'll try this.... >> >> >> >> Regards >> >> >> >> Olivier >> >> >> >> >> >> Envoy? depuis mon appareil Galaxy >> >> >> >> >> >> -------- Message d'origine -------- >> >> De : Charlie Ogier >> >> Date : 12/01/2021 14:47 (GMT+01:00) >> >> ? : user at lists.gambas-basic.org >> >> Objet : Re: [Gambas-user] Split Function ??? >> >> >> >> Hi Olivier, >> >> >> >> Try this: - >> >> >> >> '**************************** >> >> Public Sub Form_Open() >> >> >> >> Dim s As String = "Test - test2 - test3 test4" >> >> Dim sArray As String[] = Split(s, "-") 'NOT " - " >> >> Dim iLoop As Integer >> >> >> >> For iLoop = 0 To sArray.Max >> >> Print Trim(sArray[iLoop]) >> >> Next >> >> >> >> End >> >> '**************************** >> >> >> >> Charlie >> >> >> >> On 12/01/2021 13:03, Olivier Coquet wrote: >> >> >> >> Hi all, >> >> >> >> I have a problem with Split function. >> >> >> >> If I have a string like this: >> >> >> >> "Test - test2 - test3 test4" >> >> >> >> and I split with " - " separation string, I obtain >> >> >> >> "Test" "test2" "test3" "test4" >> >> >> >> and I want: >> >> >> >> "Test" "test2" "test3 test4" >> >> >> >> How can I make this ? >> >> >> >> >> >> regards >> >> >> >> Olivier >> >> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> >> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > >> > >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Tue Jan 12 20:16:33 2021 From: tmorehen at ajm-software.com (Tony Morehen) Date: Tue, 12 Jan 2021 14:16:33 -0500 Subject: [Gambas-user] Split Function ??? In-Reply-To: References: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> Message-ID: <7983964c-9205-a475-00c6-7cd8bab98cdf@ajm-software.com> Bruce, your recommended approach of Split(Replace ("Test - test2 - test3 test4", " - ","|"), "|") is the correct approach.? You just have to be careful that the substitute split character will not be found in the text to split.? I'd recommend using: Split(Replace ("Test - test2 - test3 test4", " - ",Asc(31), Asc(31)).? You could use almost any low ascii character in place of Asc(31) but I think using "unit separator" is appropriate. On 2021-01-12 12:35 p.m., Bruce Steers wrote: > ',' is the default delimiter for Split() if no separator is given. > > Using Replace ("Test - test2 - test3 test4", " - ",",")? will replace > all ' - ' occurrence for ',' > then Split() without using a separator splits at every ',' > > If you wanted to use your own delimiter char like '|' use... > Split(Replace ("Test - test2 - test3 test4", " - ","|"), "|") > > BruceS > > On Tue, 12 Jan 2021 at 17:25, Olivier Coquet > wrote: > > thank's Fabien, but I don't understand what is the "," ??? > > > Olivier > > Le 12/01/2021 ? 18:13, Fabien Bodard a ?crit?: > > Well > > > > split(Replace ("Test - test2 - test3 test4", " - ",",")) > > > > will do the job > > > > Le mar. 12 janv. 2021 ? 15:26, ocoquet > a ?crit : > >> Thank's Charlie, i'll try this.... > >> > >> Regards > >> > >> Olivier > >> > >> > >> Envoy? depuis mon appareil Galaxy > >> > >> > >> -------- Message d'origine -------- > >> De : Charlie Ogier > > >> Date : 12/01/2021 14:47 (GMT+01:00) > >> ? : user at lists.gambas-basic.org > > >> Objet : Re: [Gambas-user] Split Function ??? > >> > >> Hi Olivier, > >> > >> Try this: - > >> > >> '**************************** > >> Public Sub Form_Open() > >> > >>? ? Dim s As String = "Test - test2 - test3 test4" > >>? ? Dim sArray As String[] = Split(s, "-") 'NOT " - " > >>? ? Dim iLoop As Integer > >> > >>? ? For iLoop = 0 To sArray.Max > >>? ? ? Print Trim(sArray[iLoop]) > >>? ? Next > >> > >> End > >> '**************************** > >> > >> Charlie > >> > >> On 12/01/2021 13:03, Olivier Coquet wrote: > >> > >> Hi all, > >> > >> I have a problem with Split function. > >> > >> If I have a string like this: > >> > >> "Test - test2 - test3 test4" > >> > >> and I split with " - " separation string, I obtain > >> > >> "Test" "test2" "test3" "test4" > >> > >> and I want: > >> > >> "Test" "test2" "test3 test4" > >> > >> How can I make this ? > >> > >> > >> regards > >> > >> Olivier > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > >> > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Jan 12 21:27:16 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 12 Jan 2021 20:27:16 +0000 Subject: [Gambas-user] Split Function ??? In-Reply-To: <7983964c-9205-a475-00c6-7cd8bab98cdf@ajm-software.com> References: <202101121423.10CEM7Qt030814@sd-89727.dedibox.fr> <7983964c-9205-a475-00c6-7cd8bab98cdf@ajm-software.com> Message-ID: To be fair that was Fabiens reccomendation not mine. Great tip using Chr() though :) I'd implement my own function if using Replace() wasn't enough... a simple function like below will split like Split() but use any length string separator. ' tested with this.. * Debug SplitS("this text
split this way
like html", "
").Join(",")* * Debug Split("this text
split this way
like html", "
").Join(",")* *Public Sub SplitS(sArg As String, sFind As String) As String[] Dim sReturn As New String[] Dim iCurPos, iLastPos As Integer While iLastPos < sArg.Len iCurPos = InStr(sArg, sFind, iLastPos) If iCurPos = 0 Then sReturn.Add(sArg[iLastPos, sArg.Len - iLastPos]) Break Else sReturn.Add(sArg[iLastPos, iCurPos - 1 - iLastPos]) iCurPos = iCurPos + sFind.Len - 1 iLastPos = iCurPos Endif Wend Return sReturnEnd* Returns like this... SplitS output: this text,split this way,like html Split output: this text,,,,split this way,,,,like html I'm sure the experts here could make that function better/faster :) BruceS On Tue, 12 Jan 2021 at 19:17, Tony Morehen wrote: > Bruce, your recommended approach of Split(Replace ("Test - test2 - test3 > test4", " - ","|"), "|") is the correct approach. You just have to be > careful that the substitute split character will not be found in the text > to split. I'd recommend using: > > Split(Replace ("Test - test2 - test3 test4", " - ",Asc(31), Asc(31)). You > could use almost any low ascii character in place of Asc(31) but I think > using "unit separator" is appropriate. > > > On 2021-01-12 12:35 p.m., Bruce Steers wrote: > > ',' is the default delimiter for Split() if no separator is given. > > Using Replace ("Test - test2 - test3 test4", " - ",",") will replace all > ' - ' occurrence for ',' > then Split() without using a separator splits at every ',' > > If you wanted to use your own delimiter char like '|' use... > Split(Replace ("Test - test2 - test3 test4", " - ","|"), "|") > > BruceS > > On Tue, 12 Jan 2021 at 17:25, Olivier Coquet > wrote: > >> thank's Fabien, but I don't understand what is the "," ??? >> >> >> Olivier >> >> Le 12/01/2021 ? 18:13, Fabien Bodard a ?crit : >> > Well >> > >> > split(Replace ("Test - test2 - test3 test4", " - ",",")) >> > >> > will do the job >> > >> > Le mar. 12 janv. 2021 ? 15:26, ocoquet a >> ?crit : >> >> Thank's Charlie, i'll try this.... >> >> >> >> Regards >> >> >> >> Olivier >> >> >> >> >> >> Envoy? depuis mon appareil Galaxy >> >> >> >> >> >> -------- Message d'origine -------- >> >> De : Charlie Ogier >> >> Date : 12/01/2021 14:47 (GMT+01:00) >> >> ? : user at lists.gambas-basic.org >> >> Objet : Re: [Gambas-user] Split Function ??? >> >> >> >> Hi Olivier, >> >> >> >> Try this: - >> >> >> >> '**************************** >> >> Public Sub Form_Open() >> >> >> >> Dim s As String = "Test - test2 - test3 test4" >> >> Dim sArray As String[] = Split(s, "-") 'NOT " - " >> >> Dim iLoop As Integer >> >> >> >> For iLoop = 0 To sArray.Max >> >> Print Trim(sArray[iLoop]) >> >> Next >> >> >> >> End >> >> '**************************** >> >> >> >> Charlie >> >> >> >> On 12/01/2021 13:03, Olivier Coquet wrote: >> >> >> >> Hi all, >> >> >> >> I have a problem with Split function. >> >> >> >> If I have a string like this: >> >> >> >> "Test - test2 - test3 test4" >> >> >> >> and I split with " - " separation string, I obtain >> >> >> >> "Test" "test2" "test3" "test4" >> >> >> >> and I want: >> >> >> >> "Test" "test2" "test3 test4" >> >> >> >> How can I make this ? >> >> >> >> >> >> regards >> >> >> >> Olivier >> >> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> >> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > >> > >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Jan 12 21:39:35 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 12 Jan 2021 22:39:35 +0200 Subject: [Gambas-user] Format & localization bug In-Reply-To: References: Message-ID: > If it's actually Finnish, then today is printed as: > > ti 12. tatammikuu 2021 14.18.46 > > So "." becomes the time separator, and so the ":" in the time format is > replaced by that ".". > Isn't the whole idea of Format command to let the user define the format? So, the format should be user defined independently of localization. Right? I have never seen this "ti 12. tammikuu 2021" format to be used in Finland. Time is officially written as "14.18", but "14:18" is better and equally understood. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Jan 12 21:40:37 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 12 Jan 2021 22:40:37 +0200 Subject: [Gambas-user] Format & localization bug In-Reply-To: References: Message-ID: But I did find a workaround: Subst(("&2/&1/&3 &4:&5"), Day(hAlarm.hTotal), Month(hAlarm.hTotal), Year(hAlarm.hTotal), Format(Hour(hAlarm.hTotal), "00"), Format(Minute(hAlarm.hTotal), "00")) Jussi On Tue, Jan 12, 2021 at 10:39 PM Jussi Lahtinen wrote: > > If it's actually Finnish, then today is printed as: >> >> ti 12. tatammikuu 2021 14.18.46 >> >> So "." becomes the time separator, and so the ":" in the time format is >> replaced by that ".". >> > > Isn't the whole idea of Format command to let the user define the format? > So, the format should be user defined independently of localization. > Right? > I have never seen this "ti 12. tammikuu 2021" format to be used in > Finland. Time is officially written as "14.18", but "14:18" is better and > equally understood. > > > Jussi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Jan 12 21:44:36 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 12 Jan 2021 21:44:36 +0100 Subject: [Gambas-user] Format & localization bug In-Reply-To: References: Message-ID: Le 12/01/2021 ? 21:39, Jussi Lahtinen a ?crit?: > > If it's actually Finnish, then today is printed as: > > ti 12. tatammikuu 2021 14.18.46 > > So "." becomes the time separator, and so the ":" in the time format is > replaced by that ".". > > > Isn't the whole idea of Format command to let the user define the format? No. It's for formatting a value according to the current localization. > So, the format should be user defined independently of localization. Right? > I have never seen this "ti 12. tammikuu 2021" format to be used in > Finland. Time is officially written as "14.18", but "14:18" is better > and equally understood. > > > Jussi > To see which date format is used by Gambas, run "date +%c" in a shell using your current localization. The date and time separators are extracted from this string. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Tue Jan 12 21:45:55 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 12 Jan 2021 21:45:55 +0100 Subject: [Gambas-user] Format & localization bug In-Reply-To: References: Message-ID: Le 12/01/2021 ? 21:44, Beno?t Minisini a ?crit?: > > To see which date format is used by Gambas, run "date +%c" in a shell > using your current localization. The date and time separators are > extracted from this string. > > Regards, > If you are sure that the format returned by "date +%c" is not correct, tell me the correct format, and I will add a patch to the interpreter. I have already patched the French date format, which uses "/" to separate dates, whereas the libc (i.e. "date +%c") uses a dot. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Tue Jan 12 21:52:53 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 12 Jan 2021 22:52:53 +0200 Subject: [Gambas-user] Split Function ??? In-Reply-To: <357438c1-4423-2c9b-8399-ba94560f890d@3d-phenomen.fr> References: <357438c1-4423-2c9b-8399-ba94560f890d@3d-phenomen.fr> Message-ID: Yet another solution: Dim sArr As String[] = Split("Test - test2 - test3 test4", "-") For ii As Integer = 0 To sArr.Max sArr[ii] = Trim(sArr[ii]) Next I wish Gambas had Map function... Benoit? So that we could write this as: Dim sArr As String[] = Split("Test - test2 - test3 test4", "-") sArr.Map(Trim) Or: Map(sArr, Trim) Jussi On Tue, Jan 12, 2021 at 3:05 PM Olivier Coquet wrote: > Hi all, > > I have a problem with Split function. > > If I have a string like this: > > *"Test - test2 - test3 test4"* > > and I split with *" - "* separation string, I obtain > > *"Test" "test2" "test3" "test4"* > > and I want: > > *"Test" "test2" "test3 test4"* > > How can I make this ? > > > regards > > Olivier > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Jan 12 22:15:13 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 12 Jan 2021 23:15:13 +0200 Subject: [Gambas-user] Format & localization bug In-Reply-To: References: Message-ID: > > If you are sure that the format returned by "date +%c" is not correct, > tell me the correct format, and I will add a patch to the interpreter. > I tried to look this up and there seems to be many accepted formats, however what that command shows doesn't seem to be any of them. This is one of the accepted formats, but it may not be easy to implement. "12. tammikuuta 2021 22.55.05" "Tammikuu" means "January", but in the format it is "tammikuuta", which means "of January". Usually we see dates in format: "12.1.2021", "Tiistai 12.1" or just "12.1" and times in "22:55" or "klo 22.55" (to avoid the confusion in cases of "12.10 date or time?"). Even our national broadcasting company uses these de facto formats. See example here: https://yle.fi/uutiset Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Jan 13 10:02:26 2021 From: mbelmonte at belmotek.net (Martin) Date: Wed, 13 Jan 2021 10:02:26 +0100 Subject: [Gambas-user] TableView Tag Property Message-ID: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> Hi, Tableview has not Tag property for each cell, but is there some way to add this property to it? The point is that when I click on a cell I want it to change its image to show another state, which is easy using the mousedown event, for example, but when is necessary to save the state data on a support, such as a database where is the info? It seems that there is no place to extract the true or false information.I currently use the .WordWrap property but it's not the right thing to do I guess, .Tag would be the optimal solution. What could be the solution? Change the components [Grid|Table]View ? or ... Made a modified component? Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Wed Jan 13 11:33:07 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Wed, 13 Jan 2021 11:33:07 +0100 Subject: [Gambas-user] Compiled version of class Message-ID: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> hi all, Is there a way to join/include ??? compiled version of a single class in a project ? regards Olivier From bagonergi at gmail.com Wed Jan 13 14:00:38 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 13 Jan 2021 14:00:38 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> Message-ID: Il giorno mer 13 gen 2021 alle ore 10:03 Martin ha scritto: > Hi, > > Tableview has not Tag property for each cell, but is there some way to add > this property to it? > > The point is that when I click on a cell I want it to change its image to > show another state, which is easy using the mousedown event, for example, > but when is necessary to save the state data on a support, such as a > database where is the info? > > It seems that there is no place to extract the true or false information. I > currently use the .WordWrap property but it's not the right thing to do I > guess, .Tag would be the optimal solution. > > What could be the solution? Change the components [Grid|Table]View ? or > ... Made a modified component? > > Regards. > Sorry but I'm afraid I don't understand the question. Do you know the Data event of the GridView? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Jan 13 15:16:45 2021 From: mbelmonte at belmotek.net (Martin) Date: Wed, 13 Jan 2021 15:16:45 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> Message-ID: <0ea1de07-c3e9-7654-6711-cd6c0a87fed0@belmotek.net> Hi, The question is not related to the data event, however it is related to the ability of a cell to store a parameter, in this case true or false, in a different place than the text value of the cell.I leave here an example for clarity. ' Gambas class file Public Sub Form_Open() ? Dim stx As String[] ? Dim lan As String ? Dim i As Integer ? Dim pic As Picture ? stx = ["C", "Python", "C++", "Visual Basic", "C#", "JavaScript", "PHP", "SQL", "R", "Objective C", "Gambas", "Go"] ? GridView1.Rows.Count = stx.Count ? GridView1.Columns.Count = 2 ? GridView1.Columns[1].Title = ("Languages") ? GridView1.Columns[1].Expand = True ? GridView1.Columns[0].Title = ("Like") ? For i = 0 To stx.Max ??? GridView1[i, 1].Text = stx[i] ??? If i Mod 2 <> 0 Then ????? pic = Picture["icon:/16/ok"] ????? GridView1[i, 0].WordWrap = True ??? Else ????? pic = Picture["icon:/16/close"] ????? GridView1[i, 0].WordWrap = False ??? Endif ??? GridView1[i, 0].Picture = pic ? Next End Public Sub GridView1_DblClick() ? If GridView1.Column = 0 Then ??? If GridView1[GridView1.Row, 0].WordWrap = True Then ????? GridView1[GridView1.Row, 0].WordWrap = False ????? GridView1[GridView1.Row, 0].Picture = Picture["icon:/16/close"] ??? Else ????? GridView1[GridView1.Row, 0].WordWrap = True ????? GridView1[GridView1.Row, 0].Picture = Picture["icon:/16/ok"] ??? Endif ? Endif End Regards El 13/1/21 a las 14:00, Gianluigi escribi?: > > > Il giorno mer 13 gen 2021 alle ore 10:03 Martin > > ha scritto: > > Hi, > > Tableview has not Tag property for each cell, but is there some > way to add this property to it? > > The point is that when I click on a cell I want it to change its > image to show another state, which is easy using the mousedown > event, for example, but when is necessary to save the state data > on a support, such as a database where is the info? > > It seems that there is no place to extract the true or false > information.I currently use the .WordWrap property but it's not > the right thing to do I guess, .Tag would be the optimal solution. > > What could be the solution? Change the components [Grid|Table]View > ? or ... Made a modified component? > > Regards. > > Sorry but I'm afraid I don't understand the question. > Do you know the Data event of the GridView? > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Jan 13 15:35:39 2021 From: taboege at gmail.com (Tobias Boege) Date: Wed, 13 Jan 2021 15:35:39 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> Message-ID: <20210113143539.GA11059@highrise.localdomain> On Wed, 13 Jan 2021, Martin wrote: > Hi, > > Tableview has not Tag property for each cell, but is there some way to add > this property to it? > > The point is that when I click on a cell I want it to change its image to > show another state, which is easy using the mousedown event, for example, > but when is necessary to save the state data on a support, such as a > database where is the info? > > It seems that there is no place to extract the true or false information.I > currently use the .WordWrap property but it's not the right thing to do I > guess, .Tag would be the optimal solution. > > What could be the solution? Change the components [Grid|Table]View ? or ... > Made a modified component? > This is indeed sometimes an inconvenience in Gambas. A Tag property can be useful for remembering external information inside a control or any object, but that property exists only sporadically. The clean and proper way around this is to make a new control class. Apparently TableView is not made to hold all the information you want to associate with a cell. So make a custom control based on TableView, which has an internal Array or Collection indexed by the cells which stores the additional data and presents a convenient interface to it. Look at how TableView.class in gb.form wraps the GridView class to add functionality to it. That is more work than having Beno?t add a Tag property and waiting for the next stable Gambas version. It may be more work than you want to do. Alternatively, here is a hack that I believe should work: TableView is essentially a GridView, which is a control implemented in Gambas as of some much earlier version of Gambas 3. A cell in a TableView is of type _GridView_Cell. It is a completely ordinary Gambas class (as opposed to a native virtual class if it had been implemented in a gb.qt or gb.gtk component, but I digress...). This means that you can *extend* the _GridView_Cell class by over- riding it in the global symbol table [1]. Basically: add a class named _GridView_Cell to your project and mark it Export. Then just add "Public Tag As Variant" inside the class, nothing else is needed. You do not have to re-implement the cell or copy it over from gb.form; the interpreter will automatically merge your version *into* the one from gb.form. This way you replace the normal cell class with your extended version all throughout the current Gambas process, so everything that uses a _GridView_Cell will now transparently have this additional public variable Tag. I haven't tried it myself, but I think it should work. Best, Tobias [1] http://gambaswiki.org/wiki/doc/object-model#t21 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From olivier.cruilles at yahoo.fr Wed Jan 13 15:54:37 2021 From: olivier.cruilles at yahoo.fr (Linus) Date: Wed, 13 Jan 2021 09:54:37 -0500 Subject: [Gambas-user] Compiled version of class In-Reply-To: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> Message-ID: <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> Hello, Yes it?s possible in Gambas, take a look a create a library or a Component (better) of your project. After that you could load your new Library/Component in any other project. You can look at a component I have posted in the Farm of Gambas Farm ==> Library ==> gb.sshclient1.1.5 Take a look at the Properties Panel ==> Information and if you try to Build the package by the IDE, you should see all options I have set. This is just an example that could point you to a direction. Olivier Cruilles > Le 13 janv. 2021 ? 05:33, Olivier Coquet a ?crit : > > hi all, > > Is there a way to join/include ??? compiled version of a single class in a project ? > > > regards > > Olivier > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bagonergi at gmail.com Wed Jan 13 16:25:33 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 13 Jan 2021 16:25:33 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: <0ea1de07-c3e9-7654-6711-cd6c0a87fed0@belmotek.net> References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <0ea1de07-c3e9-7654-6711-cd6c0a87fed0@belmotek.net> Message-ID: Il giorno mer 13 gen 2021 alle ore 15:17 Martin ha scritto: > Hi, > > The question is not related to the data event, however it is related to > the ability of a cell to store a parameter, in this case true or false, in > a different place than the text value of the cell. I leave here an > example for clarity. > Could something like this be inspiring? Public Sub Form_Open() Dim stx As String[] Dim lan As String Dim i As Integer Dim pic As Picture stx = ["C", "Python", "C++", "Visual Basic", "C#", "JavaScript", "PHP", "SQL", "R", "Objective C", "Gambas", "Go"] GridView1.Rows.Count = stx.Count GridView1.Columns.Count = 2 GridView1.Columns[1].Title = ("Languages") GridView1.Columns[1].Expand = True GridView1.Columns[0].Title = ("Like") For i = 0 To stx.Max GridView1[i, 1].Text = stx[i] If i Mod 2 <> 0 Then pic = Picture["icon:/16/ok"] GridView1[i, 0].WordWrap = True GridView1[i, 1].Background = Color.TextBackground Else pic = Picture["icon:/16/close"] GridView1[i, 0].WordWrap = False GridView1[i, 1].Background = Color.TextBackground - 1 Endif GridView1[i, 0].Picture = pic Next End Public Sub GridView1_DblClick() If GridView1.Column = 0 Then If GridView1[GridView1.Row, 0].WordWrap = True Then GridView1[GridView1.Row, 0].WordWrap = False GridView1[GridView1.Row, 0].Picture = Picture["icon:/16/close"] GridView1[GridView1.Row, 1].Background = Color.TextBackground - 1 Else GridView1[GridView1.Row, 0].WordWrap = True GridView1[GridView1.Row, 0].Picture = Picture["icon:/16/ok"] GridView1[GridView1.Row, 1].Background = Color.TextBackground Endif Else If GridView1[GridView1.Row, 1].Background = Color.TextBackground Then Print "TRUE" Else Print "FALSE" Endif Endif End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jan 13 17:25:39 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 13 Jan 2021 17:25:39 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <0ea1de07-c3e9-7654-6711-cd6c0a87fed0@belmotek.net> Message-ID: Il giorno mer 13 gen 2021 alle ore 16:25 Gianluigi ha scritto: > > > Il giorno mer 13 gen 2021 alle ore 15:17 Martin > ha scritto: > >> Hi, >> >> The question is not related to the data event, however it is related to >> the ability of a cell to store a parameter, in this case true or false, in >> a different place than the text value of the cell. I leave here an >> example for clarity. >> > > Could something like this be inspiring? > > Ok it takes me some time to figure things out ;-D, however my suggestion (Background) can be used instead of WordWrap, in a more convenient way. If you want, you also have Foreground available. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jan 13 17:53:28 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 13 Jan 2021 17:53:28 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: <20210113143539.GA11059@highrise.localdomain> References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <20210113143539.GA11059@highrise.localdomain> Message-ID: Il giorno mer 13 gen 2021 alle ore 15:36 Tobias Boege ha scritto: > On Wed, 13 Jan 2021, Martin wrote: > > Hi, > > > > Tableview has not Tag property for each cell, but is there some way to > add > > this property to it? > > > > The point is that when I click on a cell I want it to change its image to > > show another state, which is easy using the mousedown event, for example, > > but when is necessary to save the state data on a support, such as a > > database where is the info? > > > > It seems that there is no place to extract the true or false > information.I > > currently use the .WordWrap property but it's not the right thing to do I > > guess, .Tag would be the optimal solution. > > > > What could be the solution? Change the components [Grid|Table]View ? or > ... > > Made a modified component? > > > > This is indeed sometimes an inconvenience in Gambas. A Tag property can > be useful for remembering external information inside a control or any > object, but that property exists only sporadically. > > The clean and proper way around this is to make a new control class. > Apparently TableView is not made to hold all the information you want > to associate with a cell. So make a custom control based on TableView, > which has an internal Array or Collection indexed by the cells which > stores the additional data and presents a convenient interface to it. > Look at how TableView.class in gb.form wraps the GridView class to > add functionality to it. > > That is more work than having Beno?t add a Tag property and waiting for > the next stable Gambas version. It may be more work than you want to do. > Alternatively, here is a hack that I believe should work: TableView is > essentially a GridView, which is a control implemented in Gambas as of > some much earlier version of Gambas 3. > > A cell in a TableView is of type _GridView_Cell. It is a completely > ordinary Gambas class (as opposed to a native virtual class if it had > been implemented in a gb.qt or gb.gtk component, but I digress...). > This means that you can *extend* the _GridView_Cell class by over- > riding it in the global symbol table [1]. > > Basically: add a class named _GridView_Cell to your project and mark > it Export. Then just add "Public Tag As Variant" inside the class, > nothing else is needed. You do not have to re-implement the cell or > copy it over from gb.form; the interpreter will automatically merge > your version *into* the one from gb.form. This way you replace the > normal cell class with your extended version all throughout the > current Gambas process, so everything that uses a _GridView_Cell > will now transparently have this additional public variable Tag. > > I haven't tried it myself, but I think it should work. > > Best, > Tobias > > [1] http://gambaswiki.org/wiki/doc/object-model#t21 > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > Hi Tobias, your suggestion works great. ? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Wed Jan 13 18:01:07 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Wed, 13 Jan 2021 18:01:07 +0100 Subject: [Gambas-user] Compiled version of class In-Reply-To: <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> Message-ID: Hi Olivier, Thank's, I look at this :) Regards Olivier Coquet Le 13/01/2021 ? 15:54, Linus via User a ?crit?: > Hello, > > Yes it?s possible in Gambas, take a look a create a library or a Component (better) of your project. > > After that you could load your new Library/Component in any other project. > > You can look at a component I have posted in the Farm of Gambas > > Farm ==> Library ==> gb.sshclient1.1.5 > > Take a look at the Properties Panel ==> Information > and if you try to Build the package by the IDE, you should see all options I have set. > > This is just an example that could point you to a direction. > > > Olivier Cruilles > > >> Le 13 janv. 2021 ? 05:33, Olivier Coquet a ?crit : >> >> hi all, >> >> Is there a way to join/include ??? compiled version of a single class in a project ? >> >> >> regards >> >> Olivier >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From ocoquet at 3d-phenomen.fr Wed Jan 13 18:44:48 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Wed, 13 Jan 2021 18:44:48 +0100 Subject: [Gambas-user] Compiled version of class In-Reply-To: <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> Message-ID: <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> Hi, i try to make a component and after read the doc, component is working, but.... If I understand all, component is distribution dependent, if i publish it in deb format, Fedora can't install it ???? (for example) This is a constraint. Olivier Coquet Le 13/01/2021 ? 15:54, Linus via User a ?crit?: > Hello, > > Yes it?s possible in Gambas, take a look a create a library or a Component (better) of your project. > > After that you could load your new Library/Component in any other project. > > You can look at a component I have posted in the Farm of Gambas > > Farm ==> Library ==> gb.sshclient1.1.5 > > Take a look at the Properties Panel ==> Information > and if you try to Build the package by the IDE, you should see all options I have set. > > This is just an example that could point you to a direction. > > > Olivier Cruilles > > >> Le 13 janv. 2021 ? 05:33, Olivier Coquet a ?crit : >> >> hi all, >> >> Is there a way to join/include ??? compiled version of a single class in a project ? >> >> >> regards >> >> Olivier >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From pflora at libero.it Wed Jan 13 19:36:10 2021 From: pflora at libero.it (pflora at libero.it) Date: Wed, 13 Jan 2021 21:36:10 +0300 Subject: [Gambas-user] =?utf-8?q?Kiosk_browser?= Message-ID: <1610562970.591911823@f37.my.com> Is there any example explaining how to have a gambas application that renders a webpage in kiosk mode ? The web Page is in local network and have just some items to show in read only mode. The page must be refreshed every second. I looked around bit didn' t find the solution. Thanks. -- Inviato da Libero Mail per Android -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Jan 13 20:12:51 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 13 Jan 2021 19:12:51 +0000 Subject: [Gambas-user] Gambas Update & Compiler Utility Message-ID: I got a work in progress here.... https://gitlab.com/bsteers4/gcu (Click the link to see screenshots) *Gambas Compiler Utility (GCU)* (basically an advanced version of my gambas compiler bash script written in Gambas) *The Goal (s)..* Make a simple functional gambas upgrader/installer that anyone could easily use to update to latest gambas. Make a handy tool for me (and others) to manage my own branch and pull the latest upstream updates from gambas/master. *What's working...* * Detects OS and matches to the list of supported distros in gitlab-ci file. * Gets dependency list and can install. (also supports manjaro and raspbian) * Displays installed gambas version by finding and version checking gbr3. * Displays trunk version info in your downloaded source folder. * Reads latest commit and displays commit message from gitlab/gambas * Allows branch changes and running 'git pull' or git 'pull upstream master' if set * Has a terminal for running through the 4 compile steps. * Steps can by run singularly or run through all from a starting point. * Supports sudo or su -c * Password can be entered at start of process and auto-inputted at 'make install' * Creates a log file in User folder for the gambas team if compiling is failing. * Can do uninstall by running 'make uninstall' * Can clean source folder with 'make distclean' *Still todo List..* * Check and offer to remove repository installed gambas if detected. * Handle unsupported distros. * Enable downloading with either git clone or getting the archive. * Save last downloaded commit message and compare it to current to auto-detect updates and display info. * Make it fool proof * Turn it into an AppImage so it can be run and be an installer/updater without any installed/working gambas (this is why the previous utility was a bash script) * Make it work in 2 ways.. Simple mode for the user who just want the latest gambas and advanced for people like me with my own fork/branches. * make instructions/help files. --==-- Like i said it's pretty WIP at present but quite functional if you have downloaded/cloned the source to your drive already and your distro is in the list. Any input suggestions appreciated. Gambas team feel free to rip the code and make your own better version if you want. I think gambas needs an easier way to upgrade for the layman. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Jan 13 20:28:29 2021 From: mbelmonte at belmotek.net (Martin) Date: Wed, 13 Jan 2021 20:28:29 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: <20210113143539.GA11059@highrise.localdomain> References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <20210113143539.GA11059@highrise.localdomain> Message-ID: I try the _GridView_Cell way using a variable declaration, even using properties (with read / write methods also) instead of variables but while it is possible to declare the properties or variables and add them to the original class, something doesn't quite work. I'll continue using .wordwarp for now as I can't understand why rewriting the class doesn't work. Thanks for the theory, it will surely serve me in many other opportunities. Tanks. El 13/1/21 a las 15:35, Tobias Boege escribi?: > On Wed, 13 Jan 2021, Martin wrote: >> Hi, >> >> Tableview has not Tag property for each cell, but is there some way to add >> this property to it? >> >> The point is that when I click on a cell I want it to change its image to >> show another state, which is easy using the mousedown event, for example, >> but when is necessary to save the state data on a support, such as a >> database where is the info? >> >> It seems that there is no place to extract the true or false information.I >> currently use the .WordWrap property but it's not the right thing to do I >> guess, .Tag would be the optimal solution. >> >> What could be the solution? Change the components [Grid|Table]View ? or ... >> Made a modified component? >> > This is indeed sometimes an inconvenience in Gambas. A Tag property can > be useful for remembering external information inside a control or any > object, but that property exists only sporadically. > > The clean and proper way around this is to make a new control class. > Apparently TableView is not made to hold all the information you want > to associate with a cell. So make a custom control based on TableView, > which has an internal Array or Collection indexed by the cells which > stores the additional data and presents a convenient interface to it. > Look at how TableView.class in gb.form wraps the GridView class to > add functionality to it. > > That is more work than having Beno?t add a Tag property and waiting for > the next stable Gambas version. It may be more work than you want to do. > Alternatively, here is a hack that I believe should work: TableView is > essentially a GridView, which is a control implemented in Gambas as of > some much earlier version of Gambas 3. > > A cell in a TableView is of type _GridView_Cell. It is a completely > ordinary Gambas class (as opposed to a native virtual class if it had > been implemented in a gb.qt or gb.gtk component, but I digress...). > This means that you can *extend* the _GridView_Cell class by over- > riding it in the global symbol table [1]. > > Basically: add a class named _GridView_Cell to your project and mark > it Export. Then just add "Public Tag As Variant" inside the class, > nothing else is needed. You do not have to re-implement the cell or > copy it over from gb.form; the interpreter will automatically merge > your version *into* the one from gb.form. This way you replace the > normal cell class with your extended version all throughout the > current Gambas process, so everything that uses a _GridView_Cell > will now transparently have this additional public variable Tag. > > I haven't tried it myself, but I think it should work. > > Best, > Tobias > > [1] http://gambaswiki.org/wiki/doc/object-model#t21 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Jan 13 21:10:46 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 13 Jan 2021 20:10:46 +0000 Subject: [Gambas-user] Compiled version of class In-Reply-To: <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> Message-ID: why not just import the non compiled class source into your project? My script editor here https://gitlab.com/bsteers4/scripted I imported from gambas the class files for TerminalView class and TextEditor and customised them to my own needs. Much better to have the class as an internal part of the program and not an external file that may or may not be easy to install. BruceS On Wed, 13 Jan 2021 at 17:46, Olivier Coquet wrote: > Hi, i try to make a component and after read the doc, component is > working, but.... > > If I understand all, component is distribution dependent, if i publish > it in deb format, Fedora can't install it ???? (for example) > > This is a constraint. > > Olivier Coquet > > Le 13/01/2021 ? 15:54, Linus via User a ?crit : > > Hello, > > > > Yes it?s possible in Gambas, take a look a create a library or a > Component (better) of your project. > > > > After that you could load your new Library/Component in any other > project. > > > > You can look at a component I have posted in the Farm of Gambas > > > > Farm ==> Library ==> gb.sshclient1.1.5 > > > > Take a look at the Properties Panel ==> Information > > and if you try to Build the package by the IDE, you should see all > options I have set. > > > > This is just an example that could point you to a direction. > > > > > > Olivier Cruilles > > > > > >> Le 13 janv. 2021 ? 05:33, Olivier Coquet a > ?crit : > >> > >> hi all, > >> > >> Is there a way to join/include ??? compiled version of a single class > in a project ? > >> > >> > >> regards > >> > >> Olivier > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jan 13 21:56:13 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 13 Jan 2021 21:56:13 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <20210113143539.GA11059@highrise.localdomain> Message-ID: Il giorno mer 13 gen 2021 alle ore 20:29 Martin ha scritto: > I try the _GridView_Cell way using a variable declaration, even using > properties (with read / write methods also) instead of variables but while > it is possible to declare the properties or variables and add them to the > original class, something doesn't quite work. > > I'll continue using .wordwarp for now as I can't understand why rewriting > the class doesn't work. > Thanks for the theory, it will surely serve me in many other opportunities. > Here this works well, with Tobias's code See attached project, zip to avoid problem... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestGridView.zip Type: application/zip Size: 15298 bytes Desc: not available URL: From bagonergi at gmail.com Wed Jan 13 22:10:32 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 13 Jan 2021 22:10:32 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <20210113143539.GA11059@highrise.localdomain> Message-ID: Il giorno mer 13 gen 2021 alle ore 21:56 Gianluigi ha scritto: > > > Il giorno mer 13 gen 2021 alle ore 20:29 Martin > ha scritto: > >> I try the _GridView_Cell way using a variable declaration, even using >> properties (with read / write methods also) instead of variables but while >> it is possible to declare the properties or variables and add them to the >> original class, something doesn't quite work. >> >> I'll continue using .wordwarp for now as I can't understand why rewriting >> the class doesn't work. >> Thanks for the theory, it will surely serve me in many other >> opportunities. >> > > Here this works well, with Tobias's code > See attached project, zip to avoid problem... > Sorry Martin, I took the wrong pill today. You're right, it doesn't work. I have too much faith in Tobias and have not controlled well. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Jan 13 22:11:31 2021 From: mbelmonte at belmotek.net (Martin) Date: Wed, 13 Jan 2021 22:11:31 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <20210113143539.GA11059@highrise.localdomain> Message-ID: <416175fe-4969-99e5-9532-fa96933df19b@belmotek.net> ok, that part, that you sent, woks properly, I talk about something seems doesn't work, not all obviously, some part. Here you are the project I made. I you Doubleclick in the column 0 the icons change, but if you use the _GridView_Cell "modding" way works half, so icons no change. Regards. Mart?n. El 13/1/21 a las 21:56, Gianluigi escribi?: > > > Il giorno mer 13 gen 2021 alle ore 20:29 Martin > > ha scritto: > > I try the _GridView_Cell way using a variable declaration, even > using properties (with read / write methods also) instead of > variables but while it is possible to declare the properties or > variables and add them to the original class, something doesn't > quite work. > > I'll continue using .wordwarp for now as I can't understand why > rewriting the class doesn't work. > Thanks for the theory, it will surely serve me in many other > opportunities. > > > Here this works well, with Tobias's code > See attached project, zip to avoid problem... > > Regards > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sample-gridview-tag-0.0.2.tar.gz Type: application/gzip Size: 12354 bytes Desc: not available URL: From mbelmonte at belmotek.net Wed Jan 13 22:17:02 2021 From: mbelmonte at belmotek.net (Martin) Date: Wed, 13 Jan 2021 22:17:02 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <20210113143539.GA11059@highrise.localdomain> Message-ID: <4e04a6bc-4574-f73d-9244-fd6bfc6a07fd@belmotek.net> Relax Gianluigi, I think the method works almost well, however there is something that we are overlooking. Tobias's idea is very good, even it has a lot of potential for more things, more controls. Mart?n. El 13/1/21 a las 22:10, Gianluigi escribi?: > > > Il giorno mer 13 gen 2021 alle ore 21:56 Gianluigi > > ha scritto: > > > > Il giorno mer 13 gen 2021 alle ore 20:29 Martin > > ha scritto: > > I try the _GridView_Cell way using a variable declaration, > even using properties (with read / write methods also) instead > of variables but while it is possible to declare the > properties or variables and add them to the original class, > something doesn't quite work. > > I'll continue using .wordwarp for now as I can't understand > why rewriting the class doesn't work. > Thanks for the theory, it will surely serve me in many other > opportunities. > > > Here this works well, with Tobias's code > See attached project, zip to avoid problem... > > > > Sorry Martin, I took the wrong pill today. > You're right, it doesn't work. > > I have too much faith in Tobias and have not controlled well. > > Regards > Gianluigi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Jan 13 22:31:26 2021 From: taboege at gmail.com (Tobias Boege) Date: Wed, 13 Jan 2021 22:31:26 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <20210113143539.GA11059@highrise.localdomain> Message-ID: <20210113213126.GB11059@highrise.localdomain> On Wed, 13 Jan 2021, Gianluigi wrote: > Il giorno mer 13 gen 2021 alle ore 21:56 Gianluigi ha > scritto: > > > > > > > Il giorno mer 13 gen 2021 alle ore 20:29 Martin > > ha scritto: > > > >> I try the _GridView_Cell way using a variable declaration, even using > >> properties (with read / write methods also) instead of variables but while > >> it is possible to declare the properties or variables and add them to the > >> original class, something doesn't quite work. > >> > >> I'll continue using .wordwarp for now as I can't understand why rewriting > >> the class doesn't work. > >> Thanks for the theory, it will surely serve me in many other > >> opportunities. > >> > > > > Here this works well, with Tobias's code > > See attached project, zip to avoid problem... > > > > > Sorry Martin, I took the wrong pill today. > You're right, it doesn't work. > > I have too much faith in Tobias and have not controlled well. > It worked insofar as a Tag property/variable was added to the global _GridView_Cell class -- otherwise you would have gotten a runtime error when accessing it. The problem is found in the gb.gui.base source code for GridView: _GridView_Cell is not a permanent object that lives inside the GridView and stores the data associated to a cell. It is only a temporary object that is created on-the-fly as a proxy to make modifications to the real internal data structures of the GridView. Whatever data you store in a _GridView_Cell object is wasted. The class we want to change is called _GridView_Data. That's the permanent data storage for a cell. The attached project now works. But it uses some more implementation details of the GridView, which may change in a future Gambas and break your code relying on them without warning. Use at your risk! Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: TestGridView-0.0.4.tar.gz Type: application/gzip Size: 12279 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Jan 13 22:42:29 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 13 Jan 2021 22:42:29 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: <20210113213126.GB11059@highrise.localdomain> References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <20210113143539.GA11059@highrise.localdomain> <20210113213126.GB11059@highrise.localdomain> Message-ID: Le 13/01/2021 ? 22:31, Tobias Boege a ?crit?: > > It worked insofar as a Tag property/variable was added to the global > _GridView_Cell class -- otherwise you would have gotten a runtime error > when accessing it. > > The problem is found in the gb.gui.base source code for GridView: > _GridView_Cell is not a permanent object that lives inside the GridView > and stores the data associated to a cell. It is only a temporary object > that is created on-the-fly as a proxy to make modifications to the > real internal data structures of the GridView. Whatever data you store > in a _GridView_Cell object is wasted. The class we want to change is > called _GridView_Data. That's the permanent data storage for a cell. > > The attached project now works. But it uses some more implementation > details of the GridView, which may change in a future Gambas and break > your code relying on them without warning. Use at your risk! > > Best, > Tobias > I think we can add a Tag property to the GridView cell. But then, if we want to be coherent, we should add a Tag property to TreeView, ListView, ColumnView and IconView items. Regards, -- Beno?t Minisini From mbelmonte at belmotek.net Wed Jan 13 23:09:06 2021 From: mbelmonte at belmotek.net (Martin) Date: Wed, 13 Jan 2021 23:09:06 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <20210113143539.GA11059@highrise.localdomain> <20210113213126.GB11059@highrise.localdomain> Message-ID: <39de7a8e-aa7a-a40b-e8ce-f1839a30e53a@belmotek.net> I think it may be a very good idea. I suggest, if I may, also that the columns of the gridview have a Tag, many times it happens that the title text is not the same as that of the database field, but a translation or something else. TableView1.Columns[0].Tag Mart?n. El 13/1/21 a las 22:42, Beno?t Minisini escribi?: > But then, if we want to be coherent, we should add a Tag property to > TreeView, ListView, ColumnView and IconView items. From bagonergi at gmail.com Wed Jan 13 23:34:02 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 13 Jan 2021 23:34:02 +0100 Subject: [Gambas-user] TableView Tag Property In-Reply-To: <20210113213126.GB11059@highrise.localdomain> References: <80858093-ec06-2c52-b545-87c8112f1c7f@belmotek.net> <20210113143539.GA11059@highrise.localdomain> <20210113213126.GB11059@highrise.localdomain> Message-ID: Il giorno mer 13 gen 2021 alle ore 22:32 Tobias Boege ha scritto: > > It worked insofar as a Tag property/variable was added to the global > _GridView_Cell class -- otherwise you would have gotten a runtime error > when accessing it. > > The problem is found in the gb.gui.base source code for GridView: > _GridView_Cell is not a permanent object that lives inside the GridView > and stores the data associated to a cell. It is only a temporary object > that is created on-the-fly as a proxy to make modifications to the > real internal data structures of the GridView. Whatever data you store > in a _GridView_Cell object is wasted. The class we want to change is > called _GridView_Data. That's the permanent data storage for a cell. > > The attached project now works. But it uses some more implementation > details of the GridView, which may change in a future Gambas and break > your code relying on them without warning. Use at your risk! > > Best, > Tobias > Yes Tobias, you're right, I expressed myself in a crude way not mastering the English language. Anyway I continue to trust in your suggestions and you try to keep giving them :-) ? Regards Gianluigi P.S. I see that Benoit wasted no time :-D -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Jan 14 03:03:13 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 14 Jan 2021 02:03:13 +0000 Subject: [Gambas-user] $HOME/.local/share/gambas3 Message-ID: what's with the 800+ mb of stuff in .local/share/gambas3 folder? seems a whole lot of data. 800mb , i've had complete linux distros less tan that. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 14 03:07:19 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 Jan 2021 03:07:19 +0100 Subject: [Gambas-user] $HOME/.local/share/gambas3 In-Reply-To: References: Message-ID: Le 14/01/2021 ? 03:03, Bruce Steers a ?crit?: > > what's with the 800+ mb of stuff in .local/share/gambas3 folder? > seems a whole lot of data.? 800mb , i've had complete linux distros less > tan that. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I have 400 Mb, most of it being the online wiki. -- Beno?t Minisini From bsteers4 at gmail.com Thu Jan 14 03:12:06 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 14 Jan 2021 02:12:06 +0000 Subject: [Gambas-user] $HOME/.local/share/gambas3 In-Reply-To: References: Message-ID: maybe i somehow got duplicate copies of it in there? no idea how. my guess would be an older version gambas didn't remove it? who knows, i only saw there was 800mb when i deleted it all for a re-install so can't see what it was. On Thu, 14 Jan 2021 at 02:08, Beno?t Minisini wrote: > Le 14/01/2021 ? 03:03, Bruce Steers a ?crit : > > > > what's with the 800+ mb of stuff in .local/share/gambas3 folder? > > seems a whole lot of data. 800mb , i've had complete linux distros less > > tan that. > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > I have 400 Mb, most of it being the online wiki. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Jan 14 03:56:14 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 14 Jan 2021 02:56:14 +0000 Subject: [Gambas-user] $HOME/.local/share/gambas3 In-Reply-To: References: Message-ID: 400mb for just a help manual still seems pretty darn big to me. I'm sure when i clicked "use offline documentation" it didn't download 400mb, my internet is pretty slow, i'd have noticed. Does it keep accumulating with time or something? On Thu, 14 Jan 2021 at 02:08, Beno?t Minisini wrote: > Le 14/01/2021 ? 03:03, Bruce Steers a ?crit : > > > > what's with the 800+ mb of stuff in .local/share/gambas3 folder? > > seems a whole lot of data. 800mb , i've had complete linux distros less > > tan that. > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > I have 400 Mb, most of it being the online wiki. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 14 04:02:06 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 Jan 2021 04:02:06 +0100 Subject: [Gambas-user] $HOME/.local/share/gambas3 In-Reply-To: References: Message-ID: <686caead-98a3-4991-5532-10a096789e4e@gmail.com> Le 14/01/2021 ? 03:56, Bruce Steers a ?crit?: > 400mb for just a help manual still seems pretty darn big to me. > I'm sure when i clicked "use offline documentation" it didn't download > 400mb, my internet is pretty slow, i'd have noticed. > Does it keep accumulating with time or something? > It's a compressed archive of the wiki that is downloaded. You get everything, in all languages. -- Beno?t Minisini From ocoquet at 3d-phenomen.fr Thu Jan 14 08:44:53 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 14 Jan 2021 08:44:53 +0100 Subject: [Gambas-user] Compiled version of class In-Reply-To: References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> Message-ID: <6d385f8b-4378-0554-0c09-84e56d7dbbc0@3d-phenomen.fr> Hi Bruce, there are several reasons why.. First: For users who just want to use the class as it is, it is easier to check a component in the interface than to fetch a class and copy/paste it. Second: For a program published as a binary packet, it is simpler to make a component update available than to propose the complete reinstall of the program. Thirdly: for the answer to users' questions, it is important to be sure of the version of the component they are using, apart from a copy/paste leaves the possibility to modify (voluntarily or accidentally) the class, which does not allow to be sure of the integrity of the code. Finally: The use of components is a good practice that I think is an integral part of the Gambas Basic "guide-line" as defined by Beno?t. Here is the why of the how :) Regards Olivier http://forum.3d-phenomen.fr/ Le 13/01/2021 ? 21:10, Bruce Steers a ?crit?: > why not just import the non compiled class source into your project? > > My script editor here https://gitlab.com/bsteers4/scripted > > I imported from gambas the class files for TerminalView class and > TextEditor and customised them to my own needs. > > Much better to have the class as an internal part of the program and > not an external file that may or may not be easy to install. > > BruceS > > On Wed, 13 Jan 2021 at 17:46, Olivier Coquet > wrote: > > Hi, i try to make a component and after read the doc, component is > working, but.... > > If I understand all, component is distribution dependent, if i > publish > it in deb format, Fedora can't install it ???? (for example) > > This is a constraint. > > Olivier Coquet > > Le 13/01/2021 ? 15:54, Linus via User a ?crit?: > > Hello, > > > > Yes it?s possible in Gambas, take a look a create a library or a > Component (better) of your project. > > > > After that you could load your new Library/Component in any > other project. > > > > You can look at a component I have posted in the Farm of Gambas > > > > Farm ==> Library ==> gb.sshclient1.1.5 > > > > Take a look at the Properties Panel ==> Information > > and if you try to Build the package by the IDE, you should see > all options I have set. > > > > This is just an example that could point you to a direction. > > > > > > Olivier Cruilles > > > > > >> Le 13 janv. 2021 ? 05:33, Olivier Coquet > > a ?crit : > >> > >> hi all, > >> > >> Is there a way to join/include ??? compiled version of a single > class in a project ? > >> > >> > >> regards > >> > >> Olivier > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Jan 14 09:47:09 2021 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 14 Jan 2021 09:47:09 +0100 Subject: [Gambas-user] Compiled version of class In-Reply-To: <6d385f8b-4378-0554-0c09-84e56d7dbbc0@3d-phenomen.fr> References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> <6d385f8b-4378-0554-0c09-84e56d7dbbc0@3d-phenomen.fr> Message-ID: Il giorno gio 14 gen 2021 alle ore 08:46 Olivier Coquet < ocoquet at 3d-phenomen.fr> ha scritto: > Hi Bruce, > > there are several reasons why.. > you could take a look here: https://www.gambas-it.org/wiki/index.php?title=Importare_ed_utilizzare_librerie_.gambas#Assegnare_una_libreria_ad_un_progetto_in_modo_dinamico . Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Jan 14 12:19:09 2021 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 14 Jan 2021 12:19:09 +0100 Subject: [Gambas-user] Compiled version of class In-Reply-To: References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> <6d385f8b-4378-0554-0c09-84e56d7dbbc0@3d-phenomen.fr> Message-ID: Il giorno gio 14 gen 2021 alle ore 09:47 Gianluigi ha scritto: > > > Il giorno gio 14 gen 2021 alle ore 08:46 Olivier Coquet < > ocoquet at 3d-phenomen.fr> ha scritto: > >> Hi Bruce, >> >> there are several reasons why.. >> > > you could take a look here: > > https://www.gambas-it.org/wiki/index.php?title=Importare_ed_utilizzare_librerie_.gambas#Assegnare_una_libreria_ad_un_progetto_in_modo_dinamico > . > > Of course, for it to work outside the Euro area, you need to change the library code, for example to add pound and dollar: ' Gambas module file Export ' Ritorna la somma dei numeri 'stringa' come una stringa formattata currency Public Function ReturnAddString(value As String[]) As String Dim sCurr As String Dim iCurr As Long For i As Integer = 0 To value.Max sCurr = ReturnStringInteger(value[i]) iCurr += CLong(sCurr) Next Return Format((iCurr / 100), "$,0.00") End Private Function ReturnStringInteger(value As String) As String ' Ritorna una stringa in forma di numero intero value = Trim(Replace(value, "?", "")) value = Trim(Replace(value, "$", "")) value = Trim(Replace(value, "?", "")) value = Replace(value, ".", "") value = Replace(value, " ", "") value = Replace(value, ",", "") Return value End '-------------------------------------------------------------- Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jan 14 13:31:08 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 14 Jan 2021 08:31:08 -0400 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: <2a1a91d5-0683-598f-8f51-fc96d5bcec08@3d-phenomen.fr> References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> <87c08478-88d4-751a-385e-58392ae7824a@gmail.com> <865a42b9-f078-eb55-82af-a52b30b8dda7@3d-phenomen.fr> <2a1a91d5-0683-598f-8f51-fc96d5bcec08@3d-phenomen.fr> Message-ID: please .. of course is gambas.. ironically is the less i used.. :-( El lun, 11 de ene. de 2021 a la(s) 03:34, Olivier Coquet (ocoquet at 3d-phenomen.fr) escribi?: > > Hi Piccoro, what is your preferred language ? > > > Olivier > > Le 11/01/2021 ? 06:09, PICCORO McKAY Lenz a ?crit : > > i'm intereting in that.. but could you made a git on gitlab or ? well > > is pretty only two files but you documented in francias.. so any help > > on? lnguaje is a barrier in new gambas features last days > > > > El s?b, 9 de ene. de 2021 a la(s) 04:26, Olivier Coquet > > (ocoquet at 3d-phenomen.fr) escribi?: > >> Here it is ! > >> > >> Comments are welcome > >> > >> All sources are commented. > >> > >> Olivier Coquet > >> > >> > >> Le 08/01/2021 ? 19:02, Beno?t Minisini a ?crit : > >>> Le 08/01/2021 ? 17:55, Olivier Coquet a ?crit : > >>>> Hi all, > >>>> > >>>> Is somebody interested by a pure Gambas HTTP server (just gb.net and > >>>> gb.crypt needed) ? > >>>> > >>>> I work on this since 4 week and it is completely working. > >>>> > >>>> It's a class you can import in a project and which run when instanced. > >>>> > >>>> The source package contain, class in a little project with sample > >>>> form which demonstrate some functionality. > >>>> > >>>> The server accept GET and POST requests, the functionality to > >>>> redirect *.gbp pages to main prog Function which can make some > >>>> modifications before send it to the browser. > >>>> > >>>> A web-docs folder contain some sample pages (form, create users, > >>>> pages with images, login, etc...) > >>>> > >>>> Server has a basic session carrying with cookies. > >>>> > >>>> With this, all programs can be "web communicant" in stand alone mode. > >>>> > >>>> Tell me if you want to download (version 0.0.15 is coming tomorrow on > >>>> my Gambas forum). > >>>> > >>>> Regards From France > >>>> > >>>> Olivier Coquet > >>>> > >>>> > >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >>> I'm interested (as soon as it is well implemented). Can you send your > >>> project here? > >>> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From mckaygerhard at gmail.com Thu Jan 14 13:44:33 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 14 Jan 2021 08:44:33 -0400 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> <20210111122628.M71950@455.co.il> Message-ID: El lun, 11 de ene. de 2021 a la(s) 08:52, Olivier Coquet (ocoquet at 3d-phenomen.fr) escribi?: > For your first question: 1. Will it be possible to run it: gb.web.gui ? > > No it's not, it's not the goal for instance (Maybe in the future.....:) ) snif snif > > The goal of this project is to be totally free of dependencies (except > gb.crypt and gb.net) to run on small machines (Raspberry for example) GREAT! > For instance, except in my head, there is no help files, i'm working on it. We must cut off that head .. umm better not .. I think that if we cut it off the work does not continue > The concept of this server is : use pages, requests, forms > parameters....inside a Gambas basic procedure or Function and not as an > inside page program like php make it. something like gb scripting.. but currently when a script fails.. all the code is show.. i really like that.. ! some time ago i tried to make a gambas web using only includes and scripts but it was hard in terms of security.. any little error reveals source code.. > > This morning, i've make my first integration of this class in program, > originally not made to communicate with web, after installation of > class, my program communicate without other things (but for instance it > do absolutely nothing :). > > I Hope, this made a correct answer to your questions. > > Olivier Coquet > > > Le 11/01/2021 ? 13:30, Mayost Sharon a ?crit : > > ---------- Original Message ----------- > > From: Olivier Coquet > > To: Gambas Mailing List > > Sent: Fri, 8 Jan 2021 17:55:41 +0100 > > Subject: [Gambas-user] HTTP Gambas server > > > >> Hi all, > >> > >> Is somebody interested by a pure Gambas HTTP server (just gb.net and > >> gb.crypt needed) ? > >> > >> ... > >> > >> With this, all programs can be "web communicant" in stand alone mode. > >> > >> Tell me if you want to download (version 0.0.15 is coming tomorrow on my > >> Gambas forum). > >> > >> Regards From France > >> > >> Olivier Coquet > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ------- End of Original Message ------- > > > > I tried the version that works well. > > > > I have a few questions: > > 1. Will it be possible to run it: gb.web.gui > > 2. Is there any documentation on the gbp file > > > > Thank you > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From ocoquet at 3d-phenomen.fr Thu Jan 14 13:58:19 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 14 Jan 2021 13:58:19 +0100 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> <20210111122628.M71950@455.co.il> Message-ID: <9b306f36-8de3-4d79-e9d7-c4ce2e2679e3@3d-phenomen.fr> Le 14/01/2021 ? 13:44, PICCORO McKAY Lenz a ?crit?: > El lun, 11 de ene. de 2021 a la(s) 08:52, Olivier Coquet > (ocoquet at 3d-phenomen.fr) escribi?: >> For your first question: 1. Will it be possible to run it: gb.web.gui ? >> >> No it's not, it's not the goal for instance (Maybe in the future.....:) ) > >snif snif > > Sorry :) >> The goal of this project is to be totally free of dependencies (except >> gb.crypt and gb.net) to run on small machines (Raspberry for example) > >GREAT! > >> For instance, except in my head, there is no help files, i'm working on it. > >We must cut off that head .. umm better not .. I think that if we cut > >it off the work does not continue > > Shure :) >> The concept of this server is : use pages, requests, forms >> parameters....inside a Gambas basic procedure or Function and not as an >> inside page program like php make it. > >something like gb scripting.. but currently when a script fails.. all > >the code is show.. > >i really like that.. ! > > >some time ago i tried to make a gambas web using only includes and > >scripts but it was hard in terms of security.. any little error > >reveals source code.. > In case of your Function crash, no code is sent to navigator. And to modify / Calculate / retrieve elements of page, you just need to treat arguments as strings vars with habitual Gambas Basic code, no need of other competencies. I'm working on a domotic program, in five minutes (httpserver is now a component) my program can be contacted via web, it can verify identity of person who is login in, and can give some information about his status. >> This morning, i've make my first integration of this class in program, >> originally not made to communicate with web, after installation of >> class, my program communicate without other things (but for instance it >> do absolutely nothing :). >> >> I Hope, this made a correct answer to your questions. >> >> Olivier Coquet >> >> >> Le 11/01/2021 ? 13:30, Mayost Sharon a ?crit : >>> ---------- Original Message ----------- >>> From: Olivier Coquet >>> To: Gambas Mailing List >>> Sent: Fri, 8 Jan 2021 17:55:41 +0100 >>> Subject: [Gambas-user] HTTP Gambas server >>> >>>> Hi all, >>>> >>>> Is somebody interested by a pure Gambas HTTP server (just gb.net and >>>> gb.crypt needed) ? >>>> >>>> ... >>>> >>>> With this, all programs can be "web communicant" in stand alone mode. >>>> >>>> Tell me if you want to download (version 0.0.15 is coming tomorrow on my >>>> Gambas forum). >>>> >>>> Regards From France >>>> >>>> Olivier Coquet >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> ------- End of Original Message ------- >>> >>> I tried the version that works well. >>> >>> I have a few questions: >>> 1. Will it be possible to run it: gb.web.gui >>> 2. Is there any documentation on the gbp file >>> >>> Thank you >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bsteers4 at gmail.com Thu Jan 14 14:00:04 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 14 Jan 2021 13:00:04 +0000 Subject: [Gambas-user] Compiled version of class In-Reply-To: <6d385f8b-4378-0554-0c09-84e56d7dbbc0@3d-phenomen.fr> References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> <6d385f8b-4378-0554-0c09-84e56d7dbbc0@3d-phenomen.fr> Message-ID: Good luck. On Thu, 14 Jan 2021 at 07:46, Olivier Coquet wrote: > Hi Bruce, > > there are several reasons why.. > > First: For users who just want to use the class as it is, it is easier to > check a component in the interface than to fetch a class and copy/paste it. > > Second: For a program published as a binary packet, it is simpler to make > a component update available than to propose the complete reinstall of the > program. > > Thirdly: for the answer to users' questions, it is important to be sure of > the version of the component they are using, apart from a copy/paste leaves > the possibility to modify (voluntarily or accidentally) the class, which > does not allow to be sure of the integrity of the code. > > Finally: The use of components is a good practice that I think is an > integral part of the Gambas Basic "guide-line" as defined by Beno?t. > > Here is the why of the how :) > > Regards > > Olivier > http://forum.3d-phenomen.fr/ > Le 13/01/2021 ? 21:10, Bruce Steers a ?crit : > > why not just import the non compiled class source into your project? > > My script editor here https://gitlab.com/bsteers4/scripted > I imported from gambas the class files for TerminalView class and > TextEditor and customised them to my own needs. > > Much better to have the class as an internal part of the program and not > an external file that may or may not be easy to install. > > BruceS > > On Wed, 13 Jan 2021 at 17:46, Olivier Coquet > wrote: > >> Hi, i try to make a component and after read the doc, component is >> working, but.... >> >> If I understand all, component is distribution dependent, if i publish >> it in deb format, Fedora can't install it ???? (for example) >> >> This is a constraint. >> >> Olivier Coquet >> >> Le 13/01/2021 ? 15:54, Linus via User a ?crit : >> > Hello, >> > >> > Yes it?s possible in Gambas, take a look a create a library or a >> Component (better) of your project. >> > >> > After that you could load your new Library/Component in any other >> project. >> > >> > You can look at a component I have posted in the Farm of Gambas >> > >> > Farm ==> Library ==> gb.sshclient1.1.5 >> > >> > Take a look at the Properties Panel ==> Information >> > and if you try to Build the package by the IDE, you should see all >> options I have set. >> > >> > This is just an example that could point you to a direction. >> > >> > >> > Olivier Cruilles >> > >> > >> >> Le 13 janv. 2021 ? 05:33, Olivier Coquet a >> ?crit : >> >> >> >> hi all, >> >> >> >> Is there a way to join/include ??? compiled version of a single class >> in a project ? >> >> >> >> >> >> regards >> >> >> >> Olivier >> >> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jan 14 14:08:43 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 14 Jan 2021 09:08:43 -0400 Subject: [Gambas-user] New appimage version In-Reply-To: References: Message-ID: El lun, 11 de ene. de 2021 a la(s) 15:00, Fabien Bodard (gambas.fr at gmail.com) escribi?: > > I think after a quick look you must forget to have something working > on Alpine (despite the fact I really like the work done n this distrib). i'm working on packaging.. but some artifacts are abstent or not well detected, i try to generate the requited artifacts automatically to not need to edit on each change of gambas.. > The appimage conceptors are currently looking after a way to > turnaround to linker problem... You have to wait .... ok I am aware of it > > Le lun. 11 janv. 2021 ? 06:30, PICCORO McKAY Lenz > a ?crit : > > > > FAbian.. i'm interesting on that will be included in gambas ide.. > > > > the main reason is for run in those linux like alpine by example.. so > > ther's one problem.. what about if some dependences like openall (is > > not include in alpine for some reason..= on the appimage we can > > include the openall needs but .. will be against glibc so..(alpine use > > muslc) later i think about it and check that if i build an app image > > the embedded things will be linked against glibc so? this wil not work > > so in those linux. so neither freebsd etc etc and so and so? > > > > El dom, 10 de ene. de 2021 a la(s) 10:10, Fabien Bodard > > (gambas.fr at gmail.com) escribi?: > > > > > > Le dim. 10 janv. 2021 ? 13:56, Gianluigi a ?crit : > > > > > > > > > > > > > > > > Il giorno dom 10 gen 2021 alle ore 12:42 Fabien Bodard ha scritto: > > > >> > > > >> https://drive.google.com/file/d/1SzKbioVSZZGdEP_60jSAA7bZ15lRc5Rv/view?usp=sharing > > > >> > > > >> New One > > > >> > > > > > > > > > > > > Now the sentence is ok, but the x in the bar still looks like a whale with the spray jet > > > haaa ok lol ... It's certainly an icon problem in the humanity theme > > > ... well this icon is certainly in conflict with local theme. > > > > > > > > Regards > > > > Gianluigi > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > > > > > > -- > > > Fabien Bodard > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > -- > Fabien Bodard > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bagonergi at gmail.com Thu Jan 14 16:23:37 2021 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 14 Jan 2021 16:23:37 +0100 Subject: [Gambas-user] Compiled version of class In-Reply-To: References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> <6d385f8b-4378-0554-0c09-84e56d7dbbc0@3d-phenomen.fr> Message-ID: Il giorno gio 14 gen 2021 alle ore 14:01 Bruce Steers ha scritto: > Good luck. > Olivier & Bruce, I think some clarifications should be made: Importing the library into the project is superfluous as it is already saved in .local. If you update the library you need to change from the second version number eg. 0.2.0 For example in our project (Italian wiki) we can add the subtraction to LibSommaStringhe, perhaps changing the formation of the first number with a number sufficient to support it. To import the new library just update the search code: sLocalPath &= "/LibSommaStringhe:0.2.gambas" Change the code of the btnTotal button by adding something like this: If RadioButton1.Value Then sMetod = hMat.Symbols[0] Else sMetod = hMat.Symbols[1] Endif well yes also the form :-) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From pflora at libero.it Thu Jan 14 19:11:48 2021 From: pflora at libero.it (pflora at libero.it) Date: Thu, 14 Jan 2021 21:11:48 +0300 Subject: [Gambas-user] =?utf-8?q?Web_client?= Message-ID: <1610647908.813625460@f29.my.com> I tested a WebKit qt4 web client but It seems only working on standard port. It browses internet correctly but I need to show a page in localhost on port 1880. The page comes from node red web server. Is It possible to do this ? Thanks. -- Inviato da Libero Mail per Android -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jan 14 22:41:49 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 14 Jan 2021 17:41:49 -0400 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: <9b306f36-8de3-4d79-e9d7-c4ce2e2679e3@3d-phenomen.fr> References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> <20210111122628.M71950@455.co.il> <9b306f36-8de3-4d79-e9d7-c4ce2e2679e3@3d-phenomen.fr> Message-ID: El jue, 14 de ene. de 2021 a la(s) 08:59, Olivier Coquet (ocoquet at 3d-phenomen.fr) escribi?: > I'm working on a domotic program, in five minutes (httpserver is now a component) my program can be contacted via web, it can verify identity of person who is login in, and can give some information about his status. errr ther's no a domotic project made in gambas? some one remenber something related? as i remenber! it has an embebed server http server! are yo one of mantainers ? > > > >> This morning, i've make my first integration of this class in program, > >> originally not made to communicate with web, after installation of > >> class, my program communicate without other things (but for instance it > >> do absolutely nothing :). > >> > >> I Hope, this made a correct answer to your questions. > >> > >> Olivier Coquet > >> > >> > >> Le 11/01/2021 ? 13:30, Mayost Sharon a ?crit : > >>> ---------- Original Message ----------- > >>> From: Olivier Coquet > >>> To: Gambas Mailing List > >>> Sent: Fri, 8 Jan 2021 17:55:41 +0100 > >>> Subject: [Gambas-user] HTTP Gambas server > >>> > >>>> Hi all, > >>>> > >>>> Is somebody interested by a pure Gambas HTTP server (just gb.net and > >>>> gb.crypt needed) ? > >>>> > >>>> ... > >>>> > >>>> With this, all programs can be "web communicant" in stand alone mode. > >>>> > >>>> Tell me if you want to download (version 0.0.15 is coming tomorrow on my > >>>> Gambas forum). > >>>> > >>>> Regards From France > >>>> > >>>> Olivier Coquet > >>>> > >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >>> ------- End of Original Message ------- > >>> > >>> I tried the version that works well. > >>> > >>> I have a few questions: > >>> 1. Will it be possible to run it: gb.web.gui > >>> 2. Is there any documentation on the gbp file > >>> > >>> Thank you > >>> > >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From t.lee.davidson at gmail.com Thu Jan 14 23:30:28 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 14 Jan 2021 17:30:28 -0500 Subject: [Gambas-user] Web client In-Reply-To: <1610647908.813625460@f29.my.com> References: <1610647908.813625460@f29.my.com> Message-ID: <22149abc-6d1f-bd92-1442-00e7a2792ad2@gmail.com> On 1/14/21 1:11 PM, pinglix via User wrote: > I tested a WebKit qt4 web client but It seems only working on standard port. > > It browses internet correctly but I need to show a page in localhost on port 1880. > > The page comes from node red web server. > > Is It possible to do this ? > > Thanks. > > -- > Inviato da Libero Mail per Android > I don't find any documentation for a web client in gb.qt4.webkit. What am I missing? -- Lee From jose.rodriguez at cenpalab.cu Fri Jan 15 01:00:31 2021 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Fri, 15 Jan 2021 00:00:31 +0000 Subject: [Gambas-user] gb.web.gui tutorials or info Message-ID: <1e25abe3c757e2b8fd27dccc6b2b2876@cenpalab.cu> Hi, are there any tutorials or some more info on gb.web.gui besides the class help? I am having difficulty coming to grips with designing the application gui with the different components. I must admit I have very little experience with web programming in Gambas, or even java, which is what I have programming in for a few years. I used to do quite a bit of Gambas programming in Gambas 1 and 2 in my VectorLinux years, and have been porting some of that to Gambas 3 lately, but have not actually started any new projects in Gambas 3 till this gb.web.gui test I have going now. I am amazed and happy that Gambas has persisted and grown so much over the years. Regards, Joe1962 From g4mba5 at gmail.com Fri Jan 15 01:50:34 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Jan 2021 01:50:34 +0100 Subject: [Gambas-user] gb.web.gui tutorials or info In-Reply-To: <1e25abe3c757e2b8fd27dccc6b2b2876@cenpalab.cu> References: <1e25abe3c757e2b8fd27dccc6b2b2876@cenpalab.cu> Message-ID: <9e36b043-ed1c-390d-40df-e133fae5c2da@gmail.com> Le 15/01/2021 ? 01:00, jose.rodriguez at cenpalab.cu a ?crit : > Hi, are there any tutorials or some more info on gb.web.gui besides > the class help? I am having difficulty coming to grips with designing > the application gui with the different components. I plan to rewrite the bugtracker entirely with gb.web.gui, so that we have a real project that can be used as a tutorial. But this is not done yet. So I can just tell you that you must first understand that a program made with gb.web.gui is a CGI script, and so you must know how a CGI script works. -- Beno?t Minisini From jose.rodriguez at cenpalab.cu Fri Jan 15 02:18:23 2021 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Fri, 15 Jan 2021 01:18:23 +0000 Subject: [Gambas-user] gb.web.gui tutorials or info In-Reply-To: <9e36b043-ed1c-390d-40df-e133fae5c2da@gmail.com> References: <9e36b043-ed1c-390d-40df-e133fae5c2da@gmail.com> <1e25abe3c757e2b8fd27dccc6b2b2876@cenpalab.cu> Message-ID: January 14, 2021 7:51 PM, "Beno?t Minisini" wrote: > Le 15/01/2021 ? 01:00, jose.rodriguez at cenpalab.cu a ?crit : > >> Hi, are there any tutorials or some more info on gb.web.gui besides >> the class help? I am having difficulty coming to grips with designing >> the application gui with the different components. > > I plan to rewrite the bugtracker entirely with gb.web.gui, so that we > have a real project that can be used as a tutorial. > That will be great! > > So I can just tell you that you must first understand that a program > made with gb.web.gui is a CGI script, and so you must know how a CGI > script works. > I know, at least in general terms, how CGI scripts work, but as I understand it, gb.web.gui hides the complexities of outputting to the webclient so you can sort of use a design at least similar to a desktop gui, is that right? Anyway, my first problem was while designing the gui interface, I could not get the components to do what I thought they would do, coming from a desktop gui metaphor. I started from the Hello World project created from New Project and was impressed by it's simplicity and capability, then started changing things around, but could never get it to look like I thought it should. Maybe my expectations are all wrong? Regards, Joe1962 From ocoquet at 3d-phenomen.fr Fri Jan 15 09:20:59 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Fri, 15 Jan 2021 09:20:59 +0100 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> <20210111122628.M71950@455.co.il> <9b306f36-8de3-4d79-e9d7-c4ce2e2679e3@3d-phenomen.fr> Message-ID: Hi, No i'm not the maintainer, i think you're speaking about Domoticz which is a domotic platform. Here, my project is a little less complex, goal is to action some object (DIO-Chaccon) from linux station (Raspberry) or web with minimal security and control. For instance, gui is ok Timer and scenarii are ok Web connection is a work in progress. Electronic interface is a work in progress. You can see evolution of project on my Gambas Forum (http://forum.3d-phenomen.fr/) but in French language. Regards Olivier Coquet Le 14/01/2021 ? 22:41, PICCORO McKAY Lenz a ?crit?: > El jue, 14 de ene. de 2021 a la(s) 08:59, Olivier Coquet > (ocoquet at 3d-phenomen.fr) escribi?: >> I'm working on a domotic program, in five minutes (httpserver is now a component) my program can be contacted via web, it can verify identity of person who is login in, and can give some information about his status. > errr ther's no a domotic project made in gambas? some one remenber > something related? > > as i remenber! it has an embebed server http server! are yo one of mantainers ? > >> >>>> This morning, i've make my first integration of this class in program, >>>> originally not made to communicate with web, after installation of >>>> class, my program communicate without other things (but for instance it >>>> do absolutely nothing :). >>>> >>>> I Hope, this made a correct answer to your questions. >>>> >>>> Olivier Coquet >>>> >>>> >>>> Le 11/01/2021 ? 13:30, Mayost Sharon a ?crit : >>>>> ---------- Original Message ----------- >>>>> From: Olivier Coquet >>>>> To: Gambas Mailing List >>>>> Sent: Fri, 8 Jan 2021 17:55:41 +0100 >>>>> Subject: [Gambas-user] HTTP Gambas server >>>>> >>>>>> Hi all, >>>>>> >>>>>> Is somebody interested by a pure Gambas HTTP server (just gb.net and >>>>>> gb.crypt needed) ? >>>>>> >>>>>> ... >>>>>> >>>>>> With this, all programs can be "web communicant" in stand alone mode. >>>>>> >>>>>> Tell me if you want to download (version 0.0.15 is coming tomorrow on my >>>>>> Gambas forum). >>>>>> >>>>>> Regards From France >>>>>> >>>>>> Olivier Coquet >>>>>> >>>>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>>> ------- End of Original Message ------- >>>>> >>>>> I tried the version that works well. >>>>> >>>>> I have a few questions: >>>>> 1. Will it be possible to run it: gb.web.gui >>>>> 2. Is there any documentation on the gbp file >>>>> >>>>> Thank you >>>>> >>>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From kicking177 at gmail.com Fri Jan 15 10:25:16 2021 From: kicking177 at gmail.com (KKing) Date: Fri, 15 Jan 2021 09:25:16 +0000 Subject: [Gambas-user] Gambas Update & Compiler Utility (Bruce Steers) Message-ID: Hi BruceS That all sounds great, only one suggestion/query is whether my pet request can/could be incorporated somehow..... That is the ability to have (potentially more than one) dev version kept separate to a distro's repo deployed version of Gambas. I'm currently having to run multiple KVM's to support different versions of Gambas. K. From genbraga1 at gmail.com Fri Jan 15 12:34:38 2021 From: genbraga1 at gmail.com (gen braga) Date: Fri, 15 Jan 2021 08:34:38 -0300 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: References: <641f8aeb-8ff2-d5b1-8f70-5557ea2844c6@3d-phenomen.fr> <20210111122628.M71950@455.co.il> <9b306f36-8de3-4d79-e9d7-c4ce2e2679e3@3d-phenomen.fr> Message-ID: Perhaps the DomotiGa project? https://github.com/DomotiGa/DomotiGa - Gen. Em qui, 14 de jan de 2021 18:43, PICCORO McKAY Lenz escreveu: > errr ther's no a domotic project made in gambas? some one remenber > something related? > > as i remenber! it has an embebed server http server! are yo one of > mantainers ? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Fri Jan 15 13:13:06 2021 From: ocoquet at 3d-phenomen.fr (ocoquet) Date: Fri, 15 Jan 2021 13:13:06 +0100 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: Message-ID: <202101151213.10FCDBlx008002@sd-89727.dedibox.fr> As i can see, the web site seams to be down.Olivier coquetEnvoy? depuis mon appareil Galaxy -------- Message d'origine --------De : gen braga Date : 15/01/2021 12:35 (GMT+01:00) ? : Gambas Mailing List Objet : Re: [Gambas-user] HTTP Gambas server Perhaps the DomotiGa project?https://github.com/DomotiGa/DomotiGa-Gen.Em qui, 14 de jan de 2021 18:43, PICCORO McKAY Lenz escreveu:errr ther's no a domotic project made in gambas? some one remenber something related? as i remenber! it has an embebed server http server!? are yo one of mantainers ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Fri Jan 15 14:34:03 2021 From: genbraga1 at gmail.com (gen braga) Date: Fri, 15 Jan 2021 10:34:03 -0300 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: <202101151213.10FCDBlx008002@sd-89727.dedibox.fr> References: <202101151213.10FCDBlx008002@sd-89727.dedibox.fr> Message-ID: Yes, i think it's defunct now. But the gambas code is available and it's full of good stuff, like MQTT support. - Gen. Em sex, 15 de jan de 2021 09:14, ocoquet escreveu: > As i can see, the web site seams to be down. > > Olivier coquet > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jan 15 14:39:57 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 15 Jan 2021 09:39:57 -0400 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: References: <202101151213.10FCDBlx008002@sd-89727.dedibox.fr> Message-ID: that is the domotica project .. seems defunct but project is full of stuff that needs work! if yo search here you will find a http server.. as i remenber El vie, 15 de ene. de 2021 a la(s) 09:35, gen braga (genbraga1 at gmail.com) escribi?: > > Yes, i think it's defunct now. > > But the gambas code is available and it's full of good stuff, like MQTT support. > > - > Gen. > > > Em sex, 15 de jan de 2021 09:14, ocoquet escreveu: >> >> As i can see, the web site seams to be down. >> >> Olivier coquet > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From mckaygerhard at gmail.com Fri Jan 15 14:42:25 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 15 Jan 2021 09:42:25 -0400 Subject: [Gambas-user] gb.web.gui tutorials or info In-Reply-To: <9e36b043-ed1c-390d-40df-e133fae5c2da@gmail.com> References: <1e25abe3c757e2b8fd27dccc6b2b2876@cenpalab.cu> <9e36b043-ed1c-390d-40df-e133fae5c2da@gmail.com> Message-ID: but there's a problem.. still there not web tutorial for beginners.. so a web gui tutorial will be coplex and only understandable for more advanced users.. myself have almost two years without any coding in gambas.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com El jue, 14 de ene. de 2021 a la(s) 20:51, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > > Le 15/01/2021 ? 01:00, jose.rodriguez at cenpalab.cu a ?crit : > > Hi, are there any tutorials or some more info on gb.web.gui besides > > the class help? I am having difficulty coming to grips with designing > > the application gui with the different components. > > I plan to rewrite the bugtracker entirely with gb.web.gui, so that we > have a real project that can be used as a tutorial. > > But this is not done yet. > > So I can just tell you that you must first understand that a program > made with gb.web.gui is a CGI script, and so you must know how a CGI > script works. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bsteers4 at gmail.com Fri Jan 15 15:30:08 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 15 Jan 2021 14:30:08 +0000 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: References: <202101151213.10FCDBlx008002@sd-89727.dedibox.fr> Message-ID: So what is gb.httpd ? Is that this thing you have made or does gambas already have a http server? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Jan 15 15:37:04 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 15 Jan 2021 14:37:04 +0000 Subject: [Gambas-user] Gambas Update & Compiler Utility (Bruce Steers) In-Reply-To: References: Message-ID: The script version you can press S to set a different source folder and the gambas version has a button to select different folders and even has a "recents" ment that saves previous folders for quick access. So not quite sure what you mean? Or when you say "that sounds good" are you commenting without actually trying the program? BruceS On Fri, 15 Jan 2021 at 09:26, KKing wrote: > Hi BruceS > That all sounds great, only one suggestion/query is whether my pet > request can/could be incorporated somehow..... > That is the ability to have (potentially more than one) dev version kept > separate to a distro's repo deployed version of Gambas. > I'm currently having to run multiple KVM's to support different versions > of Gambas. > K. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Fri Jan 15 15:40:58 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Fri, 15 Jan 2021 15:40:58 +0100 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: References: <202101151213.10FCDBlx008002@sd-89727.dedibox.fr> Message-ID: Hi Bruce, i've seen that, and don't know what it is, in Gambas wiki, it's seams to be a mini integrated http server, but nothing more understandable.... Perhaps, Benoit can say something about it. Le 15/01/2021 ? 15:30, Bruce Steers a ?crit?: > So what is gb.httpd ? > Is that this thing you have made or does gambas already have a http > server? > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Jan 15 15:43:37 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 15 Jan 2021 14:43:37 +0000 Subject: [Gambas-user] Gambas Update & Compiler Utility (Bruce Steers) In-Reply-To: References: Message-ID: Sorry , my misunderstanding (i missed the word "query" and just saw "suggestion" , thought it was a statement not a query lol. It does all you ask as i myself also have a few different folders and branches :) It's being re-written at present from the base up but this time i am starting it as a less complicated basic/user downloader/compiler/nstaller. Not handling different branches to begin with just master and stable , then adding the alternative branch methods later. On Fri, 15 Jan 2021 at 14:37, Bruce Steers wrote: > The script version you can press S to set a different source folder and > the gambas version has a button to select different folders and even has a > "recents" ment that saves previous folders for quick access. > > So not quite sure what you mean? > Or when you say "that sounds good" are you commenting without actually > trying the program? > > BruceS > > > On Fri, 15 Jan 2021 at 09:26, KKing wrote: > >> Hi BruceS >> That all sounds great, only one suggestion/query is whether my pet >> request can/could be incorporated somehow..... >> That is the ability to have (potentially more than one) dev version kept >> separate to a distro's repo deployed version of Gambas. >> I'm currently having to run multiple KVM's to support different versions >> of Gambas. >> K. >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Jan 15 15:49:59 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 15 Jan 2021 14:49:59 +0000 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: References: <202101151213.10FCDBlx008002@sd-89727.dedibox.fr> Message-ID: I could not find any info at all on the wiki for gb.httpd . That's why i wondered if it was your thing been added already but no docs yet? BruceS On Fri, 15 Jan 2021 at 14:42, Olivier Coquet wrote: > Hi Bruce, i've seen that, and don't know what it is, in Gambas wiki, it's > seams to be a mini integrated http server, but nothing more > understandable.... > > Perhaps, Benoit can say something about it. > Le 15/01/2021 ? 15:30, Bruce Steers a ?crit : > > So what is gb.httpd ? > Is that this thing you have made or does gambas already have a http server? > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Jan 15 15:58:16 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 15 Jan 2021 14:58:16 +0000 Subject: [Gambas-user] Gambas Update & Compiler Utility (Bruce Steers) In-Reply-To: References: Message-ID: Or if you are talking about having more than one version of gambas installed on the same system like having the repo version installed AND having the development branch then i do not think this is possible and will cause conflicts. The app is being made to check if you have repo installed gambas and remove it before compiled version install as it causes errors if both are installed. I have made multiple drive partitions with different Linus's/Gambas's on them for testing as much faster than VMs. BruceS On Fri, 15 Jan 2021 at 09:26, KKing wrote: > Hi BruceS > That all sounds great, only one suggestion/query is whether my pet > request can/could be incorporated somehow..... > That is the ability to have (potentially more than one) dev version kept > separate to a distro's repo deployed version of Gambas. > I'm currently having to run multiple KVM's to support different versions > of Gambas. > K. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Fri Jan 15 16:03:16 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Fri, 15 Jan 2021 16:03:16 +0100 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: References: <202101151213.10FCDBlx008002@sd-89727.dedibox.fr> Message-ID: <2568433e-1932-7525-61d6-f2a007849870@3d-phenomen.fr> If you want, i can upload here the last version of my class (as class or as component as you want) but you must look sample code to see how it work, because doc is in progress and it take some time to make-it. For instance, after integrated the component in my master Domotic project, it's seams to work perfectly. regards Olivier. Le 15/01/2021 ? 15:49, Bruce Steers a ?crit?: > I could not find any info at all on the wiki for gb.httpd . > That's why i wondered if it was your thing been added already but no > docs yet? > > BruceS > > On Fri, 15 Jan 2021 at 14:42, Olivier Coquet > wrote: > > Hi Bruce, i've seen that, and don't know what it is, in Gambas > wiki, it's seams to be a mini integrated http server, but nothing > more understandable.... > > Perhaps, Benoit can say something about it. > > Le 15/01/2021 ? 15:30, Bruce Steers a ?crit?: >> So what is gb.httpd ? >> Is that this thing you have made or does gambas already have a >> http server? >> BruceS >> >> >> ----[http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Jan 15 16:19:18 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 15 Jan 2021 15:19:18 +0000 Subject: [Gambas-user] HTTP Gambas server In-Reply-To: <2568433e-1932-7525-61d6-f2a007849870@3d-phenomen.fr> References: <202101151213.10FCDBlx008002@sd-89727.dedibox.fr> <2568433e-1932-7525-61d6-f2a007849870@3d-phenomen.fr> Message-ID: I am working on different types of things at the moment so do not really have use for it. but thank you anyway. BruceS On Fri, 15 Jan 2021 at 15:04, Olivier Coquet wrote: > If you want, i can upload here the last version of my class (as class or > as component as you want) but you must look sample code to see how it work, > because doc is in progress and it take some time to make-it. > > For instance, after integrated the component in my master Domotic project, > it's seams to work perfectly. > > > regards > > Olivier. > Le 15/01/2021 ? 15:49, Bruce Steers a ?crit : > > I could not find any info at all on the wiki for gb.httpd . > That's why i wondered if it was your thing been added already but no docs > yet? > > BruceS > > On Fri, 15 Jan 2021 at 14:42, Olivier Coquet > wrote: > >> Hi Bruce, i've seen that, and don't know what it is, in Gambas wiki, it's >> seams to be a mini integrated http server, but nothing more >> understandable.... >> >> Perhaps, Benoit can say something about it. >> Le 15/01/2021 ? 15:30, Bruce Steers a ?crit : >> >> So what is gb.httpd ? >> Is that this thing you have made or does gambas already have a http >> server? >> BruceS >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Fri Jan 15 16:25:13 2021 From: kicking177 at gmail.com (KKing) Date: Fri, 15 Jan 2021 15:25:13 +0000 Subject: [Gambas-user] Gambas Update & Compiler Utility (Bruce Steers) Message-ID: <28e24b9a-db76-3b40-7cf7-8029ee88e156@gmail.com> > Or if you are talking about having more than one version of gambas > installed on the same system like having the repo version installed AND > having the development branch then i do not think this is possible and > will > cause conflicts. Yes that is what I meant. :-( Appreciate that all things are different, but is really useful with some other codebases where I can have more than one version and be able to run as many as like as long as invoked from separate folders or with parameters.? I have occasions where I want to compare against repo based version of gambas and at least one development branch. Or that I'm right in middle of something (on one version) and need to check something quickly having to reboot or fire up VM(s) is all possible just takes more time than I would like. I took to having separate physical units as well but that introduces many more headaches (and wasteful). And no I haven't tried your utility yet.... as I said it sounds promising ... but I'm too busy to play at moment :-( K. From bsteers4 at gmail.com Fri Jan 15 18:52:18 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 15 Jan 2021 17:52:18 +0000 Subject: [Gambas-user] Gambas Update & Compiler Utility (Bruce Steers) In-Reply-To: <28e24b9a-db76-3b40-7cf7-8029ee88e156@gmail.com> References: <28e24b9a-db76-3b40-7cf7-8029ee88e156@gmail.com> Message-ID: Benoit , Is this possible with some versioning trick? I Imagine gambas is set up in such a way that with a few minor changes of a 3 to a 4 then all the files in /usr/bin become gbr4 and gbc4, etc and directories and everything auto adjust accordingly. Could it possibly be changed somewhere/somehow in our local files to 33 (for example) and then /usr/lib/gambas33, gbr33 and gambas33.gambas etc would be made and run independently of the gambas3 installation? Or is it much more complicated so not even really worth thinking about? thank you BruceS On Fri, 15 Jan 2021 at 15:26, KKing wrote: > > Or if you are talking about having more than one version of gambas > > installed on the same system like having the repo version installed AND > > having the development branch then i do not think this is possible and > > will > > cause conflicts. > > Yes that is what I meant. :-( > > And no I haven't tried your utility yet.... as I said it sounds > promising ... but I'm too busy to play at moment :-( > K. > It's very WIP at present. like i say currently being rebuilt, i initially made it handle the non simple stuff (branches other than master/stable) and then tried to make it handle a simple mode (just handle master or stable branch in non gambas developer simple download/update, compile and install mode). It got a bit complicated so now i'm starting it in simple mode and then will add the more complicated stuff as i go. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 15 19:30:51 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Jan 2021 19:30:51 +0100 Subject: [Gambas-user] Gambas Update & Compiler Utility (Bruce Steers) In-Reply-To: References: <28e24b9a-db76-3b40-7cf7-8029ee88e156@gmail.com> Message-ID: Le 15/01/2021 ? 18:52, Bruce Steers a ?crit?: > Benoit , Is this possible with some versioning trick? > I Imagine gambas is set up in such a way that with a few minor changes > of a 3 to a 4 then all the files in /usr/bin become gbr4 and gbc4, etc > and directories and everything auto adjust accordingly. > Could it possibly be changed somewhere/somehow in our local files to 33 > (for example) and then /usr/lib/gambas33, gbr33 and gambas33.gambas etc > would be made and run independently of the gambas3 installation? > Or is it much more complicated so not even really worth thinking about? > > thank you > BruceS > Gambas was not made so that you can installed two different minor versions on the same system. But you can define the GB_PATH environment variable. It must point to the interpreter you want to use. Then all other Gambas paths are deduced from that path. Moreover, a Gambas executable is run by the first gbr3 program found in the PATH environmental variable. Let's suppose you have an installation of Gambas 3.4 in /opt/gambas/3.4. You have to run your program that way: $ GB_PATH=/opt/gambas/3.4/bin/gbx3 PATH=/opt/gambas/3.4/bin:$PATH ./myprogram.gambas And it -should- work. I have never tested. -- Beno?t Minisini From rwe-sse at osnanet.de Fri Jan 15 21:44:57 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 15 Jan 2021 21:44:57 +0100 Subject: [Gambas-user] TextEdit control has disappeared Message-ID: In a dialog of one of my projects, there has been a TextEdit control to enable the user to type in RichText and save/reload it. I made a new install in a new Kubuntu 20.04 (from the team repos), and now the project refuses to load the class for the dialog because there is no TextEdit control anymore. :-/ How can I load the dialog's form to replace the control? Or better, how can I get that control back? Thanks for your help Rolf From g4mba5 at gmail.com Fri Jan 15 21:57:31 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Jan 2021 21:57:31 +0100 Subject: [Gambas-user] TextEdit control has disappeared In-Reply-To: References: Message-ID: <119a4eea-9946-4a09-6fd9-fa8060b05658@gmail.com> Le 15/01/2021 ? 21:44, Rolf-Werner Eilert a ?crit?: > In a dialog of one of my projects, there has been a TextEdit control to > enable the user to type in RichText and save/reload it. > > I made a new install in a new Kubuntu 20.04 (from the team repos), and > now the project refuses to load the class for the dialog because there > is no TextEdit control anymore. :-/ > > How can I load the dialog's form to replace the control? > > Or better, how can I get that control back? > > Thanks for your help > > Rolf > The TextEdit control is still present, in 'gb.qt4.ext' or 'gb.qt5.ext' components. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Fri Jan 15 23:11:28 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 15 Jan 2021 23:11:28 +0100 Subject: [Gambas-user] TextEdit control has disappeared In-Reply-To: <119a4eea-9946-4a09-6fd9-fa8060b05658@gmail.com> References: <119a4eea-9946-4a09-6fd9-fa8060b05658@gmail.com> Message-ID: Am 15.01.21 um 21:57 schrieb Beno?t Minisini: > Le 15/01/2021 ? 21:44, Rolf-Werner Eilert a ?crit?: >> In a dialog of one of my projects, there has been a TextEdit control >> to enable the user to type in RichText and save/reload it. >> >> I made a new install in a new Kubuntu 20.04 (from the team repos), >> and now the project refuses to load the class for the dialog because >> there is no TextEdit control anymore. :-/ >> >> How can I load the dialog's form to replace the control? >> >> Or better, how can I get that control back? >> >> Thanks for your help >> >> Rolf >> > > The TextEdit control is still present, in 'gb.qt4.ext' or 'gb.qt5.ext' > components. > > Regards, > Ah ok, the .ext components are missing. I remember we had this topic last week or the week before, should be able to find the thread. But I wonder why there are libraries left out anyway. When I say "apt install gambas" I would expect everything to be installed in one go. And if not, there should be an easy-to-find hint (from the Gambas IDE in the Components part of Options, or from the wiki) how the packages are named (such as "to install this component, use apt install gambas-packagename"). Regards Rolf From g4mba5 at gmail.com Fri Jan 15 23:22:32 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Jan 2021 23:22:32 +0100 Subject: [Gambas-user] TextEdit control has disappeared In-Reply-To: References: <119a4eea-9946-4a09-6fd9-fa8060b05658@gmail.com> Message-ID: <89814668-dc81-51a5-d283-b51fd4515151@gmail.com> Le 15/01/2021 ? 23:11, Rolf-Werner Eilert a ?crit?: > > Ah ok, the .ext components are missing. I remember we had this topic > last week or the week before, should be able to find the thread. > > But I wonder why there are libraries left out anyway. When I say "apt > install gambas" I would expect everything to be installed in one go. And > if not, there should be an easy-to-find hint (from the Gambas IDE in the > Components part of Options, or from the wiki) how the packages are named > (such as "to install this component, use apt install gambas-packagename"). > > Regards > > Rolf > Did you install from the Gambas ppa ? -- Beno?t Minisini From g4mba5 at gmail.com Fri Jan 15 23:23:30 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Jan 2021 23:23:30 +0100 Subject: [Gambas-user] Testing a new look for message boxes Message-ID: <29f933a5-db19-71c9-3484-9260e4cb6284@gmail.com> Hi, On master I have just committed a new look for message boxes. Tell me what you think. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Fri Jan 15 23:31:47 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 15 Jan 2021 23:31:47 +0100 Subject: [Gambas-user] TextEdit control has disappeared In-Reply-To: <89814668-dc81-51a5-d283-b51fd4515151@gmail.com> References: <119a4eea-9946-4a09-6fd9-fa8060b05658@gmail.com> <89814668-dc81-51a5-d283-b51fd4515151@gmail.com> Message-ID: <0a9c0c24-11dd-6f6a-7881-2b72a54b25a6@osnanet.de> Am 15.01.21 um 23:22 schrieb Beno?t Minisini: > Le 15/01/2021 ? 23:11, Rolf-Werner Eilert a ?crit?: >> >> Ah ok, the .ext components are missing. I remember we had this topic >> last week or the week before, should be able to find the thread. >> >> But I wonder why there are libraries left out anyway. When I say "apt >> install gambas" I would expect everything to be installed in one go. >> And if not, there should be an easy-to-find hint (from the Gambas IDE >> in the Components part of Options, or from the wiki) how the packages >> are named (such as "to install this component, use apt install >> gambas-packagename"). >> >> Regards >> >> Rolf >> > > Did you install from the Gambas ppa ? > As far as I remember, yes. It's something with "team", correct? From g4mba5 at gmail.com Fri Jan 15 23:55:28 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Jan 2021 23:55:28 +0100 Subject: [Gambas-user] TextEdit control has disappeared In-Reply-To: <0a9c0c24-11dd-6f6a-7881-2b72a54b25a6@osnanet.de> References: <119a4eea-9946-4a09-6fd9-fa8060b05658@gmail.com> <89814668-dc81-51a5-d283-b51fd4515151@gmail.com> <0a9c0c24-11dd-6f6a-7881-2b72a54b25a6@osnanet.de> Message-ID: <2972c596-a7b4-a183-15c0-0c2213d56f89@gmail.com> Le 15/01/2021 ? 23:31, Rolf-Werner Eilert a ?crit?: > > Am 15.01.21 um 23:22 schrieb Beno?t Minisini: >> Le 15/01/2021 ? 23:11, Rolf-Werner Eilert a ?crit?: >>> >>> Ah ok, the .ext components are missing. I remember we had this topic >>> last week or the week before, should be able to find the thread. >>> >>> But I wonder why there are libraries left out anyway. When I say "apt >>> install gambas" I would expect everything to be installed in one go. >>> And if not, there should be an easy-to-find hint (from the Gambas IDE >>> in the Components part of Options, or from the wiki) how the packages >>> are named (such as "to install this component, use apt install >>> gambas-packagename"). >>> >>> Regards >>> >>> Rolf >>> >> >> Did you install from the Gambas ppa ? >> > As far as I remember, yes. It's something with "team", correct? > If you use the stable ppa, I think you have to install the *.ext component explicitely, and if you use the daily ppa, the "gmabas3" meta package should install everything. -- Beno?t Minisini From rwe-sse at osnanet.de Sat Jan 16 00:08:25 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Sat, 16 Jan 2021 00:08:25 +0100 Subject: [Gambas-user] TextEdit control has disappeared In-Reply-To: <2972c596-a7b4-a183-15c0-0c2213d56f89@gmail.com> References: <119a4eea-9946-4a09-6fd9-fa8060b05658@gmail.com> <89814668-dc81-51a5-d283-b51fd4515151@gmail.com> <0a9c0c24-11dd-6f6a-7881-2b72a54b25a6@osnanet.de> <2972c596-a7b4-a183-15c0-0c2213d56f89@gmail.com> Message-ID: <6f265f01-c78a-0af9-6353-98d888f314e0@osnanet.de> Am 15.01.21 um 23:55 schrieb Beno?t Minisini: > Le 15/01/2021 ? 23:31, Rolf-Werner Eilert a ?crit?: >> >> Am 15.01.21 um 23:22 schrieb Beno?t Minisini: >>> Le 15/01/2021 ? 23:11, Rolf-Werner Eilert a ?crit?: >>>> >>>> Ah ok, the .ext components are missing. I remember we had this >>>> topic last week or the week before, should be able to find the thread. >>>> >>>> But I wonder why there are libraries left out anyway. When I say >>>> "apt install gambas" I would expect everything to be installed in >>>> one go. And if not, there should be an easy-to-find hint (from the >>>> Gambas IDE in the Components part of Options, or from the wiki) how >>>> the packages are named (such as "to install this component, use apt >>>> install gambas-packagename"). >>>> >>>> Regards >>>> >>>> Rolf >>>> >>> >>> Did you install from the Gambas ppa ? >>> >> As far as I remember, yes. It's something with "team", correct? >> > > If you use the stable ppa, I think you have to install the *.ext > component explicitely, and if you use the daily ppa, the "gmabas3" > meta package should install everything. Yes, that was it, I remember now. I just wonder why you made it this way. Why shouldn't stable install everything, like daily? From g4mba5 at gmail.com Sat Jan 16 00:15:42 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 16 Jan 2021 00:15:42 +0100 Subject: [Gambas-user] TextEdit control has disappeared In-Reply-To: <6f265f01-c78a-0af9-6353-98d888f314e0@osnanet.de> References: <119a4eea-9946-4a09-6fd9-fa8060b05658@gmail.com> <89814668-dc81-51a5-d283-b51fd4515151@gmail.com> <0a9c0c24-11dd-6f6a-7881-2b72a54b25a6@osnanet.de> <2972c596-a7b4-a183-15c0-0c2213d56f89@gmail.com> <6f265f01-c78a-0af9-6353-98d888f314e0@osnanet.de> Message-ID: <37933605-9ad2-1700-4a17-19f9f64e028a@gmail.com> Le 16/01/2021 ? 00:08, Rolf-Werner Eilert a ?crit?: > > > Yes, that was it, I remember now. > > I just wonder why you made it this way. Why shouldn't stable install > everything, like daily? > I will do that when the next version is released. -- Beno?t Minisini From rwe-sse at osnanet.de Sat Jan 16 00:50:48 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Sat, 16 Jan 2021 00:50:48 +0100 Subject: [Gambas-user] TextEdit control has disappeared In-Reply-To: <37933605-9ad2-1700-4a17-19f9f64e028a@gmail.com> References: <119a4eea-9946-4a09-6fd9-fa8060b05658@gmail.com> <89814668-dc81-51a5-d283-b51fd4515151@gmail.com> <0a9c0c24-11dd-6f6a-7881-2b72a54b25a6@osnanet.de> <2972c596-a7b4-a183-15c0-0c2213d56f89@gmail.com> <6f265f01-c78a-0af9-6353-98d888f314e0@osnanet.de> <37933605-9ad2-1700-4a17-19f9f64e028a@gmail.com> Message-ID: <14422fcb-fa6c-f91a-6463-a1f88a4472e6@osnanet.de> Am 16.01.21 um 00:15 schrieb Beno?t Minisini: > Le 16/01/2021 ? 00:08, Rolf-Werner Eilert a ?crit?: >> >> >> Yes, that was it, I remember now. >> >> I just wonder why you made it this way. Why shouldn't stable install >> everything, like daily? >> > > I will do that when the next version is released. > Ah, good to know, thank you! Rolf From bsteers4 at gmail.com Sat Jan 16 01:14:25 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 16 Jan 2021 00:14:25 +0000 Subject: [Gambas-user] su on non english computers Message-ID: Hi all. I've written a function in my gambas installer app than auto types sudo password when asked for. This is easy as sudo when requesting password has this message... [sudo] Password for user so i can make the app look for the last terminal line beginning with [sudo] But if i use su -c "command" the prompt is ... Password: My question is if using su -c on a non-english computer does su display a translated Password word or does it say Password: in all languages? Thanks in advance :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 16 01:33:59 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 16 Jan 2021 00:33:59 +0000 Subject: [Gambas-user] Testing a new look for message boxes In-Reply-To: <29f933a5-db19-71c9-3484-9260e4cb6284@gmail.com> References: <29f933a5-db19-71c9-3484-9260e4cb6284@gmail.com> Message-ID: Nice , but i do not like that i cannot move it. And not too sure about the colour buttons. I cannot read the cancel button text. BruceS On Fri, 15 Jan 2021 at 22:24, Beno?t Minisini wrote: > Hi, > > On master I have just committed a new look for message boxes. Tell me > what you think. > > 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: snap.png Type: image/png Size: 31057 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Sat Jan 16 02:09:35 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 16 Jan 2021 03:09:35 +0200 Subject: [Gambas-user] su on non english computers In-Reply-To: References: Message-ID: I don't quite follow what you are saying... you mean it automatically fills password?? Jussi On Sat, Jan 16, 2021 at 2:15 AM Bruce Steers wrote: > Hi all. > I've written a function in my gambas installer app than auto types sudo > password when asked for. > > This is easy as sudo when requesting password has this message... > [sudo] Password for user > so i can make the app look for the last terminal line beginning with [sudo] > > But if i use su -c "command" the prompt is ... > Password: > > My question is if using su -c on a non-english computer does su display a > translated Password word or does it say Password: in all languages? > > Thanks in advance :) > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 16 02:36:45 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 16 Jan 2021 01:36:45 +0000 Subject: [Gambas-user] su on non english computers In-Reply-To: References: Message-ID: Yes. You can enter password when ./reconf-all starts and go for a walk. when it gets to 'sudo make unstall' or 'su -c "make install"' the proccess does not fail because you are not there to type the password. it sends the command then reads the terminal text looking for. Line Begins "[sudo]" (for sudo) when the terminal line says that it types the previously entered password for you using TerminalView.Input() But I need to know if su -c command prompts with "Password:" in all languages. That's what I am saying. BruceS On Sat, 16 Jan 2021 at 01:10, Jussi Lahtinen wrote: > I don't quite follow what you are saying... you mean it automatically > fills password?? > > Jussi > > On Sat, Jan 16, 2021 at 2:15 AM Bruce Steers wrote: > >> Hi all. >> I've written a function in my gambas installer app than auto types sudo >> password when asked for. >> >> This is easy as sudo when requesting password has this message... >> [sudo] Password for user >> so i can make the app look for the last terminal line beginning with >> [sudo] >> >> But if i use su -c "command" the prompt is ... >> Password: >> >> My question is if using su -c on a non-english computer does su display a >> translated Password word or does it say Password: in all languages? >> >> Thanks in advance :) >> BruceS >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Jan 16 02:57:36 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 16 Jan 2021 03:57:36 +0200 Subject: [Gambas-user] su on non english computers In-Reply-To: References: Message-ID: Are you sure you can get the password that way? Sounds fishy to me. Anyway, look at sudo arguments --command-timeout and --validate. I think they may offer a more standard way to do this. Jussi On Sat, Jan 16, 2021 at 3:37 AM Bruce Steers wrote: > Yes. > You can enter password when ./reconf-all starts and go for a walk. > when it gets to 'sudo make unstall' or 'su -c "make install"' the proccess > does not fail because you are not there to type the password. it sends the > command then reads the terminal text looking for. > Line Begins "[sudo]" (for sudo) when the terminal line says that it types > the previously entered password for you using TerminalView.Input() > > But I need to know if su -c command prompts with "Password:" in all > languages. > That's what I am saying. > BruceS > > On Sat, 16 Jan 2021 at 01:10, Jussi Lahtinen > wrote: > >> I don't quite follow what you are saying... you mean it automatically >> fills password?? >> >> Jussi >> >> On Sat, Jan 16, 2021 at 2:15 AM Bruce Steers wrote: >> >>> Hi all. >>> I've written a function in my gambas installer app than auto types sudo >>> password when asked for. >>> >>> This is easy as sudo when requesting password has this message... >>> [sudo] Password for user >>> so i can make the app look for the last terminal line beginning with >>> [sudo] >>> >>> But if i use su -c "command" the prompt is ... >>> Password: >>> >>> My question is if using su -c on a non-english computer does su display >>> a translated Password word or does it say Password: in all languages? >>> >>> Thanks in advance :) >>> BruceS >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 16 05:04:39 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 16 Jan 2021 04:04:39 +0000 Subject: [Gambas-user] su on non english computers In-Reply-To: References: Message-ID: Yes i am sure , It works , thanks. jeesh I'd thank you for all you other words but i don't want them. for starters my question is about su not sudo. could you at least tell me if you type in a terminal.. su -c "echo 'i like to be a smart arse'" what does su ask ?' Does it say Password: In English or is it written in your language? that was my question. I thought it was a simple question. Anyone else? BruceS On Sat, 16 Jan 2021 at 01:58, Jussi Lahtinen wrote: > Are you sure you can get the password that way? Sounds fishy to me. > Anyway, look at sudo arguments --command-timeout and --validate. I think > they may offer a more standard way to do this. > nope. ;) -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Jan 16 05:42:21 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 16 Jan 2021 05:42:21 +0100 Subject: [Gambas-user] Testing a new look for message boxes In-Reply-To: References: <29f933a5-db19-71c9-3484-9260e4cb6284@gmail.com> Message-ID: <18b81991-7890-39cc-9df2-7de785b66a22@deganius.de> Am 16.01.21 um 01:33 schrieb Bruce Steers: > Nice , but i do not like that i cannot move it. That's a no-go. I have situations every day where i have to keep up a message until i phoned with someone. Therefor i must be able to move it to the side to reach other windows. > And not too sure about the colour buttons. I cannot read the cancel > button text. Just saw your screenshot. I think messages should stick to a standard and would hate it if every programming language brought its own design for it. The only thing i don't like with the current ones is that the text cannot be copied. The colors give additional meaning that does not necessarily correlate with the content, which can lead to confusion, especially since one must also consider that there is color blindness. I mean if a programmer then absolutely thinks he has to rely on the colors ... Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Sat Jan 16 06:45:11 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 16 Jan 2021 05:45:11 +0000 Subject: [Gambas-user] Testing a new look for message boxes In-Reply-To: <18b81991-7890-39cc-9df2-7de785b66a22@deganius.de> References: <29f933a5-db19-71c9-3484-9260e4cb6284@gmail.com> <18b81991-7890-39cc-9df2-7de785b66a22@deganius.de> Message-ID: The titlebar is back and is now movable again :) phew :) and the colours are much nicer now , much better lighter, not so deep. Looks great Ben :) And Christof , did you see there is now right click menu "Copy Text" with Ctrl-C shortcut? :) BruceS On Sat, 16 Jan 2021 at 04:43, Christof Thalhofer wrote: > Am 16.01.21 um 01:33 schrieb Bruce Steers: > > > Nice , but i do not like that i cannot move it. > > That's a no-go. I have situations every day where i have to keep up a > message until i phoned with someone. Therefor i must be able to move it > to the side to reach other windows. > > > And not too sure about the colour buttons. I cannot read the cancel > > button text. > > Just saw your screenshot. I think messages should stick to a standard > and would hate it if every programming language brought its own design > for it. The only thing i don't like with the current ones is that the > text cannot be copied. > > The colors give additional meaning that does not necessarily correlate > with the content, which can lead to confusion, especially since one must > also consider that there is color blindness. I mean if a programmer then > absolutely thinks he has to rely on the colors ... > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Jan 16 07:36:00 2021 From: adamnt42 at gmail.com (Bruce) Date: Sat, 16 Jan 2021 17:06:00 +1030 Subject: [Gambas-user] su on non english computers In-Reply-To: References: Message-ID: <34735987-bce2-0f49-6e2a-bbecbd678692@gmail.com> On 16/1/21 2:34 pm, Bruce Steers wrote: > Yes i am sure , It works , thanks. jeesh > I'd thank you for all you other words but i don't want them. for starters > my question is about su not sudo. > > could you at least tell me if you type in a terminal.. > su -c "echo 'i like to be a smart arse'" > > what does su ask ?' > Does it say > Password: > In English or is it written in your language? > > that was my question. > I thought it was a simple question. > > Anyone else? > > BruceS > > > On Sat, 16 Jan 2021 at 01:58, Jussi Lahtinen > wrote: > >> Are you sure you can get the password that way? Sounds fishy to me. >> Anyway, look at sudo arguments --command-timeout and --validate. I think >> they may offer a more standard way to do this. >> > > nope. ;) > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > The "Password:" prompt comes from su itself and is not a level 3 implemented or detectable thing. It's like the true virtual terminal login "Password:" prompt, so I presume it is translated according to the system locale. su is a little harder to work with as it is running itself at a higher than "user" level. If you want the same "power" (cough, ahem) as sudo then gksu (or the less better new thing, I cant remember its name) or kdesu. Both from memory give you program level detection and the ability to complete. Also from memory su will only accept a password from the keyboard, you (or more correctly I) cannot auto suplly the password. b From adamnt42 at gmail.com Sat Jan 16 11:53:00 2021 From: adamnt42 at gmail.com (Bruce) Date: Sat, 16 Jan 2021 21:23:00 +1030 Subject: [Gambas-user] Compiled version of class In-Reply-To: <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> Message-ID: <08ea6c03-2be8-208e-0da8-b14225e184c5@gmail.com> On 14/1/21 4:14 am, Olivier Coquet wrote: > Hi, i try to make a component and after read the doc, component is > working, but.... > > If I understand all, component is distribution dependent, if i publish > it in deb format, Fedora can't install it ???? (for example) > > This is a constraint. > > Olivier Coquet Getting back to the original post, let's get rid of some misinformation floating around. 1. A component is almost like a shared library i.e. like a "libsquiz.so.1.0.67" so it has to be installed on the system where the client application is installled. It's not a shared library because it is not directly executable code - it's in the Gambas precompiled thingo-code format (like java). So it lives in special directories known to the Gambas executor (gbr3). So you need to install it in order to use it. One of the easiest ways to do that is to use the Gambas IDE packager. Of course, this is distribution dependant, just like any oher program built in any other language. Debian packages wont work on rpm based distros, rpms wont work on debian based distros. However, the same Gambas CODE can be packaged to suit the listed PACKAGING formats. So its maybe a "constraint", but its not a Gambas constraint. 2. It is HIGHLY RECOMMENDED that you write your test harnes s code for your component (or indeed libray) inside the component project. The class(es) that you are exporting will work EXACTLY the same way that they will when used in a client project.If you want to when your component works, you could excise the test code from the project. We here don't bother, we just make sure none of the test harness is exported. 3. Gianluigi is incorrect when he says that libraries are in the ~.local heirarchy. The are only there on the machine for the user who compiled it. For example if you are on a multi-user machine, either everyone has to compile the library or you have to install the library the same way as for a component. Finally a short comment on multiple Gambas versions on the same machin, including multiple versionsof custom components and libraries. We have been doing this for years. The design is based on how programs like postgresql allow for multiple versions. The trick is to install in /opt and use the GAMBAS_PATH env settiing (or whatever it was that Benoit mentioned. Then all you need is a shell script that uses that root path setting. Wehave never had a problem. At the moment our testing system has the "pure" Gambas, two local Gambas' with certain customised things (including the IDE) and two other versions (one native and one localised) that provide the platfomrs for different versions of our own custom controls and components and libraries - "production" and "testing". None of these intefere with each other and all use the proper shared code files. hth bruce From bsteers4 at gmail.com Sat Jan 16 13:40:07 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 16 Jan 2021 12:40:07 +0000 Subject: [Gambas-user] su on non english computers In-Reply-To: <34735987-bce2-0f49-6e2a-bbecbd678692@gmail.com> References: <34735987-bce2-0f49-6e2a-bbecbd678692@gmail.com> Message-ID: Thanks Bruce. (and apologies Jussi, was a long day yesterday for me) gksu (or pkexec as is now used for policy-kit) (or groot the gambas app i made that does a similar job but more "cheap hack" like ;) ) are no good for me though. It's for a program that compiles and installs latest Gambas so *./reconf-all* to *make* run as normal user then the last *'make install'* requires root permissions. the downside of automating the compile process is that on a slow machine it can take a long time to get to the 'make install' command and if you've got bored waiting and gone to watch telly or something the sudo/su command will timeout asking for password. I gave the app 3 options at the point of 'make install' 1. do nothing, just run as usual, ask for pass , if not entered just timeout. 2. pop open a Message, pausing the process till the user clicks okay and is there ready to type pass. 3. Enter pass at the start and when 'make install' is run auto-type it for you on detecting the prompt. Works great with sudo and will in all languages as the sudo prompt line always starts with [sudo] I may just make the app not offer the , er , hack , if user has no sudo just su. I've had confirmation from a German user that su asks Passwort in German Prompts... sudo : [sudo] Passwort f?r xxxxxxxxxx: su -c : Passwort: And thanks for the info about su , i just tried the su pw using .terminalview.Input() (works for sudo) and Desktop.Senkeys() and you are quite right, both failed :'( BruceS On Sat, 16 Jan 2021 at 06:37, Bruce wrote: > On 16/1/21 2:34 pm, Bruce Steers wrote: > > Yes i am sure , It works , thanks. jeesh > > I'd thank you for all you other words but i don't want them. for starters > > my question is about su not sudo. > > > > could you at least tell me if you type in a terminal.. > > su -c "echo 'i like to be a smart arse'" > > > > what does su ask ?' > > Does it say > > Password: > > In English or is it written in your language? > > > > that was my question. > > I thought it was a simple question. > > > > Anyone else? > > > > BruceS > > > > > > On Sat, 16 Jan 2021 at 01:58, Jussi Lahtinen > > wrote: > > > >> Are you sure you can get the password that way? Sounds fishy to me. > >> Anyway, look at sudo arguments --command-timeout and --validate. I > think > >> they may offer a more standard way to do this. > >> > > > > nope. ;) > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > The "Password:" prompt comes from su itself and is not a level 3 > implemented or detectable thing. It's like the true virtual terminal > login "Password:" prompt, so I presume it is translated according to the > system locale. > su is a little harder to work with as it is running itself at a higher > than "user" level. If you want the same "power" (cough, ahem) as sudo > then gksu (or the less better new thing, I cant remember its name) or > kdesu. Both from memory give you program level detection and the ability > to complete. Also from memory su will only accept a password from the > keyboard, you (or more correctly I) cannot auto suplly the password. > > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sat Jan 16 16:08:47 2021 From: taboege at gmail.com (Tobias Boege) Date: Sat, 16 Jan 2021 16:08:47 +0100 Subject: [Gambas-user] su on non english computers In-Reply-To: References: Message-ID: <20210116150847.GG11059@highrise.localdomain> On Sat, 16 Jan 2021, Bruce Steers wrote: > Yes i am sure , It works , thanks. jeesh > I'd thank you for all you other words but i don't want them. for starters > my question is about su not sudo. > > could you at least tell me if you type in a terminal.. > su -c "echo 'i like to be a smart arse'" > > what does su ask ?' > Does it say > Password: > In English or is it written in your language? > > that was my question. > I thought it was a simple question. > The question was simple. The answer is this: $ LC_ALL=de_DE.UTF8 su Passwort: ^D su: Fehler beim ?ndern des Authentifizierungstoken What can you do to work around this? Yes, you can try to find a common pattern in that prompt in all languages, but that is not very robust. sudo also supports a -p argument where you can set your own predictable prompt, but su doesn't. What really works in every case is to *disable* localization, so you don't have to deal with this problem at all. This is done by setting the environment variable LC_ALL=C. In Gambas, for example: Exec ["sudo", "make", "install"] For Input Output With ["LC_ALL=C"] Then all messages will be in English. The "C" locale always exists and the LC_ALL setting takes precedence over all other settings. -- 8< -- Tangent goes off here --------------------------------------- 8< -- And while I'm a fan of telling people exactly what they asked for, after answering I also like to invoke my hard-earned smart arse privileges to point out why I think the question is misguided. su and sudo are programs for authentication. The fact that they localize and by default want to read from a tty means that they really prefer that a human enter the password. su and sudo usually take in the password and act upon it very quickly: they can verify it and escalate your rights on the system without waiting for anything in between. The secret remains in memory for the shortest time possible, which is good because that pass- word is the key to everything. Your approach takes on half the job of authentication and retains that important secret in the memory of an unprivileged process far longer. There are at least two alternative approaches: - [su/sudo]: ask the user at the beginning of your process to permit starting a privileged version of your program, through su or sudo. The normal version already running executes most of the build instructions on behalf of the user and the privileged version takes over for the installation. This requires some form of IPC between the two versions. Or require the user to start your process with enough privileges and drop them until you need them. (Unfortunately I only know how to do this in Gambas using Extern calls to libc.) - [sudo]: do the "sudo loop" technique (hinted at by Jussi and implemented in e.g. [1]) where you have the user execute a successful sudo command at the beginning of your process and then you repeatedly call sudo on the same terminal (inside a Gambas Task) to keep the cached sudo creden- tials active. Unfortunately, this credential caching appears to be subject to system configuration and may not be available; search for "credential caching" in `man sudoers`. The good news is that people who disable it *want* to be asked for the password again. In both the above, you keep a privileged process running for later use instead of storing the ultimate key to privileged processes for later use. Your program never comes in contact with the precious password at all; it is always handled by programs designed to handle important passwords. Both do not have the downside of prompting the user for a password in the middle of the work. But ultimately, it's your call. There is no objectively more secure solution until the threat has been defined. And installing Gambas is already a highly insecure task if you assume that there is a compromised process running under your user. In that case, why bother with passwords if you can just wait until `configure` wrote the Makefile, then overwrite it with malicious code, and have the user foolishly execute `sudo make install`? Best, Tobias [1] https://github.com/Jguer/yay/blob/next/exec.go#L22 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From brian at westwoodsvcs.com Sat Jan 16 16:07:54 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 16 Jan 2021 07:07:54 -0800 (PST) Subject: [Gambas-user] Compiled version of class In-Reply-To: <08ea6c03-2be8-208e-0da8-b14225e184c5@gmail.com> References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> <08ea6c03-2be8-208e-0da8-b14225e184c5@gmail.com> Message-ID: <1713013106.6999.1610809674587.JavaMail.zimbra@westwoodsvcs.com> I have suggested before, Is it time to have something equivalent to pip in python for gambas to distribute gambas components and libraries, Making it independent of os as much as possible? Everything around distribution would be so much simpler. That said I am not sure just how much distro specific stuff is in the core components. ummmm. Thank You Brian G ----- Original Message ----- From: "Bruce" To: "Gambas mailing list" Sent: Saturday, January 16, 2021 10:53:00 AM Subject: Re: [Gambas-user] Compiled version of class On 14/1/21 4:14 am, Olivier Coquet wrote: > Hi, i try to make a component and after read the doc, component is > working, but.... > > If I understand all, component is distribution dependent, if i publish > it in deb format, Fedora can't install it ???? (for example) > > This is a constraint. > > Olivier Coquet Getting back to the original post, let's get rid of some misinformation floating around. 1. A component is almost like a shared library i.e. like a "libsquiz.so.1.0.67" so it has to be installed on the system where the client application is installled. It's not a shared library because it is not directly executable code - it's in the Gambas precompiled thingo-code format (like java). So it lives in special directories known to the Gambas executor (gbr3). So you need to install it in order to use it. One of the easiest ways to do that is to use the Gambas IDE packager. Of course, this is distribution dependant, just like any oher program built in any other language. Debian packages wont work on rpm based distros, rpms wont work on debian based distros. However, the same Gambas CODE can be packaged to suit the listed PACKAGING formats. So its maybe a "constraint", but its not a Gambas constraint. 2. It is HIGHLY RECOMMENDED that you write your test harnes s code for your component (or indeed libray) inside the component project. The class(es) that you are exporting will work EXACTLY the same way that they will when used in a client project.If you want to when your component works, you could excise the test code from the project. We here don't bother, we just make sure none of the test harness is exported. 3. Gianluigi is incorrect when he says that libraries are in the ~.local heirarchy. The are only there on the machine for the user who compiled it. For example if you are on a multi-user machine, either everyone has to compile the library or you have to install the library the same way as for a component. Finally a short comment on multiple Gambas versions on the same machin, including multiple versionsof custom components and libraries. We have been doing this for years. The design is based on how programs like postgresql allow for multiple versions. The trick is to install in /opt and use the GAMBAS_PATH env settiing (or whatever it was that Benoit mentioned. Then all you need is a shell script that uses that root path setting. Wehave never had a problem. At the moment our testing system has the "pure" Gambas, two local Gambas' with certain customised things (including the IDE) and two other versions (one native and one localised) that provide the platfomrs for different versions of our own custom controls and components and libraries - "production" and "testing". None of these intefere with each other and all use the proper shared code files. hth bruce ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From kicking177 at gmail.com Sat Jan 16 17:34:34 2021 From: kicking177 at gmail.com (KKing) Date: Sat, 16 Jan 2021 16:34:34 +0000 Subject: [Gambas-user] multiple Gambas versions on the same machine Message-ID: <2ef3069b-bf80-1093-926b-60ce0b5df01a@gmail.com> > Finally a short comment on multiple Gambas versions on the same machin, > including multiple versionsof custom components and libraries. We have > been doing this for years. The design is based on how programs like > postgresql allow for multiple versions. The trick is to install in /opt > and use the GAMBAS_PATH env settiing (or whatever it was that Benoit > mentioned. Then all you need is a shell script that uses that root path > setting. Wehave never had a problem. At the moment our testing system > has the "pure" Gambas, two local Gambas' with certain customised things > (including the IDE) and two other versions (one native and one > localised) that provide the platfomrs for different versions of our own > custom controls and components and libraries - "production" and > "testing". None of these intefere with each other and all use the proper > shared code files. Bruce, is that multiple versions that are able to run at same time? If yes, do you have more detail on steps taken to facilitate? Back in June I asked and Benoit responded to try > I think you can achieve what you want by: > > - Compiling from sources by using './configure --prefix=XXX'. For > example: './configure --prefix=/opt/gambas/3.8' > > - Set the GB_PATH environment variable with the path of the specific > interpreter. For example: 'setenv GB_PATH /opt/gambas/3.8/bin/gbx3'. > > If you want to run two versions at the same time, you have to switch the > 'GB_PATH' environment variable according to the version you want to run. but when I tried I got a JIT error > $ export GB_PATH=/opt/gambas/9.13/bin/gbx3 > $ gambas3 > > ** > ** OOPS! INTERNAL ERROR. Program aborting, sorry! > ** Unable to find JIT compilation method > ** > ** ERROR: Unable to find method _Compile in class Jit. Return type > does not match > ** > ** Please send a bug report to the gambas bugtracker [1] or to the > gambas mailing-list [2]. > ** [1] http://gambaswiki.org/bugtracker > ** [2] https://lists.gambas-basic.org/listinfo/user > ** which I did post, but don't think I got an answer to it, and been distracted since K. From g4mba5 at gmail.com Sat Jan 16 18:04:23 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 16 Jan 2021 18:04:23 +0100 Subject: [Gambas-user] multiple Gambas versions on the same machine In-Reply-To: <2ef3069b-bf80-1093-926b-60ce0b5df01a@gmail.com> References: <2ef3069b-bf80-1093-926b-60ce0b5df01a@gmail.com> Message-ID: <237e4a1f-4d87-7895-40e4-f6afe8fd9c0f@gmail.com> Le 16/01/2021 ? 17:34, KKing a ?crit?: >> Finally a short comment on multiple Gambas versions on the same machin, >> including multiple versionsof custom components and libraries. We have >> been doing this for years. The design is based on how programs like >> postgresql allow for multiple versions. The trick is to install in /opt >> and use the GAMBAS_PATH env settiing (or whatever it was that Benoit >> mentioned. Then all you need is a shell script that uses that root path >> setting. Wehave never had a problem. At the moment our testing system >> has the "pure" Gambas, two local Gambas' with certain customised things >> (including the IDE) and two other versions (one native and one >> localised) that provide the platfomrs for different versions of our own >> custom controls and components and libraries - "production" and >> "testing". None of these intefere with each other and all use the proper >> shared code files. > > Bruce, is that multiple versions that are able to run at same time? > If yes, do you have more detail on steps taken to facilitate? > > Back in June I asked and Benoit responded to try Here is a better answer: Gambas was not made so that you can installed two different minor versions on the same system. But you can define the GB_PATH environment variable. It must point to the interpreter you want to use. Then all other Gambas paths are deduced from that path. Moreover, a Gambas executable is run by the first gbr3 program found in the PATH environmental variable. Let's suppose you have an installation of Gambas 3.4 in /opt/gambas/3.4. You have to run your program that way: $ GB_PATH=/opt/gambas/3.4/bin/gbx3 PATH=/opt/gambas/3.4/bin:$PATH ./myprogram.gambas And it -should- work. Please tell me the result. -- Beno?t Minisini From bagonergi at gmail.com Sat Jan 16 18:20:31 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 16 Jan 2021 18:20:31 +0100 Subject: [Gambas-user] Compiled version of class In-Reply-To: <08ea6c03-2be8-208e-0da8-b14225e184c5@gmail.com> References: <711fa92e-9ff3-7894-0983-da46412eccaf@3d-phenomen.fr> <0AF28CD4-D554-4367-A731-CF90EA42388D@yahoo.fr> <74f211af-2f19-826b-f444-418d32c589da@3d-phenomen.fr> <08ea6c03-2be8-208e-0da8-b14225e184c5@gmail.com> Message-ID: Il giorno sab 16 gen 2021 alle ore 11:54 Bruce ha scritto: > > > 3. Gianluigi is incorrect when he says that libraries are in the ~.local > heirarchy. The are only there on the machine for the user who compiled > it. For example if you are on a multi-user machine, either everyone has > to compile the library or you have to install the library the same way > as for a component. > Hi Bruce, I do not know if something has changed, certainly from ide I can copy your libraries without having to compile them, with Hans we had done some swap tests, but I am also sure that I had also tried on executable and it was possible to copy the libraries in the lib folder, I just tried but I couldn't ... Amen, because I haven't this necessity, it was only for study purposes Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jan 16 18:38:16 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 16 Jan 2021 18:38:16 +0100 Subject: [Gambas-user] Terminal text reflow Message-ID: https://pointieststick.com/2021/01/15/this-week-in-kde-text-reflow-in-konsole/ If I release Gambas 3.16 before the next version of KDE, we will have terminal text reflow before them! :-) Note: Gnome terminal already has that. Regards, -- Beno?t Minisini From kicking177 at gmail.com Sat Jan 16 19:31:38 2021 From: kicking177 at gmail.com (KKing) Date: Sat, 16 Jan 2021 18:31:38 +0000 Subject: [Gambas-user] multiple Gambas versions on the same machine Message-ID: > Let's suppose you have an installation of Gambas 3.4 in /opt/gambas/3.4. > You have to run your program that way: > > $ GB_PATH=/opt/gambas/3.4/bin/gbx3 PATH=/opt/gambas/3.4/bin:$PATH > ./myprogram.gambas > > And it -should- work. yes... I think that works ... will do some more testing tomorrow. From terminal if I invoke? gambas3? I get v3.12.2 as from the Debian 10? repo if I then do $ export GB_PATH=/opt/gambas/9.13/bin/gbx3 PATH=/opt/gambas/9.13/bin:$PATH $ gambas3 it invokes the v3.13.3 (which I built so long ago I can't remember what I did to make it be held in /opt/gambas/9.13 ....) thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 16 19:44:36 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 16 Jan 2021 18:44:36 +0000 Subject: [Gambas-user] Terminal text reflow In-Reply-To: References: Message-ID: Do iiiiiit ? What's the revision shift most about? Wayland? I could start using wayland and get bug hunting. Do you need that? Anything you need to help (priority tasks) just ask. 3.15 rocks now ? I first joined you folks on 3.15 and to be honest I had much to moan about. But now far more to celebrate. Great work Ben. Truly a work of art. On Sat, 16 Jan 2021, 17:39 Beno?t Minisini, wrote: > > https://pointieststick.com/2021/01/15/this-week-in-kde-text-reflow-in-konsole/ > > If I release Gambas 3.16 before the next version of KDE, we will have > terminal text reflow before them! :-) > > Note: Gnome terminal already has that. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Jan 16 19:54:27 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 16 Jan 2021 20:54:27 +0200 Subject: [Gambas-user] su on non english computers In-Reply-To: References: <34735987-bce2-0f49-6e2a-bbecbd678692@gmail.com> Message-ID: > (and apologies Jussi, was a long day yesterday for me) > No worries, I think you now see why I asked. And btw, all my computers use English. Finnish is not good in technical vocabulary. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 16 19:57:38 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 16 Jan 2021 18:57:38 +0000 Subject: [Gambas-user] multiple Gambas versions on the same machine In-Reply-To: References: Message-ID: Awesome ? Next K you can make a simple gambas app that stores the paths and quickly switches between versions , and share it with us ? BruceS On Sat, 16 Jan 2021, 18:32 KKing, wrote: > Let's suppose you have an installation of Gambas 3.4 in /opt/gambas/3.4. > You have to run your program that way: > > $ GB_PATH=/opt/gambas/3.4/bin/gbx3 PATH=/opt/gambas/3.4/bin:$PATH > ./myprogram.gambas > > And it -should- work. > > yes... I think that works ... will do some more testing tomorrow. > > From terminal if I invoke gambas3 I get v3.12.2 as from the Debian 10 > repo > > if I then do > $ export GB_PATH=/opt/gambas/9.13/bin/gbx3 PATH=/opt/gambas/9.13/bin:$PATH > $ gambas3 > > it invokes the v3.13.3 (which I built so long ago I can't remember what I > did to make it be held in /opt/gambas/9.13 ....) > > thank you > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sat Jan 16 20:21:58 2021 From: taboege at gmail.com (Tobias Boege) Date: Sat, 16 Jan 2021 20:21:58 +0100 Subject: [Gambas-user] multiple Gambas versions on the same machine In-Reply-To: References: Message-ID: <20210116192158.GH11059@highrise.localdomain> On Sat, 16 Jan 2021, Bruce Steers wrote: > Awesome ? > Next K you can make a simple gambas app that stores the paths and quickly > switches between versions , and share it with us ? > Such programs exist for other languages and the common elements by now are reasonably well understood: - an `install vX.Y` command which pulls the release archive for Gambas X.Y, builds and installs it somewhere under $HOME (note: no su or sudo needed for this per-user install into their own home directory). - a `switch vX.Y` command to make the given version the currently active Gambas version. The selected version is merely recorded in some text file after checking that it is available. - an `env` command which outputs a PATH and GB_PATH environment variable setting for the currently selected Gambas version, like $ gambasbrew install v3.15.2 ... OK $ gambasbrew switch v3.15.2 OK $ gambasbrew env PATH="$HOME/gambas/v3.15.2/bin:$PATH"; export PATH; GB_PATH="$HOME/gambas/v3.15.2"; export GB_PATH; so that you can write in your shell rc file just eval "$(gambasbrew env)" to make your shell always use the Gambas version that was selected when you started the shell. You are very much encouraged (by me) to add these features to your installer or make a new project out of it. There are some arguments as to why you should only mess with /usr through your package manager, so by now I personally prefer installing all custom software into my home directory (or /opt), always. But I am unsure about installing libraries and components. Will they end up in the right location...? Depends on who install them, right? Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Sat Jan 16 20:24:49 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 16 Jan 2021 20:24:49 +0100 Subject: [Gambas-user] Terminal text reflow In-Reply-To: References: Message-ID: Le 16/01/2021 ? 19:44, Bruce Steers a ?crit?: > Do iiiiiit ? > > What's the revision shift most about? Wayland? > > I could start using wayland and get bug hunting. Do you need that? > Anything you need to help (priority tasks) just ask. > > > 3.15 rocks now ? I first joined you folks on 3.15 and to be honest I > had much to moan about. But now far more to celebrate. > Great work Ben. > Truly a work of art. > I don't think it's possible to make Gambas work correctly on Wayland now, as Wayland support is not yet finished in KDE, Qt, and Gnome window mangager (GTK+ 3.0 seems to be ok, but I won't rely on that). At least it does not crash anymore, so you can run the Gambas 3 IDE on Wayland if you really want. Moreover, gb.desktop only supports X11 at the moment. I will try to make a Wayland/X11 plugin system so that gb.desktop could run on wayland. But again I think I won't have the time to implement the Wayland plugin, as I don't know how to do with Wayland windows all the things we can do with X11 windows. Regards, -- Beno?t Minisini From ujlain at gmail.com Sun Jan 17 08:38:17 2021 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Sun, 17 Jan 2021 13:08:17 +0530 Subject: [Gambas-user] Error in file read when length is a negative value ? Message-ID: Please see attached project. *read stream length* returns the same string regardless of + /- length given. As per documentation , a negative length should return characters from end of file -- Warm Regards, Vinode Singh Ujlain https://www.linkedin.com/in/ujlain/ ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ErrProject.zip Type: application/zip Size: 15009 bytes Desc: not available URL: From bagonergi at gmail.com Sun Jan 17 09:55:55 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 17 Jan 2021 09:55:55 +0100 Subject: [Gambas-user] Error in file read when length is a negative value ? In-Reply-To: References: Message-ID: Il giorno dom 17 gen 2021 alle ore 08:39 Vinode Singh Ujlain < ujlain at gmail.com> ha scritto: > Please see attached project. > *read stream length* returns the same string regardless of + /- length > given. As per documentation , a negative length should return characters > from end of file > -- > Warm Regards, > Vinode Singh Ujlain > https://www.linkedin.com/in/ujlain/ > ------------------------------ > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi Vinode, are you in search for the Seek key ? http://gambaswiki.org/wiki/lang/seek Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ujlain at gmail.com Sun Jan 17 10:03:38 2021 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Sun, 17 Jan 2021 14:33:38 +0530 Subject: [Gambas-user] Error in file read when length is a negative value ? In-Reply-To: References: Message-ID: <47507fcb-cd08-14e3-ff63-a36353d97c61@gmail.com> Yes SEEK could help .,. but code becomes longer, I need to read last 5 bytes from EOF .. I was looking at http://gambaswiki.org/wiki/lang/read?nh _Variable_ *= READ* [ *#* _Stream_ *,* ] _Length_ *here length can be +/- , +ive reads from beginning of file and -ive reads backwards from EOF. But that is not happening, ERROR ?* Warm Regards, Vinode Singh Ujlain https://www.linkedin.com/in/ujlain/ ------------------------------------------------------------------------ On 17/01/21 2:25 pm, Gianluigi wrote: > > > Il giorno dom 17 gen 2021 alle ore 08:39 Vinode Singh Ujlain > > ha scritto: > > Please see attached project. > *read stream length* returns the same string regardless of + /- > length given. As per documentation , a negative length should > return characters from end of file > -- > Warm Regards, > Vinode Singh Ujlain > https://www.linkedin.com/in/ujlain/ > ------------------------------------------------------------------------ > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > Hi Vinode, > are you in search for the Seek key ? > http://gambaswiki.org/wiki/lang/seek > > Regards > Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jan 17 10:25:28 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 17 Jan 2021 10:25:28 +0100 Subject: [Gambas-user] Error in file read when length is a negative value ? In-Reply-To: <47507fcb-cd08-14e3-ff63-a36353d97c61@gmail.com> References: <47507fcb-cd08-14e3-ff63-a36353d97c61@gmail.com> Message-ID: I'm afraid there is an error in your text file, the attachment here works fine and is short. Regards Gianluigi Il giorno dom 17 gen 2021 alle ore 10:03 Vinode Singh Ujlain < ujlain at gmail.com> ha scritto: > Yes SEEK could help .,. but code becomes longer, I need to read last 5 > bytes from EOF .. I was looking at http://gambaswiki.org/wiki/lang/read?nh > > *Variable* *= READ* [ *#* *Stream* *,* ] *Length* *here length can be +/- > , +ive reads from beginning of file and -ive reads backwards from EOF. But > that is not happening, ERROR ?* > > > Warm Regards, > Vinode Singh Ujlain > https://www.linkedin.com/in/ujlain/ > ------------------------------ > On 17/01/21 2:25 pm, Gianluigi wrote: > > > > Il giorno dom 17 gen 2021 alle ore 08:39 Vinode Singh Ujlain < > ujlain at gmail.com> ha scritto: > >> Please see attached project. >> *read stream length* returns the same string regardless of + /- length >> given. As per documentation , a negative length should return characters >> from end of file >> -- >> Warm Regards, >> Vinode Singh Ujlain >> https://www.linkedin.com/in/ujlain/ >> ------------------------------ >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > Hi Vinode, > are you in search for the Seek key ? > http://gambaswiki.org/wiki/lang/seek > > Regards > Gianluigi > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: LastString.zip Type: application/zip Size: 14748 bytes Desc: not available URL: From chrisml at deganius.de Sun Jan 17 11:53:43 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 17 Jan 2021 11:53:43 +0100 Subject: [Gambas-user] Testing a new look for message boxes In-Reply-To: References: <29f933a5-db19-71c9-3484-9260e4cb6284@gmail.com> <18b81991-7890-39cc-9df2-7de785b66a22@deganius.de> Message-ID: <3c5bd947-f442-c94f-518a-6814d2b299e5@deganius.de> Am 16.01.21 um 06:45 schrieb Bruce Steers: > And Christof , did you see there is now right click menu "Copy Text" > with Ctrl-C shortcut? :) No ... sorry, I'm not up to date with the latest development because at the moment I don't have the time. Alles Gute Christof Thalhofer [1] https://en.wikipedia.org/wiki/Color_blindness -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Sun Jan 17 14:33:56 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 17 Jan 2021 14:33:56 +0100 Subject: [Gambas-user] Ping test Message-ID: Mail receipt test Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Jan 17 14:35:47 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 17 Jan 2021 08:35:47 -0500 Subject: [Gambas-user] Ping test In-Reply-To: References: Message-ID: <4c9bc2ee-6d41-3d9e-204e-5675a9f2a44f@gmail.com> On 1/17/21 8:33 AM, Gianluigi wrote: > Mail receipt test > > Regards > Gianluigi > Echo. -- Lee From bagonergi at gmail.com Sun Jan 17 14:39:13 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 17 Jan 2021 14:39:13 +0100 Subject: [Gambas-user] Ping test In-Reply-To: <4c9bc2ee-6d41-3d9e-204e-5675a9f2a44f@gmail.com> References: <4c9bc2ee-6d41-3d9e-204e-5675a9f2a44f@gmail.com> Message-ID: Il giorno dom 17 gen 2021 alle ore 14:37 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 1/17/21 8:33 AM, Gianluigi wrote: > > Mail receipt test > > > > Regards > > Gianluigi > > > > Echo. > > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It works! I apologize to Christof for the inconvenience Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jan 17 14:45:03 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 17 Jan 2021 14:45:03 +0100 Subject: [Gambas-user] Ping test In-Reply-To: References: <4c9bc2ee-6d41-3d9e-204e-5675a9f2a44f@gmail.com> Message-ID: Il giorno dom 17 gen 2021 alle ore 14:39 Gianluigi ha scritto: > > > Il giorno dom 17 gen 2021 alle ore 14:37 T Lee Davidson < > t.lee.davidson at gmail.com> ha scritto: > >> >> >> Echo. > > ... > It works! > EDIT: Sorry Lee, I forgot to thank you Ciao Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jan 17 14:53:00 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 17 Jan 2021 14:53:00 +0100 Subject: [Gambas-user] Error in file read when length is a negative value ? In-Reply-To: <47507fcb-cd08-14e3-ff63-a36353d97c61@gmail.com> References: <47507fcb-cd08-14e3-ff63-a36353d97c61@gmail.com> Message-ID: Il giorno dom 17 gen 2021 alle ore 10:03 Vinode Singh Ujlain < ujlain at gmail.com> ha scritto: > EOF .. I was looking at http://gambaswiki.org/wiki/lang/read?nh > > *Variable* *= READ* [ *#* *Stream* *,* ] *Length* ... > Hi Vinode, I believe you have misunderstood the use of Variable = READ [# Stream,] Length If you want to get the last stream you have to write the code like this: Public Sub Main() Dim hFile As File Dim sFile As String hFile = Open "./my-demo.txt" For Read Seek #hFile, -4 Read #hFile, sFile, 4 Print sFile hFile.Close End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Jan 17 14:56:03 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 17 Jan 2021 08:56:03 -0500 Subject: [Gambas-user] Error in file read when length is a negative value ? In-Reply-To: References: Message-ID: On 1/17/21 2:38 AM, Vinode Singh Ujlain wrote: > Please see attached project. > *read stream length* returns the same string regardless of + /- length given. As per documentation , a negative length should > return characters from end of file > -- > Warm Regards, > Vinode Singh Ujlain > https://www.linkedin.com/in/ujlain/ > -------------------------------------------------------------------------------------------------------------------------------- I don't see where you're seeing that a negative length should read from the end of the file. What I see is: "If Length is negative, then at most (- Length) bytes are read until the end of the stream." Use a negative number to prevent trying to read past EOF and causing an error. -- Lee From t.lee.davidson at gmail.com Sun Jan 17 15:06:53 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 17 Jan 2021 09:06:53 -0500 Subject: [Gambas-user] Error in file read when length is a negative value ? In-Reply-To: References: <47507fcb-cd08-14e3-ff63-a36353d97c61@gmail.com> Message-ID: <3e02eac8-2072-1734-5739-89b7920f3a31@gmail.com> On 1/17/21 8:53 AM, Gianluigi wrote: > > > Il giorno dom 17 gen 2021 alle ore 10:03 Vinode Singh Ujlain > ha scritto: > > EOF ..?I was looking at http://gambaswiki.org/wiki/lang/read?nh > > _Variable_ *= READ* [ *#* _Stream_ *,* ] _Length_ ... > > > Hi Vinode, > I believe you have misunderstood the use of Variable = READ [# Stream,] Length > > If you want to get the last stream you have to write the code like this: > > Public Sub Main() > > ? Dim hFile As File > ? Dim sFile As String > > ? hFile = Open "./my-demo.txt" For Read > ? Seek #hFile, -4 > ? Read #hFile, sFile, 4 > ? Print sFile > ? hFile.Close > > End > > Regards > Gianluigi > The _Variable_ *= READ* [ *#* _Stream_ *,* ] _Length_ ... format works. But, what is needed, as you demonstrated, is SEEK. The subroutine could look like this: Public Sub retChars(howMany As Integer) As String Dim fh As File Dim fStr As String fh = Open Subst("&1/demo.txt", Application.path) For Read If howMany < 0 Then Seek #fh, howMany fStr = Read #fh, howMany Close fh Return fstr End -- Lee From pflora at libero.it Sun Jan 17 16:09:02 2021 From: pflora at libero.it (pflora at libero.it) Date: Sun, 17 Jan 2021 16:09:02 +0100 (CET) Subject: [Gambas-user] Fwd: qt4 webkit In-Reply-To: <1458873339.764466.1610817670474@mail1.libero.it> References: <1458873339.764466.1610817670474@mail1.libero.it> Message-ID: <686660282.1180107.1610896143057@mail1.libero.it> Sorry to bother but I am trying to write a kiosk web client in gambas. I used a qt4 webkit Web View component and it works when I go to internet. I need to show a local page that comes from local node-red server and this does not work, strange things happens when I set the URL property, the page shows only some parts for a moment then disappears again and screen remains white. All other browsers shows the page correctly. I am not able to track the problem. Enclosed please find the project and system info. Who can I ask for this problem ? Is this the right place ? Thank you. System info: [System] Gambas=3.15.90 OperatingSystem=Linux Kernel=5.0.0-32-generic Architecture=x86_64 Distribution=Linux Mint 19.3 Tricia Desktop=XFCE Theme=windows Language=it_IT.UTF-8 Memory=1844M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2200.30 GStreamer=libgstreamer-1.0.so.0.1405.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2200.30 OpenGL=libGL.so.1.0.0 Poppler=libpoppler.so.73.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.9.5 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 DBUS_SESSION_BUS_ADDRESS=unix:path=/run//1000/bus DESKTOP_SESSION=xfce DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xfce GDM_LANG=it GTK_MODULES=gail:atk-bridge HOME= LANG=it_IT.UTF-8 LANGUAGE=it_IT.UTF-8 LOGNAME= PANEL_GDK_CORE_DEVICE_EVENTS=0 PATH=/.local/bin:/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/1086,unix/:/tmp/.ICE-unix/1086 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1222 SSH_AUTH_SOCK=/tmp/ssh-ZagfZM3vSQj2/agent.1086 TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-xfce:/etc/xdg:/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/usr/share/xfce4:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=xfce- XDG_RUNTIME_DIR=/run//1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=xfce XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-project.tar.gz Type: application/gzip Size: 12540 bytes Desc: not available URL: From chrisml at deganius.de Sun Jan 17 18:37:16 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 17 Jan 2021 18:37:16 +0100 Subject: [Gambas-user] Ping test In-Reply-To: References: <4c9bc2ee-6d41-3d9e-204e-5675a9f2a44f@gmail.com> Message-ID: <71ffc930-cecc-7005-ea63-4186216e3aec@deganius.de> Am 17.01.21 um 14:39 schrieb Gianluigi: > It works! Great! > I apologize to Christof for the inconvenience No problem! Alles Gute Christof Thalhofer -- [x] nail here for new monitor From bsteers4 at gmail.com Sun Jan 17 19:26:07 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 17 Jan 2021 18:26:07 +0000 Subject: [Gambas-user] Fwd: qt4 webkit In-Reply-To: <686660282.1180107.1610896143057@mail1.libero.it> References: <1458873339.764466.1610817670474@mail1.libero.it> <686660282.1180107.1610896143057@mail1.libero.it> Message-ID: This would be the right place to ask and i'm not sure i'#m the right guy to answer but I will say this... I had some odd issues loading more complex web pages (like the gambas gitlab page) in different webkits. I found differences using qt5 and the new gtk3 webkit instead. if your systems have qt5 i'd try the qt5.webkit. BruceS On Sun, 17 Jan 2021 at 15:10, pinglix via User wrote: > Sorry to bother but I am trying to write a kiosk web client in gambas. > > I used a qt4 webkit Web View component and it works when I go to internet. > > I need to show a local page that comes from local node-red server and this > does not work, strange things happens when I set the URL property, the page > shows only some parts for a moment then disappears again and screen remains > white. > > All other browsers shows the page correctly. > > I am not able to track the problem. > > Enclosed please find the project and system info. > > Who can I ask for this problem ? > > Is this the right place ? > > Thank you. > > System info: > > [System] > Gambas=3.15.90 > OperatingSystem=Linux > Kernel=5.0.0-32-generic > Architecture=x86_64 > Distribution=Linux Mint 19.3 Tricia > Desktop=XFCE > Theme=windows > Language=it_IT.UTF-8 > Memory=1844M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GDK2=libgdk-x11-2.0.so.0.2400.32 > GDK3=libgdk-3.so.0.2200.30 > GStreamer=libgstreamer-1.0.so.0.1405.0 > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2200.30 > OpenGL=libGL.so.1.0.0 > Poppler=libpoppler.so.73.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.9.5 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CLUTTER_BACKEND=x11 > DBUS_SESSION_BUS_ADDRESS=unix:path=/run//1000/bus > DESKTOP_SESSION=xfce > DISPLAY=:0.0 > GB_GUI=gb.qt4 > GDMSESSION=xfce > GDM_LANG=it > GTK_MODULES=gail:atk-bridge > HOME= > LANG=it_IT.UTF-8 > LANGUAGE=it_IT.UTF-8 > LOGNAME= > PANEL_GDK_CORE_DEVICE_EVENTS=0 > PATH=/.local/bin:/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/1086,unix/:/tmp/.ICE-unix/1086 > > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1222 > SSH_AUTH_SOCK=/tmp/ssh-ZagfZM3vSQj2/agent.1086 > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-xfce:/etc/xdg:/etc/xdg > XDG_CURRENT_DESKTOP=XFCE > XDG_DATA_DIRS=/usr/share/xfce4:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/usr/share > > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_MENU_PREFIX=xfce- > XDG_RUNTIME_DIR=/run//1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=xfce > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pflora at libero.it Sun Jan 17 22:55:43 2021 From: pflora at libero.it (pflora at libero.it) Date: Sun, 17 Jan 2021 22:55:43 +0100 (CET) Subject: [Gambas-user] Fwd: qt4 webkit In-Reply-To: References: <1458873339.764466.1610817670474@mail1.libero.it> <686660282.1180107.1610896143057@mail1.libero.it> Message-ID: <1157512557.1198385.1610920543232@mail1.libero.it> Following the advice I installed qt5 webkit but the result is exactly the same. The page is rendered only with background color, no components shown on it. I captured the html buffer and it consists of about 380 kB of just CSS code. I think this CSS is not fully compatible with the web component in some way. I don't know how to track the problem and I cannot enclose the html page as it is too big for the mailing list. Any advice is appreciated, thank you. > Il 17/01/2021 19:26 Bruce Steers ha scritto: > > > This would be the right place to ask and i'm not sure i'#m the right guy to answer but I will say this... > > I had some odd issues loading more complex web pages (like the gambas gitlab page) in different webkits. > > I found differences using qt5 and the new gtk3 webkit instead. > if your systems have qt5 i'd try the qt5.webkit. > > BruceS > > > On Sun, 17 Jan 2021 at 15:10, pinglix via User wrote: > > > > Sorry to bother but I am trying to write a kiosk web client in gambas. > > > > I used a qt4 webkit Web View component and it works when I go to internet. > > > > I need to show a local page that comes from local node-red server and this does not work, strange things happens when I set the URL property, the page shows only some parts for a moment then disappears again and screen remains white. > > > > All other browsers shows the page correctly. > > > > I am not able to track the problem. > > > > Enclosed please find the project and system info. > > > > Who can I ask for this problem ? > > > > Is this the right place ? > > > > Thank you. > > > > System info: > > > > > > [System] > > Gambas=3.15.90 > > OperatingSystem=Linux > > Kernel=5.0.0-32-generic > > Architecture=x86_64 > > Distribution=Linux Mint 19.3 Tricia > > Desktop=XFCE > > Theme=windows > > Language=it_IT.UTF-8 > > Memory=1844M > > > > > > [Libraries] > > Cairo=libcairo.so.2.11510.0 > > Curl=libcurl.so.4.5.0 > > DBus=libdbus-1.so.3.19.4 > > GDK2=libgdk-x11-2.0.so.0.2400.32 > > GDK3=libgdk-3.so.0.2200.30 > > GStreamer=libgstreamer-1.0.so.0.1405.0 > > GTK+2=libgtk-x11-2.0.so.0.2400.32 > > GTK+3=libgtk-3.so.0.2200.30 > > OpenGL=libGL.so.1.0.0 > > Poppler=libpoppler.so.73.0.0 > > QT4=libQtCore.so.4.8.7 > > QT5=libQt5Core.so.5.9.5 > > SDL=libSDL-1.2.so.0.11.4 > > SQLite=libsqlite3.so.0.8.6 > > > > > > [Environment] > > CLUTTER_BACKEND=x11 > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run//1000/bus > > DESKTOP_SESSION=xfce > > DISPLAY=:0.0 > > GB_GUI=gb.qt4 > > GDMSESSION=xfce > > GDM_LANG=it > > GTK_MODULES=gail:atk-bridge > > HOME= > > LANG=it_IT.UTF-8 > > LANGUAGE=it_IT.UTF-8 > > LOGNAME= > > PANEL_GDK_CORE_DEVICE_EVENTS=0 > > PATH=/.local/bin:/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/1086,unix/:/tmp/.ICE-unix/1086 > > SHELL=/bin/bash > > SHLVL=0 > > SSH_AGENT_PID=1222 > > SSH_AUTH_SOCK=/tmp/ssh-ZagfZM3vSQj2/agent.1086 > > TZ=:/etc/localtime > > USER= > > XAUTHORITY=/.Xauthority > > XDG_CONFIG_DIRS=/etc/xdg/xdg-xfce:/etc/xdg:/etc/xdg > > XDG_CURRENT_DESKTOP=XFCE > > XDG_DATA_DIRS=/usr/share/xfce4:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/usr/share > > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > > XDG_MENU_PREFIX=xfce- > > XDG_RUNTIME_DIR=/run//1000 > > XDG_SEAT=seat0 > > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > > XDG_SESSION_DESKTOP=xfce > > XDG_SESSION_ID=c1 > > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > > XDG_SESSION_TYPE=x11 > > XDG_VTNR=7 > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jan 17 23:34:46 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 17 Jan 2021 23:34:46 +0100 Subject: [Gambas-user] Fwd: qt4 webkit In-Reply-To: <1157512557.1198385.1610920543232@mail1.libero.it> References: <1458873339.764466.1610817670474@mail1.libero.it> <686660282.1180107.1610896143057@mail1.libero.it> <1157512557.1198385.1610920543232@mail1.libero.it> Message-ID: <204ee9bb-dffe-4767-69e9-8af77e6c4ef1@gmail.com> Le 17/01/2021 ? 22:55, pinglix via User a ?crit?: > Following the advice I installed qt5 webkit but the result is exactly > the same. > > The page is rendered only with background color, no components shown on it. > > I captured the html buffer and it consists of about 380 kB of just CSS code. > > I think this CSS is not fully compatible with the web component in some way. > > I don't know how to track the problem and I cannot enclose the html page > as it is too big for the mailing list. > > Any advice is appreciated, > > thank you. > Did you enable the different options (javascript, and so on.) ? -- Beno?t Minisini From ian.roper at iinet.net.au Mon Jan 18 01:23:58 2021 From: ian.roper at iinet.net.au (Ian Roper) Date: Mon, 18 Jan 2021 08:23:58 +0800 Subject: [Gambas-user] Websettings In-Reply-To: <1157512557.1198385.1610920543232@mail1.libero.it> References: <1458873339.764466.1610817670474@mail1.libero.it> <686660282.1180107.1610896143057@mail1.libero.it> <1157512557.1198385.1610920543232@mail1.libero.it> Message-ID: <7a5ad411-e100-5978-0e77-8261914425cb@iinet.net.au> ? WebSettings[WebSettings.PluginsEnabled] = True ? WebSettings[WebSettings.JavascriptEnabled] = True ? WebSettings[WebSettings.JavaEnabled] = True ? WebSettings[WebSettings.AutoLoadImages] = True ? WebSettings[WebSettings.JavascriptCanAccessClipboard] = True Cheers, IR From bsteers4 at gmail.com Mon Jan 18 15:31:48 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 18 Jan 2021 14:31:48 +0000 Subject: [Gambas-user] Gambas Compiling made easy. Message-ID: I now have both a bash script and a gambas application that can.... * download/pull latest gambas commits (the gambas app can read latest commit messages and trunk versions from gitlab) * both script and app can switch branches if you have other branches *install dependencies listed via the gitlab-ci.yml file. * ./configure using official arguments as in gitlab-ci.yml file. * compile * remove old packager installed repo gambas before running 'make install' * install * create a logfile suitable for gambas teams requirements. So... I've added a section to the wiki compilation help page called "User made tools to help with the process " and i have added these 2 utilities to the page. http://gambaswiki.org/wiki/install#t27 http://gambaswiki.org/wiki/installtools *If anyone else has made anything similar to help compile/install gambas please add it to the page as well.* This is the best solution I have for the old , "*gambas on debian is 3.12 and people don't have the know how to be able to upgrade*" problem. Am thinking now to veer off the bash script and work more on the gambas installer and get it perfected and put into an AppImage that anyone can use anywhere. Comments / suggestions for improvements are welcomed. Criticisms not so much ;) Gambas team , mi coda es su coda :) Wishing well BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Mon Jan 18 19:03:43 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Mon, 18 Jan 2021 19:03:43 +0100 Subject: [Gambas-user] Httpd server class & component v0.0.17 Message-ID: The last Version of httpd? Gambas class (now exportable as component). V0.0.17 - 18/01/2021 - Finalization of the modification of the processing procedure, all the arguments are now exploited by their name and not by their order of arrival (more secure). - Added the main Mime types up to the letter "J". - Modified the userpwd.txt file which now contains the date of last connection of a user. - The Processing function is called systematically on all pages with the argument "Replace", this allows to replace text between {} by what you want (for example for a version number on each page). - Added a variable at the head of the class, indicating the version of the class. - Transformation into a component and first tests in this form. - Modification of the ListUser function which now returns an array of collections (Name,Date,Time). Translated with www.DeepL.com/Translator (free version) Regards Olivier Coquet From ocoquet at 3d-phenomen.fr Mon Jan 18 19:04:53 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Mon, 18 Jan 2021 19:04:53 +0100 Subject: [Gambas-user] Httpd server class & component v0.0.17 Message-ID: <045bf692-9dfe-4f49-1c08-3a73acc41f20@3d-phenomen.fr> The last Version of httpd? Gambas class (now exportable as component). (with file, it's better :) ) V0.0.17 - 18/01/2021 - Finalization of the modification of the processing procedure, all the arguments are now exploited by their name and not by their order of arrival (more secure). - Added the main Mime types up to the letter "J". - Modified the userpwd.txt file which now contains the date of last connection of a user. - The Processing function is called systematically on all pages with ther argument "Replace", this allows to replace text between {} by what you want (for example for a version number on each page). - Added a variable at the head of the class, indicating the version of the class. - Transformation into a component and first tests in this form. - Modification of the ListUser function which now returns an array of collections (Name,Date,Time). Translated with www.DeepL.com/Translator (free version) Regards Olivier Coquet -------------- next part -------------- A non-text attachment was scrubbed... Name: http-server-0.0.17.tar.gz Type: application/gzip Size: 86649 bytes Desc: not available URL: From charlie at cogier.com Mon Jan 18 18:48:16 2021 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 18 Jan 2021 17:48:16 +0000 Subject: [Gambas-user] Print issue Message-ID: <1ca33bfe-38bd-b7ba-b6d4-5374cf1ee2ec@cogier.com> Hi All, Can you test out a strange happening for me. Have a look here https://forum.gambas.one/viewtopic.php?f=4&t=1005 Is this an issue with GTK3 or Gambas? Thanks, Charlie From chrisml at deganius.de Mon Jan 18 22:04:49 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 18 Jan 2021 22:04:49 +0100 Subject: [Gambas-user] Httpd server class & component v0.0.17 In-Reply-To: <045bf692-9dfe-4f49-1c08-3a73acc41f20@3d-phenomen.fr> References: <045bf692-9dfe-4f49-1c08-3a73acc41f20@3d-phenomen.fr> Message-ID: Am 18.01.21 um 19:04 schrieb Olivier Coquet: > The last Version of httpd? Gambas class (now exportable as component). > (with file, it's better :) ) > V0.0.17 - 18/01/2021 This mail was bounced by all Google (Gmail) servers: > : host > gmail-smtp-in.l.google.com[2a00:1450:4013:c07::1b] said: 552-5.7.0 This > message was blocked because its content presents a potential 552-5.7.0 > security issue. Please visit 552-5.7.0 > https://support.google.com/mail/?p=BlockedMessage to review our 552 5.7.0 > message content and attachment content guidelines. y6si8622263edp.196 - > gsmtp (in reply to end of DATA command) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Mon Jan 18 23:07:13 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 18 Jan 2021 23:07:13 +0100 Subject: [Gambas-user] Print issue In-Reply-To: <1ca33bfe-38bd-b7ba-b6d4-5374cf1ee2ec@cogier.com> References: <1ca33bfe-38bd-b7ba-b6d4-5374cf1ee2ec@cogier.com> Message-ID: <889e4973-b180-f493-6301-2107470ab65b@gmail.com> Le 18/01/2021 ? 18:48, Charlie Ogier a ?crit?: > Hi All, > > Can you test out a strange happening for me. Have a look here > https://forum.gambas.one/viewtopic.php?f=4&t=1005 > > > Is this an issue with GTK3 or Gambas? > > Thanks, > > Charlie > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Fixed in commit https://gitlab.com/gambas/gambas/-/commit/d2349cdb6cc20c3b6cf795451747809670caa036. Regards, -- Beno?t Minisini From ocoquet at 3d-phenomen.fr Tue Jan 19 08:57:55 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Tue, 19 Jan 2021 08:57:55 +0100 Subject: [Gambas-user] Httpd server class & component v0.0.17 In-Reply-To: References: <045bf692-9dfe-4f49-1c08-3a73acc41f20@3d-phenomen.fr> Message-ID: Hi Christof, For me mail is ok, it come from mailing list normally. Regards Olivier Le 18/01/2021 ? 22:04, Christof Thalhofer a ?crit?: > Am 18.01.21 um 19:04 schrieb Olivier Coquet: > >> The last Version of httpd? Gambas class (now exportable as component). >> (with file, it's better :) ) >> V0.0.17 - 18/01/2021 > This mail was bounced by all Google (Gmail) servers: > >> : host >> gmail-smtp-in.l.google.com[2a00:1450:4013:c07::1b] said: 552-5.7.0 This >> message was blocked because its content presents a potential 552-5.7.0 >> security issue. Please visit 552-5.7.0 >> https://support.google.com/mail/?p=BlockedMessage to review our 552 5.7.0 >> message content and attachment content guidelines. y6si8622263edp.196 - >> gsmtp (in reply to end of DATA command) > > Alles Gute > > Christof Thalhofer > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Jan 19 09:52:37 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 19 Jan 2021 09:52:37 +0100 Subject: [Gambas-user] Httpd server class & component v0.0.17 In-Reply-To: References: <045bf692-9dfe-4f49-1c08-3a73acc41f20@3d-phenomen.fr> Message-ID: Am 19.01.21 um 08:57 schrieb Olivier Coquet: > For me mail is ok, it come from mailing list normally. Yes, you do not have a Gmail account, great! :-) Gmail refuses to deliver Mail with "tar.gz" files as attachment. Not every mail but some (or most of them) ... Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From ocoquet at 3d-phenomen.fr Tue Jan 19 09:57:52 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Tue, 19 Jan 2021 09:57:52 +0100 Subject: [Gambas-user] Httpd server class & component v0.0.17 In-Reply-To: References: <045bf692-9dfe-4f49-1c08-3a73acc41f20@3d-phenomen.fr> Message-ID: <1a60d7f7-8882-9587-ce32-c0c23b612cf2@3d-phenomen.fr> OK I re-post it later in zip format. regards Olivier Le 19/01/2021 ? 09:52, Christof Thalhofer a ?crit?: > Am 19.01.21 um 08:57 schrieb Olivier Coquet: > >> For me mail is ok, it come from mailing list normally. > Yes, you do not have a Gmail account, great! :-) > > Gmail refuses to deliver Mail with "tar.gz" files as attachment. Not > every mail but some (or most of them) ... > > Alles Gute > > Christof Thalhofer > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Jan 19 16:28:31 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 19 Jan 2021 16:28:31 +0100 Subject: [Gambas-user] Error 502 when creating new issue Message-ID: <2881e729-3da6-d971-e440-78807c299e5f@gmail.com> The error 502 when creating new issue has been fixed. I have destroyed the recent duplicated and test issues about it. Regards, -- Beno?t Minisini From ocoquet at 3d-phenomen.fr Tue Jan 19 18:18:49 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Tue, 19 Jan 2021 18:18:49 +0100 Subject: [Gambas-user] A piece of code to sort an array of collections Message-ID: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> A little piece of code for anyone wondering how to sort a collection table on one of its keys. example: dim macollection as collection[] = new collection[] macollection.add([ "clef1": "nimporte quoi", "clef5": "nimporte quoi aussi" ]) macollection.add([ "clef1": "1er test", "clef5": "zzzzz" ]) This array of collections has two elements (collections) each composed of two keys (key1 and key5) If they are listed, they will be in the order above. Let's use this code: Public Function ColSort(col As Collection[], ColKey As String, trie As Integer) As Collection[] 'Trie d'un tableau de collection sur la clef demand?e Dim tmp_col As Collection[] = New Collection[col.count] 'un tableau de collection temporaire pour les manips Dim tmp_ar As String[] = New String[] 'un tableau de cha?nes pour les manips For i As Integer = 0 To col.count - 1 'on parcoure les collections et on r?cup?re tmp_ar.Add(col/[Colkey] & Chr(26) & i) 'La valeur de clef et le num?ro d'ordre original Next tmp_ar.Sort(trie) 'on trie le tableau obtenu For i = 0 To tmp_ar.count - 1 'on parcour le tableau tri? tmp_col/= col[CInt(Split(tmp_ar/, Chr(26), "", True)[1])] 'on r?-attribue chaque collection dans le bon ordre Next Return tmp_col'on retourne le tableau de collection tri? End/// /////////We call the function like this:/// //////macollection=ColSort(macollection, "clef1", gb.Ascent)////// //////And we get an array of collections sorted on the key "clef1", in ascending order. Note that the function will work for any key provided, as long as it exists in the collections. Magic! Friendship Olivier ////// -------------- next part -------------- An HTML attachment was scrubbed... URL: From pflora at libero.it Tue Jan 19 20:11:10 2021 From: pflora at libero.it (pflora at libero.it) Date: Tue, 19 Jan 2021 22:11:10 +0300 Subject: [Gambas-user] =?utf-8?q?Websettings?= In-Reply-To: <7a5ad411-e100-5978-0e77-8261914425cb@iinet.net.au> References: <1458873339.764466.1610817670474@mail1.libero.it> <1157512557.1198385.1610920543232@mail1.libero.it> <7a5ad411-e100-5978-0e77-8261914425cb@iinet.net.au> Message-ID: <1611083470.330291266@f18.my.com> Still not working even with websettings setup. I don't know how to track the problem. Is there any way to trace the qt5 WebKit inside ? Thanks -- Inviato da Libero Mail per Android luned?, 18 gennaio 2021, 01:25AM +01:00 da Ian Roper ian.roper at iinet.net.au : >? WebSettings[WebSettings.PluginsEnabled] = True >?? WebSettings[WebSettings.JavascriptEnabled] = True >?? WebSettings[WebSettings.JavaEnabled] = True >?? WebSettings[WebSettings.AutoLoadImages] = True >?? WebSettings[WebSettings.JavascriptCanAccessClipboard] = True > > >Cheers, > >IR > > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Jan 19 22:34:14 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 19 Jan 2021 23:34:14 +0200 Subject: [Gambas-user] A piece of code to sort an array of collections In-Reply-To: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> References: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> Message-ID: I don't understand what you mean, so I looked at the code... col[] should take integer, not string, as it is an array of collections. Also this doesn't make sense at all (unnecessary loop or missing index & add): For i = 0 To tmp_ar.count - 1 tmp_col = col[CInt(Split(tmp_ar, Chr(26), "", True)[1])] Next Jussi On Tue, Jan 19, 2021 at 7:20 PM Olivier Coquet wrote: > A little piece of code for anyone wondering how to sort a collection table > on one of its keys. > example: > > dim macollection as collection[] = new collection[] > > macollection.add([ > "clef1": "nimporte quoi", > "clef5": "nimporte quoi aussi" > ]) > > macollection.add([ > "clef1": "1er test", > "clef5": "zzzzz" > ]) > > This array of collections has two elements (collections) each composed of > two keys (key1 and key5) > If they are listed, they will be in the order above. > Let's use this code: > > > Public Function ColSort(col As Collection[], ColKey As String, trie As > Integer) As Collection[] 'Trie d'un tableau de collection sur la clef > demand?e > Dim tmp_col As Collection[] = New Collection[col.count] 'un tableau de > collection temporaire pour les manips > Dim tmp_ar As String[] = New String[] 'un tableau de cha?nes pour les > manips > > For i As Integer = 0 To col.count - 1 'on parcoure les collections et on > r?cup?re > tmp_ar.Add(col > > > > > > > > *[Colkey] & Chr(26) & i) 'La valeur de clef et le num?ro d'ordre original > Next tmp_ar.Sort(trie) 'on trie le tableau obtenu For i = 0 To tmp_ar.count > - 1 'on parcour le tableau tri? tmp_col = col[CInt(Split(tmp_ar, Chr(26), > "", True)[1])] 'on r?-attribue chaque collection dans le bon ordre Next > Return tmp_col 'on retourne le tableau de collection tri? End* > > *We call the function like this:* > > > *macollection=ColSort(macollection, "clef1", gb.Ascent)* > > > > > > > *And we get an array of collections sorted on the key "clef1", in > ascending order. Note that the function will work for any key provided, as > long as it exists in the collections. Magic! Friendship Olivier * > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Jan 19 22:59:36 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 19 Jan 2021 21:59:36 +0000 Subject: [Gambas-user] Websettings In-Reply-To: <1611083470.330291266@f18.my.com> References: <1458873339.764466.1610817670474@mail1.libero.it> <1157512557.1198385.1610920543232@mail1.libero.it> <7a5ad411-e100-5978-0e77-8261914425cb@iinet.net.au> <1611083470.330291266@f18.my.com> Message-ID: I know the auto load images flag works as I have used it. I have never used the WebSettings[] class directly to set it though. I use the web view objects settings. Ie. WebView1.Settings[WebSettings.AutoLoadImages] = True That worked for me with image loading. Quite the puzzle ? BruceS On Tue, 19 Jan 2021, 19:12 pinglix via User, wrote: > Still not working even with websettings setup. > > I don't know how to track the problem. > Is there any way to trace the qt5 WebKit inside ? > > Thanks > > -- > Inviato da Libero Mail per Android > luned?, 18 gennaio 2021, 01:25AM +01:00 da Ian Roper > ian.roper at iinet.net.au: > > WebSettings[WebSettings.PluginsEnabled] = True > WebSettings[WebSettings.JavascriptEnabled] = True > WebSettings[WebSettings.JavaEnabled] = True > WebSettings[WebSettings.AutoLoadImages] = True > WebSettings[WebSettings.JavascriptCanAccessClipboard] = True > > > Cheers, > > IR > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed Jan 20 00:29:12 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 20 Jan 2021 00:29:12 +0100 Subject: [Gambas-user] Httpd server class & component v0.0.17 In-Reply-To: <1a60d7f7-8882-9587-ce32-c0c23b612cf2@3d-phenomen.fr> References: <045bf692-9dfe-4f49-1c08-3a73acc41f20@3d-phenomen.fr> <1a60d7f7-8882-9587-ce32-c0c23b612cf2@3d-phenomen.fr> Message-ID: <474ad5c6-b887-5d3b-3367-9ba1905574a6@deganius.de> Am 19.01.21 um 09:57 schrieb Olivier Coquet: > OK I re-post it later in zip format. This won't help. You can try to rename the ending 'tar.gz' to 'txt'. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From olivier.cruilles at yahoo.fr Wed Jan 20 01:38:53 2021 From: olivier.cruilles at yahoo.fr (Linus) Date: Tue, 19 Jan 2021 19:38:53 -0500 Subject: [Gambas-user] Httpd server class & component v0.0.17 In-Reply-To: <474ad5c6-b887-5d3b-3367-9ba1905574a6@deganius.de> References: <045bf692-9dfe-4f49-1c08-3a73acc41f20@3d-phenomen.fr> <1a60d7f7-8882-9587-ce32-c0c23b612cf2@3d-phenomen.fr> <474ad5c6-b887-5d3b-3367-9ba1905574a6@deganius.de> Message-ID: <1C912151-2938-45C9-96CF-1ECE936D2DAD@yahoo.fr> Hello, Olivier, why you don?t simply send your to the Farm of Gambas from the IDE. It should be better for all I think. It?s just a proposition. Olivier Cruilles > Le 19 janv. 2021 ? 18:29, Christof Thalhofer a ?crit : > > Am 19.01.21 um 09:57 schrieb Olivier Coquet: > >> OK I re-post it later in zip format. > > This won't help. You can try to rename the ending 'tar.gz' to 'txt'. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From ocoquet at 3d-phenomen.fr Wed Jan 20 08:20:54 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Wed, 20 Jan 2021 08:20:54 +0100 Subject: [Gambas-user] A piece of code to sort an array of collections In-Reply-To: References: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> Message-ID: Hi Jussi, This make sense :) look more, CInt(Split(tmp_ar, Chr(26), "", True)[1]) is an integer not a string, and try the function, you'll see than it do the job. Friendly, Olivier Le 19/01/2021 ? 22:34, Jussi Lahtinen a ?crit?: > I don't understand what you mean, so I looked at the code... > col[] should take integer, not string, as it is an array of collections. > Also this doesn't make sense at all (unnecessary loop or missing index > & add): > / > / > For i = 0 To tmp_ar.count - 1 > tmp_col = col[CInt(Split(tmp_ar, Chr(26), "", True)[1])] > Next > > /// > /// > Jussi > > On Tue, Jan 19, 2021 at 7:20 PM Olivier Coquet > wrote: > > A little piece of code for anyone wondering how to sort a > collection table on one of its keys. > example: > > dim macollection as collection[] = new collection[] > > macollection.add([ > "clef1": "nimporte quoi", > "clef5": "nimporte quoi aussi" > ]) > > macollection.add([ > "clef1": "1er test", > "clef5": "zzzzz" > ]) > > This array of collections has two elements (collections) each > composed of two keys (key1 and key5) > If they are listed, they will be in the order above. > Let's use this code: > > > Public Function ColSort(col As Collection[], ColKey As String, > trie As Integer) As Collection[] 'Trie d'un tableau de collection > sur la clef demand?e > Dim tmp_col As Collection[] = New Collection[col.count] 'un > tableau de collection temporaire pour les manips > Dim tmp_ar As String[] = New String[] 'un tableau de cha?nes pour > les manips > > For i As Integer = 0 To col.count - 1 'on parcoure les collections > et on r?cup?re > tmp_ar.Add(col/[Colkey] & Chr(26) & i) 'La valeur de clef et le > num?ro d'ordre original > Next > > tmp_ar.Sort(trie) 'on trie le tableau obtenu > For i = 0 To tmp_ar.count - 1 'on parcour le tableau tri? > tmp_col/= col[CInt(Split(tmp_ar/, Chr(26), "", True)[1])] 'on > r?-attribue chaque collection dans le bon ordre > Next > Return tmp_col'on retourne le tableau de collection tri? > End/// > > /////////We call the function like this:/// > > > //////macollection=ColSort(macollection, "clef1", gb.Ascent)////// > > //////And we get an array of collections sorted on the key > "clef1", in ascending order. Note that the function will work for > any key provided, as long as it exists in the collections. > > Magic! > Friendship > Olivier > ////// > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Wed Jan 20 08:22:40 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Wed, 20 Jan 2021 08:22:40 +0100 Subject: [Gambas-user] Httpd server class & component v0.0.17 In-Reply-To: <1C912151-2938-45C9-96CF-1ECE936D2DAD@yahoo.fr> References: <045bf692-9dfe-4f49-1c08-3a73acc41f20@3d-phenomen.fr> <1a60d7f7-8882-9587-ce32-c0c23b612cf2@3d-phenomen.fr> <474ad5c6-b887-5d3b-3367-9ba1905574a6@deganius.de> <1C912151-2938-45C9-96CF-1ECE936D2DAD@yahoo.fr> Message-ID: <10e137e9-0a98-267c-8920-d664720efb0c@3d-phenomen.fr> Hi Olivier, Because the version is a beta-test not finished. I'll go to put it on the Farm in the next days. Friendly, Olivier Coquet Le 20/01/2021 ? 01:38, Linus via User a ?crit?: > Hello, > > Olivier, why you don?t simply send your to the Farm of Gambas from the IDE. > It should be better for all I think. > > It?s just a proposition. > > Olivier Cruilles > > >> Le 19 janv. 2021 ? 18:29, Christof Thalhofer a ?crit : >> >> Am 19.01.21 um 09:57 schrieb Olivier Coquet: >> >>> OK I re-post it later in zip format. >> This won't help. You can try to rename the ending 'tar.gz' to 'txt'. >> >> Alles Gute >> >> Christof Thalhofer >> >> -- >> Dies ist keine Signatur >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From ocoquet at 3d-phenomen.fr Wed Jan 20 10:44:16 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Wed, 20 Jan 2021 10:44:16 +0100 Subject: [Gambas-user] Httpd server class & component v0.0.17 In-Reply-To: <1C912151-2938-45C9-96CF-1ECE936D2DAD@yahoo.fr> References: <045bf692-9dfe-4f49-1c08-3a73acc41f20@3d-phenomen.fr> <1a60d7f7-8882-9587-ce32-c0c23b612cf2@3d-phenomen.fr> <474ad5c6-b887-5d3b-3367-9ba1905574a6@deganius.de> <1C912151-2938-45C9-96CF-1ECE936D2DAD@yahoo.fr> Message-ID: <47ac35cf-8d36-36b3-5ddc-9df0ee4904ee@3d-phenomen.fr> http-server 0.1.17 is in the Farm :) Friendly Olivier Le 20/01/2021 ? 01:38, Linus via User a ?crit?: > Hello, > > Olivier, why you don?t simply send your to the Farm of Gambas from the IDE. > It should be better for all I think. > > It?s just a proposition. > > Olivier Cruilles > > >> Le 19 janv. 2021 ? 18:29, Christof Thalhofer a ?crit : >> >> Am 19.01.21 um 09:57 schrieb Olivier Coquet: >> >>> OK I re-post it later in zip format. >> This won't help. You can try to rename the ending 'tar.gz' to 'txt'. >> >> Alles Gute >> >> Christof Thalhofer >> >> -- >> Dies ist keine Signatur >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From hans at gambas-buch.de Wed Jan 20 13:43:43 2021 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 20 Jan 2021 13:43:43 +0100 Subject: [Gambas-user] WebForm and SessionID Message-ID: <717086c2-ba01-64ba-38b0-43a748351371@gambas-buch.de> Hello, I am using the component gb.web.form in a project. This is the complete source code: Public Sub WebForm_Open() ? WebTextName.SetFocus() ? WebFormLogin.Debug = True ? If Not Session.Id Then ???? WebLabel3.Text = "SESSION.ID = NULL" ? Else ???? WebLabel3.Text = Session.Id ? Endif End After starting the programme in the IDE with an embedded HTTP server, a session ID is displayed in WebLabel3. After pressing F12, you can see in the Firefox web browser that a session cookie is set. According to the documentation, this was *not* to be expected. Question: Is it normal behaviour of a WebForm that a session is immediately created when it is opened? With kind regards Hans From g4mba5 at gmail.com Wed Jan 20 13:52:29 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Jan 2021 13:52:29 +0100 Subject: [Gambas-user] WebForm and SessionID In-Reply-To: <717086c2-ba01-64ba-38b0-43a748351371@gambas-buch.de> References: <717086c2-ba01-64ba-38b0-43a748351371@gambas-buch.de> Message-ID: <577ddf10-4ae3-ab8c-e706-6b991ee7d3ca@gmail.com> Le 20/01/2021 ? 13:43, Hans Lehmann a ?crit?: > Hello, > > I am using the component gb.web.form in a project. This is the complete > source code: > > Public Sub WebForm_Open() > > ? WebTextName.SetFocus() > ? WebFormLogin.Debug = True > > ? If Not Session.Id Then > ???? WebLabel3.Text = "SESSION.ID = NULL" > ? Else > ???? WebLabel3.Text = Session.Id > ? Endif > > End > > After starting the programme in the IDE with an embedded HTTP server, a > session ID is displayed in WebLabel3. After pressing F12, you can see in > the Firefox web browser that a session cookie is set. > > According to the documentation, this was *not* to be expected. > > Question: Is it normal behaviour of a WebForm that a session is > immediately created when it is opened? > > With kind regards > > Hans > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- You must join the full project. All changes in the GUI are stored in the session. As soon as you modify a control, a session is automatically created if needed. Last point: you should use 'gb.web.gui' now. 'gb.web.form' is deprecated. Regards, -- Beno?t Minisini From hans at gambas-buch.de Wed Jan 20 14:37:22 2021 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 20 Jan 2021 14:37:22 +0100 Subject: [Gambas-user] WebForm and SessionID In-Reply-To: <577ddf10-4ae3-ab8c-e706-6b991ee7d3ca@gmail.com> References: <717086c2-ba01-64ba-38b0-43a748351371@gambas-buch.de> <577ddf10-4ae3-ab8c-e706-6b991ee7d3ca@gmail.com> Message-ID: <74f696ee-1c32-9f33-9e46-e87561e07373@gambas-buch.de> Hello. Thanks for the quick reply. I have switched from gb.web.form to gb.web.gui. Now the question remains, how do I call WebForm_B from WebForm_A, because WebForm.Startup = "WebForm_B" returns an error. Regards, Hans From g4mba5 at gmail.com Wed Jan 20 15:06:11 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Jan 2021 15:06:11 +0100 Subject: [Gambas-user] WebForm and SessionID In-Reply-To: <74f696ee-1c32-9f33-9e46-e87561e07373@gambas-buch.de> References: <717086c2-ba01-64ba-38b0-43a748351371@gambas-buch.de> <577ddf10-4ae3-ab8c-e706-6b991ee7d3ca@gmail.com> <74f696ee-1c32-9f33-9e46-e87561e07373@gambas-buch.de> Message-ID: <38f794d6-3f51-be59-ab1d-df8032c497d3@gmail.com> Le 20/01/2021 ? 14:37, Hans Lehmann a ?crit?: > Hello. > > Thanks for the quick reply. > I have switched from gb.web.form to gb.web.gui. Now the question > remains, how do I call WebForm_B from WebForm_A, because WebForm.Startup > = "WebForm_B" returns an error. > > Regards, > > Hans > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- The property has been renamed to "Current". WebForm.Current = MyMainForm Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Wed Jan 20 19:57:31 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 20 Jan 2021 20:57:31 +0200 Subject: [Gambas-user] A piece of code to sort an array of collections In-Reply-To: References: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> Message-ID: No, I meant this; col[Colkey]. The Colkey as string. And no, look more closely, what I said holds. Jussi On Wed, Jan 20, 2021 at 9:22 AM Olivier Coquet wrote: > Hi Jussi, > > This make sense :) > > look more, CInt(Split(tmp_ar, Chr(26), "", True)[1]) is an integer not a > string, and try the function, you'll see than it do the job. > > Friendly, > > Olivier > Le 19/01/2021 ? 22:34, Jussi Lahtinen a ?crit : > > I don't understand what you mean, so I looked at the code... > col[] should take integer, not string, as it is an array of collections. > Also this doesn't make sense at all (unnecessary loop or missing index & > add): > > For i = 0 To tmp_ar.count - 1 > tmp_col = col[CInt(Split(tmp_ar, Chr(26), "", True)[1])] > Next > > > Jussi > > On Tue, Jan 19, 2021 at 7:20 PM Olivier Coquet > wrote: > >> A little piece of code for anyone wondering how to sort a collection >> table on one of its keys. >> example: >> >> dim macollection as collection[] = new collection[] >> >> macollection.add([ >> "clef1": "nimporte quoi", >> "clef5": "nimporte quoi aussi" >> ]) >> >> macollection.add([ >> "clef1": "1er test", >> "clef5": "zzzzz" >> ]) >> >> This array of collections has two elements (collections) each composed of >> two keys (key1 and key5) >> If they are listed, they will be in the order above. >> Let's use this code: >> >> >> Public Function ColSort(col As Collection[], ColKey As String, trie As >> Integer) As Collection[] 'Trie d'un tableau de collection sur la clef >> demand?e >> Dim tmp_col As Collection[] = New Collection[col.count] 'un tableau de >> collection temporaire pour les manips >> Dim tmp_ar As String[] = New String[] 'un tableau de cha?nes pour les >> manips >> >> For i As Integer = 0 To col.count - 1 'on parcoure les collections et on >> r?cup?re >> tmp_ar.Add(col >> >> >> >> >> >> >> >> *[Colkey] & Chr(26) & i) 'La valeur de clef et le num?ro d'ordre original >> Next tmp_ar.Sort(trie) 'on trie le tableau obtenu For i = 0 To tmp_ar.count >> - 1 'on parcour le tableau tri? tmp_col = col[CInt(Split(tmp_ar, Chr(26), >> "", True)[1])] 'on r?-attribue chaque collection dans le bon ordre Next >> Return tmp_col 'on retourne le tableau de collection tri? End* >> >> *We call the function like this:* >> >> >> *macollection=ColSort(macollection, "clef1", gb.Ascent)* >> >> >> >> >> >> >> *And we get an array of collections sorted on the key "clef1", in >> ascending order. Note that the function will work for any key provided, as >> long as it exists in the collections. Magic! Friendship Olivier * >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Thu Jan 21 08:38:12 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 21 Jan 2021 08:38:12 +0100 Subject: [Gambas-user] A piece of code to sort an array of collections In-Reply-To: References: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> Message-ID: <1dfce73a-62d7-3d6c-8383-40fddd37088b@3d-phenomen.fr> Sorry my English is not very good, In fact, this function does not sort the array but the collections it contains. In other words, if a collection array contains several collections, the collections are not necessarily in order. For example: let's imagine an array that contains three collections composed of three key/value pairs (name/surname/town). This function will sort the collections in alphabetical order on any key. If you want to have the collections in the order of towns, just specify "town" in the function call, and the collections will be sorted on the key "town". As far as I know, no Gambas function does that, and yet it is very convenient. Friendship Olivier Le 20/01/2021 ? 19:57, Jussi Lahtinen a ?crit?: > No, I meant this; col[Colkey]. The Colkey as string. > And no, look more closely, what I said holds. > > Jussi From kicking177 at gmail.com Thu Jan 21 11:16:11 2021 From: kicking177 at gmail.com (KKing) Date: Thu, 21 Jan 2021 10:16:11 +0000 Subject: [Gambas-user] ODBC - unable to fetch row Message-ID: <8640826b-55a3-1f7a-adc4-6647452b9836@gmail.com> In Debian 10 with Gambas 3.12.2 from Debian repo I have a user based .odbc.ini containing > [MyTest] > Description = MyTest > Driver=/usr/lib/x86_64-linux-gnu/odbc/libmdbodbc.so > Servername = localhost > Database = /home/user01/Northwind.mdb > Name = > Password = > port = 5432 and from a bash prompt (outside of Gambas) I can > $ isql -v mytest > +---------------------------------------+ > | Connected!??????????????????????????? | > |?????????????????????????????????????? | > | sql-statement???????????????????????? | > | help [tablename]????????????????????? | > | quit????????????????????????????????? | > |?????????????????????????????????????? | > +---------------------------------------+ > SQL> select * from shippers > +------------+-----------------------------------------+-------------------------+ > | ShipperID? | CompanyName???????????????????????????? | > Phone?????????????????? | > +------------+-----------------------------------------+-------------------------+ > | 1????????? | Speedy Express????????????????????????? | (503) > 555-9831????????? | > | 2????????? | United Package????????????????????????? | (503) > 555-3199????????? | > | 3????????? | Federal Shipping??????????????????????? | (503) > 555-9931????????? | > +------------+-----------------------------------------+-------------------------+ > SQLRowCount returns 3 > 3 rows fetched > SQL> BUT when I start a new gambas project (using gb.db and gb.db.odbc) with only this code > ? Dim $con As New Connection > ? Dim intCount As Integer > ? Dim rs As Result > ? Dim $ExecCmd As String > > ? Try $con.Close() > ? $con.Type = "odbc" > ? $con.Host = "mytestb" > ? $con.Open() > ? $ExecCmd = "SELECT * FROM Shippers " > ? rs = $con.Exec($ExecCmd) > ? intCount = rs.Count I get error on the $con.Exec line of > unable to fetch row what am I missing of failed to do to allow Gambas to interact with? K. From kicking177 at gmail.com Thu Jan 21 11:25:55 2021 From: kicking177 at gmail.com (KKing) Date: Thu, 21 Jan 2021 10:25:55 +0000 Subject: [Gambas-user] ODBC - unable to fetch row Message-ID: fyi I had a typo in what I posted in previous msg, line that says > $con.Host = "mytestb" should be > $con.Host = "mytest" result is still the same. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Jan 21 18:53:41 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 21 Jan 2021 19:53:41 +0200 Subject: [Gambas-user] A piece of code to sort an array of collections In-Reply-To: <1dfce73a-62d7-3d6c-8383-40fddd37088b@3d-phenomen.fr> References: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> <1dfce73a-62d7-3d6c-8383-40fddd37088b@3d-phenomen.fr> Message-ID: I believe you have working code, but it definitely is NOT the one you posted. It does not work. Moreover, collections shouldn't be sorted. They are not indexed. Jussi On Thu, Jan 21, 2021 at 9:39 AM Olivier Coquet wrote: > Sorry my English is not very good, > In fact, this function does not sort the array but the collections it > contains. > In other words, if a collection array contains several collections, the > collections are not necessarily in order. > For example: > let's imagine an array that contains three collections composed of three > key/value pairs (name/surname/town). > This function will sort the collections in alphabetical order on any key. > If you want to have the collections in the order of towns, just specify > "town" in the function call, and the collections will be sorted on the > key "town". > As far as I know, no Gambas function does that, and yet it is very > convenient. > > Friendship > Olivier > > Le 20/01/2021 ? 19:57, Jussi Lahtinen a ?crit : > > No, I meant this; col[Colkey]. The Colkey as string. > > And no, look more closely, what I said holds. > > > > Jussi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Thu Jan 21 19:20:59 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Thu, 21 Jan 2021 19:20:59 +0100 Subject: [Gambas-user] A piece of code to sort an array of collections In-Reply-To: References: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> <1dfce73a-62d7-3d6c-8383-40fddd37088b@3d-phenomen.fr> Message-ID: <3a672dd2-462b-1d26-09a1-594052b9e183@3d-phenomen.fr> Here is the code I use all days(copy and paste directly from my one code): Public Function ColSort(col As Collection[], ColKey As String, trie As Integer) As Collection[] ?? Dim tmp_col As Collection[] = New Collection[col.count] ?? Dim tmp_ar As String[] = New String[] ?? For i As Integer = 0 To col.count - 1 ????? tmp_ar.Add(col[i][Colkey] & Chr(26) & i) ?? Next ?? tmp_ar.Sort(trie) ?? For i = 0 To tmp_ar.count - 1 ????? tmp_col[i] = col[CInt(Split(tmp_ar[i], Chr(26), "", True)[1])] ?? Next ?? Return tmp_col End And it work ! And I don't understand why you are saying that collections in an array shouldn't be sorted, it doesn't make sense ? in an array of collections, there is an index for each collection. If array is "ColArray" We can retrieve the 5eme collection with: ColArray[5] <==5 is the index and all array have an index. Friendly Olivier Le 21/01/2021 ? 18:53, Jussi Lahtinen a ?crit?: > I believe you have working code, but it definitely is NOT the one you > posted. It does not work. > Moreover, collections shouldn't be sorted. They are not indexed. > > Jussi > > > On Thu, Jan 21, 2021 at 9:39 AM Olivier Coquet > wrote: > > Sorry my English is not very good, > In fact, this function does not sort the array but the collections it > contains. > In other words, if a collection array contains several > collections, the > collections are not necessarily in order. > For example: > let's imagine an array that contains three collections composed of > three > key/value pairs (name/surname/town). > This function will sort the collections in alphabetical order on > any key. > If you want to have the collections in the order of towns, just > specify > "town" in the function call, and the collections will be sorted on > the > key "town". > As far as I know, no Gambas function does that, and yet it is very > convenient. > > Friendship > Olivier > > Le 20/01/2021 ? 19:57, Jussi Lahtinen a ?crit?: > > No, I meant this; col[Colkey]. The Colkey as string. > > And no, look more closely, what I said holds. > > > > Jussi > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Jan 21 19:33:40 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 21 Jan 2021 20:33:40 +0200 Subject: [Gambas-user] A piece of code to sort an array of collections In-Reply-To: <3a672dd2-462b-1d26-09a1-594052b9e183@3d-phenomen.fr> References: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> <1dfce73a-62d7-3d6c-8383-40fddd37088b@3d-phenomen.fr> <3a672dd2-462b-1d26-09a1-594052b9e183@3d-phenomen.fr> Message-ID: > > Here is the code I use all days(copy and paste directly from my one code): > > Public Function ColSort(col As Collection[], ColKey As String, trie As > Integer) As Collection[] > Dim tmp_col As Collection[] = New Collection[col.count] > Dim tmp_ar As String[] = New String[] > > For i As Integer = 0 To col.count - 1 > tmp_ar.Add(col[i][Colkey] & Chr(26) & i) > Next > > tmp_ar.Sort(trie) > For i = 0 To tmp_ar.count - 1 > tmp_col[i] = col[CInt(Split(tmp_ar[i], Chr(26), "", True)[1])] > Next > Return tmp_col > End > > And it work ! > > And I don't understand why you are saying that collections in an array > shouldn't be sorted, it doesn't make sense ? > > in an array of collections, there is an index for each collection. If > array is "ColArray" > > We can retrieve the 5eme collection with: ColArray[5] <==5 is the index > and all array have an index. > OK, this looks better. It is not the same code you posted earlier (if you don't believe me, look yourself). Collections are not guaranteed to keep order or so Benoit has said. I don't know in what situation the order can change. Maybe I have misunderstood that. Collections have key, not index. The key can be a number, but it is still key. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 21 22:08:25 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Jan 2021 22:08:25 +0100 Subject: [Gambas-user] A piece of code to sort an array of collections In-Reply-To: References: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> <1dfce73a-62d7-3d6c-8383-40fddd37088b@3d-phenomen.fr> <3a672dd2-462b-1d26-09a1-594052b9e183@3d-phenomen.fr> Message-ID: <31ea719c-f33b-e4d0-a8ca-c5ea1bfc017f@gmail.com> Le 21/01/2021 ? 19:33, Jussi Lahtinen a ?crit?: > > OK, this looks better. It is not the same code you posted earlier (if > you don't believe me, look yourself). Yes, the initial code was a non-sense. > Collections are not guaranteed to keep order or so Benoit has said. I > don't know in what situation the order can change. They do: collections always enumerate its values in the order they were inserted. https://gambaswiki.org/wiki/comp/gb/collection/_next Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Thu Jan 21 22:17:18 2021 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 21 Jan 2021 13:17:18 -0800 (PST) Subject: [Gambas-user] Updated wiki for scripter information Message-ID: <1542635334.8409.1611263838314.JavaMail.zimbra@westwoodsvcs.com> I have updated the scripter information on the wiki and the use command page. If anyone has any comments please let me know. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Jan 21 22:30:48 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 21 Jan 2021 23:30:48 +0200 Subject: [Gambas-user] A piece of code to sort an array of collections In-Reply-To: <31ea719c-f33b-e4d0-a8ca-c5ea1bfc017f@gmail.com> References: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> <1dfce73a-62d7-3d6c-8383-40fddd37088b@3d-phenomen.fr> <3a672dd2-462b-1d26-09a1-594052b9e183@3d-phenomen.fr> <31ea719c-f33b-e4d0-a8ca-c5ea1bfc017f@gmail.com> Message-ID: > > > Collections are not guaranteed to keep order or so Benoit has said. I > > don't know in what situation the order can change. > > They do: collections always enumerate its values in the order they were > inserted. > > https://gambaswiki.org/wiki/comp/gb/collection/_next > OK, thanks for the clarification. It seems there was miscommunication, he is sorting the array of collections, not the collections. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Jan 22 06:28:59 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 22 Jan 2021 05:28:59 +0000 Subject: [Gambas-user] Local changed source files after compile (commit?) Message-ID: If i create a branch of gambas and then compile/install it all the local INSTALL files change and it shows on git status as changes to be committed? Is it harmless and not worth thinking about to just push the modifications back to the git repository after compilation? Cheers in advance BruceS Here is what 'git status' shows once i have compiled a gambas branch on my computer... On branch bruces-patched Your branch is up to date with 'origin/bruces-patched'. Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git restore ..." to discard changes in working directory) modified: INSTALL modified: app/INSTALL modified: comp/INSTALL typechange: gb.cairo/INSTALL typechange: gb.compress.bzlib2/INSTALL typechange: gb.compress.zlib/INSTALL typechange: gb.crypt/INSTALL typechange: gb.db.mysql/INSTALL typechange: gb.db.odbc/INSTALL typechange: gb.db.postgresql/INSTALL typechange: gb.db.sqlite2/INSTALL typechange: gb.db.sqlite3/INSTALL typechange: gb.dbus/INSTALL typechange: gb.desktop.gnome.keyring/INSTALL typechange: gb.desktop.x11/INSTALL typechange: gb.gmp/INSTALL typechange: gb.gsl/INSTALL typechange: gb.gtk/INSTALL typechange: gb.gtk3/INSTALL typechange: gb.httpd/INSTALL typechange: gb.image.imlib/INSTALL typechange: gb.image.io/INSTALL typechange: gb.libxml/INSTALL typechange: gb.media/INSTALL typechange: gb.mime/INSTALL typechange: gb.ncurses/INSTALL typechange: gb.net.curl/INSTALL typechange: gb.net/INSTALL typechange: gb.openal/INSTALL typechange: gb.opengl/INSTALL typechange: gb.openssl/INSTALL typechange: gb.pcre/INSTALL typechange: gb.pdf/INSTALL typechange: gb.poppler/INSTALL typechange: gb.qt4/INSTALL typechange: gb.qt5/INSTALL typechange: gb.sdl.sound/INSTALL typechange: gb.sdl/INSTALL typechange: gb.sdl2/INSTALL typechange: gb.v4l/INSTALL typechange: gb.xml/INSTALL modified: main/INSTALL no changes added to commit (use "git add" and/or "git commit -a") -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 22 08:06:44 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 22 Jan 2021 08:06:44 +0100 Subject: [Gambas-user] Local changed source files after compile (commit?) In-Reply-To: References: Message-ID: <0df5abb8-69e3-bce9-e545-1096bad08f47@gmail.com> Le 22/01/2021 ? 06:28, Bruce Steers a ?crit?: > If i create a branch of gambas and then compile/install it all the local > INSTALL files change and it shows on git status as changes to be committed? > > Is it harmless and not worth thinking about to just push the > modifications back to the git repository after compilation? > > Cheers in advance > BruceS > > Here is what 'git status' shows once i have compiled a gambas branch on > my computer... > It means that you did something wrong... -- Beno?t Minisini From ocoquet at 3d-phenomen.fr Fri Jan 22 08:43:32 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Fri, 22 Jan 2021 08:43:32 +0100 Subject: [Gambas-user] A piece of code to sort an array of collections In-Reply-To: References: <7746fcb3-c367-4f1a-390b-ebba171f41a0@3d-phenomen.fr> <1dfce73a-62d7-3d6c-8383-40fddd37088b@3d-phenomen.fr> <3a672dd2-462b-1d26-09a1-594052b9e183@3d-phenomen.fr> <31ea719c-f33b-e4d0-a8ca-c5ea1bfc017f@gmail.com> Message-ID: <3413ad92-c7a3-a861-8d5d-14f604085acb@3d-phenomen.fr> Indeed, there was an error in the first code and I hadn't seen it. In this line: tmp_ar.Add(col[Colkey] & Chr(26) & i) the [i] is missing at this point: tmp_ar.Add(col*[i]*[Colkey] & Chr(26) & i) My apologies, I don't know how this could have happened. Friendship Olivier Le 21/01/2021 ? 22:30, Jussi Lahtinen a ?crit?: > > > Collections are not guaranteed to keep order or so Benoit has > said. I > > don't know in what situation the order can change. > > They do: collections always enumerate its values in the order they > were > inserted. > > https://gambaswiki.org/wiki/comp/gb/collection/_next > > > > OK, thanks for the clarification. It seems there was miscommunication, > he is sorting the array of collections, not the collections. > > > Jussi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Jan 22 15:02:24 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 22 Jan 2021 14:02:24 +0000 Subject: [Gambas-user] Local changed source files after compile (commit?) In-Reply-To: <0df5abb8-69e3-bce9-e545-1096bad08f47@gmail.com> References: <0df5abb8-69e3-bce9-e545-1096bad08f47@gmail.com> Message-ID: darn , I only wish i knew what it was. Cheers Ben, Knowing it is not normal i ran 'git reset --hard' and it fixed it. Seems okay now. Any idea what may have caused something to modify every single INSTALL file so i can avoid it in future? Wishing well. BruceS On Fri, 22 Jan 2021 at 07:07, Beno?t Minisini wrote: > Le 22/01/2021 ? 06:28, Bruce Steers a ?crit : > > If i create a branch of gambas and then compile/install it all the local > > INSTALL files change and it shows on git status as changes to be > committed? > > > > Is it harmless and not worth thinking about to just push the > > modifications back to the git repository after compilation? > > > > Cheers in advance > > BruceS > > > > Here is what 'git status' shows once i have compiled a gambas branch on > > my computer... > > > > It means that you did something wrong... > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Fri Jan 22 15:13:08 2021 From: kicking177 at gmail.com (KKing) Date: Fri, 22 Jan 2021 14:13:08 +0000 Subject: [Gambas-user] ODBC - unable to fetch row Message-ID: So my original issue may be related to mdbtools and debian in that most doco suggests the odbc.ini Driver setting should relate to the section name in /etc/odbcinst.ini in Debian mdbtools standard install would be [MDBTools] but this fails with isql and only works if the odbc.ini Driver setting points to the actual driver file in /usr/lib/..../libmdbodbc.so I am guessing the Gambas odbc component is not coping with this... will try to look into the gb.db.odbc code. But I also have a another odbc question. While trying to test out if it is more mdbtools and or debian I have setup a test to point to a sqlite db via odbc (yes I know gambas can go direct) isql select * from sampleTable returns 1,000 records ... but the following Gambas code only returns the first record? > ? Dim $con As New Connection > ? Dim intCount As Integer > ? Dim rs As Result > ? Dim $ExecCmd As String > > ? Try $con.Close() > ? $con.Type = "odbc" > ? $con.Host = "mysqlitedb" > ? $con.Open() > > ? $ExecCmd = "SELECT * FROM sampleTable " > > ? rs = $con.Exec($ExecCmd) > > ? intCount = rs.Count > > ? While (rs.Available) > ??? Print "s_seq:" & rs!s_seq > ??? rs.MoveNext > ? Wend > From g4mba5 at gmail.com Fri Jan 22 15:17:38 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 22 Jan 2021 15:17:38 +0100 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: References: Message-ID: <7ff01662-ec2e-e830-5a0d-886f5cd5730f@gmail.com> Le 22/01/2021 ? 15:13, KKing a ?crit?: > So my original issue may be related to mdbtools and debian in that most > doco suggests the odbc.ini Driver setting should relate to the section > name in /etc/odbcinst.ini in Debian mdbtools standard install would be > [MDBTools] but this fails with isql and only works if the odbc.ini > Driver setting points to the actual driver file in > /usr/lib/..../libmdbodbc.so > I am guessing the Gambas odbc component is not coping with this... will > try to look into the gb.db.odbc code. > > But I also have a another odbc question. While trying to test out if it > is more mdbtools and or debian I have setup a test to point to a sqlite > db via odbc (yes I know gambas can go direct) > isql select * from sampleTable returns 1,000 records ... but the > following Gambas code only returns the first record? >> ? Dim $con As New Connection >> ? Dim intCount As Integer >> ? Dim rs As Result >> ? Dim $ExecCmd As String >> >> ? Try $con.Close() >> ? $con.Type = "odbc" >> ? $con.Host = "mysqlitedb" >> ? $con.Open() >> >> ? $ExecCmd = "SELECT * FROM sampleTable " >> >> ? rs = $con.Exec($ExecCmd) >> >> ? intCount = rs.Count >> >> ? While (rs.Available) >> ??? Print "s_seq:" & rs!s_seq >> ??? rs.MoveNext >> ? Wend >> > It's hard for me to help, as I don't know ODBC and didn't write the driver. But I know that the ODBC driver exposes many ways of browsing the result of a query, and I guess the failure is related to that. Maybe failing to use the accurate request browsing method, and/or detecting the end of the query result list... ? -- Beno?t Minisini From mckaygerhard at gmail.com Sat Jan 23 00:51:44 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 22 Jan 2021 19:51:44 -0400 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: <7ff01662-ec2e-e830-5a0d-886f5cd5730f@gmail.com> References: <7ff01662-ec2e-e830-5a0d-886f5cd5730f@gmail.com> Message-ID: HEy kicking177 check #1100 http://gambaswiki.org/bugtracker/edit?object=BUG.1100 odbc cannot count on resultset.. is not part of the standar cos not all the db's can report it check my documentation: http://gambaswiki.org/wiki/howto/odbcdatabase#t7 BUT STILL ARE NOT WORKING odbc module are broken changed to devel environment after investigate it, the culprit is the benoit's commits changed behaviour that produces this new error ? (yeah benoit i must take your attention on this and you too zxmarce): https://gitlab.com/gambas/gambas/commit/aa67ba1309bde70e8b528be833ba06a8d124cbd1 maybe that's why i cannot reproduce in gambas 3.9 and 3.11+ has that problem.. https://gitlab.com/gambas/gambas/commit/e07ac2e4f2588f62bb55aa2b8351a08a810c1586 i not teste 3.14 neither 3.15 yet.. cos i not backported the very bad made ppa packages yet.. and debian ones limits the features.. (not qt4 not sqtlie2 etc etc etc) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com El vie, 22 de ene. de 2021 a la(s) 10:18, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > Le 22/01/2021 ? 15:13, KKing a ?crit : > > So my original issue may be related to mdbtools and debian in that most > > doco suggests the odbc.ini Driver setting should relate to the section > > name in /etc/odbcinst.ini in Debian mdbtools standard install would be > > [MDBTools] but this fails with isql and only works if the odbc.ini > > Driver setting points to the actual driver file in > > /usr/lib/..../libmdbodbc.so > > I am guessing the Gambas odbc component is not coping with this... will > > try to look into the gb.db.odbc code. > > > > But I also have a another odbc question. While trying to test out if it > > is more mdbtools and or debian I have setup a test to point to a sqlite > > db via odbc (yes I know gambas can go direct) > > isql select * from sampleTable returns 1,000 records ... but the > > following Gambas code only returns the first record? > >> Dim $con As New Connection > >> Dim intCount As Integer > >> Dim rs As Result > >> Dim $ExecCmd As String > >> > >> Try $con.Close() > >> $con.Type = "odbc" > >> $con.Host = "mysqlitedb" > >> $con.Open() > >> > >> $ExecCmd = "SELECT * FROM sampleTable " > >> > >> rs = $con.Exec($ExecCmd) > >> > >> intCount = rs.Count > >> > >> While (rs.Available) > >> Print "s_seq:" & rs!s_seq > >> rs.MoveNext > >> Wend > >> > > > > It's hard for me to help, as I don't know ODBC and didn't write the driver. > > But I know that the ODBC driver exposes many ways of browsing the result > of a query, and I guess the failure is related to that. Maybe failing to > use the accurate request browsing method, and/or detecting the end of > the query result list... ? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d4t4full at gmail.com Sat Jan 23 03:16:10 2021 From: d4t4full at gmail.com (d4t4full at gmail.com) Date: Fri, 22 Jan 2021 23:16:10 -0300 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: <7ff01662-ec2e-e830-5a0d-886f5cd5730f@gmail.com> References: <7ff01662-ec2e-e830-5a0d-886f5cd5730f@gmail.com> Message-ID: (hope I'm replying to the right address, and sorry for top-posting: writing from phone) I did download at home Northwind.Mdb, MS's test Access database, and -sure enough- got the same issue. Now, thanks to the pandemic, my dev machine is not easily reachable for me as it is at the office. I will try to make some time as soon as possible to get a dev environment and check why MDB data fetch fails. If I do get to the actual issue, I'll try to fix it, but can't really promise anything. I got to fix Firebird in the past, but this sounds a little trickier. Regards, zxMarce. On Jan 22, 2021, 11:18, at 11:18, "Beno?t Minisini" wrote: >Le 22/01/2021 ? 15:13, KKing a ?crit?: >> So my original issue may be related to mdbtools and debian in that >most >> doco suggests the odbc.ini Driver setting should relate to the >section >> name in /etc/odbcinst.ini in Debian mdbtools standard install would >be >> [MDBTools] but this fails with isql and only works if the odbc.ini >> Driver setting points to the actual driver file in >> /usr/lib/..../libmdbodbc.so >> I am guessing the Gambas odbc component is not coping with this... >will >> try to look into the gb.db.odbc code. >> >> But I also have a another odbc question. While trying to test out if >it >> is more mdbtools and or debian I have setup a test to point to a >sqlite >> db via odbc (yes I know gambas can go direct) >> isql select * from sampleTable returns 1,000 records ... but the >> following Gambas code only returns the first record? >>> ? Dim $con As New Connection >>> ? Dim intCount As Integer >>> ? Dim rs As Result >>> ? Dim $ExecCmd As String >>> >>> ? Try $con.Close() >>> ? $con.Type = "odbc" >>> ? $con.Host = "mysqlitedb" >>> ? $con.Open() >>> >>> ? $ExecCmd = "SELECT * FROM sampleTable " >>> >>> ? rs = $con.Exec($ExecCmd) >>> >>> ? intCount = rs.Count >>> >>> ? While (rs.Available) >>> ??? Print "s_seq:" & rs!s_seq >>> ??? rs.MoveNext >>> ? Wend >>> >> > >It's hard for me to help, as I don't know ODBC and didn't write the >driver. > >But I know that the ODBC driver exposes many ways of browsing the >result >of a query, and I guess the failure is related to that. Maybe failing >to >use the accurate request browsing method, and/or detecting the end of >the query result list... ? > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Jan 23 09:05:21 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 23 Jan 2021 09:05:21 +0100 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: <8640826b-55a3-1f7a-adc4-6647452b9836@gmail.com> References: <8640826b-55a3-1f7a-adc4-6647452b9836@gmail.com> Message-ID: <1da5e1e4-ac19-a73a-cfb1-8ba6d3ced323@deganius.de> Am 21.01.21 um 11:16 schrieb KKing: > In Debian 10 with Gambas 3.12.2 from Debian repo I have a user based > .odbc.ini containing >> [MyTest] >> Description = MyTest >> Driver=/usr/lib/x86_64-linux-gnu/odbc/libmdbodbc.so >> Servername = localhost >> Database = /home/user01/Northwind.mdb >> Name = >> Password = >> port = 5432 Why do you want to interact with an old MsAccess mdb? This is a very ugly piece of a database. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From gambas.fr at gmail.com Sat Jan 23 09:51:24 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 23 Jan 2021 09:51:24 +0100 Subject: [Gambas-user] To Benoit, windows decorator Message-ID: Hi, Benoit Do you think there is a way to have windows decorator active without drawing title widget ? I want to make a gnome style header (for a billing app on tactil tablet), but if I choose border=false I loose border shadows (on gnome or cinnamon) and resizing options. so maybe a new form option like 'ShowTitle'... :-) regards, Fabien Bodard -- Fabien Bodard From kicking177 at gmail.com Sat Jan 23 11:13:58 2021 From: kicking177 at gmail.com (KKing) Date: Sat, 23 Jan 2021 10:13:58 +0000 Subject: [Gambas-user] ODBC - unable to fetch row Message-ID: <91ffee77-2e26-d7f3-c773-ed67980c5758@gmail.com> fyi I did replicate both issues on 3.15.2 (from repo) on Debian 11 (Bullseye). @Benoit > as I don't know ODBC and didn't write the driver no problem, I only know how to (attempt to) use ODBC :-) @PICCORO > odbc cannot count on resultset Thank you for confirming and the link. @Christof > Why do you want to interact with an old MsAccess mdb? > This is a very ugly piece of a database. Because I have a potential client who has a large amount of their information in multiple MDB's. We are looking at various solutions that may slowly migrate them off those and onto either sqlite if standalone or MySQL/MariaDB/Postrgres if serious multiuser need. Depending on timescales and approach may require read only access to some of the MDB's for a period of time, there is also a desire to do some back to back testing and or parallel running where we can confirm any replacement system does generate and store the same information as was generated in the MDB. @zxMarce. > I did download at home Northwind.Mdb, MS's test Access database, and > -sure enough- got the same issue > > I will try Thank you, I started looking at code, but. K. From chrisml at deganius.de Sat Jan 23 13:44:49 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 23 Jan 2021 13:44:49 +0100 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: <91ffee77-2e26-d7f3-c773-ed67980c5758@gmail.com> References: <91ffee77-2e26-d7f3-c773-ed67980c5758@gmail.com> Message-ID: Am 23.01.21 um 11:13 schrieb KKing: > @Christof >> Why do you want to interact with an old MsAccess mdb? >> This is a very ugly piece of a database. > Because I have a potential client who has a large amount of their > information in multiple MDB's. We are looking at various solutions that > may slowly migrate them off those and onto either sqlite if standalone > or MySQL/MariaDB/Postrgres if serious multiuser need. Depending on > timescales and approach may require read only access to some of the > MDB's for a period of time, there is also a desire to do some back to > back testing and or parallel running where we can confirm any > replacement system does generate and store the same information as was > generated in the MDB. Ok then i would recommend at first creating a migration path to Postgresql (which i also recommend over Mysql/Mariadb) or Sqlite. Because Gambas works best with these databases. If you want to use Gambas you will further or later have to do the migration work. But if you want to marry Gambas with Access databases you will struggle and have unnecessary work. If you have migration scripts which work then you can switch over to Gambas/PG at any time you have the Gambas application done. You may even be able to work on PG dbs with Access and Gambas in parallel. For Postgresql you may want to have a look at this: https://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL#Microsoft_Access I had the data of my firm in MS Access and mdb databases about 20 years ago, then first migrated the data to PG and later replaced the Access VBA application with Gambas. So I know, what i am talking about. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From kicking177 at gmail.com Sat Jan 23 14:24:23 2021 From: kicking177 at gmail.com (KKing) Date: Sat, 23 Jan 2021 13:24:23 +0000 Subject: [Gambas-user] ODBC - unable to fetch row Message-ID: @Christof Thank you and in some scenarios what you suggest is perfect. However in this instance the client wants the existing applications to remain functioning as is untouched and be able to continue using them and even revert back to... should they decide to. There are a number of different applications some are purely Access but some I suspect are VB6 for which they have no source. K. From mckaygerhard at gmail.com Sat Jan 23 16:25:55 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 23 Jan 2021 11:25:55 -0400 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: References: Message-ID: Chris.. migration is not the case if this topic.. the ODBC module in gambas is a crap right now.. doe snot work.. and i put all the info need to fix them.. lest apart the crap of ms access.. i tested agains Sybase, DB2 and oracle and ODBC gambas module is just crap.. does not work.. check the info i put here again i repeat.. msaccess/mssql is shit and in my opinion the client is stupid but KKind has a point.. there is running projects and must contiue to run.. @zxMArce i repeat the need info: BUT STILL ARE NOT WORKING odbc module are broken changed to devel environment after investigate it, the culprit is the benoit's commits changed behaviour that produces this new error ? (yeah benoit i must take your attention on this and you too zxmarce): https://gitlab.com/gambas/gambas/commit/aa67ba1309bde70e8b528be833ba06a8d124cbd1 maybe that's why i cannot reproduce in gambas 3.9 and 3.11+ has that problem.. https://gitlab.com/gambas/gambas/commit/e07ac2e4f2588f62bb55aa2b8351a08a810c1586 El s?b, 23 de ene. de 2021 a la(s) 09:25, KKing (kicking177 at gmail.com) escribi?: > @Christof > > Thank you and in some scenarios what you suggest is perfect. However in > this instance the client wants the existing applications to remain > functioning as is untouched and be able to continue using them and even > revert back to... should they decide to. There are a number of different > applications some are purely Access but some I suspect are VB6 for which > they have no source. > K. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jan 23 18:05:13 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 23 Jan 2021 18:05:13 +0100 Subject: [Gambas-user] To Benoit, windows decorator In-Reply-To: References: Message-ID: <067f4d3c-c005-1b01-41b1-af8137fee648@gmail.com> Le 23/01/2021 ? 09:51, Fabien Bodard a ?crit?: > Hi, Benoit > > Do you think there is a way to have windows decorator active without > drawing title widget ? > > I want to make a gnome style header (for a billing app on tactil > tablet), but if I choose border=false I loose border shadows (on gnome > or cinnamon) and resizing options. > > so maybe a new form option like 'ShowTitle'... :-) > > regards, > > Fabien Bodard > Yes, it should be possible. -- Beno?t Minisini From bsteers4 at gmail.com Sat Jan 23 18:07:23 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 23 Jan 2021 17:07:23 +0000 Subject: [Gambas-user] Local changed source files after compile (commit?) In-Reply-To: <0df5abb8-69e3-bce9-e545-1096bad08f47@gmail.com> References: <0df5abb8-69e3-bce9-e545-1096bad08f47@gmail.com> Message-ID: I think its using ./reconf-all --force Turns out to be a bad move. Guess I'd better stop doing that then. On Fri, 22 Jan 2021, 07:07 Beno?t Minisini, wrote: > Le 22/01/2021 ? 06:28, Bruce Steers a ?crit : > > If i create a branch of gambas and then compile/install it all the local > > INSTALL files change and it shows on git status as changes to be > committed? > > > > Is it harmless and not worth thinking about to just push the > > modifications back to the git repository after compilation? > > > > Cheers in advance > > BruceS > > > > Here is what 'git status' shows once i have compiled a gambas branch on > > my computer... > > > > It means that you did something wrong... > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jan 23 18:31:29 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 23 Jan 2021 18:31:29 +0100 Subject: [Gambas-user] Local changed source files after compile (commit?) In-Reply-To: References: <0df5abb8-69e3-bce9-e545-1096bad08f47@gmail.com> Message-ID: <77c1aa3f-ee2f-a8e1-3056-330a80de902a@gmail.com> Le 23/01/2021 ? 18:07, Bruce Steers a ?crit?: > I think its using ./reconf-all --force > > Turns out to be a bad move. > Guess I'd better stop doing that then. > I have never told to do that. Maybe I should explicitly tell -not- doing that then? -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 23 18:49:12 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 23 Jan 2021 18:49:12 +0100 Subject: [Gambas-user] To Benoit, windows decorator In-Reply-To: <067f4d3c-c005-1b01-41b1-af8137fee648@gmail.com> References: <067f4d3c-c005-1b01-41b1-af8137fee648@gmail.com> Message-ID: <6296c498-72fa-d4ee-dc92-8b154dd00990@gmail.com> Le 23/01/2021 ? 18:05, Beno?t Minisini a ?crit?: > Le 23/01/2021 ? 09:51, Fabien Bodard a ?crit?: >> Hi, Benoit >> >> Do you think there is a way to have windows decorator active without >> drawing title widget ? >> >> I want to make a gnome style header (for a billing app on tactil >> tablet), but if I choose border=false I loose border shadows (on gnome >> or cinnamon) and resizing options. >> >> so maybe a new form option like 'ShowTitle'... :-) >> >> regards, >> >> Fabien Bodard >> > > Yes, it should be possible. > I tried with Qt on KDE, but it seems that the flags that configure the window titlebar and buttons have no effect at all. So at the moment it's apparently not possible... -- Beno?t Minisini From bsteers4 at gmail.com Sat Jan 23 19:43:29 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 23 Jan 2021 18:43:29 +0000 Subject: [Gambas-user] Local changed source files after compile (commit?) In-Reply-To: <77c1aa3f-ee2f-a8e1-3056-330a80de902a@gmail.com> References: <0df5abb8-69e3-bce9-e545-1096bad08f47@gmail.com> <77c1aa3f-ee2f-a8e1-3056-330a80de902a@gmail.com> Message-ID: It was something i started using back when I had that problem that got fixed by completely deleting everything gambas and re-installing. The --force option looked like it might help, like a more thorough reconf. Too much though I guess. I even included the option in my gambas upgrade utility but removed it now of course. Glad I know now, cant imagine many others doing the same as me so probably no need to document. Well wishes BruceS On Sat, 23 Jan 2021, 17:32 Beno?t Minisini, wrote: > Le 23/01/2021 ? 18:07, Bruce Steers a ?crit : > > I think its using ./reconf-all --force > > > > Turns out to be a bad move. > > Guess I'd better stop doing that then. > > > > I have never told to do that. Maybe I should explicitly tell -not- doing > that then? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Sun Jan 24 11:11:26 2021 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 24 Jan 2021 11:11:26 +0100 Subject: [Gambas-user] Error WebTimer in gb.web.gui Message-ID: <7d97a330-7d9c-6bda-bde3-061c55052b2f@gambas-buch.de> An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sun Jan 24 14:52:42 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 24 Jan 2021 05:52:42 -0800 (PST) Subject: [Gambas-user] Doing keyword operations/lookups Message-ID: <864350664.9850.1611496362896.JavaMail.zimbra@westwoodsvcs.com> I have attached a script which compares two methods of handling keyword processing in a program. That is looking up the symbol followed by doing processing as required. Method one used a collection, and key word index lookup the value being an integer index, followed by an On key Goto xxx,xxx,xxx,... Method two uses select and case for the keys The first method it two to three times faster than the second especially when using fast. Would the first method be considered usable, or is there a better way to gain the performance. Anyone have any ideas? It sure looks ugly! Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: testKeywordLookup.gbs Type: application/octet-stream Size: 1217 bytes Desc: not available URL: From g4mba5 at gmail.com Sun Jan 24 18:30:49 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 24 Jan 2021 18:30:49 +0100 Subject: [Gambas-user] Doing keyword operations/lookups In-Reply-To: <864350664.9850.1611496362896.JavaMail.zimbra@westwoodsvcs.com> References: <864350664.9850.1611496362896.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1e41c5a5-474c-e523-1d09-0c9ce57f89bd@gmail.com> Le 24/01/2021 ? 14:52, Brian G a ?crit?: > I have attached a script which compares two methods of handling keyword > processing in a program. That is looking up the symbol followed by doing > processing as required. > > Method one used a collection, and key word index lookup the value being > an integer index, followed by an > On key Goto xxx,xxx,xxx,... > > Method two uses select and case for the keys > > The first method it two to three times faster than the second especially > when using fast. > Would the first method be considered usable, or is there a better way to > gain the performance. > > Anyone have any ideas? > It sure looks ugly! > > > Thank You > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It's logical, and the SELECT will test each CASE until it finds a matching, whereas the first method using a collection is an hash followed by a direct access. Otherwise, I plan to add a Key property that returns the pressed key as a string with key and shortcut (For example "CTRL+A"). This string can then be tested directly or used as a key inside a collection. It will make the code more readable than testing Key modifiers property and Key codes. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sun Jan 24 18:31:49 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 24 Jan 2021 18:31:49 +0100 Subject: [Gambas-user] Error WebTimer in gb.web.gui In-Reply-To: <7d97a330-7d9c-6bda-bde3-061c55052b2f@gambas-buch.de> References: <7d97a330-7d9c-6bda-bde3-061c55052b2f@gambas-buch.de> Message-ID: <8819189c-cf71-5823-4ddb-b1bc384d5490@gmail.com> Le 24/01/2021 ? 11:11, Hans Lehmann a ?crit?: > Hello, > > With this reduced source code: > > *' Gambas class file > * > *Export** > ** > **Public Sub WebForm_Open()** > **? WebHtml1.Text = "

" & ("Sensor Data") & "

"** > **? WebTimer1.Start()** > **End** > ** > **Public Sub WebTimer1_Timer()** > **? WebLabelTime.Text = Format(Now, "hh:nn:ss") ** > **End > > *the lights went out after 6 seconds ... . The display just froze - the > time stopped and there was this error message in the IDE: > > 'Unable to send signal - No suitable process found' > > > Switching from component gb.web.gui to gb.web.form did not bring any > error. The time display works without errors! > > I am at a loss. What now - what to do? > > With kind regards > > Hans > Please can you send me a full project? -- Beno?t Minisini From hans at gambas-buch.de Sun Jan 24 19:27:04 2021 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 24 Jan 2021 19:27:04 +0100 Subject: [Gambas-user] Error WebTimer in gb.web.gui In-Reply-To: <8819189c-cf71-5823-4ddb-b1bc384d5490@gmail.com> References: <7d97a330-7d9c-6bda-bde3-061c55052b2f@gambas-buch.de> <8819189c-cf71-5823-4ddb-b1bc384d5490@gmail.com> Message-ID: <76a2a6e3-7f86-6196-79b0-a87e9a650265@gambas-buch.de> Hello Beno?t, attached is the requested project. With kind regards Hans -------------- next part -------------- A non-text attachment was scrubbed... Name: WebTimer_Example-0.2.13.tar.gz Type: application/gzip Size: 77014 bytes Desc: not available URL: From brian at westwoodsvcs.com Sun Jan 24 19:38:21 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 24 Jan 2021 10:38:21 -0800 (PST) Subject: [Gambas-user] Scripter Add command line parameter Message-ID: <1507143346.9973.1611513501570.JavaMail.zimbra@westwoodsvcs.com> I would like to add a gbs3 -l --list Command line parameter to scripter which will list to stdout all available libraries or components accessible by scripter. This will make it easier to test scripter but also Easier to debug scripts using libraries and components. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sun Jan 24 19:44:19 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 24 Jan 2021 10:44:19 -0800 (PST) Subject: [Gambas-user] gambas environment variables Message-ID: <1240418139.9988.1611513859881.JavaMail.zimbra@westwoodsvcs.com> Is there somewhere in the wiki that a list of all environment variables that effect gambas and thier purpose can be found? Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Jan 24 22:34:48 2021 From: buster6seven at gmail.com (Shane) Date: Mon, 25 Jan 2021 08:34:48 +1100 Subject: [Gambas-user] Trim$ Message-ID: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> Morning all I was in the need to remove spaces from a string today so I looked at the docs for the answer and found Trim$ _Strip white spaces from the left and from the right of the string __Expr__._ __ _A white space is any character whose ASCII code is strictly lower than 32_. yep thats what I need but it did not work so I looked up ascii character for Space and found it was 32 so yes this would not work! My question, is this by design? or should ascii 32 be included? Cheers Shane -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jan 24 22:41:17 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 24 Jan 2021 22:41:17 +0100 Subject: [Gambas-user] Trim$ In-Reply-To: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> References: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> Message-ID: Le 24/01/2021 ? 22:34, Shane a ?crit?: > Morning all > > I was in the need to remove spaces from a string today so I looked at > the docs for the answer > > and found Trim$ > > _Strip white spaces from the left and from the right of the string > __Expr__._ > > __ > > _A white space is any character whose ASCII code is strictly lower than 32_. > > yep thats what I need but it did not work so I looked up ascii character > for Space and found it was 32 > > so yes this would not work! My question, is this by design? or should > ascii 32 be included? > > > Cheers Shane > > No, it's "lower or equal than 32". I have just fixed the documentation. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun Jan 24 22:43:07 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 24 Jan 2021 23:43:07 +0200 Subject: [Gambas-user] Trim$ In-Reply-To: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> References: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> Message-ID: Please show the failed code. Jussi On Sun, Jan 24, 2021 at 11:35 PM Shane wrote: > Morning all > > I was in the need to remove spaces from a string today so I looked at the > docs for the answer > > and found Trim$ > > *Strip white spaces from the left and from the right of the string **Expr** > .* > > *A white space is any character whose ASCII code is strictly lower than 32* > . > > yep thats what I need but it did not work so I looked up ascii character > for Space and found it was 32 > > so yes this would not work! My question, is this by design? or should > ascii 32 be included? > > > Cheers Shane > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Jan 24 22:44:06 2021 From: taboege at gmail.com (Tobias Boege) Date: Sun, 24 Jan 2021 22:44:06 +0100 Subject: [Gambas-user] Trim$ In-Reply-To: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> References: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> Message-ID: <20210124214406.GO11059@highrise.localdomain> On Mon, 25 Jan 2021, Shane wrote: > Morning all > > I was in the need to remove spaces from a string today so I looked at the > docs for the answer > > and found Trim$ > > _Strip white spaces from the left and from the right of the string > __Expr__._ > > __ > > _A white space is any character whose ASCII code is strictly lower than 32_. > > yep thats what I need but it did not work so I looked up ascii character for > Space and found it was 32 > > so yes this would not work! My question, is this by design? or should ascii > 32 be included? > It should be and on my version of Gambas it is: $ gbx3 --version 3.14.90 $ gbx3 -e '"?" & Trim$(" \e asd \t\n ") & "?"' ?asd? It seems like Beno?t edited the wiki just now to say what should be correct: A white space is any character whose ASCII code is lower or equal than 32. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From buster6seven at gmail.com Sun Jan 24 22:59:06 2021 From: buster6seven at gmail.com (Shane) Date: Mon, 25 Jan 2021 08:59:06 +1100 Subject: [Gambas-user] Trim$ In-Reply-To: References: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> Message-ID: <3d07ba93-c2f9-05fb-5979-24ae9ccb1a9f@gmail.com> Here Dim tmp As String ? Print GridView1.RowAt(Mouse.y) ? Print "String to Convert " & GridView1[GridView1.RowAt(Mouse.Y), 2].Text ? CertNum = Trim(GridView1[GridView1.RowAt(Mouse.Y), 2].Text) ? Print "Trimed String " & CertNum ? Print "Ascii " & Asc(CertNum, 3) ? Tmp = Replace(CertNum, Chr(32), "") ? Print "Replaced String " & Tmp OUTPUT String to Convert P1 0040 3967 4 Trimed String P1 0040 3967 4 Ascii 32 Replaced String P1004039674 On 25/1/21 8:43 am, Jussi Lahtinen wrote: > Please show the failed code. > > Jussi > > On Sun, Jan 24, 2021 at 11:35 PM Shane > wrote: > > Morning all > > I was in the need to remove spaces from a string today so I looked > at the docs for the answer > > and found Trim$ > > _Strip white spaces from the left and from the right of the string > __Expr__._ > > __ > > _A white space is any character whose ASCII code is strictly lower > than 32_. > > yep thats what I need but it did not work so I looked up ascii > character for Space and found it was 32 > > so yes this would not work! My question, is this by design? or > should ascii 32 be included? > > > Cheers Shane > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Jan 24 23:03:28 2021 From: buster6seven at gmail.com (Shane) Date: Mon, 25 Jan 2021 09:03:28 +1100 Subject: [Gambas-user] Trim$ In-Reply-To: References: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> Message-ID: <608822c5-7585-b65a-5785-ca1896c8227e@gmail.com> A white space is any character whose ASCII code is lower or equal than 32. should be A white space is any character whose ASCII code is lower or equal to 32. or A white space is any character whose ASCII code is lower than or equal to 32. I do not have perfect grammar just saying On 25/1/21 8:41 am, Beno?t Minisini wrote: > Le 24/01/2021 ? 22:34, Shane a ?crit?: >> Morning all >> >> I was in the need to remove spaces from a string today so I looked at >> the docs for the answer >> >> and found Trim$ >> >> _Strip white spaces from the left and from the right of the string >> __Expr__._ >> >> __ >> >> _A white space is any character whose ASCII code is strictly lower >> than 32_. >> >> yep thats what I need but it did not work so I looked up ascii >> character for Space and found it was 32 >> >> so yes this would not work! My question, is this by design? or should >> ascii 32 be included? >> >> >> Cheers Shane >> >> > > No, it's "lower or equal than 32". > > I have just fixed the documentation. > > Regards, > From jussi.lahtinen at gmail.com Sun Jan 24 23:12:41 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 25 Jan 2021 00:12:41 +0200 Subject: [Gambas-user] Trim$ In-Reply-To: <3d07ba93-c2f9-05fb-5979-24ae9ccb1a9f@gmail.com> References: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> <3d07ba93-c2f9-05fb-5979-24ae9ccb1a9f@gmail.com> Message-ID: > > String to Convert P1 0040 3967 4 > Trimed String P1 0040 3967 4 > Ascii 32 > Replaced String P1004039674 > Not sure what you expected, but Trim "strip white spaces from the *left* and from the *right* of the string". Not from the middle. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Jan 24 23:14:35 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 24 Jan 2021 22:14:35 +0000 Subject: [Gambas-user] Trim$ In-Reply-To: <608822c5-7585-b65a-5785-ca1896c8227e@gmail.com> References: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> <608822c5-7585-b65a-5785-ca1896c8227e@gmail.com> Message-ID: 32 or less Easier ? I think its funny to think that the ascii code for a space had been overlooked in the comman. On Sun, 24 Jan 2021, 22:04 Shane, wrote: > A white space is any character whose ASCII code is lower or equal than 32. > > should be > > A white space is any character whose ASCII code is lower or equal to 32. > > or > > A white space is any character whose ASCII code is lower than or equal > to 32. > > I do not have perfect grammar just saying > > > On 25/1/21 8:41 am, Beno?t Minisini wrote: > > Le 24/01/2021 ? 22:34, Shane a ?crit : > >> Morning all > >> > >> I was in the need to remove spaces from a string today so I looked at > >> the docs for the answer > >> > >> and found Trim$ > >> > >> _Strip white spaces from the left and from the right of the string > >> __Expr__._ > >> > >> __ > >> > >> _A white space is any character whose ASCII code is strictly lower > >> than 32_. > >> > >> yep thats what I need but it did not work so I looked up ascii > >> character for Space and found it was 32 > >> > >> so yes this would not work! My question, is this by design? or should > >> ascii 32 be included? > >> > >> > >> Cheers Shane > >> > >> > > > > No, it's "lower or equal than 32". > > > > I have just fixed the documentation. > > > > Regards, > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Jan 24 23:19:12 2021 From: buster6seven at gmail.com (Shane) Date: Mon, 25 Jan 2021 09:19:12 +1100 Subject: [Gambas-user] Trim$ In-Reply-To: References: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> <3d07ba93-c2f9-05fb-5979-24ae9ccb1a9f@gmail.com> Message-ID: <8ba9a330-d444-d4ee-605a-7030cb16d570@gmail.com> Yes I was thinking the middle my bad cheers On 25/1/21 9:12 am, Jussi Lahtinen wrote: > > String to Convert P1 0040 3967 4 > Trimed String P1 0040 3967 4 > Ascii 32 > Replaced String P1004039674 > > Not sure what you expected, but Trim "strip white spaces from the > *left* and from the *right* of the string". > Not from the middle. > > Jussi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jan 24 23:21:53 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 25 Jan 2021 00:21:53 +0200 Subject: [Gambas-user] Trim$ In-Reply-To: <8ba9a330-d444-d4ee-605a-7030cb16d570@gmail.com> References: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> <3d07ba93-c2f9-05fb-5979-24ae9ccb1a9f@gmail.com> <8ba9a330-d444-d4ee-605a-7030cb16d570@gmail.com> Message-ID: No problems. That happens to everyone. Jussi On Mon, Jan 25, 2021 at 12:20 AM Shane wrote: > Yes I was thinking the middle my bad > > cheers > > > On 25/1/21 9:12 am, Jussi Lahtinen wrote: > > String to Convert P1 0040 3967 4 >> Trimed String P1 0040 3967 4 >> Ascii 32 >> Replaced String P1004039674 >> > Not sure what you expected, but Trim "strip white spaces from the *left* > and from the *right* of the string". > Not from the middle. > > Jussi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From the_watchmann at yahoo.com Mon Jan 25 07:14:49 2021 From: the_watchmann at yahoo.com (David Silverwood) Date: Mon, 25 Jan 2021 06:14:49 +0000 (UTC) Subject: [Gambas-user] Trim$ In-Reply-To: References: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> <3d07ba93-c2f9-05fb-5979-24ae9ccb1a9f@gmail.com> <8ba9a330-d444-d4ee-605a-7030cb16d570@gmail.com> Message-ID: <1008153894.1950597.1611555289845@mail.yahoo.com> Try Trim (without the $)? On Monday, January 25, 2021, 12:23:05 AM GMT+2, Jussi Lahtinen wrote: No problems. That happens to everyone. Jussi On Mon, Jan 25, 2021 at 12:20 AM Shane wrote: Yes I was thinking the middle my bad cheers On 25/1/21 9:12 am, Jussi Lahtinen wrote: String to Convert P1 0040 3967 4 Trimed String P1 0040 3967 4 Ascii 32 Replaced String P1004039674 Not sure what you expected, but Trim "strip white spaces from the left and from the right of the string". Not from the middle. Jussi ? ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Jan 25 14:42:52 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 25 Jan 2021 13:42:52 +0000 Subject: [Gambas-user] do any Gambas runtimes get locked when running gambas app? Message-ID: Just a quck question as the title says. It's with regards to my gambas updater app. you see the concern i hope. It's a gambas app that runs then installs gambas , with of course one app at least still running (the installer itself) So the simple question is could this running gambas app stop anything being installed because of locked files? I'm hoping no. I just used the app to completely uninstall gambas from the system and then re-install and the app kept on running fine without gambas installed any more so i'm thinking the running app is completely independent of the gambas installed files once running? thanks for any info. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Jan 25 14:43:47 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 25 Jan 2021 14:43:47 +0100 Subject: [Gambas-user] To Benoit, windows decorator In-Reply-To: <6296c498-72fa-d4ee-dc92-8b154dd00990@gmail.com> References: <067f4d3c-c005-1b01-41b1-af8137fee648@gmail.com> <6296c498-72fa-d4ee-dc92-8b154dd00990@gmail.com> Message-ID: ok thank you for the try Le sam. 23 janv. 2021 ? 18:50, Beno?t Minisini a ?crit : > > Le 23/01/2021 ? 18:05, Beno?t Minisini a ?crit : > > Le 23/01/2021 ? 09:51, Fabien Bodard a ?crit : > >> Hi, Benoit > >> > >> Do you think there is a way to have windows decorator active without > >> drawing title widget ? > >> > >> I want to make a gnome style header (for a billing app on tactil > >> tablet), but if I choose border=false I loose border shadows (on gnome > >> or cinnamon) and resizing options. > >> > >> so maybe a new form option like 'ShowTitle'... :-) > >> > >> regards, > >> > >> Fabien Bodard > >> > > > > Yes, it should be possible. > > > > I tried with Qt on KDE, but it seems that the flags that configure the > window titlebar and buttons have no effect at all. > > So at the moment it's apparently not possible... > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From g4mba5 at gmail.com Mon Jan 25 14:52:36 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 25 Jan 2021 14:52:36 +0100 Subject: [Gambas-user] To Benoit, windows decorator In-Reply-To: References: <067f4d3c-c005-1b01-41b1-af8137fee648@gmail.com> <6296c498-72fa-d4ee-dc92-8b154dd00990@gmail.com> Message-ID: <53fe3596-3517-7f1e-57ab-1b3c05784c54@gmail.com> Le 25/01/2021 ? 14:43, Fabien Bodard a ?crit?: > ok thank you for the try > I think it is really possible only on Wayland where by default the application has to draw the decoration of its windows. I didn't try with GTK+3, I will to check. But I think it's the window manager that does not take into account the request to remove the top decoration (title bar and buttons). By the way how is your AppImage generator? -- Beno?t Minisini From bsteers4 at gmail.com Mon Jan 25 15:00:54 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 25 Jan 2021 14:00:54 +0000 Subject: [Gambas-user] To Benoit, windows decorator In-Reply-To: References: <067f4d3c-c005-1b01-41b1-af8137fee648@gmail.com> <6296c498-72fa-d4ee-dc92-8b154dd00990@gmail.com> Message-ID: On Mon, 25 Jan 2021 at 13:45, Fabien Bodard wrote: > ok thank you for the try > > Le sam. 23 janv. 2021 ? 18:50, Beno?t Minisini a ?crit > : > > > > Le 23/01/2021 ? 18:05, Beno?t Minisini a ?crit : > > > Le 23/01/2021 ? 09:51, Fabien Bodard a ?crit : > > >> Hi, Benoit > > >> > > >> Do you think there is a way to have windows decorator active without > > >> drawing title widget ? > > >> > > >> I want to make a gnome style header (for a billing app on tactil > > >> tablet), but if I choose border=false I loose border shadows (on gnome > > >> or cinnamon) and resizing options. > > >> > > >> so maybe a new form option like 'ShowTitle'... :-) > > >> > > >> regards, > > >> > > >> Fabien Bodard > > >> > > > > > > Yes, it should be possible. > > > > > > > I tried with Qt on KDE, but it seems that the flags that configure the > > window titlebar and buttons have no effect at all. > > > > So at the moment it's apparently not possible... > > > > EVERYTHING is possible in the wonderful world of Gambas ! ;) hehe Hows about something like * Window.FakeTitle as Boolean = False* If set to true Gambas creates a borderless window with a fake title bar with mouse drag-move events Or even better a new window object that does a similar thing making it's own titlebar Maybe CustomWindow or something with full control of the titlebar and the buttons you want? I'd pay cash for MinimumWidth & MinimumHeight properties on a form ;) i might look into it myself. see if i can make and it is worth making a custom window class. I could make a bunch of hacks that you guys can turn into proper code ;) ? All the best BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Jan 25 18:58:25 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 25 Jan 2021 18:58:25 +0100 Subject: [Gambas-user] To Benoit, windows decorator In-Reply-To: <53fe3596-3517-7f1e-57ab-1b3c05784c54@gmail.com> References: <067f4d3c-c005-1b01-41b1-af8137fee648@gmail.com> <6296c498-72fa-d4ee-dc92-8b154dd00990@gmail.com> <53fe3596-3517-7f1e-57ab-1b3c05784c54@gmail.com> Message-ID: Le lun. 25 janv. 2021 ? 14:53, Beno?t Minisini a ?crit : > > Le 25/01/2021 ? 14:43, Fabien Bodard a ?crit : > > ok thank you for the try > > > > I think it is really possible only on Wayland where by default the > application has to draw the decoration of its windows. > > I didn't try with GTK+3, I will to check. But I think it's the window > manager that does not take into account the request to remove the top > decoration (title bar and buttons). sound good ... maybe having an event draw on window class ? > By the way how is your AppImage generator? I had many out work. But I will continue soon because I need it. > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From ocoquet at 3d-phenomen.fr Tue Jan 26 10:14:45 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Tue, 26 Jan 2021 10:14:45 +0100 Subject: [Gambas-user] Trim$ In-Reply-To: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> References: <6b9e503c-dfae-6a28-0ece-ba854fdf408d@gmail.com> Message-ID: Hello, The simple way solution would be: dim? str as string = "un test de texte avec de espaces" str=replace(str, " ","") Olivier Le 24/01/2021 ? 22:34, Shane a ?crit?: > > Morning all > > I was in the need to remove spaces from a string today so I looked at > the docs for the answer > > and found Trim$ > > _Strip white spaces from the left and from the right of the string > __Expr__._ > > __ > > _A white space is any character whose ASCII code is strictly lower > than 32_. > > yep thats what I need but it did not work so I looked up ascii > character for Space and found it was 32 > > so yes this would not work! My question, is this by design? or should > ascii 32 be included? > > > Cheers Shane > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Jan 26 16:54:54 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 26 Jan 2021 15:54:54 +0000 Subject: [Gambas-user] Oooh, Previewing html/md files in Gambas :o :) Message-ID: Absolutely loving the new html/md preview panel Ben. <3 Fantastic , so easy to quickly edit my projects help files now :) I just loaded as many docs as my project had and flittered with the tabs/preview on/off and couldn't break it :) Much respect sir. a great addition, I salute you :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue Jan 26 21:24:12 2021 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 26 Jan 2021 12:24:12 -0800 (PST) Subject: [Gambas-user] How to use dynamic variables in gambas Message-ID: <1929023620.11437.1611692652424.JavaMail.zimbra@westwoodsvcs.com> If anyone is interested in using dynamic variables in gambas scripts Projects to I guess, but maybe not good idea. With some syntactic sugar It is possible to use dynamic variables in scripts. No need to define anything before use....... The attached script contains the class that can be included to use this method of handling variables. And a few samples of using it. I can add the class to the farm if anyone is interested. Cheers Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DynVarDemo Type: application/octet-stream Size: 5289 bytes Desc: not available URL: From brian at westwoodsvcs.com Wed Jan 27 00:47:15 2021 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 26 Jan 2021 15:47:15 -0800 (PST) Subject: [Gambas-user] How to use dynamic variables in gambas In-Reply-To: <1929023620.11437.1611692652424.JavaMail.zimbra@westwoodsvcs.com> References: <1929023620.11437.1611692652424.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1327354198.11671.1611704835445.JavaMail.zimbra@westwoodsvcs.com> A more complete demo version that also includes an extra class to allow input with auto complete, editing and history recall Cheers Brian G From: "Brian" To: "Gambas mailing list" Sent: Tuesday, January 26, 2021 12:24:12 PM Subject: [Gambas-user] How to use dynamic variables in gambas If anyone is interested in using dynamic variables in gambas scripts Projects to I guess, but maybe not good idea. With some syntactic sugar It is possible to use dynamic variables in scripts. No need to define anything before use....... The attached script contains the class that can be included to use this method of handling variables. And a few samples of using it. I can add the class to the farm if anyone is interested. Cheers Brian G ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From akrobaticone at gmail.com Wed Jan 27 16:13:44 2021 From: akrobaticone at gmail.com (Michele V.) Date: Wed, 27 Jan 2021 16:13:44 +0100 Subject: [Gambas-user] PPA for Raspberry Pi OS Message-ID: Hi On Raspberry Pi With OS Ubuntu, PPA for Gambas are fully functional and is very easy to install it Will be a great things to have PPA available also for Raspberry Pi OS, is a debian based distribution and is the most popular OS available for Raspberry Installing the latest updated version of gambas would become much easier Michele ------------------------------------------------------------------------------------------------------------------------------------------- Io scrivo da UBUNTU GNU/LINUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jan 27 16:45:30 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 27 Jan 2021 16:45:30 +0100 Subject: [Gambas-user] PPA for Raspberry Pi OS In-Reply-To: References: Message-ID: <7894a3eb-6042-1bb9-d5f5-860c96930817@gmail.com> Le 27/01/2021 ? 16:13, Michele V. a ?crit?: > Hi > On Raspberry Pi With OS Ubuntu,? PPA for Gambas are fully functional and > is very easy to install it > Will be a great things to have PPA available also for Raspberry Pi OS, > is a debian based distribution and is the most popular OS available for > Raspberry > Installing the latest updated version of gambas would become much easier > > Michele > > ------------------------------------------------------------------------------------------------------------------------------------------- > Io scrivo da UBUNTU GNU/LINUX > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I don't understand: PPA works only on Ubuntu/Debian-based distributions. If Raspberry Pi OS is based on Debian, it should be able to use the Gambas PPA packages without problems. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Wed Jan 27 16:55:21 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 27 Jan 2021 15:55:21 +0000 Subject: [Gambas-user] PPA for Raspberry Pi OS In-Reply-To: <7894a3eb-6042-1bb9-d5f5-860c96930817@gmail.com> References: <7894a3eb-6042-1bb9-d5f5-860c96930817@gmail.com> Message-ID: On Wed, 27 Jan 2021 at 15:46, Beno?t Minisini wrote: > Le 27/01/2021 ? 16:13, Michele V. a ?crit : > > Hi > > On Raspberry Pi With OS Ubuntu, PPA for Gambas are fully functional and > > is very easy to install it > > Will be a great things to have PPA available also for Raspberry Pi OS, > > is a debian based distribution and is the most popular OS available for > > Raspberry > > Installing the latest updated version of gambas would become much easier > > > > Michele > > > > > ------------------------------------------------------------------------------------------------------------------------------------------- > > Io scrivo da UBUNTU GNU/LINUX > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > I don't understand: PPA works only on Ubuntu/Debian-based distributions. > If Raspberry Pi OS is based on Debian, it should be able to use the > Gambas PPA packages without problems. > wait what?! I was under the impression PPA was Ubuntu only not Debian? I am sure i have tried it on debian and it didn't work? I will have to try again.. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jan 27 17:01:09 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 27 Jan 2021 17:01:09 +0100 Subject: [Gambas-user] PPA for Raspberry Pi OS In-Reply-To: References: <7894a3eb-6042-1bb9-d5f5-860c96930817@gmail.com> Message-ID: Le 27/01/2021 ? 16:55, Bruce Steers a ?crit?: > > wait what?! > I was under the impression PPA was Ubuntu only not Debian? > > I am sure i have tried it on debian and it didn't work? > I will have to try again.. > BruceS > The PPA won't, but I think the packages work. Of course I didn't test. -- Beno?t Minisini From pinozollo at gmail.com Wed Jan 27 20:15:59 2021 From: pinozollo at gmail.com (Pino Zollo) Date: Wed, 27 Jan 2021 16:15:59 -0300 Subject: [Gambas-user] Posgresql Message-ID: <50297588-4bdb-56cf-d387-7927c45ac715@gmail.com> Has anybody seen this error trying to access to a database ? |FDBconn.Form_Open.6: (TextBox 0x562c44dd15a8) DBLog3: symbol lookup error: /usr/lib/gambas3/gb.db.postgresql.so: undefined symbol: pg_snprintf| Any suggestion ? salud Pino -------------- next part -------------- An HTML attachment was scrubbed... URL: From pinozollo at gmail.com Wed Jan 27 20:23:14 2021 From: pinozollo at gmail.com (Pino Zollo) Date: Wed, 27 Jan 2021 16:23:14 -0300 Subject: [Gambas-user] Fwd: Re: Trim$ In-Reply-To: References: Message-ID: I had to go back to version 3.15.0 ... (I had a copy on a pen drive by luck....not found any more on the web) The 3.15.2? breaks my program. Saludos Pino From g4mba5 at gmail.com Wed Jan 27 20:28:30 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 27 Jan 2021 20:28:30 +0100 Subject: [Gambas-user] Posgresql In-Reply-To: <50297588-4bdb-56cf-d387-7927c45ac715@gmail.com> References: <50297588-4bdb-56cf-d387-7927c45ac715@gmail.com> Message-ID: <3c82e1de-8531-4e85-cc71-2e879c3b8475@gmail.com> Le 27/01/2021 ? 20:15, Pino Zollo a ?crit?: > Has anybody seen this error trying to access to a database ? > > |FDBconn.Form_Open.6: (TextBox 0x562c44dd15a8) > DBLog3: symbol lookup error: /usr/lib/gambas3/gb.db.postgresql.so: > undefined symbol: pg_snprintf| > > > Any suggestion ? > > salud > > Pino > This bug has normally been fixed in Gambas 3.15.1. -- Beno?t Minisini From g4mba5 at gmail.com Wed Jan 27 20:29:08 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 27 Jan 2021 20:29:08 +0100 Subject: [Gambas-user] Fwd: Re: Trim$ In-Reply-To: References: Message-ID: <40fb796f-cfb2-dc48-0ca4-14d161dc4b61@gmail.com> Le 27/01/2021 ? 20:23, Pino Zollo a ?crit?: > > > I had to go back to version 3.15.0 ... (I had a copy on a pen drive by > luck....not found any more on the web) > > > The 3.15.2? breaks my program. > > Saludos > > Pino > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- You can compile any version from the git repository. -- Beno?t Minisini From g4mba5 at gmail.com Wed Jan 27 20:31:32 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 27 Jan 2021 20:31:32 +0100 Subject: [Gambas-user] Posgresql In-Reply-To: <3c82e1de-8531-4e85-cc71-2e879c3b8475@gmail.com> References: <50297588-4bdb-56cf-d387-7927c45ac715@gmail.com> <3c82e1de-8531-4e85-cc71-2e879c3b8475@gmail.com> Message-ID: <90df04fd-4c4f-511c-ce25-668f8ffb3954@gmail.com> Le 27/01/2021 ? 20:28, Beno?t Minisini a ?crit?: > Le 27/01/2021 ? 20:15, Pino Zollo a ?crit?: >> Has anybody seen this error trying to access to a database ? >> >> |FDBconn.Form_Open.6: (TextBox 0x562c44dd15a8) >> DBLog3: symbol lookup error: /usr/lib/gambas3/gb.db.postgresql.so: >> undefined symbol: pg_snprintf| >> >> >> Any suggestion ? >> >> salud >> >> Pino >> > > This bug has normally been fixed in Gambas 3.15.1. > No sorry, 3.15.2. -- Beno?t Minisini From bsteers4 at gmail.com Wed Jan 27 21:26:55 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 27 Jan 2021 20:26:55 +0000 Subject: [Gambas-user] Fwd: Re: Trim$ In-Reply-To: <40fb796f-cfb2-dc48-0ca4-14d161dc4b61@gmail.com> References: <40fb796f-cfb2-dc48-0ca4-14d161dc4b61@gmail.com> Message-ID: On Wed, 27 Jan 2021, 19:30 Beno?t Minisini, wrote: > Le 27/01/2021 ? 20:23, Pino Zollo a ?crit : > > > > > > I had to go back to version 3.15.0 ... (I had a copy on a pen drive by > > luck....not found any more on the web) > > > > > > The 3.15.2 breaks my program. > > > > Saludos > > > > Pino > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > You can compile any version from the git > Compiling the new builds or any version has never been easier. Package lists are up to date with many distros now. See here for the list of distros and packages needed to install. http://gambaswiki.org/wiki/install#t7 Once packages are installed it's just 4 commands to compile and install a git clone. I made a script to do it all... https://gitlab.com/bsteers4/gambas3-compile-and-install And a gambas application... https://gitlab.com/bsteers4/gambaslatestupdate Application is WIP but if you have a working gambas installed it can upgrade to latest beta or stable version. The first one is a bash script that works with no gambas installed. But it is 2 parts, one to download/clone gambas source if you have not already and the other to compile/install. They may make things easier for you. BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Jan 28 00:24:30 2021 From: adamnt42 at gmail.com (Bruce) Date: Thu, 28 Jan 2021 09:54:30 +1030 Subject: [Gambas-user] Proposed "gb.statistics" component - volunteer(s) requested Message-ID: Attached is the source archive for a component that provides basic statistics functions, (renamedfrom .tar.gz to .txt to get around email issues). Yhe fundamental idea is that all the functions take one (or two) attays of Floats. In other words,they all work the "same way". All of the functions have been extensively tested for correctness in terms of the results produced. Due to personal issues I can no longer maintain it and there are outstanding issues that mean it is almost good enough to be proposed as a standard Gambas component. The major problem is that it does not scale well with karge sample counts. This is because I "over-engineered" it and there are unnecessary internal calls back to the Avg() function. There is a test harness to demonstrate this. For example, StdDev calls the Dev() function for each data point, which calls the Mean() function on the data set FOR EACH data point. Thus, with data set sizes over, say, 1000 data points the repsonse time start to degrade badly. It works fine for us here as our data sets are all less than 100 samples. Other problems are: * Some functions do not have inline help comments. * The Main test harness code is "hacky", so please have patience understanding it. Finally, the project is implemented as a Library at the moment, for test/dev purposes. It needs to be converted to a component once it is in a sate suitable for Benoit to consider it for inclusion. So, I am hoping someone could take over the project and resolve the above. best wishes bruce -------------- next part -------------- ???[?3???? gS?????;???7g??b6??/??M???s??a????v ?G??%Q??????s'?????U?d(~!5???j?pX?Z??????d{{&n?/???%S?g?rU?O?b?U?????i????????L???9??Y0e?? ? B?a?9?d#v??i???? ?]??U?t??] ?CW???!~?j?t??t????a?=?N?vw?t???M? ???~??"?- ?& LP??@?H??F?????ik$?????N???h? >???E?? $?' ????????vw??i?9?U Up? ??>f???j?? ?L?? 0S[-q?b??-;??? Q???'?"!F????%:?M7-??? ?v?;??u?.z???oe?? ??o?lS??.)\@????oY"?;T?????k?~H??qk??n?0?? }??^???r??p? ??>Z?????V=??$??7?;?v??nIzP?E???g???(?y???E?]??X?M???? y ??>???/a?:?\ ???A?L?3??-??lHR?????,H&K ?d;?5:x???<{`A??t9??=??B???? ????.?a?`w??3?z?? ,????3?Q y ?hX???????n???g'?*D?.{?h??E|????F??????~*?J?U&??y?r"r?P?Ok?Bm????a??u~D??E?E?'???X?N,?x?^q/?BU??S?? ????7I???????>?7I?2???p??|P?B???2@???V?@D?5Z?fFM+\?[?HS????UD\??%w??????BQn??z???+K????I ?d? ????m?B????h?b?z&1?!?j???76?B}??%?&{??H???-????es?]??@?N*?????V???]????????????f????H???A ?I???+q??q~TP????b5!???H????bV?A?"1l?H??9@????x?????1?=???^a@?L?????: 9?0f???N???w????{^????YM8??\, ??VZN ????????N??{y???0X??N&A( ?? ?q ??V2?+??f????u? ??]????????????ya?v???pQ?/???g????_??????1??????/*??.???l?y? ?O\??eQ yp??j^#E?0????A? ?.?-??}E\???4i???6??%Rq???/??7 ?x?@d ?????9???*G ?:o%0??"vL ???.?p??H?? ?6W#X?P???x?????t^!?? 5?a??C??{j???+?Z???-??De??w0?5?u:?????p(%???'K? #??=?????? ? eS?????U??U^??m?I??l??uq????? ???t????x?a?G? ??Q1N?eB v*S????Rf??Ky ??1??pTO??PG\ /X.???? ??h.??????`? ???v??d??`?0?? 3,???i?d??0e;I?i??\?X. ??}*??KP??#*L??f=3P?V?H??????? Lt??^z`j??m?????V?????q?8a ?;??w?,@?$P?0X '?k????,???F??o?)N??@k?9???2+?CV? ?s?,??|??p??????????;????R?E?e?h??????J"??6.???? Mu??l1?U,?`??x??????vO?N??C?????nB1X?4?????o ?!\CZ?9??R? C}c?WB???L?j2?F???k??bC*????%?\i???V??? H????X{)?M ??0b7n<?}~??;?C?"'h ???&?r??x????????? ?pG?4\??}e?] ?o^? ??"W)p?2X???od'????? ?+??J?m??-??I??????? yvM???P????P,?+/????W???U???????????:'??d? ??{?/P?p@?xj??? ?-aI??4s?h8????sMiZ7?????? 0&O? ?P?jA??]????r?&???E ?? ?? \??<??DB/????.?yp?]?l?YW???4z????Nl?)0>????? ?;g?AR?????ku"?-G??$5?S?V??z  ??y???9,p}?4???S?)???? 3r?w???F?j5?..???'s??^???b?`Sy???j????nM????????e??0??? ?Uj??xH?7U9???3LMy?+?.v?Ni?*??6?9??Z??U?2????Li?Z??? ???p?'s????,/???\G?E????. R. ?03????Qw?Xn?F;?r ]i??;? v3wA2Q????Wh?Q???|$?xK*?? r???X#???H?{${???.Q/?z ???:?kN?JC ??Rx ????? C??Wa]?????vc?`?)???????G????????4??#Z???????IN?x6?F?W?M1~???={????8<[Qy?u??5I?}?????o?%?*1$?4??.?????8Ok?????C??L ???s??sFY???.U'????T?d?Qg6?G*0V5k4?\{?? ???h?:?)?F%?/Z?"Pg??\p????? F[?? ??V??6?5??r \? ?2??????ds?? i?N2???Y??8Y?4r??HX?#_@|?)?? ???Z[?D???^7??u???j?I??H??? ?t??^yh ???Q????3`_'???r??\??-?????Oph???????? ?"???t\??6??L??_??g:??h'?("!???.?v???M^??i??i\ d/0??w~V?=SJ??m?N?7?)5?b?E??0*H3:y4YZ:????j? $????V?8T?< ??Lc?>TZ????DC?},YS ?d??P??H??"? ??ys? ? D9<)???4???SP????~H??7?bU.9y8#6?Lr??N?!??;?? ???s?K??O? d??:jcr?WP^oa?k???Z???`??K???^??W???n?x????ay?w:??}/???=?3??1???????'F??x?I*"5? ??r???P{??ra??}-? ?:v?????2?A??@????|?l?? V??? ?h??rGu}?M?d????x???0 ??????*??g;?????`?-?:h?k7 || lT?l??g_ a????z???O????W; ?y<0?/@?????_?}U;M?b??;y??N?!???????? ??-h?g?n???G???????=m??%??Ak??4?K??^????????????2?g???F!Q????????d?????e???????=???$(?????p3??]??H?K?^ E??D???????Q ????????m???~b?_|Uv????2/?[?1?;??? ?'i1?o)xU?'{?TUx?4????P8?*?@??? ?????11G?:9M[\5W?m?????Yy???EyM?p?J?\c???3^?1?{?a?c?E?i|5??,?t?Y??I'? ???????????QFd?SH???v*^e* ?a??Jk$s\?a?M?n?W???1>JK? ?S???? ?m?e???VHr??MI??'??)?%LE???X??]j???T?w?4P\*:k??Lg??.I??j??_?Z}u r9?? ?_z???m??????B3w@?^?b?2?{?q?^???K?6?:????$??i?4?$tLw??&?Y???!??0?w???'k?W?c??kf??c???HKsfl?^?Wgb??Kr??l?D????|~??, ?:Y?L??(5?G?RH?sHkYW?7????4?e8T??n??cS5?v$????R??F^GWB?`???t?1F???????A?W??%?@???`?!=k??D}?W? r???? 8????R't?? ?61??#+9d?Q?????+w?????O????R_?R??? 8M?????R*33???? ????$|?1? ?2B?(3???]??N"5.x? ;??O;Tkiq???????d?4?.???M???k???? " K?G??_?$??!????oR????x?(@??9 ??J??LV???i?n?????j??\{D??D{?Yt????d;u ??a?QQ????????upa?]?J??????I????L?3 5W?B=2????i ??6?[+??^?p? ????~2??.yfiG`e?????Z???m'?????f?yDk_?? ??N2??a~????G1?4j1????\? ?p??~??*???]\? ??8???????W?,?S???je??F? ?M???]????.!G?Y??h??[?x?-?/(i?bP??'b(s???/S??;T???w??7??3?1??&???\m?????d???k?z???mW?q??XW????? t??I?A??I??O9??u??(??u?5&?????e??R ?d?%I??j!??=Q W?Z+(?=m?K????? ???ZX??j/???|*%???`V?tQ???Wn???{??\? H??4/&????[t??????/B???????c ?dR`??g?5???,????V???M?+m[???????t??K??7T??W??T ??Drf??D???????*??? ?b?2? ????? ?F?*Q??y3Qp?????u ~?Z?Q????r '??$U??8????'??Z?^?????VC?????wY? m?w?$"?*????@?jX???^j/=??G?\w]'i??c?I??+-???g??a~??Y?nr?????21{vK??lI??:?w?????????f?S??f????*Ure ?4??d? O?d?nAZY???}6 ?4M{3~?zo????????z0Y?s???B?5??????/????iR #? ??;?A??E?.$?4?8??lW>WL? ???!r?' Iai????b?,???j?: ? a?? ?Hz5??qSw0~????QQ ??n?1?\\.?9??Qjk?/t?O-??u?'???h????????KF0;`??5Q?? R??v??,:y??IPBB?B?? ?/Y-;'?\? ;1=??? Z???Q)??p?????{:Q? ?8OT???h????bg? ????????U7d???!??\????pG?q?B* de?O?q??_e?A ??|XD???|Qx?7?Fj!????G|&p???OrwKD#? w{???9??RK??s ? ???^?G5?U}?Z?@D??????+? *??2?????[???O??} ?o?? MN2!??m?{? ?T\?-??????P/Mw?y????W?????(?HW? ?b??V?H????p?V")???0??\??J?J?Ke?YC)RN????_???:~;?E??VU?HA?X?????J?=??????????>???l9e???f???T???aHT????|????????M?9???*?Z?p,?Zy?b~??o2??8?????S#??? +h????U"??? X^Qy?X'U???y?~?e?sPfj?1 ?0???Fl?D??$?*?+??A.w?_\??30?9_,????y?V?,?zXz?xU3?7n?e? t? ???e?o???T?aN?,e?? ?@??= ?c???n?O ??????<[?G] ?i?*?{???`???F?7_5_% h ??2V4??EFy???8H? j???? ?9??i'??'dkq??????#:?Q?%|??8?i??A?????hP?? ????|? !~N?o??<?S?/?D?Tc? :v??o????i??c?cM???>f?_???0]??qt????? ?? p^? RJ?{???c@M2?%H ?a??#??N??q?? SdSa@?B ,j?S?;?X?j????????t???K??;?H????4I(s?mo?Y??a?,??^ ?Wk?e1?Uy??&#???1?S?j??*?o?Vf???8????W???yGcNq /K?yR?_???A????L??3?Ve? {??????? ????qE?y,? $Ia???7?X????n?? ??P;????kp? ????Pu????G??#???V???Yi???p?~[n????PG????re???????}?? ?)???????K{?Ce?Oo?a}? {5n??Ia,??X?S??1ubX(j??????2?hZ ??Y?>5??WaJ???|?? ?2??&???????fGj %?P];X?Kh]??X u??????D??F6mY???2`??????? ???!?t?x?3bJ??6???|kX????0?w:?A?D???9?(?? ??q?A{>X?YF?????&??>???? A? !p^1O?n?@9D????2??H9???^s6kp??Fk?0?????3L?$d&?? ?x???h;??P???&AT??&?tHb?i???i?XY/????$?? y????v7T)?L+???{R|?CB??)????&??=f?G??????E?u??W?El?H?????]???*??s????. >????0???Q?z?_?AA?????'_??????W*Y???vj?I=????????K" ?A VZu?u?4??{??+? ?? ??P?zw??,????;????q??'??Y????m5.q>?[Xq??k??????e??H?????h/r??k?j%j??VM[???????/p? ?8?f?.?y??) HF?+????? ???I4?Ir%7f_?S)?????qCc???V???? ?i0???$?v?[Z9/?E`?^?r?fw???!X[?uZq??? g?X&Ry??E)>pBd$???C? 5)????&`"???e????rX??/??{?">???~Y(AM?:?emx?O?????7?????Q?.$?9????d IYj??'??{q? ??W????p? ?q R??y?q0_??E8?#s?wp???????jq'??z2???q1?L?$s|?s????????G??????`zW?N~???o??????7?4?6'?(???H??.?j?*??4d.? ?dW_3N2????f?@[0?~U??K`L?W?"?U?????????m?j?`? ?U? ?(?Vw-P_???:?'V"|{????O? 8???c??uc^\??)??8X????????\?????bN?J??3-/???gJBG?c?q????(?y????"\?P ??x?H?$??z%?| $?]?F?,h??v????[v?#??2??)?Y?J?o??????B?R'u?"????i?O????S???HRni??$?f???[}#e/??????S?z???????9 ?$Y?wn?G??[???0? ?4>???1.?s8S-?b??)??i?(?? e??? ???Z`G?m?t?O&?p8??U5qU??vD???D??6?v ,?3??2^M?1??!g.??? & ???!cV?L???D@?W??_?oM?FT,?4??D]??o???????m~ ??*?C"???????H?N???????%?n????O?????^t???????O^???g(?)Tz?n1I??6q?????o?E?u???) ???5????v?m_ (??t?C?? ???B?9??????????.???I????]v??y?W?#p{??5???"??O?d l??=????hu at U?~??o`x*j?? ??????ii??^?8?1 ???Pm[??9???;????eF???H?L??1?z yRxu???-?Xq??PG{??js;.?H????? ?\"?? EL6?Lqh?H-???%????%??Qm??????*:??????? ?i??}$????????? i]!?Xq??@?E??e?????E??t?,_?I????f?q????F??c Lj????O?; <"@??%?b?????#?t|6By???????f??3?9??[??? ?? b? 6F????w?C?r ??? ?$?= ?W????-Ki+?? ?V???Y?i>????-{?x?P]???;Oq*???WH5 ?- ???j???+?Y}?()?G?6?y??K??cZz?????_j?/???=Xf]?s?m-?n?j??Y??6=?^?*?????<P????8XU0??Hu5=Z? $??l?>q?????1C??0????B?4V?!?(??3?_wv??f????.3??)T+?D?)????Z?m????On????qQ??` ???q??I? 3}F?q????\???]8\??Ne???{?r?v??5}?s??%a??8????7u?A???9h.?sK?GCyAZ???U7S?h?w???N??e?L?C?V?R??%?c?R?? +?s??>??\?3???.&?_???u???+]R??r?0n?N ,?~SqkR?bp??1?]&??6C??2"?=Vb?f=?????_???#Y!?V???????????J??????N4?6?J4G?Ev??C?6y?????.?`? .U?O?a?u???u?Fz ?}(_?]??????Q??A) ?,????=?";>?>p?@Z?"??????h?;???V&?})?.?vGD???6?e???????u?8|o?l??7???[ SHf?*H?NEO4lU?3?????OJ??`oa?W?\dD?ti~v8k+????) ?zhGB??`??7D5?I???????x%%B???Q:v"{g[t???B?????C ?Z?L ?w??u? G???M?????????ls??|#%??????#?{?/#???C??????'7?+?<??.?R)"????????d??z??0???D#yBq??B??_????Q??? ?Y?P6m?=P{z? f??k??L?4????/?D?? ?\? ??gc ????L???????y?"???=?X??I?K??!?ze???????w ??q????X4??????(?|???? ??? ??D???|? ?A{????5????g?L?5%? ???) ??S ??6L?? Cr??=aq?j??J?|????kTO?eC?-a"K??c?? ?2WX?G?????)!????sc=D????6?7?? ??? ?f????&??F,???;??? V??w?????*??|? ?T???n?T??K?? e?p?k??TQnhz?????3a??7???:#???BV?8?????g???d??5?m?? *|n???? a ???U?s?g9?=??l???y???N??????Pa???#???B?=? 0??8?t??????? ??/?x?C??*R?????%?E<36qms t?X???f????r?????sg??j??????????v??6n&xz??????????4?? &? ???????% J??]???LzO?/?J????)?????y?/?[7?-p? ?????5???x:? ?B?}#?8.??????N??y 5W???????rh)?9??&?d????.RG?Tn??V??=~???K*|&?t w???? ??q?:?n?I???(?K!1??|?? ??K??O??z? ???????S? ???Cv?u??????? ? ?[Q??F,!???R?E??.Up?~%PP??%?t???h}?????O?????<??0?5?Bt??_?CK?A ?uA????m?|P?j??RL???l,????s??w??t? ????a???<t??A]? ?????k?g???fKc?i?F???l?S(????????j??K??? ,???eMS?9??6??D?m???fl???!/n?Ei P???k?????j?u???G6??-c??e???;to???Ws??`???HA??#???? ???M??'??u??q?)? ?&"b66???`???? ??g[+????????? ? iq????U?????%?9W?2??7O?V?ep????M??n?yT??$ ?s????E?????A??N??$"??X???| ???1k?{?u`??>??n?9?????uH1???< p??9gW?4 ?0?D?.bU??k????j?'??%?G???4???v#??W????G?d%?(+??@???p????t>???{??(?YW?^?v (????????6_???:X??"??=?icR? 5??????NY??=?,???1?,?CB??O7?(?>???+op? ?<"?????c EpS?1?|?H????B??!??$  Z????6?>^?c???g]?:?"q????^?Q'K??????P????0?k????gQ?O??U??d??}QeI?? B??8?? ????[cJaD????????c?g????????? ???????u@?Fz:A References: <7894a3eb-6042-1bb9-d5f5-860c96930817@gmail.com> Message-ID: I've been poking around the launchpad site and cannot find a way to download the packages as one file. but i did see you can download all the packages individually. I could probably write a script to read the launchpad page and get and install all the .deb files. On Wed, 27 Jan 2021 at 16:02, Beno?t Minisini wrote: > Le 27/01/2021 ? 16:55, Bruce Steers a ?crit : > > > > wait what?! > > I was under the impression PPA was Ubuntu only not Debian? > > > > I am sure i have tried it on debian and it didn't work? > > I will have to try again.. > > BruceS > > > > The PPA won't, but I think the packages work. Of course I didn't test. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Jan 28 11:13:59 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 28 Jan 2021 11:13:59 +0100 Subject: [Gambas-user] Proposed "gb.statistics" component - volunteer(s) requested In-Reply-To: References: Message-ID: Am 28.01.21 um 00:24 schrieb Bruce: > Attached is the source archive for a component that provides basic > statistics functions, (renamedfrom .tar.gz to .txt to get around email > issues). Despite then ending .txt the mail was bounced by all Gmail servers. Noone with a Gmail account (most of the users here) got it. https://switching.software/replace/gmail/ Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Thu Jan 28 14:06:21 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 28 Jan 2021 13:06:21 +0000 Subject: [Gambas-user] PPA for Raspberry Pi OS In-Reply-To: References: <7894a3eb-6042-1bb9-d5f5-860c96930817@gmail.com> Message-ID: On Thu, 28 Jan 2021 at 02:44, Bruce Steers wrote: > I've been poking around the launchpad site and cannot find a way to > download the packages as one file. > but i did see you can download all the packages individually. > > I could probably write a script to read the launchpad page and get and > install all the .deb files. > > > On Wed, 27 Jan 2021 at 16:02, Beno?t Minisini wrote: > >> Le 27/01/2021 ? 16:55, Bruce Steers a ?crit : >> > >> > wait what?! >> > I was under the impression PPA was Ubuntu only not Debian? >> > >> > I am sure i have tried it on debian and it didn't work? >> > I will have to try again.. >> > BruceS >> > >> >> The PPA won't, but I think the packages work. Of course I didn't test. >> > I made a script for debian/raspbian. (hopefully attached) what it does... Lets you select Stable or Daily build. (default is Daily) Lets you select amd64 or armhf (default if amd64) Reads launchpad page and gets latest PPA path. Makes a folder in $HOME and downloads all the packages into it. So far so good but now the problem... I tried to run *dpkg -i -R /sourcefolder* It cannot install. mostly the packages complain that other gambas packages have not been installed yet. I Need to now if there is a specific order that the packages need to be installed in. and if there is a way to get dpkg to auto install any other missing dependencies. or if apt might do better? How does the PPA site do it for Ubuntu? Any advice appreciated, hopefully not much else involved in making a working PPA installer for debian based OSs. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ppa2deb Type: application/octet-stream Size: 2238 bytes Desc: not available URL: From bsteers4 at gmail.com Thu Jan 28 22:48:13 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 28 Jan 2021 21:48:13 +0000 Subject: [Gambas-user] PPA for Raspberry Pi OS In-Reply-To: References: <7894a3eb-6042-1bb9-d5f5-860c96930817@gmail.com> Message-ID: Responding this incase it got bounced with an attachment. The examle script is small so I'll paste it at the end of the forwarded text... On Thu, 28 Jan 2021, 13:06 Bruce Steers, wrote: > > > On Thu, 28 Jan 2021 at 02:44, Bruce Steers wrote: > >> I've been poking around the launchpad site and cannot find a way to >> download the packages as one file. >> but i did see you can download all the packages individually. >> >> I could probably write a script to read the launchpad page and get and >> install all the .deb files. >> >> >> On Wed, 27 Jan 2021 at 16:02, Beno?t Minisini wrote: >> >>> Le 27/01/2021 ? 16:55, Bruce Steers a ?crit : >>> > >>> > wait what?! >>> > I was under the impression PPA was Ubuntu only not Debian? >>> > >>> > I am sure i have tried it on debian and it didn't work? >>> > I will have to try again.. >>> > BruceS >>> > >>> >>> The PPA won't, but I think the packages work. Of course I didn't test. >>> >> > I made a script for debian/raspbian. (hopefully attached) > what it does... > Lets you select Stable or Daily build. (default is Daily) > Lets you select amd64 or armhf (default if amd64) > Reads launchpad page and gets latest PPA path. > Makes a folder in $HOME and downloads all the packages into it. > > So far so good but now the problem... > I tried to run *dpkg -i -R /sourcefolder* > It cannot install. mostly the packages complain that other gambas > packages have not been installed yet. > > I Need to now if there is a specific order that the packages need to be > installed in. > and if there is a way to get dpkg to auto install any other missing > dependencies. > > or if apt might do better? > How does the PPA site do it for Ubuntu? > Any advice appreciated, hopefully not much else involved in making a > working PPA installer for debian based OSs. > > BruceS > # begin script.. #!/usr/bin/env bash # New bash Script file... if [ -z $(which curl 2>/dev/null) ]; then echo "curl is needed to download and process web pages with this script." echo "press return to install curl or press" read -e -p "Ctrl-C to exit." sudo apt install -y curl fi if [ -z $(which wget 2>/dev/null) ]; then echo "wget is needed to download the gambas packages." echo "press return to install wget or press" read -e -p "Ctrl-C to exit." sudo apt install -y wget fi VERSION="gambas-daily" echo "Do you want the Gambas Daily builds or Stable verison?" read -p "Type S or stable for stable build or press return for the daily build: " REPLY if [ "${REPLY,,}" = "s" ] || [ "${REPLY,,}" = "stable" ]; then VERSION="gambas3"; fi echo "getting $VERSION version." read -p "Press return for okay, Ctrl-C to exit.: " echo "Reading Launchpad PPA page..." BUILDS=$(curl " https://launchpad.net/~gambas-team/+archive/ubuntu/$VERSION/+packages" 2>/dev/null|grep "href=\"+sourcepub/"|awk '{print $4}'|tr "\"" "\n") BUILDS=$(echo "$BUILDS"|grep +|tr "\n" " ") BUILD=${BUILDS%% *} read -e -p "Select architacture, type amd64 (default) or armhf: " REPLY if [ -z "$REPLY" ]; then REPLY="amd64"; fi echo "getting package info..." if [ "${REPLY,,}" = "armhf" ]; then DEBS=$(curl " https://launchpad.net/~gambas-team/+archive/ubuntu/$VERSION/$BUILD"|grep "armhf.deb") else DEBS=$(curl " https://launchpad.net/~gambas-team/+archive/ubuntu/$VERSION/$BUILD"|grep "amd64.deb") DEBS="$DEBS $(curl https://launchpad.net/~gambas-team/+archive/ubuntu/$VERSION/$BUILD|grep all)" fi OIFS=$IFS IFS=$'\n' read -d "?" -a DLIST <<< "$DEBS?" CNT=0 while [ $CNT -lt ${#DLIST[@]} ]; do DEB="${DLIST[$CNT]#*\"}" DLIST[$CNT]="${DEB%%\"*}" #echo ${DLIST[$CNT]} ((CNT++)) done FILES=${#DLIST[@]} echo "Need to get $FILES packages." echo "Press return to download" read -p "Ctrl-C to exit: " CNT=0 #if [ -e "$HOME/pkgs-$VERSION" ]; then rm -rf "$HOME/pkgs-$VERSION"; fi #mkdir "$HOME/pkgs-$VERSION" cd "$HOME/pkgs-$VERSION" while [ $CNT -lt ${#DLIST[@]} ]; do URL=${DLIST[$CNT]} echo -en "geting file $CNT of $FILES\r" # wget -q "$URL" 2>/dev/null ((CNT++)) done echo "Press return to install." read -p "Ctrl-C to exit: " # sudo dpkg -i -R "$HOME/pkgs-$VERSION" > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Fri Jan 29 00:13:18 2021 From: adamnt42 at gmail.com (Bruce) Date: Fri, 29 Jan 2021 09:43:18 +1030 Subject: [Gambas-user] Proposed "gb.statistics" component - volunteer(s) requested In-Reply-To: References: Message-ID: <93cb2c6e-3490-db8f-b7f4-411ae82a7bdf@gmail.com> On 28/1/21 8:43 pm, Christof Thalhofer wrote: > Am 28.01.21 um 00:24 schrieb Bruce: > >> Attached is the source archive for a component that provides basic >> statistics functions, (renamedfrom .tar.gz to .txt to get around email >> issues). > > Despite then ending .txt the mail was bounced by all Gmail servers. > Noone with a Gmail account (most of the users here) got it. > > https://switching.software/replace/gmail/ > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Any ideas how to send it? I have lost my farm password. b From tobs at taboege.de Fri Jan 29 00:41:21 2021 From: tobs at taboege.de (Tobias Boege) Date: Fri, 29 Jan 2021 00:41:21 +0100 Subject: [Gambas-user] Proposed "gb.statistics" component - volunteer(s) requested In-Reply-To: <93cb2c6e-3490-db8f-b7f4-411ae82a7bdf@gmail.com> References: <93cb2c6e-3490-db8f-b7f4-411ae82a7bdf@gmail.com> Message-ID: <20210128234121.GB225026@highrise.localdomain> On Fri, 29 Jan 2021, Bruce wrote: > On 28/1/21 8:43 pm, Christof Thalhofer wrote: > > Am 28.01.21 um 00:24 schrieb Bruce: > > > > > Attached is the source archive for a component that provides basic > > > statistics functions, (renamedfrom .tar.gz to .txt to get around email > > > issues). > > > > Despite then ending .txt the mail was bounced by all Gmail servers. > > Noone with a Gmail account (most of the users here) got it. > > > > https://switching.software/replace/gmail/ > > > > Any ideas how to send it? I have lost my farm password. > b > Putting it up on a public repository site and just pasting the link in the email would work (and it would probably be the first step I would do anyway if I were to work on that component). Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jose.rodriguez at cenpalab.cu Fri Jan 29 00:55:44 2021 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Thu, 28 Jan 2021 23:55:44 +0000 Subject: [Gambas-user] PPA for Raspberry Pi OS In-Reply-To: References: <7894a3eb-6042-1bb9-d5f5-860c96930817@gmail.com> Message-ID: <49fafbf307c308bd57c5f3f24d20a867@cenpalab.cu> January 27, 2021 11:02 AM, "Beno?t Minisini" wrote: > Le 27/01/2021 ? 16:55, Bruce Steers a ?crit : > >> wait what?! >> I was under the impression PPA was Ubuntu only not Debian? >> >> I am sure i have tried it on debian and it didn't work? >> I will have to try again.. >> BruceS > > The PPA won't, but I think the packages work. Of course I didn't test. > > -- > Beno?t Minisini For testing sakes, I just tried adding the gambas3 'focal' ppa repo to the sources.list on a Debian buster container and it seems to work correctly as far as 'apt update' and 'apt-cache policy gambas3' are concerned, but when you try 'apt install gambas3', you get unmet dependencies all across the board. If you try with the 'bionic' ppa, you get further along, but there are still unmet dependencies that cause these packages to fail: gambas3-gb-gtk-opengl gambas3-gb-mysql gambas3-gb-opengl-glsl gambas3-gb-opengl-glu gambas3-gb-qt4-opengl gambas3-gb-opengl-sge gambas3-gb-pdf gambas3-gb-sdl gambas3-gb-v4l gambas3-gb-desktop-gnome-keyring If you don't need any of those, you might try it out (I can't actually go through with the install on a container because it would want to install a full GUI desktop), otherwise, until someone can build actual Debian packages, you will need to compile gambas3 yourself. Regards, Joe1962 From bsteers4 at gmail.com Fri Jan 29 13:56:30 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 29 Jan 2021 12:56:30 +0000 Subject: [Gambas-user] Some great updates Benoit Message-ID: just wanted to personally thank Benoit for some of the recent updates. Especially this one... ** NEW: Form editor: Pasting controls put them at the first free place found now.* Absolutely fantastic :) A thousand thanks are not enough good sir :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Jan 29 15:25:01 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 29 Jan 2021 14:25:01 +0000 Subject: [Gambas-user] Is my Gambas updater logo acceptable? Message-ID: hi Ben Best imagery i could think of for my gambas upgrade tool was to simply use the old gambas icon and the new one with an arrow in between. I made a quick image and am using it as a logo and as an icon. Do not wish to upset anyone with the blatant copy-paste of your images though. Is it okay with you for me to use the images ? https://gitlab.com/bsteers4/gambaslatestupdate/-/blob/master/README.md Thank you BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 62789 bytes Desc: not available URL: From Karl.Reinl at Fen-Net.de Fri Jan 29 16:36:08 2021 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Fri, 29 Jan 2021 16:36:08 +0100 Subject: [Gambas-user] Is my Gambas updater logo acceptable? In-Reply-To: References: Message-ID: <1e8f94be1f7f4894646dfe092be736f7c8354a2f.camel@Fen-Net.de> Am Freitag, den 29.01.2021, 14:25 +0000 schrieb Bruce Steers: > hi Ben > Best imagery i could think of for my gambas upgrade tool was to > simply use the old gambas icon and the new one with an arrow in > between. > I made a quick image and am using it as a logo and as an icon. > > Do not wish to upset anyone with the blatant copy-paste of your > images though. > Is it okay with you for me to use the images ? > > https://gitlab.com/bsteers4/gambaslatestupdate/-/blob/master/README.md > > Thank you > BruceS > > > Salut BruceS, do you have a revision logfile, ask that because in the past I sometimes had to go back to the last revision that worked for me, but I also always want to be up to date. Revision logfile helps me then to save a lot of time. Ex: the Time format was broken. START --------------------------------- So 20. Dez 10:06:27 CET 2020 -- ----------------------------- local : ecb11f6552be93c234f0acc624f342f04971731b server : 09da68993e281fe35f17882ae726f44c0e19825e HEAD describe : END --------------------------------- So 20. Dez 10:17:07 CET 2020 ---- --------------------------- START --------------------------------- Mi 23. Dez 22:42:38 CET 2020 -- ----------------------------- local : 09da68993e281fe35f17882ae726f44c0e19825e server : daafba28dcd4174586677334236b458096a6aadc HEAD describe : END --------------------------------- Mi 23. Dez 22:54:36 CET 2020 ---- --------------------------- START --------------------------------- Do 24. Dez 10:02:34 CET 2020 -- ----------------------------- local : daafba28dcd4174586677334236b458096a6aadc server : daafba28dcd4174586677334236b458096a6aadc HEAD describe : 3.14.0-1118-gdaafba28d 3.14.0-1118-gdaafba28d setting local to Revision: ecb11f6552be93c234f0acc624f342f04971731b checkout: ecb11f6552be93c234f0acc624f342f04971731b -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Jan 29 17:12:28 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 29 Jan 2021 16:12:28 +0000 Subject: [Gambas-user] Is my Gambas updater logo acceptable? In-Reply-To: <1e8f94be1f7f4894646dfe092be736f7c8354a2f.camel@Fen-Net.de> References: <1e8f94be1f7f4894646dfe092be736f7c8354a2f.camel@Fen-Net.de> Message-ID: On Fri, 29 Jan 2021 at 15:48, Charlie Reinl wrote: > Am Freitag, den 29.01.2021, 14:25 +0000 schrieb Bruce Steers: > > hi Ben > Best imagery i could think of for my gambas upgrade tool was to simply use > the old gambas icon and the new one with an arrow in between. > I made a quick image and am using it as a logo and as an icon. > > Do not wish to upset anyone with the blatant copy-paste of your images > though. > Is it okay with you for me to use the images ? > > https://gitlab.com/bsteers4/gambaslatestupdate/-/blob/master/README.md > > Thank you > BruceS > > > Salut BruceS, > > do you have a revision logfile, ask that because in the past I sometimes > had to go back to the last revision that worked for me, but I also always > want to be up to date. > Revision logfile helps me then to save a lot of time. > > Ex: the Time format was broken. > Not sure what you mean. I may have made and uploaded some changes when i was using fedora that was not setting the time correctly, this gave me some errors before i reset. the functions in the app that use time use DateDiff() I have also made a change as i had noticed the duration not being reported correctly but forgot about it. thanks for reminding me. Sorry no log as such, only the commit history. and sometimes there were more changes between commits than i could list/remeber. The app was very WIP to begin with but is more settled now. I'm currently working on a third incarnation of it that only deals with master or stable branch (no custom branch stuff like the above app) and does not require git. Once i have that one finished I will get back into changes to refine this app and make it best it can be. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From detlef.eberhardt at gmail.com Fri Jan 29 17:24:35 2021 From: detlef.eberhardt at gmail.com (Detlef Eberhardt) Date: Fri, 29 Jan 2021 17:24:35 +0100 Subject: [Gambas-user] DataComboView: reading rows and columns Message-ID: Hi Gambas community, this is my very first post in a mailinglist, so please point me into the right direction if I miss something. I just started this week with a Gambas GUI-frontend of a Lens-Register database. It's great fun to work with Gambas as it is IMHO more comfortable than any other VB*A or whatever. I have got some issues with the DataComboView controls as I cannot find any further help or code snippets on the internet. The DataComboView is bound to a table in sqlite3 (with PK) and shows 2 columns. How can I read the first and second column (and row) out of the DataComboView control? Cheers 01McAc -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jan 29 18:37:03 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 29 Jan 2021 18:37:03 +0100 Subject: [Gambas-user] DataComboView: reading rows and columns In-Reply-To: References: Message-ID: Il giorno ven 29 gen 2021 alle ore 17:25 Detlef Eberhardt < detlef.eberhardt at gmail.com> ha scritto: > Hi Gambas community, > > this is my very first post in a mailinglist, so please point me into the > right direction if I miss something. > > I just started this week with a Gambas GUI-frontend of a Lens-Register > database. It's great fun to work with Gambas as it is IMHO more > comfortable than any other VB*A or whatever. I have got some issues > with the DataComboView controls as I cannot find any further help or code > snippets on the internet. The DataComboView is bound to a table in > sqlite3 (with PK) and shows 2 columns. How can I read the first and > second column (and row) out of the DataComboView control? > > Cheers > 01McAc > > Hi, I use the valuebox type Date. ? Assuming you have created the table like this ($hConn is the connection to your sqlite3 database): hTable = $hConn.Tables.Add("table-name") hTable.Fields.Add("takey", db.Serial) hTable.Fields.Add("tadat", db.Date) hTable.PrimaryKey = ["takey"] hTable.Update and that you populated it like this: Dim hResult As Result hResult = $hConn.Create("table-name") hResult!tadat = Date(ValueBox1.Value) hResult.Update So to display the date with Key = 3 in ValueBox2 you will do: Dim hResult As Result hResult = $hConn.Find("table-name", "takey = &1", 3) If hResult.Available Then hResult.MoveFirst ValueBox2.Value = hResult!tadat Endif For more information about the dates: http://gambaswiki.org/wiki/doc/date Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jan 29 19:21:00 2021 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 29 Jan 2021 19:21:00 +0100 Subject: [Gambas-user] DataComboView: reading rows and columns In-Reply-To: References: Message-ID: Il giorno ven 29 gen 2021 alle ore 18:37 Gianluigi ha scritto: > > > Il giorno ven 29 gen 2021 alle ore 17:25 Detlef Eberhardt < > detlef.eberhardt at gmail.com> ha scritto: > >> Hi Gambas community, >> >> this is my very first post in a mailinglist, so please point me into the >> right direction if I miss something. >> >> I just started this week with a Gambas GUI-frontend of a Lens-Register >> database. It's great fun to work with Gambas as it is IMHO more >> comfortable than any other VB*A or whatever. I have got some issues >> with the DataComboView controls as I cannot find any further help or code >> snippets on the internet. The DataComboView is bound to a table in >> sqlite3 (with PK) and shows 2 columns. How can I read the first and >> second column (and row) out of the DataComboView control? >> >> Cheers >> 01McAc >> >> > Hi, > > I use the valuebox type Date. ? > Assuming you have created the table like this ($hConn is the connection to > your sqlite3 database): > ... > Sorry I misunderstood, in the properties choose: In Table the table, in colums the columns of the table. Of course you have to create a new connection in Connections... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Fri Jan 29 23:13:14 2021 From: karl.reinl at fen-net.de (Karl Reinl) Date: Fri, 29 Jan 2021 23:13:14 +0100 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: References: <7ff01662-ec2e-e830-5a0d-886f5cd5730f@gmail.com> Message-ID: Am Freitag, den 22.01.2021, 19:51 -0400 schrieb PICCORO McKAY Lenz: > HEy kicking177 check #1100 > http://gambaswiki.org/bugtracker/edit?object=BUG.1100 > > odbc cannot count on resultset.. is not part of the standar cos not > all the db's can report it check my documentation: > http://gambaswiki.org/wiki/howto/odbcdatabase#t7 > Salut, new on unixODBC, I played around and tried connecting a MS-SQL Server 2017 hosted on a docker based on Ubuntu 16.04 by using latest msodbcsql driver. This is the output, and it shows me that gb.db.odbc can fetch rows, but not the used odbc driver: 2021-01-29 22:30:52.138 gb.db.odbc: GetConnectedDBName: desc->name (6 chars): 'master' 2021-01-29 22:30:52.138 gb.db.odbc: 0x5601ae6b5f98: select name from sys.databases 2021-01-29 22:30:52.146 gb.db.odbc: SQLGetStmtAttr SQL_ATTR_ROW_NUMBER 2021-01-29 22:30:52.146 gb.db.odbc: 1:24000:0:[unixODBC][Driver Manager]Invalid cursor state 2021-01-29 22:30:52.159 gb.db.odbc: GetRecordCount: First recno=1 2021-01-29 22:30:52.171 gb.db.odbc: GetRecordCount: Last recno=9 2021-01-29 22:30:52.176 gb.db.odbc: GetRecordCount: Record count=9 2021-01-29 22:30:55.430 gb.db.odbc: GetConnectedDBName: desc->name (10 chars): 'mytest2017' 2021-01-29 22:31:23.699 gb.db.odbc: 0x5601ae6b5f98: SELECT name FROM SYSOBJECTS WHERE xtype = 'U' order by name; 2021-01-29 22:31:23.744 gb.db.odbc: SQLGetStmtAttr SQL_ATTR_ROW_NUMBER 2021-01-29 22:31:23.744 gb.db.odbc: 1:24000:0:[unixODBC][Driver Manager]Invalid cursor state 2021-01-29 22:31:23.748 gb.db.odbc: GetRecordCount: First recno=1 2021-01-29 22:31:23.753 gb.db.odbc: GetRecordCount: Last recno=99 2021-01-29 22:31:23.755 gb.db.odbc: GetRecordCount: Record count=99 This is the output if 'show database requests' is on. But also to say gb.db.odbc can' fill Databases and Tables list correctly (cOrg.Tables.Count = 1045 ) in real ,you see the count above ther are 99 Tables. -- Amicalement Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: From detlef.eberhardt at gmail.com Sat Jan 30 07:25:58 2021 From: detlef.eberhardt at gmail.com (Detlef Eberhardt) Date: Sat, 30 Jan 2021 07:25:58 +0100 Subject: [Gambas-user] DataComboView: reading rows and columns In-Reply-To: References: Message-ID: <0f02de6b0bb2d304fbf10c3a9b6cb3bb165fd752.camel@gmail.com> No idea how to answer in a mailinglist to Gianluigi post?https://lists.gambas-basic.org/pipermail/user/2021-January/071717.html Thanks, Gianluigi. I guess this is a sort of workaround. I tried the he valuebox type date but it has no properties like table? > Hi Gambas community, > > this is my very first post in a mailinglist, so please point me into > the > right direction if I miss something. > > I just started this week with a Gambas GUI-frontend of a Lens- > Register > database. It's great fun to work with Gambas as it is IMHO more > comfortable than any other VB*A or whatever. I have got some issues > with the DataComboView controls as I cannot find any further help or > code > snippets on the internet. The DataComboView is bound to a table in > sqlite3 (with PK) and shows 2 columns. How can I read the first and > second column (and row) out of the DataComboView control? > > Cheers > 01McAc > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Jan 30 08:16:47 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 30 Jan 2021 08:16:47 +0100 Subject: [Gambas-user] DataComboView: reading rows and columns In-Reply-To: <0f02de6b0bb2d304fbf10c3a9b6cb3bb165fd752.camel@gmail.com> References: <0f02de6b0bb2d304fbf10c3a9b6cb3bb165fd752.camel@gmail.com> Message-ID: Il giorno sab 30 gen 2021 alle ore 07:26 Detlef Eberhardt < detlef.eberhardt at gmail.com> ha scritto: > No idea how to answer in a mailinglist to Gianluigi post > https://lists.gambas-basic.org/pipermail/user/2021-January/071717.html > > Thanks, Gianluigi. I guess this is a sort of workaround. I tried the he > valuebox type date but it has no properties like table > Excuse the confusion, I have read DataComboView and understood DateChooser, hence my first answer. DataComboView is a special component which relies on the connections made by the IDE end on container DataSource. Right click on Connections> New Connection, Name = Connection1, Type = SQLite, Path click on the button with the dots, Database = click on the button on the right. NOTE: At this stage the database must be inserted into the application in a separate folder (eg Database) in Data, at the end you will have to copy it outside the application. When I talk about Table and Colums properties I am referring to DataComboView. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sat Jan 30 12:31:14 2021 From: kicking177 at gmail.com (KKing) Date: Sat, 30 Jan 2021 11:31:14 +0000 Subject: [Gambas-user] ODBC - unable to fetch row Message-ID: <489b260b-ad90-0033-c80b-9bd4b42a5e5f@gmail.com> Hi Charlie, the subject "ODBC - unable to fetch row" is specific to trying to use unixODBC+mdbtools which @zxMarce has confirmed. the quoted text from @PICCORO is relating to a separate test I did with sqlite (not MS SQL) that got past the .exec statement (that mdbtools fails on) but when trying to check the number of records or to loop through result via gb.odbc it reports there is only 1 record where as the unixodbc isql utility (that effectively should be what the gb.odbc call should be doing) is providing the expected 1,000 records. So I'm not entirely sure what you are saying ... is it that with MS SQL and a non unixodbc? driver it is works for you? K. From detlef.eberhardt at gmail.com Sat Jan 30 14:28:30 2021 From: detlef.eberhardt at gmail.com (Detlef Eberhardt) Date: Sat, 30 Jan 2021 14:28:30 +0100 Subject: [Gambas-user] DataComboView: reading rows and columns In-Reply-To: References: Message-ID: yes, that's what I already have: a conntection1, a datasource bound to the connection1, a couple of DataControls (which works perfectly) and two DataComboView controls with the appropiate table and columns. It all works fine. What is the purpose to insert the DB into the application and how can I do that? Do you have any code snippets or links to a documentation? The other question is how can I practically read the rows and columns from the ?DataComboView controls?? > Hi Gambas community, > > this is my very first post in a mailinglist, so please point me into > the > right direction if I miss something. > > I just started this week with a Gambas GUI-frontend of a Lens- > Register > database. It's great fun to work with Gambas as it is IMHO more > comfortable than any other VB*A or whatever. I have got some issues > with the DataComboView controls as I cannot find any further help or > code > snippets on the internet. The DataComboView is bound to a table in > sqlite3 (with PK) and shows 2 columns. How can I read the first and > second column (and row) out of the DataComboView control? > > Cheers > 01McAc > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Karl.Reinl at Fen-Net.de Sat Jan 30 15:28:21 2021 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Sat, 30 Jan 2021 15:28:21 +0100 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: <489b260b-ad90-0033-c80b-9bd4b42a5e5f@gmail.com> References: <489b260b-ad90-0033-c80b-9bd4b42a5e5f@gmail.com> Message-ID: Am Samstag, den 30.01.2021, 11:31 +0000 schrieb KKing: > Hi Charlie, > > the subject "ODBC - unable to fetch row" is specific to trying to > use > unixODBC+mdbtools which @zxMarce has confirmed. > > the quoted text from @PICCORO is relating to a separate test I did > with > sqlite (not MS SQL) that got past the .exec statement (that mdbtools > fails on) but when trying to check the number of records or to loop > through result via gb.odbc it reports there is only 1 record where > as > the unixodbc isql utility (that effectively should be what the > gb.odbc > call should be doing) is providing the expected 1,000 records. > > So I'm not entirely sure what you are saying ... is it that with MS > SQL > and a non unixodbc? driver it is works for you? > K. > Yes, I use for this Tests 'Microsoft ODBC Driver 17 for SQL Server' For your problem, end 1999 we linked the tables from a Access MDB to an MS-SQLServer (think 7.0 at that time) and that worked fine. But not shure you can still do that, with a SQL-Server on docker Also you can use mdbtools and easysoft have an Access ODBC Driver: https://www.easysoft.com/products/data_access/odbc-access-driver/getting-started.html From g4mba5 at gmail.com Sat Jan 30 15:54:18 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 30 Jan 2021 15:54:18 +0100 Subject: [Gambas-user] Faster compiler Message-ID: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> Hi, I have just implemented support for background jobs in the Gambas compiler, through a new '-j' option that takes as argument the maximum number of background jobs. It's like an embedded "make" command. Now, on my four-core Intel CPU, compiling the IDE is about four times faster with four backgroud jobs. I won 0,5 s. Woh oh! More seriously, I have done that for fun, and I don't know if it could help on slower computers. You will tell me. -- Beno?t Minisini From olivier.cruilles at yahoo.fr Sat Jan 30 16:23:56 2021 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Sat, 30 Jan 2021 10:23:56 -0500 Subject: [Gambas-user] Faster compiler In-Reply-To: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> Message-ID: <417AA1A1-64FE-4B50-ABE6-89CEA424C423@yahoo.fr> Hi Benoit, Just a question, this is like the ?-j? of ?make? command but for the compiler of Gambas right ? Ex: gbc -f 4 .... Olivier > Le 30 janv. 2021 ? 09:55, Beno?t Minisini a ?crit : > > ?Hi, > > I have just implemented support for background jobs in the Gambas compiler, through a new '-j' option that takes as argument the maximum number of background jobs. > > It's like an embedded "make" command. > > Now, on my four-core Intel CPU, compiling the IDE is about four times faster with four backgroud jobs. > > I won 0,5 s. Woh oh! > > More seriously, I have done that for fun, and I don't know if it could help on slower computers. > > You will tell me. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Sat Jan 30 16:33:52 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 30 Jan 2021 16:33:52 +0100 Subject: [Gambas-user] Faster compiler In-Reply-To: <417AA1A1-64FE-4B50-ABE6-89CEA424C423@yahoo.fr> References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> <417AA1A1-64FE-4B50-ABE6-89CEA424C423@yahoo.fr> Message-ID: <88a79fa0-c23a-73fd-e1af-5595e905a897@gmail.com> Le 30/01/2021 ? 16:23, Yahoo via User a ?crit?: > Hi Benoit, > > Just a question, this is like the ?-j? of ?make? command but for the compiler of Gambas right ? > > Ex: gbc -f 4 .... > > Olivier Yes. And it's '-j', not '-f'. I thought my post was clear. :-) -- Beno?t Minisini From brian at westwoodsvcs.com Sat Jan 30 16:41:14 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 30 Jan 2021 07:41:14 -0800 (PST) Subject: [Gambas-user] Faster compiler In-Reply-To: <88a79fa0-c23a-73fd-e1af-5595e905a897@gmail.com> References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> <417AA1A1-64FE-4B50-ABE6-89CEA424C423@yahoo.fr> <88a79fa0-c23a-73fd-e1af-5595e905a897@gmail.com> Message-ID: <994351714.860.1612021274571.JavaMail.zimbra@westwoodsvcs.com> Great addition! Thank You Brian G ----- Original Message ----- From: "Beno?t Minisini" To: "Gambas mailing list" Sent: Saturday, January 30, 2021 7:33:52 AM Subject: Re: [Gambas-user] Faster compiler Le 30/01/2021 ? 16:23, Yahoo via User a ?crit?: > Hi Benoit, > > Just a question, this is like the ?-j? of ?make? command but for the compiler of Gambas right ? > > Ex: gbc -f 4 .... > > Olivier Yes. And it's '-j', not '-f'. I thought my post was clear. :-) -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From Karl.Reinl at fen-net.de Sat Jan 30 16:54:06 2021 From: Karl.Reinl at fen-net.de (Charlie Reinl) Date: Sat, 30 Jan 2021 16:54:06 +0100 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: <489b260b-ad90-0033-c80b-9bd4b42a5e5f@gmail.com> References: <489b260b-ad90-0033-c80b-9bd4b42a5e5f@gmail.com> Message-ID: <8a81b82377b65a40d764dc6390d4ba73da8636eb.camel@Fen-Net.de> Am Samstag, den 30.01.2021, 11:31 +0000 schrieb KKing: > Hi Charlie, > > the subject "ODBC - unable to fetch row" is specific to trying to > use > unixODBC+mdbtools which @zxMarce has confirmed. > > the quoted text from @PICCORO is relating to a separate test I did > with > sqlite (not MS SQL) that got past the .exec statement (that mdbtools > fails on) but when trying to check the number of records or to loop > through result via gb.odbc it reports there is only 1 record where > as > the unixodbc isql utility (that effectively should be what the > gb.odbc > call should be doing) is providing the expected 1,000 records. > > So I'm not entirely sure what you are saying ... is it that with MS > SQL > and a non unixodbc? driver it is works for you? > K. > Yes, I use for this Tests 'Microsoft ODBC Driver 17 for SQL Server' For your problem, end 1999 we linked the tables from a Access MDB to an MS-SQLServer (think 7.0 at that time) and that worked fine. But not shure you can still do that, with a SQL-Server on docker Also you can use mdbtools and easysoft have an Access ODBC Driver: https://www.easysoft.com/products/data_access/odbc-access-driver/getting-started.html Sorry on re-reading your last question, my yes from above, is not the answer, I am answering the question, not asked, about the driver. I used the ODBC driver from Microsoft but with gb.db.odbc which uses unixODBC. But I have tested this in meantime: even with freeTDS, I get an rs.count. So it seems to be the SQL server and not the Odbc drivers. -- Amicalement Charlie From bagonergi at gmail.com Sat Jan 30 17:03:49 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 30 Jan 2021 17:03:49 +0100 Subject: [Gambas-user] DataComboView: reading rows and columns In-Reply-To: References: Message-ID: Il giorno sab 30 gen 2021 alle ore 14:29 Detlef Eberhardt < detlef.eberhardt at gmail.com> ha scritto: > yes, that's what I already have: a conntection1, a datasource bound to the > connection1, a couple of DataControls (which works perfectly) and two > DataComboView controls with the appropiate table and columns. It all works > fine. > What is the purpose to insert the DB into the application and how can I do > that? > AFAIK if you don't do this with sqlite you couldn't work ... > Do you have any code snippets or links to a documentation? The other > question is how can I practically read the rows and columns from the > DataComboView controls? > I am attaching a Zip example (zip to avoid problems with GMail) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DataComboViewTest.zip Type: application/zip Size: 17436 bytes Desc: not available URL: From bsteers4 at gmail.com Sat Jan 30 17:11:52 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 30 Jan 2021 16:11:52 +0000 Subject: [Gambas-user] Faster compiler In-Reply-To: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> Message-ID: Awesome :) i'm sure it will help with compiling gambas itself as it's huge. I guess as it's the compiler it will only speed up the final make install command where all the compiling happens but ANY speed up of compiling is a plus, I have a number of test systems to manually update gambas on. Merci bocoup :) On Sat, 30 Jan 2021 at 14:55, Beno?t Minisini wrote: > Hi, > > I have just implemented support for background jobs in the Gambas > compiler, through a new '-j' option that takes as argument the maximum > number of background jobs. > > It's like an embedded "make" command. > > Now, on my four-core Intel CPU, compiling the IDE is about four times > faster with four backgroud jobs. > > I won 0,5 s. Woh oh! > > More seriously, I have done that for fun, and I don't know if it could > help on slower computers. > > You will tell me. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 30 17:54:32 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 30 Jan 2021 16:54:32 +0000 Subject: [Gambas-user] Persistent clipboard? Message-ID: Can anything be done about the way the clipboard clears on app exit? I have just implemented into a few of my apps detecting clipit. clipit seems to work well upon a call to Clipboard.Copy() i use a simple... *If $bHasClipit Then Shell "echo -n " & Quote(sText) & "|clipit"* Then the text is still in the clipboard after program exit if the user has clipit installed. Would be amazing if Gambas could use clipboard differently to be persistent after app exit. Or maybe an alternative Clipboard.CopyPersistent() command that would obviously be slower but an awesome feature. I could imagine something simple like... *Public Sub Form_Close()* * ' check if clipboard has text contents and make it still exist after program exit.* * If Clipboard.Type = Clipboard.Text Then Clipboard.CopyPersistent()* *End* And voilla , no more "dang it i need to open the app again and go through the procedure to get that text" ;) I tried to add it to a TextEditor's internal Copy() command but it seems the copy command is called when text is only being selected via mouse drag and not just when a call to Copy is made. I could not see where that was happening to try a workaround (any clues Ben?). Just some food for thought. Much love BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sat Jan 30 18:01:35 2021 From: kicking177 at gmail.com (KKing) Date: Sat, 30 Jan 2021 17:01:35 +0000 Subject: [Gambas-user] ODBC - unable to fetch row Message-ID: Hi Charlie > and easysoft have an Access ODBC Driver: > https://www.easysoft.com/products/data_access/odbc-access-driver/getting-started.html I have odbc connection to mdb's working fine with unixODBC and mdbtools ... it's just using that with gb.db.odbc that currently flails.. plus Easysoft don't list Access 97 which is the version of these and at a price of 899 GBP ... I do not think so ! > But I have tested this in meantime: even with freeTDS, I get an > rs.count. > So it seems to be the SQL server and not the Odbc drivers. but that is with MS SQL ... not what I'm looking at From g4mba5 at gmail.com Sat Jan 30 18:09:48 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 30 Jan 2021 18:09:48 +0100 Subject: [Gambas-user] Persistent clipboard? In-Reply-To: References: Message-ID: <8a4c3dd0-5db3-c263-95cf-3a5fc0dd4145@gmail.com> Le 30/01/2021 ? 17:54, Bruce Steers a ?crit?: > > Can anything be done about the way the clipboard clears on app exit? > The clipboard is entirely managed by the underlying toolkit (GTK+ or Qt) (even if it requires its bunch of cryptic code in both toolkits). > I have just implemented into a few of my apps detecting clipit. > clipit seems to work well > upon a call to Clipboard.Copy() i use a simple... > * > * > *If $bHasClipit Then Shell "echo -n " & Quote(sText) & "|clipit"* > * > * Voil?. A persistent clipboard needs a persistent external program. Obviously, Gambas cannot do anything reliable, as it cannot ensure that clipit, or any other clipboard manager is running, or can be run reliably. Besides a hack like you did, I don't think it exists a standard solution that could be implemented inside Gambas (something like xdg-tools that can triggers actions according to the current desktop). Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 30 18:13:18 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 30 Jan 2021 18:13:18 +0100 Subject: [Gambas-user] Persistent clipboard? In-Reply-To: <8a4c3dd0-5db3-c263-95cf-3a5fc0dd4145@gmail.com> References: <8a4c3dd0-5db3-c263-95cf-3a5fc0dd4145@gmail.com> Message-ID: <06829b70-2d9e-6bff-32d7-1559382deacd@gmail.com> Le 30/01/2021 ? 18:09, Beno?t Minisini a ?crit?: > Le 30/01/2021 ? 17:54, Bruce Steers a ?crit?: >> >> Can anything be done about the way the clipboard clears on app exit? >> > I have just looked for a few seconds, and found -twelve- different clipboard managers, each one having different features, bugs, and limitations... -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 30 18:23:26 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 30 Jan 2021 18:23:26 +0100 Subject: [Gambas-user] Persistent clipboard? In-Reply-To: <06829b70-2d9e-6bff-32d7-1559382deacd@gmail.com> References: <8a4c3dd0-5db3-c263-95cf-3a5fc0dd4145@gmail.com> <06829b70-2d9e-6bff-32d7-1559382deacd@gmail.com> Message-ID: <131cb355-be5c-075c-eeea-8c4dc3467151@gmail.com> Le 30/01/2021 ? 18:13, Beno?t Minisini a ?crit?: > Le 30/01/2021 ? 18:09, Beno?t Minisini a ?crit?: >> Le 30/01/2021 ? 17:54, Bruce Steers a ?crit?: >>> >>> Can anything be done about the way the clipboard clears on app exit? >>> >> > > I have just looked for a few seconds, and found -twelve- different > clipboard managers, each one having different features, bugs, and > limitations... > Did I mention that they probably don't work on Wayland... Here is a tool that copy/paste on Wayland from the command-line in just 3,470 lines of code: https://github.com/bugaevc/wl-clipboard Good Lord... -- Beno?t Minisini From detlef.eberhardt at gmail.com Sat Jan 30 18:44:24 2021 From: detlef.eberhardt at gmail.com (Detlef Eberhardt) Date: Sat, 30 Jan 2021 18:44:24 +0100 Subject: [Gambas-user] DataComboView: reading rows and columns In-Reply-To: References: Message-ID: <89552ed82fbd59455432a73d69ab9997f505ae67.camel@gmail.com> Thank you, Gianluigi. This is excellent. The example makes it very clear to me how to get the data. That is exactly what I needed. Finally, how can I import an existing sqlite3 database into Gambas? Do I have to set it up manually or can I just import the existing schema and data? > yes, that's what I already have: a conntection1, a datasource bound > to the connection1, a couple of DataControls (which works perfectly) > and two DataComboView controls with the appropiate table and columns. > It all works fine. > What is the purpose to insert the DB into the application and how can > I do that? Do you have any code snippets or links to a documentation? > The other question is how can I practically read the rows and columns > from the ?DataComboView controls?? > > > > Hi Gambas community, > > > > this is my very first post in a mailinglist, so please point me > > into the > > right direction if I miss something. > > > > I just started this week with a Gambas GUI-frontend of a Lens- > > Register > > database. It's great fun to work with Gambas as it is IMHO more > > comfortable than any other VB*A or whatever. I have got some issues > > with the DataComboView controls as I cannot find any further help > > or code > > snippets on the internet. The DataComboView is bound to a table in > > sqlite3 (with PK) and shows 2 columns. How can I read the first and > > second column (and row) out of the DataComboView control? > > > > Cheers > > 01McAc > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sat Jan 30 18:40:26 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 30 Jan 2021 09:40:26 -0800 (PST) Subject: [Gambas-user] Call modules with _call Message-ID: <458239373.1078.1612028426065.JavaMail.zimbra@westwoodsvcs.com> How much overhead does creating a module by name with a _call entry point create compared to a direct call in the current module file. example mmmail module contains this: public sub main() doThis() end doThis Module contains this: public sub _Call() print "hi" end as opposed to mmain module contains this: public sub main() doThis() end public sub doThis() print "hi" end I guess the question is how does gambas make the link at runtime Maybe Beno?t could answer this Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Jan 30 19:03:26 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 30 Jan 2021 19:03:26 +0100 Subject: [Gambas-user] DataComboView: reading rows and columns In-Reply-To: <89552ed82fbd59455432a73d69ab9997f505ae67.camel@gmail.com> References: <89552ed82fbd59455432a73d69ab9997f505ae67.camel@gmail.com> Message-ID: If the database already exists and you created it in linux, copy and paste through the file manager :-) If the database comes from another OS, you should do it again as I indicated and import the data through the code, see CsvFile of gb.util: http://gambaswiki.org/wiki/comp/gb.util Note: the text of your email is white, are you on a diet? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From detlef.eberhardt at gmail.com Sat Jan 30 19:03:53 2021 From: detlef.eberhardt at gmail.com (Detlef Eberhardt) Date: Sat, 30 Jan 2021 19:03:53 +0100 Subject: [Gambas-user] DataComboView: reading rows and columns In-Reply-To: <89552ed82fbd59455432a73d69ab9997f505ae67.camel@gmail.com> References: <89552ed82fbd59455432a73d69ab9997f505ae67.camel@gmail.com> Message-ID: <3cc1e11b984f07919b5bd5006057387aa3bfa595.camel@gmail.com> I tried the code with my external sqlite3 database and it works! All good now. There is no need to import the DB into Gambas.? I really appreciate your help. > Thank you, Gianluigi. This is excellent. The example makes it very clear to me how to get the data. That is exactly what I needed. Finally, how can I import an existing sqlite3 database into Gambas? > Do I have to set it up manually or can I just import the existing schema and data? > > > yes, that's what I already have: a conntection1, a datasource bound > to the connection1, a couple of DataControls (which works perfectly) > and two DataComboView controls with the appropiate table and columns. > It all works fine. > What is the purpose to insert the DB into the application and how can > I do that? Do you have any code snippets or links to a documentation? > The other question is how can I practically read the rows and columns > from the ?DataComboView controls?? > > > > Hi Gambas community, > > > > this is my very first post in a mailinglist, so please point me > > into the > > right direction if I miss something. > > > > I just started this week with a Gambas GUI-frontend of a Lens- > > Register > > database. It's great fun to work with Gambas as it is IMHO more > > comfortable than any other VB*A or whatever. I have got some issues > > with the DataComboView controls as I cannot find any further help > > or code > > snippets on the internet. The DataComboView is bound to a table in > > sqlite3 (with PK) and shows 2 columns. How can I read the first and > > second column (and row) out of the DataComboView control? > > > > Cheers > > 01McAc > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Jan 30 19:08:42 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 30 Jan 2021 19:08:42 +0100 Subject: [Gambas-user] DataComboView: reading rows and columns In-Reply-To: <3cc1e11b984f07919b5bd5006057387aa3bfa595.camel@gmail.com> References: <89552ed82fbd59455432a73d69ab9997f505ae67.camel@gmail.com> <3cc1e11b984f07919b5bd5006057387aa3bfa595.camel@gmail.com> Message-ID: ?... and thank you for the information Regards Gianluigi Il giorno sab 30 gen 2021 alle ore 19:05 Detlef Eberhardt < detlef.eberhardt at gmail.com> ha scritto: > I tried the code with my external sqlite3 database and it works! All good > now. There is no need to import the DB into Gambas. > I really appreciate your help. > > Thank you, Gianluigi. This is excellent. The example makes it very clear to me how to get the data. That is exactly what I needed. Finally, how can I import an existing sqlite3 database into Gambas? > > Do I have to set it up manually or can I just import the existing schema and data? > > > > yes, that's what I already have: a conntection1, a datasource bound to the > connection1, a couple of DataControls (which works perfectly) and two > DataComboView controls with the appropiate table and columns. It all works > fine. > What is the purpose to insert the DB into the application and how can I do > that? Do you have any code snippets or links to a documentation? The other > question is how can I practically read the rows and columns from the > DataComboView controls? > > > Hi Gambas community, > > this is my very first post in a mailinglist, so please point me into the > right direction if I miss something. > > I just started this week with a Gambas GUI-frontend of a Lens-Register > database. It's great fun to work with Gambas as it is IMHO more > comfortable than any other VB*A or whatever. I have got some issues > with the DataComboView controls as I cannot find any further help or code > snippets on the internet. The DataComboView is bound to a table in > sqlite3 (with PK) and shows 2 columns. How can I read the first and > second column (and row) out of the DataComboView control? > > Cheers > 01McAc > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Jan 30 19:16:03 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 30 Jan 2021 20:16:03 +0200 Subject: [Gambas-user] Faster compiler In-Reply-To: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> Message-ID: Is the argument forwarded for use of the JIT? Jussi On Sat, Jan 30, 2021 at 4:55 PM Beno?t Minisini wrote: > Hi, > > I have just implemented support for background jobs in the Gambas > compiler, through a new '-j' option that takes as argument the maximum > number of background jobs. > > It's like an embedded "make" command. > > Now, on my four-core Intel CPU, compiling the IDE is about four times > faster with four backgroud jobs. > > I won 0,5 s. Woh oh! > > More seriously, I have done that for fun, and I don't know if it could > help on slower computers. > > You will tell me. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Jan 30 19:18:50 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 30 Jan 2021 20:18:50 +0200 Subject: [Gambas-user] Faster compiler In-Reply-To: References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> Message-ID: I guess not... on a second thought that wouldn't make sense. Jussi On Sat, Jan 30, 2021 at 8:16 PM Jussi Lahtinen wrote: > Is the argument forwarded for use of the JIT? > > > Jussi > > On Sat, Jan 30, 2021 at 4:55 PM Beno?t Minisini wrote: > >> Hi, >> >> I have just implemented support for background jobs in the Gambas >> compiler, through a new '-j' option that takes as argument the maximum >> number of background jobs. >> >> It's like an embedded "make" command. >> >> Now, on my four-core Intel CPU, compiling the IDE is about four times >> faster with four backgroud jobs. >> >> I won 0,5 s. Woh oh! >> >> More seriously, I have done that for fun, and I don't know if it could >> help on slower computers. >> >> You will tell me. >> >> -- >> Beno?t Minisini >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.cruilles at yahoo.fr Sat Jan 30 19:32:37 2021 From: olivier.cruilles at yahoo.fr (Linus) Date: Sat, 30 Jan 2021 13:32:37 -0500 Subject: [Gambas-user] Faster compiler In-Reply-To: <88a79fa0-c23a-73fd-e1af-5595e905a897@gmail.com> References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> <417AA1A1-64FE-4B50-ABE6-89CEA424C423@yahoo.fr> <88a79fa0-c23a-73fd-e1af-5595e905a897@gmail.com> Message-ID: <3ECD1BC0-D351-40A7-932F-BAB1F86FB13A@yahoo.fr> Yes, just a mistake on my side Olivier Cruilles > Le 30 janv. 2021 ? 10:33, Beno?t Minisini a ?crit : > > Le 30/01/2021 ? 16:23, Yahoo via User a ?crit : >> Hi Benoit, >> Just a question, this is like the ?-j? of ?make? command but for the compiler of Gambas right ? >> Ex: gbc -f 4 .... >> Olivier > > Yes. And it's '-j', not '-f'. I thought my post was clear. :-) > > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Sat Jan 30 19:24:23 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 30 Jan 2021 10:24:23 -0800 (PST) Subject: [Gambas-user] Call modules with _call In-Reply-To: <458239373.1078.1612028426065.JavaMail.zimbra@westwoodsvcs.com> References: <458239373.1078.1612028426065.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1731934702.1142.1612031062993.JavaMail.zimbra@westwoodsvcs.com> Strangely with the profiler, it appears that the _call() functions run faster than the functions in a module directly.... Interesting. Thank You Brian G From: "Brian" To: "Gambas mailing list" Sent: Saturday, January 30, 2021 5:40:26 PM Subject: [Gambas-user] Call modules with _call How much overhead does creating a module by name with a _call entry point create compared to a direct call in the current module file. example mmmail module contains this: public sub main() doThis() end doThis Module contains this: public sub _Call() print "hi" end as opposed to mmain module contains this: public sub main() doThis() end public sub doThis() print "hi" end I guess the question is how does gambas make the link at runtime Maybe Beno?t could answer this Thank You Brian G ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 30 21:46:25 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 30 Jan 2021 20:46:25 +0000 Subject: [Gambas-user] Persistent clipboard? In-Reply-To: <8a4c3dd0-5db3-c263-95cf-3a5fc0dd4145@gmail.com> References: <8a4c3dd0-5db3-c263-95cf-3a5fc0dd4145@gmail.com> Message-ID: On Sat, 30 Jan 2021, 17:10 Beno?t Minisini, wrote: > Le 30/01/2021 ? 17:54, Bruce Steers a ?crit : > > > > Can anything be done about the way the clipboard clears on app exit? > > > > The clipboard is entirely managed by the underlying toolkit (GTK+ or Qt) > (even if it requires its bunch of cryptic code > in both toolkits). > > > I have just implemented into a few of my apps detecting clipit. > > clipit seems to work well > > upon a call to Clipboard.Copy() i use a simple... > > * > > * > > *If $bHasClipit Then Shell "echo -n " & Quote(sText) & "|clipit"* > > * > > * > > Voil?. A persistent clipboard needs a persistent external program. > > Obviously, Gambas cannot do anything reliable, as it cannot ensure that > clipit, or any other clipboard manager is running, or can be run reliably. > > Besides a hack like you did, I don't think it exists a standard solution > that could be implemented inside Gambas (something like xdg-tools that > can triggers actions according to the current desktop). > Dang, it's a shame, for sure a linux desktop flaw. A hack it is then ? I will look into it a bit more, see if theres a better hack may work (I'm thinking shell) Thank you for the reply. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 30 21:51:10 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 30 Jan 2021 20:51:10 +0000 Subject: [Gambas-user] Persistent clipboard? In-Reply-To: <06829b70-2d9e-6bff-32d7-1559382deacd@gmail.com> References: <8a4c3dd0-5db3-c263-95cf-3a5fc0dd4145@gmail.com> <06829b70-2d9e-6bff-32d7-1559382deacd@gmail.com> Message-ID: On Sat, 30 Jan 2021, 17:14 Beno?t Minisini, wrote: > Le 30/01/2021 ? 18:09, Beno?t Minisini a ?crit : > > Le 30/01/2021 ? 17:54, Bruce Steers a ?crit : > >> > >> Can anything be done about the way the clipboard clears on app exit? > >> > > > > I have just looked for a few seconds, and found -twelve- different > clipboard managers, each one having different features, bugs, and > limitations... > I initially tried xclip as its included in mint. Couldn't get it to work at all. Clipit worked right away. I might just have to go for the clipit way and mention in docs to install it. Cheers for taking the time ? BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Sat Jan 30 22:24:23 2021 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Sat, 30 Jan 2021 22:24:23 +0100 Subject: [Gambas-user] MD5 Hash in Crypt Class In-Reply-To: References: Message-ID: Hi I tried to implement an API login into my Fritzbox router which requires the generation of a MD5 hash. So I tried to use the gambas crypt class and it turned out that a) the class is forcing to use a prefix, although this is not always needed, not specified in RFC 1321 and also not forced by the md5sum tool, b) the MD5 hash is different to an MD5 hash generated with md5sum, c) the crypt-MD5 hash has a prefix like $1$ and may contain special punctuation characters like a slash which don?t appear in normal MD5 hashs, d) the crypt MD5 hash consists of 34 characters while a normal MD5 consists of 32 characters, e) the crypt MD5 hash consists of capital letters while a normal MD5 hash typically contains small letters, With this I got the impression that a MD5 hash produced by the Gambas crypt class might not be compliant with RFC 1321. Is there anything I have done wrong? Any advise? Regards, Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Jan 30 22:39:38 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 30 Jan 2021 21:39:38 +0000 Subject: [Gambas-user] Persistent clipboard? In-Reply-To: <131cb355-be5c-075c-eeea-8c4dc3467151@gmail.com> References: <8a4c3dd0-5db3-c263-95cf-3a5fc0dd4145@gmail.com> <06829b70-2d9e-6bff-32d7-1559382deacd@gmail.com> <131cb355-be5c-075c-eeea-8c4dc3467151@gmail.com> Message-ID: On Sat, 30 Jan 2021, 17:24 Beno?t Minisini, wrote: > Le 30/01/2021 ? 18:13, Beno?t Minisini a ?crit : > > Le 30/01/2021 ? 18:09, Beno?t Minisini a ?crit : > >> Le 30/01/2021 ? 17:54, Bruce Steers a ?crit : > >>> > >>> Can anything be done about the way the clipboard clears on app exit? > >>> > >> > > > > I have just looked for a few seconds, and found -twelve- different > > clipboard managers, each one having different features, bugs, and > > limitations... > > > > Did I mention that they probably don't work on Wayland... > > Here is a tool that copy/paste on Wayland from the command-line in just > 3,470 lines of code: https://github.com/bugaevc/wl-clipboard > > Good Lord... > Wow ? My hack was like 30 chars ? I'm still thinking gambas may have a way. Maybe a function that launches a separate process as a daemon or something till its contents are read or the available clipboard contents change? I can dream, certainly something I want in my apps so I'm going to look into it some more. Cheers Ben. BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Sun Jan 31 00:01:48 2021 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sun, 31 Jan 2021 00:01:48 +0100 Subject: [Gambas-user] ODBC - unable to fetch row In-Reply-To: References: Message-ID: <87a4b5953f9c6bb44393225a2e683cd13a95b424.camel@fen-net.de> Am Samstag, den 30.01.2021, 17:01 +0000 schrieb KKing: > Hi Charlie > > > and easysoft have an Access ODBC Driver: > > https://www.easysoft.com/products/data_access/odbc-access-driver/getting-started.html > > I have odbc connection to mdb's working fine with unixODBC and > mdbtools > ... it's just using that with gb.db.odbc that currently flails.. > > plus Easysoft don't list Access 97 which is the version of these and > at a price of 899 GBP ... I do not think so ! > > > But I have tested this in meantime: even with freeTDS, I get an > > rs.count. > > > > Prewar photo of Ala Gertner. Bedzin, Poland, 1930s. > > > > After being deported to Auschwitz, Ala Gertner took fate into her > > own hands. Upon arrival, she was assigned to forced labor at a > > nearby armaments factory. After learning that they were going to > > be killed, Gertner, along with fellow female prisoners, began > > smuggling gunpowder and explosives from the factory with plans to > > destroy one of the crematoriums. > > > > During the uprising in October 1944, the prisoners killed three > > guards. They also set fire to Crematorium 4, making it inoperable > > > > The guards crushed the revolt and killed almost all of the > > prisoners involved in the rebellion. The Jewish women, including > > Gertner, who had smuggled the explosives into the camp were > > publicly hanged in early January 1945. > > > > So it seems to be the SQL server and not the Odbc drivers. > > but that is with MS SQL ... not what I'm looking at > Salut, my proposed Linked Server dont' work with a SQLserver on Linux, thers no driver for Access. But I found that : ODBTP from 2006 but as you deal with Access 97, that could help. (didn't inspect or try) https://sourceforge.net/projects/odbtp/ -- Amicalement Charlie From ian.roper at iinet.net.au Sun Jan 31 03:22:19 2021 From: ian.roper at iinet.net.au (Ian Roper) Date: Sun, 31 Jan 2021 10:22:19 +0800 Subject: [Gambas-user] Error on Paste to IconPanel & TabStrip Message-ID: <3196a334-a371-b344-33ed-d11ba015e865@iinet.net.au> If you try to copy/cut and past to an Icon panel or tab strip you get the following error. You can add a control normally but any 'paste' process causes a crash. Gambas exits as soon as you click 'ok' --------------------- This application has raised an unexpected error and must abort. unknown symbol 'Index' in class 'container'(#11) CControl.FindFreePlace.2401 -------------------------------------- Cheers, ian. -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2021-01-31 10-16-22.png Type: image/png Size: 13083 bytes Desc: not available URL: From g4mba5 at gmail.com Sun Jan 31 08:16:10 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 31 Jan 2021 08:16:10 +0100 Subject: [Gambas-user] Error on Paste to IconPanel & TabStrip In-Reply-To: <3196a334-a371-b344-33ed-d11ba015e865@iinet.net.au> References: <3196a334-a371-b344-33ed-d11ba015e865@iinet.net.au> Message-ID: Le 31/01/2021 ? 03:22, Ian Roper a ?crit?: > If you try to copy/cut and past to an Icon panel or tab strip you get > the following error. > > You can add a control normally but any 'paste' process causes a crash. > > Gambas exits as soon as you click 'ok' > > --------------------- > > This application has raised an unexpected error and must abort. > > unknown symbol 'Index' in class 'container'(#11) > > CControl.FindFreePlace.2401 > > -------------------------------------- > > Cheers, > > ian. > This has been already fixed in the last commit normally. -- Beno?t Minisini From brian at westwoodsvcs.com Sun Jan 31 09:34:23 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 31 Jan 2021 00:34:23 -0800 (PST) Subject: [Gambas-user] Scripter gbs3 Change Message-ID: <1617512552.1394.1612082063472.JavaMail.zimbra@westwoodsvcs.com> In Order to correctly process Public variables in a script it is now required to include a Public Sub main(). In your script. Scripter will now throw an error if you define public variables without also declaring a main(). Let me know if there are any objections to this change. It very much simplifies Scripter. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From ocoquet at 3d-phenomen.fr Sun Jan 31 09:51:28 2021 From: ocoquet at 3d-phenomen.fr (Olivier Coquet) Date: Sun, 31 Jan 2021 09:51:28 +0100 Subject: [Gambas-user] Generating component for Debian Message-ID: <70a178ad-bd83-c693-4af9-0469b286fe25@3d-phenomen.fr> Hello everyone, My http server component is now functional and stable. To release it, I try to create packages for several distributions. The UBUNTU version is perfectly operational and can be installed. But for the Debian version, I have some problems. If I generate the package from my UBUNTU machine and specify that the minimum version of gambas is 3.12, the package installs well on the DEBIAN machine but when I want to declare the class it contains in a program somewhere, Gambas puts a message asking me to upgrade it to the new version? When I load the source on the DEBIAN machine and generate the package from this machine, the component works perfectly well. Does anyone have an idea ? UBUNTU Machine => Gambas 3.15.2 DEBIAN Machine => Gambas 3.12.1 Best regards to all Olivier Coquet Translated with www.DeepL.com/Translator (free version) From bsteers4 at gmail.com Sun Jan 31 14:42:47 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 31 Jan 2021 13:42:47 +0000 Subject: [Gambas-user] Generating component for Debian In-Reply-To: <70a178ad-bd83-c693-4af9-0469b286fe25@3d-phenomen.fr> References: <70a178ad-bd83-c693-4af9-0469b286fe25@3d-phenomen.fr> Message-ID: Things to make sure of the get a program made on a newer gambas to work on an older gambas. you cannot use ANY code that only exists in the newer gambas. for example... *Property MyProperty As Variant Use $Property* the "Use" keyword did not exist in gambas 3.12 so you cannot use that code there are other techniques that did not exist in gambas 3.12 Also there is an undocumented "trick" to get a program backward compatible with older gambas. Set this Environment variable in the project settings.. GB_PCODE = 3.8 GB_PCODE will stop an older gambas refusing to run a newer app. It does no code checking so you need to make sure no newer code exists. Also i found setting GB_PCODE = 3.12 did not work for me on 3.12 i had to set it to 3.8 BruceS On Sun, 31 Jan 2021 at 08:53, Olivier Coquet wrote: > Hello everyone, > > My http server component is now functional and stable. > To release it, I try to create packages for several distributions. > The UBUNTU version is perfectly operational and can be installed. But > for the Debian version, I have some problems. If I generate the package > from my UBUNTU machine and specify that the minimum version of gambas is > 3.12, the package installs well on the DEBIAN machine but when I want to > declare the class it contains in a program somewhere, Gambas puts a > message asking me to upgrade it to the new version? > When I load the source on the DEBIAN machine and generate the package > from this machine, the component works perfectly well. > Does anyone have an idea ? > > UBUNTU Machine => Gambas 3.15.2 > > DEBIAN Machine => Gambas 3.12.1 > > > Best regards to all > Olivier Coquet > > Translated with www.DeepL.com/Translator (free version) > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Jan 31 14:45:03 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 31 Jan 2021 13:45:03 +0000 Subject: [Gambas-user] Generating component for Debian In-Reply-To: <70a178ad-bd83-c693-4af9-0469b286fe25@3d-phenomen.fr> References: <70a178ad-bd83-c693-4af9-0469b286fe25@3d-phenomen.fr> Message-ID: PS. Or load the project into a 3.12 gambas IDE and recompile it. If it compiles okay then that version will work on all the newer versions. if it shows an error in your code that does not show on the newer gambas then you have used newer code and will need to re-write it to make it backward compatible.. On Sun, 31 Jan 2021 at 08:53, Olivier Coquet wrote: > Hello everyone, > > My http server component is now functional and stable. > To release it, I try to create packages for several distributions. > The UBUNTU version is perfectly operational and can be installed. But > for the Debian version, I have some problems. If I generate the package > from my UBUNTU machine and specify that the minimum version of gambas is > 3.12, the package installs well on the DEBIAN machine but when I want to > declare the class it contains in a program somewhere, Gambas puts a > message asking me to upgrade it to the new version? > When I load the source on the DEBIAN machine and generate the package > from this machine, the component works perfectly well. > Does anyone have an idea ? > > UBUNTU Machine => Gambas 3.15.2 > > DEBIAN Machine => Gambas 3.12.1 > > > Best regards to all > Olivier Coquet > > Translated with www.DeepL.com/Translator (free version) > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Jan 31 14:46:52 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 31 Jan 2021 13:46:52 +0000 Subject: [Gambas-user] Generating component for Debian In-Reply-To: References: <70a178ad-bd83-c693-4af9-0469b286fe25@3d-phenomen.fr> Message-ID: Also there is an undocumented "trick" to get a program backward compatible with older gambas. > Set this Environment variable in the project settings.. > GB_PCODE = 3.8 > GB_PCODE will stop an older gambas refusing to run a newer app. > It does no code checking so you need to make sure no newer code exists. > Oops sorry. GB_PCODE_VERSION = 3.8 not GB_PCODE > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Jan 31 15:19:21 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 31 Jan 2021 14:19:21 +0000 Subject: [Gambas-user] Scripter gbs3 Change In-Reply-To: <1617512552.1394.1612082063472.JavaMail.zimbra@westwoodsvcs.com> References: <1617512552.1394.1612082063472.JavaMail.zimbra@westwoodsvcs.com> Message-ID: I think is fine. i found with the scripter i have been able to take ANY normal gambas app that uses only one class file and simply rename the .class to .gbs , add the /urs/bin/env gbs3 part and add the Use "component name" bits and they have ALL worked. (plus of course renaming the Form_Open() function to Main() and using FMain.Show() to open it) I think as with non script cases you would HAVE to declare a Main() function so seems fitting that you should have to also do it with scripts. and nice you still do not have to use it if the script does not need public functions. BruceS On Sun, 31 Jan 2021 at 08:45, Brian G wrote: > In Order to correctly process Public variables in a script it is now > required to include a > Public Sub main(). > In your script. > > Scripter will now throw an error if you define public variables without > also declaring a main(). > > Let me know if there are any objections to this change. It very much > simplifies Scripter. > > Thank You > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Sun Jan 31 15:37:44 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Sun, 31 Jan 2021 15:37:44 +0100 Subject: [Gambas-user] Scripter gbs3 Change In-Reply-To: <1617512552.1394.1612082063472.JavaMail.zimbra@westwoodsvcs.com> References: <1617512552.1394.1612082063472.JavaMail.zimbra@westwoodsvcs.com> Message-ID: What about existing scripts when I update Gambas? I've got couple of scripts which are started by cronjobs and/or users, will I have to work them all over, or will they continue to run? Would be a whole lot of work otherwise. Regards Rolf Am 31.01.21 um 09:34 schrieb Brian G: > In Order to correctly process Public variables in a script it is now > required to include a > Public Sub main(). > In your script. > > Scripter will now throw an error if you define public variables > without also declaring a main(). > > Let me know if there are any objections to this change. It very much > simplifies Scripter. > > Thank You > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Jan 31 16:50:19 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 31 Jan 2021 15:50:19 +0000 Subject: [Gambas-user] Faster compiler In-Reply-To: References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> Message-ID: On Sat, 30 Jan 2021 at 16:11, Bruce Steers wrote: > Awesome :) > > i'm sure it will help with compiling gambas itself as it's huge. > I guess as it's the compiler it will only speed up the final make install > command where all the compiling happens but ANY speed up of compiling is a > plus, I have a number of test systems to manually update gambas on. > > Merci bocoup :) > Do you think it is worth adding to the makefile.am files in app comp and main? I'm testing it, I've added '-j 4' to my makefiles gbc3 commands. Is it the sort of thing that would work worse on a single core processor so best not to provide a default setting? Here's my results on testing the make install time.. Note. Mime skip = In my make install files i use xdg-mime to test blank files and see if the filetype is known and skip the mime install if the gambas files are recognised. See the commit here: https://gitlab.com/bsteers4/gambas/-/commit/40224153abecd46e7782e37002f2e2f0db70abe8 I've tested with and without the mime skip and with and without the -j 4 option added to the makefile.am files in ./app ./comp and ./main Mime skip only Time elapsed: 1 Minute 11 Seconds Mime skip, with -j 4 Time elapsed: 1 Minute 9 Seconds No mime skip no -j Time elapsed: 1 Minute 28 Seconds No Mime skip, with -j 4 Time elapsed: 1 Minute 26 Seconds BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Jan 31 17:03:41 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 31 Jan 2021 16:03:41 +0000 Subject: [Gambas-user] Faster compiler In-Reply-To: References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> Message-ID: Additional.... Note. Mime skip = In my make install files i use xdg-mime to test blank > files and see if the filetype is known and skip the mime install if the > gambas files are recognised. > See the commit here: > https://gitlab.com/bsteers4/gambas/-/commit/40224153abecd46e7782e37002f2e2f0db70abe8 > Note on the mime skip , on systems like fedora and suse xdg-mime when run as root detects the blank files as text/plain (the scripts) each time and similar fail on the blank gambas exe so does not skip installing but just re-installs each time , on debian and ubuntu it does detect and skips. so it is not exactly perfect but does not break anything. I'll run some tests on a raspberry later. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sun Jan 31 17:46:16 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 31 Jan 2021 08:46:16 -0800 (PST) Subject: [Gambas-user] Scripter gbs3 Change In-Reply-To: References: <1617512552.1394.1612082063472.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <847690516.1522.1612111576441.JavaMail.zimbra@westwoodsvcs.com> This will only effect script that use public variables and don't have a main() defined, If you want to post the scripts or attach to email, we can have a look before i do anything Thank You Brian G From: "Rolf-Werner Eilert" To: "Gambas mailing list" Sent: Sunday, January 31, 2021 2:37:44 PM Subject: Re: [Gambas-user] Scripter gbs3 Change What about existing scripts when I update Gambas? I've got couple of scripts which are started by cronjobs and/or users, will I have to work them all over, or will they continue to run? Would be a whole lot of work otherwise. Regards Rolf Am 31.01.21 um 09:34 schrieb Brian G: In Order to correctly process Public variables in a script it is now required to include a Public Sub main(). In your script. Scripter will now throw an error if you define public variables without also declaring a main(). Let me know if there are any objections to this change. It very much simplifies Scripter. Thank You Brian G ----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sun Jan 31 17:49:17 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 31 Jan 2021 08:49:17 -0800 (PST) Subject: [Gambas-user] Faster compiler In-Reply-To: References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> Message-ID: <649373478.1538.1612111757173.JavaMail.zimbra@westwoodsvcs.com> I it worth adding this option to the scripter? It would only effect scripts with 1 or more classes embedded into the script I think. In those cases it should speed things up. Thank You Brian G From: "Bruce Steers" To: "Gambas mailing list" Sent: Sunday, January 31, 2021 4:03:41 PM Subject: Re: [Gambas-user] Faster compiler Additional.... Note. Mime skip = In my make install files i use xdg-mime to test blank files and see if the filetype is known and skip the mime install if the gambas files are recognised. See the commit here: [ https://gitlab.com/bsteers4/gambas/-/commit/40224153abecd46e7782e37002f2e2f0db70abe8 | https://gitlab.com/bsteers4/gambas/-/commit/40224153abecd46e7782e37002f2e2f0db70abe8 ] Note on the mime skip , on systems like fedora and suse xdg-mime when run as root detects the blank files as text/plain (the scripts) each time and similar fail on the blank gambas exe so does not skip installing but just re-installs each time , on debian and ubuntu it does detect and skips. so it is not exactly perfect but does not break anything. I'll run some tests on a raspberry later. BruceS ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jan 31 18:12:48 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 31 Jan 2021 18:12:48 +0100 Subject: [Gambas-user] Faster compiler In-Reply-To: References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> Message-ID: Le 31/01/2021 ? 16:50, Bruce Steers a ?crit?: > Do you think it is worth adding to the makefile.am > files in app comp and main? > I'm testing it, I've added '-j 4' to my makefiles gbc3 commands. > Is it the sort of thing that would work worse on a single core processor > so best not to provide a default setting? I tried with a '-j4' added in the Makefile.am. Of course it speeds up the compilation of all components written in Gambas, but as it's not a big part of the full process, the global time gain is small. Anyway, if I want to use that new option, it must be a global configure paramater, as AFAIK there is no standard way of knowing the number of available cores on Unix (Linux + *BSD + ...). Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Sun Jan 31 19:32:04 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 31 Jan 2021 10:32:04 -0800 (PST) Subject: [Gambas-user] Faster compiler In-Reply-To: References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> Message-ID: <116786414.1622.1612117924184.JavaMail.zimbra@westwoodsvcs.com> on linux use nproc return number of processors ie. cores and virtual cores bsd use as root dmesg | grep -i cpu Thank You Brian G ----- Original Message ----- From: "Beno?t Minisini" To: "Gambas mailing list" Sent: Sunday, January 31, 2021 5:12:48 PM Subject: Re: [Gambas-user] Faster compiler Le 31/01/2021 ? 16:50, Bruce Steers a ?crit?: > Do you think it is worth adding to the makefile.am > files in app comp and main? > I'm testing it, I've added '-j 4' to my makefiles gbc3 commands. > Is it the sort of thing that would work worse on a single core processor > so best not to provide a default setting? I tried with a '-j4' added in the Makefile.am. Of course it speeds up the compilation of all components written in Gambas, but as it's not a big part of the full process, the global time gain is small. Anyway, if I want to use that new option, it must be a global configure paramater, as AFAIK there is no standard way of knowing the number of available cores on Unix (Linux + *BSD + ...). Regards, -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Sun Jan 31 19:47:48 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 31 Jan 2021 19:47:48 +0100 Subject: [Gambas-user] Faster compiler In-Reply-To: <116786414.1622.1612117924184.JavaMail.zimbra@westwoodsvcs.com> References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> <116786414.1622.1612117924184.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 31/01/2021 ? 19:32, Brian G a ?crit?: > on linux use nproc return number of processors ie. cores and virtual cores > > bsd use as root dmesg | grep -i cpu > > Thank You > Brian G > Yes. I need system calls on all systems. -- Beno?t Minisini From petterfilip at gmail.com Sun Jan 31 19:52:45 2021 From: petterfilip at gmail.com (pf) Date: Sun, 31 Jan 2021 19:52:45 +0100 Subject: [Gambas-user] Newbie question: socket example Message-ID: <510b579f-79aa-7246-12b0-0515001eb963@gmail.com> newbie Question I try o use the Socket component. Enabled the component in a new project and put in the example code from the help. It got stuck on the ClsMain, "Unknown identifier" Regards Chris Paste from the help i use: ' Gambas class file STATIC App AS ClsMain PUBLIC MySock AS Socket PUBLIC SUB MySock_Ready() WRITE #MySock,"Hello",5 END PUBLIC SUB MySock_Read() DIM sCad AS String READ #MySock,sCad,Lof(MySock) PRINT sCad CLOSE #MySock END PUBLIC SUB _New() MySock=NEW Socket AS "MySock" MySock.Connect("name_of_host",3450) END PUBLIC SUB MySock_Error() PRINT "Unable to connect" END STATIC PUBLIC SUB Main() App=NEW ClsMain END -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sun Jan 31 23:14:41 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 31 Jan 2021 14:14:41 -0800 (PST) Subject: [Gambas-user] Faster compiler In-Reply-To: References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> <116786414.1622.1612117924184.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <851843619.1690.1612131281603.JavaMail.zimbra@westwoodsvcs.com> Does This Help or is it required for a common call for all systems? #include //raspi-os and linux https://linux.die.net/man/3/get_nprocs int main(int argc, char *argv[]) { printf("This system has %d processors configured and " "%d processors available.\n", get_nprocs_conf(), get_nprocs()); return 0; } /******************************************************************************/ // https://www.freebsd.org/cgi/man.cgi?sysctl(3) // FreeBSD,OpenBsd,MacOSX Get systctl // #include // #include // int mib[2], ncpus; // size_t len; // // mib[0] = CTL_HW; // mib[1] = HW_NCPU; // len = sizeof(ncpus); // sysctl(mib, 2, &ncpus, &len, NULL, 0); ~ Thank You Brian G ----- Original Message ----- From: "Beno?t Minisini" To: "Gambas mailing list" Sent: Sunday, January 31, 2021 6:47:48 PM Subject: Re: [Gambas-user] Faster compiler Le 31/01/2021 ? 19:32, Brian G a ?crit?: > on linux use nproc return number of processors ie. cores and virtual cores > > bsd use as root dmesg | grep -i cpu > > Thank You > Brian G > Yes. I need system calls on all systems. -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Sun Jan 31 23:28:52 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 31 Jan 2021 23:28:52 +0100 Subject: [Gambas-user] Faster compiler In-Reply-To: <851843619.1690.1612131281603.JavaMail.zimbra@westwoodsvcs.com> References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> <116786414.1622.1612117924184.JavaMail.zimbra@westwoodsvcs.com> <851843619.1690.1612131281603.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <9acc533a-b708-e522-0c9f-a3b80ea0af95@gmail.com> Le 31/01/2021 ? 23:14, Brian G a ?crit?: > Does This Help or is it required for a common call for all systems? > > #include > //raspi-os and linux > https://linux.die.net/man/3/get_nprocs > int main(int argc, char *argv[]) > { > printf("This system has %d processors configured and " > "%d processors available.\n", > get_nprocs_conf(), get_nprocs()); > return 0; > } > > /******************************************************************************/ > // https://www.freebsd.org/cgi/man.cgi?sysctl(3) > // FreeBSD,OpenBsd,MacOSX Get systctl > // #include > // #include > // int mib[2], ncpus; > // size_t len; > // > // mib[0] = CTL_HW; > // mib[1] = HW_NCPU; > // len = sizeof(ncpus); > // sysctl(mib, 2, &ncpus, &len, NULL, 0); > ~ > > Thank You > Brian G > Yes. I knew for Linux, but didn't for BSD*. Then I can add a System.CpuCount property! -- Beno?t Minisini From t.lee.davidson at gmail.com Sun Jan 31 23:33:39 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 31 Jan 2021 17:33:39 -0500 Subject: [Gambas-user] Newbie question: socket example In-Reply-To: <510b579f-79aa-7246-12b0-0515001eb963@gmail.com> References: <510b579f-79aa-7246-12b0-0515001eb963@gmail.com> Message-ID: <6f0001a9-ed5f-3f97-a19a-e651d64da7eb@gmail.com> On 1/31/21 1:52 PM, pf wrote: > newbie Question > > I try o use the Socket component. Enabled the component in a new project and put in the example code from the help. > > It got stuck on the ClsMain, "Unknown identifier" > > Regards Chris > > Paste from the help i use: > > ' Gambas class file STATIC App AS ClsMain PUBLIC MySock AS Socket PUBLIC SUB MySock_Ready() WRITE #MySock,"Hello",5 END PUBLIC > SUB MySock_Read() DIM sCad AS String READ #MySock,sCad,Lof(MySock) PRINT sCad CLOSE #MySock END PUBLIC SUB _New() MySock=NEW > Socket AS "MySock" MySock.Connect("name_of_host",3450) END PUBLIC SUB MySock_Error() PRINT "Unable to connect" END STATIC PUBLIC > SUB Main() App=NEW ClsMain END > I am unsure where you got that example. It is not the one I see here: http://gambaswiki.org/wiki/comp/gb.net/socket Nonetheless, the class file that contains that code needs to be named "ClsMain.class". -- Lee From bsteers4 at gmail.com Sun Jan 31 23:42:26 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 31 Jan 2021 22:42:26 +0000 Subject: [Gambas-user] Faster compiler In-Reply-To: <9acc533a-b708-e522-0c9f-a3b80ea0af95@gmail.com> References: <9764288e-305b-ae5f-1c38-44e0242939f2@gmail.com> <116786414.1622.1612117924184.JavaMail.zimbra@westwoodsvcs.com> <851843619.1690.1612131281603.JavaMail.zimbra@westwoodsvcs.com> <9acc533a-b708-e522-0c9f-a3b80ea0af95@gmail.com> Message-ID: On Sun, 31 Jan 2021, 22:29 Beno?t Minisini, wrote: > Le 31/01/2021 ? 23:14, Brian G a ?crit : > > Does This Help or is it required for a common call for all systems? > > > > #include > > //raspi-os and linux > > https://linux.die.net/man/3/get_nprocs > > int main(int argc, char *argv[]) > > { > > printf("This system has %d processors configured and " > > "%d processors available.\n", > > get_nprocs_conf(), get_nprocs()); > > return 0; > > } > > > > > /******************************************************************************/ > > // https://www.freebsd.org/cgi/man.cgi?sysctl(3) > > // FreeBSD,OpenBsd,MacOSX Get systctl > > // #include > > // #include > > // int mib[2], ncpus; > > // size_t len; > > // > > // mib[0] = CTL_HW; > > // mib[1] = HW_NCPU; > > // len = sizeof(ncpus); > > // sysctl(mib, 2, &ncpus, &len, NULL, 0); > > ~ > > > > Thank You > > Brian G > > > > Yes. I knew for Linux, but didn't for BSD*. Then I can add a > System.CpuCount property! > Nice ? and thank you Brian. Maybe even a -j all or -j max or -j auto to use all cores automatically could be possible too? Wishing well BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: