From the_watchmann at yahoo.com Sun Jun 2 10:12:50 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Sun, 2 Jun 2019 08:12:50 +0000 (UTC) Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <1938347368.50040055.1559225492020.JavaMail.zimbra@exede.net> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> <4355394.6657547.1559206489416@mail.yahoo.com> <0e76da1a-c1b2-52c7-00c2-39779f463f2e@gmail.com> <1938347368.50040055.1559225492020.JavaMail.zimbra@exede.net> Message-ID: <406597425.2434101.1559463170870@mail.yahoo.com> Hi Benoit I must admit that is easier said than done. Nowhere have I found anything pertaining to using the find etc methods and as you can see my attempt at using it failed and it was this request that sparked all the replies, though not one really pertaining to my question. In C I used to do it like that using sqlite3_exec / sqlite3_prepare_v2 etc and I basically moved towards familiar grounds first due to lack of documentation or examples. So, looking at my second example again, and going back to my question... what am I missing? Probably, my question should be?When do you use db.Find() and under what circumstances would you use db.Edit() and how do they tie together. As Ced stated, a 'realworld example' would be a plus... open databasecreate tablenew recordupdate recorddelete recordclose db Regards David On Thursday, May 30, 2019, 4:12:07 PM GMT+2, Cedron Dawg wrote: Absolutely!? You should use the sugar syntax $Sql &= "blah blah blah" instead. Ahhh, just kidding. What I am really wondering is if there is an example project that has the right way to do it for the whole process.? Meaning some kind of form having a search list, a record selection, a record edit and update, a new record added with all the different data types included, some perhaps displayed with alternative available controls. Of course, it would also have the code backing it showing the proper use of Subst with Exec() and Find() examples. Are there any such officially (read Benoit) approved projects? Thanks, Ced ----- Original Message ----- From: "Beno?t Minisini" To: "user" Sent: Thursday, May 30, 2019 9:34:06 AM Subject: Re: [Gambas-user] Using dates in Gambas Le 30/05/2019 ? 10:54, David Silverwood via User a ?crit?: > Hi. Me again > > So this is my code... > > /Public Sub btnUpdate_Click()/ > // > /? ? $Sql = "UPDATE cashup SET ("/ > /? ? $Sql = $Sql & "date = '" & edtDate.Text & "', "/ > /? ? $Sql = $Sql & "ref = '" & edtTransNo.Text & "', "/ > /? ? $Sql = $Sql & "amount = " & ValueBox1.Text & ", "/ > /? ? $Sql = $Sql & "comment = '" & edtDescription.Text & "', "/ > /? ? $Sql = $Sql & "WHERE date = '" & edtDate.Text & "';"/ > // You MUST NOT make your SQL request like that. NEVER. ????? ??????????????? ??????????????????? ? ??? ?????? ??????????????? ???????????????????? ? ??? ?????? ?????????? ???? ?????????? ????????? ? ??? ????????????????? ???? ??????????? ????????? ? ??? ??? ?????????????? ??????? ???????????? ???? ? ??? ???? ?????????????? ?????? ???????????? ???? ? ??? You must use the substitution feature of the Exec(), Find()... methods of the Connection object, which takes care for you of quoting SQL values accordingly to the underlying database to prevent SQL requests injections. And you must convert the text entered in the controls into the corresponding datatypes (Date, Integer, Float, Boolean, String) before passing them to the Exec(), Find()... methods. Regards, -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sun Jun 2 10:26:08 2019 From: kicking177 at gmail.com (KKing) Date: Sun, 2 Jun 2019 09:26:08 +0100 Subject: [Gambas-user] exit/close/return/unload from Class.Load("Screen01").AutoCreate().Main() Message-ID: if you jump into a class from say Main.module using e.g. ??? Class.Load("Screen01").AutoCreate().Main() How do you exit/close/return/unload the Screen01 class when you have finished there? i.e. return control back to the Main.module? K. From kicking177 at gmail.com Sun Jun 2 11:35:00 2019 From: kicking177 at gmail.com (KKing) Date: Sun, 2 Jun 2019 10:35:00 +0100 Subject: [Gambas-user] gbx3 warning allocation(s) non freed Message-ID: is there any debugging options to help identify what the allocations were? K. From taboege at gmail.com Sun Jun 2 12:13:38 2019 From: taboege at gmail.com (Tobias Boege) Date: Sun, 2 Jun 2019 12:13:38 +0200 Subject: [Gambas-user] exit/close/return/unload from Class.Load("Screen01").AutoCreate().Main() In-Reply-To: References: Message-ID: <20190602101338.GX1582@highrise.localdomain> On Sun, 02 Jun 2019, KKing wrote: > if you jump into a class from say Main.module using e.g. > > ??? Class.Load("Screen01").AutoCreate().Main() > > How do you exit/close/return/unload the Screen01 class when you have > finished there? > > i.e. return control back to the Main.module? > You are just calling a method there. As soon as the Screen01.Main() method returns (which means it finished executing, either by reaching a Return instruction or the implicit Return instruction at the end of its lexical scope), control is transferred back to the caller. Calling that method above is no different from calling any other method or function -- except of course that the implementation of Main is different, which we haven't seen. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Sun Jun 2 12:26:10 2019 From: taboege at gmail.com (Tobias Boege) Date: Sun, 2 Jun 2019 12:26:10 +0200 Subject: [Gambas-user] gbx3 warning allocation(s) non freed In-Reply-To: References: Message-ID: <20190602102610.GY1582@highrise.localdomain> On Sun, 02 Jun 2019, KKing wrote: > is there any debugging options to help identify what the allocations were? > No, but valgrind can give you an idea: $ valgrind --leak-check=full gbx3 ... ==11322== ==11322== HEAP SUMMARY: ==11322== in use at exit: 16 bytes in 1 blocks ==11322== total heap usage: 338 allocs, 337 frees, 75,582 bytes allocated ==11322== ==11322== 16 bytes in 1 blocks are possibly lost in loss record 1 of 1 ==11322== at 0x483777F: malloc (vg_replace_malloc.c:299) ==11322== by 0x129C15: my_malloc (gb_alloc_temp.h:368) ==11322== by 0x13D8A0: SUBR_alloc (gbx_subr_extern.c:67) ==11322== by 0x163411: EXEC_loop (gbx_exec_loop.c:510) ==11322== by 0x168654: EXEC_function_loop (gbx_exec.c:910) ==11322== by 0x168DA1: EXEC_function_real (gbx_exec.c:897) ==11322== by 0x127529: main (gbx.c:430) ... A practised eye can see that this non-freed allocation was made by the Alloc built-in function directly from the Gambas program. Other sources of non-freed allocations are native components which valgrind can explain to you as well using its backtraces, or if you create circular references in your Gambas data structures. In the last scenario, the valgrind method gives you no insight. I wonder if it's possible, in debug mode, to attach the complete backtrace from Gambas land to each allocation. (Or if this has been done and I don't know about it.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Sun Jun 2 13:28:56 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 2 Jun 2019 13:28:56 +0200 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <406597425.2434101.1559463170870@mail.yahoo.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> <4355394.6657547.1559206489416@mail.yahoo.com> <0e76da1a-c1b2-52c7-00c2-39779f463f2e@gmail.com> <1938347368.50040055.1559225492020.JavaMail.zimbra@exede.net> <406597425.2434101.1559463170870@mail.yahoo.com> Message-ID: Hi David, just for my curiosity, what did you not understand (or not works) about my examples and code suggestions? Thank you Gianluigi Il giorno dom 2 giu 2019 alle ore 10:13 David Silverwood via User < user at lists.gambas-basic.org> ha scritto: > Hi Benoit > > I must admit that is easier said than done. Nowhere have I found anything > pertaining to using the find etc methods and as you can see my attempt at > using it failed and it was this request that sparked all the replies, > though not one really pertaining to my question. In C I used to do it like > that using sqlite3_exec / sqlite3_prepare_v2 etc and I basically moved > towards familiar grounds first due to lack of documentation or examples. > > So, looking at my second example again, and going back to my question... > what am I missing? > > Probably, my question should be > When do you use db.Find() and under what circumstances would you use > db.Edit() and how do they tie together. As Ced stated, a 'realworld > example' would be a plus... > > open database > create table > new record > update record > delete record > close db > > Regards > > David > > On Thursday, May 30, 2019, 4:12:07 PM GMT+2, Cedron Dawg > wrote: > > > Absolutely! You should use the sugar syntax $Sql &= "blah blah blah" > instead. > > Ahhh, just kidding. > > What I am really wondering is if there is an example project that has the > right way to do it for the whole process. Meaning some kind of form having > a search list, a record selection, a record edit and update, a new record > added with all the different data types included, some perhaps displayed > with alternative available controls. > > Of course, it would also have the code backing it showing the proper use > of Subst with Exec() and Find() examples. > > Are there any such officially (read Benoit) approved projects? > > Thanks, > > Ced > > > > ----- Original Message ----- > From: "Beno?t Minisini" > To: "user" > Sent: Thursday, May 30, 2019 9:34:06 AM > Subject: Re: [Gambas-user] Using dates in Gambas > > Le 30/05/2019 ? 10:54, David Silverwood via User a ?crit : > > Hi. Me again > > > > So this is my code... > > > > /Public Sub btnUpdate_Click()/ > > // > > / $Sql = "UPDATE cashup SET ("/ > > / $Sql = $Sql & "date = '" & edtDate.Text & "', "/ > > / $Sql = $Sql & "ref = '" & edtTransNo.Text & "', "/ > > / $Sql = $Sql & "amount = " & ValueBox1.Text & ", "/ > > / $Sql = $Sql & "comment = '" & edtDescription.Text & "', "/ > > / $Sql = $Sql & "WHERE date = '" & edtDate.Text & "';"/ > > // > > You MUST NOT make your SQL request like that. > > NEVER. > > ???? ?????????????? ?????????????????? ??? > ????? ?????????????? ??????????????????? ??? > ?????? ????????? ??? ????????? ???????? ??? > ???????????????? ???? ?????????? ???????? ??? > ??? ?????????????? ??????? ??????????? ??? ??? > ??? ????????????? ????? ??????????? ??? ??? > > You must use the substitution feature of the Exec(), Find()... methods > of the Connection object, which takes care for you of quoting SQL values > accordingly to the underlying database to prevent SQL requests injections. > > And you must convert the text entered in the controls into the > corresponding datatypes (Date, Integer, Float, Boolean, String) before > passing them to the Exec(), Find()... methods. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Sun Jun 2 13:52:57 2019 From: cedron at exede.net (Cedron Dawg) Date: Sun, 2 Jun 2019 07:52:57 -0400 (EDT) Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <406597425.2434101.1559463170870@mail.yahoo.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> <4355394.6657547.1559206489416@mail.yahoo.com> <0e76da1a-c1b2-52c7-00c2-39779f463f2e@gmail.com> <1938347368.50040055.1559225492020.JavaMail.zimbra@exede.net> <406597425.2434101.1559463170870@mail.yahoo.com> Message-ID: <90623392.53351114.1559476377397.JavaMail.zimbra@exede.net> Hi David, Finding good example code in whole programs is what is motivating me to write my FarmDB programs. You might find my latest output helpful in this regard. You'll want to download the second example in this thread: https://forum.gambas.one/viewtopic.php?f=4&t=718 FarmInfoHtml_20190530.zip As part of that process, I created a table via Gambas instead of a CREATE statement for the first time: --------------------------------------- '---- Create the Table Dim theTable As Table theTable = theCon.Tables.Add("Load_Info") With theTable.Fields .Add("Id", gb.String) .Add("Name", gb.String) .Add("Version", gb.String) .Add("LastVersion", gb.String) .Add("Vendor", gb.String) .Add("Release", gb.String) .Add("UploadDate", gb.String) .Add("Description", gb.String) .Add("URL", gb.String) .Add("Size", gb.String) .Add("Checksum", gb.String) .Add("DownloadCount", gb.String) .Add("FullDownloadCount", gb.String) .Add("VoteCount", gb.String) .Add("Owner", gb.String) .Add("Tags", gb.String) End With theTable.Update --------------------------------------- I have yet to try a "Find". Here is the part of the code where I take a file downloaded from a Farm Info query and load it into my table. Note that I first load the data into a collection called "theValueOf", then use the collection to stuff the record as I am not sure that all the fields are going to be there or in the same order. Notice the use of ".Begin" and ".Commit" making this a transaction. It speeds up the process tremendously. ------------------------------- '---- Loop thought the files adding records to the load table Dim theCreateRS As Result theCon.Begin theCreateRS = theCon.Create("Load_Info") For Each theFilename In theFilenames Print theFilename GoSub ProcessFile Next theCreateRS = Null theCon.Commit . . . '----------------------------------------------------------------------------- ProcessFile: Dim theLine As String, theLines As String[], p As Integer theLines = Split(File.Load(theTxtDir & theFilename), "\r\n") theValueOf.Clear For Each theLine In theLines p = InStr(theLine, "=") If p > 0 Then theValueOf[Left(theLine, p - 1)] = DeQuote(Trim(Mid(theLine, p + 1))) Endif Next theCreateRS!Id = theValueOf["Id"] theCreateRS!Name = theValueOf["Name"] theCreateRS!Version = theValueOf["Version"] theCreateRS!LastVersion = theValueOf["LastVersion"] theCreateRS!Vendor = theValueOf["Vendor"] theCreateRS!Release = theValueOf["Release"] theCreateRS!UploadDate = theValueOf["UploadDate"] theCreateRS!Description = theValueOf["Description"] theCreateRS!URL = theValueOf["URL"] theCreateRS!Size = theValueOf["Size"] theCreateRS!Checksum = theValueOf["Checksum"] theCreateRS!DownloadCount = theValueOf["DownloadCount"] theCreateRS!FullDownloadCount = theValueOf["FullDownloadCount"] theCreateRS!VoteCount = theValueOf["VoteCount"] theCreateRS!Owner = theValueOf["Owner"] theCreateRS!Tags = theValueOf["Tags"] theCreateRS.Update Return ------------------------------- I need to clean the code up a bit before I post it. This was a rough draft for research purposes. What will change is the field names. Here I used the names used in the info files for consistency, and SQLite seems to do fine with mixed case. MySQL and others don't, so I have been using all lower case with underscore separators for all my database projects. Thus "FullDownloadCount" will become "full_download_count" in the revised version. These reports will tell you which projects use which components according to the tags. I have yet to parse the project files or the code. However, there is no guarantee that the Software Farm projects are doing things correctly. There does seem to be an "admin" dude that knows what they are doing. I have a similar process for a different region of my database concerning Gambas' Components and Classes. You can find the zip file, download it, run it, then have the code, the database, and the reports. https://forum.gambas.one/viewtopic.php?f=4&t=709 Hope this helps you and others. I know I have found it helpful for myself. Ced ----- Original Message ----- From: "user" To: "user" Cc: "David Silverwood" Sent: Sunday, June 2, 2019 4:12:50 AM Subject: Re: [Gambas-user] Using dates in Gambas Hi Benoit I must admit that is easier said than done. Nowhere have I found anything pertaining to using the find etc methods and as you can see my attempt at using it failed and it was this request that sparked all the replies, though not one really pertaining to my question. In C I used to do it like that using sqlite3_exec / sqlite3_prepare_v2 etc and I basically moved towards familiar grounds first due to lack of documentation or examples. So, looking at my second example again, and going back to my question... what am I missing? Probably, my question should be When do you use db.Find() and under what circumstances would you use db.Edit() and how do they tie together. As Ced stated, a 'realworld example' would be a plus... open database create table new record update record delete record close db Regards David From t.lee.davidson at gmail.com Sun Jun 2 17:49:31 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 2 Jun 2019 11:49:31 -0400 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <406597425.2434101.1559463170870@mail.yahoo.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> <4355394.6657547.1559206489416@mail.yahoo.com> <0e76da1a-c1b2-52c7-00c2-39779f463f2e@gmail.com> <1938347368.50040055.1559225492020.JavaMail.zimbra@exede.net> <406597425.2434101.1559463170870@mail.yahoo.com> Message-ID: <07e6b383-e173-750c-445f-a197259a0d71@gmail.com> You would use the Find method when all you want is to query the database into a read-only result. You would use Edit when you wish to modify any fields of the result and then write them back to the DB with the Result.Update method. Though not a 'realworld example', here's a How-To that you may have already seen; but just in case you haven't: http://gambaswiki.org/wiki/howto/databasesqlite ___ Lee On 6/2/19 4:12 AM, David Silverwood via User wrote: > Probably, my question should be > ?When do you use db.Find() and under what circumstances would you use db.Edit() and how do they tie together. As Ced stated, a > 'realworld example' would be a plus... > From g4mba5 at gmail.com Sun Jun 2 21:15:44 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 2 Jun 2019 21:15:44 +0200 Subject: [Gambas-user] gbx3 warning allocation(s) non freed In-Reply-To: <20190602102610.GY1582@highrise.localdomain> References: <20190602102610.GY1582@highrise.localdomain> Message-ID: <7f70b28f-64ee-db88-980c-34a38ced33c0@gmail.com> Le 02/06/2019 ? 12:26, Tobias Boege a ?crit?: > On Sun, 02 Jun 2019, KKing wrote: >> is there any debugging options to help identify what the allocations were? >> > > No, but valgrind can give you an idea: > > $ valgrind --leak-check=full gbx3 > ... > ==11322== > ==11322== HEAP SUMMARY: > ==11322== in use at exit: 16 bytes in 1 blocks > ==11322== total heap usage: 338 allocs, 337 frees, 75,582 bytes allocated > ==11322== > ==11322== 16 bytes in 1 blocks are possibly lost in loss record 1 of 1 > ==11322== at 0x483777F: malloc (vg_replace_malloc.c:299) > ==11322== by 0x129C15: my_malloc (gb_alloc_temp.h:368) > ==11322== by 0x13D8A0: SUBR_alloc (gbx_subr_extern.c:67) > ==11322== by 0x163411: EXEC_loop (gbx_exec_loop.c:510) > ==11322== by 0x168654: EXEC_function_loop (gbx_exec.c:910) > ==11322== by 0x168DA1: EXEC_function_real (gbx_exec.c:897) > ==11322== by 0x127529: main (gbx.c:430) > ... > > A practised eye can see that this non-freed allocation was made by the > Alloc built-in function directly from the Gambas program. Other sources > of non-freed allocations are native components which valgrind can explain > to you as well using its backtraces, or if you create circular references > in your Gambas data structures. In the last scenario, the valgrind method > gives you no insight. > > I wonder if it's possible, in debug mode, to attach the complete backtrace > from Gambas land to each allocation. (Or if this has been done and I don't > know about it.) > > Regards, > Tobi > There are debugging preprocessor constants, that, if set and Gambas recompiled, associates a auto-increment integer identifier to each id, and gives you the id of the non-free allocation at the end of the program. And for each allocation/reallocation/deallocation, it prints the id and the function that generates it. But not the backtrace, I have to look how to print the backtrace, I never did that. Regards, -- Beno?t Minisini From kicking177 at gmail.com Mon Jun 3 17:59:40 2019 From: kicking177 at gmail.com (KKing) Date: Mon, 3 Jun 2019 16:59:40 +0100 Subject: [Gambas-user] gbx3 warning allocation(s) non freed Message-ID: thanks Tobi/Benoit re << There are debugging preprocessor constants, that, if set and Gambas recompiled, >> I'm not ready to delve into that yet, but if you can either point me to where they are set, or simple example, or any doco that I can refer to later would be great. many thanks. K. From g4mba5 at gmail.com Mon Jun 3 18:49:48 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 3 Jun 2019 18:49:48 +0200 Subject: [Gambas-user] gbx3 warning allocation(s) non freed In-Reply-To: References: Message-ID: Le 03/06/2019 ? 17:59, KKing a ?crit?: > thanks Tobi/Benoit > > re > << > There are debugging preprocessor constants, that, if set and Gambas > recompiled, > > >> > > I'm not ready to delve into that yet, but if you can either point me to > where they are set, or simple example, or any doco that I can refer to > later would be great. > > many thanks. > > K. > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > What is the exact message you get when the interpreter exists? To debug a memory leak, I need a full project, and a way to reproduce the error message. Regards, -- Beno?t Minisini From kicking177 at gmail.com Tue Jun 4 16:23:49 2019 From: kicking177 at gmail.com (KKing) Date: Tue, 4 Jun 2019 15:23:49 +0100 Subject: [Gambas-user] gbx3 warning allocation(s) non freed Message-ID: << What is the exact message you get when the interpreter exists? >> presume you mean exits? if so it is the subject line just insert a variable number between "warning" and "allocation(s)"? have seen between single digit and hundreds. << To debug a memory leak, I need a full project, and a way to reproduce the error message. >> trust me you don't want this project as it currently is! It's large and currently a work in progress of porting an also large Powerbasic application and libraries. The current priority is to get the current essential functionality working in Gambas as a proof of concept. I just thought it might be possible to have a quick working example of a deliberate memory leak or even just a simple variable declaration and population and then show how you would go about debugging showing the allocation and freeing of using the debugging preprocessor constants (and recompile) you mentioned. If not, I can work towards breaking the monster down into discrete chunks to look for the causes, but currently that is some way off. K. From g4mba5 at gmail.com Tue Jun 4 17:37:59 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 4 Jun 2019 17:37:59 +0200 Subject: [Gambas-user] gbx3 warning allocation(s) non freed In-Reply-To: References: Message-ID: <4c170e8b-b29f-1b92-39df-c50f7a898749@gmail.com> Le 04/06/2019 ? 16:23, KKing a ?crit?: > << > What is the exact message you get when the interpreter exists? > >> > presume you mean exits? Yes. Please send the *exact* message printed. > << > To debug a memory leak, I need a full project, and a way to reproduce > the error message. > >> > trust me you don't want this project as it currently is! > It's large and currently a work in progress of porting an also large > Powerbasic application and libraries. The size of the project does not matters as soon as there is a way of reproducing the memory leak. Note : if the interpreter prints a list of classes with the number of objects of each class, it's usually your program that creates a circular reference. Regards, -- Beno?t Minisini From cedron at exede.net Wed Jun 5 15:29:41 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 5 Jun 2019 09:29:41 -0400 (EDT) Subject: [Gambas-user] A little bit of Date Testing Message-ID: <100364781.57153726.1559741381193.JavaMail.zimbra@exede.net> The following print statements: Print Now Print Val("4/10/1947 15:25") Print Date(1947, 4, 10, 15, 25, 00) Print Date("09/06/1972 01:45:12") Print CDate("09/06/1972 01:45:12") Resulted in this output: 06/05/2019 09:13:42 04/10/1947 15:25:00 04/10/1947 15:25:00 09/05/1972 00:00:00 09/05/1972 21:45:12 The following syntax lines (extracted from context): theCreateRS!SomeDate = Now theCreateRS!SomeDate = Val("4/10/1947 15:25") theCreateRS!SomeDate = Date(1947, 4, 10, 15, 25, 00) theCreateRS!SomeDate = Date("09/06/1972 01:45:12") theCreateRS!SomeDate = CDate("09/06/1972 01:45:12") Resulted in these SQLite values: 2019-06-05 09:13:41.956 1947-04-10 15:25:00 1947-04-10 15:25:00 1972-09-05 00:00:00 1972-09-05 21:45:12 So the date handling is consistent between printing and DB insertion. This example also shows the dual nature of the Date() function. First use, as date construction, it keeps the time and the output date matches the input date. Second, as the Date part extraction, it strips the time away, and the output date does not match the intput date. Describing Local vs UTC becomes confusing. I developed a little clock "screen saver" as a visualization tool for myself. You can find it here: https://forum.gambas.one/viewtopic.php?f=4&t=720 Hope this helps. Ced From g4mba5 at gmail.com Wed Jun 5 17:40:52 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 5 Jun 2019 17:40:52 +0200 Subject: [Gambas-user] A little bit of Date Testing In-Reply-To: <100364781.57153726.1559741381193.JavaMail.zimbra@exede.net> References: <100364781.57153726.1559741381193.JavaMail.zimbra@exede.net> Message-ID: <7e7edb67-dd08-4b6c-4891-502139a7e2f5@gmail.com> Le 05/06/2019 ? 15:29, Cedron Dawg a ?crit?: > The following print statements: > > Print Now > Print Val("4/10/1947 15:25") > Print Date(1947, 4, 10, 15, 25, 00) > Print Date("09/06/1972 01:45:12") > Print CDate("09/06/1972 01:45:12") > > Resulted in this output: > > 06/05/2019 09:13:42 > 04/10/1947 15:25:00 > 04/10/1947 15:25:00 > 09/05/1972 00:00:00 > 09/05/1972 21:45:12 > > > The following syntax lines (extracted from context): > > theCreateRS!SomeDate = Now > theCreateRS!SomeDate = Val("4/10/1947 15:25") > theCreateRS!SomeDate = Date(1947, 4, 10, 15, 25, 00) > theCreateRS!SomeDate = Date("09/06/1972 01:45:12") > theCreateRS!SomeDate = CDate("09/06/1972 01:45:12") > > Resulted in these SQLite values: > > 2019-06-05 09:13:41.956 > 1947-04-10 15:25:00 > 1947-04-10 15:25:00 > 1972-09-05 00:00:00 > 1972-09-05 21:45:12 > > So the date handling is consistent between printing and DB insertion. This example also shows the dual nature of the Date() function. First use, as date construction, it keeps the time and the output date matches the input date. Second, as the Date part extraction, it strips the time away, and the output date does not match the intput date. > > Describing Local vs UTC becomes confusing. I developed a little clock "screen saver" as a visualization tool for myself. You can find it here: > > https://forum.gambas.one/viewtopic.php?f=4&t=720 > > Hope this helps. > > Ced > Date() with a single argument takes a Date, not a String. It's not a conversion function. Date(aString) = Date(CDate(aString)) Regards, -- Beno?t Minisini From cedron at exede.net Wed Jun 5 18:00:22 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 5 Jun 2019 12:00:22 -0400 (EDT) Subject: [Gambas-user] A little bit of Date Testing In-Reply-To: <7e7edb67-dd08-4b6c-4891-502139a7e2f5@gmail.com> References: <100364781.57153726.1559741381193.JavaMail.zimbra@exede.net> <7e7edb67-dd08-4b6c-4891-502139a7e2f5@gmail.com> Message-ID: <1960535243.57356771.1559750422637.JavaMail.zimbra@exede.net> Hmmmmmmmmmmm, If the interpreter does an implicit type conversion from string to date automatically, can't then it actually be considered a conversion function? Would you rather see the "CDate()" explicitly in code? ----- Original Message ----- From: "Beno?t Minisini" Date() with a single argument takes a Date, not a String. It's not a conversion function. Date(aString) = Date(CDate(aString)) Regards, -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From g4mba5 at gmail.com Wed Jun 5 18:39:41 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 5 Jun 2019 18:39:41 +0200 Subject: [Gambas-user] A little bit of Date Testing In-Reply-To: <1960535243.57356771.1559750422637.JavaMail.zimbra@exede.net> References: <100364781.57153726.1559741381193.JavaMail.zimbra@exede.net> <7e7edb67-dd08-4b6c-4891-502139a7e2f5@gmail.com> <1960535243.57356771.1559750422637.JavaMail.zimbra@exede.net> Message-ID: <92dfa072-9adc-37f1-46ff-5533aa593cda@gmail.com> Le 05/06/2019 ? 18:00, Cedron Dawg a ?crit?: > Hmmmmmmmmmmm, > > If the interpreter does an implicit type conversion from string to date automatically, can't then it actually be considered a conversion function? > > Would you rather see the "CDate()" explicitly in code? > Yes. You should never use Date() with a string, if you don't know what you are doing exactly (because your string is assumed to be an UTC date). But it's my fault anyway. I should have only allowed the Date datatype in the one-argument case. -- Beno?t Minisini From cedron at exede.net Wed Jun 5 18:58:20 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 5 Jun 2019 12:58:20 -0400 (EDT) Subject: [Gambas-user] A little bit of Date Testing In-Reply-To: <92dfa072-9adc-37f1-46ff-5533aa593cda@gmail.com> References: <100364781.57153726.1559741381193.JavaMail.zimbra@exede.net> <7e7edb67-dd08-4b6c-4891-502139a7e2f5@gmail.com> <1960535243.57356771.1559750422637.JavaMail.zimbra@exede.net> <92dfa072-9adc-37f1-46ff-5533aa593cda@gmail.com> Message-ID: <1997800244.57429469.1559753900400.JavaMail.zimbra@exede.net> It won't happen again. Thanks for the clarification. ----- Original Message ----- From: "Beno?t Minisini" > > Would you rather see the "CDate()" explicitly in code? > Yes. You should never use Date() with a string, if you don't know what you are doing exactly (because your string is assumed to be an UTC date). But it's my fault anyway. I should have only allowed the Date datatype in the one-argument case. -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From the_watchmann at yahoo.com Wed Jun 5 19:34:32 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Wed, 5 Jun 2019 17:34:32 +0000 (UTC) Subject: [Gambas-user] A little bit of Date Testing In-Reply-To: <1997800244.57429469.1559753900400.JavaMail.zimbra@exede.net> References: <100364781.57153726.1559741381193.JavaMail.zimbra@exede.net> <7e7edb67-dd08-4b6c-4891-502139a7e2f5@gmail.com> <1960535243.57356771.1559750422637.JavaMail.zimbra@exede.net> <92dfa072-9adc-37f1-46ff-5533aa593cda@gmail.com> <1997800244.57429469.1559753900400.JavaMail.zimbra@exede.net> Message-ID: <374281779.463099.1559756072604@mail.yahoo.com> > Yes. You should never use Date() with a string, if you don't know what?you are doing exactly (because your string is assumed to be an UTC date).? At last I know what I was doing wrong! Sorry, sometimes it takes a while. Ain't that young anymore...? On Wednesday, June 5, 2019, 6:59:08 PM GMT+2, Cedron Dawg wrote: It won't happen again.? Thanks for the clarification. ----- Original Message ----- From: "Beno?t Minisini" > > Would you rather see the "CDate()" explicitly in code? > Yes. You should never use Date() with a string, if you don't know what you are doing exactly (because your string is assumed to be an UTC date). But it's my fault anyway. I should have only allowed the Date datatype in the one-argument case. -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yrodas at upnfm.edu.hn Wed Jun 5 22:10:48 2019 From: yrodas at upnfm.edu.hn (Yeshua Rodas) Date: Wed, 5 Jun 2019 14:10:48 -0600 Subject: [Gambas-user] About OOP features missing on Gambas Message-ID: Hello coders. You'll see, I'm a PHP developer, but I found Gambas fun and enjoyable for practice and teaching. However, after days of searching there is some issues for that I did not found any answer, so here I am asking. First: there is no a "PROTECTED" scope? I found tipical Public and Private scope for class members on Gambas, but why is not there a Protected scope? Or is used another key word for that? Second: is there some kind of support for Interfaces? If you see Java or PHP yo found that for some Abstract Data Types is possible define an Interface, you know, a set of public methods that define how an ADT must behave. However, I do not found any similar on Gambas. Third: Abstract classes? I'm not sure if declaring on a class File "CREATE PRIVATE" I am defining a kind of Abstract class. Fourth: Traits or mixins? this structures allow to languages that only support simple inheritance a way to reuse a lot of code. I'm thinking that maybe using Composition over Inheritance can be a solution, but I'm just aware if traits or mixins can be supported on Gambas. Thank for your time. Regards. -- E. Yeshua Rodas DTI - UPNFM -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Thu Jun 6 09:28:43 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 6 Jun 2019 09:28:43 +0200 Subject: [Gambas-user] Translate comments Message-ID: Hello, Is it possible to mark comments so that they can be translated? Yours sincerely Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 6 11:09:24 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 6 Jun 2019 11:09:24 +0200 Subject: [Gambas-user] Translate comments In-Reply-To: References: Message-ID: Le 06/06/2019 ? 09:28, Hans Lehmann a ?crit?: > Hello, > > Is it possible to mark comments so that they can be translated? > > Yours sincerely > > Hans > No. Comments exist only in source code, not in executable. -- Beno?t Minisini From rwe-sse at osnanet.de Thu Jun 6 11:30:53 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 6 Jun 2019 11:30:53 +0200 Subject: [Gambas-user] Translate comments In-Reply-To: References: Message-ID: <6dca2c08-0af7-7898-760d-b7cd8d6eae85@osnanet.de> Am 06.06.19 um 09:28 schrieb Hans Lehmann: > Hello, > > Is it possible to mark comments so that they can be translated? > > Yours sincerely > > Hans > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > I could imagine some sort of script which will send everything behind a quote sign on a line through a cloud translation engine. Hm, just tried it in Google Translator, copy/pasted some cryptic and less cryptic quotes of mine, it runs not too bad, though not 100 % reliable. But it can distinguish between language and code, so it does not try to translate some outquoted "FOR..." :) OmegaT (a CAT program) offers a way to do that in the background with free and commercial services, so there should be some kind of interface. Regards Rolf From kicking177 at gmail.com Thu Jun 6 18:35:26 2019 From: kicking177 at gmail.com (KKing) Date: Thu, 6 Jun 2019 17:35:26 +0100 Subject: [Gambas-user] gbx3 warning allocation(s) non freed Message-ID: <0d21a636-233c-1386-b034-58c256679a3c@gmail.com> << Yes. Please send the *exact* message printed. >> as mentioned the only message I see is like below ??? gbx3: warning:? 514 allocation(s) non freed the only differences I see is the 514 can be large variety of numbers, which I suspect will be based on what actions are taken within program before it terminates. I'll look to create some sort of example, but I won't get to that for a while yet. K. From cedron at exede.net Fri Jun 7 16:43:44 2019 From: cedron at exede.net (Cedron Dawg) Date: Fri, 7 Jun 2019 10:43:44 -0400 (EDT) Subject: [Gambas-user] Subdirectories in the .src Directory Message-ID: <225882576.59735211.1559918624589.JavaMail.zimbra@exede.net> So, I was looking at some of the projects in the farm. I found one by Mr. T.B. called "GraphFloodFill" (#27) which had subdirectories in the .src directory. Well, I didn't know you could do that. These questions immediately popped into mind: 1) Can you do this within the IDE? (From scratch) 2) Any cautions or warnings about doing this? Thanks, Ced From g4mba5 at gmail.com Fri Jun 7 18:48:06 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 7 Jun 2019 18:48:06 +0200 Subject: [Gambas-user] Subdirectories in the .src Directory In-Reply-To: <225882576.59735211.1559918624589.JavaMail.zimbra@exede.net> References: <225882576.59735211.1559918624589.JavaMail.zimbra@exede.net> Message-ID: <8fbbcb2b-59f2-7696-939b-b3a51d0678c0@gmail.com> Le 07/06/2019 ? 16:43, Cedron Dawg a ?crit?: > So, I was looking at some of the projects in the farm. I found one by Mr. T.B. called "GraphFloodFill" (#27) which had subdirectories in the .src directory. Well, I didn't know you could do that. > > These questions immediately popped into mind: > > 1) Can you do this within the IDE? (From scratch) > > 2) Any cautions or warnings about doing this? > > Thanks, > > Ced > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Open the IDE Gambas project in the IDE, and you will see. -- Beno?t Minisini From g4mba5 at gmail.com Fri Jun 7 18:51:03 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 7 Jun 2019 18:51:03 +0200 Subject: [Gambas-user] Pilgrimage Message-ID: Hi, I will be completly offline until monday evening as I will make a Pentecost pilgrimage for three days. No bug fixes for three days (cool), but for three rainy days (less cool)! Regards, -- Beno?t Minisini From gambas.fr at gmail.com Fri Jun 7 19:00:30 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 7 Jun 2019 19:00:30 +0200 Subject: [Gambas-user] Pilgrimage In-Reply-To: References: Message-ID: Have a good trip ! -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.cruilles at yahoo.fr Fri Jun 7 19:07:06 2019 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Fri, 7 Jun 2019 13:07:06 -0400 Subject: [Gambas-user] Pilgrimage In-Reply-To: References: Message-ID: <00A952A9-4CD3-48C9-B80B-45999FB61143@yahoo.fr> Bon long week-end Beno?t, Encore un grand merci pour tout ton travail sur Gambas. Je suis toujours un fan depuis 12 ans d?j? Olivier > Le 7 juin 2019 ? 12:51, Beno?t Minisini a ?crit : > > Hi, > > I will be completly offline until monday evening as I will make a Pentecost pilgrimage for three days. > > No bug fixes for three days (cool), but for three rainy days (less cool)! > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From g4mba5 at gmail.com Fri Jun 7 19:12:05 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 7 Jun 2019 19:12:05 +0200 Subject: [Gambas-user] Pilgrimage In-Reply-To: <00A952A9-4CD3-48C9-B80B-45999FB61143@yahoo.fr> References: <00A952A9-4CD3-48C9-B80B-45999FB61143@yahoo.fr> Message-ID: Le 07/06/2019 ? 19:07, Yahoo via User a ?crit?: > Bon long week-end Beno?t, > > Encore un grand merci pour tout ton travail sur Gambas. > > Je suis toujours un fan depuis 12 ans d?j? > > Olivier > Merci ! -- Beno?t Minisini From cedron at exede.net Fri Jun 7 19:47:25 2019 From: cedron at exede.net (Cedron Dawg) Date: Fri, 7 Jun 2019 13:47:25 -0400 (EDT) Subject: [Gambas-user] Subdirectories in the .src Directory In-Reply-To: <8fbbcb2b-59f2-7696-939b-b3a51d0678c0@gmail.com> References: <225882576.59735211.1559918624589.JavaMail.zimbra@exede.net> <8fbbcb2b-59f2-7696-939b-b3a51d0678c0@gmail.com> Message-ID: <1553556806.59898086.1559929645083.JavaMail.zimbra@exede.net> Okay, I see that you did it a bunch too, so it must be alright. I still haven't found how to create a new directory within the .src using the IDE though. Not that important, just curious. May you have a great weekend. Ced ----- Original Message ----- From: "Beno?t Minisini" Open the IDE Gambas project in the IDE, and you will see. -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From g4mba5 at gmail.com Fri Jun 7 20:02:48 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 7 Jun 2019 20:02:48 +0200 Subject: [Gambas-user] Subdirectories in the .src Directory In-Reply-To: <1553556806.59898086.1559929645083.JavaMail.zimbra@exede.net> References: <225882576.59735211.1559918624589.JavaMail.zimbra@exede.net> <8fbbcb2b-59f2-7696-939b-b3a51d0678c0@gmail.com> <1553556806.59898086.1559929645083.JavaMail.zimbra@exede.net> Message-ID: <6eb5d70b-e6aa-3796-ebd0-5723cbb5ef9f@gmail.com> Le 07/06/2019 ? 19:47, Cedron Dawg a ?crit?: > Okay, I see that you did it a bunch too, so it must be alright. > > I still haven't found how to create a new directory within the .src using the IDE though. Not that important, just curious. > > May you have a great weekend. > > Ced > Right click on a source project folder -> New directory. -- Beno?t Minisini From cedron at exede.net Fri Jun 7 20:11:37 2019 From: cedron at exede.net (Cedron Dawg) Date: Fri, 7 Jun 2019 14:11:37 -0400 (EDT) Subject: [Gambas-user] Subdirectories in the .src Directory In-Reply-To: <6eb5d70b-e6aa-3796-ebd0-5723cbb5ef9f@gmail.com> References: <225882576.59735211.1559918624589.JavaMail.zimbra@exede.net> <8fbbcb2b-59f2-7696-939b-b3a51d0678c0@gmail.com> <1553556806.59898086.1559929645083.JavaMail.zimbra@exede.net> <6eb5d70b-e6aa-3796-ebd0-5723cbb5ef9f@gmail.com> Message-ID: <579663249.59937981.1559931097969.JavaMail.zimbra@exede.net> Thank you Hans and Benoit. I don't know why I didn't see that. Feeling a little embarrassed. Ced ----- Original Message ----- From: "Beno?t Minisini" To: "user" Sent: Friday, June 7, 2019 2:02:48 PM Subject: Re: [Gambas-user] Subdirectories in the .src Directory Le 07/06/2019 ? 19:47, Cedron Dawg a ?crit?: > Okay, I see that you did it a bunch too, so it must be alright. > > I still haven't found how to create a new directory within the .src using the IDE though. Not that important, just curious. > > May you have a great weekend. > > Ced > Right click on a source project folder -> New directory. -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From shordi at gmail.com Fri Jun 7 20:25:39 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 7 Jun 2019 20:25:39 +0200 Subject: [Gambas-user] Pilgrimage In-Reply-To: References: <00A952A9-4CD3-48C9-B80B-45999FB61143@yahoo.fr> Message-ID: Good weekend! El vie., 7 jun. 2019 a las 19:13, Beno?t Minisini () escribi?: > Le 07/06/2019 ? 19:07, Yahoo via User a ?crit : > > Bon long week-end Beno?t, > > > > Encore un grand merci pour tout ton travail sur Gambas. > > > > Je suis toujours un fan depuis 12 ans d?j? > > > > Olivier > > > > Merci ! > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sat Jun 8 20:42:03 2019 From: taboege at gmail.com (Tobias Boege) Date: Sat, 8 Jun 2019 20:42:03 +0200 Subject: [Gambas-user] About OOP features missing on Gambas In-Reply-To: References: Message-ID: <20190608184202.GA1271@highrise.localdomain> On Wed, 05 Jun 2019, Yeshua Rodas wrote: > Hello coders. > > You'll see, I'm a PHP developer, but I found Gambas fun and enjoyable for > practice and teaching. However, after days of searching there is some > issues > for that I did not found any answer, so here I am asking. > > First: there is no a "PROTECTED" scope? I found tipical Public and Private > scope for class members on Gambas, but why is not there a Protected scope? > Or > is used another key word for that? > There is no such thing. Instead there is a convention (supported by the IDE) to prefix public members and methods with an underscore to indicate that they are hidden and using them voids any warranty. > Second: is there some kind of support for Interfaces? If you see Java or > PHP > yo found that for some Abstract Data Types is possible define an Interface, > you know, a set of public methods that define how an ADT must behave. > However, > I do not found any similar on Gambas. > Interfaces (in the sense of making duck typing formal) are not supported either. The only tool you have is inheritance, and there is no multiple inheritance. > Third: Abstract classes? I'm not sure if declaring on a class File "CREATE > PRIVATE" I am defining a kind of Abstract class. > Create Private means precisely that you cannot create instances of a class. You can still derive other classes. Providing implementations of methods and properties *is also* allowed, so depending on what you understand as an "abstract class" exactly, this may not fit. You cannot mark a method or property as a "stub", so that a deriving class which does not implement it causes a "you have to implement abstract ..." error. You would have to raise those errors yourself in the implementations of the methods in the abstract parent. Note that you have to call methods and properties using Me. in the parent class to have them resolve dynamically (to the actual method as implemented in the current object inheriting the abstract class) instead of lexically (to the empty method in the abstract class). > Fourth: Traits or mixins? this structures allow to languages that only > support > simple inheritance a way to reuse a lot of code. I'm thinking that maybe > using > Composition over Inheritance can be a solution, but I'm just aware if > traits > or mixins can be supported on Gambas. > No such thing. Beno?t is on record saying that these features are missing in Gambas because the "bas" in Gambas comes from "BASIC". Introducing all these Java- and C++-esque features are very much not that. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From charlie at cogier.com Sun Jun 9 18:21:03 2019 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 9 Jun 2019 17:21:03 +0100 Subject: [Gambas-user] URL Message-ID: Hi all, If I run this simple program that loads OpenStreetMap in a WebView on Linux Mint 19.1 and move the map about the URL changes as you move. Now do the same thing on a different system, in my case a Raspberry Pi 3, and the URL does not change. Does anybody know why? Thanks, Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: URL-0.0.1.tar.gz Type: application/gzip Size: 11746 bytes Desc: not available URL: From t.lee.davidson at gmail.com Mon Jun 10 20:29:33 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 10 Jun 2019 14:29:33 -0400 Subject: [Gambas-user] URL In-Reply-To: References: Message-ID: <6d7277de-153e-95fb-22b7-6be73cc8ccc4@gmail.com> No idea why it would be different. But, the URL does not change on openSUSE Leap 42.3. ___ Lee On 6/9/19 12:21 PM, Charlie Ogier wrote: > Hi all, > > If I run this simple program that loads OpenStreetMap in a WebView on Linux Mint 19.1 and move the map about the URL changes as > you move. Now do the same thing on a different system, in my case a Raspberry Pi 3, and the URL does not change. > > Does anybody know why? > > Thanks, > > Charlie > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From cedron at exede.net Tue Jun 11 00:09:56 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 10 Jun 2019 18:09:56 -0400 (EDT) Subject: [Gambas-user] Quirky Showmodal from Full Screen Mode Message-ID: <882560499.63486082.1560204596648.JavaMail.zimbra@exede.net> Here is an issue that I have run into, but I am not the first: http://gambas.8142.n7.nabble.com/Dialog-on-top-of-FullScreen-window-td46253.html Okay, I have Linux Mint 17 Mate. So, create a Qt or Gtk project (or download attached). Add a second form, accept the default name. Put this in the main form code: Public Sub Form_KeyPress() Select Case Key.Code Case Key["1"] Me.FullScreen = Not Me.FullScreen Case Key["2"] Form1.title = Str(Now) Form1.Showmodal End Select End Run the project. Press [1] a few times, works as expected. When the form is not full screen, press [2], works as expected. Close the second form by clicking its 'x'. Press [1] to go into full screen. works as expected. Press [2]. Now things don't work any more. The form apparently opens, but it is hidden by the full screen form instead of showing. Even though the full screen form is on top it doesn't have focus and thus will not take any keystrokes. To get out, I have to "Alt-Tab' to the IDE and stop the program. What to do? Thanks, Ced -------------- next part -------------- A non-text attachment was scrubbed... Name: FullScreenModalDemo-0.0.1.tar.gz Type: application/x-compressed-tar Size: 11702 bytes Desc: not available URL: From bagonergi at gmail.com Tue Jun 11 09:55:59 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 11 Jun 2019 09:55:59 +0200 Subject: [Gambas-user] Quirky Showmodal from Full Screen Mode In-Reply-To: <882560499.63486082.1560204596648.JavaMail.zimbra@exede.net> References: <882560499.63486082.1560204596648.JavaMail.zimbra@exede.net> Message-ID: Hi Ced, here with Ubuntu 18.04.02 and e2581fb (master) works fine. You could try putting brackets like Form1.Showmodal(). Regards Gianluigi Il giorno mar 11 giu 2019 alle ore 00:10 Cedron Dawg ha scritto: > Here is an issue that I have run into, but I am not the first: > > > http://gambas.8142.n7.nabble.com/Dialog-on-top-of-FullScreen-window-td46253.html > > Okay, I have Linux Mint 17 Mate. > > So, create a Qt or Gtk project (or download attached). Add a second form, > accept the default name. Put this in the main form code: > > > Public Sub Form_KeyPress() > > Select Case Key.Code > Case Key["1"] > Me.FullScreen = Not Me.FullScreen > > Case Key["2"] > Form1.title = Str(Now) > Form1.Showmodal > > End Select > > End > > Run the project. Press [1] a few times, works as expected. > > When the form is not full screen, press [2], works as expected. > > Close the second form by clicking its 'x'. > > Press [1] to go into full screen. works as expected. > > Press [2]. > > Now things don't work any more. The form apparently opens, but it is > hidden by the full screen form instead of showing. Even though the full > screen form is on top it doesn't have focus and thus will not take any > keystrokes. > > To get out, I have to "Alt-Tab' to the IDE and stop the program. > > What to do? > > Thanks, > > Ced > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Jun 11 11:36:39 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 11 Jun 2019 11:36:39 +0200 Subject: [Gambas-user] Quirky Showmodal from Full Screen Mode In-Reply-To: References: <882560499.63486082.1560204596648.JavaMail.zimbra@exede.net> Message-ID: I tried on my Mint 19.1 CINNAMON and it works well, it could also be a matter of theme, what theme do you have? Regards Gianluigi Il giorno mar 11 giu 2019 alle ore 09:55 Gianluigi ha scritto: > Hi Ced, > here with Ubuntu 18.04.02 and e2581fb (master) works fine. > You could try putting brackets like Form1.Showmodal(). > > Regards > Gianluigi > > Il giorno mar 11 giu 2019 alle ore 00:10 Cedron Dawg > ha scritto: > >> Here is an issue that I have run into, but I am not the first: >> >> >> http://gambas.8142.n7.nabble.com/Dialog-on-top-of-FullScreen-window-td46253.html >> >> Okay, I have Linux Mint 17 Mate. >> >> So, create a Qt or Gtk project (or download attached). Add a second >> form, accept the default name. Put this in the main form code: >> >> >> Public Sub Form_KeyPress() >> >> Select Case Key.Code >> Case Key["1"] >> Me.FullScreen = Not Me.FullScreen >> >> Case Key["2"] >> Form1.title = Str(Now) >> Form1.Showmodal >> >> End Select >> >> End >> >> Run the project. Press [1] a few times, works as expected. >> >> When the form is not full screen, press [2], works as expected. >> >> Close the second form by clicking its 'x'. >> >> Press [1] to go into full screen. works as expected. >> >> Press [2]. >> >> Now things don't work any more. The form apparently opens, but it is >> hidden by the full screen form instead of showing. Even though the full >> screen form is on top it doesn't have focus and thus will not take any >> keystrokes. >> >> To get out, I have to "Alt-Tab' to the IDE and stop the program. >> >> What to do? >> >> Thanks, >> >> Ced >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Jun 11 12:06:32 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 11 Jun 2019 12:06:32 +0200 Subject: [Gambas-user] Quirky Showmodal from Full Screen Mode In-Reply-To: References: <882560499.63486082.1560204596648.JavaMail.zimbra@exede.net> Message-ID: edit: on Mint only works with qt (qt4 and qt5) but not with gtk (gb.gui) Regards Gianluigi Il giorno mar 11 giu 2019 alle ore 11:36 Gianluigi ha scritto: > I tried on my Mint 19.1 CINNAMON and it works well, it could also be a > matter of theme, what theme do you have? > > Regards > Gianluigi > > Il giorno mar 11 giu 2019 alle ore 09:55 Gianluigi > ha scritto: > >> Hi Ced, >> here with Ubuntu 18.04.02 and e2581fb (master) works fine. >> You could try putting brackets like Form1.Showmodal(). >> >> Regards >> Gianluigi >> >> Il giorno mar 11 giu 2019 alle ore 00:10 Cedron Dawg >> ha scritto: >> >>> Here is an issue that I have run into, but I am not the first: >>> >>> >>> http://gambas.8142.n7.nabble.com/Dialog-on-top-of-FullScreen-window-td46253.html >>> >>> Okay, I have Linux Mint 17 Mate. >>> >>> So, create a Qt or Gtk project (or download attached). Add a second >>> form, accept the default name. Put this in the main form code: >>> >>> >>> Public Sub Form_KeyPress() >>> >>> Select Case Key.Code >>> Case Key["1"] >>> Me.FullScreen = Not Me.FullScreen >>> >>> Case Key["2"] >>> Form1.title = Str(Now) >>> Form1.Showmodal >>> >>> End Select >>> >>> End >>> >>> Run the project. Press [1] a few times, works as expected. >>> >>> When the form is not full screen, press [2], works as expected. >>> >>> Close the second form by clicking its 'x'. >>> >>> Press [1] to go into full screen. works as expected. >>> >>> Press [2]. >>> >>> Now things don't work any more. The form apparently opens, but it is >>> hidden by the full screen form instead of showing. Even though the full >>> screen form is on top it doesn't have focus and thus will not take any >>> keystrokes. >>> >>> To get out, I have to "Alt-Tab' to the IDE and stop the program. >>> >>> What to do? >>> >>> Thanks, >>> >>> Ced >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Jun 11 21:04:41 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 11 Jun 2019 22:04:41 +0300 Subject: [Gambas-user] JIT Bug In-Reply-To: References: Message-ID: This bug seems still to be in the latest Gambas. Just in case you have forgot it. Jussi On Fri, May 17, 2019 at 1:02 AM Jussi Lahtinen wrote: > I managed to expose JIT bug, but not necessarily the one I was looking > for... see attached project. > > > Jussi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Jun 11 21:07:00 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 11 Jun 2019 21:07:00 +0200 Subject: [Gambas-user] JIT Bug In-Reply-To: References: Message-ID: <84a940e4-ffb5-9e44-3c61-a417896236bd@gmail.com> Le 11/06/2019 ? 21:04, Jussi Lahtinen a ?crit?: > This bug seems still to be in the latest Gambas. Just in case you have > forgot it. > > > Jussi > You're right, I forgot it! -- Beno?t Minisini From g4mba5 at gmail.com Tue Jun 11 22:35:24 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 11 Jun 2019 22:35:24 +0200 Subject: [Gambas-user] JIT Bug In-Reply-To: <84a940e4-ffb5-9e44-3c61-a417896236bd@gmail.com> References: <84a940e4-ffb5-9e44-3c61-a417896236bd@gmail.com> Message-ID: <129be7ac-fefa-fdc0-ebcc-33c876f88d5b@gmail.com> Le 11/06/2019 ? 21:07, Beno?t Minisini a ?crit?: > Le 11/06/2019 ? 21:04, Jussi Lahtinen a ?crit?: >> This bug seems still to be in the latest Gambas. Just in case you have >> forgot it. >> >> >> Jussi >> > > You're right, I forgot it! > Fixed in commit https://gitlab.com/gambas/gambas/commit/ce37d6ff6797272e646c013a1fff70c39fc4c6bd. -- Beno?t Minisini From yrodas at upnfm.edu.hn Wed Jun 12 04:34:31 2019 From: yrodas at upnfm.edu.hn (Yeshua Rodas) Date: Tue, 11 Jun 2019 20:34:31 -0600 Subject: [Gambas-user] About OOP features missing on Gambas In-Reply-To: <20190608184202.GA1271@highrise.localdomain> References: <20190608184202.GA1271@highrise.localdomain> Message-ID: Thank you. All is more clear for me now. However, I'm facing an issue that I'm not sure how to handle it. I have a basic class with a method: Public Function doSomething(param as SomeBaseClass) as String ' Some stuff End And a derivated class that I need to call some specialized method Public Function doSomething(param as SomeDerivatedClass) as String ' Some stuff param.childMethod() ' More stuff End But this rise "Symbol is badly overridden" error. I think that on overriding would be useful to override the type for an inherited type. The actual constraint model is squeezing my brain. Regards. El s?b., 8 jun. 2019 a las 12:43, Tobias Boege () escribi?: > On Wed, 05 Jun 2019, Yeshua Rodas wrote: > > Hello coders. > > > > You'll see, I'm a PHP developer, but I found Gambas fun and enjoyable for > > practice and teaching. However, after days of searching there is some > > issues > > for that I did not found any answer, so here I am asking. > > > > First: there is no a "PROTECTED" scope? I found tipical Public and > Private > > scope for class members on Gambas, but why is not there a Protected > scope? > > Or > > is used another key word for that? > > > > There is no such thing. Instead there is a convention (supported by the > IDE) > to prefix public members and methods with an underscore to indicate that > they > are hidden and using them voids any warranty. > > > Second: is there some kind of support for Interfaces? If you see Java or > > PHP > > yo found that for some Abstract Data Types is possible define an > Interface, > > you know, a set of public methods that define how an ADT must behave. > > However, > > I do not found any similar on Gambas. > > > > Interfaces (in the sense of making duck typing formal) are not supported > either. The only tool you have is inheritance, and there is no multiple > inheritance. > > > Third: Abstract classes? I'm not sure if declaring on a class File > "CREATE > > PRIVATE" I am defining a kind of Abstract class. > > > > Create Private means precisely that you cannot create instances of a class. > You can still derive other classes. Providing implementations of methods > and properties *is also* allowed, so depending on what you understand as > an "abstract class" exactly, this may not fit. > > You cannot mark a method or property as a "stub", so that a deriving class > which does not implement it causes a "you have to implement abstract ..." > error. You would have to raise those errors yourself in the implementations > of the methods in the abstract parent. > > Note that you have to call methods and properties using Me. > in the parent class to have them resolve dynamically (to the actual method > as implemented in the current object inheriting the abstract class) > instead of lexically (to the empty method in the abstract class). > > > Fourth: Traits or mixins? this structures allow to languages that only > > support > > simple inheritance a way to reuse a lot of code. I'm thinking that maybe > > using > > Composition over Inheritance can be a solution, but I'm just aware if > > traits > > or mixins can be supported on Gambas. > > > > No such thing. > > Beno?t is on record saying that these features are missing in Gambas > because the "bas" in Gambas comes from "BASIC". Introducing all these > Java- and C++-esque features are very much not that. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- E. Yeshua Rodas DTI - UPNFM -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jun 12 18:22:10 2019 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 12 Jun 2019 18:22:10 +0200 Subject: [Gambas-user] Error malfunction with Finally Message-ID: Hi Benoit, strange behavior of Error with the Finally instruction. Error number: -1 Unable to load image instead of: Error number: 26 Division by zero See attachment Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FinallyTest-0.0.1.tar.gz Type: application/gzip Size: 11607 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Thu Jun 13 00:13:31 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 13 Jun 2019 01:13:31 +0300 Subject: [Gambas-user] JIT Bug In-Reply-To: <129be7ac-fefa-fdc0-ebcc-33c876f88d5b@gmail.com> References: <84a940e4-ffb5-9e44-3c61-a417896236bd@gmail.com> <129be7ac-fefa-fdc0-ebcc-33c876f88d5b@gmail.com> Message-ID: This seems to introduce another problem. Please see the attachment. Jussi On Tue, Jun 11, 2019 at 11:35 PM Beno?t Minisini wrote: > Le 11/06/2019 ? 21:07, Beno?t Minisini a ?crit : > > Le 11/06/2019 ? 21:04, Jussi Lahtinen a ?crit : > >> This bug seems still to be in the latest Gambas. Just in case you have > >> forgot it. > >> > >> > >> Jussi > >> > > > > You're right, I forgot it! > > > > Fixed in commit > > https://gitlab.com/gambas/gambas/commit/ce37d6ff6797272e646c013a1fff70c39fc4c6bd > . > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.19.tar.gz Type: application/gzip Size: 28395 bytes Desc: not available URL: From yrodas at upnfm.edu.hn Thu Jun 13 04:40:47 2019 From: yrodas at upnfm.edu.hn (Yeshua Rodas) Date: Wed, 12 Jun 2019 20:40:47 -0600 Subject: [Gambas-user] Unit Test status? Message-ID: Hello folks. You'll see, I'm developing a component for Gambas and I'm not sure how to test my code. I found some threads about the `gb.test` component, but I realize that is actually only in the homonym branch and has about a year without movement. Also, there is `gb.deg.unittest` with similar inactivity time. So, what's the best current way to do tests on Gambas? My current approach is a console app that requires my project on development and write calls and prints, but this is nothing elegant, so please, give to me some guidelines. -- E. Yeshua Rodas DTI - UPNFM -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Jun 13 13:30:20 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 13 Jun 2019 13:30:20 +0200 Subject: [Gambas-user] Unit Test status? In-Reply-To: References: Message-ID: Hello, Am 13.06.19 um 04:40 schrieb Yeshua Rodas: > You'll see, I'm developing a component for Gambas and I'm not sure how > to test my code. > I found some threads about the `gb.test` component, but I realize that > is actually only in the homonym branch and has about a year without > movement. Also, there is `gb.deg.unittest` with similar inactivity time. > > So, what's the best current way to do tests on Gambas? > My current approach is a console app that requires my project on > development and write calls and prints, but this is nothing elegant, so > please, give to me some guidelines.? gb.deg.unittest is stopped but in the develop branch there is gb.test which is the last state of my work: https://gitlab.com/christhal/gb.deg.unittest/tree/develop With that I am testing all my work in my firm. It has no fancy GUI output any more but prints out TAP to the console as we discussed about one or two years ago here in the ML. I would recommend this for testing, I use it all day long and it works well. It is the only project I know that is able to test any Gambas project. But: If you test any project with it, before deployment of your project I recommend that you remove "Component=deg.gb.test" out of the .project file. With my projects I do this in a makefile. For the future of gb.test: The last state of the discussion between Tobi and me was (as I remember), that it should replace the current gb.test in the Gambas3 sources. The IDE should afterwards provide a way to execute tests. Also a fancy GUI interface should be written to count, measure, display test results. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From taboege at gmail.com Fri Jun 14 12:40:36 2019 From: taboege at gmail.com (Tobias Boege) Date: Fri, 14 Jun 2019 12:40:36 +0200 Subject: [Gambas-user] About OOP features missing on Gambas In-Reply-To: References: <20190608184202.GA1271@highrise.localdomain> Message-ID: <20190614104036.GA1226@highrise.localdomain> On Tue, 11 Jun 2019, Yeshua Rodas wrote: > Thank you. All is more clear for me now. > > However, I'm facing an issue that I'm not sure how to handle it. > > I have a basic class with a method: > > Public Function doSomething(param as SomeBaseClass) as String > ' Some stuff > End > > > And a derivated class that I need to call some specialized method > > Public Function doSomething(param as SomeDerivatedClass) as String > ' Some stuff > param.childMethod() > ' More stuff > End > > > But this rise "Symbol is badly overridden" error. > I think that on overriding would be useful to override the type for an > inherited type. The actual constraint model is squeezing my brain. > Allowing that seems sensible to me. You'll have to get Beno?t's attention to have it implemented though. But note that Gambas does not have polymorphic methods, so with the above you will essentially forbid someone to use the derived class's doSomething like they could with the parent class, because the signature is irrevocably more constrained. To me, this seems like a violation of Liskov's substitution principle, which you may care about or not. Also note that you can put an object of type B into a variable typed A *and get it out again* into a variable typed B, provided that the actual type of the object is B and B inherits A. An object does not lose its "true type" by being placed in a typed variable. A variable's type acts mostly like a method lookup table for the contained object, which you can switch out as long as they are compatible via inheritance. Public Function doSomething(param As SomeBaseClass) As String Dim der As SomeDerivatedClass = param der.childMethod() End in SomeDerivatedClass will work right now without raising the "badly overridden" error. Put in a Try and a call to Super.doSomething and you have manually constructed a method that is polymorphic along class lineage. The other solution that works right now would be to name the new method differently. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Fri Jun 14 19:39:08 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 14 Jun 2019 20:39:08 +0300 Subject: [Gambas-user] About OOP features missing on Gambas In-Reply-To: <20190614104036.GA1226@highrise.localdomain> References: <20190608184202.GA1271@highrise.localdomain> <20190614104036.GA1226@highrise.localdomain> Message-ID: This is pretty much my beef with OOP (however, I do see its benefits and Gambas is great language!). More you rely on OOP features (in contrast to example features of procedural languages), more you make your code invisibly language specific. There doesn't seem to be proper common OO language standards and the "rules" are not intuitive nor derivable. IE it is not clear what superficially the semantically same code does in two different OO languages. Thus I would suggest not to add features that lack de facto standards, unless they are really powerful and widely useful. Jussi On Fri, Jun 14, 2019 at 1:41 PM Tobias Boege wrote: > On Tue, 11 Jun 2019, Yeshua Rodas wrote: > > Thank you. All is more clear for me now. > > > > However, I'm facing an issue that I'm not sure how to handle it. > > > > I have a basic class with a method: > > > > Public Function doSomething(param as SomeBaseClass) as String > > ' Some stuff > > End > > > > > > And a derivated class that I need to call some specialized method > > > > Public Function doSomething(param as SomeDerivatedClass) as String > > ' Some stuff > > param.childMethod() > > ' More stuff > > End > > > > > > But this rise "Symbol is badly overridden" error. > > I think that on overriding would be useful to override the type for an > > inherited type. The actual constraint model is squeezing my brain. > > > > Allowing that seems sensible to me. You'll have to get Beno?t's attention > to have it implemented though. > > But note that Gambas does not have polymorphic methods, so with the above > you will essentially forbid someone to use the derived class's doSomething > like they could with the parent class, because the signature is irrevocably > more constrained. To me, this seems like a violation of Liskov's > substitution > principle, which you may care about or not. > > Also note that you can put an object of type B into a variable typed A > *and get it out again* into a variable typed B, provided that the actual > type of the object is B and B inherits A. An object does not lose its > "true type" by being placed in a typed variable. A variable's type acts > mostly like a method lookup table for the contained object, which you > can switch out as long as they are compatible via inheritance. > > Public Function doSomething(param As SomeBaseClass) As String > Dim der As SomeDerivatedClass = param > der.childMethod() > End > > in SomeDerivatedClass will work right now without raising the > "badly overridden" error. Put in a Try and a call to Super.doSomething > and you have manually constructed a method that is polymorphic along > class lineage. The other solution that works right now would be to name > the new method differently. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shordi at gmail.com Sat Jun 15 10:59:46 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sat, 15 Jun 2019 10:59:46 +0200 Subject: [Gambas-user] About qt, a little issue Message-ID: Hi everybody, I have a project that uses the textedit component from gb.qtX.ext Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It works fine but with older versions not. I can use the gb.qt4.ext component but it generates some problems with latest versions (menu's icons not visible). If I try to use the gb.gui.qt component (That should be the answer, isn't it?) then I can't link either gb.qt4.ext or gb.qt5.ext Is there a way to do that? Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Jun 15 13:02:48 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 15 Jun 2019 13:02:48 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: Message-ID: Hi Jorge, I probably didn't understand, but shouldn't you use gb.form.editor (with gb.gui.qt)? Regards Gianluigi Il giorno sab 15 giu 2019 alle ore 11:00 Jorge Carri?n ha scritto: > Hi everybody, > > I have a project that uses the textedit component from gb.qtX.ext > Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It works > fine but with older versions not. I can use the gb.qt4.ext component but > it generates some problems with latest versions (menu's icons not visible). > If I try to use the gb.gui.qt component (That should be the answer, isn't > it?) then I can't link either gb.qt4.ext or gb.qt5.ext > Is there a way to do that? > > Best regards > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Jun 15 13:22:20 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 15 Jun 2019 13:22:20 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: Message-ID: ... or Public Sub Main() If System.FullVersion > ... Then Component.Load... Esle ... Endif End Regards Gianluigi Il giorno sab 15 giu 2019 alle ore 13:02 Gianluigi ha scritto: > Hi Jorge, > I probably didn't understand, but shouldn't you use gb.form.editor (with > gb.gui.qt)? > > Regards > Gianluigi > > Il giorno sab 15 giu 2019 alle ore 11:00 Jorge Carri?n > ha scritto: > >> Hi everybody, >> >> I have a project that uses the textedit component from gb.qtX.ext >> Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It works >> fine but with older versions not. I can use the gb.qt4.ext component but >> it generates some problems with latest versions (menu's icons not visible). >> If I try to use the gb.gui.qt component (That should be the answer, isn't >> it?) then I can't link either gb.qt4.ext or gb.qt5.ext >> Is there a way to do that? >> >> Best regards >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shordi at gmail.com Sat Jun 15 17:46:37 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sat, 15 Jun 2019 17:46:37 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: Message-ID: Oh! I didn't knew I can load components at run time! I'll try that. Thanks a lot Gianluigi. El s?b., 15 jun. 2019 13:23, Gianluigi escribi?: > ... or > > Public Sub Main() > > If System.FullVersion > ... Then > Component.Load... > Esle > ... > Endif > > End > > Regards > Gianluigi > > Il giorno sab 15 giu 2019 alle ore 13:02 Gianluigi > ha scritto: > >> Hi Jorge, >> I probably didn't understand, but shouldn't you use gb.form.editor (with >> gb.gui.qt)? >> >> Regards >> Gianluigi >> >> Il giorno sab 15 giu 2019 alle ore 11:00 Jorge Carri?n >> ha scritto: >> >>> Hi everybody, >>> >>> I have a project that uses the textedit component from gb.qtX.ext >>> Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It works >>> fine but with older versions not. I can use the gb.qt4.ext component but >>> it generates some problems with latest versions (menu's icons not visible). >>> If I try to use the gb.gui.qt component (That should be the answer, >>> isn't it?) then I can't link either gb.qt4.ext or gb.qt5.ext >>> Is there a way to do that? >>> >>> Best regards >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Sun Jun 16 17:00:29 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 16 Jun 2019 18:00:29 +0300 Subject: [Gambas-user] change the color code in the webpage editor Message-ID: <20190616145047.M80935@455.co.il> hello When I put code in: <% ...%> I want to see <% ...%> in a different color This makes it possible to find a difference between GAMBAS code and HTML code From shordi at gmail.com Sun Jun 16 19:10:21 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 16 Jun 2019 19:10:21 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: Message-ID: It doesn't work, Gianluigi. I can't create the installation packages without link with qt4 or qt5 first, and I can't change the qt version to work at run time. I think that the only one solution is create both packages qt4 or qt5 and a shellscript that launches one or another depending of S.O. version. Its a little trickie, but can't imagine other solution... (well... maybe a little proyect that *install *one or other depending of S.O. version). I'll think about this a little more, I guess. Thanks for you interest. El s?b., 15 jun. 2019 a las 17:46, Jorge Carri?n () escribi?: > Oh! I didn't knew I can load components at run time! > I'll try that. > Thanks a lot Gianluigi. > > > El s?b., 15 jun. 2019 13:23, Gianluigi escribi?: > >> ... or >> >> Public Sub Main() >> >> If System.FullVersion > ... Then >> Component.Load... >> Esle >> ... >> Endif >> >> End >> >> Regards >> Gianluigi >> >> Il giorno sab 15 giu 2019 alle ore 13:02 Gianluigi >> ha scritto: >> >>> Hi Jorge, >>> I probably didn't understand, but shouldn't you use gb.form.editor (with >>> gb.gui.qt)? >>> >>> Regards >>> Gianluigi >>> >>> Il giorno sab 15 giu 2019 alle ore 11:00 Jorge Carri?n >>> ha scritto: >>> >>>> Hi everybody, >>>> >>>> I have a project that uses the textedit component from gb.qtX.ext >>>> Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It works >>>> fine but with older versions not. I can use the gb.qt4.ext component but >>>> it generates some problems with latest versions (menu's icons not visible). >>>> If I try to use the gb.gui.qt component (That should be the answer, >>>> isn't it?) then I can't link either gb.qt4.ext or gb.qt5.ext >>>> Is there a way to do that? >>>> >>>> Best regards >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jun 16 19:48:04 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 16 Jun 2019 19:48:04 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: Message-ID: You mean something like this? '---------------------------- Public Sub Main() Dim s As String s = System.FullVersion If Scan(s, "*.*.*")[0] = "3" Then If Len(Scan(s, "*.*.*")[1]) = 1 Then s = Scan(s, "*.*.*")[0] & ".0" & Scan(s, "*.*.*")[1] & "." & Scan(s, "*.*.*")[2] Endif Else Print "#Unable to proceed" Quit Endif If s > "3.08.0" Then 'Component.Load... Shell "./ProgA.gambas" Else 'Component.Load... Shell "./ProgB.gambas" Endif End '----------------------------- it seems to me a good solution. But maybe others have better solutions ... Regards Gianluigi Il giorno dom 16 giu 2019 alle ore 19:11 Jorge Carri?n ha scritto: > It doesn't work, Gianluigi. I can't create the installation packages > without link with qt4 or qt5 first, and I can't change the qt version to > work at run time. > I think that the only one solution is create both packages qt4 or qt5 and > a shellscript that launches one or another depending of S.O. version. > Its a little trickie, but can't imagine other solution... (well... maybe a > little proyect that *install *one or other depending of S.O. version). > I'll think about this a little more, I guess. > > Thanks for you interest. > > El s?b., 15 jun. 2019 a las 17:46, Jorge Carri?n () > escribi?: > >> Oh! I didn't knew I can load components at run time! >> I'll try that. >> Thanks a lot Gianluigi. >> >> >> El s?b., 15 jun. 2019 13:23, Gianluigi escribi?: >> >>> ... or >>> >>> Public Sub Main() >>> >>> If System.FullVersion > ... Then >>> Component.Load... >>> Esle >>> ... >>> Endif >>> >>> End >>> >>> Regards >>> Gianluigi >>> >>> Il giorno sab 15 giu 2019 alle ore 13:02 Gianluigi >>> ha scritto: >>> >>>> Hi Jorge, >>>> I probably didn't understand, but shouldn't you use gb.form.editor >>>> (with gb.gui.qt)? >>>> >>>> Regards >>>> Gianluigi >>>> >>>> Il giorno sab 15 giu 2019 alle ore 11:00 Jorge Carri?n < >>>> shordi at gmail.com> ha scritto: >>>> >>>>> Hi everybody, >>>>> >>>>> I have a project that uses the textedit component from gb.qtX.ext >>>>> Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It works >>>>> fine but with older versions not. I can use the gb.qt4.ext component but >>>>> it generates some problems with latest versions (menu's icons not visible). >>>>> If I try to use the gb.gui.qt component (That should be the answer, >>>>> isn't it?) then I can't link either gb.qt4.ext or gb.qt5.ext >>>>> Is there a way to do that? >>>>> >>>>> Best regards >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Sun Jun 16 21:14:45 2019 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sun, 16 Jun 2019 21:14:45 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: Message-ID: <1560712485.8708.1.camel@Scenic.local> Am Samstag, den 15.06.2019, 10:59 +0200 schrieb Jorge Carri?n: > Hi everybody, > > > I have a project that uses the textedit component from gb.qtX.ext > Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It > works fine but with older versions not. I can use the gb.qt4.ext > component but it generates some problems with latest versions (menu's > icons not visible). > If I try to use the gb.gui.qt component (That should be the answer, > isn't it?) then I can't link either gb.qt4.ext or gb.qt5.ext > Is there a way to do that? Salut. "If the GB_GUI environment variable is set, then gb.gui will load the component specified by its contents." You find a nice example on you computer... the IDE -- Amicalement Charlie From shordi at gmail.com Mon Jun 17 09:46:12 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Mon, 17 Jun 2019 09:46:12 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: Message-ID: Something like this, but based on S.O. Version (system.FullVersion returns the Gambas compiler version). In our company all computers work with Linux Mint. The problem is with Linux Mint 19 and superior versions, that are based on qt5 and doesn't show menu's icons if the project is linked to qt4. With Linux Mint 18.X or 17.X it works fine with qt4 and doesn't even work with qt5. All this issue oblies me to generate packets for qt4 and qt5 and a third program who decides what of both to launch (Like you propose) and upload all of them to our repository. Being both projects exactly the same I feel like I'm wasting time a lot. I like to know how to do a "meta package" in the repository who decides what (qt4 or qt5) install on clients computers but I have no clue about it. Best regards El dom., 16 jun. 2019 a las 19:49, Gianluigi () escribi?: > You mean something like this? > '---------------------------- > Public Sub Main() > > Dim s As String > > s = System.FullVersion > If Scan(s, "*.*.*")[0] = "3" Then > If Len(Scan(s, "*.*.*")[1]) = 1 Then > s = Scan(s, "*.*.*")[0] & ".0" & Scan(s, "*.*.*")[1] & "." & Scan(s, > "*.*.*")[2] > Endif > Else > Print "#Unable to proceed" > Quit > Endif > If s > "3.08.0" Then > 'Component.Load... > Shell "./ProgA.gambas" > Else > 'Component.Load... > Shell "./ProgB.gambas" > Endif > > End > '----------------------------- > it seems to me a good solution. > > But maybe others have better solutions ... > > Regards > Gianluigi > > Il giorno dom 16 giu 2019 alle ore 19:11 Jorge Carri?n > ha scritto: > >> It doesn't work, Gianluigi. I can't create the installation packages >> without link with qt4 or qt5 first, and I can't change the qt version to >> work at run time. >> I think that the only one solution is create both packages qt4 or qt5 and >> a shellscript that launches one or another depending of S.O. version. >> Its a little trickie, but can't imagine other solution... (well... maybe >> a little proyect that *install *one or other depending of S.O. version). >> I'll think about this a little more, I guess. >> >> Thanks for you interest. >> >> El s?b., 15 jun. 2019 a las 17:46, Jorge Carri?n () >> escribi?: >> >>> Oh! I didn't knew I can load components at run time! >>> I'll try that. >>> Thanks a lot Gianluigi. >>> >>> >>> El s?b., 15 jun. 2019 13:23, Gianluigi escribi?: >>> >>>> ... or >>>> >>>> Public Sub Main() >>>> >>>> If System.FullVersion > ... Then >>>> Component.Load... >>>> Esle >>>> ... >>>> Endif >>>> >>>> End >>>> >>>> Regards >>>> Gianluigi >>>> >>>> Il giorno sab 15 giu 2019 alle ore 13:02 Gianluigi >>>> ha scritto: >>>> >>>>> Hi Jorge, >>>>> I probably didn't understand, but shouldn't you use gb.form.editor >>>>> (with gb.gui.qt)? >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> Il giorno sab 15 giu 2019 alle ore 11:00 Jorge Carri?n < >>>>> shordi at gmail.com> ha scritto: >>>>> >>>>>> Hi everybody, >>>>>> >>>>>> I have a project that uses the textedit component from gb.qtX.ext >>>>>> Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It works >>>>>> fine but with older versions not. I can use the gb.qt4.ext component but >>>>>> it generates some problems with latest versions (menu's icons not visible). >>>>>> If I try to use the gb.gui.qt component (That should be the answer, >>>>>> isn't it?) then I can't link either gb.qt4.ext or gb.qt5.ext >>>>>> Is there a way to do that? >>>>>> >>>>>> Best regards >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shordi at gmail.com Mon Jun 17 10:25:55 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Mon, 17 Jun 2019 10:25:55 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: <1560712485.8708.1.camel@Scenic.local> References: <1560712485.8708.1.camel@Scenic.local> Message-ID: The IDE, AFAIK, is a qt4 project, and only (I guess, i've never done it) if you compile it from sources can change it to qt5 (please Benoit, clarify this). I can't create our project with gb.gui, it is not compatible with gb.qt.ext, I'm afraid. Best Regards El dom., 16 jun. 2019 a las 21:29, Karl Reinl () escribi?: > Am Samstag, den 15.06.2019, 10:59 +0200 schrieb Jorge Carri?n: > > Hi everybody, > > > > > > I have a project that uses the textedit component from gb.qtX.ext > > Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It > > works fine but with older versions not. I can use the gb.qt4.ext > > component but it generates some problems with latest versions (menu's > > icons not visible). > > If I try to use the gb.gui.qt component (That should be the answer, > > isn't it?) then I can't link either gb.qt4.ext or gb.qt5.ext > > Is there a way to do that? > > Salut. > > "If the GB_GUI environment variable is set, then gb.gui will load the > component specified by its contents." > > You find a nice example on you computer... the IDE > > > -- > Amicalement > Charlie > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Jun 17 10:40:19 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 17 Jun 2019 10:40:19 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: Message-ID: not better but : Dim s As String Dim ars as string[] s = System.FullVersion ars=scan(s,"*.*.*") If ars[0] = "3" Then If Len(ars[1]) = 1 Then s = ars[0] & ".0" & ars[1] & "." & ars[2] Endif Else Print "#Unable to proceed" Quit Endif If s > "3.08.0" Then 'Component.Load... Shell "./ProgA.gambas" Else 'Component.Load... Shell "./ProgB.gambas" Endif Le dim. 16 juin 2019 ? 19:49, Gianluigi a ?crit : > You mean something like this? > '---------------------------- > Public Sub Main() > > Dim s As String > > s = System.FullVersion > If Scan(s, "*.*.*")[0] = "3" Then > If Len(Scan(s, "*.*.*")[1]) = 1 Then > s = Scan(s, "*.*.*")[0] & ".0" & Scan(s, "*.*.*")[1] & "." & Scan(s, > "*.*.*")[2] > Endif > Else > Print "#Unable to proceed" > Quit > Endif > If s > "3.08.0" Then > 'Component.Load... > Shell "./ProgA.gambas" > Else > 'Component.Load... > Shell "./ProgB.gambas" > Endif > > End > '----------------------------- > it seems to me a good solution. > > But maybe others have better solutions ... > > Regards > Gianluigi > > Il giorno dom 16 giu 2019 alle ore 19:11 Jorge Carri?n > ha scritto: > >> It doesn't work, Gianluigi. I can't create the installation packages >> without link with qt4 or qt5 first, and I can't change the qt version to >> work at run time. >> I think that the only one solution is create both packages qt4 or qt5 and >> a shellscript that launches one or another depending of S.O. version. >> Its a little trickie, but can't imagine other solution... (well... maybe >> a little proyect that *install *one or other depending of S.O. version). >> I'll think about this a little more, I guess. >> >> Thanks for you interest. >> >> El s?b., 15 jun. 2019 a las 17:46, Jorge Carri?n () >> escribi?: >> >>> Oh! I didn't knew I can load components at run time! >>> I'll try that. >>> Thanks a lot Gianluigi. >>> >>> >>> El s?b., 15 jun. 2019 13:23, Gianluigi escribi?: >>> >>>> ... or >>>> >>>> Public Sub Main() >>>> >>>> If System.FullVersion > ... Then >>>> Component.Load... >>>> Esle >>>> ... >>>> Endif >>>> >>>> End >>>> >>>> Regards >>>> Gianluigi >>>> >>>> Il giorno sab 15 giu 2019 alle ore 13:02 Gianluigi >>>> ha scritto: >>>> >>>>> Hi Jorge, >>>>> I probably didn't understand, but shouldn't you use gb.form.editor >>>>> (with gb.gui.qt)? >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> Il giorno sab 15 giu 2019 alle ore 11:00 Jorge Carri?n < >>>>> shordi at gmail.com> ha scritto: >>>>> >>>>>> Hi everybody, >>>>>> >>>>>> I have a project that uses the textedit component from gb.qtX.ext >>>>>> Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It works >>>>>> fine but with older versions not. I can use the gb.qt4.ext component but >>>>>> it generates some problems with latest versions (menu's icons not visible). >>>>>> If I try to use the gb.gui.qt component (That should be the answer, >>>>>> isn't it?) then I can't link either gb.qt4.ext or gb.qt5.ext >>>>>> Is there a way to do that? >>>>>> >>>>>> Best regards >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Jun 17 11:16:31 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 17 Jun 2019 11:16:31 +0200 Subject: [Gambas-user] Strange CGI error with gb.db.postgresql Message-ID: Hi, I use a Gambas program via CGI from an Apache2 server which works pretty well. If it starts, it opens a connection to a Postgresql server and does a sql query, which also works whithout any problemy, except that this is logged in /var/log/apache2/error.log when a connection is established: > AH01215: gb.db.postgresql: warning: cannot set encoding to ANSI_X3.4-1968: /home/doms/degapp/degapp.gambas I tried to set Postgresql client encoding to UTF8 via sql at start of the connection and also tried to set the encoding via environment variable in apaches config with "SetEnv PGCLIENTENCODING UTF8" Without success. Any idea? 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 bagonergi at gmail.com Mon Jun 17 12:20:04 2019 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 17 Jun 2019 12:20:04 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: Message-ID: Hi Fabien, with profiling enabled, they seem equivalent here. '--------------------------------------------------- Public Sub Main() Fabien 'Gianluigi End Private Sub Fabien() Dim s As String = "3.13.90" Dim ars As String[] 's = System.FullVersion ars = Scan(s, "*.*.*") If ars[0] = "3" Then If Len(ars[1]) = 1 Then s = ars[0] & ".0" & ars[1] & "." & ars[2] Endif Else Print "#Unable to proceed" Quit Endif If s > "3.08.0" Then Print "Project A" Else Print "Project B" Endif End Private Sub Gianluigi() Dim s As String = "3.13.90" 's = System.FullVersion If Scan(s, "*.*.*")[0] = "3" Then If Len(Scan(s, "*.*.*")[1]) = 1 Then s = Scan(s, "*.*.*")[0] & ".0" & Scan(s, "*.*.*")[1] & "." & Scan(s, "*.*.*")[2] Endif Else Print "#Unable to proceed" Quit Endif If s > "3.08.0" Then Print "Project A" Else Print "Project B" Endif End '---------------------------------------------- Regards Gianluigi Il giorno lun 17 giu 2019 alle ore 10:41 Fabien Bodard ha scritto: > not better but : > > Dim s As String > Dim ars as string[] > s = System.FullVersion > ars=scan(s,"*.*.*") > If ars[0] = "3" Then > If Len(ars[1]) = 1 Then > s = ars[0] & ".0" & ars[1] & "." & ars[2] > Endif > Else > Print "#Unable to proceed" > Quit > Endif > If s > "3.08.0" Then > 'Component.Load... > Shell "./ProgA.gambas" > Else > 'Component.Load... > Shell "./ProgB.gambas" > Endif > > Le dim. 16 juin 2019 ? 19:49, Gianluigi a ?crit : > >> You mean something like this? >> '---------------------------- >> Public Sub Main() >> >> Dim s As String >> >> s = System.FullVersion >> If Scan(s, "*.*.*")[0] = "3" Then >> If Len(Scan(s, "*.*.*")[1]) = 1 Then >> s = Scan(s, "*.*.*")[0] & ".0" & Scan(s, "*.*.*")[1] & "." & >> Scan(s, "*.*.*")[2] >> Endif >> Else >> Print "#Unable to proceed" >> Quit >> Endif >> If s > "3.08.0" Then >> 'Component.Load... >> Shell "./ProgA.gambas" >> Else >> 'Component.Load... >> Shell "./ProgB.gambas" >> Endif >> >> End >> '----------------------------- >> it seems to me a good solution. >> >> But maybe others have better solutions ... >> >> Regards >> Gianluigi >> >> Il giorno dom 16 giu 2019 alle ore 19:11 Jorge Carri?n >> ha scritto: >> >>> It doesn't work, Gianluigi. I can't create the installation packages >>> without link with qt4 or qt5 first, and I can't change the qt version to >>> work at run time. >>> I think that the only one solution is create both packages qt4 or qt5 >>> and a shellscript that launches one or another depending of S.O. version. >>> Its a little trickie, but can't imagine other solution... (well... maybe >>> a little proyect that *install *one or other depending of S.O. >>> version). >>> I'll think about this a little more, I guess. >>> >>> Thanks for you interest. >>> >>> El s?b., 15 jun. 2019 a las 17:46, Jorge Carri?n () >>> escribi?: >>> >>>> Oh! I didn't knew I can load components at run time! >>>> I'll try that. >>>> Thanks a lot Gianluigi. >>>> >>>> >>>> El s?b., 15 jun. 2019 13:23, Gianluigi escribi?: >>>> >>>>> ... or >>>>> >>>>> Public Sub Main() >>>>> >>>>> If System.FullVersion > ... Then >>>>> Component.Load... >>>>> Esle >>>>> ... >>>>> Endif >>>>> >>>>> End >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> Il giorno sab 15 giu 2019 alle ore 13:02 Gianluigi < >>>>> bagonergi at gmail.com> ha scritto: >>>>> >>>>>> Hi Jorge, >>>>>> I probably didn't understand, but shouldn't you use gb.form.editor >>>>>> (with gb.gui.qt)? >>>>>> >>>>>> Regards >>>>>> Gianluigi >>>>>> >>>>>> Il giorno sab 15 giu 2019 alle ore 11:00 Jorge Carri?n < >>>>>> shordi at gmail.com> ha scritto: >>>>>> >>>>>>> Hi everybody, >>>>>>> >>>>>>> I have a project that uses the textedit component from gb.qtX.ext >>>>>>> Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It works >>>>>>> fine but with older versions not. I can use the gb.qt4.ext component but >>>>>>> it generates some problems with latest versions (menu's icons not visible). >>>>>>> If I try to use the gb.gui.qt component (That should be the answer, >>>>>>> isn't it?) then I can't link either gb.qt4.ext or gb.qt5.ext >>>>>>> Is there a way to do that? >>>>>>> >>>>>>> Best regards >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > -- > Fabien Bodard > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Jun 17 13:35:50 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 17 Jun 2019 13:35:50 +0200 Subject: [Gambas-user] Strange CGI error with gb.db.postgresql In-Reply-To: References: Message-ID: <72b769c6-71cd-f056-0863-91439d2ad41c@gmail.com> Le 17/06/2019 ? 11:16, Christof Thalhofer a ?crit?: > Hi, > > I use a Gambas program via CGI from an Apache2 server which works pretty > well. If it starts, it opens a connection to a Postgresql server and > does a sql query, which also works whithout any problemy, except that > this is logged in /var/log/apache2/error.log when a connection is > established: > >> AH01215: gb.db.postgresql: warning: cannot set encoding to ANSI_X3.4-1968: /home/doms/degapp/degapp.gambas > > I tried to set Postgresql client encoding to UTF8 via sql at start of > the connection and also tried to set the encoding via environment > variable in apaches config with > > "SetEnv PGCLIENTENCODING UTF8" > > Without success. > > Any idea? > > > Alles Gute > > Christof Thalhofer > I have some similar problems too. I think it comes from the language environment variables that are set by the web server, and that the CGI program get consequently. -- Beno?t Minisini From g4mba5 at gmail.com Mon Jun 17 13:40:23 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 17 Jun 2019 13:40:23 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: <1560712485.8708.1.camel@Scenic.local> Message-ID: <48c039b0-a67c-2c80-f5bc-a91f2f017902@gmail.com> Le 17/06/2019 ? 10:25, Jorge Carri?n a ?crit?: > The IDE, AFAIK, is a qt4 project, and only (I guess, i've never done it) > if you compile it from sources can change it to qt5 (please Benoit, > clarify this). I can't create our project with gb.gui, it is not > compatible with gb.qt.ext, I'm afraid. > > Best Regards > The IDE uses gb.gui.qt, so use gb.qt4.* or gb.qt5.* components indifferently. gb.qt*.ext component are not taken into account by gb.gui.qt (i.e. you don't have a gb.gui.qt.ext component). If you need a text editor, use gb.form.editor. If you need a rich text editor, you need gb.qt4.ext or gb.qt5.ext explicitely (hence gb.qt4 or gb.qt5 as well). Regards, -- Beno?t Minisini From cedron at exede.net Mon Jun 17 16:18:07 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 17 Jun 2019 10:18:07 -0400 (EDT) Subject: [Gambas-user] About qt, a little issue In-Reply-To: <48c039b0-a67c-2c80-f5bc-a91f2f017902@gmail.com> References: <1560712485.8708.1.camel@Scenic.local> <48c039b0-a67c-2c80-f5bc-a91f2f017902@gmail.com> Message-ID: <1542474733.71908975.1560781087131.JavaMail.zimbra@exede.net> I just upgraded from Mint 17 to 19, Mate, on a different box, and have encountered a slew of annoyances as well. * The slide switches in the projects settings don't show unless they are in the off positions. * Scroll Bar sliders are nearly invisible unless I set a garish background color * The IDE looks pale and awful * Non-Gambas, many applications don't adhere to the defined window borders It took me almost a whole day to reinstall what I tend to use and fix all the upgrade breaks (The Samba fix was hardest to find.) Nor do I think any of the styling changes are an improvement. Yep, I'm an old fuddy duddy trailing edge denizen. Unapologetically so. So, staying consumer level (i.e. use PPA to install, no compiling), is there anything I can do to resolve these peculiarities in the Gambas IDE/programs in Mint 19? Selecting Gtk for projects didn't help. Ced ----- Original Message ----- From: "Beno?t Minisini" The IDE uses gb.gui.qt, so use gb.qt4.* or gb.qt5.* components indifferently. gb.qt*.ext component are not taken into account by gb.gui.qt (i.e. you don't have a gb.gui.qt.ext component). If you need a text editor, use gb.form.editor. If you need a rich text editor, you need gb.qt4.ext or gb.qt5.ext explicitely (hence gb.qt4 or gb.qt5 as well). Regards, -- Beno?t Minisini From sharon at 455.co.il Mon Jun 17 17:25:44 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 17 Jun 2019 18:25:44 +0300 Subject: [Gambas-user] how change the color code in the webpage editor Message-ID: <20190617152544.M25502@455.co.il> hello When I put code in: <% ...%> I want to see <% ...%> in a different color This makes it possible to find a difference between GAMBAS code and HTML code From peter.wiehe2 at gmail.com Mon Jun 17 17:29:39 2019 From: peter.wiehe2 at gmail.com (Peter Wiehe) Date: Mon, 17 Jun 2019 17:29:39 +0200 Subject: [Gambas-user] how change the color code in the webpage editor In-Reply-To: <20190617152544.M25502@455.co.il> References: <20190617152544.M25502@455.co.il> Message-ID: Haven't you posted the very same message yesterday? Please don't do that. Kind regards Peter Wiehe Mayost Sharon schrieb am Mo., 17. Juni 2019 17:26: > hello > > When I put code in: > <% ...%> > > I want to see <% ...%> in a different color > This makes it possible to find a difference between GAMBAS code and HTML > code > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Mon Jun 17 17:38:14 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 17 Jun 2019 18:38:14 +0300 Subject: [Gambas-user] how change the color code in the webpage editor In-Reply-To: References: <20190617152544.M25502@455.co.il> Message-ID: <20190617153616.M82188@455.co.il> Sorry I realized there was a problem on my mailserver Now I see it's all right ---------- Original Message ----------- From: Peter Wiehe To: Gambas Mailing List Sent: Mon, 17 Jun 2019 17:29:39 +0200 Subject: Re: [Gambas-user] how change the color code in the webpage editor > Haven't you posted the very same message yesterday? Please don't do that. > > Kind regards > Peter Wiehe > > Mayost Sharon schrieb am Mo., 17. Juni 2019 17:26: > > > hello > > > > When I put code in: > > <% ...%> > > > > I want to see <% ...%> in a different color > > This makes it possible to find a difference between GAMBAS code and HTML > > code > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- From jussi.lahtinen at gmail.com Mon Jun 17 20:42:08 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 17 Jun 2019 21:42:08 +0300 Subject: [Gambas-user] About qt, a little issue In-Reply-To: <1542474733.71908975.1560781087131.JavaMail.zimbra@exede.net> References: <1560712485.8708.1.camel@Scenic.local> <48c039b0-a67c-2c80-f5bc-a91f2f017902@gmail.com> <1542474733.71908975.1560781087131.JavaMail.zimbra@exede.net> Message-ID: There are applications that help you to customize your desktop, like changing colors, scrollbar styles, etc separately. IE independently of used theme. But I don't know about Mate. I use Cinnamon and I'm pretty happy with the already existing themes. Gnome-color-chooser works with many desktops, I think GTK+ based only. Jussi On Mon, Jun 17, 2019 at 5:19 PM Cedron Dawg wrote: > I just upgraded from Mint 17 to 19, Mate, on a different box, and have > encountered a slew of annoyances as well. > > * The slide switches in the projects settings don't show unless they are > in the off positions. > > * Scroll Bar sliders are nearly invisible unless I set a garish background > color > > * The IDE looks pale and awful > > * Non-Gambas, many applications don't adhere to the defined window borders > > It took me almost a whole day to reinstall what I tend to use and fix all > the upgrade breaks (The Samba fix was hardest to find.) Nor do I think any > of the styling changes are an improvement. > > Yep, I'm an old fuddy duddy trailing edge denizen. Unapologetically so. > So, staying consumer level (i.e. use PPA to install, no compiling), is > there anything I can do to resolve these peculiarities in the Gambas > IDE/programs in Mint 19? Selecting Gtk for projects didn't help. > > Ced > > > ----- Original Message ----- > From: "Beno?t Minisini" > > The IDE uses gb.gui.qt, so use gb.qt4.* or gb.qt5.* components > indifferently. > > gb.qt*.ext component are not taken into account by gb.gui.qt (i.e. you > don't have a gb.gui.qt.ext component). If you need a text editor, use > gb.form.editor. If you need a rich text editor, you need gb.qt4.ext or > gb.qt5.ext explicitely (hence gb.qt4 or gb.qt5 as well). > > Regards, > > -- > Beno?t Minisini > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Mon Jun 17 22:47:00 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 17 Jun 2019 16:47:00 -0400 (EDT) Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: <1560712485.8708.1.camel@Scenic.local> <48c039b0-a67c-2c80-f5bc-a91f2f017902@gmail.com> <1542474733.71908975.1560781087131.JavaMail.zimbra@exede.net> Message-ID: <1133559277.72405928.1560804420541.JavaMail.zimbra@exede.net> Thanks Jussi, I'm going to give Manjaro a go and if that doesn't work out try to explore options like those. Can anybody tell me the Gambas version in the Arch repository? Am I going to have to compile my own to get 13.3? Ced ----- Original Message ----- From: "Jussi Lahtinen" To: "user" Sent: Monday, June 17, 2019 2:42:08 PM Subject: Re: [Gambas-user] About qt, a little issue There are applications that help you to customize your desktop, like changing colors, scrollbar styles, etc separately. IE independently of used theme. But I don't know about Mate. I use Cinnamon and I'm pretty happy with the already existing themes. Gnome-color-chooser works with many desktops, I think GTK+ based only. Jussi From taboege at gmail.com Mon Jun 17 22:51:33 2019 From: taboege at gmail.com (Tobias Boege) Date: Mon, 17 Jun 2019 22:51:33 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: <1133559277.72405928.1560804420541.JavaMail.zimbra@exede.net> References: <1560712485.8708.1.camel@Scenic.local> <48c039b0-a67c-2c80-f5bc-a91f2f017902@gmail.com> <1542474733.71908975.1560781087131.JavaMail.zimbra@exede.net> <1133559277.72405928.1560804420541.JavaMail.zimbra@exede.net> Message-ID: <20190617205133.GA5273@highrise.localdomain> On Mon, 17 Jun 2019, Cedron Dawg wrote: > Thanks Jussi, > > I'm going to give Manjaro a go and if that doesn't work out try to explore options like those. > > Can anybody tell me the Gambas version in the Arch repository? Am I going to have to compile my own to get 13.3? > No, Arch is very quick with software updates. https://www.archlinux.org/packages/community/x86_64/gambas3/ -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Mon Jun 17 23:05:11 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 18 Jun 2019 00:05:11 +0300 Subject: [Gambas-user] About qt, a little issue In-Reply-To: <1133559277.72405928.1560804420541.JavaMail.zimbra@exede.net> References: <1560712485.8708.1.camel@Scenic.local> <48c039b0-a67c-2c80-f5bc-a91f2f017902@gmail.com> <1542474733.71908975.1560781087131.JavaMail.zimbra@exede.net> <1133559277.72405928.1560804420541.JavaMail.zimbra@exede.net> Message-ID: Gambas is very easy to compile. I wouldn't worry about that. The dependencies are listed in the website and compiling itself can be done with ready made scripts. First remove Gambas, then install the dependencies. Here is example for Ubuntu flavour distros: http://gambaswiki.org/wiki/install/ubuntu#t7 All that need to be done only once. Copy the attached scripts to some folder and run them like this: ./Update_Gambas3_sources.sh && ./Compile_Gambas3.sh That way Gambas is compiled only if there is something changed in the sources. But the scripts can be run separately as well. Jussi On Mon, Jun 17, 2019 at 11:48 PM Cedron Dawg wrote: > Thanks Jussi, > > I'm going to give Manjaro a go and if that doesn't work out try to explore > options like those. > > Can anybody tell me the Gambas version in the Arch repository? Am I going > to have to compile my own to get 13.3? > > Ced > > > ----- Original Message ----- > From: "Jussi Lahtinen" > To: "user" > Sent: Monday, June 17, 2019 2:42:08 PM > Subject: Re: [Gambas-user] About qt, a little issue > > There are applications that help you to customize your desktop, like > changing colors, scrollbar styles, etc separately. IE independently of used > theme. But I don't know about Mate. I use Cinnamon and I'm pretty happy > with the already existing themes. > Gnome-color-chooser works with many desktops, I think GTK+ based only. > > > Jussi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Update_Gambas3_sources.sh Type: application/x-shellscript Size: 665 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Compile_Gambas3.sh Type: application/x-shellscript Size: 883 bytes Desc: not available URL: From chrisml at deganius.de Tue Jun 18 06:06:08 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 18 Jun 2019 06:06:08 +0200 Subject: [Gambas-user] Strange CGI error with gb.db.postgresql In-Reply-To: <72b769c6-71cd-f056-0863-91439d2ad41c@gmail.com> References: <72b769c6-71cd-f056-0863-91439d2ad41c@gmail.com> Message-ID: <39cd2ebf-1d20-91f3-8874-b0bd35803a28@deganius.de> Am 17.06.19 um 13:35 schrieb Beno?t Minisini: > I have some similar problems too. I think it comes from the language > environment variables that are set by the web server, and that the CGI > program get consequently. Cool, you pointed me in the right direction: I had to write "SetEnv LANG de_DE.UTF-8" in the VirtualHost definition of the server. This is strange because on this system the same is defined in /etc/profile ... Now the logs are clean. Thank you! :-) 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 shordi at gmail.com Tue Jun 18 09:54:18 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 18 Jun 2019 09:54:18 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: <1542474733.71908975.1560781087131.JavaMail.zimbra@exede.net> References: <1560712485.8708.1.camel@Scenic.local> <48c039b0-a67c-2c80-f5bc-a91f2f017902@gmail.com> <1542474733.71908975.1560781087131.JavaMail.zimbra@exede.net> Message-ID: You have some options: First of all, change the theme of the desktop, the theme Mint-Y family are the most incompatible with gambas or, at least, the ugliest for me. The Mint-X themes are much more "classic" and I prefer them. Then you can play with the QT5 Settings and also install the Qt4 Settings program (qt4-qtconfig in repositories) and play with it. I don't remember exactly what you can change with each one, but is funny investigate on them... Best regards El lun., 17 jun. 2019 a las 16:19, Cedron Dawg () escribi?: > I just upgraded from Mint 17 to 19, Mate, on a different box, and have > encountered a slew of annoyances as well. > > * The slide switches in the projects settings don't show unless they are > in the off positions. > > * Scroll Bar sliders are nearly invisible unless I set a garish background > color > > * The IDE looks pale and awful > > * Non-Gambas, many applications don't adhere to the defined window borders > > It took me almost a whole day to reinstall what I tend to use and fix all > the upgrade breaks (The Samba fix was hardest to find.) Nor do I think any > of the styling changes are an improvement. > > Yep, I'm an old fuddy duddy trailing edge denizen. Unapologetically so. > So, staying consumer level (i.e. use PPA to install, no compiling), is > there anything I can do to resolve these peculiarities in the Gambas > IDE/programs in Mint 19? Selecting Gtk for projects didn't help. > > Ced > > > ----- Original Message ----- > From: "Beno?t Minisini" > > The IDE uses gb.gui.qt, so use gb.qt4.* or gb.qt5.* components > indifferently. > > gb.qt*.ext component are not taken into account by gb.gui.qt (i.e. you > don't have a gb.gui.qt.ext component). If you need a text editor, use > gb.form.editor. If you need a rich text editor, you need gb.qt4.ext or > gb.qt5.ext explicitely (hence gb.qt4 or gb.qt5 as well). > > Regards, > > -- > Beno?t Minisini > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Jun 18 09:56:05 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 18 Jun 2019 09:56:05 +0200 Subject: [Gambas-user] JIT Bug In-Reply-To: References: <84a940e4-ffb5-9e44-3c61-a417896236bd@gmail.com> <129be7ac-fefa-fdc0-ebcc-33c876f88d5b@gmail.com> Message-ID: Le 13/06/2019 ? 00:13, Jussi Lahtinen a ?crit?: > This seems to introduce another problem. Please see the attachment. > > > Jussi > No, it's completely unrelated. It's fixed in commit https://gitlab.com/gambas/gambas/commit/cfb4a9d2a87d20355fd3a7e255fe1384abbbfaa9. Regards, -- Beno?t Minisini From bagonergi at gmail.com Tue Jun 18 10:34:07 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 18 Jun 2019 10:34:07 +0200 Subject: [Gambas-user] About qt, a little issue In-Reply-To: References: <1560712485.8708.1.camel@Scenic.local> <48c039b0-a67c-2c80-f5bc-a91f2f017902@gmail.com> <1542474733.71908975.1560781087131.JavaMail.zimbra@exede.net> Message-ID: Yeah, who knows why I wrote this [0] to him? ;-D Regards Gianluigi [0] https://lists.gambas-basic.org/pipermail/user/2019-June/067398.html Il giorno mar 18 giu 2019 alle ore 09:55 Jorge Carri?n ha scritto: > You have some options: > First of all, change the theme of the desktop, the theme Mint-Y family > are the most incompatible with gambas or, at least, the ugliest for me. The > Mint-X themes are much more "classic" and I prefer them. > Then you can play with the QT5 Settings and also install the Qt4 Settings > program (qt4-qtconfig in repositories) and play with it. I don't remember > exactly what you can change with each one, but is funny investigate on > them... > > Best regards > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Jun 18 12:04:21 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 18 Jun 2019 12:04:21 +0200 Subject: [Gambas-user] Gambas Weekly Trawler Message-ID: Hi Tobias, is the operation closed for holidays? :-P Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Tue Jun 18 12:30:38 2019 From: taboege at gmail.com (Tobias Boege) Date: Tue, 18 Jun 2019 12:30:38 +0200 Subject: [Gambas-user] Gambas Weekly Trawler In-Reply-To: References: Message-ID: <20190618103038.GB5273@highrise.localdomain> On Tue, 18 Jun 2019, Gianluigi wrote: > Hi Tobias, > is the operation closed for holidays? > :-P > Sort of. Summer is the business travel season here and one week I simply forgot doing it. At that time, we also had an enormous amount of new bugs filed. Since then I've been leaving the weeks piling up. I guess the idea of "I just write down what I read during the week" only works if I actually read everything during the week. Otherwise it's an annoyance. In addition, the desire to pick it up again is rather low on my end, because the trawlers so far, while containing relevant information in an accessible format, did not have any effect on the Gambas-Buch whatsoever, which was the main idea behind the operation. I think to get going again, I have to: - recommunicate its existence to Hans so that the Gambas-Buch picks up news from there, - push to host it on trawler.gambas-basic.org and open up the backing git repositories of articles and software, so that I'm not the only one responsible in the future, - revisit my plans for automating at least the crawling tasks, so that a flood of bug reports doesn't leave me petrified. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Tue Jun 18 13:16:45 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 18 Jun 2019 13:16:45 +0200 Subject: [Gambas-user] Gambas Weekly Trawler In-Reply-To: <20190618103038.GB5273@highrise.localdomain> References: <20190618103038.GB5273@highrise.localdomain> Message-ID: Il giorno mar 18 giu 2019 alle ore 12:31 Tobias Boege ha scritto: > On Tue, 18 Jun 2019, Gianluigi wrote: > > Hi Tobias, > > is the operation closed for holidays? > > :-P > > > > Sort of. Summer is the business travel season here and one week I simply > forgot doing it. At that time, we also had an enormous amount of new bugs > filed. Since then I've been leaving the weeks piling up. I guess the idea > of "I just write down what I read during the week" only works if I actually > read everything during the week. Otherwise it's an annoyance. > > In addition, the desire to pick it up again is rather low on my end, > because the trawlers so far, while containing relevant information > in an accessible format, did not have any effect on the Gambas-Buch > whatsoever, which was the main idea behind the operation. > > I think to get going again, I have to: > > - recommunicate its existence to Hans so that the Gambas-Buch > picks up news from there, > > - push to host it on trawler.gambas-basic.org and open up the > backing git repositories of articles and software, so that I'm > not the only one responsible in the future, > > - revisit my plans for automating at least the crawling tasks, > so that a flood of bug reports doesn't leave me petrified. We all need rest to recharge the batteries (except Benoit, it seems :-)). My was a joking question. Thank you for the detailed reply. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Tue Jun 18 15:50:15 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 18 Jun 2019 09:50:15 -0400 (EDT) Subject: [Gambas-user] My incomplete Manjaro Install - Need expert help Message-ID: <225740609.73329905.1560865815920.JavaMail.zimbra@exede.net> My Manjaro install went smoothly until it didn't. Took longer than expected too. First, perhaps a bad sign, the download server was down for maintenance, so I waited a bit. (After midnight I can download without data metering.) It came back, so I downloaded the iso. Took a while, I'm on satellite internet. Copy iso to usb drive, then to locol server. My old trusty iso installer failed with the newer Manjaro. Found an alternative one, USB ready. Booted from USB. Worked fine, played around, went for install. Went smoothly. Reboot from install. Worked fine. Did some settings. Looked at some photos to set the background. Used the "Set as background" option on the image viewer, nothing. There's a glitch, another bad sign? So, I set the background with the settings and do a web search. Yep, that option doesn't work in Manjaro. Not a big deal. Install Gambas by going to command line and "sudo pacman -S gambas3" per the wiki: http://gambaswiki.org/wiki/install/archlinux A bunch of stuff scrolls by. I start Gambas, it works, I close it. I go to copy some files from my other partition to work with. Try to start Gambas, nothing. Try to unintall, reinstall, some other stuff, don't remember it was really late. Go to bed. This morning, lacking some sleep, I try again. Still doesn't work. Go to the command line: gambas3.gambas Get a message something like GLIBC29.0 is required by gbx .... Okay, research the issue. Pretty common, but none of the fixes work. Okay, fresh image, yet not up to date? Another bad sign? Fine, at this point I am ready to give up on Manjaro and try Mint Xcfe. This means another large download, so I'll have to wait till tonight. In the meanwhile, I do a fresh re-install of Manjaro. This time I try to install Gambas using the Add/Remove Packages option. I find it (Gambas3-IDE), mark for installation, and get a pop up that says this: Warning: dependency cycle detected: Warning: bashrc-manjaro will be installed before its bash dependency Warning: dependency cycle detected: Warning: harfbuzz will be installed before its freetype2 dependency Warning: dependency cycle detected: Warning: libglvnd will be installed before its mesa dependency Warning: dependency cycle detected: Warning: x264 will be installed before its ffmpeg dependency Warning: dependency cycle detected: Warning: usbmuxd will be installed before its libimobiledevice dependency Warning: dependency cycle detected: Warning: lib32-harfbuzz will be installed before its lib32-freetype2 dependency Warning: dependency cycle detected: Warning: lib32-keyutils will be installed before its lib32-krb5 dependency Warning: dependency cycle detected: Warning: lib32-libglvnd will be installed before its lib32-mesa dependency Okay, hit the [close], then press [Apply] anyway. It comes up with a list of packages to remove, and those to install, and the download will be 1.2G. That doesn't make sense. So, I cancel, and here I sit. Any ArchLinux/Manjaro users out there that can tell me what to do next? Yes, the Mint Xcfe option is still on the table. Ced From peter.wiehe2 at gmail.com Tue Jun 18 16:30:13 2019 From: peter.wiehe2 at gmail.com (Peter Wiehe) Date: Tue, 18 Jun 2019 16:30:13 +0200 Subject: [Gambas-user] My incomplete Manjaro Install - Need expert help In-Reply-To: <225740609.73329905.1560865815920.JavaMail.zimbra@exede.net> References: <225740609.73329905.1560865815920.JavaMail.zimbra@exede.net> Message-ID: Sorry, can't help much. Except this: Ask in the Manjaro forum, perhaps? Maybe there are experts for this Manjaro problem? (My Manjaro and Gambas works fine.) If that fails, Linux Mint is not bad, too. Kind regards Peter Wiehe Cedron Dawg schrieb am Di., 18. Juni 2019 15:51: > My Manjaro install went smoothly until it didn't. Took longer than > expected too. > > First, perhaps a bad sign, the download server was down for maintenance, > so I waited a bit. (After midnight I can download without data metering.) > It came back, so I downloaded the iso. Took a while, I'm on satellite > internet. Copy iso to usb drive, then to locol server. My old trusty iso > installer failed with the newer Manjaro. Found an alternative one, USB > ready. > > Booted from USB. Worked fine, played around, went for install. Went > smoothly. Reboot from install. Worked fine. Did some settings. Looked > at some photos to set the background. Used the "Set as background" option > on the image viewer, nothing. There's a glitch, another bad sign? > > So, I set the background with the settings and do a web search. Yep, that > option doesn't work in Manjaro. Not a big deal. > > Install Gambas by going to command line and "sudo pacman -S gambas3" per > the wiki: > > http://gambaswiki.org/wiki/install/archlinux > > A bunch of stuff scrolls by. I start Gambas, it works, I close it. I go > to copy some files from my other partition to work with. Try to start > Gambas, nothing. Try to unintall, reinstall, some other stuff, don't > remember it was really late. Go to bed. > > This morning, lacking some sleep, I try again. Still doesn't work. Go to > the command line: > > gambas3.gambas > > Get a message something like GLIBC29.0 is required by gbx .... > > Okay, research the issue. Pretty common, but none of the fixes work. > Okay, fresh image, yet not up to date? Another bad sign? > > Fine, at this point I am ready to give up on Manjaro and try Mint Xcfe. > This means another large download, so I'll have to wait till tonight. In > the meanwhile, I do a fresh re-install of Manjaro. > > This time I try to install Gambas using the Add/Remove Packages option. > > I find it (Gambas3-IDE), mark for installation, and get a pop up that says > this: > > Warning: dependency cycle detected: > Warning: bashrc-manjaro will be installed before its bash dependency > Warning: dependency cycle detected: > Warning: harfbuzz will be installed before its freetype2 dependency > Warning: dependency cycle detected: > Warning: libglvnd will be installed before its mesa dependency > Warning: dependency cycle detected: > Warning: x264 will be installed before its ffmpeg dependency > Warning: dependency cycle detected: > Warning: usbmuxd will be installed before its libimobiledevice dependency > Warning: dependency cycle detected: > Warning: lib32-harfbuzz will be installed before its lib32-freetype2 > dependency > Warning: dependency cycle detected: > Warning: lib32-keyutils will be installed before its lib32-krb5 dependency > Warning: dependency cycle detected: > Warning: lib32-libglvnd will be installed before its lib32-mesa dependency > > Okay, hit the [close], then press [Apply] anyway. It comes up with a list > of packages to remove, and those to install, and the download will be 1.2G. > > That doesn't make sense. So, I cancel, and here I sit. > > Any ArchLinux/Manjaro users out there that can tell me what to do next? > > Yes, the Mint Xcfe option is still on the table. > > Ced > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Tue Jun 18 16:51:03 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 18 Jun 2019 10:51:03 -0400 (EDT) Subject: [Gambas-user] My incomplete Manjaro Install - Need expert help In-Reply-To: References: <225740609.73329905.1560865815920.JavaMail.zimbra@exede.net> Message-ID: <793556638.73404530.1560869463924.JavaMail.zimbra@exede.net> Thanks for chiming in. Can you tell me when you installed? For me, fresh iso download last night. The Gambas package was done in April. I am getting the same kind of issue when I try to install DB Browser for SQLite. Again, the download 1.2G figure. Something isn't right. Well, I'm looking to GPart my drive so I can slide Mint 19 Xcfe in. It was a bit of delight to overwrite Mint 19 Mate though, after all the fuss it caused. ----- Original Message ----- From: "Peter Wiehe" To: "user" Sent: Tuesday, June 18, 2019 10:30:13 AM Subject: Re: [Gambas-user] My incomplete Manjaro Install - Need expert help Sorry, can't help much. Except this: Ask in the Manjaro forum, perhaps? Maybe there are experts for this Manjaro problem? (My Manjaro and Gambas works fine.) If that fails, Linux Mint is not bad, too. Kind regards Peter Wiehe From tmorehen at ajm-software.com Tue Jun 18 17:17:07 2019 From: tmorehen at ajm-software.com (Tony Morehen) Date: Tue, 18 Jun 2019 11:17:07 -0400 Subject: [Gambas-user] My incomplete Manjaro Install - Need expert help In-Reply-To: References: <225740609.73329905.1560865815920.JavaMail.zimbra@exede.net> Message-ID: There is no problem here.? When you asked pacman to install gambas, it found that your install needed to be updated and so started to do a full system update.? System updates occur about once a month and are generally ~300mb in download size.? However, a recent update exceeded 1gb, so I'm not surprised that your system needed a 1.2gb download.? BTW, there a often smaller updates between system updates, usually for individual packages like Firefox, Chromium, Thunderbird etc I'd recommend updating your system before installing Gambas. Step 1(optional):? Reset your mirrorlist so that the fastest download servers come first in the list. sudo pacman-mirrors This gives you a mirrorlist containing all manjaro mirrors, ordered by speed.? You can limit that list to specific countries or region. pacman-mirrors --country-list sudo pacman-mirrors --country Germany,France,Austria Step 2:? Run a system update. sudo pacman -Syyu If you skipped updating your mirrorlist, you can use: sudo pacman -Syu Step 3: Install Gambas sudo pacman -S gambas3 Hope this helps. On 2019-06-18 9:30 a.m., Peter Wiehe wrote: > Sorry, can't help much. Except this: Ask in the Manjaro forum, > perhaps? Maybe there are experts for this Manjaro problem? > (My Manjaro and Gambas works fine.) > If that fails, Linux Mint is not bad, too. > > Kind regards > Peter Wiehe > > Cedron Dawg > schrieb am > Di., 18. Juni 2019 15:51: > > My Manjaro install went smoothly until it didn't.? Took longer > than expected too. > > First, perhaps a bad sign, the download server was down for > maintenance, so I waited a bit.? (After midnight I can download > without data metering.)? It came back, so I downloaded the iso.? > Took a while, I'm on satellite internet. Copy iso to usb drive, > then to locol server.? My old trusty iso installer failed with the > newer Manjaro.? Found an alternative one, USB ready. > > Booted from USB.? Worked fine, played around, went for install.? > Went smoothly.? Reboot from install.? Worked fine. Did some > settings.? Looked at some photos to set the background.? Used the > "Set as background" option on the image viewer, nothing.? There's > a glitch, another bad sign? > > So, I set the background with the settings and do a web search.? > Yep, that option doesn't work in Manjaro.? Not a big deal. > > Install Gambas by going to command line and "sudo pacman -S > gambas3" per the wiki: > > http://gambaswiki.org/wiki/install/archlinux > > A bunch of stuff scrolls by.? I start Gambas, it works, I close > it.? I go to copy some files from my other partition to work > with.? Try to start Gambas, nothing.? Try to unintall, reinstall, > some other stuff, don't remember it was really late.? Go to bed. > > This morning, lacking some sleep, I try again.? Still doesn't > work.? Go to the command line: > > gambas3.gambas > > Get a message something like GLIBC29.0 is required by gbx .... > > Okay, research the issue.? Pretty common, but none of the fixes > work.? Okay, fresh image, yet not up to date?? Another bad sign? > > Fine, at this point I am ready to give up on Manjaro and try Mint > Xcfe.? This means another large download, so I'll have to wait > till tonight.? In the meanwhile, I do a fresh re-install of Manjaro. > > This time I try to install Gambas using the Add/Remove Packages > option. > > I find it (Gambas3-IDE), mark for installation, and get a pop up > that says this: > > Warning: dependency cycle detected: > Warning: bashrc-manjaro will be installed before its bash dependency > Warning: dependency cycle detected: > Warning: harfbuzz will be installed before its freetype2 dependency > Warning: dependency cycle detected: > Warning: libglvnd will be installed before its mesa dependency > Warning: dependency cycle detected: > Warning: x264 will be installed before its ffmpeg dependency > Warning: dependency cycle detected: > Warning: usbmuxd will be installed before its libimobiledevice > dependency > Warning: dependency cycle detected: > Warning: lib32-harfbuzz will be installed before its > lib32-freetype2 dependency > Warning: dependency cycle detected: > Warning: lib32-keyutils will be installed before its lib32-krb5 > dependency > Warning: dependency cycle detected: > Warning: lib32-libglvnd will be installed before its lib32-mesa > dependency > > Okay, hit the [close], then press [Apply] anyway.? It comes up > with a list of packages to remove, and those to install, and the > download will be 1.2G. > > That doesn't make sense.? So, I cancel, and here I sit. > > Any ArchLinux/Manjaro users out there that can tell me what to do > next? > > Yes, the Mint Xcfe option is still on the table. > > Ced > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Tue Jun 18 17:42:51 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 18 Jun 2019 11:42:51 -0400 (EDT) Subject: [Gambas-user] My incomplete Manjaro Install - Need expert help In-Reply-To: References: <225740609.73329905.1560865815920.JavaMail.zimbra@exede.net> Message-ID: <1272673521.73482720.1560872571604.JavaMail.zimbra@exede.net> That helps a lot, and I will give it a go after midnight. However, damn it, I just downloaded the latest image last night. This shouldn't be necessary. Looks bad on Manjaro. I can only hope that it also fixes the "Warning: dependency cycle detected: ", which on a fresh install, to me, is somewhat inexcusable. So, 1.2 Gig to refresh a 2.0 Gig download from the night before. Fishy. It would seem that I would be better off getting a new iso and starting from scratch. ----- Original Message ----- From: "tmorehen" To: "user" Sent: Tuesday, June 18, 2019 11:17:07 AM Subject: Re: [Gambas-user] My incomplete Manjaro Install - Need expert help There is no problem here. When you asked pacman to install gambas, it found that your install needed to be updated and so started to do a full system update. System updates occur about once a month and are generally ~300mb in download size. However, a recent update exceeded 1gb, so I'm not surprised that your system needed a 1.2gb download. BTW, there a often smaller updates between system updates, usually for individual packages like Firefox, Chromium, Thunderbird etc I'd recommend updating your system before installing Gambas. Step 1(optional): Reset your mirrorlist so that the fastest download servers come first in the list. sudo pacman-mirrors This gives you a mirrorlist containing all manjaro mirrors, ordered by speed. You can limit that list to specific countries or region. pacman-mirrors --country-list sudo pacman-mirrors --country Germany,France,Austria Step 2: Run a system update. sudo pacman -Syyu If you skipped updating your mirrorlist, you can use: sudo pacman -Syu Step 3: Install Gambas sudo pacman -S gambas3 Hope this helps. From cedron at exede.net Tue Jun 18 17:49:24 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 18 Jun 2019 11:49:24 -0400 (EDT) Subject: [Gambas-user] My incomplete Manjaro Install - Need expert help In-Reply-To: <1272673521.73482720.1560872571604.JavaMail.zimbra@exede.net> References: <225740609.73329905.1560865815920.JavaMail.zimbra@exede.net> <1272673521.73482720.1560872571604.JavaMail.zimbra@exede.net> Message-ID: <803498495.73487237.1560872964924.JavaMail.zimbra@exede.net> Last night I downloaded 18.0, today the available file is called 18.04. Somehow, either it just refreshed or I got an older version. I'm going to retry the whole cycle tonight. From tmorehen at ajm-software.com Tue Jun 18 18:07:05 2019 From: tmorehen at ajm-software.com (Tony Morehen) Date: Tue, 18 Jun 2019 12:07:05 -0400 Subject: [Gambas-user] My incomplete Manjaro Install - Need expert help In-Reply-To: References: <225740609.73329905.1560865815920.JavaMail.zimbra@exede.net> Message-ID: <48e16dde-c002-4950-30df-1d872a33e170@ajm-software.com> Cedron, those dependency warnings occur all the time, just ignore them.? They just mean that pacman is reordering its install list to take into account dependencies. Don't bother downloading 18.04, it likely will need updates anyway.? Just update your current install.? You'll wind up in the same place but the total download will be smaller. Manjaro is a rolling installation so its iso's are always out of date.? You should do an update after a fresh install On 2019-06-18 10:17 a.m., Tony Morehen wrote: > > There is no problem here.? When you asked pacman to install gambas, it > found that your install needed to be updated and so started to do a > full system update.? System updates occur about once a month and are > generally ~300mb in download size. However, a recent update exceeded > 1gb, so I'm not surprised that your system needed a 1.2gb download.? > BTW, there a often smaller updates between system updates, usually for > individual packages like Firefox, Chromium, Thunderbird etc > > I'd recommend updating your system before installing Gambas. > > Step 1(optional):? Reset your mirrorlist so that the fastest download > servers come first in the list. > > sudo pacman-mirrors > > This gives you a mirrorlist containing all manjaro mirrors, ordered by > speed.? You can limit that list to specific countries or region. > > pacman-mirrors --country-list > > sudo pacman-mirrors --country Germany,France,Austria > > Step 2:? Run a system update. > > sudo pacman -Syyu > > If you skipped updating your mirrorlist, you can use: > > sudo pacman -Syu > > Step 3: Install Gambas > > sudo pacman -S gambas3 > > Hope this helps. > > On 2019-06-18 9:30 a.m., Peter Wiehe wrote: >> Sorry, can't help much. Except this: Ask in the Manjaro forum, >> perhaps? Maybe there are experts for this Manjaro problem? >> (My Manjaro and Gambas works fine.) >> If that fails, Linux Mint is not bad, too. >> >> Kind regards >> Peter Wiehe >> >> Cedron Dawg > schrieb am >> Di., 18. Juni 2019 15:51: >> >> My Manjaro install went smoothly until it didn't.? Took longer >> than expected too. >> >> First, perhaps a bad sign, the download server was down for >> maintenance, so I waited a bit.? (After midnight I can download >> without data metering.)? It came back, so I downloaded the iso.? >> Took a while, I'm on satellite internet.? Copy iso to usb drive, >> then to locol server.? My old trusty iso installer failed with >> the newer Manjaro. Found an alternative one, USB ready. >> >> Booted from USB.? Worked fine, played around, went for install.? >> Went smoothly.? Reboot from install.? Worked fine.? Did some >> settings.? Looked at some photos to set the background.? Used the >> "Set as background" option on the image viewer, nothing.? There's >> a glitch, another bad sign? >> >> So, I set the background with the settings and do a web search.? >> Yep, that option doesn't work in Manjaro.? Not a big deal. >> >> Install Gambas by going to command line and "sudo pacman -S >> gambas3" per the wiki: >> >> http://gambaswiki.org/wiki/install/archlinux >> >> A bunch of stuff scrolls by.? I start Gambas, it works, I close >> it.? I go to copy some files from my other partition to work >> with.? Try to start Gambas, nothing.? Try to unintall, reinstall, >> some other stuff, don't remember it was really late.? Go to bed. >> >> This morning, lacking some sleep, I try again.? Still doesn't >> work.? Go to the command line: >> >> gambas3.gambas >> >> Get a message something like GLIBC29.0 is required by gbx .... >> >> Okay, research the issue.? Pretty common, but none of the fixes >> work.? Okay, fresh image, yet not up to date?? Another bad sign? >> >> Fine, at this point I am ready to give up on Manjaro and try Mint >> Xcfe.? This means another large download, so I'll have to wait >> till tonight.? In the meanwhile, I do a fresh re-install of Manjaro. >> >> This time I try to install Gambas using the Add/Remove Packages >> option. >> >> I find it (Gambas3-IDE), mark for installation, and get a pop up >> that says this: >> >> Warning: dependency cycle detected: >> Warning: bashrc-manjaro will be installed before its bash dependency >> Warning: dependency cycle detected: >> Warning: harfbuzz will be installed before its freetype2 dependency >> Warning: dependency cycle detected: >> Warning: libglvnd will be installed before its mesa dependency >> Warning: dependency cycle detected: >> Warning: x264 will be installed before its ffmpeg dependency >> Warning: dependency cycle detected: >> Warning: usbmuxd will be installed before its libimobiledevice >> dependency >> Warning: dependency cycle detected: >> Warning: lib32-harfbuzz will be installed before its >> lib32-freetype2 dependency >> Warning: dependency cycle detected: >> Warning: lib32-keyutils will be installed before its lib32-krb5 >> dependency >> Warning: dependency cycle detected: >> Warning: lib32-libglvnd will be installed before its lib32-mesa >> dependency >> >> Okay, hit the [close], then press [Apply] anyway.? It comes up >> with a list of packages to remove, and those to install, and the >> download will be 1.2G. >> >> That doesn't make sense.? So, I cancel, and here I sit. >> >> Any ArchLinux/Manjaro users out there that can tell me what to do >> next? >> >> Yes, the Mint Xcfe option is still on the table. >> >> Ced >> >> >> ----[ Gambas mailing-list is hosted by >> https://www.hostsharing.net ]---- >> >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Tue Jun 18 18:41:19 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 18 Jun 2019 12:41:19 -0400 (EDT) Subject: [Gambas-user] My incomplete Manjaro Install - Need expert help In-Reply-To: <48e16dde-c002-4950-30df-1d872a33e170@ajm-software.com> References: <225740609.73329905.1560865815920.JavaMail.zimbra@exede.net> <48e16dde-c002-4950-30df-1d872a33e170@ajm-software.com> Message-ID: <1510848823.73540954.1560876079884.JavaMail.zimbra@exede.net> Thanks again. There's always a learning curve, isn't there? At this point, I'll go as far as agreeing that doing the updates "ought" to get me to the same place so it is worth trying. I sure hope it works. I did find the mirror stuff while researching the GLIB29 problem this morning. Do you advise against using the Add/Remove Software GUI vs the command line approach? ----- Original Message ----- From: "tmorehen" To: "user" Sent: Tuesday, June 18, 2019 12:07:05 PM Subject: Re: [Gambas-user] My incomplete Manjaro Install - Need expert help Cedron, those dependency warnings occur all the time, just ignore them. They just mean that pacman is reordering its install list to take into account dependencies. Don't bother downloading 18.04, it likely will need updates anyway. Just update your current install. You'll wind up in the same place but the total download will be smaller. Manjaro is a rolling installation so its iso's are always out of date. You should do an update after a fresh install On 2019-06-18 10:17 a.m., Tony Morehen wrote: There is no problem here. When you asked pacman to install gambas, it found that your install needed to be updated and so started to do a full system update. System updates occur about once a month and are generally ~300mb in download size. However, a recent update exceeded 1gb, so I'm not surprised that your system needed a 1.2gb download. BTW, there a often smaller updates between system updates, usually for individual packages like Firefox, Chromium, Thunderbird etc I'd recommend updating your system before installing Gambas. Step 1(optional): Reset your mirrorlist so that the fastest download servers come first in the list. sudo pacman-mirrors This gives you a mirrorlist containing all manjaro mirrors, ordered by speed. You can limit that list to specific countries or region. pacman-mirrors --country-list sudo pacman-mirrors --country Germany,France,Austria Step 2: Run a system update. sudo pacman -Syyu If you skipped updating your mirrorlist, you can use: sudo pacman -Syu Step 3: Install Gambas sudo pacman -S gambas3 Hope this helps. From tmorehen at ajm-software.com Tue Jun 18 19:25:31 2019 From: tmorehen at ajm-software.com (Tony Morehen) Date: Tue, 18 Jun 2019 13:25:31 -0400 Subject: [Gambas-user] My incomplete Manjaro Install - Need expert help In-Reply-To: <1510848823.73540954.1560876079884.JavaMail.zimbra@exede.net> References: <225740609.73329905.1560865815920.JavaMail.zimbra@exede.net> <48e16dde-c002-4950-30df-1d872a33e170@ajm-software.com> <1510848823.73540954.1560876079884.JavaMail.zimbra@exede.net> Message-ID: <1f4e95d8-19ad-c19f-cc51-da36f4424333@ajm-software.com> I use Add/Remove most of the time.? pamac (the actual program name) has several advantages,? It can install and update packages from the AUR and has a system tray utility that notifies when updates are available. Sometimes, though, it misses the latest updates, ie it's background update of what's available on the mirrors has not run yet.? Then I run a pacman -Syyu to force an update. I've been running Manjaro for the past 3 years.? Before that I ran opensuse for more than a decade.? Yes, Manjaro has much more frequent updates but they rarely break anything unlike suse's. And Manjaro is much faster. On 2019-06-18 11:41 a.m., Cedron Dawg wrote: > Thanks again. There's always a learning curve, isn't there? > > At this point, I'll go as far as agreeing that doing the updates "ought" to get me to the same place so it is worth trying. I sure hope it works. > > I did find the mirror stuff while researching the GLIB29 problem this morning. > > Do you advise against using the Add/Remove Software GUI vs the command line approach? > > > > ----- Original Message ----- > From: "tmorehen" > To: "user" > Sent: Tuesday, June 18, 2019 12:07:05 PM > Subject: Re: [Gambas-user] My incomplete Manjaro Install - Need expert help > > > > Cedron, those dependency warnings occur all the time, just ignore them. They just mean that pacman is reordering its install list to take into account dependencies. > > > Don't bother downloading 18.04, it likely will need updates anyway. Just update your current install. You'll wind up in the same place but the total download will be smaller. > > Manjaro is a rolling installation so its iso's are always out of date. You should do an update after a fresh install > On 2019-06-18 10:17 a.m., Tony Morehen wrote: > > > > > There is no problem here. When you asked pacman to install gambas, it found that your install needed to be updated and so started to do a full system update. System updates occur about once a month and are generally ~300mb in download size. However, a recent update exceeded 1gb, so I'm not surprised that your system needed a 1.2gb download. BTW, there a often smaller updates between system updates, usually for individual packages like Firefox, Chromium, Thunderbird etc > > I'd recommend updating your system before installing Gambas. > > > Step 1(optional): Reset your mirrorlist so that the fastest download servers come first in the list. > > > sudo pacman-mirrors > > This gives you a mirrorlist containing all manjaro mirrors, ordered by speed. You can limit that list to specific countries or region. > > pacman-mirrors --country-list > > > sudo pacman-mirrors --country Germany,France,Austria > > Step 2: Run a system update. > > sudo pacman -Syyu > > If you skipped updating your mirrorlist, you can use: > > sudo pacman -Syu > > Step 3: Install Gambas > > sudo pacman -S gambas3 > > Hope this helps. From yrodas at upnfm.edu.hn Tue Jun 18 22:43:36 2019 From: yrodas at upnfm.edu.hn (Yeshua Rodas) Date: Tue, 18 Jun 2019 14:43:36 -0600 Subject: [Gambas-user] Class name collision? Message-ID: Hello coders. You'll see, I was very happy working on my Gambas project (a Query Builder), at the beginning I just wanted to face the String handling and construction. Now I have an experimental component y I tried to test in a more realistic scenario with the `gb.db` Component. BUT I realize now that one of my Classes (`Table`) has the same name of `Table` on the `gb.db` Component. So, is there some way to resolve those class name collision or I must change my class name? Regards. -- E. Yeshua Rodas DTI - UPNFM -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Tue Jun 18 23:00:45 2019 From: taboege at gmail.com (Tobias Boege) Date: Tue, 18 Jun 2019 23:00:45 +0200 Subject: [Gambas-user] Class name collision? In-Reply-To: References: Message-ID: <20190618210045.GC5273@highrise.localdomain> On Tue, 18 Jun 2019, Yeshua Rodas wrote: > Hello coders. > > You'll see, I was very happy working on my Gambas project (a Query > Builder), at the beginning I just wanted to face the String handling and > construction. Now I have an experimental component y I tried to test in a > more realistic scenario with the `gb.db` Component. > > BUT > > I realize now that one of my Classes (`Table`) has the same name of `Table` > on the `gb.db` Component. So, is there some way to resolve those class name > collision or I must change my class name? > Namespaces are a feature that has been requested occasionally, but they're not available yet, sorry. BTW, the runtime resolves such a naming conflict -- when you export a class Table while another of the same name already exists in the global symbol table (via gb.db) -- by merging both classes using the same mechanism that inheritance would use. This is a cool feature in general and in a particular case you might end up in a state where your program can run successfully, but you're really creating some freaky chimera class. I would suggest to rename your class instead, yes. If you use other components, watch out for other common names. Request from gb.web has bitten me before, for instance. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Wed Jun 19 01:24:31 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 19 Jun 2019 02:24:31 +0300 Subject: [Gambas-user] JIT Bug In-Reply-To: References: <84a940e4-ffb5-9e44-3c61-a417896236bd@gmail.com> <129be7ac-fefa-fdc0-ebcc-33c876f88d5b@gmail.com> Message-ID: I think this JIT bug is the last, at least so far. It's messy case, even messier than usually. Sorry about that. See attachment. Thanks for the fixes! Jussi On Tue, Jun 18, 2019 at 10:56 AM Beno?t Minisini wrote: > Le 13/06/2019 ? 00:13, Jussi Lahtinen a ?crit : > > This seems to introduce another problem. Please see the attachment. > > > > > > Jussi > > > > No, it's completely unrelated. > > It's fixed in commit > > https://gitlab.com/gambas/gambas/commit/cfb4a9d2a87d20355fd3a7e255fe1384abbbfaa9 > . > > Regards, > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.20.tar.gz Type: application/gzip Size: 28414 bytes Desc: not available URL: From shordi at gmail.com Wed Jun 19 09:28:11 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 19 Jun 2019 09:28:11 +0200 Subject: [Gambas-user] How to create packages so that they do not appear in the system menu? Message-ID: I have a project A that is launched from other project B and I don't want that A project appears on system menu. What kind of configuration must I set on packages creation? Best Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From ujlain at gmail.com Wed Jun 19 10:11:16 2019 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Wed, 19 Jun 2019 13:41:16 +0530 Subject: [Gambas-user] HTML form to Gambas Webform variable by get/post method ? Message-ID: <3dc6d206-0e46-31f4-977b-1d2333157ab1@gmail.com> Please find at attachment an elementary code wherein I m trying to send HTML form user input variables to Gambas Webform (by METHOD = GET or METHOD=POST) Please suggest how can I do this ? -- regards Vinode Singh Ujlain ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: html2GB.zip Type: application/zip Size: 15625 bytes Desc: not available URL: From ujlain at gmail.com Wed Jun 19 10:18:53 2019 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Wed, 19 Jun 2019 13:48:53 +0530 Subject: [Gambas-user] Sample code for Webuploader ? Message-ID: Anyone having sample code to demonstrate working of Webuploader ? In absence of adequate documentation , code snippets are the best learning method. Here I am tempted to draw parallel with Php. Php is perhaps so easy is primarily because of liberal code snippet availability and even the help files are sprinkled with tons of user contributed code snippets. Regards -Vinode Singh Ujlain ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jun 19 12:10:34 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 19 Jun 2019 12:10:34 +0200 Subject: [Gambas-user] HTML form to Gambas Webform variable by get/post method ? In-Reply-To: <3dc6d206-0e46-31f4-977b-1d2333157ab1@gmail.com> References: <3dc6d206-0e46-31f4-977b-1d2333157ab1@gmail.com> Message-ID: <07f37827-d87e-151c-e213-e8d6294f7e11@gmail.com> Le 19/06/2019 ? 10:11, Vinode Singh Ujlain a ?crit?: > Please find at attachment an elementary code wherein I m trying to send > HTML form user input variables to Gambas Webform (by METHOD = GET or > METHOD=POST) > Please suggest how can I do this ? > -- > regards > Vinode Singh Ujlain There is nothing in your WebForm1. You must put text controls inside, and then read their Text property into the WebForm1 code. Here is your project updated that does what you want. -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: html2GB-0.0.2.tar.gz Type: application/gzip Size: 11818 bytes Desc: not available URL: From kicking177 at gmail.com Wed Jun 19 20:11:51 2019 From: kicking177 at gmail.com (KKing) Date: Wed, 19 Jun 2019 19:11:51 +0100 Subject: [Gambas-user] Storing system date and time Message-ID: <5153c887-4bda-042d-21a3-e3b400cf2053@gmail.com> I want to trap the current date and time it then gets used as the transaction date time stamp which is used many times requiring a variety of formatting needed for display and some file exports. But if I do the following dteNow contains the current date but the time is 00:00:00. How can I hold the date and time? ??? Dim dteNow as Date ??? dteNow = Date K. From t.lee.davidson at gmail.com Wed Jun 19 20:33:37 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 19 Jun 2019 14:33:37 -0400 Subject: [Gambas-user] Storing system date and time In-Reply-To: <5153c887-4bda-042d-21a3-e3b400cf2053@gmail.com> References: <5153c887-4bda-042d-21a3-e3b400cf2053@gmail.com> Message-ID: Try: dteNow = Now ___ Lee On 6/19/19 2:11 PM, KKing wrote: > I want to trap the current date and time it then gets used as the transaction date time stamp which is used many times requiring > a variety of formatting needed for display and some file exports. > > But if I do the following dteNow contains the current date but the time is 00:00:00. How can I hold the date and time? > > ??? Dim dteNow as Date > ??? dteNow = Date > > K. > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From admin at gambas-es.org Thu Jun 20 13:17:53 2019 From: admin at gambas-es.org (Jesus Guardon) Date: Thu, 20 Jun 2019 13:17:53 +0200 Subject: [Gambas-user] How to create packages so that they do not appear in the system menu? In-Reply-To: References: Message-ID: <7e0fd403-e372-f0c7-9c4e-42a7e4915d62@gambas-es.org> El 19/6/19 a las 9:28, Jorge Carri?n escribi?: > I have a project A that is launched from other project B and I don't want > that A project appears on system menu. > What kind of configuration must I set on packages creation? > > Best Regards The only way that comes to my mind is by not creating an installer of project B, but only embedding its executable into project A. All the dependencies might be satisfied before hand. Hope this helps. Regards Jes?s From admin at gambas-es.org Thu Jun 20 13:31:18 2019 From: admin at gambas-es.org (Jesus Guardon) Date: Thu, 20 Jun 2019 13:31:18 +0200 Subject: [Gambas-user] How to create packages so that they do not appear in the system menu? In-Reply-To: <7e0fd403-e372-f0c7-9c4e-42a7e4915d62@gambas-es.org> References: <7e0fd403-e372-f0c7-9c4e-42a7e4915d62@gambas-es.org> Message-ID: El 20/6/19 a las 13:17, Jesus Guardon escribi?: > El 19/6/19 a las 9:28, Jorge Carri?n escribi?: >> I have a project A that is launched from other project B and I don't want >> that A project appears on system menu. >> What kind of configuration must I set on packages creation? >> >> Best Regards > > The only way that comes to my mind is by not creating an installer of > project B, but only embedding its executable into project A. All the > dependencies might be satisfied before hand. > > Hope this helps. > > Regards > > Jes?s > Sorry, I swapped A & B. I mean the other way around. Also you might copy the embedded executable into a proper location. You know what I mean, ;-) Regards, Jes?s From tmorehen at ajm-software.com Thu Jun 20 17:15:04 2019 From: tmorehen at ajm-software.com (Tony Morehen) Date: Thu, 20 Jun 2019 11:15:04 -0400 Subject: [Gambas-user] How to create packages so that they do not appear in the system menu? In-Reply-To: References: Message-ID: <5fa6700c-28cb-488f-c7e1-bbecc550f788@ajm-software.com> There are two approaches: 1) Single installation package.? This approach avoids the creation of a desktop file for A.? No desktop file, no entry in the system menu. Do not create an installation package for program A.? Make sure that package A's compile is up to date. Create an installation package for program B.? When you get to the page titled 8 Extra Files, add an entry for program A.? It's destination should be either somewhere on your path eg /usr/bin or /usr/local/bin or an explicit location known to program B.? Also add any files needed by A. 2) Two installation packages.? This approach creates a desktop file for A but adds a parameter to to the desktop file that hides it from the system menu. Create an installation package for program A.? When you get to the page titled 6 Desktop Configuration file, add the following to the bottom box: NoDisplay=true Create an installation package for program B.? When you get to the page titled 8 Extra Files, do not add an entry for program A. On 2019-06-19 2:28 a.m., Jorge Carri?n wrote: > I have a project A that is launched from other project B and I don't > want that A project appears on system menu. > What kind of configuration must I set on packages creation? > > Best Regards > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Thu Jun 20 18:42:53 2019 From: kicking177 at gmail.com (KKing) Date: Thu, 20 Jun 2019 17:42:53 +0100 Subject: [Gambas-user] Storing system date and time Message-ID: << Try: dteNow = Now >> thankyou From g4mba5 at gmail.com Fri Jun 21 01:07:39 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 21 Jun 2019 01:07:39 +0200 Subject: [Gambas-user] change the color code in the webpage editor In-Reply-To: <20190616145047.M80935@455.co.il> References: <20190616145047.M80935@455.co.il> Message-ID: Le 16/06/2019 ? 17:00, Mayost Sharon a ?crit?: > hello > > When I put code in: > <% ...%> > > I want to see <% ...%> in a different color > This makes it possible to find a difference between GAMBAS code and HTML code > Hi, Everything between <% and %> has a gray background. Isn't it enough? -- Beno?t Minisini From shordi at gmail.com Fri Jun 21 12:54:59 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 21 Jun 2019 12:54:59 +0200 Subject: [Gambas-user] How to create packages so that they do not appear in the system menu? In-Reply-To: <5fa6700c-28cb-488f-c7e1-bbecc550f788@ajm-software.com> References: <5fa6700c-28cb-488f-c7e1-bbecc550f788@ajm-software.com> Message-ID: Thank you very much Tony. I think that the second option is the correct one since it allows the update in repository of A or B indistinctly. Best Regards El jue., 20 jun. 2019 a las 17:16, Tony Morehen () escribi?: > There are two approaches: > > 1) Single installation package. This approach avoids the creation of a > desktop file for A. No desktop file, no entry in the system menu. > > Do not create an installation package for program A. Make sure that > package A's compile is up to date. > > Create an installation package for program B. When you get to the page > titled 8 Extra Files, add an entry for program A. It's destination should > be either somewhere on your path eg /usr/bin or /usr/local/bin or an > explicit location known to program B. Also add any files needed by A. > > 2) Two installation packages. This approach creates a desktop file for A > but adds a parameter to to the desktop file that hides it from the system > menu. > > Create an installation package for program A. When you get to the page > titled 6 Desktop Configuration file, add the following to the bottom box: > > NoDisplay=true > > Create an installation package for program B. When you get to the page > titled 8 Extra Files, do not add an entry for program A. > On 2019-06-19 2:28 a.m., Jorge Carri?n wrote: > > I have a project A that is launched from other project B and I don't want > that A project appears on system menu. > What kind of configuration must I set on packages creation? > > Best Regards > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Sat Jun 22 21:56:07 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Sat, 22 Jun 2019 22:56:07 +0300 Subject: [Gambas-user] change the color code in the webpage editor In-Reply-To: References: <20190616145047.M80935@455.co.il> Message-ID: <20190622195555.M45153@455.co.il> I did not notice it Now I see that there is a gray background Is there a way to change to another color according to my choice Through: tools-> preferences-> themes ---------- Original Message ----------- From: Beno?t Minisini To: Gambas Mailing List Sent: Fri, 21 Jun 2019 01:07:39 +0200 Subject: Re: [Gambas-user] change the color code in the webpage editor > Le 16/06/2019 ? 17:00, Mayost Sharon a ?crit?: > > hello > > > > When I put code in: > > <% ...%> > > > > I want to see <% ...%> in a different color > > This makes it possible to find a difference between GAMBAS code and HTML code > > > > Hi, > > Everything between <% and %> has a gray background. Isn't it enough? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- From cedron at exede.net Sun Jun 23 16:07:54 2019 From: cedron at exede.net (Cedron Dawg) Date: Sun, 23 Jun 2019 10:07:54 -0400 (EDT) Subject: [Gambas-user] Using a Webcam with MediaPlayer Message-ID: <2003500175.79673323.1561298874665.JavaMail.zimbra@exede.net> I recently posted some sample code on Gambas.One for capturing the images coming from a webcam. https://forum.gambas.one/viewtopic.php?f=4&t=723 Another poster brought up the gb.v4l control as an alternative. I replied that it is officially deprecated. Now, on the surface at least, the gb.v4l control is much more capable. Are there techniques (methods or maybe URL parameters) for adjusting webcam settings through the MediaPlayer control? Things like image size and frame rate. Is GStreamer the official replacement of gb.v4l or is there yet another approach? Thanks Ced From sharon at 455.co.il Sun Jun 23 18:44:36 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 23 Jun 2019 19:44:36 +0300 Subject: [Gambas-user] webpage editor Message-ID: <20190623164441.M94240@455.co.il> hello I try to explain the problem When I register <%%> everything is fine But if I delete the last percent sign and move up with the cursor up All HTML code gets a space and it destroys HTML I am attaching 2 photos -------------- next part -------------- A non-text attachment was scrubbed... Name: before.jpeg Type: image/jpeg Size: 74772 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: after.jpeg Type: image/jpeg Size: 74732 bytes Desc: not available URL: From vuott at tiscali.it Sun Jun 23 18:26:48 2019 From: vuott at tiscali.it (vuott at tiscali.it) Date: Sun, 23 Jun 2019 18:26:48 +0200 Subject: [Gambas-user] =?utf-8?q?Project_with_gb=2Emap=3A_how_I_verify_ne?= =?utf-8?q?w_version_=22https=3A//khms=7Bs=7D=2Egoogle=2Eit/kh/v=3D=7Bvers?= =?utf-8?b?aW9ufS4uLiIgbnVtYmVyID8=?= Message-ID: Hello, in my project I have this line: "https://khms{s}.google.it/kh/v={version}&src=app&x={x}&y={y}&z={z}&s=Galile", ["version": "702"]...etc... I want to verify new "version" number. How and where can I do ? Thanks vuott Con OpenStar hai Giga, SMS e i minuti che vuoi da 4,99? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 6 mesi di INFINTY! http://tisca.li/myopen -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Jun 23 19:11:41 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 23 Jun 2019 19:11:41 +0200 Subject: [Gambas-user] Project with gb.map: how I verify new version "https://khms{s}.google.it/kh/v={version}..." number ? In-Reply-To: References: Message-ID: This is alway the same big deal I can only find this number in old fashion googlemap. As now the applet use web caneva and modulated info for calling tiles. Le dim. 23 juin 2019 19:07, a ?crit : > Hello, > in my project I have this line: > "https://khms{s}. > google.it/kh/v={version}&src=app&x={x}&y={y}&z={z}&s=Galile > ", > ["version": "702"]...etc... > I want to verify new "version" number. > How and where can I do ? > Thanks > vuott > > > > Con OpenStar hai Giga, SMS e i minuti che vuoi da 4,99? al mese, per > sempre. Cambi gratis quando e come vuoi e in pi? hai 6 mesi di INFINTY! > http://tisca.li/myopen > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sun Jun 23 19:24:18 2019 From: kicking177 at gmail.com (KKing) Date: Sun, 23 Jun 2019 18:24:18 +0100 Subject: [Gambas-user] NCURSES ACS_STERLING revisited Message-ID: still wrestling with this, with LOCALE of en_GB.UTF-8 the UK currency symbol works in C not in Gambas when using NCURSES? in C << #include ncurses.h initscr() printw("Hello World?\n"); >> results in "Hello World" followed by the UK Currency symbol in Gambas do << $hText = New Window(False,0,0,80,25) as "Test" $hText.Print("Hello World?",2,2) >> results in "Hello World" followed by "M-BM-#" I'm using Gambas 3.13.0 compiled from source, is it a compile time setting (though the UK currency symbol works fine in normal Gambas GUI. I'm presuming the Euro symbol is similarly affected K. From vuott at tiscali.it Sun Jun 23 19:35:39 2019 From: vuott at tiscali.it (vuott at tiscali.it) Date: Sun, 23 Jun 2019 19:35:39 +0200 Subject: [Gambas-user] =?utf-8?q?Project_with_gb=2Emap=3A_how_I_verify_ne?= =?utf-8?q?w_version_=22https=3A//khms=7Bs=7D=2Egoogle=2Eit/kh/v=3D=7Bvers?= =?utf-8?b?aW9ufS4uLiIgbnVtYmVyID8=?= In-Reply-To: References: Message-ID: <111b090ea7f17ec3170d93275978f230@tiscali.it> Excuse me, I have an old version. So satellite googlemap no longer appears in my project. I did not understand how to solve it? Il 23.06.2019 19:11 Fabien Bodard ha scritto: > This is alway the same big deal > I can only find this number in old fashion googlemap. As now the applet use web caneva and modulated info for calling tiles. > > Le dim. 23 juin 2019 19:07, a ?crit : > >> Hello, >> in my project I have this line: >> "https://khms [1]{s}.google.it/kh/v={version}&src=app&x={x}&y={y}&z={z}&s=Galile [2]", ["version": "702"]...etc... >> I want to verify new "version" number. >> How and where can I do ? >> Thanks >> vuott >> >> Con OpenStar hai Giga, SMS e i minuti che vuoi da 4,99EUR al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 6 mesi di INFINTY! http://tisca.li/myopen [3] >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [4] ]---- Con OpenStar hai Giga, SMS e i minuti che vuoi da 4,99? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 6 mesi di INFINTY! http://tisca.li/myopen -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Jun 23 19:43:16 2019 From: taboege at gmail.com (Tobias Boege) Date: Sun, 23 Jun 2019 19:43:16 +0200 Subject: [Gambas-user] NCURSES ACS_STERLING revisited In-Reply-To: References: Message-ID: <20190623174316.GD5273@highrise.localdomain> On Sun, 23 Jun 2019, KKing wrote: > still wrestling with this, with LOCALE of en_GB.UTF-8 the UK currency symbol > works in C not in Gambas when using NCURSES? > > in C > << > #include ncurses.h > initscr() > printw("Hello World?\n"); > >> > > results in "Hello World" followed by the UK Currency symbol > > > in Gambas do > << > $hText = New Window(False,0,0,80,25) as "Test" > $hText.Print("Hello World?",2,2) > >> > > results in "Hello World" followed by "M-BM-#" > > I'm using Gambas 3.13.0 compiled from source, is it a compile time setting > (though the UK currency symbol works fine in normal Gambas GUI. I'm > presuming the Euro symbol is similarly affected > For me, it's exactly the opposite. The C program does not display the pound sign, no matter if I link it to ncurses or ncursesw, but the Gambas program with gb.ncurses and ncursesw does. I don't know what else to tell you. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Sun Jun 23 19:56:21 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 23 Jun 2019 19:56:21 +0200 Subject: [Gambas-user] Using a Webcam with MediaPlayer In-Reply-To: <2003500175.79673323.1561298874665.JavaMail.zimbra@exede.net> References: <2003500175.79673323.1561298874665.JavaMail.zimbra@exede.net> Message-ID: <90ffcded-d5b5-a820-19e9-fbf267f1dcf6@gmail.com> Le 23/06/2019 ? 16:07, Cedron Dawg a ?crit?: > I recently posted some sample code on Gambas.One for capturing the images coming from a webcam. > > https://forum.gambas.one/viewtopic.php?f=4&t=723 > > Another poster brought up the gb.v4l control as an alternative. I replied that it is officially deprecated. > > Now, on the surface at least, the gb.v4l control is much more capable. Are there techniques (methods or maybe URL parameters) for adjusting webcam settings through the MediaPlayer control? Things like image size and frame rate. > > Is GStreamer the official replacement of gb.v4l or is there yet another approach? > > Thanks > Ced > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > GStreamer is the replacement of gb.v4l (it will be soon be replaced by something else afaik), and should be capable of configuring the same things. -- Beno?t Minisini From gambas.fr at gmail.com Mon Jun 24 08:39:21 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 24 Jun 2019 08:39:21 +0200 Subject: [Gambas-user] NCURSES ACS_STERLING revisited In-Reply-To: <20190623174316.GD5273@highrise.localdomain> References: <20190623174316.GD5273@highrise.localdomain> Message-ID: It is a problem with the terminal I think Le dim. 23 juin 2019 19:44, Tobias Boege a ?crit : > On Sun, 23 Jun 2019, KKing wrote: > > still wrestling with this, with LOCALE of en_GB.UTF-8 the UK currency > symbol > > works in C not in Gambas when using NCURSES? > > > > in C > > << > > #include ncurses.h > > initscr() > > printw("Hello World?\n"); > > >> > > > > results in "Hello World" followed by the UK Currency symbol > > > > > > in Gambas do > > << > > $hText = New Window(False,0,0,80,25) as "Test" > > $hText.Print("Hello World?",2,2) > > >> > > > > results in "Hello World" followed by "M-BM-#" > > > > I'm using Gambas 3.13.0 compiled from source, is it a compile time > setting > > (though the UK currency symbol works fine in normal Gambas GUI. I'm > > presuming the Euro symbol is similarly affected > > > > For me, it's exactly the opposite. The C program does not display > the pound sign, no matter if I link it to ncurses or ncursesw, but > the Gambas program with gb.ncurses and ncursesw does. I don't know > what else to tell you. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at allunix.ru Mon Jun 24 15:13:22 2019 From: admin at allunix.ru (Admin) Date: Mon, 24 Jun 2019 20:13:22 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <6b93b2d8-c6cd-a46f-b636-b85b25cc7bdd@allunix.ru> <3b1e5bfb-ebea-a54d-ed6e-d88e0e59c25b@users.sourceforge.net> <2794c0c8-e794-31bc-aff7-08a34b62e93e@users.sourceforge.net> <20170615091914.GA576@aurora.localdomain> <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> Message-ID: <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> Greetings, people of Gambas! So, this thread is couple of years old now, and yet I want to thank everyone again, who helped me with that issue. Everything worked out just fine, I was able to create a working cash register software which lived through at least thirty versions, was cloned on github by a few people to create similar programs for their businesses, and the emails I got from them are very satisfying. It works, and many good people saved a lot of money dodging the bullet of mandatory Windows installations to support those devices that we use nationwide. So now there's another challenge. Recently linux driver for those devices was updated to a new major version, and it is basically a whole new .so library. In previous versions, as I've mentioned here, we needed to create an interface with the driver from our program using CreateFptrInterface function. This function returned a pointer to a driver, and thanks to you kind people I was able to understand that we needed such a structure in gambas to work with it: Extern CreateFptrInterface(ver as integer) as Pointer Public drv as Pointer Public Sub Form_Load() ??? drv = CreateFptrInterface(12) End sub and now we basically have drv as a pointer to a Driver, wich can then be passed to any library function, so, for example, Beep(drv) will make a device to create a sound (that is if we declare Extern Beep(p as pointer) ofcourse). That structure worked until new Driver was created very differently. The new .so library is also documented, but, as always, only for those who write their applications in C++, and now it says that we need to initialize the Driver like this: libfptr_handle fptr; libfptr_create (&fptr); Well, I tried to apply the same knowledge that I've gained with the previous version and it did not help. libfptr_handle does not seem to be a library function at all, yet it is described in a header file (which is also available here: http://gazizova.net/pub/install/_Devices/atol-30f/10.2.0/ios/fptr10.framework/Headers/libfptr10.h) libfptr_create IS a library function, but I could not figure out how to corretly call it. At first I thought that logic is the same: we call a function that creates an interface and it gives us back a pointer to a Driver, so in Gambas it should look something like: Extern libfptr_create() as Pointer Public drv as Pointer Public Sub Form_Load() ?? drv = libfptr_create() End sub but ofcourse that is kind of strange, because function libfptr_create as it seems to be still wants some argument. And it sure looks like this argument is the pointer. And yes, if I call a function like this, I get drv = 0. So, then, should I call this function like this: Public Sub Form_Load() ?? libfptr_create(drv) End sub putting (p as Pointer) in Extern description ofcourse. But no, that does not work either. In that case Gambas just segfaults, wich, as I now know, just indicates that parameters passed to an external function are of wrong type or just there should be more or less of them. Looking inside the log file of a Driver I can also see another interesting fact: If I, just out of curiosity, call a function libfptr_create and pass some random number to it declaring it as integer (just like it was in a previous version of a driver where it required to have a driver version as integer passed with CreateFptrInterface) - it definitly initializes to a, say, much further point then if I pass a pointer to it or nothing at all, and fptr becomes equal FFFFFFF. If I pass not an Integer, but a random string, the driver initializes to that same point, but ftpr stays equal 0. I mean a structure like fptr = libfptr_create(12345) or fptr = libfptr_create("test") I've tried a lot of different combos but still had not figured it out, how do I initialize in Gambas what initializes in C++ like this: libfptr_handle fptr; libfptr_create(&fptr); So, as always, any advice will be much appriciated! Best regards, Dmitry. 15.06.2017 19:13, ML ?????: > On 15/06/17 08:48, Admin wrote: >> 15.06.2017 17:54, Admin ?????: >>> 15.06.2017 16:19, Tobias Boege ?????: >>>>> All your help was very important for me, I now have completed my cash >>>>> register software to the point where it does everything my company >>>>> needs. I >>>>> must say Gambas is a great language, it's very easy to learn from >>>>> scratch, >>>>> I'm surprised how obvious everything is. But there is a lot of work >>>>> for me >>>>> left to do mostly in terms of managing wrong human actions. My >>>>> software >>>>> works good if the employee doesn't do any mistakes, but that's >>>>> unrealistic, >>>>> so there's a lot of things I want to control and check. And that's >>>>> where I'm >>>>> stuck. >>>>> This library (which still calls itself a driver) theoretically is >>>>> able to >>>>> return a lot of values that I need, but I can't understand basic >>>>> rules of >>>>> how do we take output from a C-lib in Gambas. >>>>> From http://gambaswiki.org/wiki/howto/extern I understood that I >>>>> need to >>>>> locate a space in memory and pass a pointer to a library so that it >>>>> can >>>>> write data into that place in ram, which I would then read and set >>>>> free. >>>>> So I have to declare a pointer, then Alloc(8) it, then pass it to >>>>> my library >>>>> and then read from it like it is a stream. Does this principle >>>>> still work in >>>>> current version of Gambas? >>>> If you do Alloc(8), then you get 8 bytes of memory. You most likely >>>> *don't* >>>> want to read that like a stream, but use Integer@() or similar >>>> functions. >>>>> What I don't understand is how I construct the code in my >>>>> particular case. >>>>> To make an interface to the library I declare external pointer like >>>>> this: >>>>> Extern CreateFptrInterface(ver As Integer) As Pointer >>>>> Then I declare some pointers that I'll use with help of the >>>>> interface I >>>>> created: >>>>> Extern put_DeviceEnable(p as Pointer, mode as Integer) >>>>> Extern GetStatus(p as Pointer, StatRequest as String) >>>>> Then I declare the pointer which will be that interface: >>>>> Public kkmDrv as Pointer >>>>> So then in sub I can do >>>>> kkmDrv = CreateFptrInterface(12) ' this establishes the interface >>>>> put_DeviceEnabled(kkmDrv, 1) ' this transfers the comand to the >>>>> library >>>>> through the interface. >>>>> And it works great. >>>>> But then If I want to get some data from the library, as I >>>>> understand, I >>>>> have to declare another pointer, allocate ram for it and pass my >>>>> request. >>>>> I don't understand how should I pass that pointer to GetStatus() >>>>> while also >>>>> passing my interface pointer to it, let alone reading data back. >>>>> Totally >>>>> confused. >>>>> >>>> This entirely depends on how the C functions in your library are >>>> declared. >>>> I don't know about your specific library but commonly the occurence >>>> of an >>>> error is indicated by an integer return code, e.g. this might be the >>>> signature of one of the functions in your library: >>>> int myfunction(void *interface, int argument) >>>> If the documentation says that the return value (int) of this function >>>> indicates an error, then you just need to get that return value back >>>> into >>>> your Gambas program, which you accomplish by declaring the function in >>>> Gambas as >>>> Extern myfunction(interface As Pointer, argument As Integer) As >>>> Integer >>>> (notice the trailing "As Integer"). Then you can use "myfunction" in >>>> your >>>> Gambas code like any other function and get and interpret its return >>>> value. >>>> So, if this convention for error reporting is used, it is much >>>> simpler to >>>> get information about errors, without using Alloc() and co. Your >>>> library >>>> may use a different convention which actually involves pointers, but >>>> I wouldn't know. >>>> Regards, >>>> Tobi >>>> >>> I should've said it in the beginning. Ofcourse any function returns >>> integer value of 0 as success or -1 as error, but that only indicates >>> that function was successfully executed or not. So GetStatus() will >>> always return 0 because it shurely ran, nothing can go wrong here. >>> But that's not the result I want. GetStatus() actually gives back a >>> string with the status I asked for. Not that I fully understand how >>> it does that. I already gave links to the libfptr.so library itself >>> (http://allunix.ru/back/atol.tar.gz) and it's header files >>> (http://allunix.ru/back/atol-header.tar.gz) so that it's clearer, >>> what I'm talking about, unfortunately I am absolute zero in C to >>> figure things out myself. >>> For example I can see that to get serial number of the device driven >>> by that library i can use a function described like this: >>> get_SerialNumber(void *ptr, wchar_t *bfr, int bfrSize); >>> As far as I can tell what it does is it gets data needed and puts it >>> into some buffer. The result of executing this function through >>> put_SerialNumber(kkmDrv) will always be returned to me as 0. >>> So to see what's in that buffer, I have to then invoke >>> GetStatus(kkmDrv) describe in .h file like GetStatus(void *ptr); and >>> the integer result of this operation will also always be 0, which >>> means that GetStatus itself ran successfully, but I don't care about >>> that, I want to see what it actually told me, not that if it told me >>> it successfully or not. So that's the main confusion. If all this is >>> too complicated and lamely explained then nevermind, I expect it to >>> be so and I'm sorry, that's the best I can do. I'm just really >>> confused that I recieve two answers, one boolean telling if function >>> successfully invoked and one string, carrying the actual data I want. >>> Best Regards, >>> Dmitry. >> UPD: you know, I can be fundamentally wrong about all this library's >> functionality. Maybe it does not give me any data afterall, I'm >> beginning to think that this integer (or rather boolean) value is all >> it gives me back, and the "real" data is just written into it's log >> file. Which is sufficient to me, so, I guess, nevermind. Sorry about >> wasting your time. >> Best regards, >> Dmitry. > Dmitry, > With a desription such as get_SerialNumber(void *ptr, wchar_t *bfr, int > bfrSize); and having reviewed your communications, I would guess that: > *ptr is a pointer to the interface (an input parameter), > *buf is a pointer to a -possibly predefined- buffer that the function > will fill with data (the serial number in this case, could call this an > output parameter), and > bfrSize can be sort of an input/output parameter. bfrSize can hold the > size in wchar_t units in input and the function may alter it to reflect > the actual string size returned in *buf. > All this is just guesswork of course, nothing solid; the actual proper > usage of the function should be not in the header files, but in the > documentation. > The way I would use this call is as follows: > 1- Get an interface pointer, let's call it ptrItf. You know how. > 2- Get an int or boolean for the function return value, let's call it > retVal. > 3- Get a Gambas string filled with CHR(0), and a pointer to its data > (make the string big enough so that a serial number would fit, even in > non-ANSI strings such as UTF-8, and add some slack just to be sure), > let's call that pointer ptrBuf. > 4- Get the lenght of the above buffer string, let's call that bufLen. > 5- Call the function: > retVal = get_SerialNumber(ptrItf, ptrBuf, bufLen - 1) > 6- If retVal <> 0, increment (double) the string size and retry from 3. > Not in a forever-loop, just once. > 7- If retVal = 0 then the serial number should somehow be in the string. > Maybe you have to convert between ANSI/UTF-8/etc., but it should be there. > Please note that the above is, again, guesswork. Not sure of anything. > HTH, > zxMarce. > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From cedron at exede.net Mon Jun 24 16:10:48 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 24 Jun 2019 10:10:48 -0400 (EDT) Subject: [Gambas-user] Working with .so library In-Reply-To: <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <20170615091914.GA576@aurora.localdomain> <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> Message-ID: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> What you need is a pointer to a pointer. libfptr_handle fptr; libfptr_create (&fptr); In C, the first line is a varibale declaration allocating space for a pointer called "fptr". The second line is the function call where you are passing the address of the pointer (a pointer to the pointer) so the routine can stuff the pointer with a value. So in Gambas, your call should be something like: dim a, b as pointer b = varptr(a) libfptr_create(b) Then "a" is the variable you can pass to the other routines. I haven't tried it, but it should work. On the other hand, I have found it cleaner when interfacing to external C libraries to write my own shared library as an inbetween. That way you can hide this kind of detail down in the C code. You can find an example here for the FFTW library: https://forum.gambas.one/viewtopic.php?f=4&t=689 Ced ----- Original Message ----- From: "Admin" To: "user" Sent: Monday, June 24, 2019 9:13:22 AM Subject: Re: [Gambas-user] Working with .so library Greetings, people of Gambas! So, this thread is couple of years old now, and yet I want to thank everyone again, who helped me with that issue. Everything worked out just fine, I was able to create a working cash register software which lived through at least thirty versions, was cloned on github by a few people to create similar programs for their businesses, and the emails I got from them are very satisfying. It works, and many good people saved a lot of money dodging the bullet of mandatory Windows installations to support those devices that we use nationwide. So now there's another challenge. Recently linux driver for those devices was updated to a new major version, and it is basically a whole new .so library. In previous versions, as I've mentioned here, we needed to create an interface with the driver from our program using CreateFptrInterface function. This function returned a pointer to a driver, and thanks to you kind people I was able to understand that we needed such a structure in gambas to work with it: Extern CreateFptrInterface(ver as integer) as Pointer Public drv as Pointer Public Sub Form_Load() ??? drv = CreateFptrInterface(12) End sub and now we basically have drv as a pointer to a Driver, wich can then be passed to any library function, so, for example, Beep(drv) will make a device to create a sound (that is if we declare Extern Beep(p as pointer) ofcourse). That structure worked until new Driver was created very differently. The new .so library is also documented, but, as always, only for those who write their applications in C++, and now it says that we need to initialize the Driver like this: libfptr_handle fptr; libfptr_create (&fptr); Well, I tried to apply the same knowledge that I've gained with the previous version and it did not help. libfptr_handle does not seem to be a library function at all, yet it is described in a header file (which is also available here: http://gazizova.net/pub/install/_Devices/atol-30f/10.2.0/ios/fptr10.framework/Headers/libfptr10.h) libfptr_create IS a library function, but I could not figure out how to corretly call it. At first I thought that logic is the same: we call a function that creates an interface and it gives us back a pointer to a Driver, so in Gambas it should look something like: Extern libfptr_create() as Pointer Public drv as Pointer Public Sub Form_Load() ?? drv = libfptr_create() End sub but ofcourse that is kind of strange, because function libfptr_create as it seems to be still wants some argument. And it sure looks like this argument is the pointer. And yes, if I call a function like this, I get drv = 0. So, then, should I call this function like this: Public Sub Form_Load() ?? libfptr_create(drv) End sub putting (p as Pointer) in Extern description ofcourse. But no, that does not work either. In that case Gambas just segfaults, wich, as I now know, just indicates that parameters passed to an external function are of wrong type or just there should be more or less of them. Looking inside the log file of a Driver I can also see another interesting fact: If I, just out of curiosity, call a function libfptr_create and pass some random number to it declaring it as integer (just like it was in a previous version of a driver where it required to have a driver version as integer passed with CreateFptrInterface) - it definitly initializes to a, say, much further point then if I pass a pointer to it or nothing at all, and fptr becomes equal FFFFFFF. If I pass not an Integer, but a random string, the driver initializes to that same point, but ftpr stays equal 0. I mean a structure like fptr = libfptr_create(12345) or fptr = libfptr_create("test") I've tried a lot of different combos but still had not figured it out, how do I initialize in Gambas what initializes in C++ like this: libfptr_handle fptr; libfptr_create(&fptr); So, as always, any advice will be much appriciated! Best regards, Dmitry. From cedron at exede.net Mon Jun 24 16:16:14 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 24 Jun 2019 10:16:14 -0400 (EDT) Subject: [Gambas-user] Working with .so library In-Reply-To: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <20170615091914.GA576@aurora.localdomain> <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> Message-ID: <825672944.80729371.1561385774282.JavaMail.zimbra@exede.net> Just thought of something. This is C's way of passing by reference. You might also try dim a as pointer libfptr_create(byref a) where the function has been declared byref; extern libfptr_create(byref a as pointer) Not sure it works for extern calls though, I've never tested it. From admin at allunix.ru Mon Jun 24 16:23:21 2019 From: admin at allunix.ru (Admin) Date: Mon, 24 Jun 2019 21:23:21 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <20170615091914.GA576@aurora.localdomain> <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> Message-ID: Wow. Thanks a lot! Yes, it works. I wouldn't figure this out by myself because it is out of limits of my logic. I even came close to something similar earlier today - an idea of trying to create another pointer and then create a pointer to it visited my head but I dismissed this idea as totally ridiculous without even trying it. I thought "why would any programming language require to create such a complex construction". Well... C would, I guess. Best regards Dmitry. 24.06.2019 21:10, Cedron Dawg ?????: > What you need is a pointer to a pointer. > > libfptr_handle fptr; > libfptr_create (&fptr); > > In C, the first line is a varibale declaration allocating space for a pointer called "fptr". The second line is the function call where you are passing the address of the pointer (a pointer to the pointer) so the routine can stuff the pointer with a value. So in Gambas, your call should be something like: > > dim a, b as pointer > > b = varptr(a) > > libfptr_create(b) > > Then "a" is the variable you can pass to the other routines. I haven't tried it, but it should work. > > On the other hand, I have found it cleaner when interfacing to external C libraries to write my own shared library as an inbetween. That way you can hide this kind of detail down in the C code. > > You can find an example here for the FFTW library: > > https://forum.gambas.one/viewtopic.php?f=4&t=689 > > Ced > > > ----- Original Message ----- > From: "Admin" > To: "user" > Sent: Monday, June 24, 2019 9:13:22 AM > Subject: Re: [Gambas-user] Working with .so library > > Greetings, people of Gambas! > > So, this thread is couple of years old now, and yet I want to thank > everyone again, who helped me with that issue. Everything worked out > just fine, I was able to create a working cash register software which > lived through at least thirty versions, was cloned on github by a few > people to create similar programs for their businesses, and the emails I > got from them are very satisfying. It works, and many good people saved > a lot of money dodging the bullet of mandatory Windows installations to > support those devices that we use nationwide. > > So now there's another challenge. Recently linux driver for those > devices was updated to a new major version, and it is basically a whole > new .so library. In previous versions, as I've mentioned here, we needed > to create an interface with the driver from our program using > CreateFptrInterface function. This function returned a pointer to a > driver, and thanks to you kind people I was able to understand that we > needed such a structure in gambas to work with it: > > Extern CreateFptrInterface(ver as integer) as Pointer > > Public drv as Pointer > > Public Sub Form_Load() > ??? drv = CreateFptrInterface(12) > End sub > > and now we basically have drv as a pointer to a Driver, wich can then be > passed to any library function, so, for example, Beep(drv) will make a > device to create a sound (that is if we declare Extern Beep(p as > pointer) ofcourse). > > That structure worked until new Driver was created very differently. The > new .so library is also documented, but, as always, only for those who > write their applications in C++, and now it says that we need to > initialize the Driver like this: > > libfptr_handle fptr; > libfptr_create (&fptr); > > Well, I tried to apply the same knowledge that I've gained with the > previous version and it did not help. > libfptr_handle does not seem to be a library function at all, yet it is > described in a header file (which is also available here: > http://gazizova.net/pub/install/_Devices/atol-30f/10.2.0/ios/fptr10.framework/Headers/libfptr10.h) > > libfptr_create IS a library function, but I could not figure out how to > corretly call it. > > At first I thought that logic is the same: we call a function that > creates an interface and it gives us back a pointer to a Driver, so in > Gambas it should look something like: > > Extern libfptr_create() as Pointer > > Public drv as Pointer > > Public Sub Form_Load() > ?? drv = libfptr_create() > End sub > > but ofcourse that is kind of strange, because function libfptr_create as > it seems to be still wants some argument. And it sure looks like this > argument is the pointer. And yes, if I call a function like this, I get > drv = 0. So, then, should I call this function like this: > > Public Sub Form_Load() > ?? libfptr_create(drv) > End sub > > putting (p as Pointer) in Extern description ofcourse. > > But no, that does not work either. In that case Gambas just segfaults, > wich, as I now know, just indicates that parameters passed to an > external function are of wrong type or just there should be more or less > of them. Looking inside the log file of a Driver I can also see another > interesting fact: If I, just out of curiosity, call a function > libfptr_create and pass some random number to it declaring it as integer > (just like it was in a previous version of a driver where it required to > have a driver version as integer passed with CreateFptrInterface) - it > definitly initializes to a, say, much further point then if I pass a > pointer to it or nothing at all, and fptr becomes equal FFFFFFF. If I > pass not an Integer, but a random string, the driver initializes to that > same point, but ftpr stays equal 0. I mean a structure like fptr = > libfptr_create(12345) or fptr = libfptr_create("test") > I've tried a lot of different combos but still had not figured it out, > how do I initialize in Gambas what initializes in C++ like this: > > libfptr_handle fptr; > libfptr_create(&fptr); > > So, as always, any advice will be much appriciated! > > Best regards, > Dmitry. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > From g4mba5 at gmail.com Mon Jun 24 16:28:53 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 24 Jun 2019 16:28:53 +0200 Subject: [Gambas-user] Working with .so library In-Reply-To: <825672944.80729371.1561385774282.JavaMail.zimbra@exede.net> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <20170615091914.GA576@aurora.localdomain> <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <825672944.80729371.1561385774282.JavaMail.zimbra@exede.net> Message-ID: <4419845e-0441-bafa-e0b4-636004a1fa47@gmail.com> Le 24/06/2019 ? 16:16, Cedron Dawg a ?crit?: > Just thought of something. This is C's way of passing by reference. You might also try > > dim a as pointer > > libfptr_create(byref a) > > where the function has been declared byref; > > extern libfptr_create(byref a as pointer) > > Not sure it works for extern calls though, I've never tested it. > It does not. But you don't need to store the address of a in another variable. You can just write: Dim A As Pointer libfptr_create(VarPtr(A)) Regards, -- Beno?t Minisini From kicking177 at gmail.com Mon Jun 24 16:31:03 2019 From: kicking177 at gmail.com (KKing) Date: Mon, 24 Jun 2019 15:31:03 +0100 Subject: [Gambas-user] NCURSES ACS_STERLING revisited Message-ID: <31a333b6-0e36-cb39-7b4f-37c20f2b4375@gmail.com> I found the following references, that may help? https://stackoverflow.com/questions/9922528/how-to-make-ncurses-display-utf-8-chars-correctly-in-c https://stackoverflow.com/questions/4703168/adding-unicode-utf8-chars-to-a-ncurses-display-in-c http://yjlv.blogspot.com/2015/10/displaying-unicode-with-ncurses-in-c.html#cfd5-linking now on my units (however they got into that state) I have/had libncurses5, libncurses5-dev, and libncursesw5 installed but not libncursesw5-dev As mentioned my pure C ncurses was working okay for UK currency symbol even with above and when I compiled I was only using -lncurses?? (not -lncursesw) incidentally I could not get the Euro symbol to work, so based on code in the third link I added libncursesw5-dev and compiled against it and Euro symbol is also fine in pure C ncurses now. next I found the initscr() in main.c (within gb.ncurses) so I added the #include and the setlocale(LC_ALL, "") before the initscr() I did a make clean and then a make of all of Gambas but no change in what I get. re the? -lncursesw I can see in the gambas build essential ncurses but no ncursesw, also I could not find any reference to -lncurses in gambas make, where I could change it to -lncursesw ? also is it possible to just rebuild the gb.ncurses component(s), rather than the whole gambas? K. From g4mba5 at gmail.com Mon Jun 24 16:31:12 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 24 Jun 2019 16:31:12 +0200 Subject: [Gambas-user] Working with .so library In-Reply-To: References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <20170615091914.GA576@aurora.localdomain> <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> Message-ID: <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> Le 24/06/2019 ? 16:23, Admin a ?crit?: > Wow. Thanks a lot! Yes, it works. I wouldn't figure this out by myself > because it is out of limits of my logic. I even came close to something > similar earlier today - an idea of trying to create another pointer and > then create a pointer to it visited my head but I dismissed this idea as > totally ridiculous without even trying it. I thought "why would any > programming language require to create such a complex construction". > Well... C would, I guess. > > Best regards > Dmitry. > "why would any programming language require to create such a complex construction". Because this is exactly how a CPU works (it manipulates memory using addresses), and the C language is intended to be very close the CPU. Even if it is less and less true because of the evolution of the x86 architecture in the last ten years. REgards, -- Beno?t Minisini From cedron at exede.net Mon Jun 24 16:46:17 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 24 Jun 2019 10:46:17 -0400 (EDT) Subject: [Gambas-user] Working with .so library In-Reply-To: <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> Message-ID: <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> I disagree with this. No question that C was designed to be the lowest possible level without being CPU specific, i.e. a universal assembly language, and thus reflects how the CPU really works closely, but this particular complexity arises from C's pass by value calling stack convention, rather than pass by reference. That was a design choice. ----- Original Message ----- From: "Beno?t Minisini" "why would any programming language require to create such a complex construction". Because this is exactly how a CPU works (it manipulates memory using addresses), and the C language is intended to be very close the CPU. Even if it is less and less true because of the evolution of the x86 architecture in the last ten years. REgards, -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From kicking177 at gmail.com Mon Jun 24 16:55:59 2019 From: kicking177 at gmail.com (KKing) Date: Mon, 24 Jun 2019 15:55:59 +0100 Subject: [Gambas-user] Where is Terminal invoked from in the gambas code? Message-ID: This is part of me wanting to invoke Terminal as part of an ncurses program with particular parameters. I (think I) found which terminal is invoked in the gambas3.config in the users .config subfolder for gambas3. And I can see the code for the FOption form and class to maintain it, but I haven't found where the Settings["/Terminal"] is used elsewhere to invoke the selected terminal. If I amend the terminal name to include a space and parameter stored in the config file it appears the parameter is ignored. Ideally I'd like to have a Terminal startup parameter string stored in gambas3.config and passed when the selected terminal is invoked. For time being I'd just like to hack the code to check starting it with some bespoke geometry settings works as expected. K. From g4mba5 at gmail.com Mon Jun 24 16:56:42 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 24 Jun 2019 16:56:42 +0200 Subject: [Gambas-user] Working with .so library In-Reply-To: <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> Message-ID: Le 24/06/2019 ? 16:46, Cedron Dawg a ?crit : > I disagree with this. > > No question that C was designed to be the lowest possible level > without being CPU specific, i.e. a universal assembly language, and > thus reflects how the CPU really works closely, but this particular > complexity arises from C's pass by value calling stack convention, > rather than pass by reference. That was a design choice. "Passing by reference" means nothing at the CPU level. You can only send a pointer that points at a memory address. Which C, as a low-level language, hopefully does not try to hide with syntactic sugar. -- Beno?t Minisini From cedron at exede.net Mon Jun 24 17:26:09 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 24 Jun 2019 11:26:09 -0400 (EDT) Subject: [Gambas-user] Working with .so library In-Reply-To: References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> Message-ID: <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> The question was why would a language require that kind of complexity. I don't think it all that complex once you understand it. However, the apparent complexity in this case is dealing with a pointer to a pointer. Well, had C been implemented with a pass by reference convention this complexity in this case wouldn't exist. Pass by reference means you ultimately are pushing the address of a variable on the stack before the call, and pass by value means you push the value. Since in assembly the pushes are explicit, there is no default convention. For higher level languages (even C) when the function call syntax is translated into machine code, the decision has to be made which method to use. The C designers chose pass by value as a default. In contrast, FORTRAN, COBOL, and the other prevailing languages at the time (including PASCAL which C is most modeled after) did pass by reference. I do agree that pass by value does more closely resemble what the CPU does. Especially when you consider that you are most often pushing register values which may or may not be an address. It is also possible to push the address of a memory location without first storing it in a register. C could have been written with a pass by reference convention and that would not have had any impact on how the CPU works, but because it is pass by value in order to implement pass by reference you literally have to pass the reference as a value, e.g. the & operator which returns the address. But you know all this, so I don't see what we are arguing about. All I am saying is this particular complexity is due to C's pass by value convention, and wouldn't exist if C were pass by reference. ----- Original Message ----- From: "Beno?t Minisini" "Passing by reference" means nothing at the CPU level. You can only send a pointer that points at a memory address. Which C, as a low-level language, hopefully does not try to hide with syntactic sugar. -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From taboege at gmail.com Mon Jun 24 19:42:15 2019 From: taboege at gmail.com (Tobias Boege) Date: Mon, 24 Jun 2019 19:42:15 +0200 Subject: [Gambas-user] NCURSES ACS_STERLING revisited In-Reply-To: <31a333b6-0e36-cb39-7b4f-37c20f2b4375@gmail.com> References: <31a333b6-0e36-cb39-7b4f-37c20f2b4375@gmail.com> Message-ID: <20190624174215.GE5273@highrise.localdomain> On Mon, 24 Jun 2019, KKing wrote: > next I found the initscr() in main.c (within gb.ncurses) so I added the > #include and the setlocale(LC_ALL, "") before the initscr() > I did a make clean and then a make of all of Gambas but no change in what I > get. > The Gambas interpreter already initialises the locale before gb.ncurses gets to set itself up. > re the? -lncursesw > I can see in the gambas build essential ncurses but no ncursesw, also I > could not find any reference to -lncurses in gambas make, where I could > change it to -lncursesw ? > Apparently there is only ncursesw on Arch Linux, which is why my gb.ncurses has always been linked against ncursesw -- maybe that's why it worked for me and it's not an environment issue. This patch should force the wide character libraries to be used: diff --git a/gb.ncurses/configure.ac b/gb.ncurses/configure.ac index f09e5e487..47fdac5a8 100644 --- a/gb.ncurses/configure.ac +++ b/gb.ncurses/configure.ac @@ -9,7 +9,7 @@ AC_PROG_LIBTOOL GB_COMPONENT_PKG_CONFIG( ncurses, NCURSES, gb.ncurses, [src], - ncurses panel) + ncursesw panelw) AC_OUTPUT( \ Makefile \ But I will stress again that gb.ncurses does not support wide characters. You can link it against ncursesw, because that happens to be API-compatible, and see what it does, but as long as nobody takes the time to properly fix gb.ncurses, this only gets you so far. Maybe you can print the pound sign, but its length as a string, for example, will be calculated incorrectly. > also is it possible to just rebuild the gb.ncurses component(s), rather than > the whole gambas? > Of course (by running `make` and `make install` inside the gb.ncurses directory), but only if your current installation of Gambas was built from the same source tree as well. If you change configure.ac, you have to reconfigure gb.ncurses before (but again: not your whole Gambas). Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From admin at allunix.ru Tue Jun 25 05:27:42 2019 From: admin at allunix.ru (Admin) Date: Tue, 25 Jun 2019 10:27:42 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> Message-ID: <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> Ok, another question: I am very far from understanding C/C++, so I only rely on base logic. The documentation to a .so library I'm working with is stating that I have to call a function with patameter A and it's value B. Like this: libfptr_set_param_int(fptr, LIBFPTR_PARAM_TAX_TYPE, LIBFPTR_TAX_VAT18); As I understand from drivers reaction, it expects rather integers then strings. So then I suppose those are ENUM values given in a header file, and the only way I can call a function is actually count the number of a string in enum declaration (starting with 0) and providing it's number as an integer value to a finction. Right? I mean I can also create an ENUM array in my Gambas project and this would work the same way, but since there are hundreds of strings, that'd be tuff. And there's no other way. 24.06.2019 22:26, Cedron Dawg ?????: > The question was why would a language require that kind of complexity. I don't think it all that complex once you understand it. However, the apparent complexity in this case is dealing with a pointer to a pointer. Well, had C been implemented with a pass by reference convention this complexity in this case wouldn't exist. > > Pass by reference means you ultimately are pushing the address of a variable on the stack before the call, and pass by value means you push the value. Since in assembly the pushes are explicit, there is no default convention. For higher level languages (even C) when the function call syntax is translated into machine code, the decision has to be made which method to use. The C designers chose pass by value as a default. In contrast, FORTRAN, COBOL, and the other prevailing languages at the time (including PASCAL which C is most modeled after) did pass by reference. > > I do agree that pass by value does more closely resemble what the CPU does. Especially when you consider that you are most often pushing register values which may or may not be an address. It is also possible to push the address of a memory location without first storing it in a register. > > C could have been written with a pass by reference convention and that would not have had any impact on how the CPU works, but because it is pass by value in order to implement pass by reference you literally have to pass the reference as a value, e.g. the & operator which returns the address. > > But you know all this, so I don't see what we are arguing about. All I am saying is this particular complexity is due to C's pass by value convention, and wouldn't exist if C were pass by reference. > > > ----- Original Message ----- > From: "Beno?t Minisini" > > "Passing by reference" means nothing at the CPU level. > > You can only send a pointer that points at a memory address. > > Which C, as a low-level language, hopefully does not try to hide with > syntactic sugar. > From admin at allunix.ru Tue Jun 25 05:56:39 2019 From: admin at allunix.ru (Admin) Date: Tue, 25 Jun 2019 10:56:39 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> Message-ID: <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> Ok, answering my own question, it's easier then I thought. Gambas actually allows the same enum declaration as C does, I mean I can use multiple strings despite it's never mentioned in documentation. So it's basically .h file copy-paste process, nothing more. 25.06.2019 10:27, Admin ?????: > Ok, another question: > I am very far from understanding C/C++, so I only rely on base logic. > The documentation to a .so library I'm working with is stating that I > have to call a function with patameter A and it's value B. Like this: > > libfptr_set_param_int(fptr, LIBFPTR_PARAM_TAX_TYPE, LIBFPTR_TAX_VAT18); > > As I understand from drivers reaction, it expects rather integers then > strings. > So then I suppose those are ENUM values given in a header file, and > the only way I can call a function is actually count the number of a > string in enum declaration (starting with 0) and providing it's number > as an integer value to a finction. > > Right? I mean I can also create an ENUM array in my Gambas project and > this would work the same way, but since there are hundreds of strings, > that'd be tuff. And there's no other way. > > 24.06.2019 22:26, Cedron Dawg ?????: >> The question was why would a language require that kind of >> complexity.? I don't think it all that complex once you understand >> it.? However, the apparent complexity in this case is dealing with a >> pointer to a pointer. Well, had C been implemented with a pass by >> reference convention this complexity in this case wouldn't exist. >> >> Pass by reference means you ultimately are pushing the address of a >> variable on the stack before the call, and pass by value means you >> push the value.? Since in assembly the pushes are explicit, there is >> no default convention.? For higher level languages (even C) when the >> function call syntax is translated into machine code, the decision >> has to be made which method to use.? The C designers chose pass by >> value as a default.? In contrast, FORTRAN, COBOL, and the other >> prevailing languages at the time (including PASCAL which C is most >> modeled after) did pass by reference. >> >> I do agree that pass by value does more closely resemble what the CPU >> does.? Especially when you consider that you are most often pushing >> register values which may or may not be an address.? It is also >> possible to push the address of a memory location without first >> storing it in a register. >> >> C could have been written with a pass by reference convention and >> that would not have had any impact on how the CPU works, but because >> it is pass by value in order to implement pass by reference you >> literally have to pass the reference as a value, e.g. the & operator >> which returns the address. >> >> But you know all this, so I don't see what we are arguing about.? All >> I am saying is this particular complexity is due to C's pass by value >> convention, and wouldn't exist if C were pass by reference. >> >> >> ----- Original Message ----- >> From: "Beno?t Minisini" >> >> "Passing by reference" means nothing at the CPU level. >> >> You can only send a pointer that points at a memory address. >> >> Which C, as a low-level language, hopefully does not try to hide with >> syntactic sugar. >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > From g4mba5 at gmail.com Tue Jun 25 09:53:07 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 25 Jun 2019 09:53:07 +0200 Subject: [Gambas-user] Working with .so library In-Reply-To: <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> Message-ID: Le 25/06/2019 ? 05:56, Admin a ?crit?: > Ok, answering my own question, it's easier then I thought. Gambas > actually allows the same enum declaration as C does, I mean I can use > multiple strings despite it's never mentioned in documentation. So it's > basically .h file copy-paste process, nothing more. > What is not mentioned in http://gambaswiki.org/lang/enumdecl ? -- Beno?t Minisini From the_watchmann at yahoo.com Tue Jun 25 10:02:41 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Tue, 25 Jun 2019 08:02:41 +0000 (UTC) Subject: [Gambas-user] Working with .so library In-Reply-To: References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> Message-ID: <626322129.986662.1561449761810@mail.yahoo.com> i get a 404 error when trying to access that page? On Tuesday, June 25, 2019, 09:54:07 AM GMT+2, Beno?t Minisini wrote: Le 25/06/2019 ? 05:56, Admin a ?crit?: > Ok, answering my own question, it's easier then I thought. Gambas > actually allows the same enum declaration as C does, I mean I can use > multiple strings despite it's never mentioned in documentation. So it's > basically .h file copy-paste process, nothing more. > What is not mentioned in http://gambaswiki.org/lang/enumdecl ? -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Tue Jun 25 10:05:05 2019 From: kicking177 at gmail.com (KKing) Date: Tue, 25 Jun 2019 09:05:05 +0100 Subject: [Gambas-user] NCURSES ACS_STERLING revisited Message-ID: <9d453102-9a3e-1bfc-8aed-5df478f2ebde@gmail.com> many thanks Tobi, I applied below and now have UK Sterling and the Euro symbols appearing* << -? ncurses panel) +? ncursesw panelw) >> maybe I missed something, but I found I did have to rebuild all of gambas for this to work. << But I will stress again that gb.ncurses does not support wide characters. >> noted* * yes, while I get the symbols they are coming through as length of two which affected some displays, but for my needs I can detect the symbol being present via instr and compensate. K. From g4mba5 at gmail.com Tue Jun 25 10:06:31 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 25 Jun 2019 10:06:31 +0200 Subject: [Gambas-user] Working with .so library In-Reply-To: <626322129.986662.1561449761810@mail.yahoo.com> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> Message-ID: <1a239b97-6c1b-9645-aead-c9da7fd2dd4b@gmail.com> Le 25/06/2019 ? 10:02, David Silverwood via User a ?crit?: > i get a 404 error when trying to access that page? > Forgot "/wiki": http://gambaswiki.org/wiki/lang/enumdecl -- Beno?t Minisini From taboege at gmail.com Tue Jun 25 10:07:01 2019 From: taboege at gmail.com (Tobias Boege) Date: Tue, 25 Jun 2019 10:07:01 +0200 Subject: [Gambas-user] Working with .so library In-Reply-To: <626322129.986662.1561449761810@mail.yahoo.com> References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> Message-ID: <20190625080701.GF5273@highrise.localdomain> On Tue, 25 Jun 2019, David Silverwood via User wrote: > > On Tuesday, June 25, 2019, 09:54:07 AM GMT+2, Beno?t Minisini wrote: > > > > Le 25/06/2019 ? 05:56, Admin a ?crit?: > > > Ok, answering my own question, it's easier then I thought. Gambas > > > actually allows the same enum declaration as C does, I mean I can use > > > multiple strings despite it's never mentioned in documentation. So it's > > > basically .h file copy-paste process, nothing more. > > > > > > > What is not mentioned in http://gambaswiki.org/lang/enumdecl ? > > i get a 404 error when trying to access that page? There's always a /wiki after the .org, which Beno?t forgot. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From admin at allunix.ru Tue Jun 25 10:21:04 2019 From: admin at allunix.ru (Admin) Date: Tue, 25 Jun 2019 15:21:04 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: <20190625080701.GF5273@highrise.localdomain> References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> <20190625080701.GF5273@highrise.localdomain> Message-ID: Ok, this question I have for a very long time now: Sometimes I need to recieve a string variable from a library. Usually it asks me to provide a pointer to a string where it would store it's output. Problem is output is usually in WCHAR_T, while the string is always in UTF-8. When I provide my strings to a library - it's not a problem, i just use Conv(MyString, "UTF-8", "WCHAR_T") and it's all ok. But when I recieve a string from a library I rearly even know the lenght of the output I expect. But even if I do, that would be a lenght of a WCAHR_T string, and the size of UTF string would be defferent. So in most cases if I recieve a string like this: libfptr_get_param_str(fptr, LIBFPTR_PARAM_MODEL_NAME, VarPtr(KKMmodel), stringsize) and then try to message(Conv(KKMmodel, "WCHAR_T", "UTF-8")) I will get a "bad string conversion". And I think it's totally fair, because, ok, I know that the string will be 18 chars long, but if I make KKMmodel declared as String and 18 chars long - is it even relevant?? It would be 18 UTF8 chars long, which has nothing to do with the lenght of WCHAR_T string. So, is there a way to correctly recieve WCHAR_T strings through pointers in Gambas? 25.06.2019 15:07, Tobias Boege ?????: > On Tue, 25 Jun 2019, David Silverwood via User wrote: >>> On Tuesday, June 25, 2019, 09:54:07 AM GMT+2, Beno?t Minisini wrote: >>> >>> Le 25/06/2019 ? 05:56, Admin a ?crit?: >>>> Ok, answering my own question, it's easier then I thought. Gambas >>>> actually allows the same enum declaration as C does, I mean I can use >>>> multiple strings despite it's never mentioned in documentation. So it's >>>> basically .h file copy-paste process, nothing more. >>>> >>> What is not mentioned in http://gambaswiki.org/lang/enumdecl ? >> i get a 404 error when trying to access that page? > There's always a /wiki after the .org, which Beno?t forgot. > From admin at allunix.ru Tue Jun 25 10:23:24 2019 From: admin at allunix.ru (Admin) Date: Tue, 25 Jun 2019 15:23:24 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@allunix.ru> <0ec987df-e781-4abf-3bdc-dce4db5bb149@gmail.com> <0a8be2c1-30b7-795c-9da8-f436ff1f95bf@allunix.ru> <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> Message-ID: <2ea6548a-6b2e-1fef-bcb7-ee994ca037d4@allunix.ru> emm... no? The expample there is in one line and nowhere in text it is said that I can actually specify enums each on a new line. I thought it was impossible, but it is not. 25.06.2019 14:53, Beno?t Minisini ?????: > Le 25/06/2019 ? 05:56, Admin a ?crit?: >> Ok, answering my own question, it's easier then I thought. Gambas >> actually allows the same enum declaration as C does, I mean I can use >> multiple strings despite it's never mentioned in documentation. So >> it's basically .h file copy-paste process, nothing more. >> > > What is not mentioned in http://gambaswiki.org/lang/enumdecl ? > From chrisml at deganius.de Tue Jun 25 16:46:12 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 25 Jun 2019 16:46:12 +0200 Subject: [Gambas-user] How to compile Gambas to a local home? Message-ID: Hi, I would like to compile and install Gambas so that executables and components are located under ~/.local/bin ~/.local/share Is that possible? --------------------------------------------------------------------- In http://gambaswiki.org/wiki/install#t8 there's the sentence: "There are more 'configure' specific explanations in the INSTALL file located in the top-level source directory. I invite you to read them." And in the INSTALL file there is: christof at tof-x230 ~/programming/gambas/gambas ?master ? cat INSTALL Visit http://gambaswiki.org/wiki/install. --------------------------------------------------------------------- A loop. Funny ;-) 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 rwe-sse at osnanet.de Tue Jun 25 17:06:40 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 25 Jun 2019 17:06:40 +0200 Subject: [Gambas-user] How to compile Gambas to a local home? In-Reply-To: References: Message-ID: Maybe with a --prefix path? Am 25.06.19 um 16:46 schrieb Christof Thalhofer: > Hi, > > I would like to compile and install Gambas so that executables and > components are located under > > ~/.local/bin > ~/.local/share > > Is that possible? > > --------------------------------------------------------------------- > > In http://gambaswiki.org/wiki/install#t8 there's the sentence: > > "There are more 'configure' specific explanations in the INSTALL file > located in the top-level source directory. I invite you to read them." > > And in the INSTALL file there is: > > christof at tof-x230 ~/programming/gambas/gambas ?master ? cat INSTALL > Visit http://gambaswiki.org/wiki/install. > > --------------------------------------------------------------------- > > A loop. Funny ;-) > > Alles Gute > > Christof Thalhofer > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From adamnt42 at gmail.com Tue Jun 25 17:22:19 2019 From: adamnt42 at gmail.com (Bruce) Date: Wed, 26 Jun 2019 00:52:19 +0930 Subject: [Gambas-user] How to compile Gambas to a local home? In-Reply-To: References: Message-ID: That will work for programs but not components (unless you can somehow load them explicitly at runtime). or that's our experience anyway. b On 26/6/19 12:36 am, Rolf-Werner Eilert wrote: > Maybe with a --prefix path? > > Am 25.06.19 um 16:46 schrieb Christof Thalhofer: >> Hi, >> >> I would like to compile and install Gambas so that executables and >> components are located under >> >> ~/.local/bin >> ~/.local/share >> >> Is that possible? >> >> --------------------------------------------------------------------- >> >> In http://gambaswiki.org/wiki/install#t8 there's the sentence: >> >> "There are more 'configure' specific explanations in the INSTALL file >> located in the top-level source directory. I invite you to read them." >> >> And in the INSTALL file there is: >> >> christof at tof-x230 ~/programming/gambas/gambas ?master ? cat INSTALL >> Visit http://gambaswiki.org/wiki/install. >> >> --------------------------------------------------------------------- >> >> A loop. Funny ;-) >> >> Alles Gute >> >> Christof Thalhofer >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From chrisml at deganius.de Tue Jun 25 17:45:59 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 25 Jun 2019 17:45:59 +0200 Subject: [Gambas-user] How to compile Gambas to a local home? In-Reply-To: References: Message-ID: <45ea9c72-fc40-8c17-3dd9-d16de60ae83a@deganius.de> Am 25.06.19 um 17:22 schrieb Bruce: > That will work for programs but not components (unless you can somehow > load them explicitly at runtime). > or that's our experience anyway. Yes. ./configure -C --prefix=/home/users/xyz/.local leads to: > || THESE COMPONENTS ARE DISABLED: > || - gb.db.odbc > || - gb.db.postgresql > || - gb.db.sqlite2 > || - gb.dbus > || - gb.desktop.gnome.keyring > || - gb.desktop.x11 > || - gb.gsl > || - gb.gtk > || - gb.gtk.opengl > || - gb.gtk3 > || - gb.image.imlib > || - gb.media > || - gb.mime > || - gb.openal > || - gb.opengl > || - gb.opengl.glsl > || - gb.opengl.glu > || - gb.opengl.sge > || - gb.pdf > || - gb.qt4 > || - gb.qt4.ext > || - gb.qt4.opengl > || - gb.qt4.webkit > || - gb.qt5 > || - gb.qt5.ext > || - gb.qt5.opengl > || - gb.qt5.webkit > || - gb.sdl > || - gb.sdl.sound > || - gb.sdl2 > || - gb.sdl2.audio > || - gb.v4l 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 chrisml at deganius.de Wed Jun 26 00:39:24 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 26 Jun 2019 00:39:24 +0200 Subject: [Gambas-user] How to compile Gambas to a local home? In-Reply-To: <45ea9c72-fc40-8c17-3dd9-d16de60ae83a@deganius.de> References: <45ea9c72-fc40-8c17-3dd9-d16de60ae83a@deganius.de> Message-ID: I answer to myself: Am 25.06.19 um 17:45 schrieb Christof Thalhofer: >> That will work for programs but not components (unless you can somehow >> load them explicitly at runtime). >> or that's our experience anyway. > > Yes. > > ./configure -C --prefix=/home/users/xyz/.local > > leads to: > >> || THESE COMPONENTS ARE DISABLED: >> || - gb.db.odbc >> || - gb.db.postgresql >> || - gb.db.sqlite2 ... No, the reason for that is, that a lot of neccessary packages are not installed on that server. 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 admin at allunix.ru Wed Jun 26 03:13:27 2019 From: admin at allunix.ru (Admin) Date: Wed, 26 Jun 2019 08:13:27 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <79a5e49a-a5fc-1dc2-30f8-642acb344b2d@gmail.com> <1152898346.80784827.1561387577722.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> <20190625080701.GF5273@highrise.localdomain> Message-ID: <9aee2f69-39f2-0db2-8197-83742441f4ab@allunix.ru> So, I guess that's a no. It's kinda sad, but ok, minor issue. 25.06.2019 15:21, Admin ?????: > Ok, this question I have for a very long time now: > Sometimes I need to recieve a string variable from a library. > Usually it asks me to provide a pointer to a string where it would > store it's output. > Problem is output is usually in WCHAR_T, while the string is always in > UTF-8. > When I provide my strings to a library - it's not a problem, i just > use Conv(MyString, "UTF-8", "WCHAR_T") and it's all ok. > But when I recieve a string from a library I rearly even know the > lenght of the output I expect. But even if I do, that would be a > lenght of a WCAHR_T string, and the size of UTF string would be > defferent. > So in most cases if I recieve a string like this: > > libfptr_get_param_str(fptr, LIBFPTR_PARAM_MODEL_NAME, > VarPtr(KKMmodel), stringsize) > > and then try to > > message(Conv(KKMmodel, "WCHAR_T", "UTF-8")) > > I will get a "bad string conversion". > > And I think it's totally fair, because, ok, I know that the string > will be 18 chars long, but if I make KKMmodel declared as String and > 18 chars long - is it even relevant?? It would be 18 UTF8 chars long, > which has nothing to do with the lenght of WCHAR_T string. > > So, is there a way to correctly recieve WCHAR_T strings through > pointers in Gambas? > > 25.06.2019 15:07, Tobias Boege ?????: >> On Tue, 25 Jun 2019, David Silverwood via User wrote: >>>> On Tuesday, June 25, 2019, 09:54:07 AM GMT+2, Beno?t Minisini >>>> wrote: >>>> ? ? Le 25/06/2019 ? 05:56, Admin a ?crit?: >>>>> Ok, answering my own question, it's easier then I thought. Gambas >>>>> actually allows the same enum declaration as C does, I mean I can use >>>>> multiple strings despite it's never mentioned in documentation. So >>>>> it's >>>>> basically .h file copy-paste process, nothing more. >>>>> >>>> What is not mentioned in http://gambaswiki.org/lang/enumdecl ? >>> ? i get a 404 error when trying to access that page? >> There's always a /wiki after the .org, which Beno?t forgot. >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > From cedron at exede.net Wed Jun 26 04:06:08 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 25 Jun 2019 22:06:08 -0400 (EDT) Subject: [Gambas-user] Working with .so library In-Reply-To: <9aee2f69-39f2-0db2-8197-83742441f4ab@allunix.ru> References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> <20190625080701.GF5273@highrise.localdomain> <9aee2f69-39f2-0db2-8197-83742441f4ab@allunix.ru> Message-ID: <1372936899.82773739.1561514768480.JavaMail.zimbra@exede.net> I'm not that familiar with using different character sets which is why I haven't answered. I have to say you are giving off somewhat of a petulant vibe. One of the techniques I have used is a Alloc with plenty of space to spare. In most cases, the function call like yours also has an argument for the maximum number of bytes the function will return, so you can usually use that for the minimum size. Then you can use the Sting@ function to pull the string value out of the allocated memory. Then you use the Free function to release the allocated memory. For fixed length strings in a structure, I have used a Byte array of the specified size and then the .ToString() method to get the string out of that. I've only really dealt with pure ASCII strings, but I think UTF-8 will also work with these. Ced ----- Original Message ----- From: "Admin" To: "user" Sent: Tuesday, June 25, 2019 9:13:27 PM Subject: Re: [Gambas-user] Working with .so library So, I guess that's a no. It's kinda sad, but ok, minor issue. From admin at allunix.ru Wed Jun 26 07:46:03 2019 From: admin at allunix.ru (Admin) Date: Wed, 26 Jun 2019 12:46:03 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: <1372936899.82773739.1561514768480.JavaMail.zimbra@exede.net> References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> <20190625080701.GF5273@highrise.localdomain> <9aee2f69-39f2-0db2-8197-83742441f4ab@allunix.ru> <1372936899.82773739.1561514768480.JavaMail.zimbra@exede.net> Message-ID: 26.06.2019 9:06, Cedron Dawg ?????: > I have to say you are giving off somewhat of a petulant vibe. Oh, sorry about that, I honestly had no intention to. I really appreciate all the help. > > One of the techniques I have used is a Alloc with plenty of space to spare. In most cases, the function call like yours also has an argument for the maximum number of bytes the function will return, so you can usually use that for the minimum size. Then you can use the Sting@ function to pull the string value out of the allocated memory. Then you use the Free function to release the allocated memory. > > For fixed length strings in a structure, I have used a Byte array of the specified size and then the .ToString() method to get the string out of that. > > I've only really dealt with pure ASCII strings, but I think UTF-8 will also work with these. Thanks for the idea, I'll give it a try! Like I said, that's a minor issue for me, it's almost always possible to just get an integer value of a message (i.e. a error number, not an ectual error description) and just parse it from a text base I already have. But huge thanks for the tip. > Ced > > ----- Original Message ----- > From: "Admin" > To: "user" > Sent: Tuesday, June 25, 2019 9:13:27 PM > Subject: Re: [Gambas-user] Working with .so library > > So, I guess that's a no. It's kinda sad, but ok, minor issue. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > From taboege at gmail.com Wed Jun 26 08:43:25 2019 From: taboege at gmail.com (Tobias Boege) Date: Wed, 26 Jun 2019 08:43:25 +0200 Subject: [Gambas-user] How to compile Gambas to a local home? In-Reply-To: References: <45ea9c72-fc40-8c17-3dd9-d16de60ae83a@deganius.de> Message-ID: <20190626064230.GA10839@highrise.localdomain> On Wed, 26 Jun 2019, Christof Thalhofer wrote: > I answer to myself: > > Am 25.06.19 um 17:45 schrieb Christof Thalhofer: > > >> That will work for programs but not components (unless you can somehow > >> load them explicitly at runtime). > >> or that's our experience anyway. > > > > Yes. > > > > ./configure -C --prefix=/home/users/xyz/.local > > > > leads to: > > > >> || THESE COMPONENTS ARE DISABLED: > >> || - gb.db.odbc > >> || - gb.db.postgresql > >> || - gb.db.sqlite2 > ... > > No, the reason for that is, that a lot of neccessary packages are not > installed on that server. > Using --prefix then hopefully gets you installed to some other directory, but the Gambas installed there will not completely honour the prefix. For example there is a function 1195 const char *FILE_find_gambas(void) 1196 { 1197 const char *path; 1198 1199 path = getenv("GB_PATH"); 1200 1201 if (!path || !*path) 1202 { 1203 if (FILE_exist(GAMBAS_LINK_PATH)) 1204 { 1205 path = FILE_readlink(GAMBAS_LINK_PATH); 1206 if (!path) 1207 path = GAMBAS_LINK_PATH; 1208 } 1209 else 1210 { 1211 path = GAMBAS_PATH "/gbx" GAMBAS_VERSION_STRING; 1212 } 1213 } 1214 1215 return path; 1216 } which relies on 66 #define GAMBAS_LINK_PATH "/usr/bin/gbx" GAMBAS_VERSION_STRING to determine the Gambas installation path which in turn determines one of the component search directories. And you really don't want to load components which are compiled for a different Gambas. You have to additionally set GB_PATH to the location of gbx3 in your local installation. Note that in the else branch above, the GAMBAS_PATH is used instead, which is a macro set by the build process to the configured $bindir under $prefix, which is the right thing. Maybe GAMBAS_LINK_PATH is an oversight / bug? As it is now, it prefers the environment variable over the system Gambas over the configuration. I think the last two should switch around. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From chrisml at deganius.de Wed Jun 26 11:18:50 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 26 Jun 2019 11:18:50 +0200 Subject: [Gambas-user] How to compile Gambas to a local home? In-Reply-To: <20190626064230.GA10839@highrise.localdomain> References: <45ea9c72-fc40-8c17-3dd9-d16de60ae83a@deganius.de> <20190626064230.GA10839@highrise.localdomain> Message-ID: <9ef99093-1dff-f8bd-69a5-86c92a5bb243@deganius.de> Am 26.06.19 um 08:43 schrieb Tobias Boege: > You have to additionally set GB_PATH to the location of gbx3 in your > local installation. Note that in the else branch above, the GAMBAS_PATH > is used instead, which is a macro set by the build process to the > configured $bindir under $prefix, which is the right thing. Thanks Tobi :-) The reason for my question is that I would like to use Gambas on Hostsharing servers. One possibility would be to compile and install it in $HOME, the other one would be to install the old Debian Stretch version on the servers. 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 cedron at exede.net Wed Jun 26 17:54:41 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 26 Jun 2019 11:54:41 -0400 (EDT) Subject: [Gambas-user] Working with .so library In-Reply-To: References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> <20190625080701.GF5273@highrise.localdomain> Message-ID: <1575308269.83356753.1561564481574.JavaMail.zimbra@exede.net> I've whipped up a sample project which should be similar to your situation. This project shows: * How easy it is to interface to a C shared library. * My clever, but a bit complicated, way of compiling a C shared library from Gambas * The difference between Gambas' ordinary string functions (ASCII) and the static String functions (UTF-8) You should note: * The C code is oblivious to the UTF-8 encoding of the string constant. * There is no conv function usage * I use a string instead of allocated memory Hopefully this will clarify the issues at hand. Ced -------------- next part -------------- A non-text attachment was scrubbed... Name: StringPassing-0.0.1.tar.gz Type: application/x-compressed-tar Size: 15240 bytes Desc: not available URL: From kicking177 at gmail.com Wed Jun 26 19:16:37 2019 From: kicking177 at gmail.com (KKing) Date: Wed, 26 Jun 2019 18:16:37 +0100 Subject: [Gambas-user] Catch Not Catching or is bypassed with the Finally... Message-ID: Is this correct behaviour while stepping through code in IDE? In example below if an EOF is encountered on the Read, it jumps from the read to the Finally statement and processes as if no error, though I realised issue because the iResponse is -1. Shouldn't it jump to the Catch and depending on code then execute the Finally just before leaving? If I comment out the Finally, it does jump to the Catch and gives the expected error details. << Sub ReadFile(hfile as File) as integer ??? Dim iResponse ??? iResponse = -1 ??? Seek #hfile, 30 ??? Read #hfile, someContent, 80 ??? iResponse = 0 Finally ??? Try hfile.Close ??? hfile = null ??? return iResponse Catch ??? Print Error.Code ??? stop End >> K. From kicking177 at gmail.com Wed Jun 26 19:22:13 2019 From: kicking177 at gmail.com (KKing) Date: Wed, 26 Jun 2019 18:22:13 +0100 Subject: [Gambas-user] File Locking Message-ID: Is there any concept of file locking? i.e. if you had one process making amendments another process can not potentially open, read, or write to a file until the initial process releases the lock? K. From admin at allunix.ru Wed Jun 26 19:24:14 2019 From: admin at allunix.ru (Admin) Date: Thu, 27 Jun 2019 00:24:14 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: <1575308269.83356753.1561564481574.JavaMail.zimbra@exede.net> References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> <20190625080701.GF5273@highrise.localdomain> <1575308269.83356753.1561564481574.JavaMail.zimbra@exede.net> Message-ID: That is much more then I could ask for. Thank you! 26.06.2019 22:54, Cedron Dawg ?????: > I've whipped up a sample project which should be similar to your situation. > > This project shows: > > * How easy it is to interface to a C shared library. > > * My clever, but a bit complicated, way of compiling a C shared library from Gambas > > * The difference between Gambas' ordinary string functions (ASCII) and the static String functions (UTF-8) > > You should note: > > * The C code is oblivious to the UTF-8 encoding of the string constant. > > * There is no conv function usage > > * I use a string instead of allocated memory > > Hopefully this will clarify the issues at hand. > > Ced > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jun 26 20:03:17 2019 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 26 Jun 2019 20:03:17 +0200 Subject: [Gambas-user] File Locking In-Reply-To: References: Message-ID: Il giorno mer 26 giu 2019 alle ore 19:23 KKing ha scritto: > Is there any concept of file locking? > > i.e. if you had one process making amendments another process can not > potentially open, read, or write to a file until the initial process > releases the lock? > > K. > look here: http://gambaswiki.org/wiki/comp/gb/file Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Wed Jun 26 20:09:11 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 26 Jun 2019 14:09:11 -0400 (EDT) Subject: [Gambas-user] Working with .so library In-Reply-To: References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> <20190625080701.GF5273@highrise.localdomain> <1575308269.83356753.1561564481574.JavaMail.zimbra@exede.net> Message-ID: <1379603501.83516529.1561572551007.JavaMail.zimbra@exede.net> You're welcome. You may also want to study the examples found in these posts: Shared Library: FFTW Wrapper https://forum.gambas.one/viewtopic.php?f=4&t=689 Calling FORTRAN Shared Libraries from Gambas https://forum.gambas.one/viewtopic.php?f=4&t=683 The first is a wrapper library around another C based library so all the C specific stuff is more easily handled in C than Gambas. The second shows the difference in how a pass by reference language handles arguments than a pass by value one demonstrating what I was talking about earlier. If your library is returning UTF-8 you should be fine, if not, I'm afraid I can't help any further. P.S. The cool thing is you can open the library source code in the Gambas IDE, edit it, and when you press the run button it will automatically recompile so you can work on your calling program and library at the same time with the same editor and test environment. ----- Original Message ----- From: "Admin" To: "user" Sent: Wednesday, June 26, 2019 1:24:14 PM Subject: Re: [Gambas-user] Working with .so library That is much more then I could ask for. Thank you! From g4mba5 at gmail.com Wed Jun 26 22:05:38 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 26 Jun 2019 22:05:38 +0200 Subject: [Gambas-user] File Locking In-Reply-To: References: Message-ID: <2d156897-59ed-c8b9-5444-bf372ebe228b@gmail.com> Le 26/06/2019 ? 20:03, Gianluigi a ?crit?: > > > Il giorno mer 26 giu 2019 alle ore 19:23 KKing > ha scritto: > > Is there any concept of file locking? > > i.e. if you had one process making amendments another process can not > potentially open, read, or write to a file until the initial process > releases the lock? > > K. > > > look here: > http://gambaswiki.org/wiki/comp/gb/file > > Regards > Gianluigi > > Better look at http://gambaswiki.org/wiki/lang/lock ! -- Beno?t Minisini From g4mba5 at gmail.com Wed Jun 26 22:12:16 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 26 Jun 2019 22:12:16 +0200 Subject: [Gambas-user] Catch Not Catching or is bypassed with the Finally... In-Reply-To: References: Message-ID: <3b01cb7d-6115-cd47-3aa6-bb05dbe7a604@gmail.com> Le 26/06/2019 ? 19:16, KKing a ?crit?: > Is this correct behaviour while stepping through code in IDE? > > In example below if an EOF is encountered on the Read, it jumps from the > read to the Finally statement and processes as if no error, though I > realised issue because the iResponse is -1. > Shouldn't it jump to the Catch and depending on code then execute the > Finally just before leaving? > > If I comment out the Finally, it does jump to the Catch and gives the > expected error details. > > << > Sub ReadFile(hfile as File) as integer > > ??? Dim iResponse > ??? iResponse = -1 > > ??? Seek #hfile, 30 > ??? Read #hfile, someContent, 80 > ??? iResponse = 0 > > Finally > ??? Try hfile.Close > ??? hfile = null > ??? return iResponse > > Catch > ??? Print Error.Code > ??? stop > > End > >> > > K. > It is. The code of FINALLY is always executed before the CATCH. It is intended to clean up things before propagating or displaying the error. The current problem is that the Error object is global, and so can be overrident during the Finally part. I will try to make it transparently local to the function, but I'm not sure that it is possible yet. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Wed Jun 26 22:29:27 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 26 Jun 2019 23:29:27 +0300 Subject: [Gambas-user] Working with .so library In-Reply-To: <1575308269.83356753.1561564481574.JavaMail.zimbra@exede.net> References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <869092470.80812813.1561389969769.JavaMail.zimbra@exede.net> <4562a83f-d02b-ff96-372f-46e328f60bd2@allunix.ru> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> <20190625080701.GF5273@highrise.localdomain> <1575308269.83356753.1561564481574.JavaMail.zimbra@exede.net> Message-ID: That is good way to share C library code. However, little thing. Instead of giving error messages like "MaybeCompileLibrary: compile.sh not found.", give them like this: "MaybeCompileLibrary: " & theShSpec & " not found." That way the user knows what exactly could not be found and from where. Or in case of open source program, even like this: System.Backtrace[0] & ": " & theShSpec & " not found." This way the user knows immediately the line in the source code what gives the error. Jussi On Wed, Jun 26, 2019 at 6:55 PM Cedron Dawg wrote: > I've whipped up a sample project which should be similar to your situation. > > This project shows: > > * How easy it is to interface to a C shared library. > > * My clever, but a bit complicated, way of compiling a C shared library > from Gambas > > * The difference between Gambas' ordinary string functions (ASCII) and > the static String functions (UTF-8) > > You should note: > > * The C code is oblivious to the UTF-8 encoding of the string constant. > > * There is no conv function usage > > * I use a string instead of allocated memory > > Hopefully this will clarify the issues at hand. > > Ced > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Wed Jun 26 23:05:29 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 26 Jun 2019 17:05:29 -0400 (EDT) Subject: [Gambas-user] Working with .so library In-Reply-To: References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> <20190625080701.GF5273@highrise.localdomain> <1575308269.83356753.1561564481574.JavaMail.zimbra@exede.net> Message-ID: <387637913.83731624.1561583129926.JavaMail.zimbra@exede.net> Thanks Jussi, I'm glad you like it. The RunSh.module has been evolving a bit so the version in the FFTW example is not quite as good as the one I attached. If you would kindly incorporate your suggestions and attach it to the response, I will use it going forward and others can have it right away. I was a bit lazy with it and if the .so doesn't exist it will be quietly compiled without a message saying it is being compiled. The other problem is the .so is in the application directory and I still haven't figured out the best way to include it with other projects. I.e. should you just copy the .so file into the new project, should you copy it to /usr/lib or /usr/local/lib or some other alternative? Suggestions welcome. Ced ----- Original Message ----- From: "Jussi Lahtinen" That is good way to share C library code. However, little thing. Instead of giving error messages like "MaybeCompileLibrary: compile.sh not found.", give them like this: "MaybeCompileLibrary: " & theShSpec & " not found." That way the user knows what exactly could not be found and from where. Or in case of open source program, even like this: System.Backtrace[0] & ": " & theShSpec & " not found." This way the user knows immediately the line in the source code what gives the error. Jussi From jussi.lahtinen at gmail.com Wed Jun 26 23:52:23 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 27 Jun 2019 00:52:23 +0300 Subject: [Gambas-user] Working with .so library In-Reply-To: <387637913.83731624.1561583129926.JavaMail.zimbra@exede.net> References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <9b279258-7548-0d3b-79f4-b65d477286df@allunix.ru> <626322129.986662.1561449761810@mail.yahoo.com> <20190625080701.GF5273@highrise.localdomain> <1575308269.83356753.1561564481574.JavaMail.zimbra@exede.net> <387637913.83731624.1561583129926.JavaMail.zimbra@exede.net> Message-ID: For demos application directory is good option. For real projects, things should be installed as root to the /usr/lib. For demos consisting of multiple projects, I guess ~/SharedDemoLibrary or similar would be good. I don't think there is standard to follow for that case. Jussi On Thu, Jun 27, 2019 at 12:06 AM Cedron Dawg wrote: > Thanks Jussi, I'm glad you like it. > > The RunSh.module has been evolving a bit so the version in the FFTW > example is not quite as good as the one I attached. If you would kindly > incorporate your suggestions and attach it to the response, I will use it > going forward and others can have it right away. I was a bit lazy with it > and if the .so doesn't exist it will be quietly compiled without a message > saying it is being compiled. > > The other problem is the .so is in the application directory and I still > haven't figured out the best way to include it with other projects. I.e. > should you just copy the .so file into the new project, should you copy it > to /usr/lib or /usr/local/lib or some other alternative? Suggestions > welcome. > > Ced > > > > ----- Original Message ----- > From: "Jussi Lahtinen" > > That is good way to share C library code. However, little thing. > Instead of giving error messages like "MaybeCompileLibrary: compile.sh not > found.", give them like this: > "MaybeCompileLibrary: " & theShSpec & " not found." > > That way the user knows what exactly could not be found and from where. Or > in case of open source program, even like this: > System.Backtrace[0] & ": " & theShSpec & " not found." > > This way the user knows immediately the line in the source code what gives > the error. > > > Jussi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: RunSh.module.tar.gz Type: application/gzip Size: 852 bytes Desc: not available URL: From cedron at exede.net Thu Jun 27 14:30:49 2019 From: cedron at exede.net (Cedron Dawg) Date: Thu, 27 Jun 2019 08:30:49 -0400 (EDT) Subject: [Gambas-user] Working with .so library In-Reply-To: References: <1657867250.80723403.1561385448047.JavaMail.zimbra@exede.net> <626322129.986662.1561449761810@mail.yahoo.com> <20190625080701.GF5273@highrise.localdomain> <1575308269.83356753.1561564481574.JavaMail.zimbra@exede.net> <387637913.83731624.1561583129926.JavaMail.zimbra@exede.net> Message-ID: <1036471237.369816.1561638649565.JavaMail.zimbra@exede.net> Thanks Jussi, I will use this version. As you describe it is how I have been doing it. I am reluctant to build in the copy command to /usr/lib into the code as that requires the user to enter their admin password, which as a user myself, I don't do in software I've just downloaded and am not confident as been properly vetted. The approach of building installation packages for each library is not attractive either. This way also sheds the accompanying test code so you lose seeing how it can actually be employed. I've also considered putting code into RunSh.module that will print starter compile.sh and a libGambas_XXX.c files if they don't exist. Still a work in progress, but I really do like how easy it is to interface Gambas to a shared library, and being able to edit the source for the library and the test cradle simultaneously in the same IDE is just awesome. ----- Original Message ----- From: "Jussi Lahtinen" To: "user" Sent: Wednesday, June 26, 2019 5:52:23 PM Subject: Re: [Gambas-user] Working with .so library For demos application directory is good option. For real projects, things should be installed as root to the /usr/lib. For demos consisting of multiple projects, I guess ~/SharedDemoLibrary or similar would be good. I don't think there is standard to follow for that case. Jussi From sharon at 455.co.il Thu Jun 27 23:43:22 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 28 Jun 2019 00:43:22 +0300 Subject: [Gambas-user] Complete an IF inside the IDE Message-ID: <20190627214301.M25239@455.co.il> hello When I write code: Public Sub Main() Dim sString As String If sString Then Else Endif End Note that there is a space before the IF When I go to the end of the line of the IF and press the Inter key It completes my ENDIF Even though there is ENDIF at the end Is it okay? Thank you From t.lee.davidson at gmail.com Fri Jun 28 03:28:34 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 27 Jun 2019 21:28:34 -0400 Subject: [Gambas-user] Complete an IF inside the IDE In-Reply-To: <20190627214301.M25239@455.co.il> References: <20190627214301.M25239@455.co.il> Message-ID: <37dd47c2-4988-c692-ba46-e068a8995336@gmail.com> I'm not sure what you are saying. I was following you until, "Even though there is ENDIF at the end" There is only one ENDIF in that code, and it matches the single IF. The whitespace before the IF is irrelevant. ___ Lee On 6/27/19 5:43 PM, Mayost Sharon wrote: > hello > > When I write code: > > Public Sub Main() > Dim sString As String > If sString Then > Else > Endif > End > > Note that there is a space before the IF > > When I go to the end of the line of the IF and press the Inter key > It completes my ENDIF > Even though there is ENDIF at the end > > Is it okay? > > Thank you > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From kicking177 at gmail.com Fri Jun 28 09:05:27 2019 From: kicking177 at gmail.com (KKing) Date: Fri, 28 Jun 2019 08:05:27 +0100 Subject: [Gambas-user] Deploying a Gambas project and Gambas runtime on Debian 9 for version not in Debian repos Message-ID: <83acd6e2-f447-2c2e-2c8a-9eee66b28078@gmail.com> What option(s) do I have to deploy a gambas 3.13.0 project (executable), Gambas runtime and the needed Gambas components to Debian 9 unit. K. From rwe-sse at osnanet.de Fri Jun 28 13:31:15 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 28 Jun 2019 13:31:15 +0200 Subject: [Gambas-user] Pale markers under Ubuntu Mate Message-ID: This is a problem which might have to do with Mate rather than with Gambas, but maybe someone has had a similar problem. In my system, the marker bars in lists and grid views etc. are rather pale so it's somewhat difficult to make out "which item is selected right now". Is there a way to control this by some Gambas code, or would you say "change the theme"? I'm happy with theme and preferences on my system so far, and this problem seems to be only in Gambas. Thanks for any input. Rolf From adamnt42 at gmail.com Fri Jun 28 13:45:05 2019 From: adamnt42 at gmail.com (Bruce) Date: Fri, 28 Jun 2019 21:15:05 +0930 Subject: [Gambas-user] Pale markers under Ubuntu Mate In-Reply-To: References: Message-ID: <65561e60-f468-4d04-debd-ab16bf883250@gmail.com> I don't know the answer Rolf, but I do "feel your pain". It seems to me that Mate desktop over the last 3-4 months has begun to tell me how I should be living my life so to speak. I am fairly sure that I have seen the same effects, both within and external to Gambas. I have tried the theme change prayer and other more arcane incantations but it does seem that sometimes Mate tends to think that "an extremely very light shade of grey/blue" is a suitable highlight. ymmv. Sometimes I am tempted to go back to KDE. No, disregard that. :-( b On 28/6/19 9:01 pm, Rolf-Werner Eilert wrote: > This is a problem which might have to do with Mate rather than with > Gambas, but maybe someone has had a similar problem. > > In my system, the marker bars in lists and grid views etc. are rather > pale so it's somewhat difficult to make out "which item is selected > right now". > > Is there a way to control this by some Gambas code, or would you say > "change the theme"? I'm happy with theme and preferences on my system so > far, and this problem seems to be only in Gambas. > > Thanks for any input. > > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From sharon at 455.co.il Fri Jun 28 13:53:28 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 28 Jun 2019 14:53:28 +0300 Subject: [Gambas-user] Complete an IF inside the IDE In-Reply-To: <37dd47c2-4988-c692-ba46-e068a8995336@gmail.com> References: <20190627214301.M25239@455.co.il> <37dd47c2-4988-c692-ba46-e068a8995336@gmail.com> Message-ID: <20190628114745.M10340@455.co.il> I'm sorry Maybe because I do not know English well it's hard to understand me And I use Google translation which is not accurate If you paste the code as it is with the space Then go to the end of the line: If sString Then And press the ENTER key The IDE completes another ENDIF ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Thu, 27 Jun 2019 21:28:34 -0400 Subject: Re: [Gambas-user] Complete an IF inside the IDE > I'm not sure what you are saying. I was following you until, "Even though > there is ENDIF at the end" > > There is only one ENDIF in that code, and it matches the single IF. The > whitespace before the IF is irrelevant. > > ___ > Lee > > On 6/27/19 5:43 PM, Mayost Sharon wrote: > > hello > > > > When I write code: > > > > Public Sub Main() > > Dim sString As String > > If sString Then > > Else > > Endif > > End > > > > Note that there is a space before the IF > > > > When I go to the end of the line of the IF and press the Inter key > > It completes my ENDIF > > Even though there is ENDIF at the end > > > > Is it okay? > > > > Thank you > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- From admin at allunix.ru Fri Jun 28 14:05:27 2019 From: admin at allunix.ru (Admin) Date: Fri, 28 Jun 2019 19:05:27 +0700 Subject: [Gambas-user] Complete an IF inside the IDE In-Reply-To: <20190628114745.M10340@455.co.il> References: <20190627214301.M25239@455.co.il> <37dd47c2-4988-c692-ba46-e068a8995336@gmail.com> <20190628114745.M10340@455.co.il> Message-ID: <2b079188-c9cd-e6ab-7465-d1e92cc7bd74@allunix.ru> No, your English was perfectly understandable. And I know this problem, which I never thought is the problem. But yes, im many cases Gambas keeps adding EndIf after you press Ruturn even there already is an End If in the code. More then that, sometimes it autocompletes strings not giving the opportunity to type in what I want, so I have to print it in some notepad and then copy and paste. That's kinda normal for software. Dmitry. 28.06.2019 18:53, Mayost Sharon ?????: > I'm sorry > Maybe because I do not know English well it's hard to understand me > And I use Google translation which is not accurate > > If you paste the code as it is with the space > Then go to the end of the line: If sString Then > And press the ENTER key > The IDE completes another ENDIF > > ---------- Original Message ----------- > From: T Lee Davidson > To: user at lists.gambas-basic.org > Sent: Thu, 27 Jun 2019 21:28:34 -0400 > Subject: Re: [Gambas-user] Complete an IF inside the IDE > >> I'm not sure what you are saying. I was following you until, "Even though >> there is ENDIF at the end" >> >> There is only one ENDIF in that code, and it matches the single IF. The >> whitespace before the IF is irrelevant. >> >> ___ >> Lee >> >> On 6/27/19 5:43 PM, Mayost Sharon wrote: >>> hello >>> >>> When I write code: >>> >>> Public Sub Main() >>> Dim sString As String >>> If sString Then >>> Else >>> Endif >>> End >>> >>> Note that there is a space before the IF >>> >>> When I go to the end of the line of the IF and press the Inter key >>> It completes my ENDIF >>> Even though there is ENDIF at the end >>> >>> Is it okay? >>> >>> Thank you >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > From cedron at exede.net Fri Jun 28 15:31:14 2019 From: cedron at exede.net (Cedron Dawg) Date: Fri, 28 Jun 2019 09:31:14 -0400 (EDT) Subject: [Gambas-user] Pale markers under Ubuntu Mate In-Reply-To: <65561e60-f468-4d04-debd-ab16bf883250@gmail.com> References: <65561e60-f468-4d04-debd-ab16bf883250@gmail.com> Message-ID: <245672734.1776981.1561728674004.JavaMail.zimbra@exede.net> Have you tried installing the Gambas' Qt5 components? I recently upgraded to Linux Mint 19 Mate and had all sorts of display problems, including the too faint highlight bars. After installing the Qt5 components, everything is looking much better meaning the IDE and my programs. ----- Original Message ----- From: "adamnt42" To: "user" Sent: Friday, June 28, 2019 7:45:05 AM Subject: Re: [Gambas-user] Pale markers under Ubuntu Mate I don't know the answer Rolf, but I do "feel your pain". It seems to me that Mate desktop over the last 3-4 months has begun to tell me how I should be living my life so to speak. I am fairly sure that I have seen the same effects, both within and external to Gambas. I have tried the theme change prayer and other more arcane incantations but it does seem that sometimes Mate tends to think that "an extremely very light shade of grey/blue" is a suitable highlight. ymmv. Sometimes I am tempted to go back to KDE. No, disregard that. :-( b From rwe-sse at osnanet.de Fri Jun 28 16:26:19 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 28 Jun 2019 16:26:19 +0200 Subject: [Gambas-user] Pale markers under Ubuntu Mate In-Reply-To: <245672734.1776981.1561728674004.JavaMail.zimbra@exede.net> References: <65561e60-f468-4d04-debd-ab16bf883250@gmail.com> <245672734.1776981.1561728674004.JavaMail.zimbra@exede.net> Message-ID: <3ec9078c-16e5-79a6-3284-1a25efc22458@osnanet.de> Just tried it, but I need qt4.ext as well, and there is no qt5.ext equivalent. So, no way to test it :( Regards Rolf Am 28.06.19 um 15:31 schrieb Cedron Dawg: > Have you tried installing the Gambas' Qt5 components? I recently upgraded to Linux Mint 19 Mate and had all sorts of display problems, including the too faint highlight bars. After installing the Qt5 components, everything is looking much better meaning the IDE and my programs. > > ----- Original Message ----- > From: "adamnt42" > To: "user" > Sent: Friday, June 28, 2019 7:45:05 AM > Subject: Re: [Gambas-user] Pale markers under Ubuntu Mate > > I don't know the answer Rolf, but I do "feel your pain". It seems to me > that Mate desktop over the last 3-4 months has begun to tell me how I > should be living my life so to speak. > I am fairly sure that I have seen the same effects, both within and > external to Gambas. I have tried the theme change prayer and other more > arcane incantations but it does seem that sometimes Mate tends to think > that "an extremely very light shade of grey/blue" is a suitable highlight. > ymmv. > Sometimes I am tempted to go back to KDE. No, disregard that. > :-( > b > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > From rwe-sse at osnanet.de Fri Jun 28 16:29:48 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 28 Jun 2019 16:29:48 +0200 Subject: [Gambas-user] Pale markers under Ubuntu Mate In-Reply-To: <65561e60-f468-4d04-debd-ab16bf883250@gmail.com> References: <65561e60-f468-4d04-debd-ab16bf883250@gmail.com> Message-ID: <807755c8-ef5b-a987-76b4-25c5bd0746bd@osnanet.de> On this system, I'm bound to Mate (diskless stations on LTSP server), KDE is way too slow here. But yes, I like KDE, it's on my computer at home. Mate does have a way to tweak everything, it's a bit like a Registry, but there is no comprehensive list of the options (or at least I haven't found it yet). But that might be the place where you would find the solution to this. Regards Rolf Am 28.06.19 um 13:45 schrieb Bruce: > I don't know the answer Rolf, but I do "feel your pain". It seems to me > that Mate desktop over the last 3-4 months has begun to tell me how I > should be living my life so to speak. > I am fairly sure that I have seen the same effects, both within and > external to Gambas. I have tried the theme change prayer and other more > arcane incantations but it does seem that sometimes Mate tends to think > that "an extremely very light shade of grey/blue" is a suitable highlight. > ymmv. > Sometimes I am tempted to go back to KDE. No, disregard that. > :-( > b > > > On 28/6/19 9:01 pm, Rolf-Werner Eilert wrote: >> This is a problem which might have to do with Mate rather than with >> Gambas, but maybe someone has had a similar problem. >> >> In my system, the marker bars in lists and grid views etc. are rather >> pale so it's somewhat difficult to make out "which item is selected >> right now". >> >> Is there a way to control this by some Gambas code, or would you say >> "change the theme"? I'm happy with theme and preferences on my system >> so far, and this problem seems to be only in Gambas. >> >> Thanks for any input. >> >> Rolf >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > From kicking177 at gmail.com Fri Jun 28 17:09:35 2019 From: kicking177 at gmail.com (KKing) Date: Fri, 28 Jun 2019 16:09:35 +0100 Subject: [Gambas-user] Deploying a Gambas project and Gambas runtime on Debian 9 for version not in Debian repos Message-ID: << What option(s) do I have to deploy a gambas 3.13.0 project (executable), Gambas runtime and the needed Gambas components to Debian 9 unit. >> So I came across Project --> Make --> Make installation Package Is this the answer I wanted? Does it include a Gambas runtime and components? And if yes, does this mean I should uninstall the Debian repo's version I had installed of runtime and selected components? K. From kicking177 at gmail.com Fri Jun 28 19:06:05 2019 From: kicking177 at gmail.com (KKing) Date: Fri, 28 Jun 2019 18:06:05 +0100 Subject: [Gambas-user] Deploying a Gambas project and Gambas runtime on Message-ID: <179721f5-42ae-e652-593e-52f234c42ee0@gmail.com> So I uninstalled gambas runtime 3.9.1-3 runtime and handful of components and attempted to gebi the deb file created by Gambas make installation package. It starts... but stops with << This package is uninstallable Dependency is not satisfiable: gambas3-runtime (>= 3.13) >> So was there an option I missed in the "make installation package" that I missed to select the runtime? If not could it be added as an option though presumably it, along with components, would need to be checked for version conflict with existing installed Gambas? On my dev unit with compiled from source (plus a Tobi patch) of 3.13.0 will there be a gambas3-runtime and where would it be? K. > ><< >What option(s) do I have to deploy a gambas 3.13.0 project (executable), >Gambas runtime and the needed Gambas components to Debian 9 unit. >>> > >So I came across Project --> Make --> Make installation Package >Is this the answer I wanted? >Does it include a Gambas runtime and components? >And if yes, does this mean I should uninstall the Debian repo's version >I had installed of runtime and selected components? From g4mba5 at gmail.com Fri Jun 28 19:52:13 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 28 Jun 2019 19:52:13 +0200 Subject: [Gambas-user] Deploying a Gambas project and Gambas runtime on In-Reply-To: <179721f5-42ae-e652-593e-52f234c42ee0@gmail.com> References: <179721f5-42ae-e652-593e-52f234c42ee0@gmail.com> Message-ID: <0fbbdc11-9fa8-c140-c362-43b3a5c8479e@gmail.com> Le 28/06/2019 ? 19:06, KKing a ?crit?: > So I uninstalled gambas runtime 3.9.1-3 runtime and handful of > components and attempted to gebi the deb file created by Gambas make > installation package. > > It starts... but stops with > << > This package is uninstallable > Dependency is not satisfiable: gambas3-runtime (>= 3.13) > >> > > So was there an option I missed in the "make installation package" that > I missed to select the runtime? > > If not could it be added as an option though presumably it, along with > components, would need to be checked for version conflict with existing > installed Gambas? > > On my dev unit with compiled from source (plus a Tobi patch) of 3.13.0 > will there be a gambas3-runtime and where would it be? > > K. > The IDE always create a package that depends on the Gambas version installed on the system. I will add a text field to allows to select a older version, when you know that your program actually can be run with an older version of Gambas. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Fri Jun 28 19:52:37 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 28 Jun 2019 19:52:37 +0200 Subject: [Gambas-user] Deploying a Gambas project and Gambas runtime on In-Reply-To: <0fbbdc11-9fa8-c140-c362-43b3a5c8479e@gmail.com> References: <179721f5-42ae-e652-593e-52f234c42ee0@gmail.com> <0fbbdc11-9fa8-c140-c362-43b3a5c8479e@gmail.com> Message-ID: <6add1498-f32e-b74c-ead9-4866acc53477@gmail.com> Le 28/06/2019 ? 19:52, Beno?t Minisini a ?crit?: > I will add a text field to allows to select a older version, when you to allow* -- Beno?t Minisini From kicking177 at gmail.com Fri Jun 28 20:32:00 2019 From: kicking177 at gmail.com (KKing) Date: Fri, 28 Jun 2019 19:32:00 +0100 Subject: [Gambas-user] Deploying a Gambas project and Gambas runtime on Debian 9 for version not in Debian repos Message-ID: <24f2f5ae-5da4-dd38-8561-d5d73041f78b@gmail.com> << I will add a text field to allows to select a older version, when you to allow* >> urm, if I understand that, that will not help me in this case.... I had some issue with pre 3.13.0 (inexplicable seg faults) which disappeared once using 3.13.0. So I took a look at the contents of the debian 9 gambas3-runtime 3.9.1-3 package I copied all my 3.13.0 version of these files over to appropriate places ... just copying files ... no joy I reinstalled? 9 gambas3-runtime 3.9.1-3 package and then copied over my 3.13.0 files over the top .... no joy .. So I guess my next step is to reproduce being able to build the debian 9 gambas3-runtime 3.9.1-3 package myself, and then substitute with my 3.13.0 files and the critical bit I presume update the version references that must be being checked. Think that will be for another day. K. From kicking177 at gmail.com Sat Jun 29 09:37:52 2019 From: kicking177 at gmail.com (KKing) Date: Sat, 29 Jun 2019 08:37:52 +0100 Subject: [Gambas-user] Deploying a Gambas project and Gambas runtime on Debian 9 for version not in Debian repos Message-ID: <4471f653-fd26-b36a-397d-35a41aceb4d8@gmail.com> So I'm forgetting the package installation for now. Realised I only needed to copy over the gb components I need. While system reports it's only using 3.9.1-3 I've actually over-ridden with 3.13.0 files so my gambas executable now runs. Will need to revisit, to try and do "properly". K. From kicking177 at gmail.com Sat Jun 29 09:41:40 2019 From: kicking177 at gmail.com (KKing) Date: Sat, 29 Jun 2019 08:41:40 +0100 Subject: [Gambas-user] IDE gbx3: warning: 514 allocation(s) non freed - Revisited Message-ID: <641d50b4-1136-7250-f949-6ee559b5b237@gmail.com> << gbx3: warning:? 514 allocation(s) non freed >> So If you get this in the IDE does that mean the compiled executable will have memory leakage? Is the memory lost during program usage get recovered when the program terminates or does it require a reboot? K. From g4mba5 at gmail.com Sat Jun 29 09:49:23 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 29 Jun 2019 09:49:23 +0200 Subject: [Gambas-user] IDE gbx3: warning: 514 allocation(s) non freed - Revisited In-Reply-To: <641d50b4-1136-7250-f949-6ee559b5b237@gmail.com> References: <641d50b4-1136-7250-f949-6ee559b5b237@gmail.com> Message-ID: <527eefd3-7178-f21e-7c57-84140a561dec@gmail.com> Le 29/06/2019 ? 09:41, KKing a ?crit?: > << > gbx3: warning:? 514 allocation(s) non freed > >> > > So If you get this in the IDE does that mean the compiled executable > will have memory leakage? Yes. If you class list dump before, it's a circular reference, i.e. not an interpreter bug. If you don't have a class list dump before, it's an interpreter bug, and I need you to send a project that reproduces the leak. > > Is the memory lost during program usage get recovered when the program > terminates or does it require a reboot? You are using Linux, so every resource used by a process is freed by the system when the program terminates. Nothing related to Gambas here. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Jun 29 10:24:03 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 29 Jun 2019 10:24:03 +0200 Subject: [Gambas-user] webpage editor In-Reply-To: <20190623164441.M94240@455.co.il> References: <20190623164441.M94240@455.co.il> Message-ID: Le 23/06/2019 ? 18:44, Mayost Sharon a ?crit?: > hello > > I try to explain the problem > > When I register <%%> everything is fine > But if I delete the last percent sign and move up with the cursor up > All HTML code gets a space and it destroys HTML > > I am attaching 2 photos > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > The behaviour is normal. Everthing between <% et %> is rewritten as Gambas code as soon as the cursor moves to another line. What do you expect? -- Beno?t Minisini From kicking177 at gmail.com Sat Jun 29 11:24:26 2019 From: kicking177 at gmail.com (KKing) Date: Sat, 29 Jun 2019 10:24:26 +0100 Subject: [Gambas-user] IDE gbx3: warning: 514 allocation(s) non freed - Revisited Message-ID: Hi Benoit, << If you don't have a class list dump before, it's an interpreter bug, and >> What is a "Class list dump" how do I action/perform that? << You are using Linux, so every resource used by a process is freed by the system when the program terminates. Nothing related to Gambas here. >> excellent K. From shordi at gmail.com Sat Jun 29 20:56:20 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sat, 29 Jun 2019 20:56:20 +0200 Subject: [Gambas-user] How to create packages so that they do not appear in the system menu? In-Reply-To: <5fa6700c-28cb-488f-c7e1-bbecc550f788@ajm-software.com> References: <5fa6700c-28cb-488f-c7e1-bbecc550f788@ajm-software.com> Message-ID: In the end I opted for the first solution, a single installation package. It is a little more tricky to manage because in the development machine you have to create the installation package of program A and then copy the executable in the .hidden of program B, but in the customers machines it is all simpler because you only have to install and/or update a single package. Of course a change in Program A should implies a update in Program B but its not a big deal. Program A is very simple. ?? Thank you all. Best regards El jue., 20 jun. 2019 a las 17:16, Tony Morehen () escribi?: > There are two approaches: > > 1) Single installation package. This approach avoids the creation of a > desktop file for A. No desktop file, no entry in the system menu. > > Do not create an installation package for program A. Make sure that > package A's compile is up to date. > > Create an installation package for program B. When you get to the page > titled 8 Extra Files, add an entry for program A. It's destination should > be either somewhere on your path eg /usr/bin or /usr/local/bin or an > explicit location known to program B. Also add any files needed by A. > > 2) Two installation packages. This approach creates a desktop file for A > but adds a parameter to to the desktop file that hides it from the system > menu. > > Create an installation package for program A. When you get to the page > titled 6 Desktop Configuration file, add the following to the bottom box: > > NoDisplay=true > > Create an installation package for program B. When you get to the page > titled 8 Extra Files, do not add an entry for program A. > On 2019-06-19 2:28 a.m., Jorge Carri?n wrote: > > I have a project A that is launched from other project B and I don't want > that A project appears on system menu. > What kind of configuration must I set on packages creation? > > Best Regards > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Sat Jun 29 21:55:13 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Sat, 29 Jun 2019 22:55:13 +0300 Subject: [Gambas-user] webpage editor In-Reply-To: <20190623164441.M94240@455.co.il> References: <20190623164441.M94240@455.co.il> Message-ID: <20190629195500.M42026@455.co.il> Hello Look at the picture I attached What happened to the rest of the code? Added unwanted spaces and it destroys HTML ---------- Original Message ----------- From: "Mayost Sharon" To: Gambas Mailing List Sent: Sun, 23 Jun 2019 19:44:36 +0300 Subject: [Gambas-user] webpage editor > hello > > I try to explain the problem > > When I register <%%> everything is fine > But if I delete the last percent sign and move up with the cursor up > All HTML code gets a space and it destroys HTML > > I am attaching 2 photos ------- End of Original Message ------- From bagonergi at gmail.com Sun Jun 30 13:58:10 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 30 Jun 2019 13:58:10 +0200 Subject: [Gambas-user] Division by zero in TextEditor Message-ID: Hi Benoit, a friend of ours from Gambas-it.org is receiving this error from the TextEditor: ^TextEditor.SideBar_MouseMove.5258: #26: Division by zero Have an idea of why this happens, or need the code? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jun 30 15:00:28 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 30 Jun 2019 15:00:28 +0200 Subject: [Gambas-user] PPA segmentation error on Xubuntu 18.04.02 Message-ID: Compiling Gambas3 from PPA with these commands I get this error: $ sudo add-apt-repository ppa:gambas-team/gambas3 $ sudo apt-get update $ sudo apt-get install gambas3 ~$ gambas3 gb.gui.qt: warning: 'gb.qt5' component not found, using 'gb.qt4' instead Segmentation error (core dump created) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jun 30 15:07:27 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 30 Jun 2019 15:07:27 +0200 Subject: [Gambas-user] Division by zero in TextEditor In-Reply-To: References: Message-ID: Il giorno dom 30 giu 2019 alle ore 13:58 Gianluigi ha scritto: > Hi Benoit, > a friend of ours from Gambas-it.org is receiving this error from the > TextEditor: > > ^TextEditor.SideBar_MouseMove.5258: #26: Division by zero > > Have an idea of why this happens, or need the code? > > Regards > Gianluigi > Even our friend has Gambas from PPA, Xubuntu 18.04.02 and gets (not always) segmentation error. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jun 30 16:57:54 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 30 Jun 2019 16:57:54 +0200 Subject: [Gambas-user] Division by zero in TextEditor In-Reply-To: References: Message-ID: <6eb2970d-2c36-0247-8ceb-9c288005dd8e@gmail.com> Le 30/06/2019 ? 13:58, Gianluigi a ?crit?: > Hi Benoit, > a friend of ours from Gambas-it.org is receiving this error from the > TextEditor: > > ^TextEditor.SideBar_MouseMove.5258: #26: Division by zero > > Have an idea of why this happens, or need the code? > > Regards > Gianluigi > With which version of Gambas? -- Beno?t Minisini From bagonergi at gmail.com Sun Jun 30 17:18:56 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 30 Jun 2019 17:18:56 +0200 Subject: [Gambas-user] Division by zero in TextEditor In-Reply-To: <6eb2970d-2c36-0247-8ceb-9c288005dd8e@gmail.com> References: <6eb2970d-2c36-0247-8ceb-9c288005dd8e@gmail.com> Message-ID: Il giorno dom 30 giu 2019 alle ore 16:58 Beno?t Minisini ha scritto: > Le 30/06/2019 ? 13:58, Gianluigi a ?crit : > > Hi Benoit, > > a friend of ours from Gambas-it.org is receiving this error from the > > TextEditor: > > > > ^TextEditor.SideBar_MouseMove.5258: #26: Division by zero > > > > Have an idea of why this happens, or need the code? > > > > Regards > > Gianluigi > > > > With which version of Gambas? > > -- > Beno?t Minisini > > The stable version. He has also tried compiling but always gets the same mistakes. I told him to try the development one, I await an answer. Regards gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jun 30 17:54:05 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 30 Jun 2019 17:54:05 +0200 Subject: [Gambas-user] Division by zero in TextEditor In-Reply-To: References: <6eb2970d-2c36-0247-8ceb-9c288005dd8e@gmail.com> Message-ID: Il giorno dom 30 giu 2019 alle ore 17:18 Gianluigi ha scritto: > > > Il giorno dom 30 giu 2019 alle ore 16:58 Beno?t Minisini > ha scritto: > >> Le 30/06/2019 ? 13:58, Gianluigi a ?crit : >> > Hi Benoit, >> > a friend of ours from Gambas-it.org is receiving this error from the >> > TextEditor: >> > >> > ^TextEditor.SideBar_MouseMove.5258: #26: Division by zero >> > >> > Have an idea of why this happens, or need the code? >> > >> > Regards >> > Gianluigi >> > >> >> With which version of Gambas? >> >> -- >> Beno?t Minisini >> >> > The stable version. > He has also tried compiling but always gets the same mistakes. > I told him to try the development one, I await an answer. > > Regards > gianluigi > The initial question of our friend was more articulated. "I installed (stable) from PPA on Xubuntu 18.04.02 and I get these malfunctions but not every time: If I open from menu sometimes it doesn't open if I do it from terminal sometimes I get segmentation error. When I open from the terminal I sometimes get: ^TextEditor.SideBar_MouseMove.5258: #26: Division by zero happens when I double click on the form. Last problem: some icons sometimes appear different from those chosen and much larger." Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Sun Jun 30 18:48:10 2019 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 30 Jun 2019 17:48:10 +0100 Subject: [Gambas-user] MediaView problems Message-ID: <0f3d984c-bb8d-6f66-330f-e926fc70276a@cogier.com> Hi, I can't get MediaView to recognise KeyPress, KeyRelease, MouseDown or MouseUp events. If the mouse wheel is rotated while over MediaView then the IDE shows up a Null error. Is this just me? There is an example program attached. Thanks, Charlie [System] Gambas=3.13 OperatingSystem=Linux Kernel=4.15.0-54-generic Architecture=x86_64 Distribution=Linux Mint 19.1 Tessa Desktop=CINNAMON Theme=Qt5CTProxy Language=en_GB.UTF-8 Memory=7848M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1404.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] CINNAMON_VERSION=4.0.10 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DERBY_HOME=/usr/lib/jvm/java-8-oracle/db DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=cinnamon GDM_LANG=en_GB 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= J2REDIR=/usr/lib/jvm/java-8-oracle/jre J2SDKDIR=/usr/lib/jvm/java-8-oracle JAVA_HOME=/usr/lib/jvm/java-8-oracle LANG=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 LC_ADDRESS=en_GB.UTF-8 LC_IDENTIFICATION=en_GB.UTF-8 LC_MEASUREMENT=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_NAME=en_GB.UTF-8 LC_NUMERIC=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_TELEPHONE=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin PWD= QT_ACCESSIBILITY=1 QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/1947,unix/:/tmp/.ICE-unix/1947 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2014 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh S_COLORS=auto 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:/var/lib/snapd/desktop 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_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- A non-text attachment was scrubbed... Name: MediaPlayer.tar Type: application/x-tar Size: 25088 bytes Desc: not available URL: From bagonergi at gmail.com Sun Jun 30 19:30:12 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 30 Jun 2019 19:30:12 +0200 Subject: [Gambas-user] MediaView problems In-Reply-To: <0f3d984c-bb8d-6f66-330f-e926fc70276a@cogier.com> References: <0f3d984c-bb8d-6f66-330f-e926fc70276a@cogier.com> Message-ID: the same happens here with the master. Regards Gianluigi Il giorno dom 30 giu 2019 alle ore 19:17 Charlie Ogier ha scritto: > Hi, > > I can't get MediaView to recognise KeyPress, KeyRelease, MouseDown or > MouseUp events. If the mouse wheel is rotated while over MediaView then > the IDE shows up a Null error. > > Is this just me? There is an example program attached. > > Thanks, > > Charlie > > [System] > Gambas=3.13 > OperatingSystem=Linux > Kernel=4.15.0-54-generic > Architecture=x86_64 > Distribution=Linux Mint 19.1 Tessa > Desktop=CINNAMON > Theme=Qt5CTProxy > Language=en_GB.UTF-8 > Memory=7848M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GStreamer=libgstreamer-1.0.so.0.1404.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] > CINNAMON_VERSION=4.0.10 > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DERBY_HOME=/usr/lib/jvm/java-8-oracle/db > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt5 > GDMSESSION=cinnamon > GDM_LANG=en_GB > 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= > J2REDIR=/usr/lib/jvm/java-8-oracle/jre > J2SDKDIR=/usr/lib/jvm/java-8-oracle > JAVA_HOME=/usr/lib/jvm/java-8-oracle > LANG=en_GB.UTF-8 > LANGUAGE=en_GB.UTF-8 > LC_ADDRESS=en_GB.UTF-8 > LC_IDENTIFICATION=en_GB.UTF-8 > LC_MEASUREMENT=en_GB.UTF-8 > LC_MONETARY=en_GB.UTF-8 > LC_NAME=en_GB.UTF-8 > LC_NUMERIC=en_GB.UTF-8 > LC_PAPER=en_GB.UTF-8 > LC_TELEPHONE=en_GB.UTF-8 > LC_TIME=en_GB.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > PAPERSIZE=a4 > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin > PWD= > QT_ACCESSIBILITY=1 > QT_QPA_PLATFORMTHEME=qt5ct > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1947,unix/:/tmp/.ICE-unix/1947 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=2014 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > S_COLORS=auto > 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:/var/lib/snapd/desktop > 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_DESKTOP=cinnamon > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Sun Jun 30 19:48:47 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 30 Jun 2019 19:48:47 +0200 Subject: [Gambas-user] MediaView problems In-Reply-To: <0f3d984c-bb8d-6f66-330f-e926fc70276a@cogier.com> References: <0f3d984c-bb8d-6f66-330f-e926fc70276a@cogier.com> Message-ID: <22763b92-2c62-4dbd-188f-10f00ee43560@gambas-buch.de> > I can't get MediaView to recognise KeyPress, KeyRelease, MouseDown or > MouseUp events. If the mouse wheel is rotated while over MediaView > then the IDE shows up a Null error. Is this just me? There is an > example program attached. Hi, the same mistake with me. With kind regards Hans [System] Gambas=3.13 OperatingSystem=Linux Kernel=4.15.0-54-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Gtk Language=de_DE.UTF-8 Memory=7893M -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jun 30 21:40:38 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 30 Jun 2019 21:40:38 +0200 Subject: [Gambas-user] MediaView problems In-Reply-To: <0f3d984c-bb8d-6f66-330f-e926fc70276a@cogier.com> References: <0f3d984c-bb8d-6f66-330f-e926fc70276a@cogier.com> Message-ID: Le 30/06/2019 ? 18:48, Charlie Ogier a ?crit?: > Hi, > > I can't get MediaView to recognise KeyPress, KeyRelease, MouseDown or > MouseUp events. If the mouse wheel is rotated while over MediaView then > the IDE shows up a Null error. > > Is this just me? There is an example program attached. > > Thanks, > > Charlie > It should be fixed with commit https://gitlab.com/gambas/gambas/commit/68e085bb1015e5f43282b7007362a61d3e61c97b. Regards, -- Beno?t Minisini