Re: [Gambas-user] New feature in Gambas 3
On 05/19/2012 07:58 AM, Benoît Minisini wrote: Hi, I have just added the ability to profile a project from the IDE. This is not finished yet. At the moment, the IDE will tell you how much time you spend in each function, and, for each function, how much time is spent in other functions called from it. Next, I will try to profile each line of code. I hope it will help to optimize your projects! Regards, That is an awesome feature. I've been doing this manually in code, so thank you. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 -- 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] Error in Left$ and Mid$ functions to the gb.ncurses component
Hi, I have been testing the component ncurses and so far everything well, but the functions mentioned in the title simply do not work. Below is a sample code: #!/usr/bin/env gbs3 USE gb.ncurses dim hwin As Window dim cadena, cad as string cadena = Hola Mundo cad = left(cadena) hwin = New Window(0, 0, 20, 30) hwin.Background = Color.Blue hwin.show() hwin.Full() hwin.print(right$(cadena), 0, 0) hwin.print(right$(cadena, 3), 0, 1) hwin.print(right$(cadena, -3), 0, 2) hwin.print(left$(cadena), 0, 3) hwin.print(left$(cadena, 3), 0, 4) hwin.print(left$(cadena, -3), 0, 5) hwin.print(mid$(cadena, 2, 2), 0, 6) hwin.WaitKey() And this is the output o ndo a Mundo Hola Mundo Hola Mundo Hola Mundo ola Mundo [System] OperatingSystem=Linux Kernel=3.2.0-1-686-pae Architecture=i686 Memory=2065228 kB DistributionVendor=Asturix DistributionRelease=Asturix 4 Desktop=Gnome [Gambas 3] Version=3.1.90 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.1 GTK+=libgtk-x11-2.0.so.0.2400.10 P.D. Sorry for my english, this is not my native language -- William Cabrera http://willicab.gnu.org.ve -- 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] Bug on Gambas official website
Hi all, I noticed that on gambas.sourceforge.net homepage, we can't scroll anymore, and a part of the last news frame is cut. The problem is solved when, in home.html, i remove the overflow: hidden on the body element. Has someone else already got this problem ? Regards. -- 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 on Gambas official website
Le 20/05/2012 18:15, Adrien Prokopowicz a écrit : Hi all, I noticed that on gambas.sourceforge.net homepage, we can't scroll anymore, and a part of the last news frame is cut. The problem is solved when, in home.html, i remove the overflow: hidden on thebody element. Has someone else already got this problem ? Regards. This is intented, I didn't like the scrollbars. :-) If you want to see all the news, you must click on the Last News link in the tab title. 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] Bug on Gambas official website
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20/05/2012 18:15, Adrien Prokopowicz wrote: Hi all, I noticed that on gambas.sourceforge.net homepage, we can't scroll anymore, and a part of the last news frame is cut. The problem is solved when, in home.html, i remove the overflow: hidden on the body element. Has someone else already got this problem ? I'm experiencing the same issue. Regards - -- Matteo -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPuRp2AAoJED3LowjDDWbNLXkH/RhETQJlHIDyqH2TKgRgEqH+ AD8hTPN5wJPgZK0bXk37jsNLUQ0s47RFsLY3lCieV8qGrBrMpvhjsWZ4RoU9/Qj4 NQslwgrqYXCKPlM+b1XhPKrA1OGtyjlLv1bRPWOtCh13mPXRlYfuhJiraOb9qC3E nGsbk1Twz8pJn/e/tFG3vFABxu1JtWQJGZ5gGBq96LugXOpgexYe/RDH9PC3uqZ0 c1sHpmrvDMpUan4Bhu8Zo4egKTO+lPI8GoUplBMMCLd42WblSTA08X9GTtmbfYJ3 O+brS6CiDREMFtPL3B/M8S6hg4xAN4GsXIO7fv9+CVHa/kJ9dLomqJaObAmnUe0= =2ZW8 -END PGP SIGNATURE- -- 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 on Gambas official website
Then the page should be changed to infer that as at the moment the page infers scrolling since the content continues past the page bottom. From a UI perspective this is not good communication with the user On Sun, May 20, 2012 at 9:23 AM, Matteo Pasotti matteo.paso...@gmail.comwrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20/05/2012 18:15, Adrien Prokopowicz wrote: Hi all, I noticed that on gambas.sourceforge.net homepage, we can't scroll anymore, and a part of the last news frame is cut. The problem is solved when, in home.html, i remove the overflow: hidden on the body element. Has someone else already got this problem ? I'm experiencing the same issue. Regards - -- Matteo -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPuRp2AAoJED3LowjDDWbNLXkH/RhETQJlHIDyqH2TKgRgEqH+ AD8hTPN5wJPgZK0bXk37jsNLUQ0s47RFsLY3lCieV8qGrBrMpvhjsWZ4RoU9/Qj4 NQslwgrqYXCKPlM+b1XhPKrA1OGtyjlLv1bRPWOtCh13mPXRlYfuhJiraOb9qC3E nGsbk1Twz8pJn/e/tFG3vFABxu1JtWQJGZ5gGBq96LugXOpgexYe/RDH9PC3uqZ0 c1sHpmrvDMpUan4Bhu8Zo4egKTO+lPI8GoUplBMMCLd42WblSTA08X9GTtmbfYJ3 O+brS6CiDREMFtPL3B/M8S6hg4xAN4GsXIO7fv9+CVHa/kJ9dLomqJaObAmnUe0= =2ZW8 -END PGP SIGNATURE- -- 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 -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -- 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] Error in Left$ and Mid$ functions to the gb.ncurses component
On Sun, 20 May 2012, Benoît Minisini wrote: Le 20/05/2012 16:26, William Cabrera a écrit : Hi, I have been testing the component ncurses and so far everything well, but the functions mentioned in the title simply do not work. Below is a sample code: #!/usr/bin/env gbs3 USE gb.ncurses dim hwin As Window dim cadena, cad as string cadena = Hola Mundo cad = left(cadena) hwin = New Window(0, 0, 20, 30) hwin.Background = Color.Blue hwin.show() hwin.Full() hwin.print(right$(cadena), 0, 0) hwin.print(right$(cadena, 3), 0, 1) hwin.print(right$(cadena, -3), 0, 2) hwin.print(left$(cadena), 0, 3) hwin.print(left$(cadena, 3), 0, 4) hwin.print(left$(cadena, -3), 0, 5) hwin.print(mid$(cadena, 2, 2), 0, 6) hwin.WaitKey() And this is the output o ndo a Mundo Hola Mundo Hola Mundo Hola Mundo ola Mundo [System] OperatingSystem=Linux Kernel=3.2.0-1-686-pae Architecture=i686 Memory=2065228 kB DistributionVendor=Asturix DistributionRelease=Asturix 4 Desktop=Gnome [Gambas 3] Version=3.1.90 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.1 GTK+=libgtk-x11-2.0.so.0.2400.10 P.D. Sorry for my english, this is not my native language -- William Cabrera http://willicab.gnu.org.ve This is a bug in the gb.ncurses component whose methods do not read their string arguments correctly. Tobi are you here? -- 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 I'm here and working! Sorry, haven't read the subject entirely when I first saw the incoming mail... So you expect this output in the window, right?: o ndo a Mundo H Hol Hola Mu ol So my question bounces to Benoît: It's said in the docs that the three string functions used above are optimised so that they don't duplicate strings. Does that mean or is it a general fact that I cannot rely on the STRING() macro to extract a NUL-terminated string from a given GB_STRING argument? At least there doesn't seem to be a NUL byte which causes the component to print everything that follows until the end of the original string... Brief explanation and after lunch, it's done. 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 on Gambas official website
On Sun, 20 May 2012, Randall Morgan wrote: Then the page should be changed to infer that as at the moment the page infers scrolling since the content continues past the page bottom. From a UI perspective this is not good communication with the user Well, I got the intention promptly and IMHO it looks nice - strange though for the first moment when you realise that half of a line is cut away and you cannot scroll. Alright, it's not good for a UI but this box is just a preview of things that are anyway only presented and as that, it's purpose is to look good. 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] Error in Left$ and Mid$ functions to the gb.ncurses component
Le 20/05/2012 18:43, tobi a écrit : So my question bounces to Benoît: It's said in the docs that the three string functions used above are optimised so that they don't duplicate strings. Does that mean or is it a general fact that I cannot rely on the STRING() macro to extract a NUL-terminated string from a given GB_STRING argument? At least there doesn't seem to be a NUL byte which causes the component to print everything that follows until the end of the original string... Brief explanation and after lunch, it's done. Regards, Tobi No problem, I never told you how it works, so you couldn't guess! Gambas strings are not C strings (i.e. null byte terminated), but a combination of a string pointer (char *) and a length. To get the string pointer from a string argument, you must use the STRING() macro, but you already knew. To get the length of a string argument, you must use the LENGTH() macro. Now, the problem is that sometimes you cannot deal with such strings, and need a C-string. Hopefully, the interpreter provides the GB.ToZeroString() API that takes the string argument (through the ARG() macro) and returns a temporary C-string that will be automatically freed later. So, either you have: BEGIN_METHOD(MyMethod, GB_STRING arg) my_function(STRING(arg), LENGTH(arg)); END_METHOD or (if you really need a C-string): BEGIN_METHOD(MyMethod, GB_STRING arg) my_function(GB.ToZeroString(ARG(arg))); END_METHOD 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] Bug on Gambas official website
I still think that to better communicate with the user the content should be truncated. Perhaps then followed with an ellipse (...) to show continuation and the perhaps a more or read more link place at the end. This would better communicate to the user that the continent continues and how to get the rest of it. Also, should the objective of the documentation site be to communicate various topics to the user. To educate them. I'll agree that style and eye appeal are a big part of that communication. After all if it doesn't look appealing the user wont bother to read it. How much difficult do you find read those plain text site than a well laid out site with graphics and styled text? However, if you come to a site that has a great look but is difficult to navigate the user can become frustrated and leave the site. So the whole package becomes important. As my grand father used to tell me The most important part of anything is the one not working. JMO On Sun, May 20, 2012 at 9:55 AM, tobi tobiasboeg...@googlemail.com wrote: On Sun, 20 May 2012, Randall Morgan wrote: Then the page should be changed to infer that as at the moment the page infers scrolling since the content continues past the page bottom. From a UI perspective this is not good communication with the user Well, I got the intention promptly and IMHO it looks nice - strange though for the first moment when you realise that half of a line is cut away and you cannot scroll. Alright, it's not good for a UI but this box is just a preview of things that are anyway only presented and as that, it's purpose is to look good. 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 -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -- 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 on Gambas official website
On 05/20/2012 01:08 PM, Randall Morgan wrote: leave the site. So the whole package becomes important. As my grand father used to tell me The most important part of anything is the one not working. JMO Wise words, I like that. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 -- 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 feature in Gambas 3
Thanks! It's great! Jussi On Sat, May 19, 2012 at 2:58 PM, Benoît Minisini gam...@users.sourceforge.net wrote: Hi, I have just added the ability to profile a project from the IDE. This is not finished yet. At the moment, the IDE will tell you how much time you spend in each function, and, for each function, how much time is spent in other functions called from it. Next, I will try to profile each line of code. I hope it will help to optimize your projects! 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] Strange file modes
Hi, some time ago, I noticed in the sources file modes that appear strange to me: [gambas3]$ find . -executable -type f -regextype egrep -regex '.*\.(c|h|cpp|hpp)' -printf %M\t%P\n -rwxr-xr-x main/lib/option/main.c -rwxr-xr-x main/lib/option/getoptions.c -rwxr-xr-x main/lib/option/getoptions.h -rwxr-xr-x main/lib/option/main.h -rwxr-xr-x main/gbx/gbx_local.h -rwxr-xr-x main/gbx/gbx_subr_file.c -rwxr-xr-x gb.xml/src/xslt/CXSLT.cpp -rwxr-xr-x gb.xml/src/xslt/CXSLT.h -rwxr-xr-x gb.xml/src/xslt/main.h -rwxr-xr-x gb.xml/src/xslt/main.cpp -rwxr-xr-x gb.qt4/src/CContainer.cpp There may be more... I just wanted to filter away the shell scripts and stuff that ought to be executable (that's what I mean by strange file modes because I don't think those files above have to be executable) quickly. I noticed them only on C/C++ source files, so far and you see, there are a few (that's why I decided to search for those in the above command). Nothing interesting but sometimes I startle up when listing directory entries :) (One may improve the command line and filter out the scripts used by the build system by their names or something if this is really considered a security issue - I don't think so but I'm, too, not very familiar with what could be done. I just want things clean) 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] Small printing question
A simple gb.report example 2012/5/19 Johny Provoost johny.provo...@skynet.be Op 18-05-12 17:55, Johny Provoost schreef: Op 18-05-12 16:06, Ru Vuott schreef: After some sleep I found a way. It's a list of addresses. I can count the records, and I know there can 28 records on one page, so just some mathematics and that's ok. Just have to figure out if I got to start over with my coordinates (as with a new page) or that I that I have to count further form the top of page 1. Layout before your printing? That's a thought to investigate. I reacted to hard yesterday evening I think (lack of sleep). There's alway a way around. Hello Johny, Let us know how you do! Bye -- Well, for the last (is now of-topic I think) I'm gonna use gb.report. Tried the example of gb.report and my db and it's 95% what I want without the difficulties of new-lines, new-pages, . -- 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 -- Fabien Bodard demoreports-0.0.1.tar.gz Description: GNU Zip compressed data -- 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