From bbruen at ...2308... Mon Apr 1 01:03:02 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 01 Apr 2013 09:33:02 +1030 Subject: [Gambas-user] Need a good idea - a slider with two handles Message-ID: <1364770982.19887.11.camel@...2688...> A user had a good idea and wants to know if we can build a form with sliders that control both the maxima and minima of various parameters. I have attached a mocked up picture of the sort of thing that is required for a "squeeze" filter i.e. a low bandpass combined with a high band-limiter. Similar things could be imagined for a "flange" type of filter. There are some controls in Gimp, for example (in second attachment) that further show what is required. I have made a couple of preliminary attempts to create a custom control in Gambas3 to do this but I am not getting very far. The problems are: a) being able to detect which handle the user is trying to move and b) stopping the min handle from exceeding the max handle and v.v. Has anyone attempted this type of control (successfully)? Has anyone got any good ideas? tia Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: Need a slider with two handles_005.png Type: image/png Size: 12389 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: -[triumph_adventurer_caferacer] (imported)-2.0 (RGB colour, 1 layer) 1273x713 ? GIMP_006.png Type: image/png Size: 193595 bytes Desc: not available URL: From sunblaster5 at ...626... Mon Apr 1 01:06:38 2013 From: sunblaster5 at ...626... (rocko) Date: Sun, 31 Mar 2013 16:06:38 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <5158B06F.5070908@...1...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> Message-ID: <5158C17E.4080307@...626...> Unzip the .ods file??? Ok you lost me. On 03/31/2013 02:53 PM, Beno?t Minisini wrote: > Le 31/03/2013 23:44, rocko a ?crit : >> I don't know much about the capabilities of Gambas writing to Libre Office, >> as I don't think I ever heard of it being done before. >> >> I would like to read the names and addresses from an SQLite data base >> and put them into a Libre Office Writer template(.ods). >> Is this possible? >> >> >> >> Using Gambas 3 on Linux Mint 14. >> > I do that for my job. > > I first creat a Write document (ods) where I put a special text > everywhere I want to replace something. For example: $(name), > $(address), $(town)... > > Than I unzip the *.ods file, and modify the 'contents.xml' file by > replacing the special text by their associated value. > > Beware that 'contents.xml' is XML, and so some characters have to be > quoted: & < > ' > > Once done, I zip the document back to an ods file. "Et voil? !". > From gambas at ...1... Mon Apr 1 01:25:27 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 01 Apr 2013 01:25:27 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <5158C17E.4080307@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> Message-ID: <5158C5E7.2030508@...1...> Le 01/04/2013 01:06, rocko a ?crit : > Unzip the .ods file??? > Ok you lost me. 'ods' is actually a zip file. If you unzip it, you will get a directory with a bunch of XML files (and JPG or PNG if you embed images in your documen). This the OpenOffice format. -- Beno?t Minisini From sunblaster5 at ...626... Mon Apr 1 01:32:04 2013 From: sunblaster5 at ...626... (rocko) Date: Sun, 31 Mar 2013 16:32:04 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <5158C5E7.2030508@...1...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> Message-ID: <5158C774.7040507@...626...> I actually tried that after sending my response. lo and behold! XML file woo hoo! So I assume I can just do a search thru th XML file and change things then re-save the file and re-zip it like you said. So how do I unzip and re-zip a file in Gambas?, sorry this is kinda new to me. Which kind of search functions does gambas have?? regex I assume, any others?? On 03/31/2013 04:25 PM, Beno?t Minisini wrote: > Le 01/04/2013 01:06, rocko a ?crit : >> Unzip the .ods file??? >> Ok you lost me. > 'ods' is actually a zip file. If you unzip it, you will get a directory > with a bunch of XML files (and JPG or PNG if you embed images in your > documen). This the OpenOffice format. > From gambas at ...1... Mon Apr 1 02:21:23 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 01 Apr 2013 02:21:23 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <5158C774.7040507@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> Message-ID: <5158D303.4000507@...1...> Le 01/04/2013 01:32, rocko a ?crit : > I actually tried that after sending my response. > lo and behold! XML file woo hoo! > > So I assume I can just do a search thru th XML file and change things > then re-save > the file and re-zip it like you said. > > > > So how do I unzip and re-zip a file in Gambas?, sorry this is kinda new > to me. SHELL "zip ..." WAIT SHELL "unzip ..." WAIT That run the shell commands as if you typed them in a terminal. There is a compression component that allows you to do the same thing without running external process, but it is a more complex to explain. > Which kind of search functions does gambas have?? regex I assume, any > others?? > I use Replace$(). No need for regexp. If your search pattern are like "$(field name)", you won't mix up with any OpenOffice XML syntax. Don't forget to look at XML format for correctly quoting characters that must be quoted. Regards, -- Beno?t Minisini From sunblaster5 at ...626... Mon Apr 1 02:23:58 2013 From: sunblaster5 at ...626... (rocko) Date: Sun, 31 Mar 2013 17:23:58 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <5158D303.4000507@...1...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> Message-ID: <5158D39E.6070706@...626...> Thanks, I'll give this a try. I'll post back if I have any problems. On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > Le 01/04/2013 01:32, rocko a ?crit : >> I actually tried that after sending my response. >> lo and behold! XML file woo hoo! >> >> So I assume I can just do a search thru th XML file and change things >> then re-save >> the file and re-zip it like you said. >> >> >> >> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda new >> to me. > SHELL "zip ..." WAIT > > SHELL "unzip ..." WAIT > > That run the shell commands as if you typed them in a terminal. > > There is a compression component that allows you to do the same thing > without running external process, but it is a more complex to explain. > >> Which kind of search functions does gambas have?? regex I assume, any >> others?? >> > I use Replace$(). No need for regexp. If your search pattern are like > "$(field name)", you won't mix up with any OpenOffice XML syntax. > > Don't forget to look at XML format for correctly quoting characters that > must be quoted. > > Regards, > From sunblaster5 at ...626... Mon Apr 1 04:01:36 2013 From: sunblaster5 at ...626... (rocko) Date: Sun, 31 Mar 2013 19:01:36 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <5158D303.4000507@...1...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> Message-ID: <5158EA80.8010501@...626...> Should there be a time after WAIT?? On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > Le 01/04/2013 01:32, rocko a ?crit : >> I actually tried that after sending my response. >> lo and behold! XML file woo hoo! >> >> So I assume I can just do a search thru th XML file and change things >> then re-save >> the file and re-zip it like you said. >> >> >> >> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda new >> to me. > SHELL "zip ..." WAIT > > SHELL "unzip ..." WAIT > > That run the shell commands as if you typed them in a terminal. > > There is a compression component that allows you to do the same thing > without running external process, but it is a more complex to explain. > >> Which kind of search functions does gambas have?? regex I assume, any >> others?? >> > I use Replace$(). No need for regexp. If your search pattern are like > "$(field name)", you won't mix up with any OpenOffice XML syntax. > > Don't forget to look at XML format for correctly quoting characters that > must be quoted. > > Regards, > From sunblaster5 at ...626... Mon Apr 1 04:19:16 2013 From: sunblaster5 at ...626... (rocko) Date: Sun, 31 Mar 2013 19:19:16 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <5158D303.4000507@...1...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> Message-ID: <5158EEA4.9060306@...626...> Ok I got this to unzip the .odt file, but where does it unzip to??? I looked in all my directories and I cannot find it. My Code: '/Gambas module file// // //Public nFile As File// //Public fName As String// // //Public Sub Main()// // // //fName = "/home/rocko/Documents/Proposal.odt"// // // // //If Exist(fName) Then// // testFile()// // Print "File found"// // Shell "unzip -v " & fname Wait// //// // Else// // Print "File not found" // // Print nFile// // Print fName// // Shell "ls"// //// //// //Endif// //End// // //Sub testFile()// //nFile = Open fName For Read Write// //End// // /OUPUT: /File found// //Archive: /home/rocko/Documents/Proposal.odt// // Length Method Size Cmpr Date Time CRC-32 Name// //-------- ------ ------- ---- ---------- ----- -------- ----// // 39 Stored 39 0% 2013-04-01 02:02 0c32c65e mimetype// // 17497 Stored 17497 0% 2013-04-01 02:02 5dc81dbb Thumbnails/thumbnail.png// // 15440 Defl:N 2492 84% 2013-04-01 02:02 3f9d5b20 content.xml// // 11846 Defl:N 2132 82% 2013-04-01 02:02 59c29432 styles.xml// // 9760 Defl:N 1753 82% 2013-04-01 02:02 6c2d9295 settings.xml// // 1138 Stored 1138 0% 2013-04-01 02:02 a931d5b8 meta.xml// // 899 Defl:N 261 71% 2013-04-01 02:02 d268f7b4 manifest.rdf// // 0 Defl:N 2 0% 2013-04-01 02:02 00000000 Configurations2/accelerator/current.xml// // 0 Stored 0 0% 2013-04-01 02:02 00000000 Configurations2/statusbar/// // 0 Stored 0 0% 2013-04-01 02:02 00000000 Configurations2/popupmenu/// // 0 Stored 0 0% 2013-04-01 02:02 00000000 Configurations2/images/Bitmaps/// // 0 Stored 0 0% 2013-04-01 02:02 00000000 Configurations2/progressbar/// // 0 Stored 0 0% 2013-04-01 02:02 00000000 Configurations2/toolbar/// // 0 Stored 0 0% 2013-04-01 02:02 00000000 Configurations2/toolpanel/// // 0 Stored 0 0% 2013-04-01 02:02 00000000 Configurations2/floater/// // 0 Stored 0 0% 2013-04-01 02:02 00000000 Configurations2/menubar/// // 1086 Defl:N 282 74% 2013-04-01 02:02 4aa75c8b META-INF/manifest.xml// //-------- ------- --- -------// // 57705 25596 56% 17 files/ On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > Le 01/04/2013 01:32, rocko a ?crit : >> I actually tried that after sending my response. >> lo and behold! XML file woo hoo! >> >> So I assume I can just do a search thru th XML file and change things >> then re-save >> the file and re-zip it like you said. >> >> >> >> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda new >> to me. > SHELL "zip ..." WAIT > > SHELL "unzip ..." WAIT > > That run the shell commands as if you typed them in a terminal. > > There is a compression component that allows you to do the same thing > without running external process, but it is a more complex to explain. > >> Which kind of search functions does gambas have?? regex I assume, any >> others?? >> > I use Replace$(). No need for regexp. If your search pattern are like > "$(field name)", you won't mix up with any OpenOffice XML syntax. > > Don't forget to look at XML format for correctly quoting characters that > must be quoted. > > Regards, > From sourceforge-raindog2 at ...94... Mon Apr 1 04:04:33 2013 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 31 Mar 2013 22:04:33 -0400 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <5158EA80.8010501@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <5158EA80.8010501@...626...> Message-ID: <5158EB31.1080802@...94...> On 03/31/2013 10:01 PM, rocko wrote: > Should there be a time after WAIT?? No, "WAIT" at the end of a SHELL command just makes it synchronous... the interpreter literally waits until the shell (and the program you're running inside it) exits. Rob From wally at ...2037... Mon Apr 1 06:09:26 2013 From: wally at ...2037... (wally) Date: Mon, 01 Apr 2013 06:09:26 +0200 Subject: [Gambas-user] svn c5606 ompile problem jit Message-ID: <7937361.ooeXl8d4vU@...3040...> SVN at revision 5606, on OpenSuse 12.2 make[2]: Entering directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.jit' make all-recursive make[3]: Entering directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.jit' Making all in src make[4]: Entering directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.jit/src' CC gb_jit_la-jit_runtime.lo jit_runtime.c: In function 'JR_borrow_variant': jit_runtime.c:177:35: error: macro "OBJECT_REF" passed 2 arguments, but takes just 1 jit_runtime.c:177:3: error: 'OBJECT_REF' undeclared (first use in this function) jit_runtime.c:177:3: note: each undeclared identifier is reported only once for each function it appears in jit_runtime.c: In function 'JR_variant_compi_less_than': jit_runtime.c:513:8: warning: variable 'variant' set but not used [-Wunused- but-set-variable] jit_runtime.c: In function 'JR_object_cast': jit_runtime.c:997:37: error: macro "OBJECT_REF" passed 2 arguments, but takes just 1 jit_runtime.c:997:4: error: 'OBJECT_REF' undeclared (first use in this function) jit_runtime.c: At top level: jit_runtime.c:180:15: warning: 'JR_date_to_float' defined but not used [- Wunused-function] jit_runtime.c:186:15: warning: 'JR_string_to_float' defined but not used [- Wunused-function] make[4]: *** [gb_jit_la-jit_runtime.lo] Error 1 make[4]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.jit/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.jit' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.jit' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk' make: *** [all] Error 2 From gambas at ...1... Mon Apr 1 12:35:57 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 01 Apr 2013 12:35:57 +0200 Subject: [Gambas-user] svn c5606 ompile problem jit In-Reply-To: <7937361.ooeXl8d4vU@...3040...> References: <7937361.ooeXl8d4vU@...3040...> Message-ID: <5159630D.30205@...1...> Le 01/04/2013 06:09, wally a ?crit : > SVN at revision 5606, on OpenSuse 12.2 > Fixed in revision #5607. Regards, -- Beno?t Minisini From taboege at ...626... Mon Apr 1 13:27:15 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 1 Apr 2013 13:27:15 +0200 Subject: [Gambas-user] Need a good idea - a slider with two handles In-Reply-To: <1364770982.19887.11.camel@...2688...> References: <1364770982.19887.11.camel@...2688...> Message-ID: <20130401112715.GA502@...2774...> On Mon, 01 Apr 2013, Bruce wrote: > A user had a good idea and wants to know if we can build a form with > sliders that control both the maxima and minima of various parameters. > > I have attached a mocked up picture of the sort of thing that is > required for a "squeeze" filter i.e. a low bandpass combined with a high > band-limiter. Similar things could be imagined for a "flange" type of > filter. > > There are some controls in Gimp, for example (in second attachment) that > further show what is required. > > I have made a couple of preliminary attempts to create a custom control > in Gambas3 to do this but I am not getting very far. The problems are: > a) being able to detect which handle the user is trying to move and > b) stopping the min handle from exceeding the max handle and v.v. > > Has anyone attempted this type of control (successfully)? > Has anyone got any good ideas? Sorry, I understood only half of what you said but the pictures hopefully told the rest. I have a project here where a guy implemented a Slider on his own to allow custom graphics in place of the handle. I never really read the sources of that project nor do I think that it's well written but maybe it can help you. Since the "HorizontalFader" (what this means, I don't know), which is the Slider, does not inherit the basic Slider itself but builds on UserControl there will certainly be something in there that can give you at least a clue about how to make one handle - and a second can't be too difficult then :-) Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: SliderProgressbar-0.0.11.tar.gz Type: application/octet-stream Size: 32164 bytes Desc: not available URL: From jussi.lahtinen at ...626... Mon Apr 1 18:59:47 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 1 Apr 2013 19:59:47 +0300 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <5158EEA4.9060306@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <5158EEA4.9060306@...626...> Message-ID: unzip takes -d switch for defining folder to extract files. Jussi On Mon, Apr 1, 2013 at 5:19 AM, rocko wrote: > Ok I got this to unzip the .odt file, but where does it unzip to??? > I looked in all my directories and I cannot find it. > > My Code: > '/Gambas module file// > // > //Public nFile As File// > //Public fName As String// > // > //Public Sub Main()// > // > // > //fName = "/home/rocko/Documents/Proposal.odt"// > // > // > // > //If Exist(fName) Then// > // testFile()// > // Print "File found"// > // Shell "unzip -v " & fname Wait// > //// > // Else// > // Print "File not found" // > // Print nFile// > // Print fName// > // Shell "ls"// > //// > //// > //Endif// > //End// > // > //Sub testFile()// > //nFile = Open fName For Read Write// > //End// > // > /OUPUT: > > /File found// > //Archive: /home/rocko/Documents/Proposal.odt// > // Length Method Size Cmpr Date Time CRC-32 Name// > //-------- ------ ------- ---- ---------- ----- -------- ----// > // 39 Stored 39 0% 2013-04-01 02:02 0c32c65e mimetype// > // 17497 Stored 17497 0% 2013-04-01 02:02 5dc81dbb > Thumbnails/thumbnail.png// > // 15440 Defl:N 2492 84% 2013-04-01 02:02 3f9d5b20 content.xml// > // 11846 Defl:N 2132 82% 2013-04-01 02:02 59c29432 styles.xml// > // 9760 Defl:N 1753 82% 2013-04-01 02:02 6c2d9295 settings.xml// > // 1138 Stored 1138 0% 2013-04-01 02:02 a931d5b8 meta.xml// > // 899 Defl:N 261 71% 2013-04-01 02:02 d268f7b4 manifest.rdf// > // 0 Defl:N 2 0% 2013-04-01 02:02 00000000 > Configurations2/accelerator/current.xml// > // 0 Stored 0 0% 2013-04-01 02:02 00000000 > Configurations2/statusbar/// > // 0 Stored 0 0% 2013-04-01 02:02 00000000 > Configurations2/popupmenu/// > // 0 Stored 0 0% 2013-04-01 02:02 00000000 > Configurations2/images/Bitmaps/// > // 0 Stored 0 0% 2013-04-01 02:02 00000000 > Configurations2/progressbar/// > // 0 Stored 0 0% 2013-04-01 02:02 00000000 > Configurations2/toolbar/// > // 0 Stored 0 0% 2013-04-01 02:02 00000000 > Configurations2/toolpanel/// > // 0 Stored 0 0% 2013-04-01 02:02 00000000 > Configurations2/floater/// > // 0 Stored 0 0% 2013-04-01 02:02 00000000 > Configurations2/menubar/// > // 1086 Defl:N 282 74% 2013-04-01 02:02 4aa75c8b > META-INF/manifest.xml// > //-------- ------- --- -------// > // 57705 25596 56% 17 files/ > > > On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > > Le 01/04/2013 01:32, rocko a ?crit : > >> I actually tried that after sending my response. > >> lo and behold! XML file woo hoo! > >> > >> So I assume I can just do a search thru th XML file and change things > >> then re-save > >> the file and re-zip it like you said. > >> > >> > >> > >> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda new > >> to me. > > SHELL "zip ..." WAIT > > > > SHELL "unzip ..." WAIT > > > > That run the shell commands as if you typed them in a terminal. > > > > There is a compression component that allows you to do the same thing > > without running external process, but it is a more complex to explain. > > > >> Which kind of search functions does gambas have?? regex I assume, any > >> others?? > >> > > I use Replace$(). No need for regexp. If your search pattern are like > > "$(field name)", you won't mix up with any OpenOffice XML syntax. > > > > Don't forget to look at XML format for correctly quoting characters that > > must be quoted. > > > > Regards, > > > > > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sunblaster5 at ...626... Mon Apr 1 19:01:53 2013 From: sunblaster5 at ...626... (rocko) Date: Mon, 01 Apr 2013 10:01:53 -0700 Subject: [Gambas-user] Cursor in wrong place in gambas 3 Message-ID: <5159BD81.3010806@...626...> I have a very strange and irritating problem in Gambas 3. The Cursor is off by about 2 characters, when I'm typing/editing code in the editor, the cursor is never where it supposed to be, it doesn't go to the end of a line or character/word, its back by 1 to 2 characters, Which makes it very hard to see where I'm typing or editing. Is this a bug?? Or is there a feature to change where the cursor is placed?? Using Gambas 3.1.1 on Linux Mint 14. From sunblaster5 at ...626... Mon Apr 1 19:02:49 2013 From: sunblaster5 at ...626... (rocko) Date: Mon, 01 Apr 2013 10:02:49 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <5158EEA4.9060306@...626...> Message-ID: <5159BDB9.90009@...626...> Thanks, after some googleing i discovered the -d option. On 04/01/2013 09:59 AM, Jussi Lahtinen wrote: > unzip takes -d switch for defining folder to extract files. > > Jussi > > > > On Mon, Apr 1, 2013 at 5:19 AM, rocko wrote: > >> Ok I got this to unzip the .odt file, but where does it unzip to??? >> I looked in all my directories and I cannot find it. >> >> My Code: >> '/Gambas module file// >> // >> //Public nFile As File// >> //Public fName As String// >> // >> //Public Sub Main()// >> // >> // >> //fName = "/home/rocko/Documents/Proposal.odt"// >> // >> // >> // >> //If Exist(fName) Then// >> // testFile()// >> // Print "File found"// >> // Shell "unzip -v " & fname Wait// >> //// >> // Else// >> // Print "File not found" // >> // Print nFile// >> // Print fName// >> // Shell "ls"// >> //// >> //// >> //Endif// >> //End// >> // >> //Sub testFile()// >> //nFile = Open fName For Read Write// >> //End// >> // >> /OUPUT: >> >> /File found// >> //Archive: /home/rocko/Documents/Proposal.odt// >> // Length Method Size Cmpr Date Time CRC-32 Name// >> //-------- ------ ------- ---- ---------- ----- -------- ----// >> // 39 Stored 39 0% 2013-04-01 02:02 0c32c65e mimetype// >> // 17497 Stored 17497 0% 2013-04-01 02:02 5dc81dbb >> Thumbnails/thumbnail.png// >> // 15440 Defl:N 2492 84% 2013-04-01 02:02 3f9d5b20 content.xml// >> // 11846 Defl:N 2132 82% 2013-04-01 02:02 59c29432 styles.xml// >> // 9760 Defl:N 1753 82% 2013-04-01 02:02 6c2d9295 settings.xml// >> // 1138 Stored 1138 0% 2013-04-01 02:02 a931d5b8 meta.xml// >> // 899 Defl:N 261 71% 2013-04-01 02:02 d268f7b4 manifest.rdf// >> // 0 Defl:N 2 0% 2013-04-01 02:02 00000000 >> Configurations2/accelerator/current.xml// >> // 0 Stored 0 0% 2013-04-01 02:02 00000000 >> Configurations2/statusbar/// >> // 0 Stored 0 0% 2013-04-01 02:02 00000000 >> Configurations2/popupmenu/// >> // 0 Stored 0 0% 2013-04-01 02:02 00000000 >> Configurations2/images/Bitmaps/// >> // 0 Stored 0 0% 2013-04-01 02:02 00000000 >> Configurations2/progressbar/// >> // 0 Stored 0 0% 2013-04-01 02:02 00000000 >> Configurations2/toolbar/// >> // 0 Stored 0 0% 2013-04-01 02:02 00000000 >> Configurations2/toolpanel/// >> // 0 Stored 0 0% 2013-04-01 02:02 00000000 >> Configurations2/floater/// >> // 0 Stored 0 0% 2013-04-01 02:02 00000000 >> Configurations2/menubar/// >> // 1086 Defl:N 282 74% 2013-04-01 02:02 4aa75c8b >> META-INF/manifest.xml// >> //-------- ------- --- -------// >> // 57705 25596 56% 17 files/ >> >> >> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: >>> Le 01/04/2013 01:32, rocko a ?crit : >>>> I actually tried that after sending my response. >>>> lo and behold! XML file woo hoo! >>>> >>>> So I assume I can just do a search thru th XML file and change things >>>> then re-save >>>> the file and re-zip it like you said. >>>> >>>> >>>> >>>> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda new >>>> to me. >>> SHELL "zip ..." WAIT >>> >>> SHELL "unzip ..." WAIT >>> >>> That run the shell commands as if you typed them in a terminal. >>> >>> There is a compression component that allows you to do the same thing >>> without running external process, but it is a more complex to explain. >>> >>>> Which kind of search functions does gambas have?? regex I assume, any >>>> others?? >>>> >>> I use Replace$(). No need for regexp. If your search pattern are like >>> "$(field name)", you won't mix up with any OpenOffice XML syntax. >>> >>> Don't forget to look at XML format for correctly quoting characters that >>> must be quoted. >>> >>> Regards, >>> >> >> ------------------------------------------------------------------------------ >> Own the Future-Intel® Level Up Game Demo Contest 2013 >> Rise to greatness in Intel's independent game demo contest. >> Compete for recognition, cash, and the chance to get your game >> on Steam. $5K grand prize plus 10 genre and skill prizes. >> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From linuxos at ...1896... Mon Apr 1 19:01:56 2013 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 1 Apr 2013 19:01:56 +0200 Subject: [Gambas-user] Problem to use TASK fork processes Message-ID: Hi Benoit, I have just question about how to use the TASK (fork process) and particularly how to return value from the TASK to the parent. I used all possibilities but nothing solve my problem, sometimes the parent of the Task(es) loses retourned value from the TASK. I send result from to the parent like that, it is good or not. ----------------------------- 1st methode: At the end of the Main() procedure of the TASK PRINT "RESULT" & Chr(140) & $Numero & Chr(140) & Resultat Into the parent: Procedure ProcStat_Read(Data as string) Print "(" & Str(LAST) & ") Data: " & Data End ----------------------------- 2nd methode: At the end of the Main() procedure of the TASK WRITE #1, "RESULT" & Chr(140) & $Numero & Chr(140) & Resultat Into the parent: Procedure ProcStat_Read(Data as string) Print "(" & Str(LAST) & ") Data: " & Data End ----------------------------- The gold of this program is to start many TASKs simultaneously to gain time but in fact it works better with 10 TASKs simultaneously and not very well with 1 TASK So how can be sure that the TASK sent me the result all of the time please ? Does I don't use the TASK object correctly ? Thank's in advance. Cordialement, Olivier Cruilles Mail: linuxos at ...1896... From linuxos at ...1896... Mon Apr 1 19:01:56 2013 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 1 Apr 2013 19:01:56 +0200 Subject: [Gambas-user] Problem to use TASK fork processes Message-ID: <4A92258A-6586-4E2B-A3AB-A49D687FCF98@...1896...> Hi Benoit, I have just question about how to use the TASK (fork process) and particularly how to return value from the TASK to the parent. I used all possibilities but nothing solve my problem, sometimes the parent of the Task(es) loses retourned value from the TASK. I send result from to the parent like that, it is good or not. ----------------------------- 1st methode: At the end of the Main() procedure of the TASK PRINT "RESULT" & Chr(140) & $Numero & Chr(140) & Resultat Into the parent: Procedure ProcStat_Read(Data as string) Print "(" & Str(LAST) & ") Data: " & Data End ----------------------------- 2nd methode: At the end of the Main() procedure of the TASK WRITE #1, "RESULT" & Chr(140) & $Numero & Chr(140) & Resultat Into the parent: Procedure ProcStat_Read(Data as string) Print "(" & Str(LAST) & ") Data: " & Data End ----------------------------- The gold of this program is to start many TASKs simultaneously to gain time but in fact it works better with 10 TASKs simultaneously and not very well with 1 TASK So how can be sure that the TASK sent me the result all of the time please ? Does I don't use the TASK object correctly ? Thank's in advance. Cordialement, Olivier Cruilles Mail: linuxos at ...1896... From oceanosoftlapalma at ...626... Mon Apr 1 22:16:11 2013 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Mon, 1 Apr 2013 21:16:11 +0100 Subject: [Gambas-user] Bugs in 5607 or before (last nemh update is also affected) Message-ID: Hi, I attach an example of the bugs detected. In my box I got name of the form #0 instead FMain. I also got signal 11 when you try to set one variable to a non-exists control with a try sentence Using gambas3 rev 5607 [System] OperatingSystem=Linux Kernel=3.5.0-26-generic Architecture=x86_64 Distribution=Ubuntu 12.10 Desktop=KDE4 Theme=Oxygen Language=es_ES.UTF-8 Memory=1996M [Libraries] Curl=libcurl.so.4.2.0 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.13 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.3 SDL=libSDL-1.2.so.0.11.4 From oceanosoftlapalma at ...626... Mon Apr 1 22:30:51 2013 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Mon, 1 Apr 2013 21:30:51 +0100 Subject: [Gambas-user] Bugs in 5607 or before (last nemh update is also affected) In-Reply-To: References: Message-ID: Opps, I forgot the attached file :-( 2013/4/1 Ricardo D?az Mart?n > Hi, > > I attach an example of the bugs detected. In my box I got name of the form > #0 instead FMain. > I also got signal 11 when you try to set one variable to a non-exists > control with a try sentence > > Using gambas3 rev 5607 > > [System] > OperatingSystem=Linux > Kernel=3.5.0-26-generic > Architecture=x86_64 > Distribution=Ubuntu 12.10 > Desktop=KDE4 > Theme=Oxygen > Language=es_ES.UTF-8 > Memory=1996M > > [Libraries] > Curl=libcurl.so.4.2.0 > GStreamer=libgstreamer-0.10.so.0.30.0 > GTK+=libgtk-x11-2.0.so.0.2400.13 > Poppler=libpoppler.so.28.0.0 > Qt4=libQtCore.so.4.8.3 > SDL=libSDL-1.2.so.0.11.4 > -------------- next part -------------- A non-text attachment was scrubbed... Name: FormName-0.0.1.tar.gz Type: application/x-gzip Size: 4948 bytes Desc: not available URL: From Karl.Reinl at ...2345... Mon Apr 1 22:40:08 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 01 Apr 2013 22:40:08 +0200 Subject: [Gambas-user] IDE Connection fails Message-ID: <1364848808.2468.11.camel@...40...> Salut, I try to add an connection to my project and fill the connection mask when I click to Database I get Neue Verbindung 01.png (Neue Verbindung 01.png), Neue Verbindung 01bis.png is the whole message And I know I entered the right pw., because when I enter the DB name by typing it, I can create a connection. So why my pw isn't taken, to read the Catalog? gambas3 r5595 -- Amicalement Charlie From karl.reinl at ...9... Mon Apr 1 23:16:10 2013 From: karl.reinl at ...9... (Karl Reinl) Date: Mon, 01 Apr 2013 23:16:10 +0200 Subject: [Gambas-user] IDE Connection fails Message-ID: <1364850970.3774.1.camel@...40...> Salut, I try to add an connection to my project and fill the connection mask when I click to Database I get Neue Verbindung 01.png , Neue Verbindung 01bis.png is the whole message And I know I entered the right pw., because when I enter the DB name by typing it, I can create a connection. So why my pw isn't taken, to read the Catalog? gambas3 r5595 -- Amicalement Charlie does not work with attachment today :-) -------------- next part -------------- A non-text attachment was scrubbed... Name: Neue Verbindung 01.png Type: image/png Size: 22116 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Neue Verbindung 01bis.png Type: image/png Size: 9334 bytes Desc: not available URL: From vuott at ...325... Tue Apr 2 00:28:17 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 1 Apr 2013 23:28:17 +0100 (BST) Subject: [Gambas-user] saving and loading id and password in login forms Message-ID: <1364855297.70813.YahooMailClassic@...3064...> Just to understand, in WebView what way is contemplated to manage (save and load) id and password in login forms? Automatical and easy-to-use internal functions, or via complex programer strategy? For exemple, in the classic yahoo mail access: https://login.yahoo.com/config/mail?.intl=it&.src=ym&.done=http://it.mail.yahoo.com&rl=1 Regards vuott From gambas at ...1... Tue Apr 2 00:33:55 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 02 Apr 2013 00:33:55 +0200 Subject: [Gambas-user] saving and loading id and password in login forms In-Reply-To: <1364855297.70813.YahooMailClassic@...3064...> References: <1364855297.70813.YahooMailClassic@...3064...> Message-ID: <515A0B53.8070805@...1...> Le 02/04/2013 00:28, Ru Vuott a ?crit : > Just to understand, in WebView what way is contemplated to manage (save and load) id and password in login forms? Automatical and easy-to-use internal functions, or via complex programer strategy? > > For exemple, in the classic yahoo mail access: > > https://login.yahoo.com/config/mail?.intl=it&.src=ym&.done=http://it.mail.yahoo.com&rl=1 > > > Regards > vuott > I think that programming is needed : finding all login / password fields in the entire HTML page and its sub frames, and storing them with the desktop wallet (Desktop.Passwords). -- Beno?t Minisini From sunblaster5 at ...626... Tue Apr 2 01:36:41 2013 From: sunblaster5 at ...626... (rocko) Date: Mon, 01 Apr 2013 16:36:41 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <5158D303.4000507@...1...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> Message-ID: <515A1A09.6080407@...626...> Not sure I'm using /Replace$/ correctly. I want to replace instance of $(Name) in the XML file with the value of the /mName/ variable Code: /xName = "home/rocko/Zip/content.xml"// // newFile = Replace$(xName, "$(Name)", mName)/ Of course this doesn't work, But I don't know why On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > Le 01/04/2013 01:32, rocko a ?crit : >> I actually tried that after sending my response. >> lo and behold! XML file woo hoo! >> >> So I assume I can just do a search thru th XML file and change things >> then re-save >> the file and re-zip it like you said. >> >> >> >> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda new >> to me. > SHELL "zip ..." WAIT > > SHELL "unzip ..." WAIT > > That run the shell commands as if you typed them in a terminal. > > There is a compression component that allows you to do the same thing > without running external process, but it is a more complex to explain. > >> Which kind of search functions does gambas have?? regex I assume, any >> others?? >> > I use Replace$(). No need for regexp. If your search pattern are like > "$(field name)", you won't mix up with any OpenOffice XML syntax. > > Don't forget to look at XML format for correctly quoting characters that > must be quoted. > > Regards, > From gambas.fr at ...626... Tue Apr 2 12:34:11 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 2 Apr 2013 12:34:11 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <515A1A09.6080407@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> Message-ID: Le 2 avr. 2013 01:37, "rocko" a ?crit : > > Not sure I'm using /Replace$/ correctly. > I want to replace instance of $(Name) in the XML file > with the value of the /mName/ variable > > Code: > /xName = "home/rocko/Zip/content.xml"// > // newFile = Replace$(xName, "$(Name)", mName)/ Newfile=replace (file. Load(xname), "$(Name )",mname ) File. Save(xname, newfile) > > Of course this doesn't work, But I don't know why > > On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > > Le 01/04/2013 01:32, rocko a ?crit : > >> I actually tried that after sending my response. > >> lo and behold! XML file woo hoo! > >> > >> So I assume I can just do a search thru th XML file and change things > >> then re-save > >> the file and re-zip it like you said. > >> > >> > >> > >> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda new > >> to me. > > SHELL "zip ..." WAIT > > > > SHELL "unzip ..." WAIT > > > > That run the shell commands as if you typed them in a terminal. > > > > There is a compression component that allows you to do the same thing > > without running external process, but it is a more complex to explain. > > > >> Which kind of search functions does gambas have?? regex I assume, any > >> others?? > >> > > I use Replace$(). No need for regexp. If your search pattern are like > > "$(field name)", you won't mix up with any OpenOffice XML syntax. > > > > Don't forget to look at XML format for correctly quoting characters that > > must be quoted. > > > > Regards, > > > > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Tue Apr 2 12:38:09 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 2 Apr 2013 12:38:09 +0200 Subject: [Gambas-user] Need a good idea - a slider with two handles In-Reply-To: <20130401112715.GA502@...2774...> References: <1364770982.19887.11.camel@...2688...> <20130401112715.GA502@...2774...> Message-ID: You need to use a usercontrol and a drawing area. Then withvthe draw class all becomebpossible Le 1 avr. 2013 13:30, "Tobias Boege" a ?crit : > On Mon, 01 Apr 2013, Bruce wrote: > > A user had a good idea and wants to know if we can build a form with > > sliders that control both the maxima and minima of various parameters. > > > > I have attached a mocked up picture of the sort of thing that is > > required for a "squeeze" filter i.e. a low bandpass combined with a high > > band-limiter. Similar things could be imagined for a "flange" type of > > filter. > > > > There are some controls in Gimp, for example (in second attachment) that > > further show what is required. > > > > I have made a couple of preliminary attempts to create a custom control > > in Gambas3 to do this but I am not getting very far. The problems are: > > a) being able to detect which handle the user is trying to move and > > b) stopping the min handle from exceeding the max handle and v.v. > > > > Has anyone attempted this type of control (successfully)? > > Has anyone got any good ideas? > > Sorry, I understood only half of what you said but the pictures hopefully > told the rest. I have a project here where a guy implemented a Slider on > his > own to allow custom graphics in place of the handle. I never really read > the > sources of that project nor do I think that it's well written but maybe it > can help you. > > Since the "HorizontalFader" (what this means, I don't know), which is the > Slider, does not inherit the basic Slider itself but builds on UserControl > there will certainly be something in there that can give you at least a > clue > about how to make one handle - and a second can't be too difficult then :-) > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Tue Apr 2 16:17:35 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 2 Apr 2013 17:17:35 +0300 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <515A1A09.6080407@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> Message-ID: Here is the documentation page for commands: http://www.gambasdoc.org/help/lang?v3 And this is for replace command: http://gambasdoc.org/help/lang/replace?v3 Jussi On Tue, Apr 2, 2013 at 2:36 AM, rocko wrote: > Not sure I'm using /Replace$/ correctly. > I want to replace instance of $(Name) in the XML file > with the value of the /mName/ variable > > Code: > /xName = "home/rocko/Zip/content.xml"// > // newFile = Replace$(xName, "$(Name)", mName)/ > > Of course this doesn't work, But I don't know why > > On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > > Le 01/04/2013 01:32, rocko a ?crit : > >> I actually tried that after sending my response. > >> lo and behold! XML file woo hoo! > >> > >> So I assume I can just do a search thru th XML file and change things > >> then re-save > >> the file and re-zip it like you said. > >> > >> > >> > >> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda new > >> to me. > > SHELL "zip ..." WAIT > > > > SHELL "unzip ..." WAIT > > > > That run the shell commands as if you typed them in a terminal. > > > > There is a compression component that allows you to do the same thing > > without running external process, but it is a more complex to explain. > > > >> Which kind of search functions does gambas have?? regex I assume, any > >> others?? > >> > > I use Replace$(). No need for regexp. If your search pattern are like > > "$(field name)", you won't mix up with any OpenOffice XML syntax. > > > > Don't forget to look at XML format for correctly quoting characters that > > must be quoted. > > > > Regards, > > > > > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lists at ...2828... Tue Apr 2 17:09:27 2013 From: lists at ...2828... (Christer Johansson) Date: Tue, 2 Apr 2013 17:09:27 +0200 Subject: [Gambas-user] The MagPi Magazine Message-ID: <000001ce2fb4$12c40ca0$0f00a8c0@...2829...> This may be old news for some and I hope it's not to much OT... The MagPi is a free magazine focused on the Raspberry Pi and have some good information if you are just starting out. http://themagpi.com/ Maybe a Gambas 3 article in this magazine would let more people know about Gambas 3 and what it can do? If someone have something and are willing to share just e-mail the editor at editor at ...3119... From lists at ...2828... Tue Apr 2 16:53:40 2013 From: lists at ...2828... (Christer Johansson) Date: Tue, 2 Apr 2013 16:53:40 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <5121F5DB.6060603@...1...> Message-ID: <000001ce2fb1$dea78340$0f00a8c0@...2829...> Finally got some free time to get back into Gambas and I've been trying to get I/O interrupt to work on the Raspberry Pi. I made a simple CLI test program with the following code... MMain.Module ------------ ' Gambas module file ' Setting up shared library wiringPi with bcm2835 pin naming Public Extern wiringPiSetupGpio() As Integer In "libwiringPi:1" Public Extern wiringPiISR(iPin As Integer, iEdgeType As Integer, pFunction As Pointer) As Integer In "libwiringPi:1" Public Sub Main() ' Init library If wiringPiSetupGpio() = 0 Then Print "wiringPi Init OK..." Else Print "wiringPi Init Failed!" Quit Endif ' Set up falling edge interrupt (1) on GPIO18 pin. Pin is connected to 3.3V via 10k pullup wiringPiISR(18, 1, Class1.InterruptHandler) ' Loop forever Do Wait 1 Print "Waiting...." Loop End Class1.class ------------ ' Gambas class file Export Static Public Function InterruptHandler() As Integer Print "IRQ handler activated" End Code compiles OK but when I pull GPIO18 pin low (i.e generating the interrupt) it crashes with a "Stack overflow" error message. Without doubt it's me doing something wrong but after 2 days trying I wonder if anyone see what I'm missing?? Attached is also a C example that uses the same library. Also if anyone is interested in the latest (130207) libwiringPi.so file just let me know and I will send it to the list... PS: I'm currently still on Gambas 3.3.4... [System] OperatingSystem=Linux Kernel=3.6.11+ Architecture=armv6l Memory=188880 kB DistributionVendor=debian DistributionRelease=6.0.5 Desktop=Xfce [Gambas 2] Version=2.24.0 Path=/usr/bin/gbx2 [Gambas 3] Version=3.3.4 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.6.3 GTK+=libgtk-x11-2.0.so.0.2000.1 > -----Original Message----- > From: Beno?t Minisini [mailto:gambas at ...1...] > Sent: Monday, February 18, 2013 10:35 AM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Shared WiringPi library for RasPi > > > Le 18/02/2013 10:12, Christer Johansson a ?crit : > > Now a question to all the C pro's... I'm hoping to be able to get HW > > interrupts working on the GPIO with Gambas 3. Declaring > delay() above > > was easy enough but the interrupt function looks like... > > > > int wiringPiISR (int pin, int edgeType, void (*function)(void)); > > > > So how do you declare the above in Gambas 3? I.e register a > function that > > will be called to handle the interrupt? Any pointers appreciated... > > > > Extern wiringPiIsr(iPin As Integer, iEdgeType As Integer, pFunction As Pointer) In "lib..." > > ... > > And then you use the name of a static function as 'pFunction' argument when calling wiringPiIsr. > > Gambas will automatically create a internal callback that will execute the Gambas > function through the interpreter as if it would be called directly like a C function. > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------------------- > ---------------- > The Go Parallel Website, sponsored by Intel - in partnership > with Geeknet, > is your hub for all things parallel software development, > from weekly thought > leadership blogs to news, videos, case studies, tutorials, tech docs, > whitepapers, evaluation guides, and opinion stories. Check > out the most > recent posts - join the conversation now. > http://goparallel.sourceforge.net/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: isr.c Type: application/octet-stream Size: 2627 bytes Desc: not available URL: From willy at ...2734... Tue Apr 2 18:54:41 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 02 Apr 2013 18:54:41 +0200 Subject: [Gambas-user] Running Sudo using Exec acts very differently from distro to distro!! Message-ID: <1364921681.3056.33.camel@...3024...> Last post on this (see topic: Strange problem with running Shell on Fedora) my executable run on Fedora. Day after it didn't run anymore (and I changed nothing). So I coded, tested, recoded and tried all kind of things, but it just won't work. So I decided to do some testing with code initially working on my development system. And the results are confusing at least. For example why am I getting different results running: sudo -s id -u on some systems for every time I run it (without any changes to code at all)? Attached gsudo.png shows the desired result (just for testing sudo) Been playing and testing this for over 12 hours in total last few days and whatever I do nothing seems to work on all systems. Code run (see attached source archive): Tested this on a bunch of distro desktop combinations running from both IDE and gambas executable: Added is my results and I'm stunned by them as to me they make no sense at all!! 1. Code seems to work all the time on all Ubuntu based distros except those running LXDE, Xfce and RazorQt 2. Code doesn't seem to work (or not all the time) on LXDE, Xfce desktops no matter what distro 3. Code doesn't seem to work (or not all the time) on Debian Tests result in attached file can be: ok -> run as expected and with results returned OR hung -> no reaction from application at all -> need to force quit the executable or click STOP button in IDE menu bar. Can wait all I want for something to happen Is this a problem/bug in Gambas in combination with certain desktops? Am I doing something wrong? Why does it work and on a next run not work or vice versa? Hope someone can figure this out as I'm out of options... If you need more details, just let me know and I'll post them -- Kindest regards. Willy Raets, Chairman Earthship Belgium vzw (npo), Initiator behind earthshipeurope.org, EEBU, EECO and EECN -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: gsudo-0.0.5.tar.gz Type: application/x-compressed-tar Size: 6371 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gsudo.png Type: image/png Size: 6244 bytes Desc: not available URL: -------------- next part -------------- ===== When run from IDE AND When run from gambas executable ===== Test done: Opened IDE run app -> closed app (or pressed STOP when hung) -> run app and so on for 5 times (no change in code) Run executable -> closed (or Force quit when hung) -> run -> closed and so on for 5 times RESULTS: First colom IDE Second colom Executable GAMBAS 3.3.4 ------------ 1. Linux Mint 13 - Mate 1.4.0 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> ok run 1 -> ok run 2 -> ok run 2 -> ok run 3 -> ok run 3 -> ok run 4 -> ok run 4 -> ok run 5 -> ok run 5 -> ok 2. Lubuntu 12.04 - LXDE 0.5.8 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> hang!! run 1 -> ok run 2 -> hang!! run 2 -> hang!! run 3 -> hang!! run 3 -> hang!! run 4 -> hang!! run 4 -> hang!! run 5 -> hang!! run 5 -> hang!! 3. Linux Mint 13 - Xfce 4.10 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> hang!! run 1 -> hang!! run 2 -> ok run 2 -> hang!! run 3 -> hang!! run 3 -> hang!! run 4 -> hang!! run 4 -> hang!! run 5 -> ok run 5 -> hang!! GAMBAS 3.4.0 ------------ 1. Debian 6.0.7 - Gnome 2.30 - sudo version: 1.7.4p4 run 1 -> hang!! run 1 -> ok run 2 -> ok run 2 -> hang!! run 3 -> hang!! run 3 -> ok run 4 -> hang!! run 4 -> ok run 5 -> ok run 5 -> ok 2. Kubuntu 12.04 - KDE 4.8 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> ok run 1 -> ok run 2 -> ok run 2 -> ok run 3 -> ok run 3 -> ok run 4 -> ok run 4 -> ok run 5 -> ok run 5 -> ok 3. Fedora 17 - LXDE 0.5.12 - sudo version: 1.8.6p7 run 1 -> hang!! run 1 -> hang!! run 2 -> hang!! run 2 -> hang!! run 3 -> hang!! run 3 -> hang!! run 4 -> hang!! run 4 -> hang!! run 5 -> hang!! run 5 -> hang!! 4. Xubuntu 12.04 - Xfce 4.8 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> hang!! run 1 -> hang!! run 2 -> ok run 2 -> ok run 3 -> ok run 3 -> ok run 4 -> ok run 4 -> hang!! run 5 -> hang!! run 5 -> ok 5. Ubuntu 12.04 - Unity 5.18 - sudo version: 1.8.3p1 run 1 -> ok run 1 -> ok run 2 -> ok run 2 -> ok run 3 -> ok run 3 -> ok run 4 -> ok run 4 -> ok run 5 -> ok run 5 -> ok 6. Salentos 12.04 - Razor Qt 0.5.2 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> hang!! run 1 -> hang!! run 2 -> hang!! run 2 -> hang!! run 3 -> ok run 3 -> hang!! run 4 -> hang!! run 4 -> hang!! run 5 -> hang!! run 5 -> hang!! GAMBAS 3.4.0 (rev#5598) ----------------------- 1.Lubuntu 12.10 - LXDE 0.5.11 - sudo version: 1.8.5p2 (Ubuntu 12.10 based) run 1 -> hang!! run 1 -> ok run 2 -> ok run 2 -> hang!! run 3 -> hang!! run 3 -> ok run 4 -> ok run 4 -> hang!! run 5 -> ok run 5 -> ok 2. Xubuntu 12.10 - Xfce 4.10 - sudo version: 1.8.5p2 (Ubuntu 12.10 based) run 1 -> ok run 1 -> ok run 2 -> ok run 2 -> hang!! run 3 -> ok run 3 -> ok run 4 -> ok run 4 -> hang!! run 5 -> ok run 5 -> hang!! From sunblaster5 at ...626... Tue Apr 2 19:02:31 2013 From: sunblaster5 at ...626... (rocko) Date: Tue, 02 Apr 2013 10:02:31 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> Message-ID: <515B0F27.1070609@...626...> Thanks for the input :) But I'm getting an error now: '_/Type mismatch expected file got string instead/_' /newFile is AS String /so I don't know why I would get this error. Full Code: ' Gambas module file Public nFile As File Public fName As String Public xName As String Public Sub Main() Dim mName As String Dim newFile As File mName = "Rocko" fName = "/home/rocko/Documents/Proposal.odt" xName = "/home/rocko/Zip/content.xml" If Exist(fName) Then /'test if file exists using th testFile function/ testFile() Print "File found" Shell "unzip " & fname & " -d /home/rocko/Zip" Wait /'open a shell window and unzip the file/ newFile = Replace(File.Load(xName), "$(Name)", mName) File.Save(xName, newFile) Shell "cd /home/rocko/Zip;zip -r Proposal.odt ." Wait /'re-zip the file/ Else Print "File not found" Print nFile Print fName Shell "ls" Endif End Sub testFile() /' function for opening file for read and write/ nFile = Open fName For Read Write End On 04/02/2013 03:34 AM, Fabien Bodard wrote: > Le 2 avr. 2013 01:37, "rocko" a ?crit : >> Not sure I'm using /Replace$/ correctly. >> I want to replace instance of $(Name) in the XML file >> with the value of the /mName/ variable >> >> Code: >> /xName = "home/rocko/Zip/content.xml"// >> // newFile = Replace$(xName, "$(Name)", mName)/ > Newfile=replace (file. Load(xname), "$(Name )",mname ) > File. Save(xname, newfile) >> Of course this doesn't work, But I don't know why >> >> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: >>> Le 01/04/2013 01:32, rocko a ?crit : >>>> I actually tried that after sending my response. >>>> lo and behold! XML file woo hoo! >>>> >>>> So I assume I can just do a search thru th XML file and change things >>>> then re-save >>>> the file and re-zip it like you said. >>>> >>>> >>>> >>>> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda > new >>>> to me. >>> SHELL "zip ..." WAIT >>> >>> SHELL "unzip ..." WAIT >>> >>> That run the shell commands as if you typed them in a terminal. >>> >>> There is a compression component that allows you to do the same thing >>> without running external process, but it is a more complex to explain. >>> >>>> Which kind of search functions does gambas have?? regex I assume, any >>>> others?? >>>> >>> I use Replace$(). No need for regexp. If your search pattern are like >>> "$(field name)", you won't mix up with any OpenOffice XML syntax. >>> >>> Don't forget to look at XML format for correctly quoting characters that >>> must be quoted. >>> >>> Regards, >>> >> > ------------------------------------------------------------------------------ >> Own the Future-Intel® Level Up Game Demo Contest 2013 >> Rise to greatness in Intel's independent game demo contest. >> Compete for recognition, cash, and the chance to get your game >> on Steam. $5K grand prize plus 10 genre and skill prizes. >> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Own the Future-Intel(R) Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. Compete > for recognition, cash, and the chance to get your game on Steam. > $5K grand prize plus 10 genre and skill prizes. Submit your demo > by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > . > From sunblaster5 at ...626... Tue Apr 2 19:07:51 2013 From: sunblaster5 at ...626... (rocko) Date: Tue, 02 Apr 2013 10:07:51 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> Message-ID: <515B1067.9040904@...626...> BTW this is the offending code: _ newFile = Replace(File.Load(xName), "$(Name)", mName)_ On 04/02/2013 03:34 AM, Fabien Bodard wrote: > Le 2 avr. 2013 01:37, "rocko" a ?crit : >> Not sure I'm using /Replace$/ correctly. >> I want to replace instance of $(Name) in the XML file >> with the value of the /mName/ variable >> >> Code: >> /xName = "home/rocko/Zip/content.xml"// >> // newFile = Replace$(xName, "$(Name)", mName)/ > Newfile=replace (file. Load(xname), "$(Name )",mname ) > File. Save(xname, newfile) >> Of course this doesn't work, But I don't know why >> >> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: >>> Le 01/04/2013 01:32, rocko a ?crit : >>>> I actually tried that after sending my response. >>>> lo and behold! XML file woo hoo! >>>> >>>> So I assume I can just do a search thru th XML file and change things >>>> then re-save >>>> the file and re-zip it like you said. >>>> >>>> >>>> >>>> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda > new >>>> to me. >>> SHELL "zip ..." WAIT >>> >>> SHELL "unzip ..." WAIT >>> >>> That run the shell commands as if you typed them in a terminal. >>> >>> There is a compression component that allows you to do the same thing >>> without running external process, but it is a more complex to explain. >>> >>>> Which kind of search functions does gambas have?? regex I assume, any >>>> others?? >>>> >>> I use Replace$(). No need for regexp. If your search pattern are like >>> "$(field name)", you won't mix up with any OpenOffice XML syntax. >>> >>> Don't forget to look at XML format for correctly quoting characters that >>> must be quoted. >>> >>> Regards, >>> >> > ------------------------------------------------------------------------------ >> Own the Future-Intel® Level Up Game Demo Contest 2013 >> Rise to greatness in Intel's independent game demo contest. >> Compete for recognition, cash, and the chance to get your game >> on Steam. $5K grand prize plus 10 genre and skill prizes. >> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Own the Future-Intel(R) Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. Compete > for recognition, cash, and the chance to get your game on Steam. > $5K grand prize plus 10 genre and skill prizes. Submit your demo > by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > . > From gambas at ...1... Tue Apr 2 19:18:49 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 02 Apr 2013 19:18:49 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <000001ce2fb1$dea78340$0f00a8c0@...2829...> References: <000001ce2fb1$dea78340$0f00a8c0@...2829...> Message-ID: <515B12F9.7080703@...1...> Le 02/04/2013 16:53, Christer Johansson a ?crit : > Finally got some free time to get back into Gambas and I've been trying to > get I/O interrupt to work on the Raspberry Pi. > > I made a simple CLI test program with the following code... > > MMain.Module > ------------ > > ' Gambas module file > > ' Setting up shared library wiringPi with bcm2835 pin naming > Public Extern wiringPiSetupGpio() As Integer In "libwiringPi:1" > Public Extern wiringPiISR(iPin As Integer, iEdgeType As Integer, pFunction > As Pointer) As Integer In "libwiringPi:1" > > Public Sub Main() > > ' Init library > If wiringPiSetupGpio() = 0 Then > Print "wiringPi Init OK..." > Else > Print "wiringPi Init Failed!" > Quit > Endif > > ' Set up falling edge interrupt (1) on GPIO18 pin. Pin is connected to > 3.3V via 10k pullup > wiringPiISR(18, 1, Class1.InterruptHandler) > > ' Loop forever > Do > Wait 1 > Print "Waiting...." > Loop > > End > > Class1.class > ------------ > > ' Gambas class file > > Export > > Static Public Function InterruptHandler() As Integer > Print "IRQ handler activated" > End > > Code compiles OK but when I pull GPIO18 pin low (i.e generating the > interrupt) it > crashes with a "Stack overflow" error message. Without doubt it's me doing > something wrong > but after 2 days trying I wonder if anyone see what I'm missing?? > > Attached is also a C example that uses the same library. Also if anyone is > interested in the > latest (130207) libwiringPi.so file just let me know and I will send it to > the list... > Can you run your program through gdb to get the stack backtrace when you get the error? That way: $ cd /path/to/my/project $ gdb gbx3 ... (gdb) break THROW (gdb) run ... And when the program breaks in the THROW function, it should be because of the stack overflow. Then you type: (gdb) bt Send me the result of that last command. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Tue Apr 2 19:33:33 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 2 Apr 2013 20:33:33 +0300 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <515B1067.9040904@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B1067.9040904@...626...> Message-ID: Please see the documentation pages I linked. Replace function takes string and returns string. Your newFile variable is type File, not String. Also I recommend to use better variable naming convention, example: Dim sName As String Dim fVar As Float Dim iVar As Integer Dim hFile As File etc. This makes reading the code much easier; you almost always know enough about variable type from it's name. Jussi On Tue, Apr 2, 2013 at 8:07 PM, rocko wrote: > BTW this is the offending code: > > _ newFile = Replace(File.Load(xName), "$(Name)", mName)_ > > > On 04/02/2013 03:34 AM, Fabien Bodard wrote: > > Le 2 avr. 2013 01:37, "rocko" a ?crit : > >> Not sure I'm using /Replace$/ correctly. > >> I want to replace instance of $(Name) in the XML file > >> with the value of the /mName/ variable > >> > >> Code: > >> /xName = "home/rocko/Zip/content.xml"// > >> // newFile = Replace$(xName, "$(Name)", mName)/ > > Newfile=replace (file. Load(xname), "$(Name )",mname ) > > File. Save(xname, newfile) > >> Of course this doesn't work, But I don't know why > >> > >> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > >>> Le 01/04/2013 01:32, rocko a ?crit : > >>>> I actually tried that after sending my response. > >>>> lo and behold! XML file woo hoo! > >>>> > >>>> So I assume I can just do a search thru th XML file and change things > >>>> then re-save > >>>> the file and re-zip it like you said. > >>>> > >>>> > >>>> > >>>> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda > > new > >>>> to me. > >>> SHELL "zip ..." WAIT > >>> > >>> SHELL "unzip ..." WAIT > >>> > >>> That run the shell commands as if you typed them in a terminal. > >>> > >>> There is a compression component that allows you to do the same thing > >>> without running external process, but it is a more complex to explain. > >>> > >>>> Which kind of search functions does gambas have?? regex I assume, any > >>>> others?? > >>>> > >>> I use Replace$(). No need for regexp. If your search pattern are like > >>> "$(field name)", you won't mix up with any OpenOffice XML syntax. > >>> > >>> Don't forget to look at XML format for correctly quoting characters > that > >>> must be quoted. > >>> > >>> Regards, > >>> > >> > > > ------------------------------------------------------------------------------ > >> Own the Future-Intel® Level Up Game Demo Contest 2013 > >> Rise to greatness in Intel's independent game demo contest. > >> Compete for recognition, cash, and the chance to get your game > >> on Steam. $5K grand prize plus 10 genre and skill prizes. > >> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > > Own the Future-Intel(R) Level Up Game Demo Contest 2013 > > Rise to greatness in Intel's independent game demo contest. Compete > > for recognition, cash, and the chance to get your game on Steam. > > $5K grand prize plus 10 genre and skill prizes. Submit your demo > > by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > . > > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Tue Apr 2 19:36:15 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 2 Apr 2013 20:36:15 +0300 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B1067.9040904@...626...> Message-ID: Oh, and the solution... File.Save(sPathToFileWhereDataBelongs, Replace(File.Load(xName), "$(Name)", mName)) Jussi On Tue, Apr 2, 2013 at 8:33 PM, Jussi Lahtinen wrote: > Please see the documentation pages I linked. > Replace function takes string and returns string. Your newFile variable > is type File, not String. > > Also I recommend to use better variable naming convention, example: > Dim sName As String > Dim fVar As Float > Dim iVar As Integer > Dim hFile As File > > etc. > This makes reading the code much easier; you almost always know enough > about variable type from it's name. > > Jussi > > > > > On Tue, Apr 2, 2013 at 8:07 PM, rocko wrote: > >> BTW this is the offending code: >> >> _ newFile = Replace(File.Load(xName), "$(Name)", mName)_ >> >> >> On 04/02/2013 03:34 AM, Fabien Bodard wrote: >> > Le 2 avr. 2013 01:37, "rocko" a ?crit : >> >> Not sure I'm using /Replace$/ correctly. >> >> I want to replace instance of $(Name) in the XML file >> >> with the value of the /mName/ variable >> >> >> >> Code: >> >> /xName = "home/rocko/Zip/content.xml"// >> >> // newFile = Replace$(xName, "$(Name)", mName)/ >> > Newfile=replace (file. Load(xname), "$(Name )",mname ) >> > File. Save(xname, newfile) >> >> Of course this doesn't work, But I don't know why >> >> >> >> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: >> >>> Le 01/04/2013 01:32, rocko a ?crit : >> >>>> I actually tried that after sending my response. >> >>>> lo and behold! XML file woo hoo! >> >>>> >> >>>> So I assume I can just do a search thru th XML file and change things >> >>>> then re-save >> >>>> the file and re-zip it like you said. >> >>>> >> >>>> >> >>>> >> >>>> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda >> > new >> >>>> to me. >> >>> SHELL "zip ..." WAIT >> >>> >> >>> SHELL "unzip ..." WAIT >> >>> >> >>> That run the shell commands as if you typed them in a terminal. >> >>> >> >>> There is a compression component that allows you to do the same thing >> >>> without running external process, but it is a more complex to explain. >> >>> >> >>>> Which kind of search functions does gambas have?? regex I assume, any >> >>>> others?? >> >>>> >> >>> I use Replace$(). No need for regexp. If your search pattern are like >> >>> "$(field name)", you won't mix up with any OpenOffice XML syntax. >> >>> >> >>> Don't forget to look at XML format for correctly quoting characters >> that >> >>> must be quoted. >> >>> >> >>> Regards, >> >>> >> >> >> > >> ------------------------------------------------------------------------------ >> >> Own the Future-Intel® Level Up Game Demo Contest 2013 >> >> Rise to greatness in Intel's independent game demo contest. >> >> Compete for recognition, cash, and the chance to get your game >> >> on Steam. $5K grand prize plus 10 genre and skill prizes. >> >> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------------------------ >> > Own the Future-Intel(R) Level Up Game Demo Contest 2013 >> > Rise to greatness in Intel's independent game demo contest. Compete >> > for recognition, cash, and the chance to get your game on Steam. >> > $5K grand prize plus 10 genre and skill prizes. Submit your demo >> > by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > . >> > >> >> >> ------------------------------------------------------------------------------ >> Minimize network downtime and maximize team effectiveness. >> Reduce network management and security costs.Learn how to hire >> the most talented Cisco Certified professionals. Visit the >> Employer Resources Portal >> http://www.cisco.com/web/learning/employer_resources/index.html >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From sunblaster5 at ...626... Tue Apr 2 19:38:17 2013 From: sunblaster5 at ...626... (rocko) Date: Tue, 02 Apr 2013 10:38:17 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B1067.9040904@...626...> Message-ID: <515B1789.8050103@...626...> DOH! I knew it was something stupid. Thanks. On 04/02/2013 10:33 AM, Jussi Lahtinen wrote: > Please see the documentation pages I linked. > Replace function takes string and returns string. Your newFile variable is > type File, not String. > > Also I recommend to use better variable naming convention, example: > Dim sName As String > Dim fVar As Float > Dim iVar As Integer > Dim hFile As File > > etc. > This makes reading the code much easier; you almost always know enough > about variable type from it's name. > > Jussi > > > > > On Tue, Apr 2, 2013 at 8:07 PM, rocko wrote: > >> BTW this is the offending code: >> >> _ newFile = Replace(File.Load(xName), "$(Name)", mName)_ >> >> >> On 04/02/2013 03:34 AM, Fabien Bodard wrote: >>> Le 2 avr. 2013 01:37, "rocko" a ?crit : >>>> Not sure I'm using /Replace$/ correctly. >>>> I want to replace instance of $(Name) in the XML file >>>> with the value of the /mName/ variable >>>> >>>> Code: >>>> /xName = "home/rocko/Zip/content.xml"// >>>> // newFile = Replace$(xName, "$(Name)", mName)/ >>> Newfile=replace (file. Load(xname), "$(Name )",mname ) >>> File. Save(xname, newfile) >>>> Of course this doesn't work, But I don't know why >>>> >>>> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: >>>>> Le 01/04/2013 01:32, rocko a ?crit : >>>>>> I actually tried that after sending my response. >>>>>> lo and behold! XML file woo hoo! >>>>>> >>>>>> So I assume I can just do a search thru th XML file and change things >>>>>> then re-save >>>>>> the file and re-zip it like you said. >>>>>> >>>>>> >>>>>> >>>>>> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda >>> new >>>>>> to me. >>>>> SHELL "zip ..." WAIT >>>>> >>>>> SHELL "unzip ..." WAIT >>>>> >>>>> That run the shell commands as if you typed them in a terminal. >>>>> >>>>> There is a compression component that allows you to do the same thing >>>>> without running external process, but it is a more complex to explain. >>>>> >>>>>> Which kind of search functions does gambas have?? regex I assume, any >>>>>> others?? >>>>>> >>>>> I use Replace$(). No need for regexp. If your search pattern are like >>>>> "$(field name)", you won't mix up with any OpenOffice XML syntax. >>>>> >>>>> Don't forget to look at XML format for correctly quoting characters >> that >>>>> must be quoted. >>>>> >>>>> Regards, >>>>> >> ------------------------------------------------------------------------------ >>>> Own the Future-Intel® Level Up Game Demo Contest 2013 >>>> Rise to greatness in Intel's independent game demo contest. >>>> Compete for recognition, cash, and the chance to get your game >>>> on Steam. $5K grand prize plus 10 genre and skill prizes. >>>> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------------------------ >>> Own the Future-Intel(R) Level Up Game Demo Contest 2013 >>> Rise to greatness in Intel's independent game demo contest. Compete >>> for recognition, cash, and the chance to get your game on Steam. >>> $5K grand prize plus 10 genre and skill prizes. Submit your demo >>> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> . >>> >> >> ------------------------------------------------------------------------------ >> Minimize network downtime and maximize team effectiveness. >> Reduce network management and security costs.Learn how to hire >> the most talented Cisco Certified professionals. Visit the >> Employer Resources Portal >> http://www.cisco.com/web/learning/employer_resources/index.html >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Tue Apr 2 20:04:40 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 02 Apr 2013 18:04:40 +0000 Subject: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code) In-Reply-To: <21-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> References: <21-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> <0-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Message-ID: <22-6813199134517018827-7376830185188479970-gambas=googlecode.com@...2524...> Comment #22 on issue 415 by r... at ...1740...: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 The issue is fixed with the latest version. So cleaning up the freeing seem to have fixed it. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From willy at ...2734... Tue Apr 2 22:33:57 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 02 Apr 2013 22:33:57 +0200 Subject: [Gambas-user] Running Sudo using Exec acts very differently from distro to distro!! In-Reply-To: <1364921681.3056.33.camel@...3024...> References: <1364921681.3056.33.camel@...3024...> Message-ID: <1364934837.2659.13.camel@...3024...> It is getting more crazy by the minute: This is part of the code of previous version posted (version 0.0.5): Public Sub btnSudo_Click() If IsNull(txtPassword.Text) Then Message.Info("First enter a password") Else txaOutput.Clear txaOutput.Text = "Ready to rumble..\n\n" $hProcess = Exec [System.Shell, "-c", "sudo -s id -u"] For Input Output As "Process" Print #$hProcess, txtPassword.Text Endif End To pin point where it goes wrong I added a output to txaOutput (TextArea) before and after the passing of the password. See ExpectedOutcome.png for what is should show when run successfully. Changed the code to (version 0.0.6): Public Sub btnSudo_Click() If IsNull(txtPassword.Text) Then Message.Info("First enter a password") Else txaOutput.Clear txaOutput.Text = "Ready to rumble..\n" $hProcess = Exec [System.Shell, "-c", "sudo -s id -u"] For Input Output As "Process" txaOutput.Text &= "Passing password..\n" '<-- ADDED Print #$hProcess, txtPassword.Text txaOutput.Text &= "Password passed..\n\n" '<-- ADDED Endif End Attached the source code archive version 0.0.6 Next tested this on my Gambas 3.3.4 running distributions. Note the difference Test results version 0.0.5 (see previous post): GAMBAS 3.3.4 ------------ 1. Linux Mint 13 - Mate 1.4.0 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> ok run 1 -> ok run 2 -> ok run 2 -> ok run 3 -> ok run 3 -> ok run 4 -> ok run 4 -> ok run 5 -> ok run 5 -> ok 2. Lubuntu 12.04 - LXDE 0.5.8 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> hang!! run 1 -> ok run 2 -> hang!! run 2 -> hang!! run 3 -> hang!! run 3 -> hang!! run 4 -> hang!! run 4 -> hang!! run 5 -> hang!! run 5 -> hang!! 3. Linux Mint 13 - Xfce 4.10 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> hang!! run 1 -> hang!! run 2 -> ok run 2 -> hang!! run 3 -> hang!! run 3 -> hang!! run 4 -> hang!! run 4 -> hang!! run 5 -> ok run 5 -> hang!! Test results version 0.0.6 (see attachement) GAMBAS 3.3.4 ------------ 1. Linux Mint 13 - Mate 1.4.0 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> ok run 1 -> ok run 2 -> ok run 2 -> ok run 3 -> ok run 3 -> ok run 4 -> ok run 4 -> ok run 5 -> ok run 5 -> ok 2. Lubuntu 12.04 - LXDE 0.5.8 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> ok run 1 -> ok run 2 -> ok run 2 -> ok run 3 -> ok run 3 -> ok run 4 -> ok run 4 -> ok run 5 -> ok run 5 -> ok 3. Linux Mint 13 - Xfce 4.10 - sudo version: 1.8.3p1 (Ubuntu 12.04 based) run 1 -> ok run 1 -> ok run 2 -> ok run 2 -> ok run 3 -> ok run 3 -> ok run 4 -> ok run 4 -> ok run 5 -> ok run 5 -> ok Will be testing further, but there is improvement as all seems to work now all of a sudden just by adding two lines of code to check what is happening, Xfce and LXDE seem to be doing fine....??!! Anyone who can make some sense out of this? Explain what is happening and why? I'll be back with a Gambas 3.4.0 report later...wonder what happens there.. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: ExpectedOutcome.png Type: image/png Size: 9173 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gsudo-0.0.6.tar.gz Type: application/x-compressed-tar Size: 6379 bytes Desc: not available URL: From gambas at ...1... Tue Apr 2 22:43:22 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 02 Apr 2013 22:43:22 +0200 Subject: [Gambas-user] Running Sudo using Exec acts very differently from distro to distro!! In-Reply-To: <1364934837.2659.13.camel@...3024...> References: <1364921681.3056.33.camel@...3024...> <1364934837.2659.13.camel@...3024...> Message-ID: <515B42EA.3020305@...1...> Le 02/04/2013 22:33, Willy Raets a ?crit : > It is getting more crazy by the minute: > > This is part of the code of previous version posted (version 0.0.5): > > Public Sub btnSudo_Click() > > If IsNull(txtPassword.Text) Then > Message.Info("First enter a password") > Else > txaOutput.Clear > txaOutput.Text = "Ready to rumble..\n\n" > $hProcess = Exec [System.Shell, "-c", "sudo -s id -u"] For Input > Output As "Process" > Print #$hProcess, txtPassword.Text > Endif > > End > > To pin point where it goes wrong I added a output to txaOutput > (TextArea) before and after the passing of the password. > See ExpectedOutcome.png for what is should show when run successfully. > > Changed the code to (version 0.0.6): > > Public Sub btnSudo_Click() > > If IsNull(txtPassword.Text) Then > Message.Info("First enter a password") > Else > txaOutput.Clear > txaOutput.Text = "Ready to rumble..\n" > $hProcess = Exec [System.Shell, "-c", "sudo -s id -u"] For Input > Output As "Process" > txaOutput.Text &= "Passing password..\n" '<-- ADDED > Print #$hProcess, txtPassword.Text > txaOutput.Text &= "Password passed..\n\n" '<-- ADDED > Endif > > End I didn't read all your project yet, but by seing that code, I can tell you that what you wrote cannot work reliably. Why? As the process execution is not synchronous, 'sudo' may not be yet ready when the "Print #$hProcess,..." line is executed. Instead, you must catch the output of 'sudo' in the Process_Read event, and only sends the password after sudo has emitted its "Password:" prompt. Look the 'VersionControl.Run' method in the IDE source code: it runs a subversion command that way. In the Process_Read, it watches the output of the svn command, and sends the password as soon as the command emits a password prompt (which may come almost at random with the 'svn' command!) So rewrite your code the way I told you before doing all your checks again. Regards, -- Beno?t Minisini From Karl.Reinl at ...2345... Tue Apr 2 22:50:14 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 02 Apr 2013 22:50:14 +0200 Subject: [Gambas-user] Running Sudo using Exec acts very differently from distro to distro!! In-Reply-To: <1364934837.2659.13.camel@...3024...> References: <1364921681.3056.33.camel@...3024...> <1364934837.2659.13.camel@...3024...> Message-ID: <1364935814.2555.26.camel@...40...> Am Dienstag, den 02.04.2013, 22:33 +0200 schrieb Willy Raets: > It is getting more crazy by the minute: Hi Willy, I am not very closed to your problem, but I receive all your mails. I think you are using VMs to test all this, isn't it? With all that problems your Fedora box make, and not the others, I would pull the Fedora box to the trash and set up a new Fedora box to test;-) -- Amicalement Charlie From sunblaster5 at ...626... Tue Apr 2 23:31:18 2013 From: sunblaster5 at ...626... (rocko) Date: Tue, 02 Apr 2013 14:31:18 -0700 Subject: [Gambas-user] adjust widths of data broswer Message-ID: <515B4E26.5000900@...626...> Is there a way to change the width of the fields in data browser?? From gambas at ...1... Tue Apr 2 23:38:28 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 02 Apr 2013 23:38:28 +0200 Subject: [Gambas-user] Bugs in 5607 or before (last nemh update is also affected) In-Reply-To: References: Message-ID: <515B4FD4.1060100@...1...> Le 01/04/2013 22:30, Ricardo D?az Mart?n a ?crit : > Opps, I forgot the attached file :-( > > > 2013/4/1 Ricardo D?az Mart?n > >> Hi, >> >> I attach an example of the bugs detected. In my box I got name of the form >> #0 instead FMain. >> I also got signal 11 when you try to set one variable to a non-exists >> control with a try sentence >> >> Using gambas3 rev 5607 >> The naming convention and the crash have been fixed in revision #5608. Regards, -- Beno?t Minisini From willy at ...2734... Tue Apr 2 23:43:50 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 02 Apr 2013 23:43:50 +0200 Subject: [Gambas-user] Running Sudo using Exec acts very differently from distro to distro!! In-Reply-To: <515B42EA.3020305@...1...> References: <1364921681.3056.33.camel@...3024...> <1364934837.2659.13.camel@...3024...> <515B42EA.3020305@...1...> Message-ID: <1364939030.2659.28.camel@...3024...> On Tue, 2013-04-02 at 22:43 +0200, Beno?t Minisini wrote: > Le 02/04/2013 22:33, Willy Raets a ?crit : > > It is getting more crazy by the minute: > > > > This is part of the code of previous version posted (version 0.0.5): > > > > Public Sub btnSudo_Click() > > > > If IsNull(txtPassword.Text) Then > > Message.Info("First enter a password") > > Else > > txaOutput.Clear > > txaOutput.Text = "Ready to rumble..\n\n" > > $hProcess = Exec [System.Shell, "-c", "sudo -s id -u"] For Input > > Output As "Process" > > Print #$hProcess, txtPassword.Text > > Endif > > > > End > > > > To pin point where it goes wrong I added a output to txaOutput > > (TextArea) before and after the passing of the password. > > See ExpectedOutcome.png for what is should show when run successfully. > > > > Changed the code to (version 0.0.6): > > > > Public Sub btnSudo_Click() > > > > If IsNull(txtPassword.Text) Then > > Message.Info("First enter a password") > > Else > > txaOutput.Clear > > txaOutput.Text = "Ready to rumble..\n" > > $hProcess = Exec [System.Shell, "-c", "sudo -s id -u"] For Input > > Output As "Process" > > txaOutput.Text &= "Passing password..\n" '<-- ADDED > > Print #$hProcess, txtPassword.Text > > txaOutput.Text &= "Password passed..\n\n" '<-- ADDED > > Endif > > > > End > > I didn't read all your project yet, but by seing that code, I can tell > you that what you wrote cannot work reliably. > > Why? As the process execution is not synchronous, 'sudo' may not be yet > ready when the "Print #$hProcess,..." line is executed. > > Instead, you must catch the output of 'sudo' in the Process_Read event, > and only sends the password after sudo has emitted its "Password:" prompt. > > Look the 'VersionControl.Run' method in the IDE source code: it runs a > subversion command that way. In the Process_Read, it watches the output > of the svn command, and sends the password as soon as the command emits > a password prompt (which may come almost at random with the 'svn' command!) > > So rewrite your code the way I told you before doing all your checks again. > > Regards, > Ok, now I get the problem. I studied the code you suggested and implemented the passing of the password in the Read event at the proper moment and it works on both my development machine and the Fedora-LXDE box...YESSSS!!! The code (for those ever running into the same problem): ---------------------------------- Private $hProcess As Process Private $bFound As Boolean 'txtPassword -> TextBox to enter password 'txaOutput -> TextArea to feed back the output of the process Public Sub btnSudo_Click() Dim sCommand As String If IsNull(txtPassword.Text) Then Message.Info("First enter a password") Else $bFound = False sCommand = "id -u" txaOutput.Clear $hProcess = Exec [System.Shell, "-c", "sudo -s " & sCommand] For Input Output As "Process" Endif End Public Sub Process_Read() Dim sLine As String Dim iB As Integer sLine = Read #Last, -256 If Not $bFound Then If Len(sLine) <> 0 Then iB = InStr(sLine, "password for", 1) If iB > 1 Then txaOutput.Text &= "Passing password...\n" txaOutput.Insert(sLine & "\n") Print #$hProcess, txtPassword.Text $bFound = True Else txaOutput.Insert(sLine & "\n") Endif Endif Else txaOutput.Insert(sLine & "\n") Endif End Public Sub Process_Error(sError As String) txaOutput.Insert("ERROR: " & sError & "\n") End Public Sub Process_Kill() txaOutput.Insert("Killed\n") End ---------------------------------- Note: The sCommand = "id -u" can be replaced by any command you would like to run using sudo like sCommand = "apt-get update" for example (on Debian and Ubuntu based) will work. Thank you for the insight Beno?t, I learned a lot... -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...1... Tue Apr 2 23:49:22 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 02 Apr 2013 23:49:22 +0200 Subject: [Gambas-user] Problem to use TASK fork processes In-Reply-To: References: Message-ID: <515B5262.3070008@...1...> Le 01/04/2013 19:01, Olivier Cruilles a ?crit : > Hi Benoit, > > I have just question about how to use the TASK (fork process) and particularly how to return value from the TASK to the parent. > > I used all possibilities but nothing solve my problem, sometimes the parent of the Task(es) loses retourned value from the TASK. > > I send result from to the parent like that, it is good or not. > > ----------------------------- > > 1st methode: > > At the end of the Main() procedure of the TASK > > PRINT "RESULT" & Chr(140) & $Numero & Chr(140) & Resultat > > Into the parent: > > Procedure ProcStat_Read(Data as string) > > Print "(" & Str(LAST) & ") Data: " & Data > > End > > ----------------------------- > > 2nd methode: > > At the end of the Main() procedure of the TASK > > WRITE #1, "RESULT" & Chr(140) & $Numero & Chr(140) & Resultat > > Into the parent: > > Procedure ProcStat_Read(Data as string) > > Print "(" & Str(LAST) & ") Data: " & Data > > End > > ----------------------------- > > The gold of this program is to start many TASKs simultaneously to gain time but in fact it works better with 10 TASKs > simultaneously and not very well with 1 TASK > So how can be sure that the TASK sent me the result all of the time please ? > > Does I don't use the TASK object correctly ? > > Thank's in advance. > > Cordialement, > > Olivier Cruilles > Mail: linuxos at ...1896... > Without the source code to test, it's hard to tell... I don't know how you ends your tasks, and so I think that your task terminates before the data printed on the standard output reaches the parent process. Note that normally you must return the result of the task to the parent process by *returning* a value from the Main fuction. That return value can be any Variant, not just an integer like a normal process. Regards, -- Beno?t Minisini From vuott at ...325... Tue Apr 2 23:58:20 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 2 Apr 2013 22:58:20 +0100 (BST) Subject: [Gambas-user] saving and loading id and password in login forms In-Reply-To: <515A0B53.8070805@...1...> Message-ID: <1364939900.50276.YahooMailClassic@...3065...> Thank you very much Beno?t, I'ld like to ask you more: when i'm trying to download an attachment of a mail in my yahoo mail account, webbrowser asks me where to download but the downloading never really starts. Perhaps it loses the authentication transaction, i don't know. Again, how to fix this problem, internal function or via programing? Bye vuott --- Mar 2/4/13, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] saving and loading id and password in login forms > A: "mailing list for gambas users" > Data: Marted? 2 Aprile 2013, 00:33 > Le 02/04/2013 00:28, Ru Vuott a > ?crit : > > Just to understand, in WebView what way is contemplated > to manage (save and load) id and password in login forms? > Automatical and easy-to-use internal functions, or via > complex programer strategy? > > > > For exemple, in the classic yahoo mail access: > > > > https://login.yahoo.com/config/mail?.intl=it&.src=ym&.done=http://it.mail.yahoo.com&rl=1 > > > > > > Regards > > vuott > > > > I think that programming is needed : finding all login / > password fields > in the entire HTML page and its sub frames, and storing them > with the > desktop wallet (Desktop.Passwords). > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest > 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your > game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Apr 3 00:06:09 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 03 Apr 2013 00:06:09 +0200 Subject: [Gambas-user] saving and loading id and password in login forms In-Reply-To: <1364939900.50276.YahooMailClassic@...3065...> References: <1364939900.50276.YahooMailClassic@...3065...> Message-ID: <515B5651.7000803@...1...> Le 02/04/2013 23:58, Ru Vuott a ?crit : > Thank you very much Beno?t, > > I'ld like to ask you more: > > when i'm trying to download an attachment of a mail in my yahoo mail > account, webbrowser asks me where to download but the downloading > never really starts. Perhaps it loses the authentication transaction, > i don't know. Again, how to fix this problem, internal function or > via programing? > > Bye vuott > Does it work with the WebBrowser example? -- Beno?t Minisini From vuott at ...325... Wed Apr 3 00:24:32 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 2 Apr 2013 23:24:32 +0100 (BST) Subject: [Gambas-user] saving and loading id and password in login forms In-Reply-To: <515B5651.7000803@...1...> Message-ID: <1364941472.12254.YahooMailClassic@...3066...> When I try to download an attached file, e.g. from my email account: Yahoo.it, in the dialogBox (to save the file) this notice appears: showMessage?cmd=download.failure&fid=Inbox&mid=2_0_0_1_7397_AJ0l5C4AAMQHUVXw2Q7J0HlTtcY&pid=3&tnef=&prefFilename=Desktop_Warnung2.png&view=none&cb=parent.attachmentFail&cred=BeT7Dje_7joI4YniL5AKj_1HgNes9X1KTc2KK6MunTKQzg--&ts=1364941193&partner=ymail&sig=mkp7pU75mJ613cMo9S0AzA-- > > > > Does it work with the WebBrowser example? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------- From sunblaster5 at ...626... Wed Apr 3 01:09:35 2013 From: sunblaster5 at ...626... (rocko) Date: Tue, 02 Apr 2013 16:09:35 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> Message-ID: <515B652F.2070506@...626...> Is it possible to do multiple replacing with/Replace/ I have several fields that I want to change in an .odt file do I have to do multiple Replace statements or can I put them all in one /Replace/ statement?? On 04/02/2013 03:34 AM, Fabien Bodard wrote: > Le 2 avr. 2013 01:37, "rocko" a ?crit : >> Not sure I'm using /Replace$/ correctly. >> I want to replace instance of $(Name) in the XML file >> with the value of the /mName/ variable >> >> Code: >> /xName = "home/rocko/Zip/content.xml"// >> // newFile = Replace$(xName, "$(Name)", mName)/ > Newfile=replace (file. Load(xname), "$(Name )",mname ) > File. Save(xname, newfile) >> Of course this doesn't work, But I don't know why >> >> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: >>> Le 01/04/2013 01:32, rocko a ?crit : >>>> I actually tried that after sending my response. >>>> lo and behold! XML file woo hoo! >>>> >>>> So I assume I can just do a search thru th XML file and change things >>>> then re-save >>>> the file and re-zip it like you said. >>>> >>>> >>>> >>>> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda > new >>>> to me. >>> SHELL "zip ..." WAIT >>> >>> SHELL "unzip ..." WAIT >>> >>> That run the shell commands as if you typed them in a terminal. >>> >>> There is a compression component that allows you to do the same thing >>> without running external process, but it is a more complex to explain. >>> >>>> Which kind of search functions does gambas have?? regex I assume, any >>>> others?? >>>> >>> I use Replace$(). No need for regexp. If your search pattern are like >>> "$(field name)", you won't mix up with any OpenOffice XML syntax. >>> >>> Don't forget to look at XML format for correctly quoting characters that >>> must be quoted. >>> >>> Regards, >>> >> > ------------------------------------------------------------------------------ >> Own the Future-Intel® Level Up Game Demo Contest 2013 >> Rise to greatness in Intel's independent game demo contest. >> Compete for recognition, cash, and the chance to get your game >> on Steam. $5K grand prize plus 10 genre and skill prizes. >> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Own the Future-Intel(R) Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. Compete > for recognition, cash, and the chance to get your game on Steam. > $5K grand prize plus 10 genre and skill prizes. Submit your demo > by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > . > From bbruen at ...2308... Wed Apr 3 03:30:38 2013 From: bbruen at ...2308... (Bruce) Date: Wed, 03 Apr 2013 12:00:38 +1030 Subject: [Gambas-user] Running Sudo using Exec acts very differently from distro to distro!! In-Reply-To: <1364921681.3056.33.camel@...3024...> References: <1364921681.3056.33.camel@...3024...> Message-ID: <1364952638.19887.34.camel@...2688...> On Tue, 2013-04-02 at 18:54 +0200, Willy Raets wrote: 8< > For example why am I getting different results running: > sudo -s id -u > on some systems for every time I run it (without any changes to code at > all)? > > Attached gsudo.png shows the desired result (just for testing sudo) > > Been playing and testing this for over 12 hours in total last few days > and whatever I do nothing seems to work on all systems. > > Code run (see attached source archive): > > Tested this on a bunch of distro desktop combinations running from both > IDE and gambas executable: > > Added is my results and I'm stunned by them as to me they make no sense > at all!! > > 1. Code seems to work all the time on all Ubuntu based distros except > those running LXDE, Xfce and RazorQt > 2. Code doesn't seem to work (or not all the time) on LXDE, Xfce > desktops no matter what distro > 3. Code doesn't seem to work (or not all the time) on Debian > 8< Hi Willy, Yes, sudu is very different on different distros! Completely different in fact. The last time I counted (about a year ago), there were 5 different versions over the dozen or so distros we support. These differences lie in the absolute base code. That is, they are actually completely different programs not different versions of the same base code. So much for the bad news. The best answer we have found is to use gksu. This separates the privilege escalation from the actual execution stream, but note that the user has to enter the privilege escalation password every time it is invoked (which some consider to be "not a bad thing"). Since deciding on that route, it has worked "almost" seamlessly on all our client's distros with little support effort. I say "almost" because there is something about older versions of ubunti that corrupt the use of su (which is what gksu uses to initiate the execution thread). gksu appears to us to be fairly desktop agnostic (within reason). gsudo and its' (dare I say) inbred cousins don't seem to be so. Since adopting that model, i.e. separating the privilege escalation from the execution stream, we have had very few "help me" support calls for the dozens of gambas Shell and Execute calls our stuff makes. Also and without wanting to get into the age old su vs. sudo battle! I just want to say one thing. At least su based utilities .... (Oh bugger, that's just going to start it all again.) Suffice to say, guess which side I'm on. and finally, "gksu" - it works for me! hth Bruce From ricardo.diaz at ...2869... Wed Apr 3 08:44:00 2013 From: ricardo.diaz at ...2869... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Wed, 3 Apr 2013 08:44:00 +0200 Subject: [Gambas-user] Bugs in 5607 or before (last nemh update is also affected) In-Reply-To: <515B4FD4.1060100@...1...> References: <515B4FD4.1060100@...1...> Message-ID: Thanks Benoit!! -- 2013/4/2 Beno?t Minisini > Le 01/04/2013 22:30, Ricardo D?az Mart?n a ?crit : > > Opps, I forgot the attached file :-( > > > > > > 2013/4/1 Ricardo D?az Mart?n > > > >> Hi, > >> > >> I attach an example of the bugs detected. In my box I got name of the > form > >> #0 instead FMain. > >> I also got signal 11 when you try to set one variable to a non-exists > >> control with a try sentence > >> > >> Using gambas3 rev 5607 > >> > > The naming convention and the crash have been fixed in revision #5608. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ihaywood at ...1979... Wed Apr 3 10:11:56 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Wed, 3 Apr 2013 19:11:56 +1100 Subject: [Gambas-user] Regular expression searching Message-ID: I have often missed in Gambas the ability to search through strings using a regular expression and provide a function to create replacements Gambas doesn't have procedural pointers or closures, so it's impossible to do it like in ruby/python/etc, but I've found the same can be achieved using an iterator IN the hope it is useful for others this is my module CRegex. Here's an example, it turns the HTML tag """ into alternating opening (``) and closing ('') quotes as required by the LaTeX system r = New CRegex(""", s, Regexp.Caseless) flag = False For Each r If flag Then flag = False r.Set("''") ' close quotes in LaTeX Else flag = True r.Set("``") ' open quotes Endif Next s = r.Subject -------------- next part -------------- A non-text attachment was scrubbed... Name: cRegex.class Type: application/octet-stream Size: 3339 bytes Desc: not available URL: From gambas.fr at ...626... Wed Apr 3 10:40:50 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 3 Apr 2013 10:40:50 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <515B652F.2070506@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> Message-ID: Replace, Replace all the words that match the pattern Read the doc! Le 3 avr. 2013 01:10, "rocko" a ?crit : > Is it possible to do multiple replacing with/Replace/ > > I have several fields that I want to change in an .odt file > do I have to do multiple Replace statements or can I > put them all in one /Replace/ statement?? > > > On 04/02/2013 03:34 AM, Fabien Bodard wrote: > > Le 2 avr. 2013 01:37, "rocko" a ?crit : > >> Not sure I'm using /Replace$/ correctly. > >> I want to replace instance of $(Name) in the XML file > >> with the value of the /mName/ variable > >> > >> Code: > >> /xName = "home/rocko/Zip/content.xml"// > >> // newFile = Replace$(xName, "$(Name)", mName)/ > > Newfile=replace (file. Load(xname), "$(Name )",mname ) > > File. Save(xname, newfile) > >> Of course this doesn't work, But I don't know why > >> > >> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > >>> Le 01/04/2013 01:32, rocko a ?crit : > >>>> I actually tried that after sending my response. > >>>> lo and behold! XML file woo hoo! > >>>> > >>>> So I assume I can just do a search thru th XML file and change things > >>>> then re-save > >>>> the file and re-zip it like you said. > >>>> > >>>> > >>>> > >>>> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda > > new > >>>> to me. > >>> SHELL "zip ..." WAIT > >>> > >>> SHELL "unzip ..." WAIT > >>> > >>> That run the shell commands as if you typed them in a terminal. > >>> > >>> There is a compression component that allows you to do the same thing > >>> without running external process, but it is a more complex to explain. > >>> > >>>> Which kind of search functions does gambas have?? regex I assume, any > >>>> others?? > >>>> > >>> I use Replace$(). No need for regexp. If your search pattern are like > >>> "$(field name)", you won't mix up with any OpenOffice XML syntax. > >>> > >>> Don't forget to look at XML format for correctly quoting characters > that > >>> must be quoted. > >>> > >>> Regards, > >>> > >> > > > ------------------------------------------------------------------------------ > >> Own the Future-Intel® Level Up Game Demo Contest 2013 > >> Rise to greatness in Intel's independent game demo contest. > >> Compete for recognition, cash, and the chance to get your game > >> on Steam. $5K grand prize plus 10 genre and skill prizes. > >> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > > Own the Future-Intel(R) Level Up Game Demo Contest 2013 > > Rise to greatness in Intel's independent game demo contest. Compete > > for recognition, cash, and the chance to get your game on Steam. > > $5K grand prize plus 10 genre and skill prizes. Submit your demo > > by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > . > > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lists at ...2828... Wed Apr 3 10:42:07 2013 From: lists at ...2828... (CJ) Date: Wed, 3 Apr 2013 10:42:07 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <515B12F9.7080703@...1...> Message-ID: <000001ce3047$2cdd3970$0f00a8c0@...2829...> Thanks for the reply Beno?t, below are the output from gdb... ... (gdb) bt #0 THROW (code=0) at gb_error.c:463 #1 0x0004a42c in THROW_STACK () at gb_error.c:477 #2 0x0004a42c in THROW_STACK () at gb_error.c:477 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) Doen't say me much but hopefully you get enough clues to whats wrong... /CJ > Can you run your program through gdb to get the stack > backtrace when you get the error? > > That way: > > $ cd /path/to/my/project > $ gdb gbx3 > ... > (gdb) break THROW > (gdb) run > ... > > And when the program breaks in the THROW function, it should > be because > of the stack overflow. Then you type: > > (gdb) bt > > Send me the result of that last command. > > Regards, > > -- > Beno?t Minisini > From gambas at ...1... Wed Apr 3 13:15:29 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 03 Apr 2013 13:15:29 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <000001ce3047$2cdd3970$0f00a8c0@...2829...> References: <000001ce3047$2cdd3970$0f00a8c0@...2829...> Message-ID: <515C0F51.3060008@...1...> Le 03/04/2013 10:42, CJ a ?crit : > Thanks for the reply Beno?t, below are the output from gdb... > > ... > (gdb) bt > #0 THROW (code=0) at gb_error.c:463 > #1 0x0004a42c in THROW_STACK () at gb_error.c:477 > #2 0x0004a42c in THROW_STACK () at gb_error.c:477 > Backtrace stopped: previous frame identical to this frame (corrupt stack?) > (gdb) > > Doen't say me much but hopefully you get enough clues to whats wrong... > > /CJ > Did you compile Gambas with debugging information enabled? -- Beno?t Minisini From lists at ...2828... Wed Apr 3 14:19:58 2013 From: lists at ...2828... (CJ) Date: Wed, 3 Apr 2013 14:19:58 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <515C0F51.3060008@...1...> Message-ID: <000001ce3065$93d80100$0f00a8c0@...2829...> > Did you compile Gambas with debugging information enabled? Yes, the debug option was checked. Just to verify I recompiled again and here are the complete output... root at ...3122...:/home/cj/Gambas 3/Projekt/libwiringPi_irq# gdb gbx3 GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "arm-linux-gnueabi". For bug reporting instructions, please see: ... Reading symbols from /usr/local/bin/gbx3...done. (gdb) break THROW Breakpoint 1 at 0x4a15c: file gb_error.c, line 463. (gdb) run Starting program: /usr/local/bin/gbx3 [Thread debugging using libthread_db enabled] wiringPi Init OK... [New Thread 0xb640d470 (LWP 14603)] IRQ setup OK... Waiting.... Waiting.... Waiting.... Waiting.... Waiting.... Waiting.... Waiting.... Waiting.... Waiting.... [Switching to Thread 0xb640d470 (LWP 14603)] Breakpoint 1, THROW (code=0) at gb_error.c:463 463 gb_error.c: No such file or directory. in gb_error.c (gdb) bt #0 THROW (code=0) at gb_error.c:463 #1 0x0004a42c in THROW_STACK () at gb_error.c:477 #2 0x0004a42c in THROW_STACK () at gb_error.c:477 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) Let me know if there anything else I can test... /CJ From willy at ...2734... Wed Apr 3 17:05:01 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 03 Apr 2013 17:05:01 +0200 Subject: [Gambas-user] IconView bug on LXDE 0.5.11 In-Reply-To: <1363631427.3882.13.camel@...3024...> References: <1363631427.3882.13.camel@...3024...> Message-ID: <1365001501.2990.19.camel@...3024...> On Mon, 2013-03-18 at 19:30 +0100, Willy Raets wrote: > When running a Gambas application using gb.qt4 on Lubuntu 12.10 with > LXDE 0.5.11 IconView shows black. > Using gb.gui or gb.gtk poses no problems, IconView shows normal. > > Problem is ONLY with LXDE 0.5.11, previous version of Lubuntu 12.04 with > LXDE 0.5.8 shows the IconView normal. So does LXDE 0.5.10 on a Fedora > box. Tested Xubuntu 12.10 with Xfce 0.4.10 as well, no problem there. > > On LXDE 0.5.11 I tested with both Gambas 3.4 and Gambas 3.4 rev. #5582 > > Attached a source code archive with an example. > > System specification of the Lubuntu 12.10 LXDE 0.5.10 (in VM) are: > [System] > OperatingSystem=Linux > Kernel=3.5.0-25-generic > Architecture=x86 > Distribution=Ubuntu 12.10 > Desktop=LXDE > Theme=QGtk > Language=en_US.UTF-8 > Memory=1003M > > [Libraries] > GStreamer=libgstreamer-0.10.so.0.30.0 > GTK+=libgtk-x11-2.0.so.0.2400.13 > Poppler=libpoppler.so.28.0.0 > Qt4=libQtCore.so.4.8.3 > SDL=libSDL-1.2.so.0.11.4 > > Note: A user on Lubuntu 12.10 discovered this problem in one of my > applications and he wasn't running in VM, so it is not VM releated. This problem with IconView occured on Lubuntu 12.10 - LXDE 0.5.12 first. Now recently I had a bug report from a guy who recently installed Lubuntu 12.04 - LXDE 0.5.8 with the same problem -> IconView is blacked out. Strangely enought I have two Lubuntu 12.04 - LXDE 0.5.8 installed where the problem doesn't occur. They where installed 1/2 year ago and kept updated. I have two recently installs of Lubuntu 12.04 - LXDE 0.5.8 on end user systems where the problem occurs as well. So it seems all recent Lubuntu installs as of 12.04 have the problem with the IconView. So I made a little IconView tester to test the troubled Lubuntu 12.10. When running it with gb.qt4 IconView blacks out When running it with gb.gtk IconView works as expected Next I tested on a troubled Lubuntu 12.04 to run the gtk version of IconView and it works, the qt4 version doesn't. So the problem seems to be gb.qt4 related. Themes on ALL Lubuntu systems is QGtk.(those working and those not working with gb.gt4 IconViewTest) Tested with Gambas 3.4.0 and 3.4.0 both rev#5598 and rev#5608 Attached: - Screenshot with gb.gtk used on Lubuntu 12.10 - Screenshot with gb.qt4 used on Lubuntu 12.10 - Source Archive of IconViewTester Source Archive is set to gb.gtk (the working version) Run once with gb.gtk next set to component gb.qt4 and run again to see the difference. Note: All my Lubuntu 12.04 that have been installed over 1/2 a year ago work with both versions All recently installed Lubuntu 12.04 work with only gb.gtk version. If more information is needed just let me know. The Lubuntu 12.10 specification are in previous post (see above). The application I have this problem in is using gb.qt4.webkit so it has to use gb.qt4 (since there is no gb.gtk.webkit -> why not actually?) else I could simply solve my problem by switching to gb.gtk Thanks.. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: Lubuntu12.10-LXDE0.5.12-gtk.png Type: image/png Size: 164614 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Lubuntu-12.10-LXDE0.5.11-qt4.png Type: image/png Size: 160875 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IconViewTester-0.0.4.tar.gz Type: application/x-compressed-tar Size: 16269 bytes Desc: not available URL: From sunblaster5 at ...626... Wed Apr 3 17:19:57 2013 From: sunblaster5 at ...626... (Rocko) Date: Wed, 3 Apr 2013 08:19:57 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> Message-ID: I don't think you understanf, I want to replace different fields with different values not all the same value On Apr 3, 2013 1:41 AM, "Fabien Bodard" wrote: > Replace, > Replace all the words that match the pattern > Read the doc! > Le 3 avr. 2013 01:10, "rocko" a ?crit : > > > Is it possible to do multiple replacing with/Replace/ > > > > I have several fields that I want to change in an .odt file > > do I have to do multiple Replace statements or can I > > put them all in one /Replace/ statement?? > > > > > > On 04/02/2013 03:34 AM, Fabien Bodard wrote: > > > Le 2 avr. 2013 01:37, "rocko" a ?crit : > > >> Not sure I'm using /Replace$/ correctly. > > >> I want to replace instance of $(Name) in the XML file > > >> with the value of the /mName/ variable > > >> > > >> Code: > > >> /xName = "home/rocko/Zip/content.xml"// > > >> // newFile = Replace$(xName, "$(Name)", mName)/ > > > Newfile=replace (file. Load(xname), "$(Name )",mname ) > > > File. Save(xname, newfile) > > >> Of course this doesn't work, But I don't know why > > >> > > >> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > > >>> Le 01/04/2013 01:32, rocko a ?crit : > > >>>> I actually tried that after sending my response. > > >>>> lo and behold! XML file woo hoo! > > >>>> > > >>>> So I assume I can just do a search thru th XML file and change > things > > >>>> then re-save > > >>>> the file and re-zip it like you said. > > >>>> > > >>>> > > >>>> > > >>>> So how do I unzip and re-zip a file in Gambas?, sorry this is kinda > > > new > > >>>> to me. > > >>> SHELL "zip ..." WAIT > > >>> > > >>> SHELL "unzip ..." WAIT > > >>> > > >>> That run the shell commands as if you typed them in a terminal. > > >>> > > >>> There is a compression component that allows you to do the same thing > > >>> without running external process, but it is a more complex to > explain. > > >>> > > >>>> Which kind of search functions does gambas have?? regex I assume, > any > > >>>> others?? > > >>>> > > >>> I use Replace$(). No need for regexp. If your search pattern are like > > >>> "$(field name)", you won't mix up with any OpenOffice XML syntax. > > >>> > > >>> Don't forget to look at XML format for correctly quoting characters > > that > > >>> must be quoted. > > >>> > > >>> Regards, > > >>> > > >> > > > > > > ------------------------------------------------------------------------------ > > >> Own the Future-Intel® Level Up Game Demo Contest 2013 > > >> Rise to greatness in Intel's independent game demo contest. > > >> Compete for recognition, cash, and the chance to get your game > > >> on Steam. $5K grand prize plus 10 genre and skill prizes. > > >> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > > Own the Future-Intel(R) Level Up Game Demo Contest 2013 > > > Rise to greatness in Intel's independent game demo contest. Compete > > > for recognition, cash, and the chance to get your game on Steam. > > > $5K grand prize plus 10 genre and skill prizes. Submit your demo > > > by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > . > > > > > > > > > > ------------------------------------------------------------------------------ > > Minimize network downtime and maximize team effectiveness. > > Reduce network management and security costs.Learn how to hire > > the most talented Cisco Certified professionals. Visit the > > Employer Resources Portal > > http://www.cisco.com/web/learning/employer_resources/index.html > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Apr 3 17:27:25 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 3 Apr 2013 17:27:25 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> Message-ID: Ok so it's one call by entry. Unzip odt Load the file in a string Replace as many as need Save the string in the file Zip the directory Simple! Le 3 avr. 2013 17:20, "Rocko" a ?crit : > I don't think you understanf, I want to replace different fields with > different values not all the same value > On Apr 3, 2013 1:41 AM, "Fabien Bodard" wrote: > > > Replace, > > Replace all the words that match the pattern > > Read the doc! > > Le 3 avr. 2013 01:10, "rocko" a ?crit : > > > > > Is it possible to do multiple replacing with/Replace/ > > > > > > I have several fields that I want to change in an .odt file > > > do I have to do multiple Replace statements or can I > > > put them all in one /Replace/ statement?? > > > > > > > > > On 04/02/2013 03:34 AM, Fabien Bodard wrote: > > > > Le 2 avr. 2013 01:37, "rocko" a ?crit : > > > >> Not sure I'm using /Replace$/ correctly. > > > >> I want to replace instance of $(Name) in the XML file > > > >> with the value of the /mName/ variable > > > >> > > > >> Code: > > > >> /xName = "home/rocko/Zip/content.xml"// > > > >> // newFile = Replace$(xName, "$(Name)", mName)/ > > > > Newfile=replace (file. Load(xname), "$(Name )",mname ) > > > > File. Save(xname, newfile) > > > >> Of course this doesn't work, But I don't know why > > > >> > > > >> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > > > >>> Le 01/04/2013 01:32, rocko a ?crit : > > > >>>> I actually tried that after sending my response. > > > >>>> lo and behold! XML file woo hoo! > > > >>>> > > > >>>> So I assume I can just do a search thru th XML file and change > > things > > > >>>> then re-save > > > >>>> the file and re-zip it like you said. > > > >>>> > > > >>>> > > > >>>> > > > >>>> So how do I unzip and re-zip a file in Gambas?, sorry this is > kinda > > > > new > > > >>>> to me. > > > >>> SHELL "zip ..." WAIT > > > >>> > > > >>> SHELL "unzip ..." WAIT > > > >>> > > > >>> That run the shell commands as if you typed them in a terminal. > > > >>> > > > >>> There is a compression component that allows you to do the same > thing > > > >>> without running external process, but it is a more complex to > > explain. > > > >>> > > > >>>> Which kind of search functions does gambas have?? regex I assume, > > any > > > >>>> others?? > > > >>>> > > > >>> I use Replace$(). No need for regexp. If your search pattern are > like > > > >>> "$(field name)", you won't mix up with any OpenOffice XML syntax. > > > >>> > > > >>> Don't forget to look at XML format for correctly quoting characters > > > that > > > >>> must be quoted. > > > >>> > > > >>> Regards, > > > >>> > > > >> > > > > > > > > > > ------------------------------------------------------------------------------ > > > >> Own the Future-Intel® Level Up Game Demo Contest 2013 > > > >> Rise to greatness in Intel's independent game demo contest. > > > >> Compete for recognition, cash, and the chance to get your game > > > >> on Steam. $5K grand prize plus 10 genre and skill prizes. > > > >> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > > > >> _______________________________________________ > > > >> Gambas-user mailing list > > > >> Gambas-user at lists.sourceforge.net > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Own the Future-Intel(R) Level Up Game Demo Contest 2013 > > > > Rise to greatness in Intel's independent game demo contest. Compete > > > > for recognition, cash, and the chance to get your game on Steam. > > > > $5K grand prize plus 10 genre and skill prizes. Submit your demo > > > > by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > . > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Minimize network downtime and maximize team effectiveness. > > > Reduce network management and security costs.Learn how to hire > > > the most talented Cisco Certified professionals. Visit the > > > Employer Resources Portal > > > http://www.cisco.com/web/learning/employer_resources/index.html > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Minimize network downtime and maximize team effectiveness. > > Reduce network management and security costs.Learn how to hire > > the most talented Cisco Certified professionals. Visit the > > Employer Resources Portal > > http://www.cisco.com/web/learning/employer_resources/index.html > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sunblaster5 at ...626... Wed Apr 3 17:39:48 2013 From: sunblaster5 at ...626... (Rocko) Date: Wed, 3 Apr 2013 08:39:48 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> Message-ID: so each value needs it's own the replace statement? On Apr 3, 2013 8:28 AM, "Fabien Bodard" wrote: > Ok so it's one call by entry. > > Unzip odt > Load the file in a string > Replace as many as need > Save the string in the file > Zip the directory > > Simple! > Le 3 avr. 2013 17:20, "Rocko" a ?crit : > > > I don't think you understanf, I want to replace different fields with > > different values not all the same value > > On Apr 3, 2013 1:41 AM, "Fabien Bodard" wrote: > > > > > Replace, > > > Replace all the words that match the pattern > > > Read the doc! > > > Le 3 avr. 2013 01:10, "rocko" a ?crit : > > > > > > > Is it possible to do multiple replacing with/Replace/ > > > > > > > > I have several fields that I want to change in an .odt file > > > > do I have to do multiple Replace statements or can I > > > > put them all in one /Replace/ statement?? > > > > > > > > > > > > On 04/02/2013 03:34 AM, Fabien Bodard wrote: > > > > > Le 2 avr. 2013 01:37, "rocko" a ?crit : > > > > >> Not sure I'm using /Replace$/ correctly. > > > > >> I want to replace instance of $(Name) in the XML file > > > > >> with the value of the /mName/ variable > > > > >> > > > > >> Code: > > > > >> /xName = "home/rocko/Zip/content.xml"// > > > > >> // newFile = Replace$(xName, "$(Name)", mName)/ > > > > > Newfile=replace (file. Load(xname), "$(Name )",mname ) > > > > > File. Save(xname, newfile) > > > > >> Of course this doesn't work, But I don't know why > > > > >> > > > > >> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > > > > >>> Le 01/04/2013 01:32, rocko a ?crit : > > > > >>>> I actually tried that after sending my response. > > > > >>>> lo and behold! XML file woo hoo! > > > > >>>> > > > > >>>> So I assume I can just do a search thru th XML file and change > > > things > > > > >>>> then re-save > > > > >>>> the file and re-zip it like you said. > > > > >>>> > > > > >>>> > > > > >>>> > > > > >>>> So how do I unzip and re-zip a file in Gambas?, sorry this is > > kinda > > > > > new > > > > >>>> to me. > > > > >>> SHELL "zip ..." WAIT > > > > >>> > > > > >>> SHELL "unzip ..." WAIT > > > > >>> > > > > >>> That run the shell commands as if you typed them in a terminal. > > > > >>> > > > > >>> There is a compression component that allows you to do the same > > thing > > > > >>> without running external process, but it is a more complex to > > > explain. > > > > >>> > > > > >>>> Which kind of search functions does gambas have?? regex I > assume, > > > any > > > > >>>> others?? > > > > >>>> > > > > >>> I use Replace$(). No need for regexp. If your search pattern are > > like > > > > >>> "$(field name)", you won't mix up with any OpenOffice XML syntax. > > > > >>> > > > > >>> Don't forget to look at XML format for correctly quoting > characters > > > > that > > > > >>> must be quoted. > > > > >>> > > > > >>> Regards, > > > > >>> > > > > >> > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > >> Own the Future-Intel® Level Up Game Demo Contest 2013 > > > > >> Rise to greatness in Intel's independent game demo contest. > > > > >> Compete for recognition, cash, and the chance to get your game > > > > >> on Steam. $5K grand prize plus 10 genre and skill prizes. > > > > >> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > > > > >> _______________________________________________ > > > > >> Gambas-user mailing list > > > > >> Gambas-user at lists.sourceforge.net > > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Own the Future-Intel(R) Level Up Game Demo Contest 2013 > > > > > Rise to greatness in Intel's independent game demo contest. Compete > > > > > for recognition, cash, and the chance to get your game on Steam. > > > > > $5K grand prize plus 10 genre and skill prizes. Submit your demo > > > > > by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > . > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Minimize network downtime and maximize team effectiveness. > > > > Reduce network management and security costs.Learn how to hire > > > > the most talented Cisco Certified professionals. Visit the > > > > Employer Resources Portal > > > > http://www.cisco.com/web/learning/employer_resources/index.html > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Minimize network downtime and maximize team effectiveness. > > > Reduce network management and security costs.Learn how to hire > > > the most talented Cisco Certified professionals. Visit the > > > Employer Resources Portal > > > http://www.cisco.com/web/learning/employer_resources/index.html > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Minimize network downtime and maximize team effectiveness. > > Reduce network management and security costs.Learn how to hire > > the most talented Cisco Certified professionals. Visit the > > Employer Resources Portal > > http://www.cisco.com/web/learning/employer_resources/index.html > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Wed Apr 3 17:57:44 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 03 Apr 2013 17:57:44 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> Message-ID: <1365004664.2990.20.camel@...3024...> On Wed, 2013-04-03 at 08:39 -0700, Rocko wrote: > so each value needs it's own the replace statement? YES > On Apr 3, 2013 8:28 AM, "Fabien Bodard" wrote: > > > Ok so it's one call by entry. > > > > Unzip odt > > Load the file in a string > > Replace as many as need > > Save the string in the file > > Zip the directory > > > > Simple! > > Le 3 avr. 2013 17:20, "Rocko" a ?crit : > > > > > I don't think you understanf, I want to replace different fields with > > > different values not all the same value > > > On Apr 3, 2013 1:41 AM, "Fabien Bodard" wrote: > > > > > > > Replace, > > > > Replace all the words that match the pattern > > > > Read the doc! > > > > Le 3 avr. 2013 01:10, "rocko" a ?crit : > > > > > > > > > Is it possible to do multiple replacing with/Replace/ > > > > > > > > > > I have several fields that I want to change in an .odt file > > > > > do I have to do multiple Replace statements or can I > > > > > put them all in one /Replace/ statement?? > > > > > > > > > > > > > > > On 04/02/2013 03:34 AM, Fabien Bodard wrote: > > > > > > Le 2 avr. 2013 01:37, "rocko" a ?crit : > > > > > >> Not sure I'm using /Replace$/ correctly. > > > > > >> I want to replace instance of $(Name) in the XML file > > > > > >> with the value of the /mName/ variable > > > > > >> > > > > > >> Code: > > > > > >> /xName = "home/rocko/Zip/content.xml"// > > > > > >> // newFile = Replace$(xName, "$(Name)", mName)/ > > > > > > Newfile=replace (file. Load(xname), "$(Name )",mname ) > > > > > > File. Save(xname, newfile) > > > > > >> Of course this doesn't work, But I don't know why > > > > > >> > > > > > >> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > > > > > >>> Le 01/04/2013 01:32, rocko a ?crit : > > > > > >>>> I actually tried that after sending my response. > > > > > >>>> lo and behold! XML file woo hoo! > > > > > >>>> > > > > > >>>> So I assume I can just do a search thru th XML file and change > > > > things > > > > > >>>> then re-save > > > > > >>>> the file and re-zip it like you said. > > > > > >>>> > > > > > >>>> > > > > > >>>> > > > > > >>>> So how do I unzip and re-zip a file in Gambas?, sorry this is > > > kinda > > > > > > new > > > > > >>>> to me. > > > > > >>> SHELL "zip ..." WAIT > > > > > >>> > > > > > >>> SHELL "unzip ..." WAIT > > > > > >>> > > > > > >>> That run the shell commands as if you typed them in a terminal. > > > > > >>> > > > > > >>> There is a compression component that allows you to do the same > > > thing > > > > > >>> without running external process, but it is a more complex to > > > > explain. > > > > > >>> > > > > > >>>> Which kind of search functions does gambas have?? regex I > > assume, > > > > any > > > > > >>>> others?? > > > > > >>>> > > > > > >>> I use Replace$(). No need for regexp. If your search pattern are > > > like > > > > > >>> "$(field name)", you won't mix up with any OpenOffice XML syntax. > > > > > >>> > > > > > >>> Don't forget to look at XML format for correctly quoting > > characters > > > > > that > > > > > >>> must be quoted. > > > > > >>> > > > > > >>> Regards, > > > > > >>> > > > > > >> > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > >> Own the Future-Intel® Level Up Game Demo Contest 2013 > > > > > >> Rise to greatness in Intel's independent game demo contest. > > > > > >> Compete for recognition, cash, and the chance to get your game > > > > > >> on Steam. $5K grand prize plus 10 genre and skill prizes. > > > > > >> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > > > > > >> _______________________________________________ > > > > > >> Gambas-user mailing list > > > > > >> Gambas-user at lists.sourceforge.net > > > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > Own the Future-Intel(R) Level Up Game Demo Contest 2013 > > > > > > Rise to greatness in Intel's independent game demo contest. Compete > > > > > > for recognition, cash, and the chance to get your game on Steam. > > > > > > $5K grand prize plus 10 genre and skill prizes. Submit your demo > > > > > > by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > . > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Minimize network downtime and maximize team effectiveness. > > > > > Reduce network management and security costs.Learn how to hire > > > > > the most talented Cisco Certified professionals. Visit the > > > > > Employer Resources Portal > > > > > http://www.cisco.com/web/learning/employer_resources/index.html > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Minimize network downtime and maximize team effectiveness. > > > > Reduce network management and security costs.Learn how to hire > > > > the most talented Cisco Certified professionals. Visit the > > > > Employer Resources Portal > > > > http://www.cisco.com/web/learning/employer_resources/index.html > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Minimize network downtime and maximize team effectiveness. > > > Reduce network management and security costs.Learn how to hire > > > the most talented Cisco Certified professionals. Visit the > > > Employer Resources Portal > > > http://www.cisco.com/web/learning/employer_resources/index.html > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------------ > > Minimize network downtime and maximize team effectiveness. > > Reduce network management and security costs.Learn how to hire > > the most talented Cisco Certified professionals. Visit the > > Employer Resources Portal > > http://www.cisco.com/web/learning/employer_resources/index.html > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From sunblaster5 at ...626... Wed Apr 3 18:18:30 2013 From: sunblaster5 at ...626... (rocko) Date: Wed, 03 Apr 2013 09:18:30 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <1365004664.2990.20.camel@...3024...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> <1365004664.2990.20.camel@...3024...> Message-ID: <515C5656.2060106@...626...> Ok I got that to work, but the code is kinda long and ugly as I have to save the file after doing a /Replace/. I have 6 fields I have to replace, so thats 6 Replace statements with 6 File.Save, I can put in a Function and just call the function when I need it, but still I would think the Replace could take multiple arguments for replacing multiple fields. But oh well.. On 04/03/2013 08:57 AM, Willy Raets wrote: > On Wed, 2013-04-03 at 08:39 -0700, Rocko wrote: >> so each value needs it's own the replace statement? > YES > >> On Apr 3, 2013 8:28 AM, "Fabien Bodard" wrote: >> >>> Ok so it's one call by entry. >>> >>> Unzip odt >>> Load the file in a string >>> Replace as many as need >>> Save the string in the file >>> Zip the directory >>> >>> Simple! >>> Le 3 avr. 2013 17:20, "Rocko" a ?crit : >>> >>>> I don't think you understanf, I want to replace different fields with >>>> different values not all the same value >>>> On Apr 3, 2013 1:41 AM, "Fabien Bodard" wrote: >>>> >>>>> Replace, >>>>> Replace all the words that match the pattern >>>>> Read the doc! >>>>> Le 3 avr. 2013 01:10, "rocko" a ?crit : >>>>> >>>>>> Is it possible to do multiple replacing with/Replace/ >>>>>> >>>>>> I have several fields that I want to change in an .odt file >>>>>> do I have to do multiple Replace statements or can I >>>>>> put them all in one /Replace/ statement?? >>>>>> >>>>>> >>>>>> On 04/02/2013 03:34 AM, Fabien Bodard wrote: >>>>>>> Le 2 avr. 2013 01:37, "rocko" a ?crit : >>>>>>>> Not sure I'm using /Replace$/ correctly. >>>>>>>> I want to replace instance of $(Name) in the XML file >>>>>>>> with the value of the /mName/ variable >>>>>>>> >>>>>>>> Code: >>>>>>>> /xName = "home/rocko/Zip/content.xml"// >>>>>>>> // newFile = Replace$(xName, "$(Name)", mName)/ >>>>>>> Newfile=replace (file. Load(xname), "$(Name )",mname ) >>>>>>> File. Save(xname, newfile) >>>>>>>> Of course this doesn't work, But I don't know why >>>>>>>> >>>>>>>> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: >>>>>>>>> Le 01/04/2013 01:32, rocko a ?crit : >>>>>>>>>> I actually tried that after sending my response. >>>>>>>>>> lo and behold! XML file woo hoo! >>>>>>>>>> >>>>>>>>>> So I assume I can just do a search thru th XML file and change >>>>> things >>>>>>>>>> then re-save >>>>>>>>>> the file and re-zip it like you said. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> So how do I unzip and re-zip a file in Gambas?, sorry this is >>>> kinda >>>>>>> new >>>>>>>>>> to me. >>>>>>>>> SHELL "zip ..." WAIT >>>>>>>>> >>>>>>>>> SHELL "unzip ..." WAIT >>>>>>>>> >>>>>>>>> That run the shell commands as if you typed them in a terminal. >>>>>>>>> >>>>>>>>> There is a compression component that allows you to do the same >>>> thing >>>>>>>>> without running external process, but it is a more complex to >>>>> explain. >>>>>>>>>> Which kind of search functions does gambas have?? regex I >>> assume, >>>>> any >>>>>>>>>> others?? >>>>>>>>>> >>>>>>>>> I use Replace$(). No need for regexp. If your search pattern are >>>> like >>>>>>>>> "$(field name)", you won't mix up with any OpenOffice XML syntax. >>>>>>>>> >>>>>>>>> Don't forget to look at XML format for correctly quoting >>> characters >>>>>> that >>>>>>>>> must be quoted. >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> >>> ------------------------------------------------------------------------------ >>>>>>>> Own the Future-Intel® Level Up Game Demo Contest 2013 >>>>>>>> Rise to greatness in Intel's independent game demo contest. >>>>>>>> Compete for recognition, cash, and the chance to get your game >>>>>>>> on Steam. $5K grand prize plus 10 genre and skill prizes. >>>>>>>> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d >>>>>>>> _______________________________________________ >>>>>>>> Gambas-user mailing list >>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------------------------------------------------------------------------------ >>>>>>> Own the Future-Intel(R) Level Up Game Demo Contest 2013 >>>>>>> Rise to greatness in Intel's independent game demo contest. Compete >>>>>>> for recognition, cash, and the chance to get your game on Steam. >>>>>>> $5K grand prize plus 10 genre and skill prizes. Submit your demo >>>>>>> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 >>>>>>> _______________________________________________ >>>>>>> Gambas-user mailing list >>>>>>> Gambas-user at lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>> . >>>>>>> >>>>>> >>>>>> >>> ------------------------------------------------------------------------------ >>>>>> Minimize network downtime and maximize team effectiveness. >>>>>> Reduce network management and security costs.Learn how to hire >>>>>> the most talented Cisco Certified professionals. Visit the >>>>>> Employer Resources Portal >>>>>> http://www.cisco.com/web/learning/employer_resources/index.html >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> >>> ------------------------------------------------------------------------------ >>>>> Minimize network downtime and maximize team effectiveness. >>>>> Reduce network management and security costs.Learn how to hire >>>>> the most talented Cisco Certified professionals. Visit the >>>>> Employer Resources Portal >>>>> http://www.cisco.com/web/learning/employer_resources/index.html >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>> ------------------------------------------------------------------------------ >>>> Minimize network downtime and maximize team effectiveness. >>>> Reduce network management and security costs.Learn how to hire >>>> the most talented Cisco Certified professionals. Visit the >>>> Employer Resources Portal >>>> http://www.cisco.com/web/learning/employer_resources/index.html >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> ------------------------------------------------------------------------------ >>> Minimize network downtime and maximize team effectiveness. >>> Reduce network management and security costs.Learn how to hire >>> the most talented Cisco Certified professionals. Visit the >>> Employer Resources Portal >>> http://www.cisco.com/web/learning/employer_resources/index.html >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Minimize network downtime and maximize team effectiveness. >> Reduce network management and security costs.Learn how to hire >> the most talented Cisco Certified professionals. Visit the >> Employer Resources Portal >> http://www.cisco.com/web/learning/employer_resources/index.html >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Wed Apr 3 18:55:34 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 3 Apr 2013 19:55:34 +0300 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <515C5656.2060106@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> Message-ID: Of course you don't need to do that, there are multiple different options. One of them would be nested calls. Example: File.Save(sPathToFileWhereDataBelongs, Replace(Replace(Replace(File.Load( sFileName), "$(Name)", sName), "$(Something)", sSomething), "$(moresomething)", sYetSomethingElse)) Or this way: Dim sTmp As String sTmp = File.Load(sFileName) sTmp = Replace(sTmp, "$(Name)", sName) sTmp = Replace(sTmp, "$(Something)", sSomething) sTmp = Replace(sTmp, "$(moresomething)", sYetSomethingElse) File.Save(sPathToFileWhereDataBelongs, sTmp) Try to understand what every command does and why, then you can learn to program. Jussi On Wed, Apr 3, 2013 at 7:18 PM, rocko wrote: > Ok I got that to work, but the code is kinda long and ugly > as I have to save the file after doing a /Replace/. > > I have 6 fields I have to replace, so thats 6 Replace statements with 6 > File.Save, > I can put in a Function and just call the function when I need it, but > still I would > think the Replace could take multiple arguments for replacing multiple > fields. > But oh well.. > > > > On 04/03/2013 08:57 AM, Willy Raets wrote: > > On Wed, 2013-04-03 at 08:39 -0700, Rocko wrote: > >> so each value needs it's own the replace statement? > > YES > > > >> On Apr 3, 2013 8:28 AM, "Fabien Bodard" wrote: > >> > >>> Ok so it's one call by entry. > >>> > >>> Unzip odt > >>> Load the file in a string > >>> Replace as many as need > >>> Save the string in the file > >>> Zip the directory > >>> > >>> Simple! > >>> Le 3 avr. 2013 17:20, "Rocko" a ?crit : > >>> > >>>> I don't think you understanf, I want to replace different fields with > >>>> different values not all the same value > >>>> On Apr 3, 2013 1:41 AM, "Fabien Bodard" wrote: > >>>> > >>>>> Replace, > >>>>> Replace all the words that match the pattern > >>>>> Read the doc! > >>>>> Le 3 avr. 2013 01:10, "rocko" a ?crit : > >>>>> > >>>>>> Is it possible to do multiple replacing with/Replace/ > >>>>>> > >>>>>> I have several fields that I want to change in an .odt file > >>>>>> do I have to do multiple Replace statements or can I > >>>>>> put them all in one /Replace/ statement?? > >>>>>> > >>>>>> > >>>>>> On 04/02/2013 03:34 AM, Fabien Bodard wrote: > >>>>>>> Le 2 avr. 2013 01:37, "rocko" a ?crit : > >>>>>>>> Not sure I'm using /Replace$/ correctly. > >>>>>>>> I want to replace instance of $(Name) in the XML file > >>>>>>>> with the value of the /mName/ variable > >>>>>>>> > >>>>>>>> Code: > >>>>>>>> /xName = "home/rocko/Zip/content.xml"// > >>>>>>>> // newFile = Replace$(xName, "$(Name)", mName)/ > >>>>>>> Newfile=replace (file. Load(xname), "$(Name )",mname ) > >>>>>>> File. Save(xname, newfile) > >>>>>>>> Of course this doesn't work, But I don't know why > >>>>>>>> > >>>>>>>> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > >>>>>>>>> Le 01/04/2013 01:32, rocko a ?crit : > >>>>>>>>>> I actually tried that after sending my response. > >>>>>>>>>> lo and behold! XML file woo hoo! > >>>>>>>>>> > >>>>>>>>>> So I assume I can just do a search thru th XML file and change > >>>>> things > >>>>>>>>>> then re-save > >>>>>>>>>> the file and re-zip it like you said. > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> So how do I unzip and re-zip a file in Gambas?, sorry this is > >>>> kinda > >>>>>>> new > >>>>>>>>>> to me. > >>>>>>>>> SHELL "zip ..." WAIT > >>>>>>>>> > >>>>>>>>> SHELL "unzip ..." WAIT > >>>>>>>>> > >>>>>>>>> That run the shell commands as if you typed them in a terminal. > >>>>>>>>> > >>>>>>>>> There is a compression component that allows you to do the same > >>>> thing > >>>>>>>>> without running external process, but it is a more complex to > >>>>> explain. > >>>>>>>>>> Which kind of search functions does gambas have?? regex I > >>> assume, > >>>>> any > >>>>>>>>>> others?? > >>>>>>>>>> > >>>>>>>>> I use Replace$(). No need for regexp. If your search pattern are > >>>> like > >>>>>>>>> "$(field name)", you won't mix up with any OpenOffice XML syntax. > >>>>>>>>> > >>>>>>>>> Don't forget to look at XML format for correctly quoting > >>> characters > >>>>>> that > >>>>>>>>> must be quoted. > >>>>>>>>> > >>>>>>>>> Regards, > >>>>>>>>> > >>> > ------------------------------------------------------------------------------ > >>>>>>>> Own the Future-Intel® Level Up Game Demo Contest 2013 > >>>>>>>> Rise to greatness in Intel's independent game demo contest. > >>>>>>>> Compete for recognition, cash, and the chance to get your game > >>>>>>>> on Steam. $5K grand prize plus 10 genre and skill prizes. > >>>>>>>> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > >>>>>>>> _______________________________________________ > >>>>>>>> Gambas-user mailing list > >>>>>>>> Gambas-user at lists.sourceforge.net > >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > ------------------------------------------------------------------------------ > >>>>>>> Own the Future-Intel(R) Level Up Game Demo Contest 2013 > >>>>>>> Rise to greatness in Intel's independent game demo contest. Compete > >>>>>>> for recognition, cash, and the chance to get your game on Steam. > >>>>>>> $5K grand prize plus 10 genre and skill prizes. Submit your demo > >>>>>>> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > >>>>>>> _______________________________________________ > >>>>>>> Gambas-user mailing list > >>>>>>> Gambas-user at lists.sourceforge.net > >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>>> . > >>>>>>> > >>>>>> > >>>>>> > >>> > ------------------------------------------------------------------------------ > >>>>>> Minimize network downtime and maximize team effectiveness. > >>>>>> Reduce network management and security costs.Learn how to hire > >>>>>> the most talented Cisco Certified professionals. Visit the > >>>>>> Employer Resources Portal > >>>>>> http://www.cisco.com/web/learning/employer_resources/index.html > >>>>>> _______________________________________________ > >>>>>> Gambas-user mailing list > >>>>>> Gambas-user at lists.sourceforge.net > >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> > >>>>> > >>> > ------------------------------------------------------------------------------ > >>>>> Minimize network downtime and maximize team effectiveness. > >>>>> Reduce network management and security costs.Learn how to hire > >>>>> the most talented Cisco Certified professionals. Visit the > >>>>> Employer Resources Portal > >>>>> http://www.cisco.com/web/learning/employer_resources/index.html > >>>>> _______________________________________________ > >>>>> Gambas-user mailing list > >>>>> Gambas-user at lists.sourceforge.net > >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>> > >>>> > >>> > ------------------------------------------------------------------------------ > >>>> Minimize network downtime and maximize team effectiveness. > >>>> Reduce network management and security costs.Learn how to hire > >>>> the most talented Cisco Certified professionals. Visit the > >>>> Employer Resources Portal > >>>> http://www.cisco.com/web/learning/employer_resources/index.html > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>> > ------------------------------------------------------------------------------ > >>> Minimize network downtime and maximize team effectiveness. > >>> Reduce network management and security costs.Learn how to hire > >>> the most talented Cisco Certified professionals. Visit the > >>> Employer Resources Portal > >>> http://www.cisco.com/web/learning/employer_resources/index.html > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> > ------------------------------------------------------------------------------ > >> Minimize network downtime and maximize team effectiveness. > >> Reduce network management and security costs.Learn how to hire > >> the most talented Cisco Certified professionals. Visit the > >> Employer Resources Portal > >> http://www.cisco.com/web/learning/employer_resources/index.html > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Wed Apr 3 19:05:17 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 03 Apr 2013 19:05:17 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <515C5656.2060106@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> Message-ID: <1365008717.2990.28.camel@...3024...> On Wed, 2013-04-03 at 09:18 -0700, rocko wrote: > Ok I got that to work, but the code is kinda long and ugly > as I have to save the file after doing a /Replace/. > > I have 6 fields I have to replace, so thats 6 Replace statements with 6 > File.Save, > I can put in a Function and just call the function when I need it, but > still I would > think the Replace could take multiple arguments for replacing multiple > fields. > But oh well.. As Fabien wrote: Load the file in a string Replace as many as need Save the string in the file Dim sFileText, sFilePath As String sFilePath = "home/rocko/Zip/content.xml" '-- Load file in string -- sFileText = File.Load(sFilePath) '-- Replace as many as needed -- sFileText = Replace(sFileText, "$(Name)", mName) sFileText = Replace(sFileText, ...) sFileText = Replace(sFileText, ...) sFileText = Replace(sFileText, ...) sFileText = Replace(sFileText, ...) sFileText = Replace(sFileText, ...) '-- Save string to file -- File.Save(sFilePath, sMyFileText) Only one file load and one file save. Hope this will help you understand the matter.. > > > > On 04/03/2013 08:57 AM, Willy Raets wrote: > > On Wed, 2013-04-03 at 08:39 -0700, Rocko wrote: > >> so each value needs it's own the replace statement? > > YES > > > >> On Apr 3, 2013 8:28 AM, "Fabien Bodard" wrote: > >> > >>> Ok so it's one call by entry. > >>> > >>> Unzip odt > >>> Load the file in a string > >>> Replace as many as need > >>> Save the string in the file > >>> Zip the directory > >>> > >>> Simple! > >>> Le 3 avr. 2013 17:20, "Rocko" a ?crit : > >>> > >>>> I don't think you understanf, I want to replace different fields with > >>>> different values not all the same value > >>>> On Apr 3, 2013 1:41 AM, "Fabien Bodard" wrote: > >>>> > >>>>> Replace, > >>>>> Replace all the words that match the pattern > >>>>> Read the doc! > >>>>> Le 3 avr. 2013 01:10, "rocko" a ?crit : > >>>>> > >>>>>> Is it possible to do multiple replacing with/Replace/ > >>>>>> > >>>>>> I have several fields that I want to change in an .odt file > >>>>>> do I have to do multiple Replace statements or can I > >>>>>> put them all in one /Replace/ statement?? > >>>>>> > >>>>>> > >>>>>> On 04/02/2013 03:34 AM, Fabien Bodard wrote: > >>>>>>> Le 2 avr. 2013 01:37, "rocko" a ?crit : > >>>>>>>> Not sure I'm using /Replace$/ correctly. > >>>>>>>> I want to replace instance of $(Name) in the XML file > >>>>>>>> with the value of the /mName/ variable > >>>>>>>> > >>>>>>>> Code: > >>>>>>>> /xName = "home/rocko/Zip/content.xml"// > >>>>>>>> // newFile = Replace$(xName, "$(Name)", mName)/ > >>>>>>> Newfile=replace (file. Load(xname), "$(Name )",mname ) > >>>>>>> File. Save(xname, newfile) > >>>>>>>> Of course this doesn't work, But I don't know why > >>>>>>>> > >>>>>>>> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > >>>>>>>>> Le 01/04/2013 01:32, rocko a ?crit : > >>>>>>>>>> I actually tried that after sending my response. > >>>>>>>>>> lo and behold! XML file woo hoo! > >>>>>>>>>> > >>>>>>>>>> So I assume I can just do a search thru th XML file and change > >>>>> things > >>>>>>>>>> then re-save > >>>>>>>>>> the file and re-zip it like you said. > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> So how do I unzip and re-zip a file in Gambas?, sorry this is > >>>> kinda > >>>>>>> new > >>>>>>>>>> to me. > >>>>>>>>> SHELL "zip ..." WAIT > >>>>>>>>> > >>>>>>>>> SHELL "unzip ..." WAIT > >>>>>>>>> > >>>>>>>>> That run the shell commands as if you typed them in a terminal. > >>>>>>>>> > >>>>>>>>> There is a compression component that allows you to do the same > >>>> thing > >>>>>>>>> without running external process, but it is a more complex to > >>>>> explain. > >>>>>>>>>> Which kind of search functions does gambas have?? regex I > >>> assume, > >>>>> any > >>>>>>>>>> others?? > >>>>>>>>>> > >>>>>>>>> I use Replace$(). No need for regexp. If your search pattern are > >>>> like > >>>>>>>>> "$(field name)", you won't mix up with any OpenOffice XML syntax. > >>>>>>>>> > >>>>>>>>> Don't forget to look at XML format for correctly quoting > >>> characters > >>>>>> that > >>>>>>>>> must be quoted. > >>>>>>>>> > >>>>>>>>> Regards, > >>>>>>>>> > >>> ------------------------------------------------------------------------------ > >>>>>>>> Own the Future-Intel® Level Up Game Demo Contest 2013 > >>>>>>>> Rise to greatness in Intel's independent game demo contest. > >>>>>>>> Compete for recognition, cash, and the chance to get your game > >>>>>>>> on Steam. $5K grand prize plus 10 genre and skill prizes. > >>>>>>>> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > >>>>>>>> _______________________________________________ > >>>>>>>> Gambas-user mailing list > >>>>>>>> Gambas-user at lists.sourceforge.net > >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> ------------------------------------------------------------------------------ > >>>>>>> Own the Future-Intel(R) Level Up Game Demo Contest 2013 > >>>>>>> Rise to greatness in Intel's independent game demo contest. Compete > >>>>>>> for recognition, cash, and the chance to get your game on Steam. > >>>>>>> $5K grand prize plus 10 genre and skill prizes. Submit your demo > >>>>>>> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > >>>>>>> _______________________________________________ > >>>>>>> Gambas-user mailing list > >>>>>>> Gambas-user at lists.sourceforge.net > >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>>> . > >>>>>>> > >>>>>> > >>>>>> > >>> ------------------------------------------------------------------------------ > >>>>>> Minimize network downtime and maximize team effectiveness. > >>>>>> Reduce network management and security costs.Learn how to hire > >>>>>> the most talented Cisco Certified professionals. Visit the > >>>>>> Employer Resources Portal > >>>>>> http://www.cisco.com/web/learning/employer_resources/index.html > >>>>>> _______________________________________________ > >>>>>> Gambas-user mailing list > >>>>>> Gambas-user at lists.sourceforge.net > >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> > >>>>> > >>> ------------------------------------------------------------------------------ > >>>>> Minimize network downtime and maximize team effectiveness. > >>>>> Reduce network management and security costs.Learn how to hire > >>>>> the most talented Cisco Certified professionals. Visit the > >>>>> Employer Resources Portal > >>>>> http://www.cisco.com/web/learning/employer_resources/index.html > >>>>> _______________________________________________ > >>>>> Gambas-user mailing list > >>>>> Gambas-user at lists.sourceforge.net > >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>> > >>>> > >>> ------------------------------------------------------------------------------ > >>>> Minimize network downtime and maximize team effectiveness. > >>>> Reduce network management and security costs.Learn how to hire > >>>> the most talented Cisco Certified professionals. Visit the > >>>> Employer Resources Portal > >>>> http://www.cisco.com/web/learning/employer_resources/index.html > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>> ------------------------------------------------------------------------------ > >>> Minimize network downtime and maximize team effectiveness. > >>> Reduce network management and security costs.Learn how to hire > >>> the most talented Cisco Certified professionals. Visit the > >>> Employer Resources Portal > >>> http://www.cisco.com/web/learning/employer_resources/index.html > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> ------------------------------------------------------------------------------ > >> Minimize network downtime and maximize team effectiveness. > >> Reduce network management and security costs.Learn how to hire > >> the most talented Cisco Certified professionals. Visit the > >> Employer Resources Portal > >> http://www.cisco.com/web/learning/employer_resources/index.html > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From sunblaster5 at ...626... Wed Apr 3 19:13:46 2013 From: sunblaster5 at ...626... (rocko) Date: Wed, 03 Apr 2013 10:13:46 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <1365008717.2990.28.camel@...3024...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> <1365008717.2990.28.camel@...3024...> Message-ID: <515C634A.1030508@...626...> Ok thanks for suggestions. I'm now having problems with zipping the files. I "m naming the files dynamically with the first name of the person from my database. But the zip command sometimes saves the file as a zip not .odt. Why it does this I don't know, actually it does this a lot/ I'm using this as my zip code: zip -r " & sFirst & ".odt ." Wait How do I get my files saved with the .odt extension all the time?? I tried renaming any .zip to a .odt with the rename command but thats not working either. On 04/03/2013 10:05 AM, Willy Raets wrote: > On Wed, 2013-04-03 at 09:18 -0700, rocko wrote: >> Ok I got that to work, but the code is kinda long and ugly >> as I have to save the file after doing a /Replace/. >> >> I have 6 fields I have to replace, so thats 6 Replace statements with 6 >> File.Save, >> I can put in a Function and just call the function when I need it, but >> still I would >> think the Replace could take multiple arguments for replacing multiple >> fields. >> But oh well.. > As Fabien wrote: > Load the file in a string > Replace as many as need > Save the string in the file > > Dim sFileText, sFilePath As String > > sFilePath = "home/rocko/Zip/content.xml" > '-- Load file in string -- > sFileText = File.Load(sFilePath) > '-- Replace as many as needed -- > sFileText = Replace(sFileText, "$(Name)", mName) > sFileText = Replace(sFileText, ...) > sFileText = Replace(sFileText, ...) > sFileText = Replace(sFileText, ...) > sFileText = Replace(sFileText, ...) > sFileText = Replace(sFileText, ...) > '-- Save string to file -- > File.Save(sFilePath, sMyFileText) > > Only one file load and one file save. > > Hope this will help you understand the matter.. > > >> >> >> On 04/03/2013 08:57 AM, Willy Raets wrote: >>> On Wed, 2013-04-03 at 08:39 -0700, Rocko wrote: >>>> so each value needs it's own the replace statement? >>> YES >>> >>>> On Apr 3, 2013 8:28 AM, "Fabien Bodard" wrote: >>>> >>>>> Ok so it's one call by entry. >>>>> >>>>> Unzip odt >>>>> Load the file in a string >>>>> Replace as many as need >>>>> Save the string in the file >>>>> Zip the directory >>>>> >>>>> Simple! >>>>> Le 3 avr. 2013 17:20, "Rocko" a ?crit : >>>>> >>>>>> I don't think you understanf, I want to replace different fields with >>>>>> different values not all the same value >>>>>> On Apr 3, 2013 1:41 AM, "Fabien Bodard" wrote: >>>>>> >>>>>>> Replace, >>>>>>> Replace all the words that match the pattern >>>>>>> Read the doc! >>>>>>> Le 3 avr. 2013 01:10, "rocko" a ?crit : >>>>>>> >>>>>>>> Is it possible to do multiple replacing with/Replace/ >>>>>>>> >>>>>>>> I have several fields that I want to change in an .odt file >>>>>>>> do I have to do multiple Replace statements or can I >>>>>>>> put them all in one /Replace/ statement?? >>>>>>>> >>>>>>>> >>>>>>>> On 04/02/2013 03:34 AM, Fabien Bodard wrote: >>>>>>>>> Le 2 avr. 2013 01:37, "rocko" a ?crit : >>>>>>>>>> Not sure I'm using /Replace$/ correctly. >>>>>>>>>> I want to replace instance of $(Name) in the XML file >>>>>>>>>> with the value of the /mName/ variable >>>>>>>>>> >>>>>>>>>> Code: >>>>>>>>>> /xName = "home/rocko/Zip/content.xml"// >>>>>>>>>> // newFile = Replace$(xName, "$(Name)", mName)/ >>>>>>>>> Newfile=replace (file. Load(xname), "$(Name )",mname ) >>>>>>>>> File. Save(xname, newfile) >>>>>>>>>> Of course this doesn't work, But I don't know why >>>>>>>>>> >>>>>>>>>> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: >>>>>>>>>>> Le 01/04/2013 01:32, rocko a ?crit : >>>>>>>>>>>> I actually tried that after sending my response. >>>>>>>>>>>> lo and behold! XML file woo hoo! >>>>>>>>>>>> >>>>>>>>>>>> So I assume I can just do a search thru th XML file and change >>>>>>> things >>>>>>>>>>>> then re-save >>>>>>>>>>>> the file and re-zip it like you said. >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> So how do I unzip and re-zip a file in Gambas?, sorry this is >>>>>> kinda >>>>>>>>> new >>>>>>>>>>>> to me. >>>>>>>>>>> SHELL "zip ..." WAIT >>>>>>>>>>> >>>>>>>>>>> SHELL "unzip ..." WAIT >>>>>>>>>>> >>>>>>>>>>> That run the shell commands as if you typed them in a terminal. >>>>>>>>>>> >>>>>>>>>>> There is a compression component that allows you to do the same >>>>>> thing >>>>>>>>>>> without running external process, but it is a more complex to >>>>>>> explain. >>>>>>>>>>>> Which kind of search functions does gambas have?? regex I >>>>> assume, >>>>>>> any >>>>>>>>>>>> others?? >>>>>>>>>>>> >>>>>>>>>>> I use Replace$(). No need for regexp. If your search pattern are >>>>>> like >>>>>>>>>>> "$(field name)", you won't mix up with any OpenOffice XML syntax. >>>>>>>>>>> >>>>>>>>>>> Don't forget to look at XML format for correctly quoting >>>>> characters >>>>>>>> that >>>>>>>>>>> must be quoted. >>>>>>>>>>> >>>>>>>>>>> Regards, >>>>>>>>>>> >>>>> ------------------------------------------------------------------------------ >>>>>>>>>> Own the Future-Intel® Level Up Game Demo Contest 2013 >>>>>>>>>> Rise to greatness in Intel's independent game demo contest. >>>>>>>>>> Compete for recognition, cash, and the chance to get your game >>>>>>>>>> on Steam. $5K grand prize plus 10 genre and skill prizes. >>>>>>>>>> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d >>>>>>>>>> _______________________________________________ >>>>>>>>>> Gambas-user mailing list >>>>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> ------------------------------------------------------------------------------ >>>>>>>>> Own the Future-Intel(R) Level Up Game Demo Contest 2013 >>>>>>>>> Rise to greatness in Intel's independent game demo contest. Compete >>>>>>>>> for recognition, cash, and the chance to get your game on Steam. >>>>>>>>> $5K grand prize plus 10 genre and skill prizes. Submit your demo >>>>>>>>> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 >>>>>>>>> _______________________________________________ >>>>>>>>> Gambas-user mailing list >>>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>>>> . >>>>>>>>> >>>>>>>> >>>>> ------------------------------------------------------------------------------ >>>>>>>> Minimize network downtime and maximize team effectiveness. >>>>>>>> Reduce network management and security costs.Learn how to hire >>>>>>>> the most talented Cisco Certified professionals. Visit the >>>>>>>> Employer Resources Portal >>>>>>>> http://www.cisco.com/web/learning/employer_resources/index.html >>>>>>>> _______________________________________________ >>>>>>>> Gambas-user mailing list >>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>>> >>>>> ------------------------------------------------------------------------------ >>>>>>> Minimize network downtime and maximize team effectiveness. >>>>>>> Reduce network management and security costs.Learn how to hire >>>>>>> the most talented Cisco Certified professionals. Visit the >>>>>>> Employer Resources Portal >>>>>>> http://www.cisco.com/web/learning/employer_resources/index.html >>>>>>> _______________________________________________ >>>>>>> Gambas-user mailing list >>>>>>> Gambas-user at lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>> >>>>> ------------------------------------------------------------------------------ >>>>>> Minimize network downtime and maximize team effectiveness. >>>>>> Reduce network management and security costs.Learn how to hire >>>>>> the most talented Cisco Certified professionals. Visit the >>>>>> Employer Resources Portal >>>>>> http://www.cisco.com/web/learning/employer_resources/index.html >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Minimize network downtime and maximize team effectiveness. >>>>> Reduce network management and security costs.Learn how to hire >>>>> the most talented Cisco Certified professionals. Visit the >>>>> Employer Resources Portal >>>>> http://www.cisco.com/web/learning/employer_resources/index.html >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> ------------------------------------------------------------------------------ >>>> Minimize network downtime and maximize team effectiveness. >>>> Reduce network management and security costs.Learn how to hire >>>> the most talented Cisco Certified professionals. Visit the >>>> Employer Resources Portal >>>> http://www.cisco.com/web/learning/employer_resources/index.html >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------------------------ >> Minimize network downtime and maximize team effectiveness. >> Reduce network management and security costs.Learn how to hire >> the most talented Cisco Certified professionals. Visit the >> Employer Resources Portal >> http://www.cisco.com/web/learning/employer_resources/index.html >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user From willy at ...2734... Wed Apr 3 19:36:01 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 03 Apr 2013 19:36:01 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <515C634A.1030508@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> <1365008717.2990.28.camel@...3024...> <515C634A.1030508@...626...> Message-ID: <1365010561.2990.39.camel@...3024...> On Wed, 2013-04-03 at 10:13 -0700, rocko wrote: > Ok thanks for suggestions. > > I'm now having problems with zipping the files. > I "m naming the files dynamically with the first name of the > person from my database. > > But the zip command sometimes saves the file as a zip not .odt. > Why it does this I don't know, actually it does this a lot/ > > I'm using this as my zip code: > zip -r " & sFirst & ".odt ." Wait zip -h2 in a terminal gives you more detailed instructions on use of zip zip -r NameOfZipFile FileOrFolderToAdd NameOfZipFile in your case is sFirst & ".odt" FileOrFolderToAdd is the place you unzipped the original .odt to and where you replaces some content. ------------------ Dim sCommand, sPath As String sPath = User.Home & "place you unzipped and modified the content of odt" sCommand = "zip -r " & sFirst & ".odt " & sPath Shell sCommand ------------------ Watch the spaces in the strings as they are important!! > > How do I get my files saved with the .odt extension all the time?? > I tried renaming any .zip to a .odt with the rename command > but thats not working either. > > > > > On 04/03/2013 10:05 AM, Willy Raets wrote: > > On Wed, 2013-04-03 at 09:18 -0700, rocko wrote: > >> Ok I got that to work, but the code is kinda long and ugly > >> as I have to save the file after doing a /Replace/. > >> > >> I have 6 fields I have to replace, so thats 6 Replace statements with 6 > >> File.Save, > >> I can put in a Function and just call the function when I need it, but > >> still I would > >> think the Replace could take multiple arguments for replacing multiple > >> fields. > >> But oh well.. > > As Fabien wrote: > > Load the file in a string > > Replace as many as need > > Save the string in the file > > > > Dim sFileText, sFilePath As String > > > > sFilePath = "home/rocko/Zip/content.xml" > > '-- Load file in string -- > > sFileText = File.Load(sFilePath) > > '-- Replace as many as needed -- > > sFileText = Replace(sFileText, "$(Name)", mName) > > sFileText = Replace(sFileText, ...) > > sFileText = Replace(sFileText, ...) > > sFileText = Replace(sFileText, ...) > > sFileText = Replace(sFileText, ...) > > sFileText = Replace(sFileText, ...) > > '-- Save string to file -- > > File.Save(sFilePath, sMyFileText) > > > > Only one file load and one file save. > > > > Hope this will help you understand the matter.. > > > > > >> > >> > >> On 04/03/2013 08:57 AM, Willy Raets wrote: > >>> On Wed, 2013-04-03 at 08:39 -0700, Rocko wrote: > >>>> so each value needs it's own the replace statement? > >>> YES > >>> > >>>> On Apr 3, 2013 8:28 AM, "Fabien Bodard" wrote: > >>>> > >>>>> Ok so it's one call by entry. > >>>>> > >>>>> Unzip odt > >>>>> Load the file in a string > >>>>> Replace as many as need > >>>>> Save the string in the file > >>>>> Zip the directory > >>>>> > >>>>> Simple! > >>>>> Le 3 avr. 2013 17:20, "Rocko" a ?crit : > >>>>> > >>>>>> I don't think you understanf, I want to replace different fields with > >>>>>> different values not all the same value > >>>>>> On Apr 3, 2013 1:41 AM, "Fabien Bodard" wrote: > >>>>>> > >>>>>>> Replace, > >>>>>>> Replace all the words that match the pattern > >>>>>>> Read the doc! > >>>>>>> Le 3 avr. 2013 01:10, "rocko" a ?crit : > >>>>>>> > >>>>>>>> Is it possible to do multiple replacing with/Replace/ > >>>>>>>> > >>>>>>>> I have several fields that I want to change in an .odt file > >>>>>>>> do I have to do multiple Replace statements or can I > >>>>>>>> put them all in one /Replace/ statement?? > >>>>>>>> > >>>>>>>> > >>>>>>>> On 04/02/2013 03:34 AM, Fabien Bodard wrote: > >>>>>>>>> Le 2 avr. 2013 01:37, "rocko" a ?crit : > >>>>>>>>>> Not sure I'm using /Replace$/ correctly. > >>>>>>>>>> I want to replace instance of $(Name) in the XML file > >>>>>>>>>> with the value of the /mName/ variable > >>>>>>>>>> > >>>>>>>>>> Code: > >>>>>>>>>> /xName = "home/rocko/Zip/content.xml"// > >>>>>>>>>> // newFile = Replace$(xName, "$(Name)", mName)/ > >>>>>>>>> Newfile=replace (file. Load(xname), "$(Name )",mname ) > >>>>>>>>> File. Save(xname, newfile) > >>>>>>>>>> Of course this doesn't work, But I don't know why > >>>>>>>>>> > >>>>>>>>>> On 03/31/2013 05:21 PM, Beno?t Minisini wrote: > >>>>>>>>>>> Le 01/04/2013 01:32, rocko a ?crit : > >>>>>>>>>>>> I actually tried that after sending my response. > >>>>>>>>>>>> lo and behold! XML file woo hoo! > >>>>>>>>>>>> > >>>>>>>>>>>> So I assume I can just do a search thru th XML file and change > >>>>>>> things > >>>>>>>>>>>> then re-save > >>>>>>>>>>>> the file and re-zip it like you said. > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> So how do I unzip and re-zip a file in Gambas?, sorry this is > >>>>>> kinda > >>>>>>>>> new > >>>>>>>>>>>> to me. > >>>>>>>>>>> SHELL "zip ..." WAIT > >>>>>>>>>>> > >>>>>>>>>>> SHELL "unzip ..." WAIT > >>>>>>>>>>> > >>>>>>>>>>> That run the shell commands as if you typed them in a terminal. > >>>>>>>>>>> > >>>>>>>>>>> There is a compression component that allows you to do the same > >>>>>> thing > >>>>>>>>>>> without running external process, but it is a more complex to > >>>>>>> explain. > >>>>>>>>>>>> Which kind of search functions does gambas have?? regex I > >>>>> assume, > >>>>>>> any > >>>>>>>>>>>> others?? > >>>>>>>>>>>> > >>>>>>>>>>> I use Replace$(). No need for regexp. If your search pattern are > >>>>>> like > >>>>>>>>>>> "$(field name)", you won't mix up with any OpenOffice XML syntax. > >>>>>>>>>>> > >>>>>>>>>>> Don't forget to look at XML format for correctly quoting > >>>>> characters > >>>>>>>> that > >>>>>>>>>>> must be quoted. > >>>>>>>>>>> > >>>>>>>>>>> Regards, > >>>>>>>>>>> > >>>>> ------------------------------------------------------------------------------ > >>>>>>>>>> Own the Future-Intel® Level Up Game Demo Contest 2013 > >>>>>>>>>> Rise to greatness in Intel's independent game demo contest. > >>>>>>>>>> Compete for recognition, cash, and the chance to get your game > >>>>>>>>>> on Steam. $5K grand prize plus 10 genre and skill prizes. > >>>>>>>>>> Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > >>>>>>>>>> _______________________________________________ > >>>>>>>>>> Gambas-user mailing list > >>>>>>>>>> Gambas-user at lists.sourceforge.net > >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>> ------------------------------------------------------------------------------ > >>>>>>>>> Own the Future-Intel(R) Level Up Game Demo Contest 2013 > >>>>>>>>> Rise to greatness in Intel's independent game demo contest. Compete > >>>>>>>>> for recognition, cash, and the chance to get your game on Steam. > >>>>>>>>> $5K grand prize plus 10 genre and skill prizes. Submit your demo > >>>>>>>>> by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 > >>>>>>>>> _______________________________________________ > >>>>>>>>> Gambas-user mailing list > >>>>>>>>> Gambas-user at lists.sourceforge.net > >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>>>>> . > >>>>>>>>> > >>>>>>>> > >>>>> ------------------------------------------------------------------------------ > >>>>>>>> Minimize network downtime and maximize team effectiveness. > >>>>>>>> Reduce network management and security costs.Learn how to hire > >>>>>>>> the most talented Cisco Certified professionals. Visit the > >>>>>>>> Employer Resources Portal > >>>>>>>> http://www.cisco.com/web/learning/employer_resources/index.html > >>>>>>>> _______________________________________________ > >>>>>>>> Gambas-user mailing list > >>>>>>>> Gambas-user at lists.sourceforge.net > >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>>>> > >>>>> ------------------------------------------------------------------------------ > >>>>>>> Minimize network downtime and maximize team effectiveness. > >>>>>>> Reduce network management and security costs.Learn how to hire > >>>>>>> the most talented Cisco Certified professionals. Visit the > >>>>>>> Employer Resources Portal > >>>>>>> http://www.cisco.com/web/learning/employer_resources/index.html > >>>>>>> _______________________________________________ > >>>>>>> Gambas-user mailing list > >>>>>>> Gambas-user at lists.sourceforge.net > >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>>> > >>>>> ------------------------------------------------------------------------------ > >>>>>> Minimize network downtime and maximize team effectiveness. > >>>>>> Reduce network management and security costs.Learn how to hire > >>>>>> the most talented Cisco Certified professionals. Visit the > >>>>>> Employer Resources Portal > >>>>>> http://www.cisco.com/web/learning/employer_resources/index.html > >>>>>> _______________________________________________ > >>>>>> Gambas-user mailing list > >>>>>> Gambas-user at lists.sourceforge.net > >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> > >>>>> ------------------------------------------------------------------------------ > >>>>> Minimize network downtime and maximize team effectiveness. > >>>>> Reduce network management and security costs.Learn how to hire > >>>>> the most talented Cisco Certified professionals. Visit the > >>>>> Employer Resources Portal > >>>>> http://www.cisco.com/web/learning/employer_resources/index.html > >>>>> _______________________________________________ > >>>>> Gambas-user mailing list > >>>>> Gambas-user at lists.sourceforge.net > >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>> > >>>> ------------------------------------------------------------------------------ > >>>> Minimize network downtime and maximize team effectiveness. > >>>> Reduce network management and security costs.Learn how to hire > >>>> the most talented Cisco Certified professionals. Visit the > >>>> Employer Resources Portal > >>>> http://www.cisco.com/web/learning/employer_resources/index.html > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> ------------------------------------------------------------------------------ > >> Minimize network downtime and maximize team effectiveness. > >> Reduce network management and security costs.Learn how to hire > >> the most talented Cisco Certified professionals. Visit the > >> Employer Resources Portal > >> http://www.cisco.com/web/learning/employer_resources/index.html > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Wed Apr 3 19:55:08 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 03 Apr 2013 19:55:08 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <1365010561.2990.39.camel@...3024...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> <1365008717.2990.28.camel@...3024...> <515C634A.1030508@...626...> <1365010561.2990.39.camel@...3024...> Message-ID: <1365011708.2990.48.camel@...3024...> On Wed, 2013-04-03 at 19:36 +0200, Willy Raets wrote: > On Wed, 2013-04-03 at 10:13 -0700, rocko wrote: > > Ok thanks for suggestions. > > > > I'm now having problems with zipping the files. > > I "m naming the files dynamically with the first name of the > > person from my database. > > > > But the zip command sometimes saves the file as a zip not .odt. > > Why it does this I don't know, actually it does this a lot/ > > > > I'm using this as my zip code: > > zip -r " & sFirst & ".odt ." Wait > > zip -h2 in a terminal gives you more detailed instructions on use of zip > > zip -r NameOfZipFile FileOrFolderToAdd > > NameOfZipFile in your case is sFirst & ".odt" > FileOrFolderToAdd is the place you unzipped the original .odt to and > where you replaces some content. > > ------------------ > Dim sCommand, sPath As String > sPath = User.Home & "place you unzipped and modified the content of odt" > sCommand = "zip -r " & sFirst & ".odt " & sPath > Shell sCommand > ------------------ > > Watch the spaces in the strings as they are important!! > Some hints: 1. For command always try --help 0r -h and study the command before coding. We have to do the same to help you. Bit strange don you think 2. Always try running your planned command in a terminal before coding in Gambas 3. Study Gambas documentation on what to use best for getting the job done. Read every word over and over as every detail is important. 4. When testing in Gambas add a Print sCommand before Shell sCommand so that when running you see the string in the console of IDE. 5. If command doesn't work from Gambas try Copy/paste that string in Gambas IDE console to a terminal and try it there. If it doesn't work there, it will never work in Gambas, so back to terminal testing, adapting your sCommand and test app again. Keep doing this until it works..mind the details!! Good luck.. > -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From sunblaster5 at ...626... Wed Apr 3 23:01:54 2013 From: sunblaster5 at ...626... (rocko) Date: Wed, 03 Apr 2013 14:01:54 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <1365011708.2990.48.camel@...3024...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> <1365008717.2990.28.camel@...3024...> <515C634A.1030508@...626...> <1365010561.2990.39.camel@...3024...> <1365011708.2990.48.camel@...3024...> Message-ID: <515C98C2.6070304@...626...> Thanks for all you help. I figured out why it saves as .zip instead of .odt. Apparently there a spaces at the end of the names in the database I'm using. So it looks like this to the Shell: name .odt with a space before the .odt So my next question is can I remove the spaces?? On 04/03/2013 10:55 AM, Willy Raets wrote: > On Wed, 2013-04-03 at 19:36 +0200, Willy Raets wrote: >> On Wed, 2013-04-03 at 10:13 -0700, rocko wrote: >>> Ok thanks for suggestions. >>> >>> I'm now having problems with zipping the files. >>> I "m naming the files dynamically with the first name of the >>> person from my database. >>> >>> But the zip command sometimes saves the file as a zip not .odt. >>> Why it does this I don't know, actually it does this a lot/ >>> >>> I'm using this as my zip code: >>> zip -r " & sFirst & ".odt ." Wait >> zip -h2 in a terminal gives you more detailed instructions on use of zip >> >> zip -r NameOfZipFile FileOrFolderToAdd >> >> NameOfZipFile in your case is sFirst & ".odt" >> FileOrFolderToAdd is the place you unzipped the original .odt to and >> where you replaces some content. >> >> ------------------ >> Dim sCommand, sPath As String >> sPath = User.Home & "place you unzipped and modified the content of odt" >> sCommand = "zip -r " & sFirst & ".odt " & sPath >> Shell sCommand >> ------------------ >> >> Watch the spaces in the strings as they are important!! >> > Some hints: > 1. For command always try --help 0r -h and study the command before > coding. We have to do the same to help you. Bit strange don you think > 2. Always try running your planned command in a terminal before coding > in Gambas > 3. Study Gambas documentation on what to use best for getting the job > done. Read every word over and over as every detail is important. > 4. When testing in Gambas add a Print sCommand before Shell sCommand so > that when running you see the string in the console of IDE. > 5. If command doesn't work from Gambas try Copy/paste that string in > Gambas IDE console to a terminal and try it there. If it doesn't work > there, it will never work in Gambas, so back to terminal testing, > adapting your sCommand and test app again. > > Keep doing this until it works..mind the details!! > > Good luck.. From sunblaster5 at ...626... Wed Apr 3 23:15:41 2013 From: sunblaster5 at ...626... (rocko) Date: Wed, 03 Apr 2013 14:15:41 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <515C98C2.6070304@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> <1365008717.2990.28.camel@...3024...> <515C634A.1030508@...626...> <1365010561.2990.39.camel@...3024...> <1365011708.2990.48.camel@...3024...> <515C98C2.6070304@...626...> Message-ID: <515C9BFD.8010802@...626...> I discovered the Trim$ function. :) So far so good. On 04/03/2013 02:01 PM, rocko wrote: > Thanks for all you help. > > I figured out why it saves as .zip instead of .odt. > Apparently there a spaces at the end of the names in the database I'm > using. > So it looks like this to the Shell: > name .odt > with a space before the .odt > > So my next question is can I remove the spaces?? > > > > On 04/03/2013 10:55 AM, Willy Raets wrote: >> On Wed, 2013-04-03 at 19:36 +0200, Willy Raets wrote: >>> On Wed, 2013-04-03 at 10:13 -0700, rocko wrote: >>>> Ok thanks for suggestions. >>>> >>>> I'm now having problems with zipping the files. >>>> I "m naming the files dynamically with the first name of the >>>> person from my database. >>>> >>>> But the zip command sometimes saves the file as a zip not .odt. >>>> Why it does this I don't know, actually it does this a lot/ >>>> >>>> I'm using this as my zip code: >>>> zip -r " & sFirst & ".odt ." Wait >>> zip -h2 in a terminal gives you more detailed instructions on use of >>> zip >>> >>> zip -r NameOfZipFile FileOrFolderToAdd >>> >>> NameOfZipFile in your case is sFirst & ".odt" >>> FileOrFolderToAdd is the place you unzipped the original .odt to and >>> where you replaces some content. >>> >>> ------------------ >>> Dim sCommand, sPath As String >>> sPath = User.Home & "place you unzipped and modified the content of >>> odt" >>> sCommand = "zip -r " & sFirst & ".odt " & sPath >>> Shell sCommand >>> ------------------ >>> >>> Watch the spaces in the strings as they are important!! >>> >> Some hints: >> 1. For command always try --help 0r -h and study the command before >> coding. We have to do the same to help you. Bit strange don you think >> 2. Always try running your planned command in a terminal before coding >> in Gambas >> 3. Study Gambas documentation on what to use best for getting the job >> done. Read every word over and over as every detail is important. >> 4. When testing in Gambas add a Print sCommand before Shell sCommand so >> that when running you see the string in the console of IDE. >> 5. If command doesn't work from Gambas try Copy/paste that string in >> Gambas IDE console to a terminal and try it there. If it doesn't work >> there, it will never work in Gambas, so back to terminal testing, >> adapting your sCommand and test app again. >> >> Keep doing this until it works..mind the details!! >> >> Good luck.. > From jussi.lahtinen at ...626... Wed Apr 3 23:14:57 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 4 Apr 2013 00:14:57 +0300 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <515C98C2.6070304@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> <1365008717.2990.28.camel@...3024...> <515C634A.1030508@...626...> <1365010561.2990.39.camel@...3024...> <1365011708.2990.48.camel@...3024...> <515C98C2.6070304@...626...> Message-ID: See documentation of: String.InStr() String.Left() String.Right() Jussi On Thu, Apr 4, 2013 at 12:01 AM, rocko wrote: > Thanks for all you help. > > I figured out why it saves as .zip instead of .odt. > Apparently there a spaces at the end of the names in the database I'm > using. > So it looks like this to the Shell: > name .odt > with a space before the .odt > > So my next question is can I remove the spaces?? > > > > On 04/03/2013 10:55 AM, Willy Raets wrote: > > On Wed, 2013-04-03 at 19:36 +0200, Willy Raets wrote: > >> On Wed, 2013-04-03 at 10:13 -0700, rocko wrote: > >>> Ok thanks for suggestions. > >>> > >>> I'm now having problems with zipping the files. > >>> I "m naming the files dynamically with the first name of the > >>> person from my database. > >>> > >>> But the zip command sometimes saves the file as a zip not .odt. > >>> Why it does this I don't know, actually it does this a lot/ > >>> > >>> I'm using this as my zip code: > >>> zip -r " & sFirst & ".odt ." Wait > >> zip -h2 in a terminal gives you more detailed instructions on use of zip > >> > >> zip -r NameOfZipFile FileOrFolderToAdd > >> > >> NameOfZipFile in your case is sFirst & ".odt" > >> FileOrFolderToAdd is the place you unzipped the original .odt to and > >> where you replaces some content. > >> > >> ------------------ > >> Dim sCommand, sPath As String > >> sPath = User.Home & "place you unzipped and modified the content of odt" > >> sCommand = "zip -r " & sFirst & ".odt " & sPath > >> Shell sCommand > >> ------------------ > >> > >> Watch the spaces in the strings as they are important!! > >> > > Some hints: > > 1. For command always try --help 0r -h and study the command before > > coding. We have to do the same to help you. Bit strange don you think > > 2. Always try running your planned command in a terminal before coding > > in Gambas > > 3. Study Gambas documentation on what to use best for getting the job > > done. Read every word over and over as every detail is important. > > 4. When testing in Gambas add a Print sCommand before Shell sCommand so > > that when running you see the string in the console of IDE. > > 5. If command doesn't work from Gambas try Copy/paste that string in > > Gambas IDE console to a terminal and try it there. If it doesn't work > > there, it will never work in Gambas, so back to terminal testing, > > adapting your sCommand and test app again. > > > > Keep doing this until it works..mind the details!! > > > > Good luck.. > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Apr 3 23:41:57 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 4 Apr 2013 00:41:57 +0300 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <515C9BFD.8010802@...626...> References: <5158AE4A.6000809@...626...> <5158B06F.5070908@...1...> <5158C17E.4080307@...626...> <5158C5E7.2030508@...1...> <5158C774.7040507@...626...> <5158D303.4000507@...1...> <515A1A09.6080407@...626...> <515B652F.2070506@...626...> <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> <1365008717.2990.28.camel@...3024...> <515C634A.1030508@...626...> <1365010561.2990.39.camel@...3024...> <1365011708.2990.48.camel@...3024...> <515C98C2.6070304@...626...> <515C9BFD.8010802@...626...> Message-ID: Oh, I thought the string was "name .odt", so it's "name " & ".odt". Jussi On Thu, Apr 4, 2013 at 12:15 AM, rocko wrote: > I discovered the Trim$ function. :) > So far so good. > > > On 04/03/2013 02:01 PM, rocko wrote: > > Thanks for all you help. > > > > I figured out why it saves as .zip instead of .odt. > > Apparently there a spaces at the end of the names in the database I'm > > using. > > So it looks like this to the Shell: > > name .odt > > with a space before the .odt > > > > So my next question is can I remove the spaces?? > > > > > > > > On 04/03/2013 10:55 AM, Willy Raets wrote: > >> On Wed, 2013-04-03 at 19:36 +0200, Willy Raets wrote: > >>> On Wed, 2013-04-03 at 10:13 -0700, rocko wrote: > >>>> Ok thanks for suggestions. > >>>> > >>>> I'm now having problems with zipping the files. > >>>> I "m naming the files dynamically with the first name of the > >>>> person from my database. > >>>> > >>>> But the zip command sometimes saves the file as a zip not .odt. > >>>> Why it does this I don't know, actually it does this a lot/ > >>>> > >>>> I'm using this as my zip code: > >>>> zip -r " & sFirst & ".odt ." Wait > >>> zip -h2 in a terminal gives you more detailed instructions on use of > >>> zip > >>> > >>> zip -r NameOfZipFile FileOrFolderToAdd > >>> > >>> NameOfZipFile in your case is sFirst & ".odt" > >>> FileOrFolderToAdd is the place you unzipped the original .odt to and > >>> where you replaces some content. > >>> > >>> ------------------ > >>> Dim sCommand, sPath As String > >>> sPath = User.Home & "place you unzipped and modified the content of > >>> odt" > >>> sCommand = "zip -r " & sFirst & ".odt " & sPath > >>> Shell sCommand > >>> ------------------ > >>> > >>> Watch the spaces in the strings as they are important!! > >>> > >> Some hints: > >> 1. For command always try --help 0r -h and study the command before > >> coding. We have to do the same to help you. Bit strange don you think > >> 2. Always try running your planned command in a terminal before coding > >> in Gambas > >> 3. Study Gambas documentation on what to use best for getting the job > >> done. Read every word over and over as every detail is important. > >> 4. When testing in Gambas add a Print sCommand before Shell sCommand so > >> that when running you see the string in the console of IDE. > >> 5. If command doesn't work from Gambas try Copy/paste that string in > >> Gambas IDE console to a terminal and try it there. If it doesn't work > >> there, it will never work in Gambas, so back to terminal testing, > >> adapting your sCommand and test app again. > >> > >> Keep doing this until it works..mind the details!! > >> > >> Good luck.. > > > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kokoko3k at ...626... Thu Apr 4 13:23:59 2013 From: kokoko3k at ...626... (kokoko3k) Date: Thu, 4 Apr 2013 04:23:59 -0700 (PDT) Subject: [Gambas-user] Pre-release of gambas 3.4.1 In-Reply-To: <514F59E5.6080100@...1...> References: <514F59E5.6080100@...1...> Message-ID: <1365074639187-41615.post@...3046...> I just tested it, and found that every form.name returns "#1" instead of the name of the form. I emailed a test program to you, Beno?t. -- View this message in context: http://gambas.8142.n7.nabble.com/Pre-release-of-gambas-3-4-1-tp41422p41615.html Sent from the gambas-user mailing list archive at Nabble.com. From kokoko3k at ...626... Thu Apr 4 13:25:36 2013 From: kokoko3k at ...626... (kokoko3k) Date: Thu, 4 Apr 2013 04:25:36 -0700 (PDT) Subject: [Gambas-user] Pre-release of gambas 3.4.1 In-Reply-To: <20130324214201.096d1619@...3104...> References: <514F59E5.6080100@...1...> <20130324214201.096d1619@...3104...> Message-ID: <1365074736883-41616.post@...3046...> Could you please revert to the stable version? 3.4.1 is a prerelease and unfortunatelly bugged for me :( -- View this message in context: http://gambas.8142.n7.nabble.com/Pre-release-of-gambas-3-4-1-tp41422p41616.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Apr 4 13:47:21 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 04 Apr 2013 13:47:21 +0200 Subject: [Gambas-user] Pre-release of gambas 3.4.1 In-Reply-To: <1365074639187-41615.post@...3046...> References: <514F59E5.6080100@...1...> <1365074639187-41615.post@...3046...> Message-ID: <515D6849.3030800@...1...> Le 04/04/2013 13:23, kokoko3k a ?crit : > I just tested it, and found that every form.name returns "#1" instead of the > name of the form. > I emailed a test program to you, Beno?t. > I will fix that before the official release of 3.4.1. Regards, -- Beno?t Minisini From taboege at ...626... Thu Apr 4 16:18:46 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 4 Apr 2013 16:18:46 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <515C9BFD.8010802@...626...> References: <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> <1365008717.2990.28.camel@...3024...> <515C634A.1030508@...626...> <1365010561.2990.39.camel@...3024...> <1365011708.2990.48.camel@...3024...> <515C98C2.6070304@...626...> <515C9BFD.8010802@...626...> Message-ID: <20130404141846.GA503@...2774...> On Wed, 03 Apr 2013, rocko wrote: > I discovered the Trim$ function. :) > So far so good. You don't need to remove the spaces if it harms your files' appearance or makes the program unnecessarily complicated. Just quote the name when used in the shell: Shell "zip ..." & Shell$(sYourNameWithSpaces) & "..." Again, refer to the documentation instead of raising more and more questions under the same topic. Regards, Tobi From sunblaster5 at ...626... Thu Apr 4 17:27:56 2013 From: sunblaster5 at ...626... (Rocko) Date: Thu, 4 Apr 2013 08:27:56 -0700 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: <20130404141846.GA503@...2774...> References: <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> <1365008717.2990.28.camel@...3024...> <515C634A.1030508@...626...> <1365010561.2990.39.camel@...3024...> <1365011708.2990.48.camel@...3024...> <515C98C2.6070304@...626...> <515C9BFD.8010802@...626...> <20130404141846.GA503@...2774...> Message-ID: you say quote but you use parentheses in your example which is it? On Apr 4, 2013 7:21 AM, "Tobias Boege" wrote: > On Wed, 03 Apr 2013, rocko wrote: > > I discovered the Trim$ function. :) > > So far so good. > > You don't need to remove the spaces if it harms your files' appearance or > makes the program unnecessarily complicated. Just quote the name when used > in the shell: > > Shell "zip ..." & Shell$(sYourNameWithSpaces) & "..." > > Again, refer to the documentation instead of raising more and more > questions > under the same topic. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Thu Apr 4 17:34:27 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 4 Apr 2013 17:34:27 +0200 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> <1365008717.2990.28.camel@...3024...> <515C634A.1030508@...626...> <1365010561.2990.39.camel@...3024...> <1365011708.2990.48.camel@...3024...> <515C98C2.6070304@...626...> <515C9BFD.8010802@...626...> <20130404141846.GA503@...2774...> Message-ID: <20130404153426.GB503@...2774...> On Thu, 04 Apr 2013, Rocko wrote: > you say quote but you use parentheses in your example which is it? > > > > Shell "zip ..." & Shell$(sYourNameWithSpaces) & "..." Of course I use parentheses because they're needed in Gambas to call a function. I insist that you look into the documentation for Shell$() at least. From jussi.lahtinen at ...626... Thu Apr 4 17:48:25 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 4 Apr 2013 18:48:25 +0300 Subject: [Gambas-user] Output to Libre Office Writer ?? In-Reply-To: References: <1365004664.2990.20.camel@...3024...> <515C5656.2060106@...626...> <1365008717.2990.28.camel@...3024...> <515C634A.1030508@...626...> <1365010561.2990.39.camel@...3024...> <1365011708.2990.48.camel@...3024...> <515C98C2.6070304@...626...> <515C9BFD.8010802@...626...> <20130404141846.GA503@...2774...> Message-ID: Again answer to your question is completely obvious, if you would take even a quick look to the documentation. Jussi On Thu, Apr 4, 2013 at 6:27 PM, Rocko wrote: > you say quote but you use parentheses in your example which is it? > On Apr 4, 2013 7:21 AM, "Tobias Boege" wrote: > > > On Wed, 03 Apr 2013, rocko wrote: > > > I discovered the Trim$ function. :) > > > So far so good. > > > > You don't need to remove the spaces if it harms your files' appearance or > > makes the program unnecessarily complicated. Just quote the name when > used > > in the shell: > > > > Shell "zip ..." & Shell$(sYourNameWithSpaces) & "..." > > > > Again, refer to the documentation instead of raising more and more > > questions > > under the same topic. > > > > Regards, > > Tobi > > > > > > > ------------------------------------------------------------------------------ > > Minimize network downtime and maximize team effectiveness. > > Reduce network management and security costs.Learn how to hire > > the most talented Cisco Certified professionals. Visit the > > Employer Resources Portal > > http://www.cisco.com/web/learning/employer_resources/index.html > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From zachsmith022 at ...626... Thu Apr 4 20:04:03 2013 From: zachsmith022 at ...626... (Zach Smith) Date: Thu, 04 Apr 2013 14:04:03 -0400 Subject: [Gambas-user] Cursor in wrong place in gambas 3 In-Reply-To: <5159BD81.3010806@...626...> References: <5159BD81.3010806@...626...> Message-ID: <515DC093.80701@...626...> On 4/1/2013 1:01 PM, rocko wrote: > I have a very strange and irritating problem in Gambas 3. > > The Cursor is off by about 2 characters, when I'm typing/editing code in > the editor, the cursor is never where it > supposed to be, it doesn't go to the end of a line or character/word, > its back by 1 to 2 characters, > Which makes it very hard to see where I'm typing or editing. > > Is this a bug?? > Or is there a feature to change where the cursor is placed?? > > Using Gambas 3.1.1 on Linux Mint 14. > Is it the same problem as this one? https://code.google.com/p/gambas/issues/detail?id=185 From sunblaster5 at ...626... Thu Apr 4 20:06:46 2013 From: sunblaster5 at ...626... (Rocko) Date: Thu, 4 Apr 2013 11:06:46 -0700 Subject: [Gambas-user] Cursor in wrong place in gambas 3 In-Reply-To: <515DC093.80701@...626...> References: <5159BD81.3010806@...626...> <515DC093.80701@...626...> Message-ID: Sort of. Upgrading to 3.4 fixed it On Apr 4, 2013 11:04 AM, "Zach Smith" wrote: > On 4/1/2013 1:01 PM, rocko wrote: > > I have a very strange and irritating problem in Gambas 3. > > > > The Cursor is off by about 2 characters, when I'm typing/editing code in > > the editor, the cursor is never where it > > supposed to be, it doesn't go to the end of a line or character/word, > > its back by 1 to 2 characters, > > Which makes it very hard to see where I'm typing or editing. > > > > Is this a bug?? > > Or is there a feature to change where the cursor is placed?? > > > > Using Gambas 3.1.1 on Linux Mint 14. > > > Is it the same problem as this one? > https://code.google.com/p/gambas/issues/detail?id=185 > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From zl1wtt at ...43... Fri Apr 5 11:03:27 2013 From: zl1wtt at ...43... (Grant Taylor) Date: Fri, 5 Apr 2013 02:03:27 -0700 (PDT) Subject: [Gambas-user] Gambas3 Console example Message-ID: <1365152607.35087.YahooMailNeo@...3087...> Hi all, I'm running into a problem with the Console example 3.0.0 where on my main computer it run without any problems, but on my laptop it has problems reading back the information. All I see is a lot of system codes with the wanted information mixed up with these system codes.? So has anyone else come across this problem and if so how was it fixed? The software I'm in the process of writing requires to read back from the console, so I need all computers running my software to display the correct data read back from the console.?? Grant From gambas at ...1... Fri Apr 5 11:08:15 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 05 Apr 2013 11:08:15 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.1 Message-ID: <515E947F.3030703@...1...> Hi, I have made a new package of the 3.4.1, with the fix about control names. http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.1.tar.bz2/download Please tell me if it is ok for you (those who don't want their control name to be renamed savagely), and I will make it official. Regards, -- Beno?t Minisini From kokoko3k at ...626... Fri Apr 5 11:37:25 2013 From: kokoko3k at ...626... (kokoko3k) Date: Fri, 5 Apr 2013 02:37:25 -0700 (PDT) Subject: [Gambas-user] Pre-release of Gambas 3.4.1 In-Reply-To: <515E947F.3030703@...1...> References: <515E947F.3030703@...1...> Message-ID: <1365154645258-41629.post@...3046...> It is working as previous versions; form names are right. Thanks! ----- Antonio Orefice -- View this message in context: http://gambas.8142.n7.nabble.com/Pre-release-of-Gambas-3-4-1-tp41628p41629.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Fri Apr 5 11:12:20 2013 From: ron at ...1740... (Ron) Date: Fri, 05 Apr 2013 11:12:20 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.1 In-Reply-To: <515E947F.3030703@...1...> References: <515E947F.3030703@...1...> Message-ID: <515E9574.1030307@...1740...> On 5-4-2013 11:08, Beno?t Minisini wrote: > Hi, > > I have made a new package of the 3.4.1, with the fix about control names. > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.1.tar.bz2/download > > Please tell me if it is ok for you (those who don't want their control > name to be renamed savagely), and I will make it official. > > Regards, > Benoit, Hopefully you also integrated the gbx_ patches? r5598 and later regarding freeing gbx stuff? With those my DomotiGa project runs stable now, for the first time since months. Regards, Ron. From bbruen at ...2308... Fri Apr 5 13:54:39 2013 From: bbruen at ...2308... (Bruce) Date: Fri, 05 Apr 2013 22:24:39 +1030 Subject: [Gambas-user] Need a good idea - a slider with two handles In-Reply-To: References: <1364770982.19887.11.camel@...2688...> <20130401112715.GA502@...2774...> Message-ID: <1365162879.19887.38.camel@...2688...> On Tue, 2013-04-02 at 12:38 +0200, Fabien Bodard wrote: > You need to use a usercontrol and a drawing area. Then withvthe draw class > all becomebpossible > Le 1 avr. 2013 13:30, "Tobias Boege" a ?crit : > > > On Mon, 01 Apr 2013, Bruce wrote: > > > A user had a good idea and wants to know if we can build a form with > > > sliders that control both the maxima and minima of various parameters. > > > > > > I have attached a mocked up picture of the sort of thing that is > > > required for a "squeeze" filter i.e. a low bandpass combined with a high > > > band-limiter. Similar things could be imagined for a "flange" type of > > > filter. > > > > > > There are some controls in Gimp, for example (in second attachment) that > > > further show what is required. > > > > > > I have made a couple of preliminary attempts to create a custom control > > > in Gambas3 to do this but I am not getting very far. The problems are: > > > a) being able to detect which handle the user is trying to move and > > > b) stopping the min handle from exceeding the max handle and v.v. > > > > > > Has anyone attempted this type of control (successfully)? > > > Has anyone got any good ideas? > > > > Sorry, I understood only half of what you said but the pictures hopefully > > told the rest. I have a project here where a guy implemented a Slider on > > his > > own to allow custom graphics in place of the handle. I never really read > > the > > sources of that project nor do I think that it's well written but maybe it > > can help you. > > > > Since the "HorizontalFader" (what this means, I don't know), which is the > > Slider, does not inherit the basic Slider itself but builds on UserControl > > there will certainly be something in there that can give you at least a > > clue > > about how to make one handle - and a second can't be too difficult then :-) > > > > Regards, > > Tobi Thanks to both of you. I haven't got much further on this but there seems to be some good ideas to follow up. I have some "work pressure" going on, so it may be some time before I can take this up again. But.... "I'll be back". regards Bruce From jussi.lahtinen at ...626... Fri Apr 5 15:50:39 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 5 Apr 2013 16:50:39 +0300 Subject: [Gambas-user] Gambas3 Console example In-Reply-To: <1365152607.35087.YahooMailNeo@...3087...> References: <1365152607.35087.YahooMailNeo@...3087...> Message-ID: What is the affected system? Version of installed Gambas? Can you take a screenshot? Jussi On Fri, Apr 5, 2013 at 12:03 PM, Grant Taylor wrote: > Hi all, > > I'm running into a problem with the Console example 3.0.0 where on my main > computer it run without any problems, but on my laptop it has problems > reading back the information. All I see is a lot of system codes with the > wanted information mixed up with these system codes. So has anyone else > come across this problem and if so how was it fixed? > > > The software I'm in the process of writing requires to read back from the > console, so I need all computers running my software to display the correct > data read back from the console. > > Grant > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Apr 5 19:07:24 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 05 Apr 2013 19:07:24 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.1 In-Reply-To: <515E9574.1030307@...1740...> References: <515E947F.3030703@...1...> <515E9574.1030307@...1740...> Message-ID: <515F04CC.6090008@...1...> Le 05/04/2013 11:12, Ron a ?crit : > On 5-4-2013 11:08, Beno?t Minisini wrote: >> Hi, >> >> I have made a new package of the 3.4.1, with the fix about control names. >> >> http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.1.tar.bz2/download >> >> Please tell me if it is ok for you (those who don't want their control >> name to be renamed savagely), and I will make it official. >> >> Regards, >> > Benoit, > > Hopefully you also integrated the gbx_ patches? > r5598 and later regarding freeing gbx stuff? > > With those my DomotiGa project runs stable now, for the first time since > months. > > Regards, > Ron. > No, these patches will be in the 3.5 version. These patches change the syntax of some macros, but do not change anything in the generated code of the interpreter or the compiler. So I don't think they make your project run stable. It's something else! But there will be a 3.4.2 soon, with the other patches backported. I think that the revisions that made DomotiGa stable are r5597 and/or r5600. I don't know if you can confirm... Regards, -- Beno?t Minisini From abbat.81 at ...787... Fri Apr 5 21:37:16 2013 From: abbat.81 at ...787... (abbat81) Date: Fri, 5 Apr 2013 12:37:16 -0700 (PDT) Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. Message-ID: <1365190635996-41634.post@...3046...> Hallo! In LXterminal I can execute successfully next command: "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" But I can't do it in Gambas. Shell "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" gives me: "Error opening terminal: unknown." Is there any other way to execute that command? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/watch-fclock-Error-opening-terminal-unknown-tp41634.html Sent from the gambas-user mailing list archive at Nabble.com. From willy at ...2734... Fri Apr 5 22:37:59 2013 From: willy at ...2734... (Willy Raets) Date: Fri, 05 Apr 2013 22:37:59 +0200 Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: <1365190635996-41634.post@...3046...> References: <1365190635996-41634.post@...3046...> Message-ID: <1365194279.5483.4.camel@...3024...> On Fri, 2013-04-05 at 12:37 -0700, abbat81 wrote: > Hallo! > > In LXterminal I can execute successfully next command: > > "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" > > But I can't do it in Gambas. > > Shell "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" > > gives me: "Error opening terminal: unknown." > > Is there any other way to execute that command? > > Thanks You could give Exec a try: Exec ["watch", "flock", "-n", "/home/user/Shell.lock", "home/user/Onix_Shell.gambas"] > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...1... Fri Apr 5 22:59:03 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 05 Apr 2013 22:59:03 +0200 Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: <1365194279.5483.4.camel@...3024...> References: <1365190635996-41634.post@...3046...> <1365194279.5483.4.camel@...3024...> Message-ID: <515F3B17.3040901@...1...> Le 05/04/2013 22:37, Willy Raets a ?crit : > On Fri, 2013-04-05 at 12:37 -0700, abbat81 wrote: >> Hallo! >> >> In LXterminal I can execute successfully next command: >> >> "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" >> >> But I can't do it in Gambas. >> >> Shell "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" >> >> gives me: "Error opening terminal: unknown." >> >> Is there any other way to execute that command? >> >> Thanks > > You could give Exec a try: > > Exec ["watch", "flock", "-n", "/home/user/Shell.lock", > "home/user/Onix_Shell.gambas"] > Beware that if your command needs a terminal, you have to use "For Input / Output" in the Exec or Shell syntax. Regards, -- Beno?t Minisini From abbat.81 at ...787... Fri Apr 5 23:14:02 2013 From: abbat.81 at ...787... (abbat81) Date: Fri, 5 Apr 2013 14:14:02 -0700 (PDT) Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: <515F3B17.3040901@...1...> References: <1365190635996-41634.post@...3046...> <1365194279.5483.4.camel@...3024...> <515F3B17.3040901@...1...> Message-ID: <1365196442034-41637.post@...3046...> Thaks for reply. I don't need input/outout. All I need is to make "watch" to run my application every 2 sec. if it down. -- View this message in context: http://gambas.8142.n7.nabble.com/watch-flock-Error-opening-terminal-unknown-tp41634p41637.html Sent from the gambas-user mailing list archive at Nabble.com. From willy at ...2734... Fri Apr 5 23:48:59 2013 From: willy at ...2734... (Willy Raets) Date: Fri, 05 Apr 2013 23:48:59 +0200 Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: <1365196442034-41637.post@...3046...> References: <1365190635996-41634.post@...3046...> <1365194279.5483.4.camel@...3024...> <515F3B17.3040901@...1...> <1365196442034-41637.post@...3046...> Message-ID: <1365198539.6040.11.camel@...3024...> On Fri, 2013-04-05 at 14:14 -0700, abbat81 wrote: > Thaks for reply. > > I don't need input/outout. I don't know if you need input/output. You just asked if the command could be run in an other manner and the answer to that is Exec. Do you need to feed the command input? Do you need to react to some output of the command? If the answer to both questions is no you do not need input/output. > > All I need is to make "watch" to run my application every 2 sec. if it down. I suggest you study watch command to know what it needs/does so you know how to implement. If it does need input/output you will need to implement it as a process Public Sub Initialise() Dim $hProcess As Process $hProcess = Exec [.....] For Input Output As "Process" End Public Sub Process_Read() Dim sLine As String sLine = Read #Last, -256 ' Next your code to check input and react with output if needed ' Use Print for output. ' Check output of command in a terminal End -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From abbat.81 at ...787... Sat Apr 6 00:14:05 2013 From: abbat.81 at ...787... (abbat81) Date: Fri, 5 Apr 2013 15:14:05 -0700 (PDT) Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: <1365198539.6040.11.camel@...3024...> References: <1365190635996-41634.post@...3046...> <1365194279.5483.4.camel@...3024...> <515F3B17.3040901@...1...> <1365196442034-41637.post@...3046...> <1365198539.6040.11.camel@...3024...> Message-ID: <1365200045453-41639.post@...3046...> It's is to difficult. But can be much easy. All I need is to start my application again if it will be closed. Nothing more to INPUT/OUTPUT. A working command is: "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" But it works only in terminal, not in Gambas: Shell "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" I do not understand, why I get "Error opening terminal: unknown." Anyway, if "watch" can't watch for my application to be running, the easy way to do it is new watch.gambas with: Public Sub Timer1_Timer() Shell "flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" End -- View this message in context: http://gambas.8142.n7.nabble.com/watch-flock-Error-opening-terminal-unknown-tp41634p41639.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Apr 6 00:47:48 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 06 Apr 2013 00:47:48 +0200 Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: <1365200045453-41639.post@...3046...> References: <1365190635996-41634.post@...3046...> <1365194279.5483.4.camel@...3024...> <515F3B17.3040901@...1...> <1365196442034-41637.post@...3046...> <1365198539.6040.11.camel@...3024...> <1365200045453-41639.post@...3046...> Message-ID: <515F5494.9030204@...1...> Le 06/04/2013 00:14, abbat81 a ?crit : > It's is to difficult. > > But can be much easy. > > All I need is to start my application again if it will be closed. Nothing > more to INPUT/OUTPUT. > > A working command is: > "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" > > But it works only in terminal, not in Gambas: > Shell "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" > > I do not understand, why I get "Error opening terminal: unknown." > > Anyway, if "watch" can't watch for my application to be running, the easy > way to do it is new watch.gambas > with: > > Public Sub Timer1_Timer() > Shell "flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" > End > OK, but please read the documentation: "FOR INPUT OUTPUT" is not just for watching process i/o. It tells Gambas to run the executed program in a virtual terminal, which may be needed according to the error message you get. Regards, -- Beno?t Minisini From gambas at ...1... Sat Apr 6 00:51:12 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 06 Apr 2013 00:51:12 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <000001ce3065$93d80100$0f00a8c0@...2829...> References: <000001ce3065$93d80100$0f00a8c0@...2829...> Message-ID: <515F5560.9000101@...1...> Le 03/04/2013 14:19, CJ a ?crit : > >> Did you compile Gambas with debugging information enabled? > > Yes, the debug option was checked. Just to verify I recompiled again > and here are the complete output... > > root at ...3122...:/home/cj/Gambas 3/Projekt/libwiringPi_irq# gdb gbx3 > GNU gdb (GDB) 7.0.1-debian > Copyright (C) 2009 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "arm-linux-gnueabi". > For bug reporting instructions, please see: > ... > Reading symbols from /usr/local/bin/gbx3...done. > (gdb) break THROW > Breakpoint 1 at 0x4a15c: file gb_error.c, line 463. > (gdb) run > Starting program: /usr/local/bin/gbx3 > [Thread debugging using libthread_db enabled] > wiringPi Init OK... > [New Thread 0xb640d470 (LWP 14603)] > IRQ setup OK... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > Waiting.... > [Switching to Thread 0xb640d470 (LWP 14603)] > > Breakpoint 1, THROW (code=0) at gb_error.c:463 > 463 gb_error.c: No such file or directory. > in gb_error.c --> If you have compiled Gambas from sources on that machine, you should not have that error message... -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Apr 6 01:03:04 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 6 Apr 2013 02:03:04 +0300 Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: <515F5494.9030204@...1...> References: <1365190635996-41634.post@...3046...> <1365194279.5483.4.camel@...3024...> <515F3B17.3040901@...1...> <1365196442034-41637.post@...3046...> <1365198539.6040.11.camel@...3024...> <1365200045453-41639.post@...3046...> <515F5494.9030204@...1...> Message-ID: Same error with my system, when using this piece of code (but of course the error message is not visible without handling _Read event): Shell "watch echo 'test'" For Input Output As "Process" Jussi On Sat, Apr 6, 2013 at 1:47 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 06/04/2013 00:14, abbat81 a ?crit : > > It's is to difficult. > > > > But can be much easy. > > > > All I need is to start my application again if it will be closed. Nothing > > more to INPUT/OUTPUT. > > > > A working command is: > > "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" > > > > But it works only in terminal, not in Gambas: > > Shell "watch flock -n /home/user/Shell.lock > /home/user/Onix_Shell.gambas" > > > > I do not understand, why I get "Error opening terminal: unknown." > > > > Anyway, if "watch" can't watch for my application to be running, the easy > > way to do it is new watch.gambas > > with: > > > > Public Sub Timer1_Timer() > > Shell "flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas" > > End > > > > OK, but please read the documentation: "FOR INPUT OUTPUT" is not just > for watching process i/o. It tells Gambas to run the executed program in > a virtual terminal, which may be needed according to the error message > you get. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Apr 6 01:12:51 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 06 Apr 2013 01:12:51 +0200 Subject: [Gambas-user] IconView bug on LXDE 0.5.11 In-Reply-To: <1365001501.2990.19.camel@...3024...> References: <1363631427.3882.13.camel@...3024...> <1365001501.2990.19.camel@...3024...> Message-ID: <515F5A73.3010308@...1...> Le 03/04/2013 17:05, Willy Raets a ?crit : > On Mon, 2013-03-18 at 19:30 +0100, Willy Raets wrote: >> When running a Gambas application using gb.qt4 on Lubuntu 12.10 with >> LXDE 0.5.11 IconView shows black. >> Using gb.gui or gb.gtk poses no problems, IconView shows normal. >> >> Problem is ONLY with LXDE 0.5.11, previous version of Lubuntu 12.04 with >> LXDE 0.5.8 shows the IconView normal. So does LXDE 0.5.10 on a Fedora >> box. Tested Xubuntu 12.10 with Xfce 0.4.10 as well, no problem there. >> >> On LXDE 0.5.11 I tested with both Gambas 3.4 and Gambas 3.4 rev. #5582 >> >> Attached a source code archive with an example. >> >> System specification of the Lubuntu 12.10 LXDE 0.5.10 (in VM) are: >> [System] >> OperatingSystem=Linux >> Kernel=3.5.0-25-generic >> Architecture=x86 >> Distribution=Ubuntu 12.10 >> Desktop=LXDE >> Theme=QGtk >> Language=en_US.UTF-8 >> Memory=1003M >> >> [Libraries] >> GStreamer=libgstreamer-0.10.so.0.30.0 >> GTK+=libgtk-x11-2.0.so.0.2400.13 >> Poppler=libpoppler.so.28.0.0 >> Qt4=libQtCore.so.4.8.3 >> SDL=libSDL-1.2.so.0.11.4 >> >> Note: A user on Lubuntu 12.10 discovered this problem in one of my >> applications and he wasn't running in VM, so it is not VM releated. > > This problem with IconView occured on Lubuntu 12.10 - LXDE 0.5.12 first. > Now recently I had a bug report from a guy who recently installed > Lubuntu 12.04 - LXDE 0.5.8 with the same problem -> IconView is blacked > out. > > Strangely enought I have two Lubuntu 12.04 - LXDE 0.5.8 installed where > the problem doesn't occur. They where installed 1/2 year ago and kept > updated. > > I have two recently installs of Lubuntu 12.04 - LXDE 0.5.8 on end user > systems where the problem occurs as well. > > So it seems all recent Lubuntu installs as of 12.04 have the problem > with the IconView. > > So I made a little IconView tester to test the troubled Lubuntu 12.10. > When running it with gb.qt4 IconView blacks out > When running it with gb.gtk IconView works as expected > > Next I tested on a troubled Lubuntu 12.04 to run the gtk version of > IconView and it works, the qt4 version doesn't. > > So the problem seems to be gb.qt4 related. > Themes on ALL Lubuntu systems is QGtk.(those working and those not > working with gb.gt4 IconViewTest) > > Tested with Gambas 3.4.0 and 3.4.0 both rev#5598 and rev#5608 > > Attached: > - Screenshot with gb.gtk used on Lubuntu 12.10 > - Screenshot with gb.qt4 used on Lubuntu 12.10 > - Source Archive of IconViewTester > > Source Archive is set to gb.gtk (the working version) > Run once with gb.gtk next set to component gb.qt4 and run again to see > the difference. > > Note: All my Lubuntu 12.04 that have been installed over 1/2 a year ago > work with both versions > All recently installed Lubuntu 12.04 work with only gb.gtk version. > > If more information is needed just let me know. > The Lubuntu 12.10 specification are in previous post (see above). > > The application I have this problem in is using gb.qt4.webkit so it has > to use gb.qt4 (since there is no gb.gtk.webkit -> why not actually?) Lack of time to do it... > else I could simply solve my problem by switching to gb.gtk > > Thanks.. > > I can't reproduce the problem, but it must come from the theme. Which GTK+ theme do you use on the system you get the black background, and on the system you don't get it? -- Beno?t Minisini From gambas at ...1... Sat Apr 6 01:17:38 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 06 Apr 2013 01:17:38 +0200 Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: References: <1365190635996-41634.post@...3046...> <1365194279.5483.4.camel@...3024...> <515F3B17.3040901@...1...> <1365196442034-41637.post@...3046...> <1365198539.6040.11.camel@...3024...> <1365200045453-41639.post@...3046...> <515F5494.9030204@...1...> Message-ID: <515F5B92.3050608@...1...> Le 06/04/2013 01:03, Jussi Lahtinen a ?crit : > Same error with my system, when using this piece of code (but of course the > error message is not visible without handling > _Read event): > > Shell "watch echo 'test'" For Input Output As "Process" > > > Jussi > > `Exec ["watch", "echo", "test"]` seems to work on the other hand. -- Beno?t Minisini From gambas at ...1... Sat Apr 6 01:21:13 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 06 Apr 2013 01:21:13 +0200 Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: <515F5B92.3050608@...1...> References: <1365190635996-41634.post@...3046...> <1365194279.5483.4.camel@...3024...> <515F3B17.3040901@...1...> <1365196442034-41637.post@...3046...> <1365198539.6040.11.camel@...3024...> <1365200045453-41639.post@...3046...> <515F5494.9030204@...1...> <515F5B92.3050608@...1...> Message-ID: <515F5C69.6040307@...1...> Le 06/04/2013 01:17, Beno?t Minisini a ?crit : > Le 06/04/2013 01:03, Jussi Lahtinen a ?crit : >> Same error with my system, when using this piece of code (but of >> course the >> error message is not visible without handling >> _Read event): >> >> Shell "watch echo 'test'" For Input Output As "Process" >> >> >> Jussi >> >> > > `Exec ["watch", "echo", "test"]` seems to work on the other hand. > and `Shell "watch echo 'test'` works perfectly, with "For Read Write" or "For Input Output". If you run it through the IDE console, you see the ANSI control characters, and if you run it through a true terminal emulator, you see the normal result of the command. Strange... -- Beno?t Minisini From jussi.lahtinen at ...626... Sat Apr 6 01:25:07 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 6 Apr 2013 02:25:07 +0300 Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: <515F5C69.6040307@...1...> References: <1365190635996-41634.post@...3046...> <1365194279.5483.4.camel@...3024...> <515F3B17.3040901@...1...> <1365196442034-41637.post@...3046...> <1365198539.6040.11.camel@...3024...> <1365200045453-41639.post@...3046...> <515F5494.9030204@...1...> <515F5B92.3050608@...1...> <515F5C69.6040307@...1...> Message-ID: I cannot get either of them working... Jussi On Sat, Apr 6, 2013 at 2:21 AM, Beno?t Minisini wrote: > Le 06/04/2013 01:17, Beno?t Minisini a ?crit : > > Le 06/04/2013 01:03, Jussi Lahtinen a ?crit : > >> Same error with my system, when using this piece of code (but of > >> course the > >> error message is not visible without handling > >> _Read event): > >> > >> Shell "watch echo 'test'" For Input Output As "Process" > >> > >> > >> Jussi > >> > >> > > > > `Exec ["watch", "echo", "test"]` seems to work on the other hand. > > > > and `Shell "watch echo 'test'` works perfectly, with "For Read Write" or > "For Input Output". If you run it through the IDE console, you see the > ANSI control characters, and if you run it through a true terminal > emulator, you see the normal result of the command. > > Strange... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Apr 6 01:30:48 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 06 Apr 2013 01:30:48 +0200 Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: References: <1365190635996-41634.post@...3046...> <1365194279.5483.4.camel@...3024...> <515F3B17.3040901@...1...> <1365196442034-41637.post@...3046...> <1365198539.6040.11.camel@...3024...> <1365200045453-41639.post@...3046...> <515F5494.9030204@...1...> <515F5B92.3050608@...1...> <515F5C69.6040307@...1...> Message-ID: <515F5EA8.7090507@...1...> Le 06/04/2013 01:25, Jussi Lahtinen a ?crit : > I cannot get either of them working... > > Jussi > > I use Ubuntu 12.10. $ watch --version watch from procps-ng 3.3.3 And you? -- Beno?t Minisini From willy at ...2734... Sat Apr 6 02:45:38 2013 From: willy at ...2734... (Willy Raets) Date: Sat, 06 Apr 2013 02:45:38 +0200 Subject: [Gambas-user] IconView bug on LXDE 0.5.11 In-Reply-To: <515F5A73.3010308@...1...> References: <1363631427.3882.13.camel@...3024...> <1365001501.2990.19.camel@...3024...> <515F5A73.3010308@...1...> Message-ID: <1365209138.6764.23.camel@...3024...> On Sat, 2013-04-06 at 01:12 +0200, Beno?t Minisini wrote: > Le 03/04/2013 17:05, Willy Raets a ?crit : > > On Mon, 2013-03-18 at 19:30 +0100, Willy Raets wrote: > >> When running a Gambas application using gb.qt4 on Lubuntu 12.10 with > >> LXDE 0.5.11 IconView shows black. > >> Using gb.gui or gb.gtk poses no problems, IconView shows normal. > >> > >> Problem is ONLY with LXDE 0.5.11, previous version of Lubuntu 12.04 with > >> LXDE 0.5.8 shows the IconView normal. So does LXDE 0.5.10 on a Fedora > >> box. Tested Xubuntu 12.10 with Xfce 0.4.10 as well, no problem there. > >> > >> On LXDE 0.5.11 I tested with both Gambas 3.4 and Gambas 3.4 rev. #5582 > >> > >> Attached a source code archive with an example. > >> > >> System specification of the Lubuntu 12.10 LXDE 0.5.10 (in VM) are: > >> [System] > >> OperatingSystem=Linux > >> Kernel=3.5.0-25-generic > >> Architecture=x86 > >> Distribution=Ubuntu 12.10 > >> Desktop=LXDE > >> Theme=QGtk > >> Language=en_US.UTF-8 > >> Memory=1003M > >> > >> [Libraries] > >> GStreamer=libgstreamer-0.10.so.0.30.0 > >> GTK+=libgtk-x11-2.0.so.0.2400.13 > >> Poppler=libpoppler.so.28.0.0 > >> Qt4=libQtCore.so.4.8.3 > >> SDL=libSDL-1.2.so.0.11.4 > >> > >> Note: A user on Lubuntu 12.10 discovered this problem in one of my > >> applications and he wasn't running in VM, so it is not VM releated. > > > > This problem with IconView occured on Lubuntu 12.10 - LXDE 0.5.12 first. > > Now recently I had a bug report from a guy who recently installed > > Lubuntu 12.04 - LXDE 0.5.8 with the same problem -> IconView is blacked > > out. > > > > Strangely enought I have two Lubuntu 12.04 - LXDE 0.5.8 installed where > > the problem doesn't occur. They where installed 1/2 year ago and kept > > updated. > > > > I have two recently installs of Lubuntu 12.04 - LXDE 0.5.8 on end user > > systems where the problem occurs as well. > > > > So it seems all recent Lubuntu installs as of 12.04 have the problem > > with the IconView. > > > > So I made a little IconView tester to test the troubled Lubuntu 12.10. > > When running it with gb.qt4 IconView blacks out > > When running it with gb.gtk IconView works as expected > > > > Next I tested on a troubled Lubuntu 12.04 to run the gtk version of > > IconView and it works, the qt4 version doesn't. > > > > So the problem seems to be gb.qt4 related. > > Themes on ALL Lubuntu systems is QGtk.(those working and those not > > working with gb.gt4 IconViewTest) > > > > Tested with Gambas 3.4.0 and 3.4.0 both rev#5598 and rev#5608 > > > > Attached: > > - Screenshot with gb.gtk used on Lubuntu 12.10 > > - Screenshot with gb.qt4 used on Lubuntu 12.10 > > - Source Archive of IconViewTester > > > > Source Archive is set to gb.gtk (the working version) > > Run once with gb.gtk next set to component gb.qt4 and run again to see > > the difference. > > > > Note: All my Lubuntu 12.04 that have been installed over 1/2 a year ago > > work with both versions > > All recently installed Lubuntu 12.04 work with only gb.gtk version. > > > > If more information is needed just let me know. > > The Lubuntu 12.10 specification are in previous post (see above). > > > > The application I have this problem in is using gb.qt4.webkit so it has > > to use gb.qt4 (since there is no gb.gtk.webkit -> why not actually?) > > Lack of time to do it... > > > else I could simply solve my problem by switching to gb.gtk > > > > Thanks.. > > > > > > I can't reproduce the problem, but it must come from the theme. Which > GTK+ theme do you use on the system you get the black background, and on > the system you don't get it? > ALL themes are the system defaults. On all my installations I leave default theme, never change it (except for the Lubuntu 12.10 on your request) Tried changing the theme on the Lubuntu 12.10 with the other default available themes. But that doesn't change the problem and IDE always says Theme=QGtk System 1: Lubuntu 12.04 - LXDE 0.5.8 - Gambas 3.4.0 - QGtk (default) System 2: Lubuntu 12.04 - LXDE 0.5.8 - Gambas 3.4.0 - QGtk (default) System 3: Lubuntu 12.04 - LXDE 0.5.8 - Gambas 3.4.0 - QGtk (default) System 4: Lubuntu 12.10 - LXDE 0.5.11 - Gambas 3.4.0 rev#5608 - QGtk (default) -> not working with gb.qt4 system 3 and 4 are in a VM system 1 and 2 are located at my work (so out of reach now) System 5: Lubuntu 12.04 - LXDE 0.5.8 - Gambas 3.3.4 - QGtk (default) System 6: Lubuntu 12.04 - LXDE 0.5.8 - Gambas 3.4.0 - QGtk (default) -> working with gb,qt4 system 5 and 6 are in a VM Attached: IconViewOK.png -> shows IDE System Information and working gb.qt4 IconView on system 6 IconViewNotOK.png -> shows IDE Sytem Information and working gb.gtk and non working gb.qt4 IconView on system 4 Only difference I noticed is: System 1 -> 4 are installed in the past month System 5 -> 7 are installed before september 2012 (but kept updated) I compared versions of several files in synaptic and they all are same versions for all the Lubuntu 12.04 systems. Did you try installing Lubuntu 12.04 or 12.10 in a VM to see if problem occurs as it only happens on Lubuntu? -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: IconViewOK.png Type: image/png Size: 54175 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IconViewNOTOK.png Type: image/png Size: 65207 bytes Desc: not available URL: From gambas at ...2524... Sat Apr 6 09:44:06 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 06 Apr 2013 07:44:06 +0000 Subject: [Gambas-user] Issue 417 in gambas: A secondary form does open in full screen Message-ID: <0-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: 3.4.1 Type-Bug Priority-Medium OpSys-Linux Dist-Ubuntu Arch-Any Desktop-KDE GUI-QT4 New issue 417 by akrobaticone: A secondary form does open in full screen http://code.google.com/p/gambas/issues/detail?id=417 1) Project start with a form open in full screen mode a second form open inside the first does open in full screen mode the same project run correctly with gambas 3.4.0 or previus 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=3.2.0-39-generic Architecture=x86_64 Distribution=Ubuntu 12.04.2 LTS Desktop=KDE4 Theme=Oxygen Language=it_IT.UTF-8 Memory=1751M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Qt4=libQtCore.so.4.8.2 SDL=libSDL-1.2.so.0.11.3 Poppler=libpoppler.so.19.0.0 atthached a little project with problem in subject Attachments: prova1.tar.gz 5.6 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Apr 6 14:22:52 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 06 Apr 2013 12:22:52 +0000 Subject: [Gambas-user] Issue 417 in gambas: A secondary form does open in full screen In-Reply-To: <0-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -3.4.1 Version-3.4.0 Comment #1 on issue 417 by benoit.m... at ...626...: A secondary form does open in full screen http://code.google.com/p/gambas/issues/detail?id=417 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Apr 6 14:23:52 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 06 Apr 2013 12:23:52 +0000 Subject: [Gambas-user] Issue 417 in gambas: A secondary form does open in full screen In-Reply-To: <1-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> <0-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> Updates: Labels: -GUI-QT4 GUI-GTK Comment #2 on issue 417 by benoit.m... at ...626...: A secondary form does open in full screen http://code.google.com/p/gambas/issues/detail?id=417 It occurs with gb.gtk only on my computer. With gb.qt4, the modal form is correctly opened. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Apr 6 14:35:23 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 06 Apr 2013 12:35:23 +0000 Subject: [Gambas-user] Issue 417 in gambas: A secondary form does open in full screen In-Reply-To: <2-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> <0-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2990597301822940546-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 417 by benoit.m... at ...626...: A secondary form does open in full screen http://code.google.com/p/gambas/issues/detail?id=417 Fixed in revision #5612. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Apr 6 14:36:55 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 06 Apr 2013 12:36:55 +0000 Subject: [Gambas-user] Issue 395 in gambas: Wait instruction conflicts with Process Wait In-Reply-To: <1-6813199134517018827-1576611235866677122-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1576611235866677122-gambas=googlecode.com@...2524...> <0-6813199134517018827-1576611235866677122-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1576611235866677122-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #2 on issue 395 by benoit.m... at ...626...: Wait instruction conflicts with Process Wait http://code.google.com/p/gambas/issues/detail?id=395 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From willy at ...2734... Sat Apr 6 03:21:11 2013 From: willy at ...2734... (Willy Raets) Date: Sat, 06 Apr 2013 03:21:11 +0200 Subject: [Gambas-user] IconView bug on LXDE 0.5.11 In-Reply-To: <1365209138.6764.23.camel@...3024...> References: <1363631427.3882.13.camel@...3024...> <1365001501.2990.19.camel@...3024...> <515F5A73.3010308@...1...> <1365209138.6764.23.camel@...3024...> Message-ID: <1365211271.8251.4.camel@...3024...> On Sat, 2013-04-06 at 02:45 +0200, Willy Raets wrote: > On Sat, 2013-04-06 at 01:12 +0200, Beno?t Minisini wrote: > > Le 03/04/2013 17:05, Willy Raets a ?crit : > > > On Mon, 2013-03-18 at 19:30 +0100, Willy Raets wrote: > > >> When running a Gambas application using gb.qt4 on Lubuntu 12.10 with > > >> LXDE 0.5.11 IconView shows black. > > >> Using gb.gui or gb.gtk poses no problems, IconView shows normal. > > >> > > >> Problem is ONLY with LXDE 0.5.11, previous version of Lubuntu 12.04 with > > >> LXDE 0.5.8 shows the IconView normal. So does LXDE 0.5.10 on a Fedora > > >> box. Tested Xubuntu 12.10 with Xfce 0.4.10 as well, no problem there. > > >> > > >> On LXDE 0.5.11 I tested with both Gambas 3.4 and Gambas 3.4 rev. #5582 > > >> > > >> Attached a source code archive with an example. > > >> > > >> System specification of the Lubuntu 12.10 LXDE 0.5.10 (in VM) are: > > >> [System] > > >> OperatingSystem=Linux > > >> Kernel=3.5.0-25-generic > > >> Architecture=x86 > > >> Distribution=Ubuntu 12.10 > > >> Desktop=LXDE > > >> Theme=QGtk > > >> Language=en_US.UTF-8 > > >> Memory=1003M > > >> > > >> [Libraries] > > >> GStreamer=libgstreamer-0.10.so.0.30.0 > > >> GTK+=libgtk-x11-2.0.so.0.2400.13 > > >> Poppler=libpoppler.so.28.0.0 > > >> Qt4=libQtCore.so.4.8.3 > > >> SDL=libSDL-1.2.so.0.11.4 > > >> > > >> Note: A user on Lubuntu 12.10 discovered this problem in one of my > > >> applications and he wasn't running in VM, so it is not VM releated. > > > > > > This problem with IconView occured on Lubuntu 12.10 - LXDE 0.5.12 first. > > > Now recently I had a bug report from a guy who recently installed > > > Lubuntu 12.04 - LXDE 0.5.8 with the same problem -> IconView is blacked > > > out. > > > > > > Strangely enought I have two Lubuntu 12.04 - LXDE 0.5.8 installed where > > > the problem doesn't occur. They where installed 1/2 year ago and kept > > > updated. > > > > > > I have two recently installs of Lubuntu 12.04 - LXDE 0.5.8 on end user > > > systems where the problem occurs as well. > > > > > > So it seems all recent Lubuntu installs as of 12.04 have the problem > > > with the IconView. > > > > > > So I made a little IconView tester to test the troubled Lubuntu 12.10. > > > When running it with gb.qt4 IconView blacks out > > > When running it with gb.gtk IconView works as expected > > > > > > Next I tested on a troubled Lubuntu 12.04 to run the gtk version of > > > IconView and it works, the qt4 version doesn't. > > > > > > So the problem seems to be gb.qt4 related. > > > Themes on ALL Lubuntu systems is QGtk.(those working and those not > > > working with gb.gt4 IconViewTest) > > > > > > Tested with Gambas 3.4.0 and 3.4.0 both rev#5598 and rev#5608 > > > > > > Attached: > > > - Screenshot with gb.gtk used on Lubuntu 12.10 > > > - Screenshot with gb.qt4 used on Lubuntu 12.10 > > > - Source Archive of IconViewTester > > > > > > Source Archive is set to gb.gtk (the working version) > > > Run once with gb.gtk next set to component gb.qt4 and run again to see > > > the difference. > > > > > > Note: All my Lubuntu 12.04 that have been installed over 1/2 a year ago > > > work with both versions > > > All recently installed Lubuntu 12.04 work with only gb.gtk version. > > > > > > If more information is needed just let me know. > > > The Lubuntu 12.10 specification are in previous post (see above). > > > > > > The application I have this problem in is using gb.qt4.webkit so it has > > > to use gb.qt4 (since there is no gb.gtk.webkit -> why not actually?) > > > > Lack of time to do it... > > > > > else I could simply solve my problem by switching to gb.gtk > > > > > > Thanks.. > > > > > > > > > > I can't reproduce the problem, but it must come from the theme. Which > > GTK+ theme do you use on the system you get the black background, and on > > the system you don't get it? > > > ALL themes are the system defaults. > > On all my installations I leave default theme, never change it (except > for the Lubuntu 12.10 on your request) > > Tried changing the theme on the Lubuntu 12.10 with the other default > available themes. But that doesn't change the problem and IDE always > says Theme=QGtk > > System 1: Lubuntu 12.04 - LXDE 0.5.8 - Gambas 3.4.0 - QGtk (default) > System 2: Lubuntu 12.04 - LXDE 0.5.8 - Gambas 3.4.0 - QGtk (default) > System 3: Lubuntu 12.04 - LXDE 0.5.8 - Gambas 3.4.0 - QGtk (default) > System 4: Lubuntu 12.10 - LXDE 0.5.11 - Gambas 3.4.0 rev#5608 - QGtk > (default) > -> not working with gb.qt4 > system 3 and 4 are in a VM > system 1 and 2 are located at my work (so out of reach now) > > System 5: Lubuntu 12.04 - LXDE 0.5.8 - Gambas 3.3.4 - QGtk (default) > System 6: Lubuntu 12.04 - LXDE 0.5.8 - Gambas 3.4.0 - QGtk (default) > -> working with gb,qt4 > system 5 and 6 are in a VM > > Attached: > IconViewOK.png -> shows IDE System Information and > working gb.qt4 IconView on system 6 > > IconViewNotOK.png -> shows IDE Sytem Information and > working gb.gtk and non working gb.qt4 IconView on system 4 > > Only difference I noticed is: > System 1 -> 4 are installed in the past month > System 5 -> 7 are installed before september 2012 (but kept updated) > > I compared versions of several files in synaptic and they all are same > versions for all the Lubuntu 12.04 systems. > > Did you try installing Lubuntu 12.04 or 12.10 in a VM to see if problem > occurs as it only happens on Lubuntu? > > Two screenshots to illustrate Both systems are Lubuntu 12.04 - LXDE 0.5.8 - Gambas 3.4.0 - QGtk Both screens show left InconView run with gb.qt4 and theme settings. One is okay, other not, both have exact same theme -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: Lubuntu-12.04-LXDE-0.5.8-Gambas-3.4.0.png Type: image/png Size: 70133 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Lubuntu-12.04-LXDE-0.5.8-Gambas-3.4.0-NO.png Type: image/png Size: 67843 bytes Desc: not available URL: From taboege at ...626... Sat Apr 6 14:45:28 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 6 Apr 2013 14:45:28 +0200 Subject: [Gambas-user] Desktop.SendMail() into Thunderbird leaves clobbered data In-Reply-To: <20130329194836.GE498@...2774...> References: <20130329194836.GE498@...2774...> Message-ID: <20130406124527.GA511@...2774...> On Fri, 29 Mar 2013, Tobias Boege wrote: > Hi, > > has anyone had practise with Desktop.SendMail() yet? Hans got problems with > data being transformed into that URL-style %XX notation but not back again > in his mail client (Thunderbird 17.x or so, just read his mail headers), > resulting in wrong mail addresses. > > I attach the two screenshots he gave me. Can we pin this issue to be the > client's fault? > > I myself didn't test it because I have no graphical mail client to test > against, sorry. I have attached the project. Maybe now there is some nice guy around here to test it quickly? :-) A click on the "EMail abschicken" button would open the mail client with the bad data then. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: Desktop-0.0.5.tar.gz Type: application/octet-stream Size: 13290 bytes Desc: not available URL: From gambas at ...1... Sat Apr 6 15:11:24 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 06 Apr 2013 15:11:24 +0200 Subject: [Gambas-user] Desktop.SendMail() into Thunderbird leaves clobbered data In-Reply-To: <20130406124527.GA511@...2774...> References: <20130329194836.GE498@...2774...> <20130406124527.GA511@...2774...> Message-ID: <51601EFC.2050500@...1...> Le 06/04/2013 14:45, Tobias Boege a ?crit : > On Fri, 29 Mar 2013, Tobias Boege wrote: >> Hi, >> >> has anyone had practise with Desktop.SendMail() yet? Hans got problems with >> data being transformed into that URL-style %XX notation but not back again >> in his mail client (Thunderbird 17.x or so, just read his mail headers), >> resulting in wrong mail addresses. >> >> I attach the two screenshots he gave me. Can we pin this issue to be the >> client's fault? >> >> I myself didn't test it because I have no graphical mail client to test >> against, sorry. > > I have attached the project. Maybe now there is some nice guy around here to > test it quickly? :-) > > A click on the "EMail abschicken" button would open the mail client with the > bad data then. > > Regards, > Tobi > Apparently the bug comes from the xdg-email script used for launching the mailer... -- Beno?t Minisini From gambas at ...1... Sat Apr 6 15:21:39 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 06 Apr 2013 15:21:39 +0200 Subject: [Gambas-user] Desktop.SendMail() into Thunderbird leaves clobbered data In-Reply-To: <51601EFC.2050500@...1...> References: <20130329194836.GE498@...2774...> <20130406124527.GA511@...2774...> <51601EFC.2050500@...1...> Message-ID: <51602163.5050401@...1...> Le 06/04/2013 15:11, Beno?t Minisini a ?crit : > Le 06/04/2013 14:45, Tobias Boege a ?crit : >> On Fri, 29 Mar 2013, Tobias Boege wrote: >>> Hi, >>> >>> has anyone had practise with Desktop.SendMail() yet? Hans got >>> problems with >>> data being transformed into that URL-style %XX notation but not back >>> again >>> in his mail client (Thunderbird 17.x or so, just read his mail headers), >>> resulting in wrong mail addresses. >>> >>> I attach the two screenshots he gave me. Can we pin this issue to be the >>> client's fault? >>> >>> I myself didn't test it because I have no graphical mail client to test >>> against, sorry. >> >> I have attached the project. Maybe now there is some nice guy around >> here to >> test it quickly? :-) >> >> A click on the "EMail abschicken" button would open the mail client >> with the >> bad data then. >> >> Regards, >> Tobi >> > > Apparently the bug comes from the xdg-email script used for launching > the mailer... > Fixed in revision #5613. Regards, -- Beno?t Minisini From taboege at ...626... Sat Apr 6 15:23:19 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 6 Apr 2013 15:23:19 +0200 Subject: [Gambas-user] Desktop.SendMail() into Thunderbird leaves clobbered data In-Reply-To: <51602163.5050401@...1...> References: <20130329194836.GE498@...2774...> <20130406124527.GA511@...2774...> <51601EFC.2050500@...1...> <51602163.5050401@...1...> Message-ID: <20130406132319.GB511@...2774...> On Sat, 06 Apr 2013, Beno?t Minisini wrote: > Le 06/04/2013 15:11, Beno?t Minisini a ?crit : > > Le 06/04/2013 14:45, Tobias Boege a ?crit : > >> On Fri, 29 Mar 2013, Tobias Boege wrote: > >>> Hi, > >>> > >>> has anyone had practise with Desktop.SendMail() yet? Hans got > >>> problems with > >>> data being transformed into that URL-style %XX notation but not back > >>> again > >>> in his mail client (Thunderbird 17.x or so, just read his mail headers), > >>> resulting in wrong mail addresses. > >>> > >>> I attach the two screenshots he gave me. Can we pin this issue to be the > >>> client's fault? > >>> > >>> I myself didn't test it because I have no graphical mail client to test > >>> against, sorry. > >> > >> I have attached the project. Maybe now there is some nice guy around > >> here to > >> test it quickly? :-) > >> > >> A click on the "EMail abschicken" button would open the mail client > >> with the > >> bad data then. > >> > >> Regards, > >> Tobi > >> > > > > Apparently the bug comes from the xdg-email script used for launching > > the mailer... > > > > Fixed in revision #5613. Thanks. Regards, Tobi From jussi.lahtinen at ...626... Sat Apr 6 17:29:41 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 6 Apr 2013 18:29:41 +0300 Subject: [Gambas-user] watch+fclock = Error opening terminal: unknown. In-Reply-To: <515F5EA8.7090507@...1...> References: <1365190635996-41634.post@...3046...> <1365194279.5483.4.camel@...3024...> <515F3B17.3040901@...1...> <1365196442034-41637.post@...3046...> <1365198539.6040.11.camel@...3024...> <1365200045453-41639.post@...3046...> <515F5494.9030204@...1...> <515F5B92.3050608@...1...> <515F5C69.6040307@...1...> <515F5EA8.7090507@...1...> Message-ID: I'm on Xubuntu 12.04 64bit, and installed Gambas3 revision is 5607. Interesting... $ watch --version 0.3.0 Jussi On Sat, Apr 6, 2013 at 2:30 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 06/04/2013 01:25, Jussi Lahtinen a ?crit : > > I cannot get either of them working... > > > > Jussi > > > > > > I use Ubuntu 12.10. > > $ watch --version > watch from procps-ng 3.3.3 > > And you? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Apr 6 17:43:53 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 6 Apr 2013 18:43:53 +0300 Subject: [Gambas-user] Changed behaviour of IsDate?? in latest revision In-Reply-To: References: <508695FC.8090308@...1...> <5086DC64.5060409@...1...> Message-ID: Raising up old issue... Using xx_XX.utf8 or xx_XX.UTF-8 doesn't seem to make any difference. Gambas 3 rev 5607 @ Xubuntu 12.04 64 bit. Jussi On Tue, Oct 23, 2012 at 10:15 PM, Jussi Lahtinen wrote: > $ LANG=fr_FR.utf8 LC_TIME=fi_FI.utf8 gbx3 -e 'IsDate("2488329.65453707")' > True > $ LANG=fr_FR.utf8 LC_TIME=en_US.utf8 gbx3 -e 'IsDate("2488329.65453707")' > False > > Jussi > > > > > On Tue, Oct 23, 2012 at 10:09 PM, Jussi Lahtinen > wrote: > >> I have no clue how this can have effect on using France language package! >> But to make clear, by problems I mean this command: >> >> >> $ LANG=fr_FR.utf8 gbx3 -e 'IsDate("2488329.65453707")' >> True >> >> So, fully using en_US.UTF-8, that command returns False. >> >> Jussi >> >> >> >> >> On Tue, Oct 23, 2012 at 10:06 PM, Jussi Lahtinen < >> jussi.lahtinen at ...626...> wrote: >> >>> OK. This problem may have started because I installed Finnish language >>> package. >>> >>> If I change my language setup, problem vanishes. >>> >>> This setup doesn't cause problems: >>> $ locale >>> LANG=en_US.UTF-8 >>> LANGUAGE=en >>> LC_CTYPE="en_US.UTF-8" >>> LC_NUMERIC=en_US.UTF-8 >>> LC_TIME=en_US.UTF-8 >>> LC_COLLATE="en_US.UTF-8" >>> LC_MONETARY=en_US.UTF-8 >>> LC_MESSAGES="en_US.UTF-8" >>> LC_PAPER=en_US.UTF-8 >>> LC_NAME=en_US.UTF-8 >>> LC_ADDRESS=en_US.UTF-8 >>> LC_TELEPHONE=en_US.UTF-8 >>> LC_MEASUREMENT=en_US.UTF-8 >>> LC_IDENTIFICATION=en_US.UTF-8 >>> LC_ALL= >>> >>> >>> This setup do cause problems: >>> $ locale >>> LANG=en_US.UTF-8 >>> LANGUAGE=en >>> LC_CTYPE="en_US.UTF-8" >>> LC_NUMERIC=fi_FI.UTF-8 >>> LC_TIME=fi_FI.UTF-8 >>> LC_COLLATE="en_US.UTF-8" >>> LC_MONETARY=fi_FI.UTF-8 >>> LC_MESSAGES="en_US.UTF-8" >>> LC_PAPER=fi_FI.UTF-8 >>> LC_NAME=fi_FI.UTF-8 >>> LC_ADDRESS=fi_FI.UTF-8 >>> LC_TELEPHONE=fi_FI.UTF-8 >>> LC_MEASUREMENT=fi_FI.UTF-8 >>> LC_IDENTIFICATION=fi_FI.UTF-8 >>> LC_ALL= >>> >>> >>> Jussi >>> >>> >>> >>> >>> >>> On Tue, Oct 23, 2012 at 9:43 PM, Jussi Lahtinen < >>> jussi.lahtinen at ...626...> wrote: >>> >>>> >>>> Note that "fr_FR.utf8" is not a valid value for $LANG on my Ubuntu. It >>>>> should be "fr_FR.UTF-8". I can't say more at the moment. >>>>> >>>> >>>> It seems to be valid. Translations tests I have made accept that >>>> perfectly well. >>>> >>>> >>>> $ LANG=fr_FR.utf8 gbx3 -e 'IsDate("2488329.65453707")' >>>> True >>>> $ LANG=fr_FR.UTF-8 gbx3 -e 'IsDate("2488329.65453707")' >>>> True >>>> $ LANG=invalid gbx3 -e 'IsDate("2488329.65453707")' >>>> gbx3: warning: cannot switch to language 'invalid'. Did you install the >>>> corresponding locale packages? >>>> False >>>> >>>> >>>> Jussi >>>> >>> >>> >> > From ron at ...1740... Sat Apr 6 17:06:34 2013 From: ron at ...1740... (Ron) Date: Sat, 6 Apr 2013 17:06:34 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.1 In-Reply-To: <515F04CC.6090008@...1...> References: <515E947F.3030703@...1...> <515E9574.1030307@...1740...> <515F04CC.6090008@...1...> Message-ID: Revision #5598 and #5600 made Gambas3 stable. But one thing I noticed it when it runs for a few days and I stop it i see this: gbx3: warning: 35 allocation(s) non freed. How can I check what they are? Run valgrind? Regards, Ron_2nd. 2013/4/5 Beno?t Minisini : > Le 05/04/2013 11:12, Ron a ?crit : >> On 5-4-2013 11:08, Beno?t Minisini wrote: >>> Hi, >>> >>> I have made a new package of the 3.4.1, with the fix about control names. >>> >>> http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.1.tar.bz2/download >>> >>> Please tell me if it is ok for you (those who don't want their control >>> name to be renamed savagely), and I will make it official. >>> >>> Regards, >>> >> Benoit, >> >> Hopefully you also integrated the gbx_ patches? >> r5598 and later regarding freeing gbx stuff? >> >> With those my DomotiGa project runs stable now, for the first time since >> months. >> >> Regards, >> Ron. >> > > No, these patches will be in the 3.5 version. > > These patches change the syntax of some macros, but do not change > anything in the generated code of the interpreter or the compiler. So I > don't think they make your project run stable. It's something else! > > But there will be a 3.4.2 soon, with the other patches backported. I > think that the revisions that made DomotiGa stable are r5597 and/or > r5600. I don't know if you can confirm... > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Apr 6 18:18:26 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 06 Apr 2013 18:18:26 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.1 In-Reply-To: References: <515E947F.3030703@...1...> <515E9574.1030307@...1740...> <515F04CC.6090008@...1...> Message-ID: <51604AD2.1010200@...1...> Le 06/04/2013 17:06, Ron a ?crit : > Revision #5598 and #5600 made Gambas3 stable. > > But one thing I noticed it when it runs for a few days and I stop it i see this: > > gbx3: warning: 35 allocation(s) non freed. > How can I check what they are? > Run valgrind? > > Regards, > Ron_2nd. This is a memory leak in the interpreter or a component detected by the interpreter. Alas valgrind won't help there. It's the most difficult bug to fix. The most important is trying to reproduce it reliably. If you can, then just explain me how. But I guess you won't be able, so let's go the hard way: recompiling the interpreter by enabling memory allocation debugging. To do that, edit the /share/gb_alloc.h file at line 29 to replace "#define DEBUG_MEMORY 0" by "#define DEBUG_MEMORY 1". Then recompile and install the interpreter. Then run your project: all allocation routines will generate a trace on the standard error output. To put them in a file, run your project that way: $ cd /path/to/DomotiGa $ gbx3 > gbx.out 2>&1 Then wait until you stop the program and get the non-freed allocation warning, and send me the 'gbx.out' file. Beware that it may be big! Regards, -- Beno?t Minisini From ron at ...1740... Sat Apr 6 18:24:59 2013 From: ron at ...1740... (Ron) Date: Sat, 6 Apr 2013 18:24:59 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.1 In-Reply-To: <51604AD2.1010200@...1...> References: <515E947F.3030703@...1...> <515E9574.1030307@...1740...> <515F04CC.6090008@...1...> <51604AD2.1010200@...1...> Message-ID: Ok i will recompile and try to isolate it. Can they come from the two revisions mentioned below? Since I didn't see them before it. I will revert the code to see too. Regards, Ron. 2013/4/6 Beno?t Minisini : > Le 06/04/2013 17:06, Ron a ?crit : >> Revision #5598 and #5600 made Gambas3 stable. >> >> But one thing I noticed it when it runs for a few days and I stop it i see this: >> >> gbx3: warning: 35 allocation(s) non freed. >> How can I check what they are? >> Run valgrind? >> >> Regards, >> Ron_2nd. > > This is a memory leak in the interpreter or a component detected by the > interpreter. > > Alas valgrind won't help there. > > It's the most difficult bug to fix. > > The most important is trying to reproduce it reliably. If you can, then > just explain me how. But I guess you won't be able, so let's go the hard > way: recompiling the interpreter by enabling memory allocation debugging. > > To do that, edit the /share/gb_alloc.h file at line 29 to replace > "#define DEBUG_MEMORY 0" by "#define DEBUG_MEMORY 1". > > Then recompile and install the interpreter. > > Then run your project: all allocation routines will generate a trace on > the standard error output. To put them in a file, run your project that way: > > $ cd /path/to/DomotiGa > $ gbx3 > gbx.out 2>&1 > > Then wait until you stop the program and get the non-freed allocation > warning, and send me the 'gbx.out' file. Beware that it may be big! > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Apr 6 19:01:57 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 06 Apr 2013 19:01:57 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.1 In-Reply-To: References: <515E947F.3030703@...1...> <515E9574.1030307@...1740...> <515F04CC.6090008@...1...> <51604AD2.1010200@...1...> Message-ID: <51605505.8090104@...1...> Le 06/04/2013 18:24, Ron a ?crit : > Ok i will recompile and try to isolate it. > > Can they come from the two revisions mentioned below? > Since I didn't see them before it. Maybe. > I will revert the code to see too. Yes, good idea too to identify where the problem comes from! Regards, -- Beno?t Minisini From adrien.prokopowicz at ...626... Sat Apr 6 19:13:56 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 06 Apr 2013 19:13:56 +0200 Subject: [Gambas-user] IDE crashes when opening a blank .form file Message-ID: Hi Beno?t, I was working on a tiny test project when I had an electric failure. When I restarted my computer and the IDE, re-opening the form led to a crash of the IDE (see error messages in the attached screenshot). I opened the project with my file explorer to see what was wrong, I noticed that the .src/FMain.form file was completly empty, and looks like it is what makes the IDE crash (I created another test project and emptied the .form file, same result). Regards, -- Adrien Prokopowicz From gambas.fr at ...626... Sat Apr 6 23:25:47 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 6 Apr 2013 23:25:47 +0200 Subject: [Gambas-user] IDE crashes when opening a blank .form file In-Reply-To: References: Message-ID: no attached screenshot... 2013/4/6 Adrien Prokopowicz > Hi Beno?t, > > I was working on a tiny test project when I had an electric failure. When > I restarted my computer and the IDE, re-opening the form led to a crash of > the IDE (see error messages in the attached screenshot). > > I opened the project with my file explorer to see what was wrong, I > noticed that the .src/FMain.form file was completly empty, and looks like > it is what makes the IDE crash (I created another test project and emptied > the .form file, same result). > > Regards, > -- > Adrien Prokopowicz > > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From adrien.prokopowicz at ...626... Sat Apr 6 23:30:31 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 06 Apr 2013 23:30:31 +0200 Subject: [Gambas-user] IDE crashes when opening a blank .form file In-Reply-To: References: Message-ID: Le Sat, 06 Apr 2013 23:25:47 +0200, Fabien Bodard a ?crit: > no attached screenshot... Sorry, here they are. -- Adrien Prokopowicz -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot-crash.png Type: image/png Size: 54574 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestCrash.tar.gz Type: application/x-gzip Size: 4425 bytes Desc: not available URL: From cj at ...2828... Sun Apr 7 00:45:01 2013 From: cj at ...2828... (Christer Johansson) Date: Sun, 7 Apr 2013 00:45:01 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <515F5560.9000101@...1...> Message-ID: <000001ce3318$67d6b8c0$0f00a8c0@...2829...> Hi Beno?t, > --> If you have compiled Gambas from sources on that machine, > you should not have that error message... > > -- > Beno?t Minisini Strange, I just checked and it was compiled on that RasPi? I don't know if it shows you something usefull but attached is the log-file from the compilation. As I mentioned before I'm currently still on 3.3.4 and in middle of another project so my update plan is to wait until that code is done before updating all my machines to latest stable release. To rule things out I verified that the C example (isr.c) works as it should when pulling GPIO18 pin low and generating the interrupt, see below (lots of counts due to contact bounces)... root at ...3122...:/home/wiringPi.130207/examples# ./isr Waiting ... Done. counter: 8 Waiting ... Done. counter: 48 Waiting ... Done. counter: 116 Waiting ... Done. counter: 127 Waiting ... Done. counter: 145 Waiting ... Done. counter: 158 Waiting ... Done. counter: 197 Waiting ... Done. counter: 199 Waiting ... Done. counter: 263 Waiting ... ^C Press any key to continue... So with the C code working as it should I conclude that the problem must be in my Gambas code (and/or Gambas 3 itself) or maybe I'm missing some packages needed packages??? Any other ideas/thoughts are appreciated... -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas3-3.3.4_installation_RasPi.log Type: application/octet-stream Size: 486331 bytes Desc: not available URL: From lists at ...2828... Sun Apr 7 00:48:38 2013 From: lists at ...2828... (CJ) Date: Sun, 7 Apr 2013 00:48:38 +0200 Subject: [Gambas-user] Shared WiringPi library for RasPi In-Reply-To: <515F5560.9000101@...1...> Message-ID: <000c01ce3318$eec4ce30$0f00a8c0@...2829...> Hi Beno?t, > --> If you have compiled Gambas from sources on that machine, > you should not have that error message... > > -- > Beno?t Minisini Strange, I just checked and it was compiled on that RasPi? I don't know if it shows you something usefull but attached is the log-file from the compilation. As I mentioned before I'm currently still on 3.3.4 and in middle of another project so my update plan is to wait until that code is done before updating all my machines to latest stable release. To rule things out I verified that the C example (isr.c) works as it should when pulling GPIO18 pin low and generating the interrupt, see below (lots of counts due to contact bounces)... root at ...3122...:/home/wiringPi.130207/examples# ./isr Waiting ... Done. counter: 8 Waiting ... Done. counter: 48 Waiting ... Done. counter: 116 Waiting ... Done. counter: 127 Waiting ... Done. counter: 145 Waiting ... Done. counter: 158 Waiting ... Done. counter: 197 Waiting ... Done. counter: 199 Waiting ... Done. counter: 263 Waiting ... ^C Press any key to continue... So with the C code working as it should I conclude that the problem must be in my Gambas code (and/or Gambas 3 itself) or maybe I'm missing some packages needed packages??? Any other ideas/thoughts are appreciated... -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas3-3.3.4_installation_RasPi.log Type: application/octet-stream Size: 486331 bytes Desc: not available URL: From ron at ...1740... Sun Apr 7 10:19:39 2013 From: ron at ...1740... (Ron) Date: Sun, 7 Apr 2013 10:19:39 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.1 In-Reply-To: <51605505.8090104@...1...> References: <515E947F.3030703@...1...> <515E9574.1030307@...1740...> <515F04CC.6090008@...1...> <51604AD2.1010200@...1...> <51605505.8090104@...1...> Message-ID: We are in luck. It seems very easy to reproduce... Create CLI project containing just this: Public Sub Main() Exec ["/test"] Catch End And you get 1 allocation(s) non freed when run. This is on latest revision. So it seems the latest gbx_ changes are generating this issue. Regards, Ron. 2013/4/6 Beno?t Minisini : > Le 06/04/2013 18:24, Ron a ?crit : >> Ok i will recompile and try to isolate it. >> >> Can they come from the two revisions mentioned below? >> Since I didn't see them before it. > > Maybe. > >> I will revert the code to see too. > > Yes, good idea too to identify where the problem comes from! > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From adrien.prokopowicz at ...626... Sun Apr 7 16:11:29 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 07 Apr 2013 16:11:29 +0200 Subject: [Gambas-user] IconView bug on LXDE 0.5.11 In-Reply-To: <1365211271.8251.4.camel@...3024...> References: <1363631427.3882.13.camel@...3024...> <1365001501.2990.19.camel@...3024...> <515F5A73.3010308@...1...> <1365209138.6764.23.camel@...3024...> <1365211271.8251.4.camel@...3024...> Message-ID: Hi, I have the same problem here on Archlinux/KDE 4.10, using the Qt Cleanlooks theme. I also have this problem with GridView as well (actually discovered it with a GridView). However, if I switch the selection mode from None to Single (or Multiple), the view is not black anymore, but it is colored with a light blue instead. I attached a screenshoot of my test project, running on both gb.qt4 and gb.gtk. The left GridView has its selection mode on None, and the right one has its on Single. By the way, the Qt Oxygen theme behaves correctly, just as gb.gtk does. Regards, -- Adrien Prokopowicz -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot-gridviews.png Type: image/png Size: 14691 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestGridView-0.0.1.tar.gz Type: application/x-gzip Size: 5053 bytes Desc: not available URL: From gambas at ...1... Sun Apr 7 16:22:20 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 07 Apr 2013 16:22:20 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.1 In-Reply-To: References: <515E947F.3030703@...1...> <515E9574.1030307@...1740...> <515F04CC.6090008@...1...> <51604AD2.1010200@...1...> <51605505.8090104@...1...> Message-ID: <5161811C.3060801@...1...> Le 07/04/2013 10:19, Ron a ?crit : > We are in luck. > It seems very easy to reproduce... > > Create CLI project containing just this: > > Public Sub Main() > > Exec ["/test"] > Catch > > End > > And you get 1 allocation(s) non freed when run. > This is on latest revision. > > So it seems the latest gbx_ changes are generating this issue. > > Regards, > Ron. > OK, fixed in revision #5614. It will backported to the 3.4.2 version. Regards, -- Beno?t Minisini From gambas at ...1... Sun Apr 7 16:40:11 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 07 Apr 2013 16:40:11 +0200 Subject: [Gambas-user] IconView bug on LXDE 0.5.11 In-Reply-To: References: <1363631427.3882.13.camel@...3024...> <1365001501.2990.19.camel@...3024...> <515F5A73.3010308@...1...> <1365209138.6764.23.camel@...3024...> <1365211271.8251.4.camel@...3024...> Message-ID: <5161854B.40607@...1...> Le 07/04/2013 16:11, Adrien Prokopowicz a ?crit : > Hi, > > I have the same problem here on Archlinux/KDE 4.10, using the Qt > Cleanlooks theme. > I also have this problem with GridView as well (actually discovered it > with a GridView). > > However, if I switch the selection mode from None to Single (or > Multiple), the view is not black anymore, but it is colored with a light > blue instead. > > I attached a screenshoot of my test project, running on both gb.qt4 and > gb.gtk. The left GridView has its selection mode on None, and the right > one has its on Single. > > By the way, the Qt Oxygen theme behaves correctly, just as gb.gtk does. > > Regards, > The bug has been fixed in revision #5615, at least for QCleanLooks. It was sort of a bug in the QCleanLooks theme, and I found a workaround. Regards, -- Beno?t Minisini From gambas at ...1... Sun Apr 7 16:41:25 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 07 Apr 2013 16:41:25 +0200 Subject: [Gambas-user] IDE crashes when opening a blank .form file In-Reply-To: References: Message-ID: <51618595.3090101@...1...> Le 06/04/2013 23:30, Adrien Prokopowicz a ?crit : > Le Sat, 06 Apr 2013 23:25:47 +0200, Fabien Bodard > a ?crit: > >> no attached screenshot... > > Sorry, here they are. > > Fixed in revision #5616. Regards, -- Beno?t Minisini From vuott at ...325... Mon Apr 8 10:37:39 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 8 Apr 2013 09:37:39 +0100 (BST) Subject: [Gambas-user] InterMatrix U7 will be the first tablet Touch Ubuntu.... Message-ID: <1365410259.67812.YahooMailClassic@...3065...> InterMatrix U7 will be the first tablet Touch Ubuntu to debut on the market. Do you think Gambas could work on that tablet? Regards vuott From mapp.paul at ...626... Mon Apr 8 23:24:03 2013 From: mapp.paul at ...626... (PM47) Date: Mon, 8 Apr 2013 14:24:03 -0700 (PDT) Subject: [Gambas-user] Window size issue when moving Gambas3 program from Ubuntu to XUbuntu Message-ID: <1365456243156-41676.post@...3046...> Hi, I have a Gambas 3 program that has been developed under Ubuntu 12.04 LTS and presents a main window exactly 1024 x 768 pixels. If I copy the program to a machine running XUbuntu 12.04, using exactly the same up to date version of Gambas 3 from the nemh ppa, it presents a main window exactly 7/8ths of the size, it all works perfectly, it's just smaller with everything scaled perfectly. Unfortunately it's designed to fit the XUbuntu screen size of 1024 x 768, but it doesn't :-( This is not a hardware issue as this process works fine if I run standard Ubuntu 12.04 on the smaller machine, it's only shown up since I loaded XUbuntu 12.04. If I open and edit the main form on the XUbuntu machine to be the correct size it's fine, but editing a full screen form on a machine with a display the same size is not exactly convenient. Wierd - any suggestions please ?? -- View this message in context: http://gambas.8142.n7.nabble.com/Window-size-issue-when-moving-Gambas3-program-from-Ubuntu-to-XUbuntu-tp41676.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Tue Apr 9 01:30:02 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 09 Apr 2013 01:30:02 +0200 Subject: [Gambas-user] Window size issue when moving Gambas3 program from Ubuntu to XUbuntu In-Reply-To: <1365456243156-41676.post@...3046...> References: <1365456243156-41676.post@...3046...> Message-ID: <516352FA.1070008@...1...> Le 08/04/2013 23:24, PM47 a ?crit : > Hi, > > I have a Gambas 3 program that has been developed under Ubuntu 12.04 LTS and > presents a main window exactly 1024 x 768 pixels. If I copy the program to a > machine running XUbuntu 12.04, using exactly the same up to date version of > Gambas 3 from the nemh ppa, it presents a main window exactly 7/8ths of the > size, it all works perfectly, it's just smaller with everything scaled > perfectly. Unfortunately it's designed to fit the XUbuntu screen size of > 1024 x 768, but it doesn't :-( > > This is not a hardware issue as this process works fine if I run standard > Ubuntu 12.04 on the smaller machine, it's only shown up since I loaded > XUbuntu 12.04. > > If I open and edit the main form on the XUbuntu machine to be the correct > size it's fine, but editing a full screen form on a machine with a display > the same size is not exactly convenient. > > Wierd - any suggestions please ?? > If you don't want a form to scale according to the current font size, set the "Scaled" property to False. Or explicitely resize the form during the Form_Open event handler. Regards, -- Beno?t Minisini From mapp.paul at ...626... Tue Apr 9 08:47:28 2013 From: mapp.paul at ...626... (PM47) Date: Mon, 8 Apr 2013 23:47:28 -0700 (PDT) Subject: [Gambas-user] Window size issue when moving Gambas3 program from Ubuntu to XUbuntu In-Reply-To: <516352FA.1070008@...1...> References: <1365456243156-41676.post@...3046...> <516352FA.1070008@...1...> Message-ID: <1365490048110-41678.post@...3046...> Many thanks, problem solved :-) -- View this message in context: http://gambas.8142.n7.nabble.com/Window-size-issue-when-moving-Gambas3-program-from-Ubuntu-to-XUbuntu-tp41676p41678.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Tue Apr 9 15:59:27 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 09 Apr 2013 13:59:27 +0000 Subject: [Gambas-user] Issue 418 in gambas: Unindent doesn't work anymore Message-ID: <0-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 418 by r... at ...1740...: Unindent doesn't work anymore http://code.google.com/p/gambas/issues/detail?id=418 1) Describe the problem. Unindent doesn't work any more 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: 5616 [System] OperatingSystem=Linux Kernel=3.8.0-17-generic Architecture=x86_64 Distribution=Ubuntu Raring Ringtail (development branch) Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7954M [Libraries] Curl=libcurl.so.4.3.0 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.17 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Poppler=libpoppler.so.28.0.0 3) Provide a little project that reproduces the bug or the crash. Create empty project or open an existing one, go to code fragment, click on Indent toolbar icon, it works, click on Unindent icon, nothing happens. 4) If your project needs a database, try to provide it, or part of it. No needed 5) Explain clearly how to reproduce the bug or the crash. See 3) 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From abbat.81 at ...787... Tue Apr 9 17:35:18 2013 From: abbat.81 at ...787... (abbat81) Date: Tue, 9 Apr 2013 08:35:18 -0700 (PDT) Subject: [Gambas-user] gb.settings. Saves my settings only when my form closing Message-ID: <1365521718655-41680.post@...3046...> Public Sub SaveButton_Click() hs["Something/item1"] = Textbox1.Text End It does not save my settings. But after my form is closed it takes change. Is there something I don't understand correctly? I need my setting to take change immediately, because I also have one more button on the same form, which have poweroff/reboot functions. So, SaveButton, then poweroff button gives me an empty setting file at result. -- View this message in context: http://gambas.8142.n7.nabble.com/gb-settings-Saves-my-settings-only-when-my-form-closing-tp41680.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Tue Apr 9 17:55:45 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 9 Apr 2013 18:55:45 +0300 Subject: [Gambas-user] gb.settings. Saves my settings only when my form closing In-Reply-To: <1365521718655-41680.post@...3046...> References: <1365521718655-41680.post@...3046...> Message-ID: hs.Save() http://gambasdoc.org/help/comp/gb.settings/settings?v3 Jussi On Tue, Apr 9, 2013 at 6:35 PM, abbat81 wrote: > > Public Sub SaveButton_Click() > hs["Something/item1"] = Textbox1.Text > End > > > It does not save my settings. > But after my form is closed it takes change. > > Is there something I don't understand correctly? > > I need my setting to take change immediately, because I also have one more > button on the same form, which have poweroff/reboot functions. > > So, SaveButton, then poweroff button gives me an empty setting file at > result. > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/gb-settings-Saves-my-settings-only-when-my-form-closing-tp41680.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Wed Apr 10 01:21:31 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 09 Apr 2013 23:21:31 +0000 Subject: [Gambas-user] Issue 418 in gambas: Unindent doesn't work anymore In-Reply-To: <0-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #1 on issue 418 by benoit.m... at ...626...: Unindent doesn't work anymore http://code.google.com/p/gambas/issues/detail?id=418 I don't see where you find a link between "code fragment" and "indent toolbar icon". Clicking on the "Unindent" toolbar icon in the code editor perfectly works there. Please provide a screenshot of the problem so that I can see what you are talking about. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Apr 10 02:05:27 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 10 Apr 2013 00:05:27 +0000 Subject: [Gambas-user] Issue 418 in gambas: Unindent doesn't work anymore In-Reply-To: <1-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> <0-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> Comment #2 on issue 418 by ea7... at ...626...: Unindent doesn't work anymore http://code.google.com/p/gambas/issues/detail?id=418 I think Ron is right. He meant buttons in the editor toolbar "Indent" and "Unindent". *Unindent* button doesn't work either clicking on button or pressing shift+tab in the editor, unless you select part of the the line. This only happens when you do it in one single line. Selecting several lines at a time, works fine. Regards Version: TRUNK Revision: 5608 [System] OperatingSystem=Linux Kernel=3.2.0-23-generic Architecture=x86_64 Distribution=Linux Mint 13 Maya Desktop=GNOME Theme=QPlastique Language=es_ES.UTF-8 Memory=16034M [Libraries] Curl=libcurl.so.4.2.0 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 Poppler=libpoppler.so.19.0.0 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bill-lancaster at ...2231... Wed Apr 10 10:17:39 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Wed, 10 Apr 2013 01:17:39 -0700 (PDT) Subject: [Gambas-user] printer how to set custom page size Message-ID: <1365581859254-41684.post@...3046...> I'm trying to make a simple routine to print an address on a 'DL' (220 X 110) envelope. The routine does not need to go through the printer setup each time. How do I set the width & height? -- View this message in context: http://gambas.8142.n7.nabble.com/printer-how-to-set-custom-page-size-tp41684.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Wed Apr 10 11:47:46 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Wed, 10 Apr 2013 02:47:46 -0700 (PDT) Subject: [Gambas-user] Printing - custom page In-Reply-To: <1365581859254-41684.post@...3046...> References: <1365581859254-41684.post@...3046...> Message-ID: <1365587266987-41685.post@...3046...> OK, I'm getting somwhere now. I was getting "symbol not recognised" when trying to set PaperWidth but the printer object was not Instantiated So, one step forward! -- View this message in context: http://gambas.8142.n7.nabble.com/printer-how-to-set-custom-page-size-tp41684p41685.html Sent from the gambas-user mailing list archive at Nabble.com. From karl.reinl at ...9... Wed Apr 10 15:03:43 2013 From: karl.reinl at ...9... (Karl Reinl) Date: Wed, 10 Apr 2013 15:03:43 +0200 Subject: [Gambas-user] gambas3 r5617 Error Message-ID: <1365599023.2843.12.camel@...40...> Salut, could not compile (from scratch) gambas3 r5617 -- Amicalement Charlie [System] OperatingSystem=Linux Kernel=3.0.0-32-generic Architecture=x86 Distribution=Ubuntu 10.04.4 LTS Desktop=GNOME Theme=QPlastique Language=de_DE.UTF-8 Memory=3026M [Libraries] Curl=libcurl.so.4.1.1 GStreamer=libgstreamer-0.10.so.0.24.1 GTK+=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 Qt4=libQtCore.so.4.6.2 SDL=libSDL-1.2.so.0.11.3 -------------- next part -------------- A non-text attachment was scrubbed... Name: g3-r5617-log.zip Type: application/zip Size: 16868 bytes Desc: not available URL: From vuott at ...325... Wed Apr 10 16:57:30 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 10 Apr 2013 15:57:30 +0100 (BST) Subject: [Gambas-user] R: gambas3 r5617 Error In-Reply-To: <1365599023.2843.12.camel@...40...> Message-ID: <1365605850.13864.YahooMailClassic@...3064...> I tried to update via svn, and I obtain error: make[5]: Entering directory `/home/vuott/trunk/gb.xml/src/rpc' make[5]: *** No rule to make target `gb.xml.rpc.component', needed by `all-am'. Stop. make[5]: Leaving directory `/home/vuott/trunk/gb.xml/src/rpc' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/vuott/trunk/gb.xml/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/vuott/trunk/gb.xml' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/vuott/trunk/gb.xml' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/vuott/trunk' make: *** [all] Error 2 Regards vuott --- Mer 10/4/13, Karl Reinl ha scritto: > Da: Karl Reinl > Oggetto: [Gambas-user] gambas3 r5617 Error > A: gambas-user at lists.sourceforge.net > Data: Mercoled? 10 Aprile 2013, 15:03 > Salut, > > could not compile (from scratch) gambas3 r5617 > > > -- > Amicalement > Charlie > > [System] > OperatingSystem=Linux > Kernel=3.0.0-32-generic > Architecture=x86 > Distribution=Ubuntu 10.04.4 LTS > Desktop=GNOME > Theme=QPlastique > Language=de_DE.UTF-8 > Memory=3026M > > [Libraries] > Curl=libcurl.so.4.1.1 > GStreamer=libgstreamer-0.10.so.0.24.1 > GTK+=libgtk-x11-2.0.so.0.2000.1 > Poppler=libpoppler.so.5.0.0 > Qt4=libQtCore.so.4.6.2 > SDL=libSDL-1.2.so.0.11.3 > > -----Segue allegato----- > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of > advanced > analytics on semi-structured data. The platform includes > APIs for building > apps and a phenomenal toolset for data science. Developers > can use > our toolset for easy data analysis & visualization. Get > a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > -----Segue allegato----- > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Wed Apr 10 22:35:45 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 10 Apr 2013 20:35:45 +0000 Subject: [Gambas-user] Issue 419 in gambas: Expect: 100-continue XML-RPC returns HTTP 415 Unsupported Media Type Message-ID: <0-6813199134517018827-14504588094280898948-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.4.0 Type-Bug Priority-High OpSys-Linux Dist-Any Arch-Any Desktop-Any GUI-Any New issue 419 by sander.v... at ...626...: Expect: 100-continue XML-RPC returns HTTP 415 Unsupported Media Type http://code.google.com/p/gambas/issues/detail?id=419 I attached two files: dump1.eth -> XML-RPC call from Firefox Poster plugin dump2.eth -> XML-RPC call from Openremote Gambas3 3.4.0 on Ubuntu 13.04 It seems the Gambas3 XML-RPC implementation is not correct and returns a "HTTP 415 Unsupported Media Type" status on a "Expect: 100-continue". Attachments: dump1.eth 7.2 KB dump2.eth 1.4 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Thu Apr 11 00:35:22 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 11 Apr 2013 00:35:22 +0200 Subject: [Gambas-user] R: gambas3 r5617 Error In-Reply-To: <1365605850.13864.YahooMailClassic@...3064...> References: <1365605850.13864.YahooMailClassic@...3064...> Message-ID: <5165E92A.1060900@...1...> Le 10/04/2013 16:57, Ru Vuott a ?crit : > I tried to update via svn, and I obtain error: > > > make[5]: Entering directory `/home/vuott/trunk/gb.xml/src/rpc' > make[5]: *** No rule to make target `gb.xml.rpc.component', needed by `all-am'. Stop. > make[5]: Leaving directory `/home/vuott/trunk/gb.xml/src/rpc' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/vuott/trunk/gb.xml/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/vuott/trunk/gb.xml' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/vuott/trunk/gb.xml' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/vuott/trunk' > make: *** [all] Error 2 > > > Regards > vuott > > Is it better with revision #5618? -- Beno?t Minisini From vuott at ...325... Thu Apr 11 01:01:16 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 11 Apr 2013 00:01:16 +0100 (BST) Subject: [Gambas-user] R: gambas3 r5617 Error In-Reply-To: <5165E92A.1060900@...1...> Message-ID: <1365634876.61691.YahooMailClassic@...3063...> Yes, Beno?t, now it's OK ! Bye vuott --- Gio 11/4/13, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] R: gambas3 r5617 Error > A: "mailing list for gambas users" > Data: Gioved? 11 Aprile 2013, 00:35 > Le 10/04/2013 16:57, Ru Vuott a > ?crit : > > I tried to update via svn, and I obtain error: > > > > > > make[5]: Entering directory > `/home/vuott/trunk/gb.xml/src/rpc' > > make[5]: *** No rule to make target > `gb.xml.rpc.component', needed by `all-am'.? Stop. > > make[5]: Leaving directory > `/home/vuott/trunk/gb.xml/src/rpc' > > make[4]: *** [all-recursive] Error 1 > > make[4]: Leaving directory > `/home/vuott/trunk/gb.xml/src' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory `/home/vuott/trunk/gb.xml' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory `/home/vuott/trunk/gb.xml' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/vuott/trunk' > > make: *** [all] Error 2 > > > > > > Regards > > vuott > > > > > > Is it better with revision #5618? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of > advanced > analytics on semi-structured data. The platform includes > APIs for building > apps and a phenomenal toolset for data science. Developers > can use > our toolset for easy data analysis & visualization. Get > a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Thu Apr 11 08:45:52 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 11 Apr 2013 06:45:52 +0000 Subject: [Gambas-user] Issue 418 in gambas: Unindent doesn't work anymore In-Reply-To: <2-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> <0-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-7638437970801570691-gambas=googlecode.com@...2524...> Comment #3 on issue 418 by r... at ...1740...: Unindent doesn't work anymore http://code.google.com/p/gambas/issues/detail?id=418 Yes correct, I cheched again. If you put the cursor in front of single line Indent works but Unindent doens't. If you also select the line next to it it works. Nothing big, but would be nice if all small things get reported and fixed too.. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From shordi at ...626... Thu Apr 11 12:36:46 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Thu, 11 Apr 2013 12:36:46 +0200 Subject: [Gambas-user] Mysql connection loose country language preferences Message-ID: A few weeks ago I post a comment about a bug in gb-db-mysql (I guess) about the loosing of language preferences after de time-out close connection of mysql server. The solution aparently was to increase the time-out in the server but, if the time-out is too big, then my application hangs after a unindetermined amount of time... I back to decrease the time-out of server and the application doesn't hangs any more... but the language preferences are loosed again. I've read somewhere that this bug have been fixed in 3.4.0 version of Gambas3, but I've installed de 3.4.1 of the Nemh Repositories and the bug is not fixed. What can I do? I'm Spanish and all my databases are in UTF-8 general... my clients are very angry with me... help, please. Thanks in advance Regards From Karl.Reinl at ...2345... Thu Apr 11 13:03:20 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 11 Apr 2013 13:03:20 +0200 Subject: [Gambas-user] R: gambas3 r5617 Error In-Reply-To: <5165E92A.1060900@...1...> References: <1365605850.13864.YahooMailClassic@...3064...> <5165E92A.1060900@...1...> Message-ID: <1365678200.2395.0.camel@...40...> Am Donnerstag, den 11.04.2013, 00:35 +0200 schrieb Beno?t Minisini: > Le 10/04/2013 16:57, Ru Vuott a ?crit : > > I tried to update via svn, and I obtain error: > > > > > > make[5]: Entering directory `/home/vuott/trunk/gb.xml/src/rpc' > > make[5]: *** No rule to make target `gb.xml.rpc.component', needed by `all-am'. Stop. > > make[5]: Leaving directory `/home/vuott/trunk/gb.xml/src/rpc' > > make[4]: *** [all-recursive] Error 1 > > make[4]: Leaving directory `/home/vuott/trunk/gb.xml/src' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory `/home/vuott/trunk/gb.xml' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory `/home/vuott/trunk/gb.xml' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/vuott/trunk' > > make: *** [all] Error 2 > > > > > > Regards > > vuott > > > > > > Is it better with revision #5618? > Yes now it compiles . Thanks Beno?t From gambas at ...2524... Thu Apr 11 13:25:34 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 11 Apr 2013 11:25:34 +0000 Subject: [Gambas-user] Issue 420 in gambas: Error not raised in nested for..next loop Message-ID: <0-6813199134517018827-9307775379049718096-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Linux Dist-Any Arch-Any Desktop-Any GUI-Any New issue 420 by ea7... at ...626...: Error not raised in nested for..next loop http://code.google.com/p/gambas/issues/detail?id=420 In a nested 'For' loop, when the iterator in the inner loop is not present, doesn't raise any error or warning. Consider this example: Private values As Integer[] = [1, 2, 3, 4, 5, 6, 7, 8, 9] Public Sub main() Dim n, x, y As Integer n = 0 For x = 0 To values.Max For = n To values.Max ' note there's not a variable after For. Print values[x]; values[y] Next n += 1 Next End Program runs normally, though the results are not as expected. Instead, an error might be raised. Version: TRUNK Revision: 5608 [System] OperatingSystem=Linux Kernel=3.2.0-23-generic Architecture=x86_64 Distribution=Linux Mint 13 Maya Desktop=GNOME Theme=QPlastique Language=es_ES.UTF-8 Memory=16034M [Libraries] Curl=libcurl.so.4.2.0 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 Poppler=libpoppler.so.19.0.0 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From oceanosoftlapalma at ...626... Thu Apr 11 22:11:53 2013 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Thu, 11 Apr 2013 22:11:53 +0200 Subject: [Gambas-user] Mysql connection loose country language preferences In-Reply-To: References: Message-ID: Hi Jorge, I'm using gambas like mysql front end apss for a long long time too. I have never experimented this problem. My question is why do you need to keep open database connection for a long time? I only keep open connection for a while when I retrieve/save information from database. Maybe it's easy for you to change your code to open connection when required and immediately close after read/write process. Or maybe not... Not glad to help you :-( cheers Ricardo D?az 2013/4/11 Jorge Carri?n : > A few weeks ago I post a comment about a bug in gb-db-mysql (I guess) about > the loosing of language preferences after de time-out close connection of > mysql server. The solution aparently was to increase the time-out in the > server but, if the time-out is too big, then my application hangs after a > unindetermined amount of time... > I back to decrease the time-out of server and the application doesn't hangs > any more... but the language preferences are loosed again. > I've read somewhere that this bug have been fixed in 3.4.0 version of > Gambas3, but I've installed de 3.4.1 of the Nemh Repositories and the bug > is not fixed. > What can I do? I'm Spanish and all my databases are in UTF-8 general... my > clients are very angry with me... help, please. > > Thanks in advance > > Regards > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Apr 11 22:18:59 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 11 Apr 2013 22:18:59 +0200 Subject: [Gambas-user] Mysql connection loose country language preferences In-Reply-To: References: Message-ID: <51671AB3.4080704@...1...> Le 11/04/2013 12:36, Jorge Carri?n a ?crit : > A few weeks ago I post a comment about a bug in gb-db-mysql (I guess) about > the loosing of language preferences after de time-out close connection of > mysql server. The solution aparently was to increase the time-out in the > server but, if the time-out is too big, then my application hangs after a > unindetermined amount of time... > I back to decrease the time-out of server and the application doesn't hangs > any more... but the language preferences are loosed again. > I've read somewhere that this bug have been fixed in 3.4.0 version of > Gambas3, but I've installed de 3.4.1 of the Nemh Repositories and the bug > is not fixed. > What can I do? I'm Spanish and all my databases are in UTF-8 general... my > clients are very angry with me... help, please. > > Thanks in advance > > Regards Each time a mysql database connection is opened, a "set names utf8" command is sent to the mysql server. If your connection is closed by the server, then you should get an error on the client at the next command. Then, either you abort the application, either you manage the error by opening the connection again. Then, the "set names utf8" is emitted again, so I don't understand how the "language preferences" could be lost. So please be give more details of what you call "language preferences". Or better create a little project example with a little database that allows me to reproduce your problem on my computer. Regards, -- Beno?t Minisini From shordi at ...626... Thu Apr 11 23:48:44 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Thu, 11 Apr 2013 23:48:44 +0200 Subject: [Gambas-user] Mysql connection loose country language preferences In-Reply-To: <51671AB3.4080704@...1...> References: <51671AB3.4080704@...1...> Message-ID: Well... I use my own class inherited from Connection to talk with database. It's been workin without problems for 5 years. And don't undestand very well what it's happend here. (I attach the class with this mail). I've been browsing the gambas source code in sourceforge and I've seen by myself the "set names utf8". So I begin to think that perhaps my clients doesn't have updated to last 3.4.1 release from nemh repository... Just tell me, please, if you can see any obvious error in the class attached to this mail, If that is not the case I'll remind to my clients the need and convenience of updating. Sorry about this mess. Regards 2013/4/11 Beno?t Minisini > Le 11/04/2013 12:36, Jorge Carri?n a ?crit : > > A few weeks ago I post a comment about a bug in gb-db-mysql (I guess) > about > > the loosing of language preferences after de time-out close connection of > > mysql server. The solution aparently was to increase the time-out in the > > server but, if the time-out is too big, then my application hangs after a > > unindetermined amount of time... > > I back to decrease the time-out of server and the application doesn't > hangs > > any more... but the language preferences are loosed again. > > I've read somewhere that this bug have been fixed in 3.4.0 version of > > Gambas3, but I've installed de 3.4.1 of the Nemh Repositories and the bug > > is not fixed. > > What can I do? I'm Spanish and all my databases are in UTF-8 general... > my > > clients are very angry with me... help, please. > > > > Thanks in advance > > > > Regards > > Each time a mysql database connection is opened, a "set names utf8" > command is sent to the mysql server. > > If your connection is closed by the server, then you should get an error > on the client at the next command. Then, either you abort the > application, either you manage the error by opening the connection > again. Then, the "set names utf8" is emitted again, so I don't > understand how the "language preferences" could be lost. > > So please be give more details of what you call "language preferences". > Or better create a little project example with a little database that > allows me to reproduce your problem on my computer. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: cConexion.class.tar.gz Type: application/x-gzip Size: 1592 bytes Desc: not available URL: From gambas at ...1... Thu Apr 11 23:55:02 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 11 Apr 2013 23:55:02 +0200 Subject: [Gambas-user] Mysql connection loose country language preferences In-Reply-To: References: <51671AB3.4080704@...1...> Message-ID: <51673136.2000805@...1...> Le 11/04/2013 23:48, Jorge Carri?n a ?crit : > Well... I use my own class inherited from Connection to talk with database. > It's been workin without problems for 5 years. And don't undestand very > well what it's happend here. (I attach the class with this mail). > I've been browsing the gambas source code in sourceforge and I've seen by > myself the "set names utf8". So I begin to think that perhaps my clients > doesn't have updated to last 3.4.1 release from nemh repository... > Just tell me, please, if you can see any obvious error in the class > attached to this mail, If that is not the case I'll remind to my clients > the need and convenience of updating. > Sorry about this mess. > > Regards > The bug (that forget the character set in the case of an automatic mysql reconnection) has been fixed in the 3.4.0 version. So if you use that version, the problem must come from something else... -- Beno?t Minisini From shordi at ...626... Thu Apr 11 23:56:05 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Thu, 11 Apr 2013 23:56:05 +0200 Subject: [Gambas-user] Mysql connection loose country language preferences In-Reply-To: References: Message-ID: Ricardo: Thanks for your answer. I have been using a own class inherited from connection that, until gambas3 migration of my applications, works fine with opens and closes of Mysql databases (I attach it here). The idea is forget all the thing and let the class do the work. I suspect that the fault lies on my client's lack of updates. I'll look into it more before bothering everybody in the mailing list. Regards 2013/4/11 Ricardo D?az Mart?n > Hi Jorge, > > I'm using gambas like mysql front end apss for a long long time too. I > have never experimented this problem. My question is why do you need > to keep open database connection for a long time? I only keep open > connection for a while when I retrieve/save information from database. > Maybe it's easy for you to change your code to open connection when > required and immediately close after read/write process. Or maybe > not... > > Not glad to help you :-( > > cheers > Ricardo D?az > > 2013/4/11 Jorge Carri?n : > > A few weeks ago I post a comment about a bug in gb-db-mysql (I guess) > about > > the loosing of language preferences after de time-out close connection of > > mysql server. The solution aparently was to increase the time-out in the > > server but, if the time-out is too big, then my application hangs after a > > unindetermined amount of time... > > I back to decrease the time-out of server and the application doesn't > hangs > > any more... but the language preferences are loosed again. > > I've read somewhere that this bug have been fixed in 3.4.0 version of > > Gambas3, but I've installed de 3.4.1 of the Nemh Repositories and the bug > > is not fixed. > > What can I do? I'm Spanish and all my databases are in UTF-8 general... > my > > clients are very angry with me... help, please. > > > > Thanks in advance > > > > Regards > > > ------------------------------------------------------------------------------ > > Precog is a next-generation analytics platform capable of advanced > > analytics on semi-structured data. The platform includes APIs for > building > > apps and a phenomenal toolset for data science. Developers can use > > our toolset for easy data analysis & visualization. Get a free account! > > http://www2.precog.com/precogplatform/slashdotnewsletter > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shordi at ...626... Fri Apr 12 00:02:18 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Fri, 12 Apr 2013 00:02:18 +0200 Subject: [Gambas-user] Mysql connection loose country language preferences In-Reply-To: <51673136.2000805@...1...> References: <51671AB3.4080704@...1...> <51673136.2000805@...1...> Message-ID: Thanks Benoit. 2013/4/11 Beno?t Minisini > Le 11/04/2013 23:48, Jorge Carri?n a ?crit : > > Well... I use my own class inherited from Connection to talk with > database. > > It's been workin without problems for 5 years. And don't undestand very > > well what it's happend here. (I attach the class with this mail). > > I've been browsing the gambas source code in sourceforge and I've seen by > > myself the "set names utf8". So I begin to think that perhaps my clients > > doesn't have updated to last 3.4.1 release from nemh repository... > > Just tell me, please, if you can see any obvious error in the class > > attached to this mail, If that is not the case I'll remind to my clients > > the need and convenience of updating. > > Sorry about this mess. > > > > Regards > > > > The bug (that forget the character set in the case of an automatic mysql > reconnection) has been fixed in the 3.4.0 version. So if you use that > version, the problem must come from something else... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Fri Apr 12 19:49:07 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 12 Apr 2013 18:49:07 +0100 (BST) Subject: [Gambas-user] How to read mouse wheel string Message-ID: <1365788947.95836.YahooMailClassic@...3070...> Hello, how to store the string saved in the mouse from an "external" text directly to a string variable (I mean the highlighted text by mouse operation and you can see by clicking on mouse wheel). Regards vuott From gambas.fr at ...626... Fri Apr 12 21:28:47 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 12 Apr 2013 21:28:47 +0200 Subject: [Gambas-user] How to read mouse wheel string In-Reply-To: <1365788947.95836.YahooMailClassic@...3070...> References: <1365788947.95836.YahooMailClassic@...3070...> Message-ID: http://gambasdoc.org/help/comp/gb.qt4/clipboard/paste?v3 Le 12 avr. 2013 19:50, "Ru Vuott" a ?crit : > Hello, > > how to store the string saved in the mouse from an "external" text > directly to a string variable (I mean the highlighted text by mouse > operation and you can see by clicking on mouse wheel). > > Regards > vuott > > > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Sat Apr 13 14:23:18 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 13 Apr 2013 13:23:18 +0100 (BST) Subject: [Gambas-user] How to read mouse wheel string In-Reply-To: Message-ID: <1365855798.34656.YahooMailClassic@...3064...> Thank you Fabien, but if I want to use "clipboard.Paste()" Gambas function, after simply highlighted an external text, it doesn't work. It works, if I highlight the (external) text and I use ctrl+C function or "Copy" function from right button of mouse. I repeat: if I highlight an external text and after simply I use "clipboard.Paste()", my Gambas application doesn't get and doesn't show that text. --- Ven 12/4/13, Fabien Bodard ha scritto: > Da: Fabien Bodard > Oggetto: Re: [Gambas-user] How to read mouse wheel string > A: "mailing list for gambas users" > Data: Venerd? 12 Aprile 2013, 21:28 > http://gambasdoc.org/help/comp/gb.qt4/clipboard/paste?v3 > Le 12 avr. 2013 19:50, "Ru Vuott" > a ?crit : > > > Hello, > > > > how to store the string saved in the mouse from an > "external" text > > directly to a string variable (I mean the highlighted > text by mouse > > operation and you can see by clicking on mouse wheel). > > > > Regards > > vuott > > > > > > > > > > > ------------------------------------------------------------------------------ > > Precog is a next-generation analytics platform capable > of advanced > > analytics on semi-structured data. The platform > includes APIs for building > > apps and a phenomenal toolset for data science. > Developers can use > > our toolset for easy data analysis & visualization. > Get a free account! > > http://www2.precog.com/precogplatform/slashdotnewsletter > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of > advanced > analytics on semi-structured data. The platform includes > APIs for building > apps and a phenomenal toolset for data science. Developers > can use > our toolset for easy data analysis & visualization. Get > a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sat Apr 13 15:39:30 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 13 Apr 2013 13:39:30 +0000 Subject: [Gambas-user] Issue 419 in gambas: Expect: 100-continue XML-RPC returns HTTP 415 Unsupported Media Type In-Reply-To: <0-6813199134517018827-14504588094280898948-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14504588094280898948-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-14504588094280898948-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #1 on issue 419 by adrien.p... at ...626...: Expect: 100-continue XML-RPC returns HTTP 415 Unsupported Media Type http://code.google.com/p/gambas/issues/detail?id=419 Do you have a little test project that reproduces the problem ? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Sat Apr 13 17:32:29 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 13 Apr 2013 17:32:29 +0200 Subject: [Gambas-user] How to read mouse wheel string In-Reply-To: <1365855798.34656.YahooMailClassic@...3064...> References: <1365855798.34656.YahooMailClassic@...3064...> Message-ID: I don't know... Le 13 avr. 2013 14:24, "Ru Vuott" a ?crit : > Thank you Fabien, > > but if I want to use "clipboard.Paste()" Gambas function, after simply > highlighted an external text, it doesn't work. > It works, if I highlight the (external) text and I use ctrl+C function or > "Copy" function from right button of mouse. > > I repeat: if I highlight an external text and after simply I use > "clipboard.Paste()", my Gambas application doesn't get and doesn't show > that text. > > > > > --- Ven 12/4/13, Fabien Bodard ha scritto: > > > Da: Fabien Bodard > > Oggetto: Re: [Gambas-user] How to read mouse wheel string > > A: "mailing list for gambas users" > > Data: Venerd? 12 Aprile 2013, 21:28 > > http://gambasdoc.org/help/comp/gb.qt4/clipboard/paste?v3 > > Le 12 avr. 2013 19:50, "Ru Vuott" > > a ?crit : > > > > > Hello, > > > > > > how to store the string saved in the mouse from an > > "external" text > > > directly to a string variable (I mean the highlighted > > text by mouse > > > operation and you can see by clicking on mouse wheel). > > > > > > Regards > > > vuott > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Precog is a next-generation analytics platform capable > > of advanced > > > analytics on semi-structured data. The platform > > includes APIs for building > > > apps and a phenomenal toolset for data science. > > Developers can use > > > our toolset for easy data analysis & visualization. > > Get a free account! > > > http://www2.precog.com/precogplatform/slashdotnewsletter > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > Precog is a next-generation analytics platform capable of > > advanced > > analytics on semi-structured data. The platform includes > > APIs for building > > apps and a phenomenal toolset for data science. Developers > > can use > > our toolset for easy data analysis & visualization. Get > > a free account! > > http://www2.precog.com/precogplatform/slashdotnewsletter > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From simonart.dominique at ...11... Sat Apr 13 20:37:37 2013 From: simonart.dominique at ...11... (Simonart Dominique) Date: Sat, 13 Apr 2013 20:37:37 +0200 Subject: [Gambas-user] How to read mouse wheel string In-Reply-To: References: <1365855798.34656.YahooMailClassic@...3064...> Message-ID: <5169A5F1.4080701@...11...> May be you have to make Clipboard.Copy() before to Paste? hth Simonart Le 13/04/2013 17:32, Fabien Bodard a ?crit : > I don't know... > Le 13 avr. 2013 14:24, "Ru Vuott" a ?crit : > >> Thank you Fabien, >> >> but if I want to use "clipboard.Paste()" Gambas function, after simply >> highlighted an external text, it doesn't work. >> It works, if I highlight the (external) text and I use ctrl+C function or >> "Copy" function from right button of mouse. >> >> I repeat: if I highlight an external text and after simply I use >> "clipboard.Paste()", my Gambas application doesn't get and doesn't show >> that text. >> >> >> >> >> --- Ven 12/4/13, Fabien Bodard ha scritto: >> >>> Da: Fabien Bodard >>> Oggetto: Re: [Gambas-user] How to read mouse wheel string >>> A: "mailing list for gambas users" >>> Data: Venerd? 12 Aprile 2013, 21:28 >>> http://gambasdoc.org/help/comp/gb.qt4/clipboard/paste?v3 >>> Le 12 avr. 2013 19:50, "Ru Vuott" >>> a ?crit : >>> >>>> Hello, >>>> >>>> how to store the string saved in the mouse from an >>> "external" text >>>> directly to a string variable (I mean the highlighted >>> text by mouse >>>> operation and you can see by clicking on mouse wheel). >>>> >>>> Regards >>>> vuott From bbruen at ...2308... Sat Apr 13 22:16:56 2013 From: bbruen at ...2308... (Bruce) Date: Sun, 14 Apr 2013 05:46:56 +0930 Subject: [Gambas-user] How to read mouse wheel string In-Reply-To: <1365855798.34656.YahooMailClassic@...3064...> References: <1365855798.34656.YahooMailClassic@...3064...> Message-ID: <1365884216.4911.24.camel@...2688...> On Sat, 2013-04-13 at 13:23 +0100, Ru Vuott wrote: > Thank you Fabien, > > but if I want to use "clipboard.Paste()" Gambas function, after simply highlighted an external text, it doesn't work. > It works, if I highlight the (external) text and I use ctrl+C function or "Copy" function from right button of mouse. > > I repeat: if I highlight an external text and after simply I use "clipboard.Paste()", my Gambas application doesn't get and doesn't show that text. > (Just to clarify something about your actual problem. If your user highlights text in some external window and then clicks the middle mouse button over a gambas textarea, does the text appear? If not then there is something wrong somewhere else, not in your gambas program.) You cannot get the highlighted text in gambas because the highlighted text is not in the desktop clipboard, it is only in the X-"clipboard"-buffer. qt4.clipboard only knows about the desktop clipboard. The solution will lie in getting the highlighted text into the desktop clipboard. There used to be some command line programs "xsel" and "xclip" that copied the X-buffer into the active desktop clipboard, but these seem to have disappeared and I know not what they were replaced by. So, if for example, you have a button you want to use to initiate the paste then Public Sub btnPasteXClip_Click() Dim sXClip as String Exec ["Whatever_has_replaced_xclip","etc"] sXClip=Clipboard.Paste End should work. cheers Bruce From vuott at ...325... Sun Apr 14 00:37:12 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 13 Apr 2013 23:37:12 +0100 (BST) Subject: [Gambas-user] How to read mouse wheel string In-Reply-To: <1365884216.4911.24.camel@...2688...> Message-ID: <1365892632.91060.YahooMailClassic@...3065...> Hello Bruce, > > (Just to clarify something about your actual problem. If > your user > highlights text in some external window and then clicks the > middle mouse > button over a gambas textarea, does the text appear?) > Yes, it does. No problem. > > You cannot get the highlighted text in gambas because the > highlighted > text is not in the desktop clipboard, it is only in the > X-"clipboard"-buffer.? qt4.clipboard only knows about > the desktop > clipboard. > > The solution will lie in getting the highlighted text into > the desktop > clipboard. > Ok. Thanks. I saw that simply by highlighting the text I cannot "transpose" the copy in gambas application. I saw if I have a text (e.g. "my text") in Gedit, and I copy it via ctrl+C or via Copy function of right button of the mouse, in Gambas console or TextArea I obtain this: GTKTEXTBUFFERCONTENTS-0001^@^@^@N my text But if I copy from LibreOffice (via ctrl+C or via Copy function of right button of the mouse) I obtain in Gambas application the "pure" text: my text And more, if I copy a simple text from a web page, I obtain the entire HTML tag line where is the text. Every charapter is separated by the ASCII value of zero. ??<^@s^@p^@a^@n^@ ^@c^@l^@a^@s^@s^@=^@"^@m^@e^@d^@i^@u^@m^@"^@ ^@s^@t^@y^@l^@e^@=^@"^@l^@i^@n^@e^@-^@h^@e^@i^@g^@h^@t^@:^@1^@.^@2^@3^@1^@"^@>^@N^@e^@k^@ ^@h^@a^@ ^@r^@i^@v^@e^@l^@a^@t^@o^@<^@/^@s^@p^@a^@n^@>^@ Regards vuott From vuott at ...325... Sun Apr 14 00:38:31 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 13 Apr 2013 23:38:31 +0100 (BST) Subject: [Gambas-user] How to read mouse wheel string In-Reply-To: <5169A5F1.4080701@...11...> Message-ID: <1365892711.83636.YahooMailClassic@...3065...> Yes, I know it. Thank you anyway, Dominique. Ciao vuott --- Sab 13/4/13, Simonart Dominique ha scritto: > Da: Simonart Dominique > Oggetto: Re: [Gambas-user] How to read mouse wheel string > A: gambas-user at lists.sourceforge.net > Data: Sabato 13 Aprile 2013, 20:37 > May be you have to make > Clipboard.Copy() before to Paste? > hth > Simonart > > Le 13/04/2013 17:32, Fabien Bodard a ?crit : > > I don't know... > > Le 13 avr. 2013 14:24, "Ru Vuott" > a ?crit : > > > >> Thank you Fabien, > >> > >> but if I want to use "clipboard.Paste()" Gambas > function, after simply > >> highlighted an external text, it doesn't work. > >> It works, if I highlight the (external) text and I > use ctrl+C function or > >> "Copy" function from right button of mouse. > >> > >> I repeat: if I highlight an external text and after > simply I use > >> "clipboard.Paste()", my Gambas application doesn't > get and doesn't show > >> that text. > >> > >> > >> > >> > >> --- Ven 12/4/13, Fabien Bodard > ha scritto: > >> > >>> Da: Fabien Bodard > >>> Oggetto: Re: [Gambas-user] How to read mouse > wheel string > >>> A: "mailing list for gambas users" > >>> Data: Venerd? 12 Aprile 2013, 21:28 > >>> http://gambasdoc.org/help/comp/gb.qt4/clipboard/paste?v3 > >>> Le 12 avr. 2013 19:50, "Ru Vuott" > >>> a ?crit : > >>> > >>>> Hello, > >>>> > >>>> how to store the string saved in the mouse > from an > >>> "external" text > >>>> directly to a string variable (I mean the > highlighted > >>> text by mouse > >>>> operation and you can see by clicking on > mouse wheel). > >>>> > >>>> Regards > >>>> vuott > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of > advanced > analytics on semi-structured data. The platform includes > APIs for building > apps and a phenomenal toolset for data science. Developers > can use > our toolset for easy data analysis & visualization. Get > a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Sun Apr 14 12:02:39 2013 From: ron at ...1740... (Ron) Date: Sun, 14 Apr 2013 12:02:39 +0200 Subject: [Gambas-user] RpcClient patch Message-ID: In gb.xml.rpc client code the RpcMethod_Read value is incorrectly filled. This results in error when displaying RpcClient variables, see screenshot. gambas/trunk/gb.xml/src/rpc/gb.xml.rpc/.src/RpcClient.class: BAD: Function RpcMethod_Read() As RpcFunction Return RpcFunction End GOOD/BETTER: Function RpcMethod_Read() As RpcFunction Return Method End Regards, Ron_2nd. -------------- next part -------------- A non-text attachment was scrubbed... Name: Type Mismatch.png Type: image/png Size: 24122 bytes Desc: not available URL: From gambas at ...2524... Sun Apr 14 14:25:04 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 14 Apr 2013 12:25:04 +0000 Subject: [Gambas-user] Issue 421 in gambas: gb.xml.rpc doesn't work correctly with gb.libxml Message-ID: <0-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 421 by r... at ...1740...: gb.xml.rpc doesn't work correctly with gb.libxml http://code.google.com/p/gambas/issues/detail?id=421 1) Describe the problem. When using gb.xml.rpc together with gb.libxml all client request fail with error: 'Reached end of file' at 'RpcClient.EvalReply.168' 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5619 [System] OperatingSystem=Linux Kernel=3.8.0-17-generic Architecture=x86_64 Distribution=Ubuntu Raring Ringtail (development branch) Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7954M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 Curl=libcurl.so.4.3.0 GTK+=libgtk-x11-2.0.so.0.2400.17 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 3) Provide a little project that reproduces the bug or the crash. Attached. 4) If your project needs a database, try to provide it, or part of it. Nope. 5) Explain clearly how to reproduce the bug or the crash. Run attached project, it will start an xmlrpc server and do a system.listMethods client call. See the output in cli. Disable component gb.libxml and enable gb.xml in Project properties and it works ok. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: xmlrpc-libxml-0.0.1.tar.gz 5.4 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Apr 14 14:27:54 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 14 Apr 2013 12:27:54 +0000 Subject: [Gambas-user] Issue 401 in gambas: |Project|Make|Source Archive thinks it hasn't created the directory In-Reply-To: <1-6813199134517018827-8182799626018071353-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-8182799626018071353-gambas=googlecode.com@...2524...> <0-6813199134517018827-8182799626018071353-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-8182799626018071353-gambas=googlecode.com@...2524...> Comment #2 on issue 401 by adamn... at ...626...: |Project|Make|Source Archive thinks it hasn't created the directory http://code.google.com/p/gambas/issues/detail?id=401 OK, it looks like this was a local error. It appears to have been an LXDE issue that has since been resolved. The conflict with ctl+alt+A still remains but I believe that it too is occassioned by an LXDE/Openbox shortcut. So close this "Will not fix" B -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Apr 14 14:34:25 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 14 Apr 2013 12:34:25 +0000 Subject: [Gambas-user] Issue 96 in gambas: Importing a gambas2 form does not convert the form to gambas3 In-Reply-To: <7-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> <0-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Comment #8 on issue 96 by adamn... at ...626...: Importing a gambas2 form does not convert the form to gambas3 http://code.google.com/p/gambas/issues/detail?id=96 Benoit, This is fixed and should be closed. B -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Sun Apr 14 23:08:39 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 14 Apr 2013 23:08:39 +0200 Subject: [Gambas-user] Benoit can't be there Message-ID: Hi to all, I've a message from Benoit Minisini. He have a problem on its internet access and can't work on gambas nor help for one or two week. Regards, -- Fabien Bodard From gambas at ...2524... Mon Apr 15 21:11:20 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 15 Apr 2013 19:11:20 +0000 Subject: [Gambas-user] Issue 422 in gambas: Menus dissapear if you open them without selecting an item, except last one. Message-ID: <0-6813199134517018827-8947448910894638677-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 422 by r... at ...1740...: Menus dissapear if you open them without selecting an item, except last one. http://code.google.com/p/gambas/issues/detail?id=422 1) Describe the problem. I have noticed a strange behavior in Gambas IDE and all projects I make with it. When you hover over an menu so it opens and you don't select an item from it, next time you hover over or click on it it's gone/doesn't open anymore. Except for the last menu(s), they keep working... 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: 5619 [System] OperatingSystem=Linux Kernel=3.8.0-17-generic Architecture=x86_64 Distribution=Ubuntu Raring Ringtail (development branch) Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7954M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 Curl=libcurl.so.4.3.0 GTK+=libgtk-x11-2.0.so.0.2400.17 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4. 3) Provide a little project that reproduces the bug or the crash. Attached. 4) If your project needs a database, try to provide it, or part of it. Nope. 5) Explain clearly how to reproduce the bug or the crash. See 1) 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: MenusGone-0.0.1.tar.gz 4.7 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Apr 16 08:06:29 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 16 Apr 2013 06:06:29 +0000 Subject: [Gambas-user] Issue 423 in gambas: Menu in form attached to workspace not visible Message-ID: <0-6813199134517018827-12100795197966942937-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.4.1 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 423 by isaf... at ...626...: Menu in form attached to workspace not visible http://code.google.com/p/gambas/issues/detail?id=423 1) Describe the problem. I have a form containing workspace. I have second form with some menu. when I attach second form to the workspace then menu in second form is not displayed while running application. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [System] OperatingSystem=Linux Kernel=3.5.0-27-generic Architecture=x86 Distribution=Ubuntu 12.04.2 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=1946M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.2 SDL=libSDL-1.2.so.0.11.3 3) Provide a little project that reproduces the bug or the crash. Attached project sample 4) If your project needs a database, try to provide it, or part of it. No 5) Explain clearly how to reproduce the bug or the crash. Start a new project. Add a form and put menu (to open second form). Put some menu in second form also. Add workspace control in first form and now change opening of second form by adding second form to workspace. Now when you open second form you find menu in second form. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: aa.tar.gz 5.6 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From casalva at ...324... Thu Apr 18 09:29:07 2013 From: casalva at ...324... (Carlo Salvagno) Date: Thu, 18 Apr 2013 09:29:07 +0200 Subject: [Gambas-user] Gambas in Mac OSX System Message-ID: <7D870EBC-BD72-4BC7-BA5C-AB8A018A5767@...324...> Good morning. I use Gambas in Ubuntu environment, but can I do so in Mac OSX 10.7.5? I have not found answers so far. Thanks. Carlo Salvagno casalva at ...324... -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f Sponsor: Vuoi fare un regalo davvero originale? Su MisterCupido.com troverai centinaia di IDEE REGALO per tutte le tasche! Consegne in tutta Italia in soli 2-3 giorni Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=12387&d=18-4 From nemh at ...2007... Thu Apr 18 09:58:36 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Thu, 18 Apr 2013 09:58:36 +0200 Subject: [Gambas-user] Gambas in Mac OSX System In-Reply-To: <7D870EBC-BD72-4BC7-BA5C-AB8A018A5767@...324...> References: <7D870EBC-BD72-4BC7-BA5C-AB8A018A5767@...324...> Message-ID: <20130418095836.07f7e912@...3118...> http://gambasdoc.org/help/doc/distro?en&view > Good morning. > I use Gambas in Ubuntu environment, but can I do so in Mac OSX > 10.7.5? I have not found answers so far. > Thanks. > > Carlo Salvagno > casalva at ...324... > > > > > > -- > Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e > SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f > Sponsor: > Vuoi fare un regalo davvero originale? Su MisterCupido.com troverai > centinaia di IDEE REGALO per tutte le tasche! Consegne in tutta > Italia in soli 2-3 giorni Clicca qui: > http://adv.email.it/cgi-bin/foclick.cgi?mid=12387&d=18-4 > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for > building apps and a phenomenal toolset for data science. Developers > can use our toolset for easy data analysis & visualization. Get a > free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ Gambas-user mailing > list Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Thu Apr 18 15:17:12 2013 From: willy at ...2734... (Willy Raets) Date: Thu, 18 Apr 2013 15:17:12 +0200 Subject: [Gambas-user] Smtp property Alternative - How to use? Message-ID: <1366291032.2487.7.camel@...3024...> Does someone know how to use SmtpClient.Alternative Documentation says: -------------- PROPERTY Alternative AS Boolean Returns or sets if mail attachments are actually different alternatives of the same data. For example, a mail encoded in HTML, in UTF-8, or only in ASCII. By default, this property is FALSE. You must define it before using the Add method. -------------- I have an attachment in plain text with tabs used. If Windows mail clients receive the attachment the tabs are not shown as should be (data is placed much further apart in Windows where the tabs are). I suppose this has to do with the original attachment using UTF-8 and Windows clients using ASCII. Could Alternative be the solution I am looking for? If so, I don't understand how to implement this. How do I define this. An example would help -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...2524... Fri Apr 19 18:28:23 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 19 Apr 2013 16:28:23 +0000 Subject: [Gambas-user] Issue 424 in gambas: whole Gambas IDE shutdown trying to make an SQL Query in the SQL-Frame by using SQLite3 Message-ID: <0-6813199134517018827-1988574305175115530-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.4.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-XFCE Arch-X86 Dist-Ubuntu New issue 424 by Otchi... at ...626...: whole Gambas IDE shutdown trying to make an SQL Query in the SQL-Frame by using SQLite3 http://code.google.com/p/gambas/issues/detail?id=424 1) Just opening the SQLQuery Window and by clicking the first letter, like "S" for select..... - the whole IDE crashes and shutdown. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: Gambas 3.4.1 Revision: just downloaded as PPA Operating system: Linux Distribution: Ubuntu 11.10 Architecture: x86_64 GUI component: QT3 / QT4 / GTK+ / using XUbuntu Gnome like Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. 4) SQLite 3.0 5) Just opend a SQLite-DB open the SQL-Query-Window and only typing the first letter like "s" for the "select" and it shutdown immediately 6) BUT I LIKE GAMBAS - I am really happy to find it :) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Sat Apr 20 03:13:15 2013 From: bbruen at ...2308... (Bruce) Date: Sat, 20 Apr 2013 10:43:15 +0930 Subject: [Gambas-user] How to stop "Greedy" constructors consuming parameters Message-ID: <1366420395.29273.21.camel@...2688...> I have a deep hierarchy of classes, seven levels of specialisation so far and likely to grow. There are 64 classes in the hierarchy, which is very strongly designed. When instantiating any of these objects, the exact type to be created is unknown, so the root class has a static "factory method" to decide and create the correct object in the heirarchy. All leaf classes (obviously) represent a real object in it's own right. However, some of the intermediate classes are also real objects. All of the classes have constructors that have two parameters, a string array ("Source") and a string ("Name") i.e. Public Sub _new(Source as String[], Name as String) The intent of the constructor is to parse the Source array and set the object property values accordingly. This is my problem. Each of the constructors "consumes" some of the parameters passed according to their specific signature. So to create an object three levels down the hierarchy, I need to call the constructor with 4 dummy and the two real parameters, i.e. hObj = New Level3Class(Null,Null,Null,Null,Source,Name) so the two real parameters are available to the "real" constructor in Level3Class. At level 4, 6 dummy and the 2 real parameters, i.e. hObj = New Level4Class(Null,Null,Null,Null,Null,Null,Source,Name) This is becoming very painful. Is there any way to "turn off" the way constructors consume parameters? From rterry at ...1823... Sat Apr 20 04:25:25 2013 From: rterry at ...1823... (Richard Terry) Date: Sat, 20 Apr 2013 12:25:25 +1000 Subject: [Gambas-user] Columnview columns resizing question Message-ID: <5171FC95.3050606@...1823...> Hi List, I wrote my gambas app on an kunbuntu 9 machine which I've used for several years, though kept up with the gambas3 updates. I've installed my software on some kubuntu 10, 11 machines in our office, no problems. My other laptop runs kubuntu 12 Question: on kubuntu 12 the columnview control does not resize its columns to the content of the columns, which it does on the other distro's. Has anyone else noticed this? and is there a work-around aside from tediously setting the column widths manually on the basis of the widest content of a particuliar column? REgards richard From ihaywood at ...1979... Sat Apr 20 07:08:10 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Sat, 20 Apr 2013 15:08:10 +1000 Subject: [Gambas-user] How to stop "Greedy" constructors consuming parameters In-Reply-To: <1366420395.29273.21.camel@...2688...> References: <1366420395.29273.21.camel@...2688...> Message-ID: On Sat, Apr 20, 2013 at 11:13 AM, Bruce wrote: > I have a deep hierarchy of classes, seven levels of specialisation so > far and likely to grow. wow. > At level 4, 6 dummy and the 2 real parameters, i.e. > hObj = New > Level4Class(Null,Null,Null,Null,Null,Null,Source,Name) > > This is becoming very painful. > > Is there any way to "turn off" the way constructors consume parameters? It's a core language design decision, so I doubt it. Personally instead of using the "official" constructor _new I often have a separate Init( ) function which is called immediately after instantiation foo = New MyClass() foo.Init(someParameter) Messy, but because .Init( ) is an "ordinary" function in the eyes of the the Gambas compiler, ancestor classes to not "consume" parameters in the same way, plus it is only overridden in the hierarchy when required. Unfortunately Gambas doesn't allow any change in function signatures, so if you wanted an extra parameter in a descendant constructor you would have to have an "Init2" method which then calls "Me.Init()" Ian From bbruen at ...2308... Sat Apr 20 09:51:46 2013 From: bbruen at ...2308... (Bruce) Date: Sat, 20 Apr 2013 17:21:46 +0930 Subject: [Gambas-user] How to stop "Greedy" constructors consuming parameters In-Reply-To: References: <1366420395.29273.21.camel@...2688...> Message-ID: <1366444306.29273.29.camel@...2688...> On Sat, 2013-04-20 at 15:08 +1000, Ian Haywood wrote: > On Sat, Apr 20, 2013 at 11:13 AM, Bruce wrote: > > I have a deep hierarchy of classes, seven levels of specialisation so > > far and likely to grow. > wow. > > > At level 4, 6 dummy and the 2 real parameters, i.e. > > hObj = New > > Level4Class(Null,Null,Null,Null,Null,Null,Source,Name) > > > > This is becoming very painful. > > > > Is there any way to "turn off" the way constructors consume parameters? > It's a core language design decision, so I doubt it. > Personally instead of using the "official" constructor _new I often > have a separate > Init( ) function which is called immediately after instantiation > > foo = New MyClass() > foo.Init(someParameter) > > Messy, but because .Init( ) is an "ordinary" function in the eyes of > the the Gambas compiler, ancestor > classes to not "consume" parameters in the same way, plus it is only > overridden in the hierarchy when required. That's what I was afraid of. :-( But, ces't la vie. > > Unfortunately Gambas doesn't allow any change in function signatures, > so if you wanted an extra parameter in a descendant > constructor you would have to have an "Init2" method which then calls > "Me.Init()" > (Sshhh! There is a way around this, a 5 line change to gbx_class.c can remove/disable the signature checking. We have been running it for quite some time (August, 2011) with none of the reported "failures" in over 30 client sites. I can send you the diff privately if you want it, but remember, it is very unsupported by Benoit. It all started here: http://code.google.com/p/gambas/issues/detail?id=78 cheers Bruce From bill-lancaster at ...2231... Sat Apr 20 11:14:15 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 20 Apr 2013 02:14:15 -0700 (PDT) Subject: [Gambas-user] Form open - simple question Message-ID: <1366449255473-41728.post@...3046...> I want to open a form and immediatly display the progress of a process. If I do it in the form_open event the form isn't displayed untill the process is complete. I can't find an event for the form that will do this simple thing! Any ideas? -- View this message in context: http://gambas.8142.n7.nabble.com/Form-open-simple-question-tp41728.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Sat Apr 20 11:21:26 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 20 Apr 2013 02:21:26 -0700 (PDT) Subject: [Gambas-user] simple answer In-Reply-To: <1366449255473-41728.post@...3046...> References: <1366449255473-41728.post@...3046...> Message-ID: <1366449686971-41729.post@...3046...> Simple answer! form_open form.show run process end -- View this message in context: http://gambas.8142.n7.nabble.com/Form-open-simple-question-tp41728p41729.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sat Apr 20 11:28:40 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 20 Apr 2013 11:28:40 +0200 Subject: [Gambas-user] Columnview columns resizing question In-Reply-To: <5171FC95.3050606@...1823...> References: <5171FC95.3050606@...1823...> Message-ID: the last gridview is writted in gambas. So the question is know if on the older version the gridview you use is before or after the change between native and gb version of gridview ? 2013/4/20 Richard Terry > Hi List, > > I wrote my gambas app on an kunbuntu 9 machine which I've used for > several years, though kept up with the gambas3 updates. > > I've installed my software on some kubuntu 10, 11 machines in our > office, no problems. > > My other laptop runs kubuntu 12 > > Question: on kubuntu 12 the columnview control does not resize its > columns to the content of the columns, which it does on the other > distro's. > > Has anyone else noticed this? and is there a work-around aside from > tediously setting the column widths manually on the basis of the widest > content of a particuliar column? > > REgards > > > richard > > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Sat Apr 20 11:28:47 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 20 Apr 2013 11:28:47 +0200 Subject: [Gambas-user] simple answer In-Reply-To: <1366449686971-41729.post@...3046...> References: <1366449255473-41728.post@...3046...> <1366449686971-41729.post@...3046...> Message-ID: yes you must to enforce the form showing. or you can us the form_show event too, maybe 2013/4/20 bill-lancaster > Simple answer! > > form_open > form.show > run process > end > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Form-open-simple-question-tp41728p41729.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Sat Apr 20 11:36:55 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 20 Apr 2013 11:36:55 +0200 Subject: [Gambas-user] How to stop "Greedy" constructors consuming parameters In-Reply-To: <1366444306.29273.29.camel@...2688...> References: <1366420395.29273.21.camel@...2688...> <1366444306.29273.29.camel@...2688...> Message-ID: The check is not done for the "_new" special method, as the inheritance of _new is special (see "inheritance and constructor" in the "Gambas object model" documentation on the wiki). 2013/4/20 Bruce > On Sat, 2013-04-20 at 15:08 +1000, Ian Haywood wrote: > > On Sat, Apr 20, 2013 at 11:13 AM, Bruce wrote: > > > I have a deep hierarchy of classes, seven levels of specialisation so > > > far and likely to grow. > > wow. > > > > > At level 4, 6 dummy and the 2 real parameters, i.e. > > > hObj = New > > > Level4Class(Null,Null,Null,Null,Null,Null,Source,Name) > > > > > > This is becoming very painful. > > > > > > Is there any way to "turn off" the way constructors consume parameters? > > It's a core language design decision, so I doubt it. > > Personally instead of using the "official" constructor _new I often > > have a separate > > Init( ) function which is called immediately after instantiation > > > > foo = New MyClass() > > foo.Init(someParameter) > > > > Messy, but because .Init( ) is an "ordinary" function in the eyes of > > the the Gambas compiler, ancestor > > classes to not "consume" parameters in the same way, plus it is only > > overridden in the hierarchy when required. > > That's what I was afraid of. :-( But, ces't la vie. > > > > Unfortunately Gambas doesn't allow any change in function signatures, > > so if you wanted an extra parameter in a descendant > > constructor you would have to have an "Init2" method which then calls > > "Me.Init()" > > > (Sshhh! There is a way around this, a 5 line change to gbx_class.c can > remove/disable the signature checking. We have been running it for > quite some time (August, 2011) with none of the reported "failures" in > over 30 client sites. I can send you the diff privately if you want it, > but remember, it is very unsupported by Benoit. It all started here: > http://code.google.com/p/gambas/issues/detail?id=78 > > cheers > Bruce > > > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From bbruen at ...2308... Sat Apr 20 11:44:07 2013 From: bbruen at ...2308... (Bruce) Date: Sat, 20 Apr 2013 19:14:07 +0930 Subject: [Gambas-user] Form open - simple question In-Reply-To: <1366449255473-41728.post@...3046...> References: <1366449255473-41728.post@...3046...> Message-ID: <1366451047.29273.42.camel@...2688...> On Sat, 2013-04-20 at 02:14 -0700, bill-lancaster wrote: > I want to open a form and immediatly display the progress of a process. > > If I do it in the form_open event the form isn't displayed untill the > process is complete. > > I can't find an event for the form that will do this simple thing! > > Any ideas? Bill, I use "pop-up" progress bar forms very frequently, as I am usually working with hundreds of text files that need to be loaded, parsed and have objects created accordingly. Typically I use a module to do the actual load/parse/instantiate and a "progress" form with a ProgressBar to show how far we have got, so far. I believe that the "trick" that you are looking for is the WAIT command. Here's some code from a hack project that uses this approach, hope you can decipher it. I have chucked some !!! notes in to help. cheers Bruce Private Sub LoadPAKSet() Dim sDir As String Dim aPaths As New String[] Dim sObjPath As String Dim hDATFile As DATFile Dim aSource As String[] Dim wkObj As DATObject Dim iObjTotal As Integer Dim idx As Integer Dim aLog As New String[] Dim fProg As FLoadProgress Dim iObjCount As Integer Dim iObjNull As Integer sDir = $PAKDir LoadDirTree(sDir, aPaths) iObjTotal = aPaths.Max idx = 0 fProg = New FLoadProgress(iObjTotal) !!! START HERE fProg.Show !!! OPEN THE PROG BAR FORM For Each sObjPath In aPaths Inc idx Application.WriteLog("Reading " & sObjPath) ' SPECIAL CASES If sObjPath Ends "pak128-program_texts.dat" Then Continue ' Ign hDATFile = New DATFile hDATFile.LoadFile(sObjPath) For Each aSource In hDATFile.SourceObjects Application.WriteLog("Loading " & aSource[0]) wkObj = DATGenericBuilder.Create(aSource, sObjPath) If wkObj Then aLog.Add(Subst("[&1/&2 (&3%) Loaded :&4", idx, iObjTotal, Round(idx / iObjTotal * 100, 0), wkObj.Name)) If Not wkObj.Key Then Application.WriteLog("ERR (Level 0) Object parser incomplete for " & hDATFile.SourcePath) Stop Endif $PAKset.Add(wkObj, wkObj.Key) Inc iObjCount Else Inc iObjNull Endif Next fProg.Loaded = idx !!! HERE WE UPDATE THE PROGRESS BAR Next fProg.Close !!! FINISHED WITH THE PROG BAR FORM Print Subst("&1 individual objects loaded, &2 nulls returned", iObjCount, iObjNull) LoadTreeView Catch Error Subst("&1\nERR: &2 (&3)\n&4\n&1\n", String$(40, "-"), Error.Text, Error.Code, Error.Backtrace.Join("\n")) Stop End And the FLoadProgress class looks like this (the form has a textbox (? maybe a textlabel? I can't remember) and a progress bar. ' Gambas class file '' '================================================================= '==== EVENT Declarations ==== '================================================================= '================================================================= '==== Property Declarations ==== '================================================================= Property Loaded As Integer '================================================================= '==== Local Property Variables ==== '================================================================= '================================================================= '==== Local Variables ==== '================================================================= Private $TotalToLoad As Integer '================================================================= '==== Special Methods ==== '================================================================= Public Sub _new(TotCount As Integer) '' Constructor $TotalToLoad = TotCount Label1.Text = Subst(Label1.Text, $TotalToLoad) End '================================================================= '==== Public Methods ==== '================================================================= '================================================================= '==== Private Methods ==== '================================================================= '================================================================= '==== Property Accessors ==== '================================================================= '================================================================= '==== Event Handlers ==== '================================================================= Public Sub Form_Open() Settings.Read(Me) pbarLoad.Value = 0 End Public Sub Form_Close() Settings.Write(Me) End Private Function Loaded_Read() As Integer Return -1 End Private Sub Loaded_Write(Value As Integer) pbarLoad.Value = Value / $TotalToLoad Wait End Hope that helps and doesn't confuse. (I am too busy to distill a succinct reply. From bill-lancaster at ...2231... Sat Apr 20 11:57:44 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 20 Apr 2013 02:57:44 -0700 (PDT) Subject: [Gambas-user] Simple In-Reply-To: References: <1366449255473-41728.post@...3046...> <1366449686971-41729.post@...3046...> Message-ID: <1366451864067-41734.post@...3046...> Thanks Fabien & Bruce for the ideas -- View this message in context: http://gambas.8142.n7.nabble.com/Form-open-simple-question-tp41728p41734.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Sat Apr 20 13:18:41 2013 From: bbruen at ...2308... (Bruce) Date: Sat, 20 Apr 2013 20:48:41 +0930 Subject: [Gambas-user] How to stop "Greedy" constructors consuming parameters In-Reply-To: References: <1366420395.29273.21.camel@...2688...> <1366444306.29273.29.camel@...2688...> Message-ID: <1366456721.29273.81.camel@...2688...> On Sat, 2013-04-20 at 11:36 +0200, Fabien Bodard wrote: > The check is not done for the "_new" special method, as the inheritance of > _new is special (see "inheritance and constructor" in the "Gambas object > model" documentation on the wiki). Yep, I know that, but Ian's comment was about overrides for "normal" methods. Which still for the sake of sanity I could never understand the need for a total ban on signature changes. I can appreciate that the return type should to some extent be "prevented" from overrides, although even that is questionable in cases like abstract factories. As I said at the time, I could not see, nor have experienced a situation where gambas has failed where a method is overridden in a child class that has a requirement for a different signature. In particular, where an ancestral non-instantiable root class has no implementation of some method "XXXX" and the root class is abstract, it is fairly easy to specify a method in that class that must be overridden. In other words a stub that looks something like this Public Sub XXXX(...) Error.Raise(Subst("Incomplete override &1", Object.Class(Me).Name)) End So now I have declared a method in the root class, which MUST be overridden in the instantiable child classes, by some method which may require {0,1,2,... many} parameters. As of the fix for Issue 78 this doesn't work "nicely", because every override method in a child class MUST use the signature "Public Sub XXXX(...)" The solution I "suggested" to Ian is based on optionally compiling out the signature check in gbx-class.c which as I said has not failed for about 2 years. I would really love to see an example of where this approach could fail because I am still running and promulgating a modified version of Gambas locally and to all the clients that has this patch in it. If this sounds like a bit of a rave then I apologise, but "for the sake of sanity"... Anyway, so much for the coffee break, back to rewriting the 64 classes to use Ian's "_new()/Init()" approach. Grrrr! cheers Bruce From jussi.lahtinen at ...626... Sat Apr 20 17:21:24 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 20 Apr 2013 18:21:24 +0300 Subject: [Gambas-user] Form open - simple question In-Reply-To: <1366449255473-41728.post@...3046...> References: <1366449255473-41728.post@...3046...> Message-ID: Use code like this to show your form: Dim hForm As New MyForm hForm.Show() And your form should have method to show the progress, example: Do hForm.RefreshProgress() Loop Until ProgressIsReady = True Jussi On Sat, Apr 20, 2013 at 12:14 PM, bill-lancaster wrote: > I want to open a form and immediatly display the progress of a process. > > If I do it in the form_open event the form isn't displayed untill the > process is complete. > > I can't find an event for the form that will do this simple thing! > > Any ideas? > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Form-open-simple-question-tp41728.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Apr 20 17:23:38 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 20 Apr 2013 18:23:38 +0300 Subject: [Gambas-user] simple answer In-Reply-To: <1366449686971-41729.post@...3046...> References: <1366449255473-41728.post@...3046...> <1366449686971-41729.post@...3046...> Message-ID: This method is unreliable. I think form.show gives just some CPU time for GUI, but not necessarily enough. I tested your code with Xubuntu 12.04, and it didn't work. See my reply to the original thread. Jussi On Sat, Apr 20, 2013 at 12:21 PM, bill-lancaster wrote: > Simple answer! > > form_open > form.show > run process > end > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Form-open-simple-question-tp41728p41729.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Apr 20 17:28:00 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 20 Apr 2013 18:28:00 +0300 Subject: [Gambas-user] Form open - simple question In-Reply-To: References: <1366449255473-41728.post@...3046...> Message-ID: Or even better put timer to your form. Start the timer in Form_Open(), and in every _Timer() event refresh the progress bar (etc). Jussi On Sat, Apr 20, 2013 at 6:21 PM, Jussi Lahtinen wrote: > Use code like this to show your form: > > Dim hForm As New MyForm > > hForm.Show() > > And your form should have method to show the progress, example: > > Do > hForm.RefreshProgress() > Loop Until ProgressIsReady = True > > Jussi > > > > > On Sat, Apr 20, 2013 at 12:14 PM, bill-lancaster < > bill-lancaster at ...2231...> wrote: > >> I want to open a form and immediatly display the progress of a process. >> >> If I do it in the form_open event the form isn't displayed untill the >> process is complete. >> >> I can't find an event for the form that will do this simple thing! >> >> Any ideas? >> >> >> >> -- >> View this message in context: >> http://gambas.8142.n7.nabble.com/Form-open-simple-question-tp41728.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Precog is a next-generation analytics platform capable of advanced >> analytics on semi-structured data. The platform includes APIs for building >> apps and a phenomenal toolset for data science. Developers can use >> our toolset for easy data analysis & visualization. Get a free account! >> http://www2.precog.com/precogplatform/slashdotnewsletter >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From jussi.lahtinen at ...626... Sat Apr 20 17:39:06 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 20 Apr 2013 18:39:06 +0300 Subject: [Gambas-user] Form open - simple question In-Reply-To: References: <1366449255473-41728.post@...3046...> Message-ID: Public Sub Form_Open() Timer1.Start() Timer2.Start() End Public Sub Timer1_Timer() Timer1.Stop '' Here start your progress. End Public Sub Timer2_Timer() '' Here refresh progressbar. End Jussi On Sat, Apr 20, 2013 at 6:28 PM, Jussi Lahtinen wrote: > Or even better put timer to your form. > Start the timer in Form_Open(), and in every _Timer() event refresh the > progress bar (etc). > > Jussi > > > On Sat, Apr 20, 2013 at 6:21 PM, Jussi Lahtinen wrote: > >> Use code like this to show your form: >> >> Dim hForm As New MyForm >> >> hForm.Show() >> >> And your form should have method to show the progress, example: >> >> Do >> hForm.RefreshProgress() >> Loop Until ProgressIsReady = True >> >> Jussi >> >> >> >> >> On Sat, Apr 20, 2013 at 12:14 PM, bill-lancaster < >> bill-lancaster at ...2231...> wrote: >> >>> I want to open a form and immediatly display the progress of a process. >>> >>> If I do it in the form_open event the form isn't displayed untill the >>> process is complete. >>> >>> I can't find an event for the form that will do this simple thing! >>> >>> Any ideas? >>> >>> >>> >>> -- >>> View this message in context: >>> http://gambas.8142.n7.nabble.com/Form-open-simple-question-tp41728.html >>> Sent from the gambas-user mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> Precog is a next-generation analytics platform capable of advanced >>> analytics on semi-structured data. The platform includes APIs for >>> building >>> apps and a phenomenal toolset for data science. Developers can use >>> our toolset for easy data analysis & visualization. Get a free account! >>> http://www2.precog.com/precogplatform/slashdotnewsletter >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > From rod.pmaia at ...626... Sun Apr 21 15:03:13 2013 From: rod.pmaia at ...626... (Rodrigo Maia) Date: Sun, 21 Apr 2013 11:03:13 -0200 Subject: [Gambas-user] Gambas3 not start Message-ID: <3400938.IoJ4cxuIMc@...3126...> Good Morning! Gambas3 not start and returne this is mensagem!!! How to resolve? gbr3: unable to load component: gb.form.stock *Rodrigo Maia - TI Tecnico* email: */rod.pmaia at ...626.../* msn: */rodrigo.pmaia at ...67.../* skype: */rodpmaia/* facebook: */ropdmaia/* fone: */9888188989/* fone: */9881533119/* fone: */9884536069/* From linuxos at ...1896... Sun Apr 21 16:36:39 2013 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 21 Apr 2013 16:36:39 +0200 Subject: [Gambas-user] Gambas3 not start In-Reply-To: <3400938.IoJ4cxuIMc@...3126...> References: <3400938.IoJ4cxuIMc@...3126...> Message-ID: Hello, You need to give the Linux distribution, from where you had install Gambas (package, souces, etc...), and how you start Gambas3 (from Desktop menu or terminal) ? Without these informations we can't help you ? Cordialement, Olivier Cruilles Mail: linuxos at ...1896... Le 21 avr. 2013 ? 15:03, Rodrigo Maia a ?crit : > Good Morning! > > Gambas3 not start and returne this is mensagem!!! How > to resolve? > gbr3: unable to load component: gb.form.stock > > > *Rodrigo Maia - TI Tecnico* > email: */rod.pmaia at ...626.../* > msn: */rodrigo.pmaia at ...67.../* > skype: */rodpmaia/* > facebook: */ropdmaia/* > fone: */9888188989/* > fone: */9881533119/* > fone: */9884536069/* > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ea7dfh at ...2382... Sun Apr 21 16:42:00 2013 From: ea7dfh at ...2382... (Jesus) Date: Sun, 21 Apr 2013 16:42:00 +0200 Subject: [Gambas-user] Gambas3 not start In-Reply-To: <3400938.IoJ4cxuIMc@...3126...> References: <3400938.IoJ4cxuIMc@...3126...> Message-ID: <5173FAB8.3050203@...2382...> El 21/04/13 15:03, Rodrigo Maia escribi?: > Good Morning! > > Gambas3 not start and returne this is mensagem!!! How > to resolve? > gbr3: unable to load component: gb.form.stock > Well, I don't want to be kind of harsh, but nobody here are diviners ;-) Please, next time provide more details about your problem, as Linux distribution you are using, how gambas was installed (e.g. installing from your distro repository or by compiling source code), version of gambas, etc Anyway, it sounds like some components are missing likely because a bad installation or an old version of gambas. Best regards -- Jesus Guardon From rod.pmaia at ...626... Sun Apr 21 16:15:13 2013 From: rod.pmaia at ...626... (Rodrigo Maia) Date: Sun, 21 Apr 2013 12:15:13 -0200 Subject: [Gambas-user] Gambas3 not start In-Reply-To: References: <3400938.IoJ4cxuIMc@...3126...> Message-ID: <5100643.vvOtM7st0t@...3126...> Em dom 21 abr 2013, ?s 16:36:39, Olivier Cruilles escreveu: > Hello, > > You need to give the Linux distribution, from where you had install Gambas > (package, souces, etc...), and how you start Gambas3 (from Desktop menu or > terminal) ? > > Without these informations we can't help you ? > > Cordialement, > > Olivier Cruilles > Mail: linuxos at ...1896... > > Le 21 avr. 2013 ? 15:03, Rodrigo Maia a ?crit : > > Good Morning! > > > > Gambas3 not start and returne this is mensagem!!! How > > > > to resolve? > > > > gbr3: unable to load component: gb.form.stock > > > > *Rodrigo Maia - TI Tecnico* > > email: */rod.pmaia at ...626.../* > > msn: */rodrigo.pmaia at ...67.../* > > skype: */rodpmaia/* > > facebook: */ropdmaia/* > > fone: */9888188989/* > > fone: */9881533119/* > > fone: */9884536069/* > > -------------------------------------------------------------------------- > > ---- Precog is a next-generation analytics platform capable of advanced > > analytics on semi-structured data. The platform includes APIs for > > building apps and a phenomenal toolset for data science. Developers can > > use our toolset for easy data analysis & visualization. Get a free > > account! http://www2.precog.com/precogplatform/slashdotnewsletter > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ---------------------------------------------------------------------------- > -- Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use our > toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user GNU/Fedora Linux AMD64 install from repository using: *yum install gambas3* starting from console $: *gambas3 *or Menu Applications --- *Rodrigo Maia - TI Tecnico* email: */rod.pmaia at ...626.../* msn: */rodrigo.pmaia at ...67.../* skype: */rodpmaia/* facebook: */ropdmaia/* fone: */9888188989/* fone: */9881533119/* fone: */9884536069/* From karl.reinl at ...9... Sun Apr 21 18:00:32 2013 From: karl.reinl at ...9... (Karl Reinl) Date: Sun, 21 Apr 2013 18:00:32 +0200 Subject: [Gambas-user] once upon a time Message-ID: <1366560032.3182.35.camel@...40...> Salut, I looked at gambas.sourceforge.net for the lib lists, to compile gambas2 and/or gambas3 from scratch, but couldn't find them. Somebody could point me the way . Or missed I something. -- Amicalement Charlie From gambas at ...2524... Sun Apr 21 18:40:13 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 21 Apr 2013 16:40:13 +0000 Subject: [Gambas-user] Issue 425 in gambas: installation error lastest gambas trunk or branch 3.4: on raspi: during execution of reconf-all: Compilation failed in require at /usr/share/perl/5.14/Thread/Queue.pm line 22 Message-ID: <0-6813199134517018827-11017171769069067251-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 425 by jm_... at ...67...: installation error lastest gambas trunk or branch 3.4: on raspi: during execution of reconf-all: Compilation failed in require at /usr/share/perl/5.14/Thread/Queue.pm line 22 http://code.google.com/p/gambas/issues/detail?id=425 I'm trying to install gambas 3.4 or trunk on my raspi (running raspbian wheezy with latest kernels) 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK or BRANCHES/2.0 or 2.22.0 Operating system: Linux Distribution: respbian Architecture: ARM fault during installation after executing command: reconf-all pi at ...2889... ~/install/gambas/3.4 $ ./reconf-all && ./configure -C libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `/usr/share/aclocal/libtool.m4' libtoolize: `/usr/share/aclocal/ltoptions.m4' libtoolize: `/usr/share/aclocal/ltversion.m4' libtoolize: `/usr/share/aclocal/ltsugar.m4' libtoolize: `/usr/share/aclocal/lt~obsolete.m4' libtoolize: Remember to add `LT_INIT' to configure.ac. libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: adding subdirectory main to autoreconf autoreconf: Entering directory `main' autoreconf: running: aclocal -I m4 --install autoreconf: running: libtoolize --copy autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force Unquoted string "pacieg" may clash with future reserved word at /usr/lib/perl/5.14/attributes.pm line 1. Unrecognized character \xE5; marked by <-- HERE after pacieg<-- HERE near column 7 at /usr/lib/perl/5.14/attributes.pm line 1. Compilation failed in require at /usr/share/perl/5.14/Thread/Queue.pm line 22. BEGIN failed--compilation aborted at /usr/share/perl/5.14/Thread/Queue.pm line 22. Compilation failed in require at /usr/bin/automake line 141. BEGIN failed--compilation aborted at /usr/bin/automake line 144. autoreconf: automake failed with exit status: 255 pi at ...2889... ~/install/gambas/3.4 $ Please advice. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From oceanosoftlapalma at ...626... Sun Apr 21 19:08:47 2013 From: oceanosoftlapalma at ...626... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Sun, 21 Apr 2013 19:08:47 +0200 Subject: [Gambas-user] Gambas3 not start In-Reply-To: <5100643.vvOtM7st0t@...3126...> References: <3400938.IoJ4cxuIMc@...3126...> <5100643.vvOtM7st0t@...3126...> Message-ID: Looks like theres is a problem with your theme. Can you change it an try another one? BTW are you using gnome or kde? Regards, Ricardo D?az 2013/4/21 Rodrigo Maia : > Em dom 21 abr 2013, ?s 16:36:39, Olivier Cruilles escreveu: >> Hello, >> >> You need to give the Linux distribution, from where you had install Gambas >> (package, souces, etc...), and how you start Gambas3 (from Desktop menu or >> terminal) ? >> >> Without these informations we can't help you ? >> >> Cordialement, >> >> Olivier Cruilles >> Mail: linuxos at ...1896... >> >> Le 21 avr. 2013 ? 15:03, Rodrigo Maia a ?crit : >> > Good Morning! >> > >> > Gambas3 not start and returne this is mensagem!!! How >> > >> > to resolve? >> > >> > gbr3: unable to load component: gb.form.stock >> > >> > *Rodrigo Maia - TI Tecnico* >> > email: */rod.pmaia at ...626.../* >> > msn: */rodrigo.pmaia at ...67.../* >> > skype: */rodpmaia/* >> > facebook: */ropdmaia/* >> > fone: */9888188989/* >> > fone: */9881533119/* >> > fone: */9884536069/* >> > -------------------------------------------------------------------------- >> > ---- Precog is a next-generation analytics platform capable of advanced >> > analytics on semi-structured data. The platform includes APIs for >> > building apps and a phenomenal toolset for data science. Developers can >> > use our toolset for easy data analysis & visualization. Get a free >> > account! http://www2.precog.com/precogplatform/slashdotnewsletter >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ---------------------------------------------------------------------------- >> -- Precog is a next-generation analytics platform capable of advanced >> analytics on semi-structured data. The platform includes APIs for building >> apps and a phenomenal toolset for data science. Developers can use our >> toolset for easy data analysis & visualization. Get a free account! >> http://www2.precog.com/precogplatform/slashdotnewsletter >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > GNU/Fedora Linux AMD64 install from repository using: *yum install gambas3* > starting from console $: *gambas3 *or Menu Applications > > > --- > *Rodrigo Maia - TI Tecnico* > email: */rod.pmaia at ...626.../* > msn: */rodrigo.pmaia at ...67.../* > skype: */rodpmaia/* > facebook: */ropdmaia/* > fone: */9888188989/* > fone: */9881533119/* > fone: */9884536069/* > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rod.pmaia at ...626... Sun Apr 21 18:31:29 2013 From: rod.pmaia at ...626... (Rodrigo Maia) Date: Sun, 21 Apr 2013 14:31:29 -0200 Subject: [Gambas-user] Gambas3 not start In-Reply-To: References: <3400938.IoJ4cxuIMc@...3126...> <5100643.vvOtM7st0t@...3126...> Message-ID: <5917414.WECW1LRihb@...3126...> Em dom 21 abr 2013, ?s 19:08:47, Ricardo D?az Mart?n escreveu: > Looks like theres is a problem with your theme. Can you change it an > try another one? > > BTW are you using gnome or kde? > > Regards, > Ricardo D?az > > 2013/4/21 Rodrigo Maia : > > Em dom 21 abr 2013, ?s 16:36:39, Olivier Cruilles escreveu: > >> Hello, > >> > >> You need to give the Linux distribution, from where you had install > >> Gambas > >> (package, souces, etc...), and how you start Gambas3 (from Desktop menu > >> or > >> terminal) ? > >> > >> Without these informations we can't help you ? > >> > >> Cordialement, > >> > >> Olivier Cruilles > >> Mail: linuxos at ...1896... > >> > >> Le 21 avr. 2013 ? 15:03, Rodrigo Maia a ?crit : > >> > Good Morning! > >> > > >> > Gambas3 not start and returne this is mensagem!!! How > >> > > >> > to resolve? > >> > > >> > gbr3: unable to load component: gb.form.stock > >> > > >> > *Rodrigo Maia - TI Tecnico* > >> > email: */rod.pmaia at ...626.../* > >> > msn: */rodrigo.pmaia at ...67.../* > >> > skype: */rodpmaia/* > >> > facebook: */ropdmaia/* > >> > fone: */9888188989/* > >> > fone: */9881533119/* > >> > fone: */9884536069/* > >> > ----------------------------------------------------------------------- > >> > --- > >> > ---- Precog is a next-generation analytics platform capable of advanced > >> > analytics on semi-structured data. The platform includes APIs for > >> > building apps and a phenomenal toolset for data science. Developers can > >> > use our toolset for easy data analysis & visualization. Get a free > >> > account! http://www2.precog.com/precogplatform/slashdotnewsletter > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> ------------------------------------------------------------------------- > >> --- -- Precog is a next-generation analytics platform capable of advanced > >> analytics on semi-structured data. The platform includes APIs for > >> building apps and a phenomenal toolset for data science. Developers can > >> use our toolset for easy data analysis & visualization. Get a free > >> account! http://www2.precog.com/precogplatform/slashdotnewsletter > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > GNU/Fedora Linux AMD64 install from repository using: *yum install > > gambas3* starting from console $: *gambas3 *or Menu Applications > > > > > > --- > > *Rodrigo Maia - TI Tecnico* > > email: */rod.pmaia at ...626.../* > > msn: */rodrigo.pmaia at ...67.../* > > skype: */rodpmaia/* > > facebook: */ropdmaia/* > > fone: */9888188989/* > > fone: */9881533119/* > > fone: */9884536069/* > > -------------------------------------------------------------------------- > > ---- Precog is a next-generation analytics platform capable of advanced > > analytics on semi-structured data. The platform includes APIs for > > building apps and a phenomenal toolset for data science. Developers can > > use our toolset for easy data analysis & visualization. Get a free > > account! http://www2.precog.com/precogplatform/slashdotnewsletter > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ---------------------------------------------------------------------------- > -- Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use our > toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Kde 4.10.1 my theme is OSx with Oxygen decoration *Rodrigo Maia - TI Tecnico* email: */rod.pmaia at ...626.../* msn: */rodrigo.pmaia at ...67.../* skype: */rodpmaia/* facebook: */ropdmaia/* fone: */9888188989/* fone: */9881533119/* fone: */9884536069/* From ricardo.diaz at ...2869... Sun Apr 21 19:25:58 2013 From: ricardo.diaz at ...2869... (=?UTF-8?B?UmljYXJkbyBEw61heiBNYXJ0w61u?=) Date: Sun, 21 Apr 2013 19:25:58 +0200 Subject: [Gambas-user] Gambas3 not start In-Reply-To: <5917414.WECW1LRihb@...3126...> References: <3400938.IoJ4cxuIMc@...3126...> <5100643.vvOtM7st0t@...3126...> <5917414.WECW1LRihb@...3126...> Message-ID: Did you tried with another theme? -- 2013/4/21 Rodrigo Maia : > Em dom 21 abr 2013, ?s 19:08:47, Ricardo D?az Mart?n escreveu: >> Looks like theres is a problem with your theme. Can you change it an >> try another one? >> >> BTW are you using gnome or kde? >> >> Regards, >> Ricardo D?az >> >> 2013/4/21 Rodrigo Maia : >> > Em dom 21 abr 2013, ?s 16:36:39, Olivier Cruilles escreveu: >> >> Hello, >> >> >> >> You need to give the Linux distribution, from where you had install >> >> Gambas >> >> (package, souces, etc...), and how you start Gambas3 (from Desktop menu >> >> or >> >> terminal) ? >> >> >> >> Without these informations we can't help you ? >> >> >> >> Cordialement, >> >> >> >> Olivier Cruilles >> >> Mail: linuxos at ...1896... >> >> >> >> Le 21 avr. 2013 ? 15:03, Rodrigo Maia a ?crit : >> >> > Good Morning! >> >> > >> >> > Gambas3 not start and returne this is mensagem!!! How >> >> > >> >> > to resolve? >> >> > >> >> > gbr3: unable to load component: gb.form.stock >> >> > >> >> > *Rodrigo Maia - TI Tecnico* >> >> > email: */rod.pmaia at ...626.../* >> >> > msn: */rodrigo.pmaia at ...67.../* >> >> > skype: */rodpmaia/* >> >> > facebook: */ropdmaia/* >> >> > fone: */9888188989/* >> >> > fone: */9881533119/* >> >> > fone: */9884536069/* >> >> > ----------------------------------------------------------------------- >> >> > --- >> >> > ---- Precog is a next-generation analytics platform capable of advanced >> >> > analytics on semi-structured data. The platform includes APIs for >> >> > building apps and a phenomenal toolset for data science. Developers can >> >> > use our toolset for easy data analysis & visualization. Get a free >> >> > account! http://www2.precog.com/precogplatform/slashdotnewsletter >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------- >> >> --- -- Precog is a next-generation analytics platform capable of advanced >> >> analytics on semi-structured data. The platform includes APIs for >> >> building apps and a phenomenal toolset for data science. Developers can >> >> use our toolset for easy data analysis & visualization. Get a free >> >> account! http://www2.precog.com/precogplatform/slashdotnewsletter >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > GNU/Fedora Linux AMD64 install from repository using: *yum install >> > gambas3* starting from console $: *gambas3 *or Menu Applications >> > >> > >> > --- >> > *Rodrigo Maia - TI Tecnico* >> > email: */rod.pmaia at ...626.../* >> > msn: */rodrigo.pmaia at ...67.../* >> > skype: */rodpmaia/* >> > facebook: */ropdmaia/* >> > fone: */9888188989/* >> > fone: */9881533119/* >> > fone: */9884536069/* >> > -------------------------------------------------------------------------- >> > ---- Precog is a next-generation analytics platform capable of advanced >> > analytics on semi-structured data. The platform includes APIs for >> > building apps and a phenomenal toolset for data science. Developers can >> > use our toolset for easy data analysis & visualization. Get a free >> > account! http://www2.precog.com/precogplatform/slashdotnewsletter >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ---------------------------------------------------------------------------- >> -- Precog is a next-generation analytics platform capable of advanced >> analytics on semi-structured data. The platform includes APIs for building >> apps and a phenomenal toolset for data science. Developers can use our >> toolset for easy data analysis & visualization. Get a free account! >> http://www2.precog.com/precogplatform/slashdotnewsletter >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> -- > > > Kde 4.10.1 my theme is OSx with Oxygen decoration > > *Rodrigo Maia - TI Tecnico* > email: */rod.pmaia at ...626.../* > msn: */rodrigo.pmaia at ...67.../* > skype: */rodpmaia/* > facebook: */ropdmaia/* > fone: */9888188989/* > fone: */9881533119/* > fone: */9884536069/* > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Sun Apr 21 20:21:29 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 21 Apr 2013 21:21:29 +0300 Subject: [Gambas-user] Issue 425 in gambas: installation error lastest gambas trunk or branch 3.4: on raspi: during execution of reconf-all: Compilation failed in require at /usr/share/perl/5.14/Thread/Queue.pm line 22 In-Reply-To: <0-6813199134517018827-11017171769069067251-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11017171769069067251-gambas=googlecode.com@...2524...> Message-ID: No compilation problems to bug tracker! Please follow reporting instructions. http://gambasdoc.org/help/doc/report?en&view#t3 Also make sure you have everything installed for compilation. http://gambasdoc.org/help/install?en&view&v3 Jussi On Sun, Apr 21, 2013 at 7:40 PM, wrote: > Status: New > Owner: ---- > Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any > Desktop-Any GUI-Any > > New issue 425 by jm_... at ...67...: installation error lastest gambas > trunk or branch 3.4: on raspi: during execution of reconf-all: Compilation > failed in require at /usr/share/perl/5.14/Thread/Queue.pm line 22 > http://code.google.com/p/gambas/issues/detail?id=425 > > I'm trying to install gambas 3.4 or trunk on my raspi (running raspbian > wheezy with latest kernels) > > 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): > > Version: TRUNK or BRANCHES/2.0 or 2.22.0 > Operating system: Linux > Distribution: respbian > Architecture: ARM > > fault during installation after executing command: reconf-all > > pi at ...2889... ~/install/gambas/3.4 $ ./reconf-all && ./configure > -C libtoolize: putting auxiliary files in `.'. > libtoolize: copying file `./ltmain.sh' > libtoolize: You should add the contents of the following files to > `aclocal.m4': > libtoolize: `/usr/share/aclocal/libtool.m4' > libtoolize: `/usr/share/aclocal/ltoptions.m4' > libtoolize: `/usr/share/aclocal/ltversion.m4' > libtoolize: `/usr/share/aclocal/ltsugar.m4' > libtoolize: `/usr/share/aclocal/lt~obsolete.m4' > libtoolize: Remember to add `LT_INIT' to configure.ac. > libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.acand > libtoolize: rerunning libtoolize, to keep the correct libtool macros > in-tree. > libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > autoreconf: running: aclocal > autoreconf: configure.ac: tracing > autoreconf: configure.ac: adding subdirectory main to autoreconf > autoreconf: Entering directory `main' > autoreconf: running: aclocal -I m4 --install > autoreconf: running: libtoolize --copy > autoreconf: running: /usr/bin/autoconf > autoreconf: running: /usr/bin/autoheader > autoreconf: running: automake --add-missing --copy --no-force > Unquoted string "pacieg" may clash with future reserved word at > /usr/lib/perl/5.14/attributes.pm line 1. > Unrecognized character \xE5; marked by <-- HERE after pacieg<-- HERE near > column 7 at /usr/lib/perl/5.14/attributes.pm line 1. > Compilation failed in require at /usr/share/perl/5.14/Thread/Queue.pm line > 22. > BEGIN failed--compilation aborted at /usr/share/perl/5.14/Thread/Queue.pm > line 22. > Compilation failed in require at /usr/bin/automake line 141. > BEGIN failed--compilation aborted at /usr/bin/automake line 144. > autoreconf: automake failed with exit status: 255 > pi at ...2889... ~/install/gambas/3.4 $ > > > Please advice. > > -- > You received this message because this project is configured to send all > issue notifications to this address. > You may adjust your notification preferences at: > https://code.google.com/hosting/settings > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Sun Apr 21 20:51:32 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 21 Apr 2013 20:51:32 +0200 Subject: [Gambas-user] once upon a time In-Reply-To: <1366560032.3182.35.camel@...40...> References: <1366560032.3182.35.camel@...40...> Message-ID: <1366570292.3182.44.camel@...40...> Am Sonntag, den 21.04.2013, 18:00 +0200 schrieb Karl Reinl: > Salut, > > I looked at gambas.sourceforge.net for the lib lists, to compile > gambas2 and/or gambas3 from scratch, but couldn't find them. > Somebody could point me the way . > Or missed I something. Ok, I cleaned up my classes, remembered to the old culture technique 'reading' and finally I found. Sorry for the noise, but never mind, may be the next one remembers. -- Amicalement Charlie From rod.pmaia at ...626... Sun Apr 21 22:53:23 2013 From: rod.pmaia at ...626... (Rodrigo Maia) Date: Sun, 21 Apr 2013 18:53:23 -0200 Subject: [Gambas-user] Gambas3 not start In-Reply-To: References: <3400938.IoJ4cxuIMc@...3126...> <5917414.WECW1LRihb@...3126...> Message-ID: <2757574.AbMePORTyv@...3126...> Em dom 21 abr 2013, ?s 19:25:58, Ricardo D?az Mart?n escreveu: > Did you tried with another theme? > > -- > > 2013/4/21 Rodrigo Maia : > > Em dom 21 abr 2013, ?s 19:08:47, Ricardo D?az Mart?n escreveu: > >> Looks like theres is a problem with your theme. Can you change it an > >> try another one? > >> > >> BTW are you using gnome or kde? > >> > >> Regards, > >> Ricardo D?az > >> > >> 2013/4/21 Rodrigo Maia : > >> > Em dom 21 abr 2013, ?s 16:36:39, Olivier Cruilles escreveu: > >> >> Hello, > >> >> > >> >> You need to give the Linux distribution, from where you had install > >> >> Gambas > >> >> (package, souces, etc...), and how you start Gambas3 (from Desktop > >> >> menu > >> >> or > >> >> terminal) ? > >> >> > >> >> Without these informations we can't help you ? > >> >> > >> >> Cordialement, > >> >> > >> >> Olivier Cruilles > >> >> Mail: linuxos at ...1896... > >> >> > >> >> Le 21 avr. 2013 ? 15:03, Rodrigo Maia a ?crit : > >> >> > Good Morning! > >> >> > > >> >> > Gambas3 not start and returne this is mensagem!!! How > >> >> > > >> >> > to resolve? > >> >> > > >> >> > gbr3: unable to load component: gb.form.stock > >> >> > > >> >> > *Rodrigo Maia - TI Tecnico* > >> >> > email: */rod.pmaia at ...626.../* > >> >> > msn: */rodrigo.pmaia at ...67.../* > >> >> > skype: */rodpmaia/* > >> >> > facebook: */ropdmaia/* > >> >> > fone: */9888188989/* > >> >> > fone: */9881533119/* > >> >> > fone: */9884536069/* > >> >> > -------------------------------------------------------------------- > >> >> > --- > >> >> > --- > >> >> > ---- Precog is a next-generation analytics platform capable of > >> >> > advanced > >> >> > analytics on semi-structured data. The platform includes APIs for > >> >> > building apps and a phenomenal toolset for data science. Developers > >> >> > can > >> >> > use our toolset for easy data analysis & visualization. Get a free > >> >> > account! http://www2.precog.com/precogplatform/slashdotnewsletter > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> >> ---------------------------------------------------------------------- > >> >> --- > >> >> --- -- Precog is a next-generation analytics platform capable of > >> >> advanced > >> >> analytics on semi-structured data. The platform includes APIs for > >> >> building apps and a phenomenal toolset for data science. Developers > >> >> can > >> >> use our toolset for easy data analysis & visualization. Get a free > >> >> account! http://www2.precog.com/precogplatform/slashdotnewsletter > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > GNU/Fedora Linux AMD64 install from repository using: *yum install > >> > gambas3* starting from console $: *gambas3 *or Menu Applications > >> > > >> > > >> > --- > >> > *Rodrigo Maia - TI Tecnico* > >> > email: */rod.pmaia at ...626.../* > >> > msn: */rodrigo.pmaia at ...67.../* > >> > skype: */rodpmaia/* > >> > facebook: */ropdmaia/* > >> > fone: */9888188989/* > >> > fone: */9881533119/* > >> > fone: */9884536069/* > >> > ----------------------------------------------------------------------- > >> > --- > >> > ---- Precog is a next-generation analytics platform capable of advanced > >> > analytics on semi-structured data. The platform includes APIs for > >> > building apps and a phenomenal toolset for data science. Developers can > >> > use our toolset for easy data analysis & visualization. Get a free > >> > account! http://www2.precog.com/precogplatform/slashdotnewsletter > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> ------------------------------------------------------------------------- > >> --- -- Precog is a next-generation analytics platform capable of advanced > >> analytics on semi-structured data. The platform includes APIs for > >> building apps and a phenomenal toolset for data science. Developers can > >> use our toolset for easy data analysis & visualization. Get a free > >> account! http://www2.precog.com/precogplatform/slashdotnewsletter > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> -- > > > > Kde 4.10.1 my theme is OSx with Oxygen decoration > > > > *Rodrigo Maia - TI Tecnico* > > email: */rod.pmaia at ...626.../* > > msn: */rodrigo.pmaia at ...67.../* > > skype: */rodpmaia/* > > facebook: */ropdmaia/* > > fone: */9888188989/* > > fone: */9881533119/* > > fone: */9884536069/* > > -------------------------------------------------------------------------- > > ---- Precog is a next-generation analytics platform capable of advanced > > analytics on semi-structured data. The platform includes APIs for > > building apps and a phenomenal toolset for data science. Developers can > > use our toolset for easy data analysis & visualization. Get a free > > account! http://www2.precog.com/precogplatform/slashdotnewsletter > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ---------------------------------------------------------------------------- > -- Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use our > toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- I using theme default from fedora 18 amd64 and kde 4.10.1 *Rodrigo Maia - TI Tecnico* email: */rod.pmaia at ...626.../* msn: */rodrigo.pmaia at ...67.../* skype: */rodpmaia/* facebook: */ropdmaia/* fone: */9888188989/* fone: */9881533119/* fone: */9884536069/* From gambas at ...2524... Mon Apr 22 04:00:01 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 22 Apr 2013 02:00:01 +0000 Subject: [Gambas-user] Issue 426 in gambas: Long strings in gambas custom control constants Message-ID: <0-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 426 by adamn... at ...626...: Long strings in gambas custom control constants http://code.google.com/p/gambas/issues/detail?id=426 1) Describe the problem. If the "_Properties" constant in a custom control has a value whose string is longer than 255 characters, the string is truncated in the .info file and the component will not load properly. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5618 Operating system: Linux Distribution: PCLinuxOS Architecture: x86 GUI component: QT4 / GTK+ Desktop used: LXDE 3) Provide a little project that reproduces the bug or the crash. Sorry, I'm about a day and a half behind at the moment. If one is really needed I'll build one in a couple of days. 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Create a project with a viable gambas custom control with "lots" of new properties (or hide "lots of existing properties one by one.) i.e. ensure that the "_Properties" string value is longer than 255 characters. Compile it --> OK Close and re-open the project and create a form. Add the custom control to the form. Should get errors in the above. Look at the .info file. The string has been truncated (and in my case is followed by a bunch of blank lines. 6) By doing that carefully, you have done 50% of the bug fix job! Hope so! Cheers. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Apr 22 04:02:16 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 22 Apr 2013 02:02:16 +0000 Subject: [Gambas-user] Issue 426 in gambas: Long strings in gambas custom control constants In-Reply-To: <0-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-450809991782432787-gambas=googlecode.com@...2524...> Comment #1 on issue 426 by adamn... at ...626...: Long strings in gambas custom control constants http://code.google.com/p/gambas/issues/detail?id=426 Oops! For: "and the component will not load properly." read: "and the component will not load into the IDE properly." -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Apr 22 18:26:45 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 22 Apr 2013 16:26:45 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <12-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <12-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <13-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Comment #13 on issue 185 by char... at ...2793...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 I am using Gambas 3, Linux Mint with Cinnamon and this is still a problem for me. The cursor will show it to be 3 characters before the end of a line but any editing will act on the end of the line. Is there any further help on this issue? Thanks. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From adrien.prokopowicz at ...626... Tue Apr 23 09:46:23 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Tue, 23 Apr 2013 09:46:23 +0200 Subject: [Gambas-user] RpcClient patch In-Reply-To: References: Message-ID: Le Sun, 14 Apr 2013 12:02:39 +0200, Ron a ?crit: > In gb.xml.rpc client code the RpcMethod_Read value is incorrectly filled. > This results in error when displaying RpcClient variables, see > screenshot. > > gambas/trunk/gb.xml/src/rpc/gb.xml.rpc/.src/RpcClient.class: > > BAD: > > Function RpcMethod_Read() As RpcFunction > > Return RpcFunction > > End > > > GOOD/BETTER: > > Function RpcMethod_Read() As RpcFunction > > Return Method > > End > > Regards, > Ron_2nd. Hi Ron, I fixed that in revision #5620, thanks. And sorry for response time, I've been very busy these days. Regards, -- Adrien Prokopowicz From gambas at ...2524... Tue Apr 23 09:54:19 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 23 Apr 2013 07:54:19 +0000 Subject: [Gambas-user] Issue 421 in gambas: gb.xml.rpc doesn't work correctly with gb.libxml In-Reply-To: <0-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> Updates: Status: Accepted Owner: adrien.p... at ...626... Comment #1 on issue 421 by adrien.p... at ...626...: gb.xml.rpc doesn't work correctly with gb.libxml http://code.google.com/p/gambas/issues/detail?id=421 That's weird, I usually see bugs caused by the new implementation (gb.xml) and that work with the old one (gb.libxml). I will look at this, but I am not the author nor the maintainer of this subcomponent, so finding and fixing the bug may actually take some time. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ron at ...1740... Tue Apr 23 11:15:01 2013 From: ron at ...1740... (Ron) Date: Tue, 23 Apr 2013 11:15:01 +0200 Subject: [Gambas-user] RpcClient patch In-Reply-To: References: Message-ID: Adrien, No problem, was busy myself on my own project ;-) And I guess the xmlrpc component is not used by many. Had to dive into it myself quite often, since the author is not active with gambas anymore. Thanks, and I will test it. Regards, Ron. 2013/4/23 Adrien Prokopowicz > Le Sun, 14 Apr 2013 12:02:39 +0200, Ron a ?crit: > > > In gb.xml.rpc client code the RpcMethod_Read value is incorrectly filled. > > This results in error when displaying RpcClient variables, see > > screenshot. > > > > gambas/trunk/gb.xml/src/rpc/gb.xml.rpc/.src/RpcClient.class: > > > > BAD: > > > > Function RpcMethod_Read() As RpcFunction > > > > Return RpcFunction > > > > End > > > > > > GOOD/BETTER: > > > > Function RpcMethod_Read() As RpcFunction > > > > Return Method > > > > End > > > > Regards, > > Ron_2nd. > > Hi Ron, > > I fixed that in revision #5620, thanks. > > And sorry for response time, I've been very busy these days. > > Regards, > > -- > Adrien Prokopowicz > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Tue Apr 23 15:15:09 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 23 Apr 2013 15:15:09 +0200 Subject: [Gambas-user] smpt body vs attachement Message-ID: <1366722909.2510.12.camel@...3024...> Hello, Another question on the use of smtp. When in an application I do: hMail.Add(tarBody.Text) The content of tarBody (a TextArea) is send as body of the email So on opening the mail you see this as the mail body as I expect. There is no attachement When doing: hMail.Add(tarBody.Text) hMail.Add(tarAttachment.Text, "text/plain", "Attachment-" & sAddition & ".txt") Content of both tarBody and tarAttachment (both TextAreas) are added each as an attachment to the mail when send. On opening the mail there is NO body and there are 2 attachments. What I expect is tarBody being the content (body) of the mail and tarAttachment being added as an attachment. So I expect only 1 attachment instead of two. How can I ensure that the content of tarBody is NOT added as attachment but as body of the mail and only tarAttachment is attached as attachment? Why in the first code tarBody is no attachment but body content of the mail and in second code it is added as attachement? Anyone know how to solve this? Am I overlooking something? -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From math.eber at ...221... Wed Apr 24 22:21:05 2013 From: math.eber at ...221... (Matti) Date: Wed, 24 Apr 2013 22:21:05 +0200 Subject: [Gambas-user] all those bloody dependencies Message-ID: <51783EB1.4080201@...221...> I'm trying to get the Gambas svn version alive on a new machine. Installed everything that is written on the website as requirements (took about two evenings). Now I'm getting WARNINGs that 17 components can't be compiled because of missing dependencies. This is really annoying! I don't think that many people have the patience to continue now and work through all the './configure -C' messages. Maybe this could be a reason why Gambas isn't so popular? Is there no possibility to build packages of those dependencies for the distros, providing a button "Get all the dependencies for ..."? If I new how to, I would help here. Matti From linuxos at ...1896... Wed Apr 24 22:29:11 2013 From: linuxos at ...1896... (Olivier Cruilles) Date: Wed, 24 Apr 2013 22:29:11 +0200 Subject: [Gambas-user] all those bloody dependencies In-Reply-To: <51783EB1.4080201@...221...> References: <51783EB1.4080201@...221...> Message-ID: <272296DE-14AC-49A9-89F8-8719DF100537@...1896...> Hello, So if you want that we help you beginning without being so negative please. Can you give us all information about the distribution, message error from the configure script and procedure that you used to compile Gambas ? To compile Gambas v3 from svn: cd /Path_to_source ./reconf -all ./configure -C make su -c "make install" Cordialement, Olivier Cruilles Mail: linuxos at ...1896... Le 24 avr. 2013 ? 22:21, Matti a ?crit : > I'm trying to get the Gambas svn version alive on a new machine. > Installed everything that is written on the website as requirements (took about > two evenings). > Now I'm getting WARNINGs that 17 components can't be compiled because of missing > dependencies. This is really annoying! > I don't think that many people have the patience to continue now and work > through all the './configure -C' messages. > Maybe this could be a reason why Gambas isn't so popular? > > Is there no possibility to build packages of those dependencies for the distros, > providing a button "Get all the dependencies for ..."? > > If I new how to, I would help here. > > Matti > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From math.eber at ...221... Wed Apr 24 22:38:31 2013 From: math.eber at ...221... (Matti) Date: Wed, 24 Apr 2013 22:38:31 +0200 Subject: [Gambas-user] all those bloody dependencies In-Reply-To: <272296DE-14AC-49A9-89F8-8719DF100537@...1896...> References: <51783EB1.4080201@...221...> <272296DE-14AC-49A9-89F8-8719DF100537@...1896...> Message-ID: <517842C7.6070609@...221...> Olivier, I know all this. I'm using gambas svn for about 6 years. I just wanted to make it better... Am 24.04.2013 22:29, schrieb Olivier Cruilles: > Hello, > > So if you want that we help you beginning without being so negative please. > Can you give us all information about the distribution, message error from the configure script and procedure that you used to compile Gambas ? > > To compile Gambas v3 from svn: > > cd /Path_to_source > years. > ./reconf -all > ./configure -C > make > su -c "make install" > > Cordialement, > > Olivier Cruilles > Mail: linuxos at ...1896... > > Le 24 avr. 2013 ? 22:21, Matti a ?crit : > >> I'm trying to get the Gambas svn version alive on a new machine. >> Installed everything that is written on the website as requirements (took about >> two evenings). >> Now I'm getting WARNINGs that 17 components can't be compiled because of missing >> dependencies. This is really annoying! >> I don't think that many people have the patience to continue now and work >> through all the './configure -C' messages. >> Maybe this could be a reason why Gambas isn't so popular? >> >> Is there no possibility to build packages of those dependencies for the distros, >> providing a button "Get all the dependencies for ..."? >> >> If I new how to, I would help here. >> >> Matti >> From jussi.lahtinen at ...626... Wed Apr 24 22:39:40 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 24 Apr 2013 23:39:40 +0300 Subject: [Gambas-user] all those bloody dependencies In-Reply-To: <51783EB1.4080201@...221...> References: <51783EB1.4080201@...221...> Message-ID: I don't understand what is the problem exactly. Here are the dependencies listed for different distros. http://gambasdoc.org/help/install?en&view&v3#t9 It doesn't require two evenings. Just copy&paste the command, and it takes few minutes. Jussi On Wed, Apr 24, 2013 at 11:21 PM, Matti wrote: > I'm trying to get the Gambas svn version alive on a new machine. > Installed everything that is written on the website as requirements (took > about > two evenings). > Now I'm getting WARNINGs that 17 components can't be compiled because of > missing > dependencies. This is really annoying! > I don't think that many people have the patience to continue now and work > through all the './configure -C' messages. > Maybe this could be a reason why Gambas isn't so popular? > > Is there no possibility to build packages of those dependencies for the > distros, > providing a button "Get all the dependencies for ..."? > > If I new how to, I would help here. > > Matti > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Wed Apr 24 23:11:15 2013 From: math.eber at ...221... (Matti) Date: Wed, 24 Apr 2013 23:11:15 +0200 Subject: [Gambas-user] all those bloody dependencies In-Reply-To: References: <51783EB1.4080201@...221...> Message-ID: <51784A73.4010405@...221...> Hi Jussi, I've read that page, and I've been using Gambas for long years. Just a new machine. Do you mean the page about openSUSE 10.2? Well, we have openSUSE 12.3 in the meantime. I followed http://gambas.sourceforge.net/en/main.html and there to the left: Compilation & Installation. And after this done, I can't compile because of 17 errors. Am 24.04.2013 22:39, schrieb Jussi Lahtinen: > I don't understand what is the problem exactly. > > Here are the dependencies listed for different distros. > http://gambasdoc.org/help/install?en&view&v3#t9 > > It doesn't require two evenings. Just copy&paste the command, and it takes > few minutes. > > > Jussi > > > > > > On Wed, Apr 24, 2013 at 11:21 PM, Matti wrote: > >> I'm trying to get the Gambas svn version alive on a new machine. >> Installed everything that is written on the website as requirements (took >> about >> two evenings). >> Now I'm getting WARNINGs that 17 components can't be compiled because of >> missing >> dependencies. This is really annoying! >> I don't think that many people have the patience to continue now and work >> through all the './configure -C' messages. >> Maybe this could be a reason why Gambas isn't so popular? >> >> Is there no possibility to build packages of those dependencies for the >> distros, >> providing a button "Get all the dependencies for ..."? >> >> If I new how to, I would help here. >> >> Matti From jussi.lahtinen at ...626... Wed Apr 24 23:32:32 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 Apr 2013 00:32:32 +0300 Subject: [Gambas-user] all those bloody dependencies In-Reply-To: <51784A73.4010405@...221...> References: <51783EB1.4080201@...221...> <51784A73.4010405@...221...> Message-ID: I didn't mean anything specific since you didn't specify your OS. But I think I understand the problem now; documentation is not updated. I wish there would be general solution for this, but it seems that every distro uses it own naming conventions. So this is hard to make automatic. Perhaps someone else knows how to solve this inconvenience? Jussi On Thu, Apr 25, 2013 at 12:11 AM, Matti wrote: > Hi Jussi, > > I've read that page, and I've been using Gambas for long years. Just a new > machine. > > Do you mean the page about openSUSE 10.2? > Well, we have openSUSE 12.3 in the meantime. > > I followed http://gambas.sourceforge.net/en/main.html > and there to the left: Compilation & Installation. > And after this done, I can't compile because of 17 errors. > > > Am 24.04.2013 22:39, schrieb Jussi Lahtinen: > > I don't understand what is the problem exactly. > > > > Here are the dependencies listed for different distros. > > http://gambasdoc.org/help/install?en&view&v3#t9 > > > > It doesn't require two evenings. Just copy&paste the command, and it > takes > > few minutes. > > > > > > Jussi > > > > > > > > > > > > On Wed, Apr 24, 2013 at 11:21 PM, Matti wrote: > > > >> I'm trying to get the Gambas svn version alive on a new machine. > >> Installed everything that is written on the website as requirements > (took > >> about > >> two evenings). > >> Now I'm getting WARNINGs that 17 components can't be compiled because of > >> missing > >> dependencies. This is really annoying! > >> I don't think that many people have the patience to continue now and > work > >> through all the './configure -C' messages. > >> Maybe this could be a reason why Gambas isn't so popular? > >> > >> Is there no possibility to build packages of those dependencies for the > >> distros, > >> providing a button "Get all the dependencies for ..."? > >> > >> If I new how to, I would help here. > >> > >> Matti > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Apr 24 23:39:13 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 Apr 2013 00:39:13 +0300 Subject: [Gambas-user] all those bloody dependencies In-Reply-To: References: <51783EB1.4080201@...221...> <51784A73.4010405@...221...> Message-ID: Maybe some script that would collect dependency list from successful compiling? Or maybe people should volunteer and post updated dependencies? Or maybe someone could put up repository also for some other popular distros... Jussi On Thu, Apr 25, 2013 at 12:32 AM, Jussi Lahtinen wrote: > I didn't mean anything specific since you didn't specify your OS. > But I think I understand the problem now; documentation is not updated. > > I wish there would be general solution for this, but it seems that every > distro uses it own naming conventions. > So this is hard to make automatic. Perhaps someone else knows how to solve > this inconvenience? > > Jussi > > > > On Thu, Apr 25, 2013 at 12:11 AM, Matti wrote: > >> Hi Jussi, >> >> I've read that page, and I've been using Gambas for long years. Just a >> new machine. >> >> Do you mean the page about openSUSE 10.2? >> Well, we have openSUSE 12.3 in the meantime. >> >> I followed http://gambas.sourceforge.net/en/main.html >> and there to the left: Compilation & Installation. >> And after this done, I can't compile because of 17 errors. >> >> >> Am 24.04.2013 22:39, schrieb Jussi Lahtinen: >> > I don't understand what is the problem exactly. >> > >> > Here are the dependencies listed for different distros. >> > http://gambasdoc.org/help/install?en&view&v3#t9 >> > >> > It doesn't require two evenings. Just copy&paste the command, and it >> takes >> > few minutes. >> > >> > >> > Jussi >> > >> > >> > >> > >> > >> > On Wed, Apr 24, 2013 at 11:21 PM, Matti wrote: >> > >> >> I'm trying to get the Gambas svn version alive on a new machine. >> >> Installed everything that is written on the website as requirements >> (took >> >> about >> >> two evenings). >> >> Now I'm getting WARNINGs that 17 components can't be compiled because >> of >> >> missing >> >> dependencies. This is really annoying! >> >> I don't think that many people have the patience to continue now and >> work >> >> through all the './configure -C' messages. >> >> Maybe this could be a reason why Gambas isn't so popular? >> >> >> >> Is there no possibility to build packages of those dependencies for the >> >> distros, >> >> providing a button "Get all the dependencies for ..."? >> >> >> >> If I new how to, I would help here. >> >> >> >> Matti >> >> >> ------------------------------------------------------------------------------ >> Try New Relic Now & We'll Send You this Cool Shirt >> New Relic is the only SaaS-based application performance monitoring >> service >> that delivers powerful full stack analytics. Optimize and monitor your >> browser, app, & servers with just a few lines of code. Try New Relic >> and get this awesome Nerd Life shirt! >> http://p.sf.net/sfu/newrelic_d2d_apr >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From sebikul at ...626... Thu Apr 25 01:25:41 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Wed, 24 Apr 2013 20:25:41 -0300 Subject: [Gambas-user] all those bloody dependencies In-Reply-To: References: <51783EB1.4080201@...221...> <51784A73.4010405@...221...> Message-ID: What about this? 12.3: http://software.opensuse.org/ymp/home:munix9:gambas/openSUSE_12.3/gambas3.ymp?base=openSUSE%3A12.3&query=gambas3 12.2: http://software.opensuse.org/ymp/home:munix9:gambas/openSUSE_12.2/gambas3.ymp?base=openSUSE%3A12.2&query=gambas3 Repository root: http://download.opensuse.org/repositories/home:/munix9:/gambas/ I found this by just googling. If you find the documentation is outdated, why not help out by updating the article? On Wed, Apr 24, 2013 at 6:39 PM, Jussi Lahtinen wrote: > Maybe some script that would collect dependency list from successful > compiling? > Or maybe people should volunteer and post updated dependencies? > > Or maybe someone could put up repository also for some other popular > distros... > > Jussi > > > On Thu, Apr 25, 2013 at 12:32 AM, Jussi Lahtinen > wrote: > > > I didn't mean anything specific since you didn't specify your OS. > > But I think I understand the problem now; documentation is not updated. > > > > I wish there would be general solution for this, but it seems that every > > distro uses it own naming conventions. > > So this is hard to make automatic. Perhaps someone else knows how to > solve > > this inconvenience? > > > > Jussi > > > > > > > > On Thu, Apr 25, 2013 at 12:11 AM, Matti wrote: > > > >> Hi Jussi, > >> > >> I've read that page, and I've been using Gambas for long years. Just a > >> new machine. > >> > >> Do you mean the page about openSUSE 10.2? > >> Well, we have openSUSE 12.3 in the meantime. > >> > >> I followed http://gambas.sourceforge.net/en/main.html > >> and there to the left: Compilation & Installation. > >> And after this done, I can't compile because of 17 errors. > >> > >> > >> Am 24.04.2013 22:39, schrieb Jussi Lahtinen: > >> > I don't understand what is the problem exactly. > >> > > >> > Here are the dependencies listed for different distros. > >> > http://gambasdoc.org/help/install?en&view&v3#t9 > >> > > >> > It doesn't require two evenings. Just copy&paste the command, and it > >> takes > >> > few minutes. > >> > > >> > > >> > Jussi > >> > > >> > > >> > > >> > > >> > > >> > On Wed, Apr 24, 2013 at 11:21 PM, Matti > wrote: > >> > > >> >> I'm trying to get the Gambas svn version alive on a new machine. > >> >> Installed everything that is written on the website as requirements > >> (took > >> >> about > >> >> two evenings). > >> >> Now I'm getting WARNINGs that 17 components can't be compiled because > >> of > >> >> missing > >> >> dependencies. This is really annoying! > >> >> I don't think that many people have the patience to continue now and > >> work > >> >> through all the './configure -C' messages. > >> >> Maybe this could be a reason why Gambas isn't so popular? > >> >> > >> >> Is there no possibility to build packages of those dependencies for > the > >> >> distros, > >> >> providing a button "Get all the dependencies for ..."? > >> >> > >> >> If I new how to, I would help here. > >> >> > >> >> Matti > >> > >> > >> > ------------------------------------------------------------------------------ > >> Try New Relic Now & We'll Send You this Cool Shirt > >> New Relic is the only SaaS-based application performance monitoring > >> service > >> that delivers powerful full stack analytics. Optimize and monitor your > >> browser, app, & servers with just a few lines of code. Try New Relic > >> and get this awesome Nerd Life shirt! > >> http://p.sf.net/sfu/newrelic_d2d_apr > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Thu Apr 25 08:17:36 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 25 Apr 2013 08:17:36 +0200 Subject: [Gambas-user] all those bloody dependencies In-Reply-To: <51784A73.4010405@...221...> References: <51783EB1.4080201@...221...> <51784A73.4010405@...221...> Message-ID: <5178CA80.9060404@...221...> Hi Matti, In the meantime, you could try giving Yast the name of the missed libraries for a search - this way, I recently was able to compile Darktable on two different machines with Suse 12.1. It was somewhat roundabout but it took only 5 minutes in the end... Rolf Am 24.04.2013 23:11, schrieb Matti: > Hi Jussi, > > I've read that page, and I've been using Gambas for long years. Just a new machine. > > Do you mean the page about openSUSE 10.2? > Well, we have openSUSE 12.3 in the meantime. > > I followed http://gambas.sourceforge.net/en/main.html > and there to the left: Compilation & Installation. > And after this done, I can't compile because of 17 errors. > > > Am 24.04.2013 22:39, schrieb Jussi Lahtinen: >> I don't understand what is the problem exactly. >> >> Here are the dependencies listed for different distros. >> http://gambasdoc.org/help/install?en&view&v3#t9 >> >> It doesn't require two evenings. Just copy&paste the command, and it takes >> few minutes. >> >> >> Jussi >> >> >> >> >> >> On Wed, Apr 24, 2013 at 11:21 PM, Matti wrote: >> >>> I'm trying to get the Gambas svn version alive on a new machine. >>> Installed everything that is written on the website as requirements (took >>> about >>> two evenings). >>> Now I'm getting WARNINGs that 17 components can't be compiled because of >>> missing >>> dependencies. This is really annoying! >>> I don't think that many people have the patience to continue now and work >>> through all the './configure -C' messages. >>> Maybe this could be a reason why Gambas isn't so popular? >>> >>> Is there no possibility to build packages of those dependencies for the >>> distros, >>> providing a button "Get all the dependencies for ..."? >>> >>> If I new how to, I would help here. >>> >>> Matti > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From afroehlke at ...784... Thu Apr 25 11:24:54 2013 From: afroehlke at ...784... (=?iso-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Thu, 25 Apr 2013 11:24:54 +0200 Subject: [Gambas-user] Gambas 3 gb.qt4.webkit Message-ID: <8D42310D957CFB46AA11921A711D4D1605B2D7525C@...1899...> Hi, I get a certificate error trying to open a https website. I'cant tell you the site, because it's not accessible from other IPs. I read, in other programming languages, i can ignore SSL-Errors when using qt4.webkit. Is there the same possibility in gambas3 and how does it work? Regard __ Andreas From jussi.lahtinen at ...626... Thu Apr 25 16:19:33 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 Apr 2013 17:19:33 +0300 Subject: [Gambas-user] all those bloody dependencies In-Reply-To: References: <51783EB1.4080201@...221...> <51784A73.4010405@...221...> Message-ID: Perhaps it's working repo, I don't know, I don't use OpenSUSE. At least it's missing from Gambas doc pages. Perhaps someone who use OpenSUSE could update those pages concerning it. Jussi On Thu, Apr 25, 2013 at 2:25 AM, Sebastian Kulesz wrote: > What about this? > 12.3: > > http://software.opensuse.org/ymp/home:munix9:gambas/openSUSE_12.3/gambas3.ymp?base=openSUSE%3A12.3&query=gambas3 > > 12.2: > > http://software.opensuse.org/ymp/home:munix9:gambas/openSUSE_12.2/gambas3.ymp?base=openSUSE%3A12.2&query=gambas3 > > Repository root: > http://download.opensuse.org/repositories/home:/munix9:/gambas/ > > I found this by just googling. > > If you find the documentation is outdated, why not help out by updating the > article? > > > On Wed, Apr 24, 2013 at 6:39 PM, Jussi Lahtinen >wrote: > > > Maybe some script that would collect dependency list from successful > > compiling? > > Or maybe people should volunteer and post updated dependencies? > > > > Or maybe someone could put up repository also for some other popular > > distros... > > > > Jussi > > > > > > On Thu, Apr 25, 2013 at 12:32 AM, Jussi Lahtinen > > wrote: > > > > > I didn't mean anything specific since you didn't specify your OS. > > > But I think I understand the problem now; documentation is not updated. > > > > > > I wish there would be general solution for this, but it seems that > every > > > distro uses it own naming conventions. > > > So this is hard to make automatic. Perhaps someone else knows how to > > solve > > > this inconvenience? > > > > > > Jussi > > > > > > > > > > > > On Thu, Apr 25, 2013 at 12:11 AM, Matti wrote: > > > > > >> Hi Jussi, > > >> > > >> I've read that page, and I've been using Gambas for long years. Just a > > >> new machine. > > >> > > >> Do you mean the page about openSUSE 10.2? > > >> Well, we have openSUSE 12.3 in the meantime. > > >> > > >> I followed http://gambas.sourceforge.net/en/main.html > > >> and there to the left: Compilation & Installation. > > >> And after this done, I can't compile because of 17 errors. > > >> > > >> > > >> Am 24.04.2013 22:39, schrieb Jussi Lahtinen: > > >> > I don't understand what is the problem exactly. > > >> > > > >> > Here are the dependencies listed for different distros. > > >> > http://gambasdoc.org/help/install?en&view&v3#t9 > > >> > > > >> > It doesn't require two evenings. Just copy&paste the command, and it > > >> takes > > >> > few minutes. > > >> > > > >> > > > >> > Jussi > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > On Wed, Apr 24, 2013 at 11:21 PM, Matti > > wrote: > > >> > > > >> >> I'm trying to get the Gambas svn version alive on a new machine. > > >> >> Installed everything that is written on the website as requirements > > >> (took > > >> >> about > > >> >> two evenings). > > >> >> Now I'm getting WARNINGs that 17 components can't be compiled > because > > >> of > > >> >> missing > > >> >> dependencies. This is really annoying! > > >> >> I don't think that many people have the patience to continue now > and > > >> work > > >> >> through all the './configure -C' messages. > > >> >> Maybe this could be a reason why Gambas isn't so popular? > > >> >> > > >> >> Is there no possibility to build packages of those dependencies for > > the > > >> >> distros, > > >> >> providing a button "Get all the dependencies for ..."? > > >> >> > > >> >> If I new how to, I would help here. > > >> >> > > >> >> Matti > > >> > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> Try New Relic Now & We'll Send You this Cool Shirt > > >> New Relic is the only SaaS-based application performance monitoring > > >> service > > >> that delivers powerful full stack analytics. Optimize and monitor your > > >> browser, app, & servers with just a few lines of code. Try New Relic > > >> and get this awesome Nerd Life shirt! > > >> http://p.sf.net/sfu/newrelic_d2d_apr > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > > > > > > ------------------------------------------------------------------------------ > > Try New Relic Now & We'll Send You this Cool Shirt > > New Relic is the only SaaS-based application performance monitoring > service > > that delivers powerful full stack analytics. Optimize and monitor your > > browser, app, & servers with just a few lines of code. Try New Relic > > and get this awesome Nerd Life shirt! > http://p.sf.net/sfu/newrelic_d2d_apr > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Thu Apr 25 16:29:15 2013 From: ron at ...1740... (Ron) Date: Thu, 25 Apr 2013 16:29:15 +0200 Subject: [Gambas-user] all those bloody dependencies In-Reply-To: References: <51783EB1.4080201@...221...> <51784A73.4010405@...221...> Message-ID: <51793DBB.4000701@...1740...> If you want to build gambas3 from scratch, simply look which packages/libs a known opensuse gambas3 rpm used to build itself. wget http://download.opensuse.org/repositories/home:/munix9:/gambas/openSUSE_12.3/src/gambas3-3.4.1-3.8.src.rpm apt-get install rpm2cpio rpm2cpio gambas3-3.4.1-3.8.src.rpm |cpio -idmv vi gambas3.spec Regards, Ron_2nd. > Perhaps it's working repo, I don't know, I don't use OpenSUSE. > At least it's missing from Gambas doc pages. > > Perhaps someone who use OpenSUSE could update those pages concerning it. > > Jussi > > > On Thu, Apr 25, 2013 at 2:25 AM, Sebastian Kulesz wrote: > >> What about this? >> 12.3: >> >> http://software.opensuse.org/ymp/home:munix9:gambas/openSUSE_12.3/gambas3.ymp?base=openSUSE%3A12.3&query=gambas3 >> >> 12.2: >> >> http://software.opensuse.org/ymp/home:munix9:gambas/openSUSE_12.2/gambas3.ymp?base=openSUSE%3A12.2&query=gambas3 >> >> Repository root: >> http://download.opensuse.org/repositories/home:/munix9:/gambas/ >> >> I found this by just googling. >> >> If you find the documentation is outdated, why not help out by updating the >> article? >> >> >> On Wed, Apr 24, 2013 at 6:39 PM, Jussi Lahtinen >> wrote: >>> Maybe some script that would collect dependency list from successful >>> compiling? >>> Or maybe people should volunteer and post updated dependencies? >>> >>> Or maybe someone could put up repository also for some other popular >>> distros... >>> >>> Jussi >>> >>> >>> On Thu, Apr 25, 2013 at 12:32 AM, Jussi Lahtinen >>> wrote: >>> >>>> I didn't mean anything specific since you didn't specify your OS. >>>> But I think I understand the problem now; documentation is not updated. >>>> >>>> I wish there would be general solution for this, but it seems that >> every >>>> distro uses it own naming conventions. >>>> So this is hard to make automatic. Perhaps someone else knows how to >>> solve >>>> this inconvenience? >>>> >>>> Jussi >>>> >>>> >>>> >>>> On Thu, Apr 25, 2013 at 12:11 AM, Matti wrote: >>>> >>>>> Hi Jussi, >>>>> >>>>> I've read that page, and I've been using Gambas for long years. Just a >>>>> new machine. >>>>> >>>>> Do you mean the page about openSUSE 10.2? >>>>> Well, we have openSUSE 12.3 in the meantime. >>>>> >>>>> I followed http://gambas.sourceforge.net/en/main.html >>>>> and there to the left: Compilation & Installation. >>>>> And after this done, I can't compile because of 17 errors. >>>>> >>>>> >>>>> Am 24.04.2013 22:39, schrieb Jussi Lahtinen: >>>>>> I don't understand what is the problem exactly. >>>>>> >>>>>> Here are the dependencies listed for different distros. >>>>>> http://gambasdoc.org/help/install?en&view&v3#t9 >>>>>> >>>>>> It doesn't require two evenings. Just copy&paste the command, and it >>>>> takes >>>>>> few minutes. >>>>>> >>>>>> >>>>>> Jussi >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Apr 24, 2013 at 11:21 PM, Matti >>> wrote: >>>>>>> I'm trying to get the Gambas svn version alive on a new machine. >>>>>>> Installed everything that is written on the website as requirements >>>>> (took >>>>>>> about >>>>>>> two evenings). >>>>>>> Now I'm getting WARNINGs that 17 components can't be compiled >> because >>>>> of >>>>>>> missing >>>>>>> dependencies. This is really annoying! >>>>>>> I don't think that many people have the patience to continue now >> and >>>>> work >>>>>>> through all the './configure -C' messages. >>>>>>> Maybe this could be a reason why Gambas isn't so popular? >>>>>>> >>>>>>> Is there no possibility to build packages of those dependencies for >>> the >>>>>>> distros, >>>>>>> providing a button "Get all the dependencies for ..."? >>>>>>> >>>>>>> If I new how to, I would help here. >>>>>>> >>>>>>> Matti >>>>> >>>>> >> ------------------------------------------------------------------------------ >>>>> Try New Relic Now & We'll Send You this Cool Shirt >>>>> New Relic is the only SaaS-based application performance monitoring >>>>> service >>>>> that delivers powerful full stack analytics. Optimize and monitor your >>>>> browser, app, & servers with just a few lines of code. Try New Relic >>>>> and get this awesome Nerd Life shirt! >>>>> http://p.sf.net/sfu/newrelic_d2d_apr >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>> >> ------------------------------------------------------------------------------ >>> Try New Relic Now & We'll Send You this Cool Shirt >>> New Relic is the only SaaS-based application performance monitoring >> service >>> that delivers powerful full stack analytics. Optimize and monitor your >>> browser, app, & servers with just a few lines of code. Try New Relic >>> and get this awesome Nerd Life shirt! >> http://p.sf.net/sfu/newrelic_d2d_apr >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Try New Relic Now & We'll Send You this Cool Shirt >> New Relic is the only SaaS-based application performance monitoring service >> that delivers powerful full stack analytics. Optimize and monitor your >> browser, app, & servers with just a few lines of code. Try New Relic >> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From math.eber at ...221... Thu Apr 25 20:21:10 2013 From: math.eber at ...221... (Matti) Date: Thu, 25 Apr 2013 20:21:10 +0200 Subject: [Gambas-user] all those bloody dependencies In-Reply-To: <51793DBB.4000701@...1740...> References: <51783EB1.4080201@...221...> <51784A73.4010405@...221...> <51793DBB.4000701@...1740...> Message-ID: <51797416.2000505@...221...> Thank you very much, Sebastian and Ron! It worked, now I got 3.4.1 running and think I can do the updates via svn. For SUSE users: Sebastian's repo did the download, but gambas didn't run. I had to deinstall everything. Better activate this repo in YaST: http://download.opensuse.org/repositories/Education/openSUSE_12.3/ Here, gambas is included (very funny, as a link to this munix9 repo) - but it works! Regards Matti Am 25.04.2013 16:29, schrieb Ron: > If you want to build gambas3 from scratch, simply look which > packages/libs a known opensuse gambas3 rpm used to build itself. > > wget > http://download.opensuse.org/repositories/home:/munix9:/gambas/openSUSE_12.3/src/gambas3-3.4.1-3.8.src.rpm > apt-get install rpm2cpio > rpm2cpio gambas3-3.4.1-3.8.src.rpm |cpio -idmv > vi gambas3.spec > > Regards, > Ron_2nd. >> Perhaps it's working repo, I don't know, I don't use OpenSUSE. >> At least it's missing from Gambas doc pages. >> >> Perhaps someone who use OpenSUSE could update those pages concerning it. >> >> Jussi >> >> >> On Thu, Apr 25, 2013 at 2:25 AM, Sebastian Kulesz wrote: >> >>> What about this? >>> 12.3: >>> >>> http://software.opensuse.org/ymp/home:munix9:gambas/openSUSE_12.3/gambas3.ymp?base=openSUSE%3A12.3&query=gambas3 >>> >>> 12.2: >>> >>> http://software.opensuse.org/ymp/home:munix9:gambas/openSUSE_12.2/gambas3.ymp?base=openSUSE%3A12.2&query=gambas3 >>> >>> Repository root: >>> http://download.opensuse.org/repositories/home:/munix9:/gambas/ >>> >>> I found this by just googling. >>> >>> If you find the documentation is outdated, why not help out by updating the >>> article? >>> >>> >>> On Wed, Apr 24, 2013 at 6:39 PM, Jussi Lahtinen >>> wrote: >>>> Maybe some script that would collect dependency list from successful >>>> compiling? >>>> Or maybe people should volunteer and post updated dependencies? >>>> >>>> Or maybe someone could put up repository also for some other popular >>>> distros... >>>> >>>> Jussi >>>> >>>> >>>> On Thu, Apr 25, 2013 at 12:32 AM, Jussi Lahtinen >>>> wrote: >>>> >>>>> I didn't mean anything specific since you didn't specify your OS. >>>>> But I think I understand the problem now; documentation is not updated. >>>>> >>>>> I wish there would be general solution for this, but it seems that >>> every >>>>> distro uses it own naming conventions. >>>>> So this is hard to make automatic. Perhaps someone else knows how to >>>> solve >>>>> this inconvenience? >>>>> >>>>> Jussi >>>>> >>>>> >>>>> >>>>> On Thu, Apr 25, 2013 at 12:11 AM, Matti wrote: >>>>> >>>>>> Hi Jussi, >>>>>> >>>>>> I've read that page, and I've been using Gambas for long years. Just a >>>>>> new machine. >>>>>> >>>>>> Do you mean the page about openSUSE 10.2? >>>>>> Well, we have openSUSE 12.3 in the meantime. >>>>>> >>>>>> I followed http://gambas.sourceforge.net/en/main.html >>>>>> and there to the left: Compilation & Installation. >>>>>> And after this done, I can't compile because of 17 errors. >>>>>> >>>>>> >>>>>> Am 24.04.2013 22:39, schrieb Jussi Lahtinen: >>>>>>> I don't understand what is the problem exactly. >>>>>>> >>>>>>> Here are the dependencies listed for different distros. >>>>>>> http://gambasdoc.org/help/install?en&view&v3#t9 >>>>>>> >>>>>>> It doesn't require two evenings. Just copy&paste the command, and it >>>>>> takes >>>>>>> few minutes. >>>>>>> >>>>>>> >>>>>>> Jussi >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Wed, Apr 24, 2013 at 11:21 PM, Matti >>>> wrote: >>>>>>>> I'm trying to get the Gambas svn version alive on a new machine. >>>>>>>> Installed everything that is written on the website as requirements >>>>>> (took >>>>>>>> about >>>>>>>> two evenings). >>>>>>>> Now I'm getting WARNINGs that 17 components can't be compiled >>> because >>>>>> of >>>>>>>> missing >>>>>>>> dependencies. This is really annoying! >>>>>>>> I don't think that many people have the patience to continue now >>> and >>>>>> work >>>>>>>> through all the './configure -C' messages. >>>>>>>> Maybe this could be a reason why Gambas isn't so popular? >>>>>>>> >>>>>>>> Is there no possibility to build packages of those dependencies for >>>> the >>>>>>>> distros, >>>>>>>> providing a button "Get all the dependencies for ..."? >>>>>>>> >>>>>>>> If I new how to, I would help here. >>>>>>>> >>>>>>>> Matti >>>>>> >>>>>> >>> ------------------------------------------------------------------------------ >>>>>> Try New Relic Now & We'll Send You this Cool Shirt >>>>>> New Relic is the only SaaS-based application performance monitoring >>>>>> service >>>>>> that delivers powerful full stack analytics. Optimize and monitor your >>>>>> browser, app, & servers with just a few lines of code. Try New Relic >>>>>> and get this awesome Nerd Life shirt! >>>>>> http://p.sf.net/sfu/newrelic_d2d_apr >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>> >>>> >>> ------------------------------------------------------------------------------ >>>> Try New Relic Now & We'll Send You this Cool Shirt >>>> New Relic is the only SaaS-based application performance monitoring >>> service >>>> that delivers powerful full stack analytics. Optimize and monitor your >>>> browser, app, & servers with just a few lines of code. Try New Relic >>>> and get this awesome Nerd Life shirt! >>> http://p.sf.net/sfu/newrelic_d2d_apr >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> ------------------------------------------------------------------------------ >>> Try New Relic Now & We'll Send You this Cool Shirt >>> New Relic is the only SaaS-based application performance monitoring service >>> that delivers powerful full stack analytics. Optimize and monitor your >>> browser, app, & servers with just a few lines of code. Try New Relic >>> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Try New Relic Now & We'll Send You this Cool Shirt >> New Relic is the only SaaS-based application performance monitoring service >> that delivers powerful full stack analytics. Optimize and monitor your >> browser, app, & servers with just a few lines of code. Try New Relic >> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Thu Apr 25 21:08:34 2013 From: math.eber at ...221... (Matti) Date: Thu, 25 Apr 2013 21:08:34 +0200 Subject: [Gambas-user] openSUSE Message-ID: <51797F32.408@...221...> I would like to edit the information in the wiki about installation of gambas in openSUSE. But my svn commit account isn't accepted here. Could someone give me an account for the wiki, or do we have to wait until Benoit is back again? Regards Matti From gambas at ...2524... Fri Apr 26 05:35:06 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 26 Apr 2013 03:35:06 +0000 Subject: [Gambas-user] Issue 427 in gambas: gb.v4l2 and bt878 with video additional channels Message-ID: <0-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 427 by comerc... at ...3131...: gb.v4l2 and bt878 with video additional channels http://code.google.com/p/gambas/issues/detail?id=427 My board contains in /dev/video0 four inputs (Bt878). How do I access the other entries? (/dev/video0 channel 1, channel 2 etc...) with gb.v4l2? is a bug or not exist code sufficient? sorry for my bad english. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From mklaine at ...626... Sat Apr 27 11:19:35 2013 From: mklaine at ...626... (mikael klaine) Date: Sat, 27 Apr 2013 11:19:35 +0200 Subject: [Gambas-user] Gambas3 SVN compilation Problem ARMEL Message-ID: Hi , i have compilation problem with all my armel debian wheezy config (even in fresh install) . gambas2 compil without problem . gambas3 compil fail at make install with segfault when it call gbc3. Compilation output joint. -------------- next part -------------- A non-text attachment was scrubbed... Name: output_local.zip Type: application/zip Size: 22155 bytes Desc: not available URL: From karl.reinl at ...9... Sat Apr 27 12:42:24 2013 From: karl.reinl at ...9... (Karl Reinl) Date: Sat, 27 Apr 2013 12:42:24 +0200 Subject: [Gambas-user] xml on rev5620 fails and abort on XmlWriter Message-ID: <1367059344.2422.39.camel@...40...> Salut Adrian, when I try to use this SUB Sub ToXML(args As String[]) Dim xml As New XmlWriter Dim item As Object 'xml.Open(args[0] & ".xml",TRUE,"utf-8") xml.Open(modPath.FullPath(args[0]), True, "utf-8") xml.StartElement("P") xml.Attribute("DBReport.Version", 3) ToolBox.ToXML(xml, "*") For Each item In ide.GeneralParams item.ToXML(xml) Next Layout.ToXML(xml) xml.EndElement() ' ("P") xml.EndDocument() $fname = modPath.RelativePath(args[0]) layout.Modified = 0 If $QuitOnSave Then ide.Push("REPORT.QUIT") End on line xml.Attribute("DBReport.Version", 3) the following error raise into the IDE console and then hangs *** glibc detected *** DBReportDesigner3: free(): invalid pointer: 0x0961af44 *** if I comment out that line, my project stops with a signal 6 I get that : *** glibc detected *** DBReportDesigner3: munmap_chunk(): invalid pointer: 0x08f286ac *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(+0x6e341)[0x17e341] /lib/tls/i686/cmov/libc.so.6(+0x6f5be)[0x17f5be] /usr/lib/gambas3/gb.xml.so(_Z19CNode_escapeContentPvS_+0x49)[0x8f9c31] DBReportDesigner3[0x80506a0] DBReportDesigner3[0x807d35c] DBReportDesigner3[0x8051504] DBReportDesigner3[0x8052098] DBReportDesigner3[0x80666fc] DBReportDesigner3[0x8066cc8] DBReportDesigner3[0x8078a86] /usr/lib/gambas3/gb.qt4.so(+0x22d1f)[0x348d1f] /usr/lib/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x84)[0xc522a4] /usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac)[0x15504dc] /usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent +0x17e)[0x155701e] /usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x7b)[0xc41b2b] /usr/lib/libQtCore.so.4(+0x197d46)[0xc70d46] /usr/lib/libQtCore.so.4(+0x194a57)[0xc6da57] /lib/libglib-2.0.so.0(g_main_context_dispatch+0x1d5)[0x5646e5] /lib/libglib-2.0.so.0(+0x3f3d8)[0x5683d8] /lib/libglib-2.0.so.0(g_main_context_iteration+0x68)[0x5685b8] /usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x65)[0xc6d715] /usr/lib/libQtGui.so.4(+0x1f5225)[0x1610225] /usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x49)[0xc40149] /usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xfa)[0xc4059a] /usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xaf)[0xc4478f] /usr/lib/libQtGui.so.4(_ZN12QApplication4execEv+0x27)[0x1550577] /usr/lib/gambas3/gb.qt4.so(+0x23e1c)[0x349e1c] DBReportDesigner3[0x806c4a4] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x126bd6] DBReportDesigner3[0x804b341] ======= Memory map: ======== 00110000-00269000 r-xp 00000000 08:06 82649 /lib/tls/i686/cmov/libc-2.11.1.so 00269000-0026b000 r--p 00159000 08:06 82649 /lib/tls/i686/cmov/libc-2.11.1.so 0026b000-0026c000 rw-p 0015b000 08:06 82649 /lib/tls/i686/cmov/libc-2.11.1.so 0026c000-0026f000 rw-p 00000000 00:00 0 0026f000-0028c000 r-xp 00000000 08:06 78579 /lib/libgcc_s.so.1 0028c000-0028d000 r--p 0001c000 08:06 78579 /lib/libgcc_s.so.1 0028d000-0028e000 rw-p 0001d000 08:06 78579 /lib/libgcc_s.so.1 0028e000-00295000 r-xp 00000000 08:06 53011 /usr/lib/libSM.so.6.0.1 00295000-00296000 r--p 00006000 08:06 53011 /usr/lib/libSM.so.6.0.1 00296000-00297000 rw-p 00007000 08:06 53011 /usr/lib/libSM.so.6.0.1 00297000-00299000 r-xp 00000000 08:06 52761 /usr/lib/libXau.so.6.0.0 00299000-0029a000 r--p 00001000 08:06 52761 /usr/lib/libXau.so.6.0.0 0029a000-0029b000 rw-p 00002000 08:06 52761 /usr/lib/libXau.so.6.0.0 0029c000-002b7000 r-xp 00000000 08:06 2052322 /lib/ld-2.11.1.so 002b7000-002b8000 r--p 0001a000 08:06 2052322 /lib/ld-2.11.1.so 002b8000-002b9000 rw-p 0001b000 08:06 2052322 /lib/ld-2.11.1.so 002b9000-0030e000 r-xp 00000000 08:06 51469 /usr/lib/libQtSvg.so.4.6.2 0030e000-0030f000 ---p 00055000 08:06 51469 /usr/lib/libQtSvg.so.4.6.2 0030f000-00310000 r--p 00055000 08:06 51469 /usr/lib/libQtSvg.so.4.6.2 00310000-00311000 rw-p 00056000 08:06 51469 /usr/lib/libQtSvg.so.4.6.2 00311000-00324000 r-xp 00000000 08:06 80500 /lib/libz.so.1.2.3.3 00324000-00325000 r--p 00012000 08:06 80500 /lib/libz.so.1.2.3.3 00325000-00326000 rw-p 00013000 08:06 80500 /lib/libz.so.1.2.3.3 00326000-0037f000 r-xp 00000000 08:06 488957 /usr/lib/gambas3/gb.qt4.so.0.0.0 0037f000-00382000 r--p 00058000 08:06 488957 /usr/lib/gambas3/gb.qt4.so.0.0.0 00382000-0038c000 rw-p 0005b000 08:06 488957 /usr/lib/gambas3/gb.qt4.so.0.0.0 0038c000-004b0000 r-xp 00000000 08:06 55060 /usr/lib/libQtNetwork.so.4.6.2 004b0000-004b1000 ---p 00124000 08:06 55060 /usr/lib/libQtNetwork.so.4.6.2 004b1000-004b4000 r--p 00124000 08:06 55060 /usr/lib/libQtNetwork.so.4.6.2 004b4000-004b5000 rw-p 00127000 08:06 55060 /usr/lib/libQtNetwork.so.4.6.2 004b5000-004ca000 r-xp 00000000 08:06 55217 /usr/lib/libaudio.so.2.4 004ca000-004cb000 r--p 00015000 08:06 55217 /usr/lib/libaudio.so.2.4 004cb000-004cc000 rw-p 00016000 08:06 55217 /usr/lib/libaudio.so.2.4 004cc000-004d4000 r-xp 00000000 08:06 52919 /usr/lib/libXrender.so.1.3.0 004d4000-004d5000 r--p 00007000 08:06 52919 /usr/lib/libXrender.so.1.3.0 004d5000-004d6000 rw-p 00008000 08:06 52919 /usr/lib/libXrender.so.1.3.0 004d8000-004e2000 r-xp 00000000 08:06 488765 /usr/lib/gambas3/gb.image.so.0.0.0 004e2000-004e3000 r--p 00009000 08:06 488765 /usr/lib/gambas3/gb.image.so.0.0.0 004e3000-004e4000 rw-p 0000a000 08:06 488765 /usr/lib/gambas3/gb.image.so.0.0.0 004e4000-00526000 r-xp 00000000 08:06 51207 /usr/lib/libQtXml.so.4.6.2 00526000-00527000 ---p 00042000 08:06 51207 /usr/lib/libQtXml.so.4.6.2 00527000-00528000 r--p 00042000 08:06 51207 /usr/lib/libQtXml.so.4.6.2 00528000-00529000 rw-p 00043000 08:06 51207 /usr/lib/libQtXml.so.4.6.2 00529000-005f1000 r-xp 00000000 08:06 81782 /lib/libglib-2.0.so.0.2400.1 005f1000-005f2000 r--p 000c7000 08:06 81782 /lib/libglib-2.0.so.0.2400.1 005f2000-005f3000 rw-p 000c8000 08:06 81782 /lib/libglib-2.0.so.0.2400.1 005f3000-00616000 r-xp 00000000 08:06 79169 /lib/libpng12.so.0.42.0 00616000-00617000 r--p 00022000 08:06 79169 /lib/libpng12.so.0.42.0 00617000-00618000 rw-p 00023000 08:06 79169 /lib/libpng12.so.0.42.0 00618000-00655000 r-xp 00000000 08:06 59835 /usr/lib/libgobject-2.0.so.0.2400.1 00655000-00656000 r--p 0003c000 08:06 59835 /usr/lib/libgobject-2.0.so.0.2400.1 00656000-00657000 rw-p 0003d000 08:06 59835 /usr/lib/libgobject-2.0.so.0.2400.1 00657000-00659000 r-xp 00000000 08:06 61505 /usr/lib/gconv/UTF-16.so 00659000-0065a000 r--p 00001000 08:06 61505 /usr/lib/gconv/UTF-16.so 0065a000-0065b000 rw-p 00002000 08:06 61505 /usr/lib/gconv/UTF-16.so 0065b000-00689000 r-xp 00000000 08:06 468895 /usr/lib/libfontconfig.so.1.4.4 00689000-0068a000 r--p 0002d000 08:06 468895 /usr/lib/libfontconfig.so.1.4.4 0068a000-0068b000 rw-p 0002e000 08:06 468895 /usr/lib/libfontconfig.so.1.4.4 0068b000-006a0000 r-xp 00000000 08:06 52543 /usr/lib/libICE.so.6.3.0 006a0000-006a1000 r--p 00014000 08:06 52543 /usr/lib/libICE.so.6.3.0 006a1000-006a2000 rw-p 00015000 08:06 52543 /usr/lib/libICE.so.6.3.0 006a2000-006a4000 rw-p 00000000 00:00 0 006a4000-006a8000 r-xp 00000000 08:06 59778 /usr/lib/libgthread-2.0.so.0.2400.1 006a8000-006a9000 r--p 00003000 08:06 59778 /usr/lib/libgthread-2.0.so.0.2400.1 006a9000-006aa000 rw-p 00004000 08:06 59778 /usr/lib/libgthread-2.0.so.0.2400.1 006aa000-006ad000 r-xp 00000000 08:06 80191 /lib/libuuid.so.1.3.0 006ad000-006ae000 r--p 00002000 08:06 80191 /lib/libuuid.so.1.3.0 006ae000-006af000 rw-p 00003000 08:06 80191 /lib/libuuid.so.1.3.0 006b2000-006c7000 r-xp 00000000 08:06 82490 /lib/tls/i686/cmov/libpthread-2.11.1.so 006c7000-006c8000 r--p 00014000 08:06 82490 /lib/tls/i686/cmov/libpthread-2.11.1.so 006c8000-006c9000 rw-p 00015000 08:06 82490 /lib/tls/i686/cmov/libpthread-2.11.1.so 006c9000-006cb000 rw-p 00000000 00:00 0 006cb000-006d9000 r-xp 00000000 08:06 52900 /usr/lib/libXext.so.6.4.0 006d9000-006da000 r--p 0000d000 08:06 52900 /usr/lib/libXext.so.6.4.0 006da000-006db000 rw-p 0000e000 08:06 52900 /usr/lib/libXext.so.6.4.0 006db000-006e2000 r-xp 00000000 08:06 82645 /lib/tls/i686/cmov/librt-2.11.1.so 006e2000-006e3000 r--p 00006000 08:06 82645 /lib/tls/i686/cmov/librt-2.11.1.so 006e3000-006e4000 rw-p 00007000 08:06 82645 /lib/tls/i686/cmov/librt-2.11.1.so 006e4000-00708000 r-xp 00000000 08:06 78711 /lib/libexpat.so.1.5.2 00708000-00709000 ---p 00024000 08:06 78711 /lib/libexpat.so.1.5.2 00709000-0070b000 r--p 00024000 08:06 78711 /lib/libexpat.so.1.5.2 0070b000-00 My box : [System] OperatingSystem=Linux Kernel=3.0.0-32-generic Architecture=x86 Distribution=Ubuntu 10.04.4 LTS Desktop=GNOME Theme=QPlastique Language=de_DE.UTF-8 Memory=3026M [Libraries] Curl=libcurl.so.4.1.1 GStreamer=libgstreamer-0.10.so.0.24.1 GTK+=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 Qt4=libQtCore.so.4.6.2 SDL=libSDL-1.2.so.0.11.3 -- Amicalement Charlie From adrien.prokopowicz at ...626... Sat Apr 27 15:16:41 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 27 Apr 2013 15:16:41 +0200 Subject: [Gambas-user] xml on rev5620 fails and abort on XmlWriter In-Reply-To: <1367059344.2422.39.camel@...40...> References: <1367059344.2422.39.camel@...40...> Message-ID: Hi Karl, I fixed Node serialization in revision #5621, and the code you gave me seems to work now. Can you confirm ? Regards, -- Adrien Prokopowicz From Karl.Reinl at ...2345... Sat Apr 27 18:42:38 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 27 Apr 2013 18:42:38 +0200 Subject: [Gambas-user] xml on rev5620 fails and abort on XmlWriter In-Reply-To: References: <1367059344.2422.39.camel@...40...> Message-ID: <1367080958.2657.2.camel@...40...> Am Samstag, den 27.04.2013, 15:16 +0200 schrieb Adrien Prokopowicz: > Hi Karl, > > I fixed Node serialization in revision #5621, and the code you gave me > seems to work now. Can you confirm ? > > Regards, Salut Adrian, yes, a bit better, but now I get a #11 with this : xml.Attribute("Login", "") -- Amicalement Charlie From adrien.prokopowicz at ...626... Sat Apr 27 21:21:30 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 27 Apr 2013 21:21:30 +0200 Subject: [Gambas-user] xml on rev5620 fails and abort on XmlWriter In-Reply-To: <1367080958.2657.2.camel@...40...> References: <1367059344.2422.39.camel@...40...> <1367080958.2657.2.camel@...40...> Message-ID: Le Sat, 27 Apr 2013 18:42:38 +0200, Charlie Reinl a ?crit: > Am Samstag, den 27.04.2013, 15:16 +0200 schrieb Adrien Prokopowicz: >> Hi Karl, >> >> I fixed Node serialization in revision #5621, and the code you gave me >> seems to work now. Can you confirm ? >> >> Regards, > > Salut Adrian, > > yes, a bit better, but now I get a #11 with this : > xml.Attribute("Login", "") > I fixed that on revision #5622. -- Adrien Prokopowicz From Karl.Reinl at ...2345... Sat Apr 27 22:30:18 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 27 Apr 2013 22:30:18 +0200 Subject: [Gambas-user] xml on rev5620 fails and abort on XmlWriter In-Reply-To: References: <1367059344.2422.39.camel@...40...> <1367080958.2657.2.camel@...40...> Message-ID: <1367094618.2382.1.camel@...40...> Am Samstag, den 27.04.2013, 21:21 +0200 schrieb Adrien Prokopowicz: > Le Sat, 27 Apr 2013 18:42:38 +0200, Charlie Reinl > a ?crit: > > > Am Samstag, den 27.04.2013, 15:16 +0200 schrieb Adrien Prokopowicz: > >> Hi Karl, > >> > >> I fixed Node serialization in revision #5621, and the code you gave me > >> seems to work now. Can you confirm ? > >> > >> Regards, > > > > Salut Adrian, > > > > yes, a bit better, but now I get a #11 with this : > > xml.Attribute("Login", "") > > > > I fixed that on revision #5622. > my project reworked again, at the first view. Thanks Charlie From kevinfishburne at ...1887... Sun Apr 28 06:34:27 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 28 Apr 2013 00:34:27 -0400 Subject: [Gambas-user] secure payment processing Message-ID: <517CA6D3.1010705@...1887...> What does everyone think about a component or functionality to securely process payments through third parties such as PayPal, Amazon, Google Checkout, etc.? I'm guessing that PayPal, etc., offer APIs to allow various programming languages to integrate payment, but otherwise am extremely ignorant on the subject. I've been programming a MMORPG in GAMBAS for the last three years or so that will require a $0.99 payment for an extra life (should you die), and I'd like to handle transactions in-game rather than through the web for customer convenience. Any information on how this could be accomplished would be extremely helpful. Also, while slightly off-topic, I'd like to know if there is anything I need to watch out for with respect to processing payments. People are regularly killed for $20 and information security these days is a mine field, so I really don't want to be responsible for doing something stupid that leads to headlines about a security breach or the like. Thanks all. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From ihaywood at ...1979... Sun Apr 28 10:32:15 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Sun, 28 Apr 2013 18:32:15 +1000 Subject: [Gambas-user] compiling on Debian Message-ID: I am currently trying to compile gambas on debian it now sees to work better: whether this is due to fixes in gambas or debian libraries being slightly less ancient and catching up with gambas requirements, I'm not sure. BUT the file /usr/lib/gambas3/gb.qt4.gambas does not exist and the existing Debian packaging scripts expect it (i.e. it used to exist back when Gambas was last successfully packaged: 3.1.1) gb.qt4.so and gb.qt4.component are generated. is this a probem? or has the way native gambas components work changed? Ian From Karl.Reinl at ...2345... Sun Apr 28 10:45:34 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 28 Apr 2013 10:45:34 +0200 Subject: [Gambas-user] compiling on Debian In-Reply-To: References: Message-ID: <1367138734.2333.4.camel@...40...> Am Sonntag, den 28.04.2013, 18:32 +1000 schrieb Ian Haywood: > I am currently trying to compile gambas on debian > > it now sees to work better: whether this is due to fixes in gambas or > debian libraries being slightly less ancient and catching up with > gambas requirements, I'm not sure. > > BUT > the file /usr/lib/gambas3/gb.qt4.gambas does not exist and the > existing Debian packaging scripts expect it (i.e. it used to exist > back when Gambas was last successfully packaged: 3.1.1) > gb.qt4.so and gb.qt4.component are generated. > > is this a probem? or has the way native gambas components work changed? > > Ian Salut Ian, here my box : with last svn/trunk [System] OperatingSystem=Linux Kernel=3.0.0-32-generic Architecture=x86 Distribution=Ubuntu 10.04.4 LTS Desktop=GNOME Theme=QPlastique Language=de_DE.UTF-8 Memory=3026M [Libraries] Curl=libcurl.so.4.1.1 GStreamer=libgstreamer-0.10.so.0.24.1 GTK+=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 Qt4=libQtCore.so.4.6.2 SDL=libSDL-1.2.so.0.11.3 and here my /usr/lib/gambas3/ /usr/lib/gambas3/gb.qt4.component /usr/lib/gambas3/gb.qt4.ext.component /usr/lib/gambas3/gb.qt4.ext.la /usr/lib/gambas3/gb.qt4.ext.so /usr/lib/gambas3/gb.qt4.ext.so.0 /usr/lib/gambas3/gb.qt4.ext.so.0.0.0 /usr/lib/gambas3/gb.qt4.la /usr/lib/gambas3/gb.qt4.opengl.component /usr/lib/gambas3/gb.qt4.opengl.la /usr/lib/gambas3/gb.qt4.opengl.so /usr/lib/gambas3/gb.qt4.opengl.so.0 /usr/lib/gambas3/gb.qt4.opengl.so.0.0.0 /usr/lib/gambas3/gb.qt4.so /usr/lib/gambas3/gb.qt4.so.0 /usr/lib/gambas3/gb.qt4.so.0.0.0 /usr/lib/gambas3/gb.qt4.webkit.component /usr/lib/gambas3/gb.qt4.webkit.la /usr/lib/gambas3/gb.qt4.webkit.so /usr/lib/gambas3/gb.qt4.webkit.so.0 /usr/lib/gambas3/gb.qt4.webkit.so.0.0.0 /usr/share/gambas3/control/gb.qt4.webkit /usr/share/gambas3/control/gb.qt4.webkit/webview.png /usr/share/gambas3/info/gb.qt4.ext.info /usr/share/gambas3/info/gb.qt4.ext.list /usr/share/gambas3/info/gb.qt4.info /usr/share/gambas3/info/gb.qt4.list /usr/share/gambas3/info/gb.qt4.opengl.info /usr/share/gambas3/info/gb.qt4.opengl.list /usr/share/gambas3/info/gb.qt4.webkit.info /usr/share/gambas3/info/gb.qt4.webkit.list I also do not have /usr/lib/gambas3/gb.qt4.gambas -- Amicalement Charlie From taboege at ...626... Sun Apr 28 11:12:28 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 28 Apr 2013 11:12:28 +0200 Subject: [Gambas-user] compiling on Debian In-Reply-To: References: Message-ID: <20130428091228.GA556@...2774...> On Sun, 28 Apr 2013, Ian Haywood wrote: > I am currently trying to compile gambas on debian > > it now sees to work better: whether this is due to fixes in gambas or > debian libraries being slightly less ancient and catching up with > gambas requirements, I'm not sure. > > BUT > the file /usr/lib/gambas3/gb.qt4.gambas does not exist and the > existing Debian packaging scripts expect it (i.e. it used to exist > back when Gambas was last successfully packaged: 3.1.1) > gb.qt4.so and gb.qt4.component are generated. > > is this a probem? or has the way native gambas components work changed? > > Ian Native components were, to the best of my knowledge, never compiled to *.gambas files. This extension is for non-native Gambas executables/ components and would make no sense for native ones. Regards, Tobi From Karl.Reinl at ...2345... Sun Apr 28 13:41:56 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 28 Apr 2013 13:41:56 +0200 Subject: [Gambas-user] compiling on Debian In-Reply-To: <20130428091228.GA556@...2774...> References: <20130428091228.GA556@...2774...> Message-ID: <1367149316.2333.7.camel@...40...> Am Sonntag, den 28.04.2013, 11:12 +0200 schrieb Tobias Boege: > On Sun, 28 Apr 2013, Ian Haywood wrote: > > I am currently trying to compile gambas on debian > > > > it now sees to work better: whether this is due to fixes in gambas or > > debian libraries being slightly less ancient and catching up with > > gambas requirements, I'm not sure. > > > > BUT > > the file /usr/lib/gambas3/gb.qt4.gambas does not exist and the > > existing Debian packaging scripts expect it (i.e. it used to exist > > back when Gambas was last successfully packaged: 3.1.1) > > gb.qt4.so and gb.qt4.component are generated. > > > > is this a probem? or has the way native gambas components work changed? > > > > Ian > > Native components were, to the best of my knowledge, never compiled to > *.gambas files. This extension is for non-native Gambas executables/ > components and would make no sense for native ones. > > Regards, > Tobi > Salut Tobi, gambas written components /usr/bin/gambas3.gambas /usr/bin/gbs3.gambas /usr/lib/gambas3/gb.args.gambas /usr/lib/gambas3/gb.chart.gambas /usr/lib/gambas3/gb.db.form.gambas /usr/lib/gambas3/gb.db.gambas /usr/lib/gambas3/gb.dbus.gambas /usr/lib/gambas3/gb.desktop.gambas /usr/lib/gambas3/gb.eval.highlight.gambas /usr/lib/gambas3/gb.form.dialog.gambas /usr/lib/gambas3/gb.form.gambas /usr/lib/gambas3/gb.form.mdi.gambas /usr/lib/gambas3/gb.form.stock.gambas /usr/lib/gambas3/gb.gui.base.gambas /usr/lib/gambas3/gb.map.gambas /usr/lib/gambas3/gb.memcached.gambas /usr/lib/gambas3/gb.mysql.gambas /usr/lib/gambas3/gb.net.pop3.gambas /usr/lib/gambas3/gb.net.smtp.gambas /usr/lib/gambas3/gb.report.gambas /usr/lib/gambas3/gb.settings.gambas /usr/lib/gambas3/gb.web.gambas /usr/lib/gambas3/gb.xml.gambas /usr/lib/gambas3/gb.xml.rpc.gambas -- Amicalement Charlie From willy at ...2734... Sun Apr 28 17:55:37 2013 From: willy at ...2734... (Willy Raets) Date: Sun, 28 Apr 2013 17:55:37 +0200 Subject: [Gambas-user] compiling on Debian In-Reply-To: References: Message-ID: <1367164537.3550.11.camel@...3024...> On Sun, 2013-04-28 at 18:32 +1000, Ian Haywood wrote: > I am currently trying to compile gambas on debian > > it now sees to work better: whether this is due to fixes in gambas or > debian libraries being slightly less ancient and catching up with > gambas requirements, I'm not sure. I presume you managed to install Gambas and it runs. > > BUT > the file /usr/lib/gambas3/gb.qt4.gambas does not exist and the > existing Debian packaging scripts expect it (i.e. it used to exist > back when Gambas was last successfully packaged: 3.1.1) > gb.qt4.so and gb.qt4.component are generated. Since gb.qt4 is not written in Gambas there should not be a gb.qt4.gambas. Only the components written in Gambas have one. How did the gb.qt4.gambas end up in the Debian repo of 3.1.1? But what is more important is, does this mean the Debian repo can't be updated to 3.4.1? Is there a way of circumventing the Debian script to make it work. I'm not a Debian packager, but maybe someone here knows so your Gambas installation can be used for updating the Debian repo. We could use that :) -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From adrien.prokopowicz at ...626... Sun Apr 28 18:58:50 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 28 Apr 2013 18:58:50 +0200 Subject: [Gambas-user] compiling on Debian In-Reply-To: <1367164537.3550.11.camel@...3024...> References: <1367164537.3550.11.camel@...3024...> Message-ID: Le Sun, 28 Apr 2013 17:55:37 +0200, Willy Raets a ?crit: > On Sun, 2013-04-28 at 18:32 +1000, Ian Haywood wrote: >> BUT >> the file /usr/lib/gambas3/gb.qt4.gambas does not exist and the >> existing Debian packaging scripts expect it (i.e. it used to exist >> back when Gambas was last successfully packaged: 3.1.1) >> gb.qt4.so and gb.qt4.component are generated. > > Since gb.qt4 is not written in Gambas there should not be a > gb.qt4.gambas. Only the components written in Gambas have one. > > How did the gb.qt4.gambas end up in the Debian repo of 3.1.1? I remember that a small part of gb.qt4 and gb.gtk were written in gambas (the Action class I think), making it an hybrid component, so that's why a gb.qt4.gambas were generated. But since the 3.4 version, this class has been moved to the gb.gui.base component, and now gb.qt4 and gb.gtk are now completely made in C/C++, so that's may be why that file is not generated anymore. -- Adrien Prokopowicz From taboege at ...626... Sun Apr 28 19:30:20 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 28 Apr 2013 19:30:20 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples Message-ID: <20130428173019.GD556@...2774...> Hi folks, I'm finally going to write my last A level exam tomorrow. Except the oral exam in June, I have ca. 5 months of spare time until matriculation. Among working here and there, I plan to do much work on my Gambas components and stuff and wanted to start by restructuring the Gambas examples next week. Hans and I had the feeling that, them likely being the first code a newbie will seriously attempt to learn Gambas from (at least that's what I did six years ago), they are not too well-suited for that purpose. (Well, I was 12 back then and my brain was still fresh :-)) Most of them are poorly commented, contain commented-out code for whatever features (or just dead code), violate the Gambas naming conventions or (this is a point Hans put forward which I not necessarily support) contain a bulk of code which just adds a feature but is not really related to teach how to use the particular component for which it is an example (particularly, he refers to MapView's zooming functionality). The suggestion is *not* to make a heavily-commented tutorial out of each example or to remove extra features, but to split examples into niveau stages so that newbies know where they have to expect what extent of commentary or additional complexity and that our sort can be more sensible of how to write an example to be put upstream. Look at the Games category. Nobody wants a game (example) to have source code where every detail of the used component or the Gambas language is explained. I can just tell from my Pong example that these kinds of programs tend to get quite complex and the most interesting thing is the game logic and the OOP implementation - for experienced programmers. On the other side are things like in the Basic category which may benefit from one or two explanatory comments about what is going on behind the scenes and what is to expect from, e.g. attaching an object to an observer (this is actually done quite well in ArrayOfControls but with *some little* room for improvement). Hans also suggested, again without me tremendously backing that idea, that Benoit lay down rules to which new examples must stick. I just want to spread the idea here, nevertheless since my intuition may be wrong at this point. Loose guidelines for how to classify a piece into the niveau levels would be my approach here. All in all, my plan would, in the first instance, just be to introduce different niveau levels to the examples followed by the consequent change to the way in which the IDE presents examples by default. The topic categories will remain! - there's just an alternate view of them in niveau levels. On the way, I will try my best to remove the grievances from the source code and later look at this more closely. But only if Benoit gives his "OK" and you guys have also nothing serious to amend. Regards, Tobi From taboege at ...626... Sun Apr 28 19:34:57 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 28 Apr 2013 19:34:57 +0200 Subject: [Gambas-user] compiling on Debian In-Reply-To: References: <1367164537.3550.11.camel@...3024...> Message-ID: <20130428173457.GE556@...2774...> On Sun, 28 Apr 2013, Adrien Prokopowicz wrote: > Le Sun, 28 Apr 2013 17:55:37 +0200, Willy Raets > a ??crit: > > > On Sun, 2013-04-28 at 18:32 +1000, Ian Haywood wrote: > >> BUT > >> the file /usr/lib/gambas3/gb.qt4.gambas does not exist and the > >> existing Debian packaging scripts expect it (i.e. it used to exist > >> back when Gambas was last successfully packaged: 3.1.1) > >> gb.qt4.so and gb.qt4.component are generated. > > > > Since gb.qt4 is not written in Gambas there should not be a > > gb.qt4.gambas. Only the components written in Gambas have one. > > > > How did the gb.qt4.gambas end up in the Debian repo of 3.1.1? > > I remember that a small part of gb.qt4 and gb.gtk were written in gambas > (the Action class I think), making it an hybrid component, so that's why a > gb.qt4.gambas were generated. > But since the 3.4 version, this class has been moved to the gb.gui.base > component, and now gb.qt4 and gb.gtk are now completely made in C/C++, so > that's may be why that file is not generated anymore. You are right, Adrien. 3.1.1 indeed had a gb.qt4 Gambas part. I'm sorry, didn't realise. Regards, Tobi From math.eber at ...221... Sun Apr 28 21:04:39 2013 From: math.eber at ...221... (Matti) Date: Sun, 28 Apr 2013 21:04:39 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130428173019.GD556@...2774...> References: <20130428173019.GD556@...2774...> Message-ID: <517D72C7.4070401@...221...> Tobi, I think this is a very good idea. I remember when I started with Gambas: I looked at the examples, but I didn't want to play games - I wanted to learn how to use a piece of code for this or that purpose. I missed the very basics, sometimes I found something, but sometimes not. It is surely all there, but buried in applications where a beginner won't find it. There are two classes of examples now: - one that answers questions from the mailing list, like: how can I use an array of controls, how can I use the Wizard, and so on, giving just a little information. They are silly programs with no use, but the beginner can learn how to use the language. - the others show "look what all can be done with Gambas!", and are ready-to-use, but a beginner will find them too complex to find anything useful in them. So, little step-by-step examples would be very useful. Tobi, if I could write some little examples for that project, just tell me. Matti Am 28.04.2013 19:30, schrieb Tobias Boege: > Hi folks, > > I'm finally going to write my last A level exam tomorrow. Except the oral > exam in June, I have ca. 5 months of spare time until matriculation. Among > working here and there, I plan to do much work on my Gambas components and > stuff and wanted to start by restructuring the Gambas examples next week. > > Hans and I had the feeling that, them likely being the first code a newbie > will seriously attempt to learn Gambas from (at least that's what I did six > years ago), they are not too well-suited for that purpose. (Well, I was 12 > back then and my brain was still fresh :-)) > > Most of them are poorly commented, contain commented-out code for whatever > features (or just dead code), violate the Gambas naming conventions or > (this is a point Hans put forward which I not necessarily support) contain > a bulk of code which just adds a feature but is not really related to > teach how to use the particular component for which it is an example > (particularly, he refers to MapView's zooming functionality). > > The suggestion is *not* to make a heavily-commented tutorial out of each > example or to remove extra features, but to split examples into niveau > stages so that newbies know where they have to expect what extent of > commentary or additional complexity and that our sort can be more sensible > of how to write an example to be put upstream. > > Look at the Games category. Nobody wants a game (example) to have source > code where every detail of the used component or the Gambas language is > explained. I can just tell from my Pong example that these kinds of programs > tend to get quite complex and the most interesting thing is the game logic > and the OOP implementation - for experienced programmers. > > On the other side are things like in the Basic category which may benefit > from one or two explanatory comments about what is going on behind the > scenes and what is to expect from, e.g. attaching an object to an observer > (this is actually done quite well in ArrayOfControls but with *some little* > room for improvement). > > Hans also suggested, again without me tremendously backing that idea, that > Benoit lay down rules to which new examples must stick. I just want to > spread the idea here, nevertheless since my intuition may be wrong at this > point. Loose guidelines for how to classify a piece into the niveau levels > would be my approach here. > > All in all, my plan would, in the first instance, just be to introduce > different niveau levels to the examples followed by the consequent change to > the way in which the IDE presents examples by default. The topic categories > will remain! - there's just an alternate view of them in niveau levels. On > the way, I will try my best to remove the grievances from the source code > and later look at this more closely. But only if Benoit gives his "OK" and > you guys have also nothing serious to amend. > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1823... Mon Apr 29 00:25:38 2013 From: rterry at ...1823... (Richard Terry) Date: Mon, 29 Apr 2013 08:25:38 +1000 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130428173019.GD556@...2774...> References: <20130428173019.GD556@...2774...> Message-ID: <517DA1E2.4090109@...1823...> ?Sounds like a good Idea - the examples were useful for me a few years ago when I was trying to learn gambas, mind you my brain is over 60 years old so that's probably part of the problem. As you are wandering through them , I don't suppose you/or anyone else on the list could get the web-cam examples working? regards richard Tobias Boege wrote: > Hi folks, > > I'm finally going to write my last A level exam tomorrow. Except the oral > exam in June, I have ca. 5 months of spare time until matriculation. Among > working here and there, I plan to do much work on my Gambas components and > stuff and wanted to start by restructuring the Gambas examples next week. > > Hans and I had the feeling that, them likely being the first code a newbie > will seriously attempt to learn Gambas from (at least that's what I did six > years ago), they are not too well-suited for that purpose. (Well, I was 12 > back then and my brain was still fresh :-)) > > Most of them are poorly commented, contain commented-out code for whatever > features (or just dead code), violate the Gambas naming conventions or > (this is a point Hans put forward which I not necessarily support) contain > a bulk of code which just adds a feature but is not really related to > teach how to use the particular component for which it is an example > (particularly, he refers to MapView's zooming functionality). > > The suggestion is *not* to make a heavily-commented tutorial out of each > example or to remove extra features, but to split examples into niveau > stages so that newbies know where they have to expect what extent of > commentary or additional complexity and that our sort can be more sensible > of how to write an example to be put upstream. > > Look at the Games category. Nobody wants a game (example) to have source > code where every detail of the used component or the Gambas language is > explained. I can just tell from my Pong example that these kinds of programs > tend to get quite complex and the most interesting thing is the game logic > and the OOP implementation - for experienced programmers. > > On the other side are things like in the Basic category which may benefit > from one or two explanatory comments about what is going on behind the > scenes and what is to expect from, e.g. attaching an object to an observer > (this is actually done quite well in ArrayOfControls but with *some little* > room for improvement). > > Hans also suggested, again without me tremendously backing that idea, that > Benoit lay down rules to which new examples must stick. I just want to > spread the idea here, nevertheless since my intuition may be wrong at this > point. Loose guidelines for how to classify a piece into the niveau levels > would be my approach here. > > All in all, my plan would, in the first instance, just be to introduce > different niveau levels to the examples followed by the consequent change to > the way in which the IDE presents examples by default. The topic categories > will remain! - there's just an alternate view of them in niveau levels. On > the way, I will try my best to remove the grievances from the source code > and later look at this more closely. But only if Benoit gives his "OK" and > you guys have also nothing serious to amend. > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From bbruen at ...2308... Mon Apr 29 01:02:09 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 29 Apr 2013 08:32:09 +0930 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130428173019.GD556@...2774...> References: <20130428173019.GD556@...2774...> Message-ID: <1367190129.29273.97.camel@...2688...> On Sun, 2013-04-28 at 19:30 +0200, Tobias Boege wrote: > Hi folks, > > {lots} 8< Hi Tobi, Here's some "opinion", so take it as such and not criticism. 1) Who uses the examples and why? I would say there are two general categories of people who access the examples. New gambas coders looking for answers to syntax and algorithmic questions and experienced coders looking for code they have forgotten how to use (I can confirm there is definitely at least one of the second type!). The examples need to address both these audiences. 2) Avoiding a plethora of examples Although having an example focus on a single aspect of gambas is laudable we do not want to end up with a huge set of examples where one has to load example B to understand example A, and then example C, D, E etc. Any code or feature of an example should be completely self contained. 3) Comments A sparsely commented class is worse than no comments at all. By this I mean that comments in example code should go beyond the focus of the example whenever obscure intent, algorithm or syntax is involved. If not, the naive user is left wondering what that piece of the example code does and how and the experienced user, who may be reviewing the code because they know that an obscure construct is demonstrated there, is again frustrated because that exact bit is not commented. There is no such things as too many or too detailed comments. Oh, how I know this when having to go back into code I wrote a year, month, week ago! cheers Bruce From ihaywood at ...1979... Mon Apr 29 02:03:06 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Mon, 29 Apr 2013 10:03:06 +1000 Subject: [Gambas-user] compiling on Debian In-Reply-To: References: <1367164537.3550.11.camel@...3024...> Message-ID: On Mon, Apr 29, 2013 at 2:58 AM, Adrien Prokopowicz wrote: > I remember that a small part of gb.qt4 and gb.gtk were written in gambas > (the Action class I think), making it an hybrid component, so that's why a > gb.qt4.gambas were generated. > But since the 3.4 version, this class has been moved to the gb.gui.base > component, and now gb.qt4 and gb.gtk are now completely made in C/C++, so > that's may be why that file is not generated anymore. Thankyou Adrien, that solves the puzzle. It's relatively easy to amend the Debian packaging scripts so they won't look for this file. I just wanted to make sure it wasn't some problem with my compilation. Ian From bbruen at ...2308... Mon Apr 29 05:41:29 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 29 Apr 2013 13:11:29 +0930 Subject: [Gambas-user] gridview row heights when cell is wrapped Message-ID: <1367206889.29273.104.camel@...2688...> I thought this was solved a long time ago? gvwinfo[6, 0].Text = "Description" gvwinfo[6, 0].Alignment = Align.TopLeft gvwinfo[6, 1].WordWrap = True gvwinfo[6, 1].RichText = UnQuote($libinfo.Description) gvwinfo[6, 1].Alignment =Align.TopLeft gvwinfo.Rows[6].Height = -1 The last line resizes the height of the row, but it is much too high for the wrapped text. Has anyone else seen this behaviour? Bruce [Gambas] Version = 3.4.0 Revision = 6320 GUI = QT4 [System] OperatingSystem=Linux Kernel=3.2.18-pclos2.bfs Architecture=x86 Distribution=PCLinuxOS Desktop=LXDE Theme=QWindows Language=en_AU.UTF-8 Memory=1517M [Libraries] Curl=libcurl.so.3.0.0 GStreamer=libgstreamer-0.10.so.0.29.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.13.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.3 -------------- next part -------------- A non-text attachment was scrubbed... Name: resultfileload Details_004.png Type: image/png Size: 14903 bytes Desc: not available URL: From gambas at ...1... Mon Apr 29 16:11:56 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Apr 2013 16:11:56 +0200 Subject: [Gambas-user] I'm coming back from the real world Message-ID: <517E7FAC.2040905@...1...> Hi, Internet is back again there ! Now I have one hundred mails related to Gambas to handle and three episodes of Game Of Thrones to watch... So please be patient, and sorry for the inconvenience! -- Beno?t Minisini From gambas at ...1... Mon Apr 29 16:20:59 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 29 Apr 2013 16:20:59 +0200 Subject: [Gambas-user] How to read mouse wheel string In-Reply-To: <1365892632.91060.YahooMailClassic@...3065...> References: <1365892632.91060.YahooMailClassic@...3065...> Message-ID: <517E81CB.50505@...1...> Le 14/04/2013 00:37, Ru Vuott a ?crit : > Hello Bruce, > > > >> >> (Just to clarify something about your actual problem. If >> your user >> highlights text in some external window and then clicks the >> middle mouse >> button over a gambas textarea, does the text appear?) >> > > Yes, it does. No problem. > > >> >> You cannot get the highlighted text in gambas because the >> highlighted >> text is not in the desktop clipboard, it is only in the >> X-"clipboard"-buffer. qt4.clipboard only knows about >> the desktop >> clipboard. >> >> The solution will lie in getting the highlighted text into >> the desktop >> clipboard. >> > Ok. Thanks. > I saw that simply by highlighting the text I cannot "transpose" the copy in gambas application. > > I saw if I have a text (e.g. "my text") in Gedit, and I copy it via ctrl+C or via Copy function of right button of the mouse, in Gambas console or TextArea I obtain this: > > GTKTEXTBUFFERCONTENTS-0001^@^@^@N > > > my text > > > > But if I copy from LibreOffice (via ctrl+C or via Copy function of right button of the mouse) I obtain in Gambas application the "pure" text: > > my text > > > And more, if I copy a simple text from a web page, I obtain the entire HTML tag line where is the text. Every charapter is separated by the ASCII value of zero. > ??<^@s^@p^@a^@n^@ ^@c^@l^@a^@s^@s^@=^@"^@m^@e^@d^@i^@u^@m^@"^@ ^@s^@t^@y^@l^@e^@=^@"^@l^@i^@n^@e^@-^@h^@e^@i^@g^@h^@t^@:^@1^@.^@2^@3^@1^@"^@>^@N^@e^@k^@ ^@h^@a^@ ^@r^@i^@v^@e^@l^@a^@t^@o^@<^@/^@s^@p^@a^@n^@>^@ > > > Regards > vuott > First, there is two copy & paste buffers on X11: the one with CTRL+C, and the one with the middle mouse button. I only implemented the first one at the moment, both in gb.qt4 and gb.gtk. Last, a clipboard may "store" (not actually, but let's forget the details) the data in different formats. Clipboard.Paste() only gets the first one, which you cannot guess what it is. Use the optional argument of Clipboard.Paste() to specify the format, and the Formats property to enumerate all formats stored in the clipboard. Regards, -- Beno?t Minisini From gambas at ...2524... Mon Apr 29 16:21:59 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Apr 2013 14:21:59 +0000 Subject: [Gambas-user] Issue 401 in gambas: |Project|Make|Source Archive thinks it hasn't created the directory In-Reply-To: <2-6813199134517018827-8182799626018071353-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-8182799626018071353-gambas=googlecode.com@...2524...> <0-6813199134517018827-8182799626018071353-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-8182799626018071353-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #3 on issue 401 by benoit.m... at ...626...: |Project|Make|Source Archive thinks it hasn't created the directory http://code.google.com/p/gambas/issues/detail?id=401 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Apr 29 16:23:00 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Apr 2013 14:23:00 +0000 Subject: [Gambas-user] Issue 96 in gambas: Importing a gambas2 form does not convert the form to gambas3 In-Reply-To: <8-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> References: <8-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> <0-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Message-ID: <9-6813199134517018827-12062387076755902502-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #9 on issue 96 by benoit.m... at ...626...: Importing a gambas2 form does not convert the form to gambas3 http://code.google.com/p/gambas/issues/detail?id=96 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Mon Apr 29 16:25:16 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Apr 2013 16:25:16 +0200 Subject: [Gambas-user] Smtp property Alternative - How to use? In-Reply-To: <1366291032.2487.7.camel@...3024...> References: <1366291032.2487.7.camel@...3024...> Message-ID: <517E82CC.6090004@...1...> Le 18/04/2013 15:17, Willy Raets a ?crit : > Does someone know how to use SmtpClient.Alternative > > Documentation says: > -------------- > PROPERTY Alternative AS Boolean > > Returns or sets if mail attachments are actually different alternatives > of the same data. For example, a mail encoded in HTML, in UTF-8, or only > in ASCII. > > By default, this property is FALSE. You must define it before using the > Add method. > -------------- > > I have an attachment in plain text with tabs used. > If Windows mail clients receive the attachment the tabs are not shown as > should be (data is placed much further apart in Windows where the tabs > are). I suppose this has to do with the original attachment using UTF-8 > and Windows clients using ASCII. > > Could Alternative be the solution I am looking for? > If so, I don't understand how to implement this. > How do I define this. An example would help > I see no relation between encoding problems (Window nightmare) and the Alternative flag. And Alternative is just a flag. It tells the mail client that all attachments are actually the same data in different formats. Then the mail client decides what it does with that. To use, set the property to TRUE just before filling the mail with text or attachments with the Add() method. Regards, -- Beno?t Minisini From gambas at ...1... Mon Apr 29 16:34:40 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Apr 2013 16:34:40 +0200 Subject: [Gambas-user] How to stop "Greedy" constructors consuming parameters In-Reply-To: <1366456721.29273.81.camel@...2688...> References: <1366420395.29273.21.camel@...2688...> <1366444306.29273.29.camel@...2688...> <1366456721.29273.81.camel@...2688...> Message-ID: <517E8500.1060203@...1...> Le 20/04/2013 13:18, Bruce a ?crit : > On Sat, 2013-04-20 at 11:36 +0200, Fabien Bodard wrote: >> The check is not done for the "_new" special method, as the inheritance of >> _new is special (see "inheritance and constructor" in the "Gambas object >> model" documentation on the wiki). > > Yep, I know that, but Ian's comment was about overrides for "normal" > methods. Which still for the sake of sanity I could never understand the > need for a total ban on signature changes. > > I can appreciate that the return type should to some extent be > "prevented" from overrides, although even that is questionable in cases > like abstract factories. As I said at the time, I could not see, nor > have experienced a situation where gambas has failed where a method is > overridden in a child class that has a requirement for a different > signature. > > In particular, where an ancestral non-instantiable root class has no > implementation of some method "XXXX" and the root class is abstract, it > is fairly easy to specify a method in that class that must be > overridden. In other words a stub that looks something like this > > Public Sub XXXX(...) > Error.Raise(Subst("Incomplete override &1", Object.Class(Me).Name)) > End > > So now I have declared a method in the root class, which MUST be > overridden in the instantiable child classes, by some method which may > require {0,1,2,... many} parameters. As of the fix for Issue 78 this > doesn't work "nicely", because every override method in a child class > MUST use the signature "Public Sub XXXX(...)" > > The solution I "suggested" to Ian is based on optionally compiling out > the signature check in gbx-class.c which as I said has not failed for > about 2 years. I would really love to see an example of where this > approach could fail because I am still running and promulgating a > modified version of Gambas locally and to all the clients that has this > patch in it. > > If this sounds like a bit of a rave then I apologise, but "for the sake > of sanity"... > > Anyway, so much for the coffee break, back to rewriting the 64 classes > to use Ian's "_new()/Init()" approach. Grrrr! > > cheers > Bruce > The signature check is actually a bug fix. Let's suppose that class B inherits class A, and that A has a method foo() which is reimplemented in B with a different signature. Then, calling X.foo() may lead to a crash if X is declared as an A and is actually a B, because of an internal optimization that replaces an expensive table symbol lookup by a direct method access. If *all* of the classes of your hierarchy wants a 'Source' and 'Name' argument, then these arguments must be defined in the root class constructor, not in each one! If theses twwo arguments must be handled differently between classes, then add a public method to handle them. Prefix its name with an underscore, to indicate that it must not be called outside of the implementation. ' Root class Public Sub _new(Source as String[], Name as String) _Init(Source, Name) End ' Any child class Public Sub _Init(Source as String[], Name as String) ... End Does it fit your needs? -- Beno?t Minisini From gambas at ...2524... Mon Apr 29 16:39:48 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Apr 2013 14:39:48 +0000 Subject: [Gambas-user] Issue 185 in gambas: Editing a line changes font spacing In-Reply-To: <13-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> References: <13-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> <0-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Message-ID: <14-6813199134517018827-9150352820753408673-gambas=googlecode.com@...2524...> Comment #14 on issue 185 by benoit.m... at ...626...: Editing a line changes font spacing http://code.google.com/p/gambas/issues/detail?id=185 Can you give me all the needed information, your QT version, eventually a screenshot, and the name of the font you are using? And maybe you should a new issue for that. Thanks! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Apr 29 16:42:40 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Apr 2013 14:42:40 +0000 Subject: [Gambas-user] Issue 421 in gambas: gb.xml.rpc doesn't work correctly with gb.libxml In-Reply-To: <1-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> <0-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> Comment #2 on issue 421 by benoit.m... at ...626...: gb.xml.rpc doesn't work correctly with gb.libxml http://code.google.com/p/gambas/issues/detail?id=421 Maybe it is the last bug fixed on gb.xml.rpc that make it not working anymore with the old XML component? It is possible to test which XML component is in use with the Component.IsLoaded() method to not run the new fixes when gb.libxml is in use. I just don't have the time to do that now! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Mon Apr 29 16:46:35 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Apr 2013 16:46:35 +0200 Subject: [Gambas-user] smpt body vs attachement In-Reply-To: <1366722909.2510.12.camel@...3024...> References: <1366722909.2510.12.camel@...3024...> Message-ID: <517E87CB.2060603@...1...> Le 23/04/2013 15:15, Willy Raets a ?crit : > Hello, > > Another question on the use of smtp. > > When in an application I do: > > hMail.Add(tarBody.Text) > > The content of tarBody (a TextArea) is send as body of the email > So on opening the mail you see this as the mail body as I expect. > There is no attachement > > When doing: > > hMail.Add(tarBody.Text) > hMail.Add(tarAttachment.Text, "text/plain", "Attachment-" & sAddition & > ".txt") > > Content of both tarBody and tarAttachment (both TextAreas) are added > each as an attachment to the mail when send. On opening the mail there > is NO body and there are 2 attachments. > > What I expect is tarBody being the content (body) of the mail and > tarAttachment being added as an attachment. So I expect only 1 > attachment instead of two. > > How can I ensure that the content of tarBody is NOT added as attachment > but as body of the mail and only tarAttachment is attached as > attachment? > > Why in the first code tarBody is no attachment but body content of the > mail and in second code it is added as attachement? > > Anyone know how to solve this? Am I overlooking something? > I don't have this problem. I know that gb.net.smtp will create only a multipart mail, but I always see the text contents as the body. Can you send me such a mail so that I see if I get two attachments or a body and an attachment? Which mail client do you use? -- Beno?t Minisini From gambas at ...1... Mon Apr 29 17:01:58 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Apr 2013 17:01:58 +0200 Subject: [Gambas-user] Gambas 3 gb.qt4.webkit In-Reply-To: <8D42310D957CFB46AA11921A711D4D1605B2D7525C@...1899...> References: <8D42310D957CFB46AA11921A711D4D1605B2D7525C@...1899...> Message-ID: <517E8B66.5070000@...1...> Le 25/04/2013 11:24, Andreas Fr?hlke a ?crit : > Hi, > > I get a certificate error trying to open a https website. I'cant tell you the site, because it's not accessible from other IPs. > I read, in other programming languages, i can ignore SSL-Errors when using qt4.webkit. > > Is there the same possibility in gambas3 and how does it work? > > > Regard > __ > Andreas > When and how do you get the error exactly? -- Beno?t Minisini From gambas at ...1... Mon Apr 29 17:07:06 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Apr 2013 17:07:06 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130428173019.GD556@...2774...> References: <20130428173019.GD556@...2774...> Message-ID: <517E8C9A.7040504@...1...> Le 28/04/2013 19:30, Tobias Boege a ?crit : > Hi folks, > > I'm finally going to write my last A level exam tomorrow. Except the oral > exam in June, I have ca. 5 months of spare time until matriculation. Among > working here and there, I plan to do much work on my Gambas components and > stuff and wanted to start by restructuring the Gambas examples next week. > > Hans and I had the feeling that, them likely being the first code a newbie > will seriously attempt to learn Gambas from (at least that's what I did six > years ago), they are not too well-suited for that purpose. (Well, I was 12 > back then and my brain was still fresh :-)) > > Most of them are poorly commented, contain commented-out code for whatever > features (or just dead code), violate the Gambas naming conventions or > (this is a point Hans put forward which I not necessarily support) contain > a bulk of code which just adds a feature but is not really related to > teach how to use the particular component for which it is an example > (particularly, he refers to MapView's zooming functionality). > > The suggestion is *not* to make a heavily-commented tutorial out of each > example or to remove extra features, but to split examples into niveau > stages so that newbies know where they have to expect what extent of > commentary or additional complexity and that our sort can be more sensible > of how to write an example to be put upstream. > > Look at the Games category. Nobody wants a game (example) to have source > code where every detail of the used component or the Gambas language is > explained. I can just tell from my Pong example that these kinds of programs > tend to get quite complex and the most interesting thing is the game logic > and the OOP implementation - for experienced programmers. > > On the other side are things like in the Basic category which may benefit > from one or two explanatory comments about what is going on behind the > scenes and what is to expect from, e.g. attaching an object to an observer > (this is actually done quite well in ArrayOfControls but with *some little* > room for improvement). > > Hans also suggested, again without me tremendously backing that idea, that > Benoit lay down rules to which new examples must stick. I just want to > spread the idea here, nevertheless since my intuition may be wrong at this > point. Loose guidelines for how to classify a piece into the niveau levels > would be my approach here. > > All in all, my plan would, in the first instance, just be to introduce > different niveau levels to the examples followed by the consequent change to > the way in which the IDE presents examples by default. The topic categories > will remain! - there's just an alternate view of them in niveau levels. On > the way, I will try my best to remove the grievances from the source code > and later look at this more closely. But only if Benoit gives his "OK" and > you guys have also nothing serious to amend. > > Regards, > Tobi > I have never found the time to write good examples so you have my full blessing. Just don't work directly on the current examples (/trunk/examples/example). Just create a new directory ('/trunk/examples/src' for... example) where you will store all the example projects, with the structure you want. Once done, I will modify the IDE to point at the new structure. Regards, -- Beno?t Minisini From gambas at ...1... Mon Apr 29 17:08:34 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Apr 2013 17:08:34 +0200 Subject: [Gambas-user] compiling on Debian In-Reply-To: References: <1367164537.3550.11.camel@...3024...> Message-ID: <517E8CF2.10906@...1...> Le 29/04/2013 02:03, Ian Haywood a ?crit : > On Mon, Apr 29, 2013 at 2:58 AM, Adrien Prokopowicz > wrote: > >> I remember that a small part of gb.qt4 and gb.gtk were written in gambas >> (the Action class I think), making it an hybrid component, so that's why a >> gb.qt4.gambas were generated. >> But since the 3.4 version, this class has been moved to the gb.gui.base >> component, and now gb.qt4 and gb.gtk are now completely made in C/C++, so >> that's may be why that file is not generated anymore. > Thankyou Adrien, that solves the puzzle. > It's relatively easy to amend the Debian packaging scripts so they > won't look for this file. > I just wanted to make sure it wasn't some problem with my compilation. > > Ian > Yep. All binary component can have a Gambas part with the same name, but this is purely optional. But I don't know if the debian package configuration files can handle optional files automatically. Regards, -- Beno?t Minisini From gambas at ...1... Mon Apr 29 17:09:42 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Apr 2013 17:09:42 +0200 Subject: [Gambas-user] gridview row heights when cell is wrapped In-Reply-To: <1367206889.29273.104.camel@...2688...> References: <1367206889.29273.104.camel@...2688...> Message-ID: <517E8D36.20309@...1...> Le 29/04/2013 05:41, Bruce a ?crit : > I thought this was solved a long time ago? > > gvwinfo[6, 0].Text = "Description" > gvwinfo[6, 0].Alignment = Align.TopLeft > gvwinfo[6, 1].WordWrap = True > gvwinfo[6, 1].RichText = UnQuote($libinfo.Description) > gvwinfo[6, 1].Alignment =Align.TopLeft > gvwinfo.Rows[6].Height = -1 > > The last line resizes the height of the row, but it is much too high for > the wrapped text. > > Has anyone else seen this behaviour? > > Bruce > > [Gambas] > Version = 3.4.0 > Revision = 6320 > GUI = QT4 > > [System] > OperatingSystem=Linux > Kernel=3.2.18-pclos2.bfs > Architecture=x86 > Distribution=PCLinuxOS > Desktop=LXDE > Theme=QWindows > Language=en_AU.UTF-8 > Memory=1517M > > [Libraries] > Curl=libcurl.so.3.0.0 > GStreamer=libgstreamer-0.10.so.0.29.0 > GTK+=libgtk-x11-2.0.so.0.2400.10 > Poppler=libpoppler.so.13.0.0 > Qt4=libQtCore.so.4.8.4 > SDL=libSDL-1.2.so.0.11.3 > Mmm, strange... Can you make a little project that reproduces the bug for me? -- Beno?t Minisini From taboege at ...626... Mon Apr 29 17:34:04 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 29 Apr 2013 17:34:04 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <1367190129.29273.97.camel@...2688...> References: <20130428173019.GD556@...2774...> <1367190129.29273.97.camel@...2688...> Message-ID: <20130429153404.GA648@...2774...> On Mon, 29 Apr 2013, Bruce wrote: > On Sun, 2013-04-28 at 19:30 +0200, Tobias Boege wrote: > > Hi folks, > > > > {lots} 8< > > Hi Tobi, > > Here's some "opinion", so take it as such and not criticism. > Too bad, for criticism helps to improve our ideas. Now you leave the work to me to make criticism out of your opinions ;-) > 1) Who uses the examples and why? > I would say there are two general categories of people who access the > examples. New gambas coders looking for answers to syntax and > algorithmic questions and experienced coders looking for code they have > forgotten how to use (I can confirm there is definitely at least one of > the second type!). The examples need to address both these audiences. > Matti already did sort of that observation. Niveau levels may therefore actually be too much of a classification. Dividing into newbie and experienced coder may be closer to the immediate needs. This could simplify the visual problems of presenting that new view to some extent. > 2) Avoiding a plethora of examples > Although having an example focus on a single aspect of gambas is > laudable we do not want to end up with a huge set of examples where one > has to load example B to understand example A, and then example C, D, E > etc. Any code or feature of an example should be completely self > contained. > Absolutely true. We don't have any need for an example for each of the language functions either. That's for the wiki or so. An example depicts one topic. Right. > 3) Comments > A sparsely commented class is worse than no comments at all. By this I > mean that comments in example code should go beyond the focus of the > example whenever obscure intent, algorithm or syntax is involved. If > not, the naive user is left wondering what that piece of the example > code does and how and the experienced user, who may be reviewing the > code because they know that an obscure construct is demonstrated there, > is again frustrated because that exact bit is not commented. > There is no such things as too many or too detailed comments. Oh, how I > know this when having to go back into code I wrote a year, month, week > ago! > I disagree on that point. I can imagine too many or to detailed comments. My plans are to comment the "what" and "why" because the "how" should be obvious from the code. Otherwise it's bad code. Regards, Tobi From taboege at ...626... Mon Apr 29 17:38:04 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 29 Apr 2013 17:38:04 +0200 Subject: [Gambas-user] I'm coming back from the real world In-Reply-To: <517E7FAC.2040905@...1...> References: <517E7FAC.2040905@...1...> Message-ID: <20130429153804.GB648@...2774...> On Mon, 29 Apr 2013, Beno?t Minisini wrote: > Hi, > > Internet is back again there ! > > Now I have one hundred mails related to Gambas to handle and three > episodes of Game Of Thrones to watch... > > So please be patient, and sorry for the inconvenience! You shouldn't feed too much Gambas into your computer ;-) From gambas at ...2524... Mon Apr 29 18:43:57 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 29 Apr 2013 16:43:57 +0000 Subject: [Gambas-user] Issue 421 in gambas: gb.xml.rpc doesn't work correctly with gb.libxml In-Reply-To: <2-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> <0-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2373110834659276770-gambas=googlecode.com@...2524...> Comment #3 on issue 421 by r... at ...1740...: gb.xml.rpc doesn't work correctly with gb.libxml http://code.google.com/p/gambas/issues/detail?id=421 I was mistaken, I thought gb.libxml was the new component, and gb.xml the old one... ;P It doesn't work with the new one was my idea when I posted this bugreport. Now I see, no need to fix then. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ihaywood at ...1979... Tue Apr 30 05:05:06 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Tue, 30 Apr 2013 13:05:06 +1000 Subject: [Gambas-user] How to stop "Greedy" constructors consuming parameters In-Reply-To: <517E8500.1060203@...1...> References: <1366420395.29273.21.camel@...2688...> <1366444306.29273.29.camel@...2688...> <1366456721.29273.81.camel@...2688...> <517E8500.1060203@...1...> Message-ID: <517F34E2.7070702@...1979...> On 30/04/13 00:34, Beno?t Minisini wrote: > If theses twwo arguments must be handled differently between classes, > then add a public method to handle them. Prefix its name with an > underscore, to indicate that it must not be called outside of the > implementation. > > ' Root class > Public Sub _new(Source as String[], Name as String) > _Init(Source, Name) > End > > ' Any child class > Public Sub _Init(Source as String[], Name as String) This is rule around underscores enforced by the compiler (a la Python) or only a convention? would you consider a Protected access type (like C++) instead? Ian From bbruen at ...2308... Tue Apr 30 07:02:53 2013 From: bbruen at ...2308... (Bruce) Date: Tue, 30 Apr 2013 14:32:53 +0930 Subject: [Gambas-user] Another "good" idea but no real ideas Message-ID: <1367298173.29273.117.camel@...2688...> I saw something the other day, it was a multi-windowed terminal in which each window was running a separate shell. I have attached a mock up of what I was seeing. At the time I didn't think a great deal about it, but today it turns out that something like that would be a great solution to a local problem, i.e. "tail"-ing several log files in a program that runs continuously or for some time. I have the technology to manage the several logging streams from the program but setting up multiple terminals manually to follow the output (to Temp() files is painful. So a) would it be possible to create something like this in gambas, i.e. a form with multiple "terminal" windows in it, each running it's own shell b) how the heck would one approach it? regards Bruce (in "blind-Bambi" mode) -------------- next part -------------- A non-text attachment was scrubbed... Name: mwterminal.png Type: image/png Size: 225704 bytes Desc: not available URL: From taboege at ...626... Tue Apr 30 09:41:06 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 30 Apr 2013 09:41:06 +0200 Subject: [Gambas-user] Another "good" idea but no real ideas In-Reply-To: <1367298173.29273.117.camel@...2688...> References: <1367298173.29273.117.camel@...2688...> Message-ID: <20130430073833.GA559@...2774...> On Tue, 30 Apr 2013, Bruce wrote: > I saw something the other day, it was a multi-windowed terminal in which > each window was running a separate shell. I have attached a mock up of > what I was seeing. > At the time I didn't think a great deal about it, but today it turns out > that something like that would be a great solution to a local problem, > i.e. "tail"-ing several log files in a program that runs continuously or > for some time. I have the technology to manage the several logging > streams from the program but setting up multiple terminals manually to > follow the output (to Temp() files is painful. > > So > a) would it be possible to create something like this in gambas, i.e. a > form with multiple "terminal" windows in it, each running it's own shell > b) how the heck would one approach it? > > regards > Bruce > (in "blind-Bambi" mode) I never really used that control but this looks like you could use an Embedder[0] to make another application work for you from inside your window. This would be a totally lazy approach :-) If you want your own terminal window to not be so dependent on the presence of other software, you can write a form and use Workspace[1]. A few days ago I saw that we also can do hForm = New FMyForm(dwgDrawingArea) and it works like a charm. Why implement custom controls when we can easily compose windows and instantiate them to a DrawingArea? :-) Anyways, with these two ways, it shouldn't be that difficult to get a view (and function) very similar to the picture. Regards, Tobi [0] http://gambasdoc.org/help/comp/gb.qt4/embedder?v3 [1] http://gambasdoc.org/help/comp/gb.form.mdi/workspace?v3 From gambas at ...1... Tue Apr 30 10:41:38 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 30 Apr 2013 10:41:38 +0200 Subject: [Gambas-user] How to stop "Greedy" constructors consuming parameters In-Reply-To: <517F34E2.7070702@...1979...> References: <1366420395.29273.21.camel@...2688...> <1366444306.29273.29.camel@...2688...> <1366456721.29273.81.camel@...2688...> <517E8500.1060203@...1...> <517F34E2.7070702@...1979...> Message-ID: <517F83C2.30302@...1...> Le 30/04/2013 05:05, Ian Haywood a ?crit : > On 30/04/13 00:34, Beno?t Minisini wrote: > >> If theses twwo arguments must be handled differently between classes, >> then add a public method to handle them. Prefix its name with an >> underscore, to indicate that it must not be called outside of the >> implementation. >> >> ' Root class >> Public Sub _new(Source as String[], Name as String) >> _Init(Source, Name) >> End >> >> ' Any child class >> Public Sub _Init(Source as String[], Name as String) > This is rule around underscores enforced by the compiler (a la Python) > or only a convention? It's a convention used everywhere in the Gambas source code. > > would you consider a Protected access type (like C++) instead? > > Ian > No, I always explained that in a previous mail (don't remember which one). I prefer using a convention, to prevent confusion on what really happens in the background (and keep simplicity). "protected" in C++ is a convention enforced by the compiler, but it's still a public method, i.e. a method that can be called outside of a class (even if it is a child class). I often saw C++ programmers that do not understand how all that klingon object-oriented syntax is implemented in the background. In Gambas, the syntax is far more... basic, but what happens is more clear (you just can be "public" or "private"). Regards, -- Beno?t Minisini From kadri_yusuf at ...2488... Tue Apr 30 14:05:42 2013 From: kadri_yusuf at ...2488... (kadri Yusuf) Date: Tue, 30 Apr 2013 20:05:42 +0800 (SGT) Subject: [Gambas-user] (no subject) Message-ID: <1367323542.90750.YahooMailClassic@...3133...> From taboege at ...626... Tue Apr 30 15:26:39 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 30 Apr 2013 15:26:39 +0200 Subject: [Gambas-user] IDE FSelectIcon does not show pictures Message-ID: <20130430132639.GD559@...2774...> Hi, the FSelectIcon form in the IDE (aka "Project" -> "Properties" -> Click on the icon to select a project icon) does not show any picture on my system. Changing all the commas to semicolons in the Filter string in FSelectIcon.class:32:Form_Open() solves the problem. Didn't we have sort of this problem lately? Maybe [0] is related somehow? Regards, Tobi [0] http://sourceforge.net/mailarchive/message.php?msg_id=30547601 From taboege at ...626... Tue Apr 30 15:39:53 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 30 Apr 2013 15:39:53 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <517E8C9A.7040504@...1...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> Message-ID: <20130430133953.GE559@...2774...> On Mon, 29 Apr 2013, Beno?t Minisini wrote: > I have never found the time to write good examples so you have my full > blessing. > > Just don't work directly on the current examples > (/trunk/examples/example). Just create a new directory > ('/trunk/examples/src' for... example) where you will store all the > example projects, with the structure you want. Once done, I will modify > the IDE to point at the new structure. > I merely thought of just adding a Niveau=X token to the .project file of examples. This would require minimal changes to the actual directory structure because this grouping of projects by topic shall persist. I would rather change the default *sorting* within these groups to ascend in their Niveau values and display the niveau level somewhere around the example's description (in bold). Since the IDE happens to parse each example's .project anyway to display other information this imposes no huge extra costs and can be turned off if someone wants (an extra RadioButton or two to select the sorting scheme will be needed, though). If anyone can imagine a better/more explicit/more elegant (visual) solution to this problem, I'm all ears. Regards, Tobi PS: Benoit, to set the niveau level in the first place, it may be best to add another kind of projects to the "New Project" dialog: examples. Opinions? From gambas at ...1... Tue Apr 30 16:34:00 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 30 Apr 2013 16:34:00 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130430133953.GE559@...2774...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> Message-ID: <517FD658.7090503@...1...> Le 30/04/2013 15:39, Tobias Boege a ?crit : > On Mon, 29 Apr 2013, Beno?t Minisini wrote: >> I have never found the time to write good examples so you have my full >> blessing. >> >> Just don't work directly on the current examples >> (/trunk/examples/example). Just create a new directory >> ('/trunk/examples/src' for... example) where you will store all the >> example projects, with the structure you want. Once done, I will modify >> the IDE to point at the new structure. >> > > I merely thought of just adding a Niveau=X token to the .project file of > examples. I don't like that, changing the .project file stucture just for a very specific case. Why don't you just use the directory structure? /Examples/Beginner/xxx /Examples/Advanced/xxx It's far easier to change the directory structure, and it will need far less work for me. Regards, -- Beno?t Minisini From gambas.fr at ...626... Tue Apr 30 16:37:36 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 30 Apr 2013 16:37:36 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130430133953.GE559@...2774...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> Message-ID: 2013/4/30 Tobias Boege > On Mon, 29 Apr 2013, Beno?t Minisini wrote: > > I have never found the time to write good examples so you have my full > > blessing. > > > > Just don't work directly on the current examples > > (/trunk/examples/example). Just create a new directory > > ('/trunk/examples/src' for... example) where you will store all the > > example projects, with the structure you want. Once done, I will modify > > the IDE to point at the new structure. > > > > I merely thought of just adding a Niveau=X token to the .project file of > examples. This would require minimal changes to the actual directory > structure because this grouping of projects by topic shall persist. I would > rather change the default *sorting* within these groups to ascend in their > Niveau values and display the niveau level somewhere around the example's > description (in bold). > > Since the IDE happens to parse each example's .project anyway to display > other information this imposes no huge extra costs and can be turned off if > someone wants (an extra RadioButton or two to select the sorting scheme > will > be needed, though). > > I think just a special file in the example project will be sufficient. like [Example] Level=Beginner KeyWords=RadioButton, TreeView, Printer Description="This is an example about how to use some control and print the result." Description[FR]="Voici un exemple de comment...etc" Description[ES]="hola... etc" Description[IT]="salve" Then we can add a special form in the ide to manage the examples with this file, so examples can be sorted, searchable, Each examples must be Fully documented using internal help. > If anyone can imagine a better/more explicit/more elegant (visual) solution > to this problem, I'm all ears. > > Regards, > Tobi > > PS: Benoit, to set the niveau level in the first place, it may be best to > add another kind of projects to the "New Project" dialog: examples. > Opinions? > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Tue Apr 30 16:42:54 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 30 Apr 2013 16:42:54 +0200 Subject: [Gambas-user] gridview row heights when cell is wrapped In-Reply-To: <517E8D36.20309@...1...> References: <1367206889.29273.104.camel@...2688...> <517E8D36.20309@...1...> Message-ID: are you sure you not have multiple endline in your string ? can you try with replace("your string", "\n","") ? 2013/4/29 Beno?t Minisini > Le 29/04/2013 05:41, Bruce a ?crit : > > I thought this was solved a long time ago? > > > > gvwinfo[6, 0].Text = "Description" > > gvwinfo[6, 0].Alignment = Align.TopLeft > > gvwinfo[6, 1].WordWrap = True > > gvwinfo[6, 1].RichText = UnQuote($libinfo.Description) > > gvwinfo[6, 1].Alignment =Align.TopLeft > > gvwinfo.Rows[6].Height = -1 > > > > The last line resizes the height of the row, but it is much too high for > > the wrapped text. > > > > Has anyone else seen this behaviour? > > > > Bruce > > > > [Gambas] > > Version = 3.4.0 > > Revision = 6320 > > GUI = QT4 > > > > [System] > > OperatingSystem=Linux > > Kernel=3.2.18-pclos2.bfs > > Architecture=x86 > > Distribution=PCLinuxOS > > Desktop=LXDE > > Theme=QWindows > > Language=en_AU.UTF-8 > > Memory=1517M > > > > [Libraries] > > Curl=libcurl.so.3.0.0 > > GStreamer=libgstreamer-0.10.so.0.29.0 > > GTK+=libgtk-x11-2.0.so.0.2400.10 > > Poppler=libpoppler.so.13.0.0 > > Qt4=libQtCore.so.4.8.4 > > SDL=libSDL-1.2.so.0.11.3 > > > > Mmm, strange... Can you make a little project that reproduces the bug > for me? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From mklaine at ...626... Tue Apr 30 18:51:10 2013 From: mklaine at ...626... (mikael klaine) Date: Tue, 30 Apr 2013 18:51:10 +0200 Subject: [Gambas-user] Gambas3 SVN compilation Problem ARMEL In-Reply-To: References: Message-ID: one other think the segfault of gbc3 cause this on my terminal but not in the log. *** glibc detected *** /usr/bin/gbc3: free(): invalid pointer: 0x0001ffec *** 2013/4/25 mikael klaine > Hi , i have compilation problem with all my armel debian wheezy config > (even in frech install) . > gambas2 compil without problem . > gambas3 compil fail at make install with segfault when it call gbc3. > > From gambas at ...1... Tue Apr 30 19:36:19 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 30 Apr 2013 19:36:19 +0200 Subject: [Gambas-user] Gambas3 SVN compilation Problem ARMEL In-Reply-To: References: Message-ID: <51800113.9000100@...1...> Le 30/04/2013 18:51, mikael klaine a ?crit : > one other think the segfault of gbc3 cause this on my terminal but not in > the log. > *** glibc detected *** /usr/bin/gbc3: free(): invalid pointer: 0x0001ffec > *** > Is it possible for you to grant me an ssh access to the ARMEL computer so that I can debug the compiler directly on it? -- Beno?t Minisini From taboege at ...626... Tue Apr 30 20:47:52 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 30 Apr 2013 20:47:52 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <517FD658.7090503@...1...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> <517FD658.7090503@...1...> Message-ID: <20130430184752.GA507@...2774...> On Tue, 30 Apr 2013, Beno?t Minisini wrote: > Le 30/04/2013 15:39, Tobias Boege a ?crit : > > On Mon, 29 Apr 2013, Beno?t Minisini wrote: > >> I have never found the time to write good examples so you have my full > >> blessing. > >> > >> Just don't work directly on the current examples > >> (/trunk/examples/example). Just create a new directory > >> ('/trunk/examples/src' for... example) where you will store all the > >> example projects, with the structure you want. Once done, I will modify > >> the IDE to point at the new structure. > >> > > > > I merely thought of just adding a Niveau=X token to the .project file of > > examples. > > I don't like that, changing the .project file stucture just for a very > specific case. Why don't you just use the directory structure? > > /Examples/Beginner/xxx > /Examples/Advanced/xxx > > It's far easier to change the directory structure, and it will need far > less work for me. Then we must do some work to retain the grouping into "Basic", "Control", "Games", etc.. Managing a bunch of symlinks seems hard to maintain. IMHO, the grouping shouldn't go away with the relatively small addition of separating beginner and advanced examples. I understand your first argument, that this is only a special case, although a Niveau= line in any other .project wouldn't hurt the least. But let's leave it so, as a matter of principle. As for the second, I didn't know what would be necessary to integrate the new view into the IDE but you don't have to do it. I thought I would modify the IDE locally anyway before I commit the new example structure... Any better way (than the Niveau= line) to merge the two example structures (topic, niveau) into one directory structure? Or should anyone of both go away then? I mean, we don't even need a separation of beginner and advanced, in this case I'll just tidy up the examples. Regards, Tobi From gambas at ...1... Tue Apr 30 20:57:47 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 30 Apr 2013 20:57:47 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130430184752.GA507@...2774...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> <517FD658.7090503@...1...> <20130430184752.GA507@...2774...> Message-ID: <5180142B.2060703@...1...> Le 30/04/2013 20:47, Tobias Boege a ?crit : > On Tue, 30 Apr 2013, Beno?t Minisini wrote: >> Le 30/04/2013 15:39, Tobias Boege a ?crit : >>> On Mon, 29 Apr 2013, Beno?t Minisini wrote: >>>> I have never found the time to write good examples so you have my full >>>> blessing. >>>> >>>> Just don't work directly on the current examples >>>> (/trunk/examples/example). Just create a new directory >>>> ('/trunk/examples/src' for... example) where you will store all the >>>> example projects, with the structure you want. Once done, I will modify >>>> the IDE to point at the new structure. >>>> >>> >>> I merely thought of just adding a Niveau=X token to the .project file of >>> examples. >> >> I don't like that, changing the .project file stucture just for a very >> specific case. Why don't you just use the directory structure? >> >> /Examples/Beginner/xxx >> /Examples/Advanced/xxx >> >> It's far easier to change the directory structure, and it will need far >> less work for me. > > Then we must do some work to retain the grouping into "Basic", "Control", > "Games", etc.. Managing a bunch of symlinks seems hard to maintain. IMHO, > the grouping shouldn't go away with the relatively small addition of > separating beginner and advanced examples. > > I understand your first argument, that this is only a special case, although > a Niveau= line in any other .project wouldn't hurt the least. But let's > leave it so, as a matter of principle. > > As for the second, I didn't know what would be necessary to integrate the > new view into the IDE but you don't have to do it. I thought I would modify > the IDE locally anyway before I commit the new example structure... > > Any better way (than the Niveau= line) to merge the two example structures > (topic, niveau) into one directory structure? Or should anyone of both go > away then? I mean, we don't even need a separation of beginner and advanced, > in this case I'll just tidy up the examples. > > Regards, > Tobi > Bbe more concrete of what "levels" you want, and then we can use real names instead of numbers. The current example grouping is arbitrary. You may have a different grouping for basic/beginner examples than for advanced examples or whatever else. Just make a list of examples, and then we can decide how to group them. -- Beno?t Minisini From taboege at ...626... Tue Apr 30 21:37:15 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 30 Apr 2013 21:37:15 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <5180142B.2060703@...1...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> <517FD658.7090503@...1...> <20130430184752.GA507@...2774...> <5180142B.2060703@...1...> Message-ID: <20130430193715.GB507@...2774...> On Tue, 30 Apr 2013, Beno?t Minisini wrote: > Bbe more concrete of what "levels" you want, and then we can use real > names instead of numbers. > I'd go with the majority's observation: two levels, namely Beginner and Advanced. > The current example grouping is arbitrary. You may have a different > grouping for basic/beginner examples than for advanced examples or > whatever else. > > Just make a list of examples, and then we can decide how to group them. > Of course the above binary distinction will be different. To be honest, I didn't yet look at specific examples to group them newly because my cardinal problem is to offer both: the arbitrary, topic-based grouping, because we're all used to it and it's just sane, *together* with the niveau-based one which should help newcomers to pick the right source to learn from. Actually, the topic grouping will *further* help newbies to navigate through the examples according to their interest. Who would pick a Beginner example from "Multimedia" without knowing about "Basic"? The best thing I could think of - in order to combine both views of the example tree - is to leave the group display as is and sort all the projects according to their niveau level, i.e. Beginner or Advanced (maybe with a visual separator between the groups, if that's possible?), and print that level somewhere around the example's description. I'm still looking for people's opinions (or Bruce's criticism) to get a representative consensus - maybe it's a flaw in our modern upbringing :-) - because examples are things that all have to be content with and that I don't want to change on the fly. (Sorry if this practice annoys anyone.) Regards, Tobi From sebikul at ...626... Tue Apr 30 21:59:07 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Tue, 30 Apr 2013 16:59:07 -0300 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130430193715.GB507@...2774...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> <517FD658.7090503@...1...> <20130430184752.GA507@...2774...> <5180142B.2060703@...1...> <20130430193715.GB507@...2774...> Message-ID: Maybe there is a way to do this already without changing anything. Consider this: The complexity of an example (project?) *may* be given by the amount of components it uses (just thinking out loud). But, if not accurate, it should be a really good approximation. So, sorting the examples by the amount of components it uses may be a short therm solution for this, if not a permanent one, until a consensus is reached. A slight change to the previous approach: assign each component a numerical difficulty and then compute the final score by adding the value of each component used. Then sort them using that value. We would then only need to assess the difficulty of using each component. I know this is not the most accurate solution, but it's much less intrusive. What do you think? On Apr 30, 2013 4:41 PM, "Tobias Boege" wrote: > On Tue, 30 Apr 2013, Beno?t Minisini wrote: > > Bbe more concrete of what "levels" you want, and then we can use real > > names instead of numbers. > > > > I'd go with the majority's observation: two levels, namely Beginner and > Advanced. > > > The current example grouping is arbitrary. You may have a different > > grouping for basic/beginner examples than for advanced examples or > > whatever else. > > > > Just make a list of examples, and then we can decide how to group them. > > > > Of course the above binary distinction will be different. To be honest, I > didn't yet look at specific examples to group them newly because my > cardinal > problem is to offer both: the arbitrary, topic-based grouping, because > we're > all used to it and it's just sane, *together* with the niveau-based one > which should help newcomers to pick the right source to learn from. > > Actually, the topic grouping will *further* help newbies to navigate > through > the examples according to their interest. Who would pick a Beginner example > from "Multimedia" without knowing about "Basic"? > > The best thing I could think of - in order to combine both views of the > example tree - is to leave the group display as is and sort all the > projects > according to their niveau level, i.e. Beginner or Advanced (maybe with a > visual separator between the groups, if that's possible?), and print that > level somewhere around the example's description. > > I'm still looking for people's opinions (or Bruce's criticism) to get a > representative consensus - maybe it's a flaw in our modern upbringing :-) - > because examples are things that all have to be content with and that I > don't want to change on the fly. (Sorry if this practice annoys anyone.) > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Tue Apr 30 21:59:57 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 30 Apr 2013 21:59:57 +0200 Subject: [Gambas-user] gb.desktop: Trinity desktop (3.5.13) Message-ID: <20130430195957.GC507@...2774...> Hi, I have a local patch to gb.desktop which makes it detect and use the default installation of TDE 3.5.13, i.e. Desktop.Type = "TDE" Desktop.OpenTerminal() runs "konsole" Is there anything else required to support a DE? Should TDE be recognised as KDE? Otherwise, I'll commit it up. Note particularly that my TDE default "konsole" does *not* understand the --nofork and --hold parameters which the IDE assumes when running a project in a terminal emulator (see "Project properties") and "konsole" is detected as corresponding to the current Desktop.Type). That's the only problem I found using my everyday use of Gambas. Regards, Tobi From taboege at ...626... Tue Apr 30 22:20:43 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 30 Apr 2013 22:20:43 +0200 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> <517FD658.7090503@...1...> <20130430184752.GA507@...2774...> <5180142B.2060703@...1...> <20130430193715.GB507@...2774...> Message-ID: <20130430202043.GD507@...2774...> On Tue, 30 Apr 2013, Sebastian Kulesz wrote: > Maybe there is a way to do this already without changing anything. Consider > this: > > The complexity of an example (project?) *may* be given by the amount of > components it uses (just thinking out loud). But, if not accurate, it > should be a really good approximation. > > So, sorting the examples by the amount of components it uses may be a short > therm solution for this, if not a permanent one, until a consensus is > reached. > > A slight change to the previous approach: assign each component a numerical > difficulty and then compute the final score by adding the value of each > component used. Then sort them using that value. We would then only need to > assess the difficulty of using each component. > > I know this is not the most accurate solution, but it's much less > intrusive. Wait, how do we assign each component a numerical difficulty level? OK, we have the *.component files but that seems even more intrusive. IMHO more difficult to rate either. Having "Beginner" and "Advanced" in examples makes it feasible that everybody classifies his examples himself. I can only precisely speak about the example I wrote: look at Games/Pong. It only requires gb.ncurses and is complex as hell. OK, admittedly gb.ncurses wouldn't climb too high on the easy-to-use ladder but that can't compensate using three to four graphical components like some other games do. You see: "Games" tend to always be more complex than "Basic" examples and that's why I want to conserve the topic grouping. On the other side, of course, the biggest example, the IDE itself, does somewhat support your idea. If we go and rate the project structure, maybe the number of classes is better, but IMHO still the explicit, human-chosen grouping is best. Regards, Tobi From sebikul at ...626... Tue Apr 30 22:33:16 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Tue, 30 Apr 2013 17:33:16 -0300 Subject: [Gambas-user] Restructuring the official Gambas examples In-Reply-To: <20130430202043.GD507@...2774...> References: <20130428173019.GD556@...2774...> <517E8C9A.7040504@...1...> <20130430133953.GE559@...2774...> <517FD658.7090503@...1...> <20130430184752.GA507@...2774...> <5180142B.2060703@...1...> <20130430193715.GB507@...2774...> <20130430202043.GD507@...2774...> Message-ID: On Apr 30, 2013 5:23 PM, "Tobias Boege" wrote: > > On Tue, 30 Apr 2013, Sebastian Kulesz wrote: > > Maybe there is a way to do this already without changing anything. Consider > > this: > > > > The complexity of an example (project?) *may* be given by the amount of > > components it uses (just thinking out loud). But, if not accurate, it > > should be a really good approximation. > > > > So, sorting the examples by the amount of components it uses may be a short > > therm solution for this, if not a permanent one, until a consensus is > > reached. > > > > A slight change to the previous approach: assign each component a numerical > > difficulty and then compute the final score by adding the value of each > > component used. Then sort them using that value. We would then only need to > > assess the difficulty of using each component. > > > > I know this is not the most accurate solution, but it's much less > > intrusive. > > Wait, how do we assign each component a numerical difficulty level? OK, we > have the *.component files but that seems even more intrusive. IMHO more > difficult to rate either. Having "Beginner" and "Advanced" in examples makes > it feasible that everybody classifies his examples himself. > > I can only precisely speak about the example I wrote: look at Games/Pong. It > only requires gb.ncurses and is complex as hell. OK, admittedly gb.ncurses > wouldn't climb too high on the easy-to-use ladder but that can't compensate > using three to four graphical components like some other games do. > > You see: "Games" tend to always be more complex than "Basic" examples and > that's why I want to conserve the topic grouping. > > On the other side, of course, the biggest example, the IDE itself, does > somewhat support your idea. > > If we go and rate the project structure, maybe the number of classes is > better, but IMHO still the explicit, human-chosen grouping is best. > That's why I said this wasn't the most accurate approach. Ratings can easily be added to the IDE (just as components descriptions), there is no need to modify any .component file. Doing it this way, classes, amount of symbols, amount of forms...there are a lot of variables that will allow you to calculate the difficulty of any project, not just examples. As you said, GB.nurses will increase the difficulty value more than GB.form Stock would do, for example. That's why I suggested rating components rather than examples, there is no need to review every new example that is added, and doing so imposes less changes to be done to the IDE. > Regards, > Tobi > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user