Re: [Gambas-user] Issue 242 in gambas: Gamba forms fail on Debian ARM
kevinfishburne wrote: I just tested gb3's memory consumption with the world generator for my game it it uses about 70 MB of RAM just to load the project. Gambas apps may not consume RAM but I seem to remember that Gambas itself will not compile an app if the m/c does not have 384Mb. It's some time though since I tried to compile with 256Mb and failed. Memory management? :-DThe first money I ever made from computing was using an spreadsheet (Supercalc 1) under CP/M. OS, app and my spreadsheet all sat in 64Kbytes! -- View this message in context: http://old.nabble.com/Issue-242-in-gambas%3A-Gamba-forms-fail-on-Debian-ARM-tp33737503p33744502.html Sent from the gambas-user mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Can't see array contents in the debugger any more?
On Tue, 2012-04-24 at 14:15 +0200, Benoît Minisini wrote: Le 14/04/2012 11:58, Bruce Bruen a écrit : On Fri, 2012-04-13 at 18:17 +0930, Bruce Bruen wrote: Some days ago I updated to rev4607, since then I can't see the contents of arrays in the debugger. It displays the array class instead. Any input please? regards Bruce Benoît, (Sorry about the out of line reply. I accidentally deleted your mail.) Here is a screen shot of what I get when I try to look at the statelist array. Bruce And if you click on the lamp icon in the debugger watch window? Well, as of 4653 this problem has gone away. Magic?? To answer your question, what I got was a very skinny (thin? emaciated? narrow?) row underneath the Bounds row (about 1mm high) that was selectable but didn't actually show anything. I think I'll just go with the flow and leave this one up to the gremlins. cheers Bruce -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 242 in gambas: Gamba forms fail on Debian ARM
2012/4/25 charlesg char...@pearceshardware.co.uk: kevinfishburne wrote: I just tested gb3's memory consumption with the world generator for my game it it uses about 70 MB of RAM just to load the project. Gambas apps may not consume RAM but I seem to remember that Gambas itself will not compile an app if the m/c does not have 384Mb. It's some time though since I tried to compile with 256Mb and failed. Memory management? :-DThe first money I ever made from computing was using an spreadsheet (Supercalc 1) under CP/M. OS, app and my spreadsheet all sat in 64Kbytes! -- View this message in context: http://old.nabble.com/Issue-242-in-gambas%3A-Gamba-forms-fail-on-Debian-ARM-tp33737503p33744502.html Sent from the gambas-user mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas must be present in project Raspberry. Our goal is the same, give the new computer user, the desire to develop. I am ready to conduct the necessary tests ... but how to get one of these machines, or the test may be effected via a virtual machine? -- . Fabien Bodard -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 242 in gambas: Gamba forms fail on Debian ARM
Le 25/04/2012 10:51, Fabien Bodard a écrit : 2012/4/25 charlesgchar...@pearceshardware.co.uk: kevinfishburne wrote: I just tested gb3's memory consumption with the world generator for my game it it uses about 70 MB of RAM just to load the project. Gambas apps may not consume RAM but I seem to remember that Gambas itself will not compile an app if the m/c does not have 384Mb. It's some time though since I tried to compile with 256Mb and failed. Memory management? :-DThe first money I ever made from computing was using an spreadsheet (Supercalc 1) under CP/M. OS, app and my spreadsheet all sat in 64Kbytes! -- View this message in context: http://old.nabble.com/Issue-242-in-gambas%3A-Gamba-forms-fail-on-Debian-ARM-tp33737503p33744502.html Sent from the gambas-user mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas must be present in project Raspberry. Our goal is the same, give the new computer user, the desire to develop. I am ready to conduct the necessary tests ... but how to get one of these machines, or the test may be effected via a virtual machine? -- . Fabien Bodard Yes, with QEMU. Everything is explained on the net, just follow the link provided in the issue tracker. The problem I have is that Raspberry provides an image disk with not enough free space on it (less than 300Mb) to install all the needed development packages. I don't know how to take their image disk and add free space to it, I even don't know if it is possible. -- Benoît Minisini -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Can't see array contents in the debugger any more?
Le 25/04/2012 10:27, Bruce Bruen a écrit : And if you click on the lamp icon in the debugger watch window? Well, as of 4653 this problem has gone away. Magic?? To answer your question, what I got was a very skinny (thin? emaciated? narrow?) row underneath the Bounds row (about 1mm high) that was selectable but didn't actually show anything. I think I'll just go with the flow and leave this one up to the gremlins. cheers Bruce Mmm. Strange... Nothing was changed in the IDE debugger since the one that allows to switch between array / collection contents and properties. -- Benoît Minisini -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Screen positions vary with resolution
Le 17/04/2012 08:36, Rolf-Werner Eilert a écrit : Good morning Benoit, After thinking this over and trying around a bit this morning, I guess I finally understood (sometimes I'm somewhat slow :-) ) With the higher resolution the fonts are enlarged to keep everything comfortable and readable. Then all elements in the form are enlarged by the same factor to keep the form about the same real-world size it had before. My labels, however, still refer to actual XY screen pixels. I looked into another project this morning and found the same thing: forms have been enlarged, fonts are wider, but not every graphic element can follow (e. g. there is a photo shown, and it scales too small as the frame is shown wider now). Trying to set this form's (Scaled) to FALSE didn't help, everything stays large. Do you have any idea what else I could try to keep everything as large as it was created for SXGA? On the other hand, I don't mind forms adapting to screen resolution, but then I will need to somehow read their scaling factor (for such things as the photo for instance). Is there any function for it? Thanks for your help. Regards Rolf You must use MoveScale() and ResizeScaled() when creating controls manually, instead of Move() and Resize(). These functions just multiply their arguments by the scale factor (which is Desktop.Scale). Regards, -- Benoît Minisini -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 244 in gambas: Several qt components ignores color.foreground property
Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 244 by benoit.m...@gmail.com: Several qt components ignores color.foreground property http://code.google.com/p/gambas/issues/detail?id=244 (No comment was entered for this change.) -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 242 in gambas: Gamba forms fail on Debian ARM
Le 25 avril 2012 10:57, Benoît Minisini gam...@users.sourceforge.net a écrit : Le 25/04/2012 10:51, Fabien Bodard a écrit : 2012/4/25 charlesgchar...@pearceshardware.co.uk: kevinfishburne wrote: I just tested gb3's memory consumption with the world generator for my game it it uses about 70 MB of RAM just to load the project. Gambas apps may not consume RAM but I seem to remember that Gambas itself will not compile an app if the m/c does not have 384Mb. It's some time though since I tried to compile with 256Mb and failed. Memory management? :-DThe first money I ever made from computing was using an spreadsheet (Supercalc 1) under CP/M. OS, app and my spreadsheet all sat in 64Kbytes! -- View this message in context: http://old.nabble.com/Issue-242-in-gambas%3A-Gamba-forms-fail-on-Debian-ARM-tp33737503p33744502.html Sent from the gambas-user mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas must be present in project Raspberry. Our goal is the same, give the new computer user, the desire to develop. I am ready to conduct the necessary tests ... but how to get one of these machines, or the test may be effected via a virtual machine? -- . Fabien Bodard Yes, with QEMU. Everything is explained on the net, just follow the link provided in the issue tracker. The problem I have is that Raspberry provides an image disk with not enough free space on it (less than 300Mb) to install all the needed development packages. I don't know how to take their image disk and add free space to it, I even don't know if it is possible. -- Benoît Minisini By removing py not needed paquage ? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 243 in gambas: (WHISH) Allow to set header color in gridview
Updates: Status: NeedsInfo Labels: -Version -Type-Bug -Priority-Medium Version-TRUNK Type-Enhancement Priority-Low Comment #1 on issue 243 by benoit.m...@gmail.com: (WHISH) Allow to set header color in gridview http://code.google.com/p/gambas/issues/detail?id=243 Are the header visible with revision #4671? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 245 in gambas: Wrong behaviour in desktop.w and screen.w on dual head?
Comment #2 on issue 245 by benoit.m...@gmail.com: Wrong behaviour in desktop.w and screen.w on dual head? http://code.google.com/p/gambas/issues/detail?id=245 I think now you should use the Screen and Screens classes. Screens.Count gives you the number of screens, and Screens[] returns a Screen object that allows you to get its geometry. Logically, there is no global available space, as two screens can have different sizes, and can be layout in many different ways. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 245 in gambas: Wrong behaviour in desktop.w and screen.w on dual head?
Comment #3 on issue 245 by kokok...@gmail.com: Wrong behaviour in desktop.w and screen.w on dual head? http://code.google.com/p/gambas/issues/detail?id=245 Oh wow, i totally missed the screens class, i think i can manage to get the same info as before with it, but i'm pretty sure the generic screen.w worked in the past. If you want, tomorrow i can test an older gambas version (maybe 3.0), that (if i remember well) worked that way. Thanks. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 242 in gambas: Gamba forms fail on Debian ARM
Fabien Bodard-4 wrote: but how to get one of these machines? I have emailed Raspberry Pi to see if they have any development kits. Standing in RS Components or Premier Farnell queue would I fear take forever. -- View this message in context: http://old.nabble.com/Issue-242-in-gambas%3A-Gamba-forms-fail-on-Debian-ARM-tp33737503p33745482.html Sent from the gambas-user mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 244 in gambas: Several qt components ignores color.foreground property
Comment #3 on issue 244 by kokok...@gmail.com: Several qt components ignores color.foreground property http://code.google.com/p/gambas/issues/detail?id=244 Well, i'm sure i cannot change fileview foreground color, even from the ide it doesn't. And i've to add listbox to the list. Attached you can see what is happening here, i tried with a qtcurve and with an oxygen style to be sure. Attachments: foreground.png 132 KB -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 243 in gambas: (WHISH) Allow to set header color in gridview
Comment #2 on issue 243 by kokok...@gmail.com: (WHISH) Allow to set header color in gridview http://code.google.com/p/gambas/issues/detail?id=243 i wrote very bad, my fault, it is not the header to be not visible, but the text over it. I'll compile and try #4671 by tomorrow, thanks. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] rev. 4651 and new gb.xml
Le lundi 23 avril 2012 18:47:10 Charlie Reinl a écrit : Am Montag, den 23.04.2012, 00:39 +0200 schrieb Adrien Prokopowicz: Le dimanche 22 avril 2012 23:39:27 Charlie Reinl a écrit : Salut Adrien, works better since rev #4657. but I get a signal 6 at the seconde Out = XSLT.Transform(Xml, Xsl) here I attached a demo where you can see it. This (the FromXML_old is the working version before you changes) is the original sub I use. You got this signal because the resulting document of XSLT.Transform(Xml, Xsl) was empty, and hadn't any root element. I solved the problem in the rev #4659, but you should check if your resulting documents are all valid, in all cases, otherwise the parser may crash and/or return an empty document. Salut Adrien, the attached test.tar.gz is the same project newXML as yesterday I only activated the FromXML_old branch. And I packed also the 2 temporary files, to show you the output. I used gambas 3.1 r4638 for. What I understood till now, whether the new gb.xml is stricter then the old one and my 2 xlst are not well done xlst-files or your XLST.Transform does not working right yet. Yes, the new xslt.Transform is stricter that the old one, as the output document is parsed into memory via the XmlDocument parser, so it must be XML- valid. When I look at the temporary document, for me it is not an XML file, just because there isn't any root element. The W3C validator (validator.w3.org) and my parser (that shows errors in console since rev #4672) says the same thing as me. So, you'll have to add a root element (like xml) to your stylesheets, for the output document to be valid, and do not raise errors when parsing. Moreover, you should put your text datas into CDATAs section, if you don't want to be annoyed by the special characters (like etc...). -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] rev. 4651 and new gb.xml
Le lundi 23 avril 2012 01:14:25 Caveat a écrit : I'm now on 4659... = Is FromString available in the new gb.xml or not? = Yes it is, since the rev #4673. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 244 in gambas: Several qt components ignores color.foreground property
Comment #5 on issue 244 by pierre.g...@gmail.com: Several qt components ignores color.foreground property http://code.google.com/p/gambas/issues/detail?id=244 Fixed in revision #4674. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 244 in gambas: Several qt components ignores color.foreground property
Updates: Status: Fixed Comment #6 on issue 244 by benoit.m...@gmail.com: Several qt components ignores color.foreground property http://code.google.com/p/gambas/issues/detail?id=244 Fixed in revision #4674. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] PhotoTouch example
Salut, this is destined to the author of PhotoTouch. Please test you project with a new user and nothing (no camera) attached to the computer. Because like that it crashes. Thanks -- Amicalement Charlie -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] PhotoTouch example
Le 25/04/2012 13:56, Karl Reinl a écrit : Salut, this is destined to the author of PhotoTouch. Please test you project with a new user and nothing (no camera) attached to the computer. Because like that it crashes. Thanks Do you have more details ? -- Benoît Minisini -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] PhotoTouch example
On 25-4-2012 15:40, Benoît Minisini wrote: Le 25/04/2012 13:56, Karl Reinl a écrit : Salut, this is destined to the author of PhotoTouch. Please test you project with a new user and nothing (no camera) attached to the computer. Because like that it crashes. Thanks Do you have more details ? Don't know what the other persons error is, but here it says upon start. Null object in FMain:879 line is: ivwImage[$iIndex].EnsureVisible If I comment it, it runs as far as I can see. This is on a new svn compile (trunk) on Ubuntu 12.04 Regards_2nd, Ron. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Regular Expressions :: Error with gb.pcre component
Le 25/04/2012 18:58, Daniel Quintero a écrit : Hello, I have an error in this line of code when I use the \s constant in the pattern: re = New Regexp(sText, span\s([^]*)) If I use span([^]*) (Without the \s) I have no error. The error occurs when I press the F5 function key to execute the program. This is the error text: This application has raised an unexpected error and must abort. [11] Unknown symbol 'Editor' in class 'FForm'. Project.CompileError.2072 And this is the complete code: Public Sub Button1_Click() Dim re As Regexp Dim sText As String = TextArea1.Text Dim matches As New String[] Dim i As Integer ' Error with de \s constant in the pattern re = New Regexp(sText, span\s([^]*)) Do While re.offset= 0 And sText matches.push(re.text) If Len(sText) Len(re.text) Then sText = Mid(sText, re.offset + Len(re.text) + 1) Else sText = End If If sText Then re.exec(sText) Loop For i = 0 To matches.Max Print matches[i] Next End I have attached the project to more clarity. Thanks. *_* *Lic. Daniel Quintero Rojas* http://www.dquinter.com.mx http://futbol.dquinter.com.mx http://twitter.com/#!/dquinteror *¡Saludos desde México!** * This is a bug in the compiler and in your code. Do you use the last revision? If not, just fix your regular expression by quoting the '\' with another '\' (because '\' is both the quoting character in Gambas string and in regular expressions!) Regards, -- Benoît Minisini -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Fwd: I must take a break
Message original Sujet: I must take a break Date : Wed, 25 Apr 2012 17:31:00 +0200 De :Dag-Jarle Johansen dag.jarle.johan...@gmail.com Pour : gam...@users.sourceforge.net hi all of you! as programming all kind of stuff has bin my favourite over 35 years (besides playing e-guitar, sailing, all sort of that things norwegians do when they are fit, travel -enough). in a long time of my adult life I have worked very hard; I have sold computers, repaired them (abaut 6000), and programmed on unix, linux and windows - not the big ones, but for me as almost soloplayer it was sometimes a lot to do. the language I learned to love most is - gambas but as I went from argentina to norway again, to take care of my old father, my linux-HD broke, and a little later the whole PC. and where do I ave the backups? in argentna the real course is - every human is getting older; I am 54, but I am certain, that I worked twice as much as a normal worker. and now come the results - I can hardly keep the mouse in my hand, however I try to sleep it hurts. I will just warn a little :) - dont you extend it too long - take care of your body -you will need it later. (I am not a vegetarian, I love beer, a good wine, a good meal, the other sex..) I will be back - start from the ground, I suppose but for the moment - take care of myself. * so after this very short intrudoction -how do I get out of the mailing list?* its just too much for me at the moment keep on ging guys, this ist the best stuff ever many regards from Dag-Jarle PS. I am pprod of you -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Regular Expressions :: Error with gb.pcre component
Mmm, I updated my Gambas 3.1 last week, I don't know exactly what revision is, but is recent. Ok, I will fix my code. Thanks. *_* *Lic. Daniel Quintero Rojas* http://www.dquinter.com.mx http://futbol.dquinter.com.mx http://twitter.com/#!/dquinteror *¡Saludos desde México!** * 2012/4/25 Benoît Minisini gam...@users.sourceforge.net Le 25/04/2012 18:58, Daniel Quintero a écrit : Hello, I have an error in this line of code when I use the \s constant in the pattern: re = New Regexp(sText, span\s([^]*)) If I use span([^]*) (Without the \s) I have no error. The error occurs when I press the F5 function key to execute the program. This is the error text: This application has raised an unexpected error and must abort. [11] Unknown symbol 'Editor' in class 'FForm'. Project.CompileError.2072 And this is the complete code: Public Sub Button1_Click() Dim re As Regexp Dim sText As String = TextArea1.Text Dim matches As New String[] Dim i As Integer ' Error with de \s constant in the pattern re = New Regexp(sText, span\s([^]*)) Do While re.offset= 0 And sText matches.push(re.text) If Len(sText) Len(re.text) Then sText = Mid(sText, re.offset + Len(re.text) + 1) Else sText = End If If sText Then re.exec(sText) Loop For i = 0 To matches.Max Print matches[i] Next End I have attached the project to more clarity. Thanks. *_* *Lic. Daniel Quintero Rojas* http://www.dquinter.com.mx http://futbol.dquinter.com.mx http://twitter.com/#!/dquinteror *¡Saludos desde México!** * This is a bug in the compiler and in your code. Do you use the last revision? If not, just fix your regular expression by quoting the '\' with another '\' (because '\' is both the quoting character in Gambas string and in regular expressions!) Regards, -- Benoît Minisini -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Regexp based highlighting
Hi, it's some time since I last used the Highlight class together with the gb.qt4.ext Editor and I personally found it quite painful in the beginning. I hope, I did nothing wrong when I constructed a large Editor_Highlight() handler? However, my question is about a Regexp based Highlighting. Does it already exists? A sample I can provide for that, is vim. I think about implementing that (at least) when I extend the gb.ncurses component to TextBoxes and stuff (what the ncurses forms library provides), it may be of help in the GUI world, too, I'm almost sure. Remarks? (From Benoît perhaps? I saw that there exist several Highlight* classes that do the job for quite some languages, so I _suppose_ that there's no such automatism?) Regards, Tobi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Bug with Format(GB.MediumTime)
Le 25/04/2012 20:33, Adrien Prokopowicz a écrit : Hi, I use the Format() function, to make dates and times consistent, whatever the locale I use. Bun I have a problem in French with the gb.MediumTime constant, here is what it returns : ?Format(Now, GB.ShortTime) 20:26 ?Format(Now, GB.MediumTime) 08:26 With an english locale, i get 08:26 PM (that I want), shouldn't it be 20:26 in French ? Regards, Adrien. Fixed in revision #4677. Regards, -- Benoît Minisini -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Regexp based highlighting
Le 25/04/2012 20:24, tobi a écrit : Hi, it's some time since I last used the Highlight class together with the gb.qt4.ext Editor and I personally found it quite painful in the beginning. I hope, I did nothing wrong when I constructed a large Editor_Highlight() handler? However, my question is about a Regexp based Highlighting. Does it already exists? In Gambas ? No. A sample I can provide for that, is vim. I think about implementing that (at least) when I extend the gb.ncurses component to TextBoxes and stuff (what the ncurses forms library provides), it may be of help in the GUI world, too, I'm almost sure. Good idea. Remarks? (From Benoît perhaps? I saw that there exist several Highlight* classes that do the job for quite some languages, so I _suppose_ that there's no such automatism?) Regards, Tobi -- Benoît Minisini -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] PhotoTouch example
Am Mittwoch, den 25.04.2012, 15:40 +0200 schrieb Benoît Minisini: Le 25/04/2012 13:56, Karl Reinl a écrit : Salut, this is destined to the author of PhotoTouch. Please test you project with a new user and nothing (no camera) attached to the computer. Because like that it crashes. Thanks Do you have more details ? Salut Benoît, till now everything works fine about I found in rev 4676. -- Amicalement Charlie -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] New XML component
Thanks Adrien! Your change has inspired me to go through and re-check the logic of my XMLParserToModel class and I have made a few changes to tighten up on checking the reader.Node for NULL and to implement the change you suggested (check state of the reader for EndElement instead of checking for a Node with type EndElement (which the old gb.xml used to return)). Both the generic XML Editor and the generic XML To TreeView Forms are working fine now. I have also successfully run the test suite which tests making changes to XML based on tags and values etc. (the module named Test in the project I sent earlier)... see results below: *** Provide some sample XML as a String *** inputString = ?xml version=1.0 encoding=ISO-8859-1??xml-stylesheet type = text/css href = cd_catalog.css?all_ordersorder priority=rushid20101120123/iddescrubber duck/desc/orderorder priority=normalid20101120124/iddescs ponge/desc/order/all_orders *** Now parse the XML * parserToModel.parseInputString(inputString) *** Get the model out of the parserToModel object and ask it to represent itself as XML *** parserToModel.getModel().toXMLString() all_orders order priority=rush id20101120123/id descrubber duck/desc /order order priority=normal id20101120124/id descsponge/desc /order /all_orders *** *** Read the original Heroes input XML (See http://pastebin.com/aR11N5uc) *** parserToModel.parseInputFile(User.home / Heroes.xml) *** Look at the original XML we have in our internal data model *** parserToModel.getModel().toXMLString() all_characters characters series=Heroes heroe id=1, name=Claire Bennet nameClaire Bennet/name played_byHayden Panettiere/played_by abilityRapid cellular regeneration/ability /heroe heroe id=2, name=Hiro Nakamura nameHiro Nakamura/name played_byMasi Oka/played_by abilitySpace-time manipulation: teleportation amp; time travel/ability /heroe villain id=1, name= Gabriel Sylar nameGabriel Sylar/name played_byZachary Quinto/played_by abilityUnderstand how things work and multiple other abilities acquired/ability /villain /characters characters series=Banana Splits heroe id=1, name=Graham nameGraham/name played_byGraham Bell/played_by abilityBeing silly/ability /heroe heroe id=2, name=Bill nameBill/name played_byBill Odie/played_by abilityBeing very silly/ability /heroe heroe id=3, name=Tim nameTim/name played_byTim Brook Taylor/played_by abilityBeing very very silly/ability /heroe /characters /all_characters *** *** All existing Text Entities in /all_characters/characters/heroe/name with current value Claire Bennet will be updated to Banana Pudding *** rewriter.updateTextByPath(/all_characters/characters/heroe/name, Claire Bennet, Banana Pudding) *** All existing Text Entities in /all_characters/characters/villain/played_by will be updated to Someone evil regardless of the current content rewriter.updateTextByPath(/all_characters/characters/villain/played_by, NULL, Someone evil) *** All Text Entities with the value Being silly get updated to Being a complete donut brain rewriter.updateTextByValue(Being silly, Being a complete donut brain) *** Change the value of the attribute named id to h1 on all Entities having an Attribute named name with a value of Claire Bennet rewriter.changeAttribute(/all_characters/characters/heroe, name, Claire Bennet, id, h1) *** Change the value of the attribute named id to h2 on all Entities having an Attribute named name with a value of Hiro Nakamura rewriter.changeAttribute(/all_characters/characters/heroe, name, Hiro Nakamura, id, h2) *** First correct a fault in the XML (Attribute called name has an erroneous space at the front of the value) *** So this will change the value of the Attribute named name to Gabriel Sylar on all Entities having an Attribute named name with a value of Gabriel Sylar (note the leading space) rewriter.changeAttribute(/all_characters/characters/villain, name, Gabriel Sylar, name, Gabriel Sylar) *** Now continue updating the ids *** Write out the new XML from the changed internal data model (See http://pastebin.com/T0S96xiS) rewriter.writeXML(User.home / dev / NewHeroes.xml, TRUE, UTF-8) *** Look at the new XML from the changed internal data model *** parserToModel.getModel().toXMLString() all_characters characters series=Heroes heroe id=h1, name=Claire Bennet nameBanana Pudding/name
Re: [Gambas-user] Issue 242 in gambas: Gamba forms fail on Debian ARM
Comment #5 on issue 242 by tvijlbr...@gmail.com: Gamba forms fail on Debian ARM http://code.google.com/p/gambas/issues/detail?id=242 Eureka: user@Nokia-N800-43-7:/media/data/user/gamba/gambas3-3.1.1$ gcc testpow.c user@Nokia-N800-43-7:/media/data/user/gamba/gambas3-3.1.1$ ./a.out 8 segmentation fault user@Nokia-N800-43-7:/media/data/user/gamba/gambas3-3.1.1$ cat testpow.c #include math.h #include stdio.h long double powl(long double x, long double y) { return pow(x, y); } int main() { long double i= -5; printf(%d\n, sizeof(i)); for (; i=5; i++) printf(%g\n, (double)10*pow(10,i)); } So defining a version of powl causes the segfault! What happens under the hood is that the symbol powl is replaced by pow by the compiler. So the powl(long double,long double) is mapped to pow(double,double). Your powl() definition turns into double pow(double x, double y) { return pow(x, y); } A recursive funtion which eats up the stack until it segfaults. I'm now recompiling with a patched config.h: /* Define if you have modfl function. */ /* #undef HAVE_MODFL */ #define HAVE_MODFL 1 /* Define if you have powl function. */ /* #undef HAVE_POWL */ #define HAVE_POWL 1 I'm not sure about the (best) fix. Suggestions? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 242 in gambas: Gamba forms fail on Debian ARM
Comment #6 on issue 242 by tvijlbr...@gmail.com: Gamba forms fail on Debian ARM http://code.google.com/p/gambas/issues/detail?id=242 Removing the powl() definitin results in the IDE loading a load of files and it ends in: Breakpoint 2, CLASS_load_without_init (class=0x10ec6c) at gbx_class_load.c:887 887 { $65 = 0x10ba74 Workspace Breakpoint 2, CLASS_load_without_init (class=0x108c7c) at gbx_class_load.c:887 887 { $66 = 0x108d14 Highlight Breakpoint 2, CLASS_load_without_init (class=0x11ffbc) at gbx_class_load.c:887 887 { $67 = 0x120054 CReportBrush ERROR: #2: Cannot load class 'CReportBrush': Unable to load class file Program exited with code 01. == Any hint about the cause? The diagnostic is very terse -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 239 in gambas: Hide columns in tableview
Comment #4 on issue 239 by flynetin...@gmail.com: Hide columns in tableview http://code.google.com/p/gambas/issues/detail?id=239 In my version of ubuntu 11.04. the tableview is not working properly. Attached project with tableview. When you run, the columns that should be hidden or displayed 1px width, appear with width of about 50px. Please check this Attachments: tablas-pj.tar.gz 5.7 KB -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas 3 on Raspberry Pi
At least the interpreter and the compiler compile correctly (with only one strange warning). I will try to continue on compiling Gambas, but the QEMU ARM emulator is very slow, so it takes hours. -- Benoît Minisini attachment: raspberrypi.png-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 242 in gambas: Gamba forms fail on Debian ARM
Comment #7 on issue 242 by tvijlbr...@gmail.com: Gamba forms fail on Debian ARM http://code.google.com/p/gambas/issues/detail?id=242 gamba3 runs after a recompile and install. I restored the config.h and I'm now doing a recompile with gbx_match.c changed to: ... #ifndef __arm__ #ifndef HAVE_POWL long double powl(long double x, long double y) { return pow((double) x, (double) y); } #endif #ifndef HAVE_MODFL long double modfl(long double x, long double *iptr) { double val; double retval= modf((double)x, val); *iptr = val; return retval; } #endif #endif ... -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user