Re: [Gambas-user] Gambas is slower than Python??

2009-01-18 Thread birchy
Well i've just managed to find my ORIGINAL (VB6) code and did a direct port to Gambas. My previous example using Split() was the way that seemed most logical when i decide to quickly write the function in Gambas: [quote author="CODE"] PRIVATE FUNCTION GetSubstring(mainstring AS String, startstring

Re: [Gambas-user] Gambas is slower than Python??

2009-01-18 Thread birchy
Benoit Minisini wrote: > In other words, maybe it is silly to say, but I made Gambas to have a > language > that have features not found in other languages, that allowed me to > program > Gambas. :-) RAPID development is exactly the reason why users choose languages like Gambas, VB6, Python, et

Re: [Gambas-user] Gambas is slower than Python??

2009-01-18 Thread birchy
Benoit Minisini wrote: > As I never used Python, I don't really realized how much an equivalent of > partition() is needed. To be honest, partition() doesn't do anything that can't be achieved using Split() or Scan(), only reason i used partition() in Python is because it is quite a bit faster t

Re: [Gambas-user] Gambas is slower than Python??

2009-01-17 Thread birchy
Benoit Minisini wrote: > Can you show us the code in Python? Maybe it will help me to find > something > that could be enhanced in Gambas if Python can do better? :-) Ok, i think the bottleneck is related to the function call overhead: PYTHON: wrote: > > import time > > t = time.time() > for

Re: [Gambas-user] Gambas is slower than Python??

2009-01-17 Thread birchy
Gareth Bult-3 wrote: > Both Python and Gambas compile to pseudo code and run through an > interpreter .. so essentially they are the same in terms of the > performance one might expect. My mistake, i assumed that Gambas was an optimizing compiler like VB6. I'm actually quite disappointed with the

[Gambas-user] Gambas is slower than Python??

2009-01-17 Thread birchy
I'm quite confused. I'm from a VB6 background, so when i moved to Ubuntu as my main O.S. Gambas was very attractive. Several things (mainly poor documentation) pushed me to try other languages. Having done a little C, C++, Java and PHP, i decided to give Python a go as it's getting very popular. I

Re: [Gambas-user] gb.net.curl - HttpClient - libcurl specs?

2009-01-09 Thread birchy
anyone? -- View this message in context: http://www.nabble.com/gb.net.curl---HttpClient---libcurl-specs--tp21345055p21367906.html Sent from the gambas-user mailing list archive at Nabble.com. -- Check out the new Sourc

[Gambas-user] gb.net.curl - HttpClient - libcurl specs?

2009-01-07 Thread birchy
I have recently decided to give Gambas a second chance, having been very disappointed by it's lack of documentation. Most of my apps are reliant on high speed internet transactions, so the gb.net.curl component is of particular interest. Whilst away from Gambas, i have been using Python. The PyCu

Re: [Gambas-user] Web application - CURL and Cookies?

2008-12-30 Thread birchy
Rob Kudla wrote: > I'd probably try to write a class that wrapped gb.pcre to do that, but I > would say that, since I wrote gb.pcre ;) Well i'd have to learn regex first, but i am already bald, so i have no hair to pull out. :o) What do you think about my other suggestions regarding automating

Re: [Gambas-user] Web application - CURL and Cookies?

2008-12-30 Thread birchy
Rob Kudla wrote: > Gambas (specifically gb.net.curl) uses libcurl. Excellent. Regarding cookie handling, gb.net.curl has HttpClient.CookieFile which allows you to define a file for cookies. According to the libcurl tutorial http://curl.netmirror.org/libcurl/c/libcurl-tutorial.html here ('Cookie

Re: [Gambas-user] Web application - CURL and Cookies?

2008-12-30 Thread birchy
Benoit Minisini wrote: > Maybe if you explain precisely what you need I could give you some advice? Hi, sorry for the delay, i have been busy with other things. I now have a number of questions as i have been using a Python binding of CURL called PyCurl... 1) Does Gambas implement the libcurl l

Re: [Gambas-user] Web application - CURL and Cookies?

2008-12-02 Thread birchy
Benoit Minisini wrote: > Maybe you should try some better HTML pages... Or maybe i should step backwards and manually parse my targets with InStr() and Mid(). OR, learn Java and use something like TagSoup which can (allegedly) handle "wild" html... -- View this message in context: http://www.n

Re: [Gambas-user] Web application - CURL and Cookies?

2008-12-02 Thread birchy
Benoit Minisini wrote: > > hXmlDoc.HTMLFromString(sHTML) Thank you for your reply. I setup a quick test app and using the http://www.google.co.uk google homepage HTML gives me lots of errors when i call: hXmlDoc.HTMLFromString(sHTML) The errors are: HTML parser error : Tag nobr invalid age(

Re: [Gambas-user] Web application - CURL and Cookies?

2008-12-02 Thread birchy
bumpbecause i'm really trying to avoid learning java instead... -- View this message in context: http://www.nabble.com/Web-application---CURL-and-Cookies--tp20435022p20791388.html Sent from the gambas-user mailing list archive at Nabble.com.

Re: [Gambas-user] Web application - CURL and Cookies?

2008-11-30 Thread birchy
Bugzilla from [EMAIL PROTECTED] wrote: > I talked too fast: gb.xml already know how to parse HTML. The XMLDocument > class has a 'HTMLFromString' method for that. Where is the documentation for this? How do i use it? -- View this message in context: http://www.nabble.com/Web-application---CURL

Re: [Gambas-user] using icons from system theme without specifiying full path

2008-11-30 Thread birchy
joshiggins wrote: > > Hi, > > I need to use the icons in my gambas program from the current system theme > in GTK/Gnome. At the moment I've been specifying the full path e.g. > > /usr/share/icons/Tango/32x32/apps/gnome-keyring-manager.png > > But ideally I need to just set gnome-keyring-manag

Re: [Gambas-user] Web Services: Working with WSDL

2008-11-20 Thread birchy
I've done some further research into adding SOAP capabilities to Gambas and have discovered the gSOAP open source library which is a C library. It is well documented, cross platform, and available in many Linux repositories, including Ubuntu and other Debian packages. What gSOAP does is, it takes

[Gambas-user] Web application - CURL and Cookies?

2008-11-11 Thread birchy
I have a need to develop a web app that can do the following: 1) interact with a web server via http 2) login to the site and maintain a session via cookies 3) parse the html There is a large selection of libraries that can do this in Java, but i'm much more familiar with VB6/Gambas. As far as i

Re: [Gambas-user] Values between forms..

2008-11-08 Thread birchy
Doriano Blengino wrote: > there should be a way to make public just the needed things Perhaps an easy solution would be to add a public/private checkbox to the Properties of each control? -- View this message in context: http://www.nabble.com/Values-between-forms..-tp20387230p20397519.html Sen

Re: [Gambas-user] Values between forms..

2008-11-08 Thread birchy
Bugzilla from [EMAIL PROTECTED] wrote: > One of the rules of good programming is making the less possible things > public I totally agree with this, but if we have a project rich with progress bars and other graphical displays, it is not uncommon to write a class or module to handle them. Perhap

Re: [Gambas-user] Values between forms..

2008-11-08 Thread birchy
Doriano Blengino wrote: > I suppose that that option does what you > want... or I am missing something? Yes, it does exactly what i want. The reason i asked if it could be set as default is because MOST projects need to reference form controls from class modules. Making them public at all times

Re: [Gambas-user] Values between forms..

2008-11-07 Thread birchy
Doriano Blengino wrote: > You have to set project option: "Controls of the forms are public". I recently discovered this while trying to access Form controls from a class module. Is it possible to make all controls Public by default (like in VB)? -- View this message in context: http://www.nab

Re: [Gambas-user] Alternating progressbars

2008-11-07 Thread birchy
M0E Lnx wrote: > Is there a way to do alternating progressbars in gambas? I also have a need for this kind of progress bar. I guess it could be done with a picture box but then you're writing quite a few lines of code to achieve something fairly trivial. -- View this message in context: http:/

Re: [Gambas-user] Web Services: Working with WSDL

2008-11-06 Thread birchy
I've done a little research into the Betfair soap thing and here are 2 important urls: http://bdphelp.betfair.com/API6/6.0/RefGuide/wwhelp/wwhimpl/js/html/wwhelp.htm Betfair API6 Documentation https://api.betfair.com/global/v3/BFGlobalService.wsdl Betfair API6 Global WSDL file Their documentatio

Re: [Gambas-user] Web Services: Working with WSDL

2008-11-06 Thread birchy
Fabien Bodard-4 wrote: > > so if i understand well it's just a file that describe the function > gived by the server and usable via the soap protocole. > > but gambas still not manage soap :/ > > and i'm too weak to that Yes, that's basically what a WSDL file does. I'm also weak in SOAP and X

Re: [Gambas-user] Parsing HTML with Split(). Is this a BUG??

2008-11-05 Thread birchy
Bugzilla from [EMAIL PROTECTED] wrote: > Yep. Split() is not powerful enough for that. Ok, thanks. Does Gambas support any HTML parsing libraries or some kind of DOM structure? -- View this message in context: http://www.nabble.com/Parsing-HTML-with-Split%28%29.-Is-this-a-BUG---tp20311394p20

Re: [Gambas-user] Web Services: Working with WSDL

2008-11-04 Thread birchy
Benoit Minisini wrote: > When you are talking about "generating code", you mean creating class > proxies > for the methods described by the WSDL XML syntax? Or accessing them > transparently as Gambas classes and methods, the WSDL conversion being > done > on the fly and transparently? Eithe

Re: [Gambas-user] Web Services: Working with WSDL

2008-11-04 Thread birchy
Benoit Minisini wrote: > What is WSDL? http://en.wikipedia.org/wiki/Web_Services_Description_Language I am very surprised that you've not heard of this. It is now very commonly used as an API by websites that offer a programming interface. Some of the larger ones are Google, Amazon, Paypal, Be

[Gambas-user] Web Services: Working with WSDL

2008-11-04 Thread birchy
I'm fairly new to Gambas and really like it's improvements over VB6, however i'm finding that documentation and source code examples are quite poor. Many of my projects are web related and involve either scraping information from a web page or working with SOAP protocols. So this brings me a coupl

[Gambas-user] Parsing HTML with Split(). Is this a BUG??

2008-11-04 Thread birchy
Hi, i'm new to Gambas following a full migration from Windows XP/VB6 to Ubuntu 8.04/Gambas. I have used VB6 for around 6 years and am really loving Gambas, however i have a small problem. I am working on a web app that downloads the HTML source of a web page and then parses various information fro