From taboege at ...626... Mon Jul 1 11:16:07 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 1 Jul 2013 11:16:07 +0200 Subject: [Gambas-user] TabStrip does not AutoResize Message-ID: <20130701091606.GB517@...2774...> Hi, I have a container within a TabStrip. This container is visible according to a CheckBox.Value. If the container was on a plain Form with AutoResize set, the Form would nicely shrink when the container is invisible and grow when it is visible again. This does not work with the TabStrip. Its size remains, even with AutoResize set, no matter how the children change. Any thoughts? Regards, Tobi From dr.diesel at ...626... Mon Jul 1 16:38:02 2013 From: dr.diesel at ...626... (dr.diesel) Date: Mon, 1 Jul 2013 07:38:02 -0700 (PDT) Subject: [Gambas-user] Help binding to /dev/usbtmc0? In-Reply-To: <20130629180329.GA524@...2774...> References: <1372198211969-42276.post@...3046...> <20130626074201.GA519@...2774...> <1372442417901-42320.post@...3046...> <20130629180329.GA524@...2774...> Message-ID: <1372689482888-42335.post@...3046...> Thanks again, I believe this is what is causing my problems with "/dev/usbtmc0" read(2) and fread(2) Here's another aspect you need to be aware of. The kernel offers two sets of system calls for file I/O, and their behavior is slightly different, especially when it comes to reading data. The read(2) system call requests a given maximum number of bytes from the file (instrument), but it is happy if the call returns less than the maximum number. The fread(2) system call, on the other hand, has the habit of retrying until the total number requested bytes is reached (or until the call returns 0 bytes, which indicates the end of the file). This works well for real files, but it doesn't work well for instruments because the second read transaction will usually cause a timeout. If you use C or another language that gives you the choice, it is recommended to use read(2) etc. instead of fread(2) etc. However, if you use echo/cat and shell output redirection, the shell will use fread(2). In order to avoid the issues associated with automatic retries, the driver simply ignores every second call to its read entry point (assuming that call is a retry) unless the first call returned the maximum number of bytes requested (in which case there is no retry). It is important to note that if you are using read(2) ? which is recommended ? you need to deactivate the driver's default behavior of ignoring every second call to its read entry point! This can be done by setting a driver attribute through a call to the driver's ioctl entry point: int my_inst; struct usbtmc_attribute attr; my_inst=open(?/dev/usbtmc1?,O_RDWR); attr.attribute=USBTMC_ATTRIB_READ_MODE; attr.value=USBTMC_ATTRIB_VAL_READ; // using read, not fread ioctl(my_inst,USBTMC_IOCTL_SET_ATTRIBUTE,&attr); Source of the above: http://www.home.agilent.com/upload/cmc_upload/All/usbtmc.html?&cc=US&lc=eng I suspect CAT and Gambas are using fread(2), causing the timeouts. Is there any method to use read(2) from Gabmas? Many thanks -- View this message in context: http://gambas.8142.n7.nabble.com/Help-binding-to-dev-usbtmc0-tp42276p42335.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 1 16:52:58 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 01 Jul 2013 16:52:58 +0200 Subject: [Gambas-user] Help binding to /dev/usbtmc0? In-Reply-To: <1372689482888-42335.post@...3046...> References: <1372198211969-42276.post@...3046...> <20130626074201.GA519@...2774...> <1372442417901-42320.post@...3046...> <20130629180329.GA524@...2774...> <1372689482888-42335.post@...3046...> Message-ID: <51D197CA.9030500@...1...> Le 01/07/2013 16:38, dr.diesel a ?crit : > Thanks again, I believe this is what is causing my problems with > "/dev/usbtmc0" > > read(2) and fread(2) > Here's another aspect you need to be aware of. The kernel offers two sets of > system calls for file I/O, and their behavior is slightly different, > especially when it comes to reading data. The read(2) system call requests a > given maximum number of bytes from the file (instrument), but it is happy if > the call returns less than the maximum number. The fread(2) system call, on > the other hand, has the habit of retrying until the total number requested > bytes is reached (or until the call returns 0 bytes, which indicates the end > of the file). This works well for real files, but it doesn't work well for > instruments because the second read transaction will usually cause a > timeout. > If you use C or another language that gives you the choice, it is > recommended to use read(2) etc. instead of fread(2) etc. However, if you use > echo/cat and shell output redirection, the shell will use fread(2). In order > to avoid the issues associated with automatic retries, the driver simply > ignores every second call to its read entry point (assuming that call is a > retry) unless the first call returned the maximum number of bytes requested > (in which case there is no retry). > It is important to note that if you are using read(2) ? which is recommended > ? you need to deactivate the driver's default behavior of ignoring every > second call to its read entry point! This can be done by setting a driver > attribute through a call to the driver's ioctl entry point: > int my_inst; > struct usbtmc_attribute attr; > my_inst=open(?/dev/usbtmc1?,O_RDWR); > attr.attribute=USBTMC_ATTRIB_READ_MODE; > attr.value=USBTMC_ATTRIB_VAL_READ; // using read, not fread > ioctl(my_inst,USBTMC_IOCTL_SET_ATTRIBUTE,&attr); > > Source of the above: > > http://www.home.agilent.com/upload/cmc_upload/All/usbtmc.html?&cc=US&lc=eng > > I suspect CAT and Gambas are using fread(2), causing the timeouts. Is there > any method to use read(2) from Gabmas? > > Many thanks > Open ... For Read -> read() is used Open ... For Input -> fread() is used (which is NOT a system call, but a library function) aString = Read #File, 256 -> Read 256 bytes and block aString = Read #File, -256 -> Read *up to* 256 bytes, and less if there is not enough bytes to read immediately. Lof(#File) -> Return the file size (for a file) *OR* the number of bytes that can be read immediately (for a socket or a device). The second behaviour depends on the underlying device. Regards, -- Beno?t Minisini From taboege at ...626... Mon Jul 1 17:11:21 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 1 Jul 2013 17:11:21 +0200 Subject: [Gambas-user] Help binding to /dev/usbtmc0? In-Reply-To: <1372689482888-42335.post@...3046...> References: <1372198211969-42276.post@...3046...> <20130626074201.GA519@...2774...> <1372442417901-42320.post@...3046...> <20130629180329.GA524@...2774...> <1372689482888-42335.post@...3046...> Message-ID: <20130701151121.GD517@...2774...> On Mon, 01 Jul 2013, dr.diesel wrote: > Thanks again, I believe this is what is causing my problems with > "/dev/usbtmc0" > > read(2) and fread(2) > Here's another aspect you need to be aware of. The kernel offers two sets of > system calls for file I/O, and their behavior is slightly different, > especially when it comes to reading data. The read(2) system call requests a > given maximum number of bytes from the file (instrument), but it is happy if > the call returns less than the maximum number. The fread(2) system call, on > the other hand, has the habit of retrying until the total number requested > bytes is reached (or until the call returns 0 bytes, which indicates the end > of the file). This works well for real files, but it doesn't work well for > instruments because the second read transaction will usually cause a > timeout. > If you use C or another language that gives you the choice, it is > recommended to use read(2) etc. instead of fread(2) etc. However, if you use > echo/cat and shell output redirection, the shell will use fread(2). In order > to avoid the issues associated with automatic retries, the driver simply > ignores every second call to its read entry point (assuming that call is a > retry) unless the first call returned the maximum number of bytes requested > (in which case there is no retry). > It is important to note that if you are using read(2) ??? which is recommended > ??? you need to deactivate the driver's default behavior of ignoring every > second call to its read entry point! This can be done by setting a driver > attribute through a call to the driver's ioctl entry point: > int my_inst; > struct usbtmc_attribute attr; > my_inst=open(???/dev/usbtmc1???,O_RDWR); > attr.attribute=USBTMC_ATTRIB_READ_MODE; > attr.value=USBTMC_ATTRIB_VAL_READ; // using read, not fread > ioctl(my_inst,USBTMC_IOCTL_SET_ATTRIBUTE,&attr); > > Source of the above: > > http://www.home.agilent.com/upload/cmc_upload/All/usbtmc.html?&cc=US&lc=eng > The author certainly meant fread(3) because fread(2) is non-existent. > I suspect CAT and Gambas are using fread(2), causing the timeouts. Is there > any method to use read(2) from Gabmas? > If I was a nitpicker, I'd say "no, you need assembly to call a system call on Linux". Fortunately, I did my daily nitpicking just above, so I'd say "yes, you can use your C library's wrapper" for read(2): --- Extern SysRead(iFd as Integer, hBuf As Pointer, iSize As Integer) As Integer In "libc:6" Exec "read" Public Sub btnOpen_Click() Dim hFile As File hFile = Open "/dev/usbtmc0" For Read Write Watch End Public Sub File_Read() Dim hBuf As Pointer Dim sRead As String hBuf = Alloc(128) If SysRead(Last.Handle, hBuf, 128) = -1 Then Error.Raise(("read(2) error")) Return Endif sRead = Str@(hBuf) Free(hBuf) ' Do something with sRead End --- You should read about Extern functions[0][1][2]. The documentation is impressively extensive about this :-) Above is the read() method. You could alternatively do the ioctl() method likewise. Regards, Tobi [0] http://gambasdoc.org/help/lang/extdecl?v3 [1] http://gambasdoc.org/help/cat/externfunc?v3 [2] http://gambasdoc.org/help/howto/extern?v3 From dr.diesel at ...626... Mon Jul 1 17:22:19 2013 From: dr.diesel at ...626... (dr.diesel) Date: Mon, 1 Jul 2013 08:22:19 -0700 (PDT) Subject: [Gambas-user] Help binding to /dev/usbtmc0? In-Reply-To: <51D197CA.9030500@...1...> References: <1372198211969-42276.post@...3046...> <20130626074201.GA519@...2774...> <1372442417901-42320.post@...3046...> <20130629180329.GA524@...2774...> <1372689482888-42335.post@...3046...> <51D197CA.9030500@...1...> Message-ID: <1372692139216-42338.post@...3046...> Well, even with: Public hDevice As File Public sLine As String Public Sub Form_Open() hDevice = Open "/dev/usbtmc0" For Read Output Watch End Public Sub File_Read() sLine = Read #hDevice, -256 Print sLine End It sill just times out when the form opens, without even sending any commands. Considering CAT times out as well I'm suspecting a driver problem with usbtmc. Thanks for the help. -- View this message in context: http://gambas.8142.n7.nabble.com/Help-binding-to-dev-usbtmc0-tp42276p42338.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 1 17:28:07 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 01 Jul 2013 17:28:07 +0200 Subject: [Gambas-user] Help binding to /dev/usbtmc0? In-Reply-To: <1372692139216-42338.post@...3046...> References: <1372198211969-42276.post@...3046...> <20130626074201.GA519@...2774...> <1372442417901-42320.post@...3046...> <20130629180329.GA524@...2774...> <1372689482888-42335.post@...3046...> <51D197CA.9030500@...1...> <1372692139216-42338.post@...3046...> Message-ID: <51D1A007.10905@...1...> Le 01/07/2013 17:22, dr.diesel a ?crit : > Well, even with: > > Public hDevice As File > Public sLine As String > > Public Sub Form_Open() > hDevice = Open "/dev/usbtmc0" For Read Output Watch > End 'Read Output' has no sense (Gambas should complain there, I will check why it does not), it should be 'Read Write' or just 'Read' if you don't want to open the device for writing. -- Beno?t Minisini From gambas at ...2524... Mon Jul 1 18:03:09 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 01 Jul 2013 16:03:09 +0000 Subject: [Gambas-user] Issue 438 in gambas: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data In-Reply-To: <5-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> <0-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Comment #6 on issue 438 by francois... at ...626...: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data http://code.google.com/p/gambas/issues/detail?id=438 I tried r5713, it didn't work. Actually the Close_Socket is not called ... -- 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 i_safiur at ...67... Mon Jul 1 19:24:38 2013 From: i_safiur at ...67... (Safiur Rahman) Date: Mon, 1 Jul 2013 17:24:38 +0000 Subject: [Gambas-user] Help on gb.Report (3.4.1) Message-ID: hello I want to request for some help in using gb.report (3.4.1). How can i get wordwrap property in ReportLabel (like TextArea). Currently Reportlabel shows large text in single line only unless we ourself divide into several lines. Thanks Safiur Rahman From gambas at ...2524... Tue Jul 2 10:56:41 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 02 Jul 2013 08:56:41 +0000 Subject: [Gambas-user] Issue 448 in gambas: ComboBox up/down arrow isn't correctly centered under Gnome/Ubuntu One Message-ID: <0-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 448 by uAle... at ...626...: ComboBox up/down arrow isn't correctly centered under Gnome/Ubuntu One http://code.google.com/p/gambas/issues/detail?id=448 1) Describe the problem. If a ComboBox has a list and it is set to readonly, the right up/down arrow isn't centered in the box for Ubuntu One and Gnome (KDE looks to be fine). See the attached screenshots for the example, i assume this is a bug in Gambas3 in combination with Gnome/One. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5705 (if you use a development version) Operating system: Linux Distribution: Ubuntu 13.04 Architecture: x86_64 GUI component: QT3 / QT4 / GTK+ Desktop used: Gnome / KDE / Ubuntu One 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. 5) Explain clearly how to reproduce the bug or the crash. Make a combox under One/Gnome and make it readonly 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: TestComboBox-not-centered.tar.gz 5.3 KB Ubuntu-One.png 23.3 KB Ubuntu-Gnome.png 8.7 KB Ubuntu-KDE.png 25.1 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 Jul 2 11:10:56 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 02 Jul 2013 09:10:56 +0000 Subject: [Gambas-user] Issue 448 in gambas: ComboBox up/down arrow isn't correctly centered under Gnome/Ubuntu One In-Reply-To: <0-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> Comment #1 on issue 448 by uAle... at ...626...: ComboBox up/down arrow isn't correctly centered under Gnome/Ubuntu One http://code.google.com/p/gambas/issues/detail?id=448 Oeps, attached a wrong Ubuntu-One.png file, right one attached now. Attachments: Ubuntu-One.png 16.8 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 Jul 2 15:12:15 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 02 Jul 2013 13:12:15 +0000 Subject: [Gambas-user] Issue 448 in gambas: ComboBox up/down arrow isn't correctly centered under Gnome/Ubuntu One In-Reply-To: <1-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> <0-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #2 on issue 448 by benoit.m... at ...626...: ComboBox up/down arrow isn't correctly centered under Gnome/Ubuntu One http://code.google.com/p/gambas/issues/detail?id=448 I checked with a Gimp dialog box, and the combo-box arrows are misaligned the same way. So I guess this is a problem in the "Ambiance" GTK Theme, not in Gambas. Attachments: gimp.png 102 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 Jul 2 15:14:46 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 02 Jul 2013 13:14:46 +0000 Subject: [Gambas-user] Issue 448 in gambas: ComboBox up/down arrow isn't correctly centered under Gnome/Ubuntu One In-Reply-To: <2-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> <0-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-15388283277993700548-gambas=googlecode.com@...2524...> Comment #3 on issue 448 by uAle... at ...626...: ComboBox up/down arrow isn't correctly centered under Gnome/Ubuntu One http://code.google.com/p/gambas/issues/detail?id=448 Thanks for the quick update and you're right, it seems the GTK theme is doing it wrong (will remember that for the future) -- 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 Jul 3 20:14:41 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 03 Jul 2013 18:14:41 +0000 Subject: [Gambas-user] Issue 449 in gambas: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". Message-ID: <0-6813199134517018827-2783357097150170589-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 449 by uAle... at ...626...: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". http://code.google.com/p/gambas/issues/detail?id=449 1) Describe the problem. The RpcServer responds with a not completely valid request, but this works on most XmlClients. The output contains only "\n" and this should be "\r\n" The request looks now: HTTP/1.1 200 OK\nConnection: close\nContent-Length: 5411\n ... This should be: HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Length: 5411\r\n ... 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5705 (if you use a development version) Operating system: Linux Distribution: Ubuntu Architecture: x86_64 GUI component: QT4 Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. Attached is the fixed "miniServer.class", to be placed in "gb.xml/src/rpc/gb.xml.rpc/.src". The fix changes the print to "gb.Windows" to send a "\r\n" and i replaced the "\n" in the XmlString to "\r\n" Also the before the fix, you notice in the response only "\n" and after the fix you see "\r\n" 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. 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: miniServer.class 8.3 KB miniserver-before.eth 6.5 KB miniserver-fixed.eth 13.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... Wed Jul 3 20:41:52 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 03 Jul 2013 18:41:52 +0000 Subject: [Gambas-user] Issue 449 in gambas: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". In-Reply-To: <0-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> Comment #1 on issue 449 by r... at ...1740...: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". http://code.google.com/p/gambas/issues/detail?id=449 Lol you just posted a bugfix, which made xmlrpc calls from my Yii pages to work. ;-) -- 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 eilert-sprachen at ...221... Wed Jul 3 22:09:12 2013 From: eilert-sprachen at ...221... (Sprachschule Eilert) Date: Wed, 03 Jul 2013 22:09:12 +0200 Subject: [Gambas-user] Howto tell how many pages to print Message-ID: <51D484E8.3030808@...221...> Hi folks, I am still cycling around a problem with the printing system in Gambas3. You have to tell the system how many pages to print to make it start printing. But there are cases when you don't know how many pages will result from printing before you actually get going. So I thought, maybe it is a good idea here to "print" single pages again and again into a temporary file to count the number of pages. When it ends, you will have the resulting number of pages to be printed and can start printing in real. Or is there a smarter way of achieving this? Thanks for your ideas! Rolf From bbruen at ...2308... Thu Jul 4 06:16:14 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 04 Jul 2013 13:46:14 +0930 Subject: [Gambas-user] Keeping track of opened form instances Message-ID: <1372911374.11629.5.camel@...2688...> Hi folks, I have a form ("FSummary") that basically opens a variable number of other forms. This action is controlled by the user. Each other form is an instance of a single form/class, say "FDetail". Each and any of these could be closed by the user at any time. Also, when the FSummary form is closed, any remaining FDetail forms need to be automatically closed. I have tried a few times to achieve this using arrays of Forms and arrays of window handles etc. but I am not really happy with the results. How have others approached this issue? tia Bruce From zachsmith022 at ...626... Thu Jul 4 06:25:30 2013 From: zachsmith022 at ...626... (Zach Smith) Date: Thu, 4 Jul 2013 00:25:30 -0400 Subject: [Gambas-user] How to get the number of affected rows in mysql? Message-ID: Hi, How can one get the number of affected rows from a mysql query in gambas? See https://dev.mysql.com/doc/refman/5.1/en/mysql-affected-rows.html "It returns the number of rows changed, deleted, or inserted by the last statement if it was an UPDATE, DELETE, or INSERT" I've experimented with running SELECT ROW_COUNT() after an update query but I am unable to get a result that is the number of rows changed. See https://dev.mysql.com/doc/refman/5.1/en/information-functions.html#function_row-count Thanks, Zach From bbruen at ...2308... Thu Jul 4 06:51:32 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 04 Jul 2013 14:21:32 +0930 Subject: [Gambas-user] How to get the number of affected rows in mysql? In-Reply-To: References: Message-ID: <1372913492.11629.10.camel@...2688...> On Thu, 2013-07-04 at 00:25 -0400, Zach Smith wrote: > Hi, > > How can one get the number of affected rows from a mysql query in gambas? > > See https://dev.mysql.com/doc/refman/5.1/en/mysql-affected-rows.html > "It returns the number of rows changed, deleted, or inserted by the > last statement if it was an UPDATE, DELETE, or INSERT" > > I've experimented with running SELECT ROW_COUNT() after an update > query but I am unable to get a result that is the number of rows > changed. > > See https://dev.mysql.com/doc/refman/5.1/en/information-functions.html#function_row-count > > Thanks, > Zach > Presumeably you are using an Exec(query) call to do your update. The short answer is, you can't. There are various reasons for this and in any case if you read the mysql documentation and forums carefully you'll find that this approach is not actually guaranteed to return the "correct" value in all cases. Probably the best approach is to use a SELECT query followed by your update query and wrap it all in a commit block. The result count from the select query will give you the right answer. hth Bruce From taboege at ...626... Thu Jul 4 10:14:16 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 4 Jul 2013 10:14:16 +0200 Subject: [Gambas-user] Keeping track of opened form instances In-Reply-To: <1372911374.11629.5.camel@...2688...> References: <1372911374.11629.5.camel@...2688...> Message-ID: <20130704081416.GC721@...2774...> On Thu, 04 Jul 2013, Bruce wrote: > Hi folks, > > I have a form ("FSummary") that basically opens a variable number of > other forms. This action is controlled by the user. > > Each other form is an instance of a single form/class, say "FDetail". > Each and any of these could be closed by the user at any time. Also, > when the FSummary form is closed, any remaining FDetail forms need to be > automatically closed. > > I have tried a few times to achieve this using arrays of Forms and > arrays of window handles etc. but I am not really happy with the > results. > > How have others approached this issue? > > tia > Bruce > Hmm. Normally there is something in the gb component to help you with introspection problems like this. But this time I haven't found any. I implemented this array method in a sample project and it seems to behave quite well. I use an Observer to silently duplicate the events from the children forms and manipulate an array in the parent form accordingly. Even if not a new idea, I hope it helps. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: autoclose_children-0.0.1.tar.gz Type: application/octet-stream Size: 5373 bytes Desc: not available URL: From gambas at ...1... Thu Jul 4 11:33:22 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 04 Jul 2013 11:33:22 +0200 Subject: [Gambas-user] Keeping track of opened form instances In-Reply-To: <20130704081416.GC721@...2774...> References: <1372911374.11629.5.camel@...2688...> <20130704081416.GC721@...2774...> Message-ID: <51D54162.1060000@...1...> Le 04/07/2013 10:14, Tobias Boege a ?crit : > On Thu, 04 Jul 2013, Bruce wrote: >> Hi folks, >> >> I have a form ("FSummary") that basically opens a variable number of >> other forms. This action is controlled by the user. >> >> Each other form is an instance of a single form/class, say "FDetail". >> Each and any of these could be closed by the user at any time. Also, >> when the FSummary form is closed, any remaining FDetail forms need to be >> automatically closed. >> You have to set Application.MainWindow with FSummary. When the application main window is closed, all opened windows are closed automatically. -- Beno?t Minisini From gambas.fr at ...626... Thu Jul 4 15:54:40 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 4 Jul 2013 15:54:40 +0200 Subject: [Gambas-user] Howto tell how many pages to print In-Reply-To: <51D484E8.3030808@...221...> References: <51D484E8.3030808@...221...> Message-ID: It depend of what you want to achieve. You can use gb.report. One time the layer is done you give data. And it calculate all for you. I know it is not well documented since at less 5 years but i can help you. Le 3 juil. 2013 22:10, "Sprachschule Eilert" a ?crit : > Hi folks, > > I am still cycling around a problem with the printing system in Gambas3. > You have to tell the system how many pages to print to make it start > printing. > > But there are cases when you don't know how many pages will result from > printing before you actually get going. > > So I thought, maybe it is a good idea here to "print" single pages again > and again into a temporary file to count the number of pages. When it > ends, you will have the resulting number of pages to be printed and can > start printing in real. > > Or is there a smarter way of achieving this? > > Thanks for your ideas! > > Rolf > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Thu Jul 4 21:40:43 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 04 Jul 2013 19:40:43 +0000 Subject: [Gambas-user] Issue 449 in gambas: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". In-Reply-To: <1-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> <0-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> Comment #2 on issue 449 by uAle... at ...626...: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". http://code.google.com/p/gambas/issues/detail?id=449 @Benoit: Attached is an updated "miniServer.class", this is based on the release BEFORE r5713 and it fixes the following things: - The response is sending Chr(13) + Chr(10) now, this will make older XML-RPC clients work - If the XML request is split over multiple tcp packets, the miniserver will wait a maximum of 1 second on it (unless the content-type == xml request, then it will continue directly) - The previous wait of max 1 second will also fix issues with "Expect: 100-continue", some XML-RPC clients can send this Can you submit this miniServer.class in the SVN please? Attachments: miniServer.class 8.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... Thu Jul 4 21:42:14 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 04 Jul 2013 19:42:14 +0000 Subject: [Gambas-user] Issue 438 in gambas: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data In-Reply-To: <6-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> <0-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Comment #7 on issue 438 by uAle... at ...626...: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data http://code.google.com/p/gambas/issues/detail?id=438 Fix is in included in issue 449, a modified "miniServer.class" is attached there. -- 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... Thu Jul 4 21:53:15 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 04 Jul 2013 19:53:15 +0000 Subject: [Gambas-user] Issue 449 in gambas: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". In-Reply-To: <2-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> <0-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> Updates: Status: Started Labels: -Version Version-3.4.0 Comment #3 on issue 449 by benoit.m... at ...626...: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". http://code.google.com/p/gambas/issues/detail?id=449 Done in revision #5720. Tell me the result and if I can close the 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 gambas at ...2524... Thu Jul 4 23:02:57 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 04 Jul 2013 21:02:57 +0000 Subject: [Gambas-user] Issue 449 in gambas: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". In-Reply-To: <3-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> <0-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> Comment #4 on issue 449 by uAle... at ...626...: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". http://code.google.com/p/gambas/issues/detail?id=449 I tested it and it is working fine, both issues can be closed. -- 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... Fri Jul 5 09:03:07 2013 From: bbruen at ...2308... (Bruce) Date: Fri, 05 Jul 2013 16:33:07 +0930 Subject: [Gambas-user] Timers??? (was Keeping track of opened form instances) In-Reply-To: <51D54162.1060000@...1...> References: <1372911374.11629.5.camel@...2688...> <20130704081416.GC721@...2774...> <51D54162.1060000@...1...> Message-ID: <1373007787.11629.40.camel@...2688...> On Thu, 2013-07-04 at 11:33 +0200, Beno?t Minisini wrote: > Le 04/07/2013 10:14, Tobias Boege a ?crit : > > On Thu, 04 Jul 2013, Bruce wrote: > >> Hi folks, > >> > >> I have a form ("FSummary") that basically opens a variable number of > >> other forms. This action is controlled by the user. > >> > >> Each other form is an instance of a single form/class, say "FDetail". > >> Each and any of these could be closed by the user at any time. Also, > >> when the FSummary form is closed, any remaining FDetail forms need to be > >> automatically closed. > >> > > You have to set Application.MainWindow with FSummary. When the > application main window is closed, all opened windows are closed > automatically. > Thanks to both of you. I have taken Beno?t's approach and it is succint and much tidier than what I was trying. But also to Tobias because you have solved another problem ahead of time! ( I need to recognise an event raised in the FDetail instances and refresh the summary form.) Sigh! But nothing is ever simple :-( In the FDetails form instances I need to create a variable number of timers ... no it's probably easier to explain what the real goal is. FSummary displays a list of auctions that are to be held this day. The user selects one or more of these auctions that they have an interest in and thus show a new form (FDetail) listing the lots (horses) on offer at that auction. The user can then mark one or more lots that they are specifically interested in and the goal is to "wake up" the relevant FDetail instance several minutes before the live on-line sale of that lot and the user can view and/or bid on the lot. (These live sales are very live by the way and are more like feed lot sales if that means anything and not like ebay sales.) Previously, we did this by loading and watching every sale at every scheduled auction in a set of tabs. This was OK while there were a limited number of online auctions per day but now the amount of both auctions and lots has increased to the extent that our old approach is getting slow and somewhat succeptible to timing errors. So the new approach is just (at the client end) to attach to the auctions and lots that they are interested in. So much for the explanation. The new problem is this. I can create (I believe) a set of timers and set their delays so that their Timer event will fire a set number of minutes before the sale of the lot opens. But the Timer event does not seem to fire (or I am not creating the Timers and event handlers properly!). Here's the timer creation code (simplified somewhat to make the time profiling easier to understand): ----------------------------------------------------------------------------- Private Sub ResetTimers(cLot As Lot, iLotRNo As Integer) ' cLot as Lot ' The Lot object ' iLotRNo As Integer ' The registered lot number (just in case we need it later...) Dim iDelta As Integer ' Minutes difference between Now() and scheduled sale start Dim rTimer As Timer ' The timer for this Lot Debug cLot.LotNo, iLotRNo rTimer = New Timer As "UpdateTimer" iDelta = DateDiff(Now, cLot.LocalStartTime, gb.Minute) Select iDelta Case -999999 To -10 rTimer.Delay = 1000 * 60 * 15 ' Lot has expired, just track every 15 minutes in case of post sale changes/notices Case -9 To -5 rTimer.Delay = 1000 * 60 * 1 ' Lot is closed, check for sale closure every minute Case -4 To 0 rTimer.delay = 1000 * 60 * 0.5 ' Lots is closed, check for finals every 30 seconds Case 0 To 5 rTimer.Delay = 500 ' Lot is active, check every 1/2 second Case 6 To 10 rTimer.Delay = 1000 * 60 * 0.25 ' Hot presale, check every 15 seconds Default rTimer.Delay = 1000 * 60 * 5 ' Presale, check every 5 minutes End Select ' rTimer.Tag = rno rTimer.Start End ---------------------------------------------------------------------------- and here's the event handler ---------------------------------------------------------------------------- Public Sub UpdateTimer_Timer() Debug Last.Name For Each $auction.Lots ' Locate the correct lot. Then send the XML request, grab ' the result and do lots of stuff depending on the reply... Next End ---------------------------------------------------------------------------- That Debug never occurs! Any idea where I am going wrong? tia Bruce p.s. By the way, is it possible to have a Tag property in the Timer control. It would save me having to locate the correct lot via a sequential search? From vuott at ...325... Fri Jul 5 17:20:12 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 5 Jul 2013 16:20:12 +0100 (BST) Subject: [Gambas-user] Calling a internal function from parametres of external _callback function Message-ID: <1373037612.60783.YahooMailBasic@...3064...> Hello, Wanting to use the Jack API, and studying examples written in C, I meet some external "callback" functions that within their parameters have the reference to another function (this internal to the code). Here an exemple of those external Jack API "callback" functions: jack_set_process_callback(client, process_callback, 0); This function tells the Jack server to call process_callback whenever there is work be done, passing arg as the second argument. Well, I'ld like to use this particular functions, but I do not know how I *have to declare* them when I use Extern: Private Extern jack_set_process_callback(Pclient As Pointer, ...???.... As ....???..., Intarg As Integer) In fact something like "....As Function" is not possible. Suggestions ? Regards vuottt From gambas.fr at ...626... Fri Jul 5 17:48:41 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 5 Jul 2013 17:48:41 +0200 Subject: [Gambas-user] Timers??? (was Keeping track of opened form instances) In-Reply-To: <1373007787.11629.40.camel@...2688...> References: <1372911374.11629.5.camel@...2688...> <20130704081416.GC721@...2774...> <51D54162.1060000@...1...> <1373007787.11629.40.camel@...2688...> Message-ID: Create a classe named Timer in your project and just add this line in it : Public Tag as Variant So you now have a tag in timer class. Le 5 juil. 2013 09:04, "Bruce" a ?crit : > On Thu, 2013-07-04 at 11:33 +0200, Beno?t Minisini wrote: > > Le 04/07/2013 10:14, Tobias Boege a ?crit : > > > On Thu, 04 Jul 2013, Bruce wrote: > > >> Hi folks, > > >> > > >> I have a form ("FSummary") that basically opens a variable number of > > >> other forms. This action is controlled by the user. > > >> > > >> Each other form is an instance of a single form/class, say "FDetail". > > >> Each and any of these could be closed by the user at any time. Also, > > >> when the FSummary form is closed, any remaining FDetail forms need to > be > > >> automatically closed. > > >> > > > > You have to set Application.MainWindow with FSummary. When the > > application main window is closed, all opened windows are closed > > automatically. > > > > Thanks to both of you. I have taken Beno?t's approach and it is succint > and much tidier than what I was trying. But also to Tobias because you > have solved another problem ahead of time! ( I need to recognise an > event raised in the FDetail instances and refresh the summary form.) > > Sigh! But nothing is ever simple :-( > > In the FDetails form instances I need to create a variable number of > timers ... no it's probably easier to explain what the real goal is. > FSummary displays a list of auctions that are to be held this day. The > user selects one or more of these auctions that they have an interest in > and thus show a new form (FDetail) listing the lots (horses) on offer at > that auction. The user can then mark one or more lots that they are > specifically interested in and the goal is to "wake up" the relevant > FDetail instance several minutes before the live on-line sale of that > lot and the user can view and/or bid on the lot. (These live sales are > very live by the way and are more like feed lot sales if that means > anything and not like ebay sales.) Previously, we did this by loading > and watching every sale at every scheduled auction in a set of tabs. > This was OK while there were a limited number of online auctions per day > but now the amount of both auctions and lots has increased to the extent > that our old approach is getting slow and somewhat succeptible to timing > errors. So the new approach is just (at the client end) to attach to > the auctions and lots that they are interested in. > So much for the explanation. > > The new problem is this. I can create (I believe) a set of timers and > set their delays so that their Timer event will fire a set number of > minutes before the sale of the lot opens. But the Timer event does not > seem to fire (or I am not creating the Timers and event handlers > properly!). > > Here's the timer creation code (simplified somewhat to make the time > profiling easier to understand): > > ----------------------------------------------------------------------------- > Private Sub ResetTimers(cLot As Lot, iLotRNo As Integer) > > ' cLot as Lot ' The Lot object > ' iLotRNo As Integer ' The registered lot number (just in case we > need it later...) > > Dim iDelta As Integer ' Minutes difference between Now() and > scheduled sale start > Dim rTimer As Timer ' The timer for this Lot > > Debug cLot.LotNo, iLotRNo > > rTimer = New Timer As "UpdateTimer" > iDelta = DateDiff(Now, cLot.LocalStartTime, gb.Minute) > > Select iDelta > Case -999999 To -10 > rTimer.Delay = 1000 * 60 * 15 ' Lot has expired, just track > every 15 minutes in case of post sale changes/notices > Case -9 To -5 > rTimer.Delay = 1000 * 60 * 1 ' Lot is closed, check for sale > closure every minute > Case -4 To 0 > rTimer.delay = 1000 * 60 * 0.5 ' Lots is closed, check for finals > every 30 seconds > Case 0 To 5 > rTimer.Delay = 500 ' Lot is active, check every 1/2 > second > Case 6 To 10 > rTimer.Delay = 1000 * 60 * 0.25 ' Hot presale, check every 15 > seconds > Default > rTimer.Delay = 1000 * 60 * 5 ' Presale, check every 5 minutes > End Select > ' rTimer.Tag = rno > rTimer.Start > > End > > ---------------------------------------------------------------------------- > > and here's the event handler > > ---------------------------------------------------------------------------- > Public Sub UpdateTimer_Timer() > > Debug Last.Name > > For Each $auction.Lots > ' Locate the correct lot. Then send the XML request, grab > ' the result and do lots of stuff depending on the reply... > Next > > End > > ---------------------------------------------------------------------------- > > > That Debug never occurs! > > Any idea where I am going wrong? > > tia > Bruce > > p.s. By the way, is it possible to have a Tag property in the Timer > control. It would save me having to locate the correct lot via a > sequential search? > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Jul 5 20:54:26 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 5 Jul 2013 21:54:26 +0300 Subject: [Gambas-user] Calling a internal function from parametres of external _callback function In-Reply-To: <1373037612.60783.YahooMailBasic@...3064...> References: <1373037612.60783.YahooMailBasic@...3064...> Message-ID: http://gambasdoc.org/help/lang/extdecl?v3 Jussi On Fri, Jul 5, 2013 at 6:20 PM, Ru Vuott wrote: > Hello, > > Wanting to use the Jack API, and studying examples written in C, I meet > some external "callback" functions that within their parameters have the > reference to another function (this internal to the code). > > Here an exemple of those external Jack API "callback" functions: > > jack_set_process_callback(client, process_callback, 0); > > This function tells the Jack server to call process_callback whenever > there is work be done, passing arg as the second argument. > > Well, I'ld like to use this particular functions, but I do not know how I > *have to declare* them when I use Extern: > > Private Extern jack_set_process_callback(Pclient As Pointer, > ...???.... As ....???..., Intarg As Integer) > > In fact something like "....As Function" is not possible. > > > Suggestions ? > > Regards > vuottt > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From karl.reinl at ...9... Fri Jul 5 21:02:04 2013 From: karl.reinl at ...9... (Karl Reinl) Date: Fri, 05 Jul 2013 21:02:04 +0200 Subject: [Gambas-user] question about sfn (no not NSA) mailinglist Message-ID: <1373050924.2528.15.camel@...40...> Salut, these last month the mails from sfn came/come in strange manner. So I hade no mails from the svn since 1 of mai (Revision: 5636) and yesterday suddenly starting with Revision: 5717, 5716 also 5718 to 5720 came in, in this order and all yesterday. At users list they also came no more in order. On http://sourceforge.net/blog/category/sitestatus/ nothing special is reported! Did you make the same observation, or I am black-listed ? -- Amicalement Charlie From vuott at ...325... Fri Jul 5 21:09:48 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 5 Jul 2013 20:09:48 +0100 (BST) Subject: [Gambas-user] Calling a internal function from parametres of external _callback function In-Reply-To: Message-ID: <1373051388.38863.YahooMailBasic@...3054...> Ops.... thank you very much Jussi ! I had not paid proper attention to the guide ! Well, it says a "Pointer". I had assumed, but I was not sure. Thanks. vuott -------------------------------------------- Ven 5/7/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] Calling a internal function from parametres of external _callback function A: "mailing list for gambas users" Cc: "Benoit" Data: Venerd? 5 luglio 2013, 20:54 http://gambasdoc.org/help/lang/extdecl?v3 Jussi On Fri, Jul 5, 2013 at 6:20 PM, Ru Vuott wrote: > Hello, > > Wanting to use the Jack API, and studying examples written in C, I meet > some external "callback" functions that within their parameters have the > reference to another function (this internal to the code). > > Here an exemple of those external Jack API "callback" functions: > >? ? ? ? jack_set_process_callback(client, process_callback, 0); > > This function tells the Jack server to call process_callback whenever > there is work be done, passing arg as the second argument. > > Well, I'ld like to use this particular functions, but I do not know how I > *have to declare* them when I use Extern: > >? ? ? Private Extern? jack_set_process_callback(Pclient As Pointer, > ...???.... As ....???..., Intarg As Integer) > > In fact something like? "....As Function" is not possible. > > > Suggestions ? > > Regards > vuottt > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Fri Jul 5 21:37:06 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 5 Jul 2013 21:37:06 +0200 Subject: [Gambas-user] question about sfn (no not NSA) mailinglist In-Reply-To: <1373050924.2528.15.camel@...40...> References: <1373050924.2528.15.camel@...40...> Message-ID: <20130705193706.GA515@...2774...> On Fri, 05 Jul 2013, Karl Reinl wrote: > Salut, > > these last month the mails from sfn came/come in strange manner. > So I hade no mails from the svn since 1 of mai (Revision: 5636) and > yesterday suddenly starting with Revision: 5717, 5716 also 5718 to 5720 > came in, in this order and all yesterday. > > At users list they also came no more in order. > > On http://sourceforge.net/blog/category/sitestatus/ nothing special is > reported! > > Did you make the same observation, or I am black-listed ? > Everything was serving me quite well - ever since I subscribed, IIRC. From gambas at ...2524... Sat Jul 6 18:03:28 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 06 Jul 2013 16:03:28 +0000 Subject: [Gambas-user] Issue 450 in gambas: RpcClient hangs (randomly) and CPU goes to 100% when using timers Message-ID: <0-6813199134517018827-16021253202756714524-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 450 by uAle... at ...626...: RpcClient hangs (randomly) and CPU goes to 100% when using timers http://code.google.com/p/gambas/issues/detail?id=450 1) Describe the problem. The RpcClient for XML-RPC hangs randomly if there are timers in the Gambas Application, and it goes to 100% CPU usage. The behavior is as follows when it hangs: - RpcClient sends a XML-RPC request (sync mode) - RpcServer responds correctly as shown in the xml.eth file - RpcClient hangs and CPU goes to 100%. Seems it can't raise the "Read" Event properly, according to the gdb output Important Note - it works fine if the RpcClient is in async mode or NO timers are in the application (thus it is normally only visible in larger Gambas applications). It also doesn't matter if it is inside the same Gambas executable, or if the RpcServer and RpcClient are different gambas executables. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5722 (if you use a development version) Operating system: Linux Distribution: Ubuntu Architecture: x86_64 GUI component: QT4 Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. Attached is the "Test-XMLRPC2.tar.gz" this contains the following: - project - "xml.eth" to show the request successfully send back from the RpcServer - "gdb.txt" - gdb backtrace output - seems it hangs on the "Read" Event in Gambas - "output.txt" - output on the console, it hangs on iteration 711 (but is different every new run) 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. 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: Test-XMLRPC2.tar.gz 183 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 Jul 6 19:53:27 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 06 Jul 2013 17:53:27 +0000 Subject: [Gambas-user] Issue 451 in gambas: XML-RPC/RpcServer crashes if the receiving socket is closed Message-ID: <0-6813199134517018827-1135840106257942837-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 451 by uAle... at ...626...: XML-RPC/RpcServer crashes if the receiving socket is closed http://code.google.com/p/gambas/issues/detail?id=451 1) Describe the problem. The Gambas application will crash if the other side (the client) receiving socket is too early closed. Gambas will complain the "stream" is closed. Expected behavior is that The following needs to be changed in the "gb.xml/src/rpc/gb.xml.rpc/.src/miniServer.class" to prevent this issue: hS.Begin hS.EndOfLine = gb.Windows Print #hS, "HTTP/1.1 " & hErr Print #hS, "Server: Gambas XML-RPC Server" Print #hS, "Connection: close" Print #hS, "Content-Type: text/html; charset=iso-8859-1" Print #hS, "" Print #hS, "" Print #hS, "" Print #hS, "" & hErr & "" Print #hS, "" Print #hS, "

Bad Request

" Print #hS, hErr & ".

" Print #hS, "


" Print #hS, "
Gambas XML-RPC Server
" Print #hS, "" Print #hS, "" Print #hS, "" ... hS.Begin hS.EndOfLine = gb.Windows Print #hS, "HTTP/1.1 200 OK" Print #hS, "Connection: close" Print #hS, "Content-Length: " & Len(sReply) Print #hS, "Content-Type: text/xml" Print #hS, "Server: Gambas RPC Server" Print #hS, "" Write #hS, sReply, Len(sReply) ... TO: Try hS.Begin Try hS.EndOfLine = gb.Windows Try Print #hS, "HTTP/1.1 " & hErr Try Print #hS, "Server: Gambas XML-RPC Server" Try Print #hS, "Connection: close" Try Print #hS, "Content-Type: text/html; charset=iso-8859-1" Try Print #hS, "" Try Print #hS, "" Try Print #hS, "" Try Print #hS, "" & hErr & "" Try Print #hS, "" Try Print #hS, "

Bad Request

" Try Print #hS, hErr & ".

" Try Print #hS, "


" Try Print #hS, "
Gambas XML-RPC Server
" Try Print #hS, "" Try Print #hS, "" Try Print #hS, "" ... Try hS.Begin Try hS.EndOfLine = gb.Windows Try Print #hS, "HTTP/1.1 200 OK" Try Print #hS, "Connection: close" Try Print #hS, "Content-Length: " & Len(sReply) Try Print #hS, "Content-Type: text/xml" Try Print #hS, "Server: Gambas RPC Server" Try Print #hS, "" Try Write #hS, sReply, Len(sReply) ... 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5722 Operating system: Linux Distribution: Ubuntu Architecture: x86_64 GUI component: QT4 Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. To reproduce it, just create a XML-RPC server and execute the following command: cat xml-reques.txt | nc 127.0.0.1 9009 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. 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: xml-request.txt 215 bytes -- 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 Jul 6 20:14:49 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 06 Jul 2013 18:14:49 +0000 Subject: [Gambas-user] Issue 449 in gambas: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". In-Reply-To: <4-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> <0-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-2783357097150170589-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #5 on issue 449 by benoit.m... at ...626...: RpcServer sends a not complete valid request, it sends "\n", it should send "\r\n". http://code.google.com/p/gambas/issues/detail?id=449 (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 Jul 6 20:15:49 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 06 Jul 2013 18:15:49 +0000 Subject: [Gambas-user] Issue 438 in gambas: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data In-Reply-To: <7-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> <0-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #8 on issue 438 by benoit.m... at ...626...: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data http://code.google.com/p/gambas/issues/detail?id=438 (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 Jul 6 21:02:55 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 06 Jul 2013 19:02:55 +0000 Subject: [Gambas-user] Issue 451 in gambas: XML-RPC/RpcServer crashes if the receiving socket is closed In-Reply-To: <0-6813199134517018827-1135840106257942837-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1135840106257942837-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1135840106257942837-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-3.4.0 Comment #1 on issue 451 by benoit.m... at ...626...: XML-RPC/RpcServer crashes if the receiving socket is closed http://code.google.com/p/gambas/issues/detail?id=451 Fixed in revision #5723 in a different way : A stream redirected through the 'Begin' method checks that stream is ready for writing only when the 'Send' method is called. Between the 'Begin' and 'Send' calls, the PRINT and WRITE instructions will always succeed. In other words, the TRY method is only necessary when calling the 'Send' method, like it was. But I don't think that this fix will be backported to the 3.4 version, so your own version of the fix, or a different one with CATCH and FINALLY will be necessary anyway. -- 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 alberto.kavan at ...626... Sun Jul 7 21:48:37 2013 From: alberto.kavan at ...626... (Alberto Caballero) Date: Sun, 7 Jul 2013 21:48:37 +0200 Subject: [Gambas-user] Multiple charts using gb.chart In-Reply-To: References: Message-ID: Hi again Fabien, I've been trying to make it work, but no success. Please find attached a ZIP file containing a project that tries to show two charts inside two differente Drawing Areas inside two different tabs. Sometimes it works and sometimes not. Is it not possible to declare to Chart private variables? At the example, in order to show the graphs just click on the buttons below. Thanks and regards, Alberto 2013/6/28 Fabien Bodard > It depend... If all the chart are on the same style ... One chart object in > multiple drawing area pointing on one event handler > > Group > Le 28 juin 2013 13:14, "Alberto Caballero" a > ?crit : > > > Ok Fabien, > > > > I will try all of this. What I want to do is to show different charts > > inside different tabs. Should I declare different Chart variables for > each > > chart? > > > > I will update you ASAP. > > > > > > 2013/6/28 Fabien Bodard > > > > > Never resize the drawing area in its draw event !!! > > > > > > Use the form resize event or better learn how to use gambas arrangement > > > properties. The last allow to do what you want without any code line. > > > Le 28 juin 2013 13:06, "Fabien Bodard" a ?crit : > > > > > > > I think I don'treally understand what you want to do ... > > > > > > > > One tabstrip ... Multiple tabs and one chart object with different > set > > of > > > > data that change depend on the selected tab ? > > > > Le 28 juin 2013 12:54, "Alberto Caballero" > a > > > > ?crit : > > > > > > > >> Hi Fabien, > > > >> > > > >> Thanks for your support. > > > >> > > > >> Here you have the piece of code that manages the graph. For a new > > graph > > > at > > > >> a new DrawingArea, should I declare a new Chart variable? I think > this > > > did > > > >> not work for me. > > > >> > > > >> Private Sub GenGraficaCaudales() > > > >> > > > >> Dim i As Integer > > > >> Dim msg As String > > > >> Dim titles As New String[365] > > > >> Dim CaudalesArray As New Float[365] > > > >> > > > >> For i = 0 To 364 > > > >> msg = Str$(i) > > > >> titles[i] = msg > > > >> Next > > > >> > > > >> CaudalesArray = pProyecto.GetCaudalesArray() > > > >> ChartCaudales.Headers.Values = titles > > > >> ChartCaudales.CountDataSets = 1 > > > >> > > > >> ChartCaudales[0].Text = "Caudales" > > > >> ChartCaudales[0].Values = CaudalesArray > > > >> > > > >> ChartCaudales.Style = ChartStyle.Custom > > > >> ChartCaudales.Colors.values = [Color.blue, Color.Yellow] > > > >> ChartCaudales.Legend.Visible = True > > > >> ChartCaudales.Legend.Title = "Leyenda" > > > >> > > > >> 'Titulo de la Gr?fica > > > >> ChartCaudales.Title.Text = "Curva de Caudales Clasificados" > > > >> > > > >> ChartCaudales.XAxe.Step = 10 > > > >> ChartCaudales.YAxe.MinValue = 0 > > > >> ChartCaudales.YAxe.MaxValue = 15 > > > >> ChartCaudales.Proportionnal = True > > > >> > > > >> 'Tipo de Gr?fica > > > >> ChartCaudales.Type = ChartType.Lines > > > >> End > > > >> > > > >> Public Sub DrawingArea1_Draw() > > > >> > > > >> If (DrawOk = True) Then > > > >> ChartCaudales.Width = DrawingArea1.ClientHeight - 50 > > > >> ChartCaudales.Height = DrawingArea1.ClientWidth - 50 > > > >> ChartCaudales.Resize(880, 450) > > > >> ChartCaudales.Draw 'Muestra la Grafica > > > >> Endif > > > >> > > > >> > > > >> End > > > >> > > > >> > > > >> 2013/6/27 Fabien Bodard > > > >> > > > >> > can you send me your project or a part of it that show the > problem ? > > > >> > > > > >> > > > > >> > 2013/6/27 Alberto Caballero > > > >> > > > > >> > > Hi all, > > > >> > > > > > >> > > I am trying to show multiple charts inside a TabView. I managed > to > > > >> show > > > >> > > only one chart. I only get compilation errors or the new chart > is > > > not > > > >> > > displayed. I tried to find something to help me in the internet, > > and > > > >> even > > > >> > > in this mailing list, but I was unable to find anything. > > > >> > > > > > >> > > Would you provide me any reference or an example to have a look? > > > >> > > > > > >> > > Thanks in advance, > > > >> > > > > > >> > > Alberto > > > >> > > > > > >> > > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > > This SF.net email is sponsored by Windows: > > > >> > > > > > >> > > Build for Windows Store. > > > >> > > > > > >> > > http://p.sf.net/sfu/windows-dev2dev > > > >> > > _______________________________________________ > > > >> > > Gambas-user mailing list > > > >> > > Gambas-user at lists.sourceforge.net > > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > > >> > > > > >> > > > > >> > > > > >> > -- > > > >> > Fabien Bodard > > > >> > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > This SF.net email is sponsored by Windows: > > > >> > > > > >> > Build for Windows Store. > > > >> > > > > >> > http://p.sf.net/sfu/windows-dev2dev > > > >> > _______________________________________________ > > > >> > Gambas-user mailing list > > > >> > Gambas-user at lists.sourceforge.net > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > >> > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> This SF.net email is sponsored by Windows: > > > >> > > > >> Build for Windows Store. > > > >> > > > >> http://p.sf.net/sfu/windows-dev2dev > > > >> _______________________________________________ > > > >> Gambas-user mailing list > > > >> Gambas-user at lists.sourceforge.net > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > This SF.net email is sponsored by Windows: > > > > > > Build for Windows Store. > > > > > > http://p.sf.net/sfu/windows-dev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Windows: > > > > Build for Windows Store. > > > > http://p.sf.net/sfu/windows-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > 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: MultCharts.zip Type: application/zip Size: 11052 bytes Desc: not available URL: From gambas at ...2524... Mon Jul 8 07:53:49 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 08 Jul 2013 05:53:49 +0000 Subject: [Gambas-user] Issue 452 in gambas: PictureBox.picture images file filter is broken Message-ID: <0-6813199134517018827-4789410307025255595-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 452 by BugCatch... at ...626...: PictureBox.picture images file filter is broken http://code.google.com/p/gambas/issues/detail?id=452 1) Describe the problem. I had noticed a problem in the picturebox.picture select file routine, and was browsing through the release notes for 3.4.1 when I noticed the possible cause of the problem and the possible solution. PictureBox.picture dialog uses an image filter with commas instead of the semi-colon mentioned in the release notes. Hence no files are returned using that filter, but the "all" works OK. Is this going to be a big problem in many components, because those filters need to be changed? Just thought you should know. Paul p.s. Would this be something I could help you fix? 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Gambas 3.4.1 3) Provide a little project that reproduces the bug or the crash. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. Put picturebox component onto form. Mine was on a tabpanel. Go to picture property ... Dialog default is: image files (*.png,*.jpg,.....) This filter returns no files Use the "all files" filter and expected files show up. 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 nemh at ...2007... Mon Jul 8 08:16:01 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Mon, 8 Jul 2013 08:16:01 +0200 Subject: [Gambas-user] Issue 452 in gambas: PictureBox.picture images file filter is broken In-Reply-To: <0-6813199134517018827-4789410307025255595-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4789410307025255595-gambas=googlecode.com@...2524...> Message-ID: <20130708081601.0729e417@...3118...> It's already fixed in revision 5630: http://sourceforge.net/p/gambas/code/5630 > Status: New > Owner: ---- > Labels: Version-3.4.1 Type-Bug Priority-Medium OpSys-Any Dist-Any > Arch-Any Desktop-Any GUI-Any > > New issue 452 by BugCatch... at ...626...: PictureBox.picture images > file filter is broken > http://code.google.com/p/gambas/issues/detail?id=452 > > 1) Describe the problem. > I had noticed a problem in the picturebox.picture select file > routine, and was browsing through the release notes for 3.4.1 when I > noticed the possible cause of the problem and the possible solution. > > PictureBox.picture dialog uses an image filter with commas instead of > the semi-colon mentioned in the release notes. Hence no files are > returned using that filter, but the "all" works OK. > > Is this going to be a big problem in many components, because those > filters need to be changed? > > Just thought you should know. > > Paul > > p.s. Would this be something I could help you fix? > > > 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): > Gambas 3.4.1 > > 3) Provide a little project that reproduces the bug or the crash. > > 4) If your project needs a database, try to provide it, or part of it. > > 5) Explain clearly how to reproduce the bug or the crash. > Put picturebox component onto form. Mine was on a tabpanel. > Go to picture property ... > Dialog default is: image files (*.png,*.jpg,.....) > This filter returns no files > Use the "all files" filter and expected files show up. > > 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! > > From paulwheeler at ...546... Mon Jul 8 18:00:49 2013 From: paulwheeler at ...546... (paulwheeler) Date: Mon, 08 Jul 2013 09:00:49 -0700 Subject: [Gambas-user] Issue 452 in gambas: PictureBox.picture images file filter is broken In-Reply-To: References: <0-6813199134517018827-4789410307025255595-gambas=googlecode.com@...2524...> Message-ID: <51DAE231.7070408@...546...> Thank you for the information. paul On 07/07/2013 11:16 PM, Kende Kriszti??n wrote: It's already fixed in revision 5630: [1]http://sourceforge.net/p/gambas/code/5630 Status: New Owner: ---- Labels: Version-3.4.1 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 452 by [2]BugCatch... at ...626...: PictureBox.picture images file filter is broken [3]http://code.google.com/p/gambas/issues/detail?id=452 1) Describe the problem. I had noticed a problem in the picturebox.picture select file routine, and was browsing through the release notes for 3.4.1 when I noticed the possible cause of the problem and the possible solution. PictureBox.picture dialog uses an image filter with commas instead of the semi-colon mentioned in the release notes. Hence no files are returned using that filter, but the "all" works OK. Is this going to be a big problem in many components, because those filters need to be changed? Just thought you should know. Paul p.s. Would this be something I could help you fix? 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Gambas 3.4.1 3) Provide a little project that reproduces the bug or the crash. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. Put picturebox component onto form. Mine was on a tabpanel. Go to picture property ... Dialog default is: image files (*.png,*.jpg,.....) This filter returns no files Use the "all files" filter and expected files show up. 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! ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. [4]http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Gambas-user mailing list [5]Gambas-user at lists.sourceforge.net [6]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://sourceforge.net/p/gambas/code/5630 2. mailto:BugCatch... at ...626... 3. http://code.google.com/p/gambas/issues/detail?id=452 4. http://p.sf.net/sfu/windows-dev2dev 5. mailto:Gambas-user at lists.sourceforge.net 6. https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Mon Jul 8 18:22:28 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 8 Jul 2013 17:22:28 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. Message-ID: <1373300548.76398.YahooMailBasic@...3054...> Hello, I'm trying to transpose the short C code of the application: "simple_client" based on Jack API, which you can see here: https://github.com/jackaudio/example-clients/blob/master/simple_client.c This small Jack application uses a function "callback" in the code called "process", which I tried to call in Gambas adhering to the instructions - about the "callbacks" - contained in the official documentation relating to external functions. I do not understand really why the "backcall" function in my Gambas transposition does not works. So I'ld like to ask for your help for a checking, so that we can understand the real problem. I attach the source code of my Gambas transposition. (Application needs Jack is running) Thanks... a lot ! Regards Vuott -------------- next part -------------- A non-text attachment was scrubbed... Name: traJk-0.0.1.tar.gz Type: application/gzip Size: 6158 bytes Desc: not available URL: From gambas at ...2524... Mon Jul 8 19:13:39 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 08 Jul 2013 17:13:39 +0000 Subject: [Gambas-user] Issue 453 in gambas: error on gmime open file when simple desktop are used (openbox, rox, etc) Message-ID: <0-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Critical OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any Usability Maintainability New issue 453 by mckayger... at ...626...: error on gmime open file when simple desktop are used (openbox, rox, etc) http://code.google.com/p/gambas/issues/detail?id=453 1) bug description Whe i use gambas ide and try to open file, if are under different desktop, specially simple desktop like openbox, or such rox, got and error and close gambas ide abrupted 2) OS info Version: 3.4.1 Operating system: Linux Distribution: Venenux Architecture: x86 GUI component: GTK+ Desktop used: Openbox or Rox or Razorqt 5) How to reproduce bug easyle: a) Open IDE and crate new project b) go to Data directory and try create a new file with "Other" c) create as text type with name as "xx.conf" d) save and try now to open e) when open got a crash 6) a file with error imagen are atached 7) IMPORTANT NOTES this happends with all desktops that are not kde4 or gnomepuach, example such kde3, trinity, razorqt, qtdesktop, openbox, some exceptions like lxde due relies on gnome-puach parts. the mime component handle assumes that gmimme are loaded and manage all files!!!! its obvios that developers think that stupid unity/gnome are the only desktop in the world, and mysql its a good DB... i just only report this issue.. feel free to handle or not the lasted notes. Attachments: gambas-error-mime-when-null-desktop.png 96.5 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... Mon Jul 8 19:37:53 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 08 Jul 2013 17:37:53 +0000 Subject: [Gambas-user] Issue 453 in gambas: error on gmime open file when simple desktop are used (openbox, rox, etc) In-Reply-To: <0-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #1 on issue 453 by benoit.m... at ...626...: error on gmime open file when simple desktop are used (openbox, rox, etc) http://code.google.com/p/gambas/issues/detail?id=453 (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 Jul 8 19:44:47 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 08 Jul 2013 17:44:47 +0000 Subject: [Gambas-user] Issue 453 in gambas: error on gmime open file when simple desktop are used (openbox, rox, etc) In-Reply-To: <1-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> <0-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 453 by benoit.m... at ...626...: error on gmime open file when simple desktop are used (openbox, rox, etc) http://code.google.com/p/gambas/issues/detail?id=453 It should be fixed in revision #5724, please confirm! It is not related to "gmime" (?). The system mime database is implemented with text files, they are not directly related to any GUI desktop, but the IDE didn't take into account that a file may not be associated with any mimetype. -- 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 taboege at ...626... Mon Jul 8 20:08:46 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 8 Jul 2013 20:08:46 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1373300548.76398.YahooMailBasic@...3054...> References: <1373300548.76398.YahooMailBasic@...3054...> Message-ID: <20130708180845.GA708@...2774...> On Mon, 08 Jul 2013, Ru Vuott wrote: > Hello, > > I'm trying to transpose the short C code of the application: "simple_client" based on Jack API, which you can see here: > > https://github.com/jackaudio/example-clients/blob/master/simple_client.c > > This small Jack application uses a function "callback" in the code called "process", which I tried to call in Gambas adhering to the instructions - about the "callbacks" - contained in the official documentation relating to external functions. > > I do not understand really why the "backcall" function in my Gambas transposition does not works. > So I'ld like to ask for your help for a checking, so that we can understand the real problem. > > I attach the source code of my Gambas transposition. > > (Application needs Jack is running) > > Thanks... a lot ! Sorry, I don't know the least what this project is about but the comment in the C sources state that the callback is executed in a "special realtime thread". This is the same problem as here[0], I suspect. Regards, Tobi [0] http://sourceforge.net/mailarchive/message.php?msg_id=30895071 From gambas at ...2524... Mon Jul 8 20:16:06 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 08 Jul 2013 18:16:06 +0000 Subject: [Gambas-user] Issue 450 in gambas: RpcClient hangs (randomly) and CPU goes to 100% when using timers In-Reply-To: <0-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 450 by benoit.m... at ...626...: RpcClient hangs (randomly) and CPU goes to 100% when using timers http://code.google.com/p/gambas/issues/detail?id=450 This behaviour is a side effect or your 'tSleep' timer that calls the event loop inside its event handler, which may lead to unexpected recursion, or many other possible bad things. Why did you do that? What did you want to achieve? -- 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 Jul 8 20:17:06 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 08 Jul 2013 18:17:06 +0000 Subject: [Gambas-user] Issue 450 in gambas: RpcClient hangs (randomly) and CPU goes to 100% when using timers In-Reply-To: <1-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> <0-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Comment #2 on issue 450 by benoit.m... at ...626...: RpcClient hangs (randomly) and CPU goes to 100% when using timers http://code.google.com/p/gambas/issues/detail?id=450 If you want to wait without calling the event loop (for example to simulate the duration of a process), use the SLEEP instruction. -- 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 Jul 8 20:40:19 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 08 Jul 2013 18:40:19 +0000 Subject: [Gambas-user] Issue 453 in gambas: error on gmime open file when simple desktop are used (openbox, rox, etc) In-Reply-To: <2-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> <0-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-3463421661618081731-gambas=googlecode.com@...2524...> Comment #3 on issue 453 by mckayger... at ...626...: error on gmime open file when simple desktop are used (openbox, rox, etc) http://code.google.com/p/gambas/issues/detail?id=453 thanks for reply, i'm sorry can't confirm due i'm very busy at work and not have time either debian env to build a recent gambas3 packages... sorry for the moment.. -- 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 Jul 8 21:56:36 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 08 Jul 2013 19:56:36 +0000 Subject: [Gambas-user] Issue 450 in gambas: RpcClient hangs (randomly) and CPU goes to 100% when using timers In-Reply-To: <2-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> <0-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Comment #3 on issue 450 by uAle... at ...626...: RpcClient hangs (randomly) and CPU goes to 100% when using timers http://code.google.com/p/gambas/issues/detail?id=450 The following trying to being achieved (with DomotiGa): - Application which has a foreground and background activities - The foreground application is doing sometimes XML-RPC as client and shows a GUI - On the background application handles events from serial or network interfaces, processing data and putting it in SQL tables With Gambas 2.24.0 this all seemed to work fine. -- 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 Jul 8 22:21:59 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 08 Jul 2013 20:21:59 +0000 Subject: [Gambas-user] Issue 450 in gambas: RpcClient hangs (randomly) and CPU goes to 100% when using timers In-Reply-To: <3-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> <0-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Comment #4 on issue 450 by benoit.m... at ...626...: RpcClient hangs (randomly) and CPU goes to 100% when using timers http://code.google.com/p/gambas/issues/detail?id=450 The question was: why calling 'WAIT 0.01' inside a timer? You are calling the event loop recursively, this is a bad idea. Even if it worked in Gambas 2.24, surely by luck. -- 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 Jul 8 22:33:11 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 08 Jul 2013 20:33:11 +0000 Subject: [Gambas-user] Issue 450 in gambas: RpcClient hangs (randomly) and CPU goes to 100% when using timers In-Reply-To: <4-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> <0-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Comment #5 on issue 450 by uAle... at ...626...: RpcClient hangs (randomly) and CPU goes to 100% when using timers http://code.google.com/p/gambas/issues/detail?id=450 Sorry - you're right, my example is "BAD" with the "WAIT 0.01". I thought i found a reproduction scenario, but your feedback gives me an idea in which direction i need to look 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 ...2524... Tue Jul 9 10:08:18 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 09 Jul 2013 08:08:18 +0000 Subject: [Gambas-user] Issue 454 in gambas: Gambas doesn't compile packages for Debian on Ubuntu 12.04 x64 Message-ID: <0-6813199134517018827-3537323050712873437-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.4.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 454 by computer... at ...626...: Gambas doesn't compile packages for Debian on Ubuntu 12.04 x64 http://code.google.com/p/gambas/issues/detail?id=454 1) Gambas fails to compile .deb packages for Debian or Ubuntu. This is likely to have something to do with fakeroot. 2) Version info Version: 3.4.0 Operating system: Linux Distribution: Ubuntu 12.04 Architecture: x86_64 GUI component: QT4 Desktop used: Unity Fakeroot version: 1.18.2 3) Provide a little project that reproduces the bug or the crash. Every project I tried fails. It creates the projectname.orig folder but not the real debs to install the program.. Alien (to convert from rpm to deb) works. 4) Explain clearly how to reproduce the bug or the crash. Make an installation package, select Debian, set some options, create package. Output below. It reports that it was succesfull, but however, it wasn't. 5) Output (some parts translated from Dutch) Make build directory. Make desktop file... Sources are being debianizated. Make package... cd /home/king/SmallProject/smallproject-0.0.1 fakeroot dpkg-buildpackage -d getopt: invalid option -- 'd' fakeroot, create a fake root environment. usage: fakeroot [-l|--lib fakerootlib] [-f|--faked fakedbin] [-i file] [-s file] [-u|--unknown-is-real] [-b|--fd-base fd] [-h|--help] [-v|--version] [--] [command] The packages were succesfully made. -- 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 Jul 9 10:12:49 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 09 Jul 2013 08:12:49 +0000 Subject: [Gambas-user] Issue 454 in gambas: Gambas doesn't compile packages for Debian on Ubuntu 12.04 x64 In-Reply-To: <0-6813199134517018827-3537323050712873437-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3537323050712873437-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3537323050712873437-gambas=googlecode.com@...2524...> Comment #1 on issue 454 by computer... at ...626...: Gambas doesn't compile packages for Debian on Ubuntu 12.04 x64 http://code.google.com/p/gambas/issues/detail?id=454 (No comment was entered for this change.) Attachments: SystemInformation.txt 335 bytes -- 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 vuott at ...325... Tue Jul 9 15:45:30 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 9 Jul 2013 14:45:30 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <20130708180845.GA708@...2774...> Message-ID: <1373377530.77242.YahooMailBasic@...3054...> Thank you, Tobias. If it is just so, it's a pity. Regards vuottt -------------------------------------------- Lun 8/7/13, Tobias Boege ha scritto: Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. A: "mailing list for gambas users" Data: Luned? 8 luglio 2013, 20:08 On Mon, 08 Jul 2013, Ru Vuott wrote: > Hello, > > I'm trying to transpose the short C code of the application: "simple_client" based on Jack API, which you can see here: > >? ? ? https://github.com/jackaudio/example-clients/blob/master/simple_client.c > > This small Jack application uses a function "callback" in the code called "process",? which I tried to call in Gambas adhering to the instructions - about the "callbacks" - contained in the official documentation relating to external functions. > > I do not understand really why the "backcall" function in my Gambas transposition does not works. > So I'ld like to ask for your help for a checking,? so that we can understand the real problem. > > I attach the source code of my Gambas transposition. > > (Application needs Jack is running) > > Thanks... a lot ! Sorry, I don't know the least what this project is about but the comment in the C sources state that the callback is executed in a "special realtime thread". This is the same problem as here[0], I suspect. Regards, Tobi [0] http://sourceforge.net/mailarchive/message.php?msg_id=30895071 ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Tue Jul 9 21:53:16 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 09 Jul 2013 19:53:16 +0000 Subject: [Gambas-user] Issue 450 in gambas: RpcClient hangs (randomly) and CPU goes to 100% when using timers In-Reply-To: <5-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> <0-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Comment #6 on issue 450 by uAle... at ...626...: RpcClient hangs (randomly) and CPU goes to 100% when using timers http://code.google.com/p/gambas/issues/detail?id=450 Ok, I think i found the reason why it isn't work. The RpcClient can send a request in Async or Sync mode. I think this is normally passed on via the hPost towards the HttpClient.c & CCurl.c. In Async mode the "_Finished", "_Read" and "_Error" events are raised. In Sync mode none of these events are raised. I noticed the following behavior: - "gb.xml/src/rpc/gb.xml.rpc/.src/RpcClient.class" sets it to sync mode - "gb.xml/src/rpc/gb.xml.rpc/.src/hPost.class" sets it to sync mode - Only this is NEVER propagated to the HttpClient.Async value - "./gb.net.curl/src/CHttpClient.c" still thinks it is in async mode Depending on timing issues, this combination can cause 100% CPU load. The HttpClient sends a "_Read" event, but in the hPost.class due to the mismatch in Modes, it *never* reads the socket and it goes into an endless loop. The following looks to have fixed it for me, modify the "gb.xml/src/rpc/gb.xml.rpc/.src/hPost.class": Public Function PostData(Data As String) As String Dim sCad As String Buffer = "" sCad = "" Http.Post("text/xml", Data) === To: === Public Function PostData(Data As String) As String Dim sCad As String Buffer = "" sCad = "" Http.Async = Mode Http.Post("text/xml", Data) ps. i didn't try to commit it into the SVN, because I don't know if my analysis (and fix) is correct. -- 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... Fri Jul 12 09:05:50 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 12 Jul 2013 07:05:50 +0000 Subject: [Gambas-user] Issue 450 in gambas: RpcClient hangs (randomly) and CPU goes to 100% when using timers In-Reply-To: <6-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> <0-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Comment #7 on issue 450 by uAle... at ...626...: RpcClient hangs (randomly) and CPU goes to 100% when using timers http://code.google.com/p/gambas/issues/detail?id=450 After more testing, the fix is submitted in r5728. -- 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 shanep1967 at ...169... Fri Jul 12 09:01:41 2013 From: shanep1967 at ...169... (Shane) Date: Fri, 12 Jul 2013 17:01:41 +1000 Subject: [Gambas-user] scraping html Message-ID: <51DFA9D5.4050800@...169...> Hi everyone i am trying to get some info from a web page in the format of
Text I Want
And Some More i Want
And The last bit
what would be the best way to go about this i have tried a few way but i feel there must be an easy way to do this thanks shane From gambas at ...2524... Fri Jul 12 14:30:21 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 12 Jul 2013 12:30:21 +0000 Subject: [Gambas-user] Issue 450 in gambas: RpcClient hangs (randomly) and CPU goes to 100% when using timers In-Reply-To: <7-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> <0-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-16021253202756714524-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #8 on issue 450 by benoit.m... at ...626...: RpcClient hangs (randomly) and CPU goes to 100% when using timers http://code.google.com/p/gambas/issues/detail?id=450 (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 mckaygerhard at ...626... Sat Jul 13 01:18:16 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 12 Jul 2013 18:48:16 -0430 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) Message-ID: i have a binary file in fs, i wish toload and store in DB, (blob of course) and then recue from db and put again in same place.. i see in docu, but all file.save asumes string, so i try using base64 coding a decoding but can work.. NOTE: when i post code in mail list, i got and error Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From rmorgan62 at ...626... Sat Jul 13 01:17:49 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 12 Jul 2013 16:17:49 -0700 Subject: [Gambas-user] scraping html In-Reply-To: <51DFA9D5.4050800@...169...> References: <51DFA9D5.4050800@...169...> Message-ID: The easiest would be to write a parser. On Fri, Jul 12, 2013 at 12:01 AM, Shane wrote: > Hi everyone > > i am trying to get some info from a web page in the format of > >
>
Text I Want
>
> And Some More i Want >
>
> And The last bit >
>
> > what would be the best way to go about this i have tried a few way but i > feel there must be an > easy way to do this > > thanks shane > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? From rmorgan62 at ...626... Sat Jul 13 01:19:20 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 12 Jul 2013 16:19:20 -0700 Subject: [Gambas-user] scraping html In-Reply-To: References: <51DFA9D5.4050800@...169...> Message-ID: You could use Python and Selenium got get the info and then do further processing in Gambas. On Fri, Jul 12, 2013 at 4:17 PM, Randall Morgan wrote: > The easiest would be to write a parser. > > > On Fri, Jul 12, 2013 at 12:01 AM, Shane wrote: > >> Hi everyone >> >> i am trying to get some info from a web page in the format of >> >>
>>
Text I Want
>>
>> And Some More i Want >>
>>
>> And The last bit >>
>>
>> >> what would be the best way to go about this i have tried a few way but i >> feel there must be an >> easy way to do this >> >> thanks shane >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at 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? > -- 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? From rmorgan62 at ...626... Sat Jul 13 01:42:12 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 12 Jul 2013 16:42:12 -0700 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) In-Reply-To: References: Message-ID: Use Read and Write for binary data. On Fri, Jul 12, 2013 at 4:18 PM, PICCORO McKAY Lenz wrote: > i have a binary file in fs, i wish toload and store in DB, (blob of course) > and then recue from db and put again in same place.. > > i see in docu, but all file.save asumes string, so i try using base64 > coding a decoding but can work.. > > NOTE: when i post code in mail list, i got and error > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? From bbruen at ...2308... Sat Jul 13 06:34:45 2013 From: bbruen at ...2308... (Bruce) Date: Sat, 13 Jul 2013 14:04:45 +0930 Subject: [Gambas-user] scraping html In-Reply-To: <51DFA9D5.4050800@...169...> References: <51DFA9D5.4050800@...169...> Message-ID: <1373690086.11629.65.camel@...2688...> On Fri, 2013-07-12 at 17:01 +1000, Shane wrote: > Hi everyone > > i am trying to get some info from a web page in the format of > >
>
Text I Want
>
> And Some More i Want >
>
> And The last bit >
>
> > what would be the best way to go about this i have tried a few way but i > feel there must be an > easy way to do this > > thanks shane Shane, Quite frankly, there is no one easy way to go about this. It depends on how well structured the data in the web page is. Also, how likely it is that the web page will change format. We scrape upwards of 300 pages daily and have some fairly mature ways of approaching it. Here's some of the techniques we use. 1) Always try and find an XML feed equivalent of the page data. Sometimes this can be found as a raw feed or sometimes as a hidden feed to an active page. Once you get the feed URL and either find or write a schema then parsing the XML is relatively trivial. 2) If the page is well structured and relatively stable, then the next best approach I suppose would be to follow Randall's suggestion and write a HTML DOM parser. But, if you go down this route, then develop a "meta" schema for your parser so you can accomodate changes to the page format and raw HTML with minimal pain. 3) Sometimes we have fond that it is better to ignore the html completely and process the page text only. This is particularly true for pages that use large, well formed "tables" of data that is unlikely to change in layout (such as if there is an "industry standard" way of presenting the data. I find that the easiest way to get the raw text in a format that allows reasonable scraping is to use wget, html2text, links or lynx to download the page as you need it. The choice of which downloader to use is dependant on which one can give you the best "layout" of the text to make parsing easier. Again, try and develop some meta-description of the text. 4) Always include code to detect possible page format changes and to describe exactly which bit of the page is no longer scrapable! This can save hours of work when a tiny bit changes and renders your parser incorrect or unusable. 5) Finally, we have encountered some pages where it appears that the target texts are seemingly impossible to predict. For example, one feed we use randomly inserts advertising data inside the data table rows. That is, only some of the rows include this extra stuff and some dont. For these, we have had to resort to "restructuring" the semi-parsed data and writing it out to an intermediate file. We then try to automatically parse that file and if that fails, manually edit the intermediate file back into a useable format. Hope this gives you some ideas of how to approach your situation. Above all, try and design an approach before leaping into the coding stage. Several times we have been caught out assuming that a page is "simple" and have had to go back and rethink the whole design for that feed because the provider made some change to the page presentation. regards Bruce From Gambas at ...1950... Sat Jul 13 08:18:46 2013 From: Gambas at ...1950... (Caveat) Date: Sat, 13 Jul 2013 08:18:46 +0200 Subject: [Gambas-user] scraping html In-Reply-To: <51DFA9D5.4050800@...169...> References: <51DFA9D5.4050800@...169...> Message-ID: <51E0F146.6000406@...1950...> You need to use the right tool for the job. I find the python tool BeautifulSoup one of the best for parsing and extracting data from web pages. http://www.crummy.com/software/BeautifulSoup/ Kind regards, Caveat On 12/07/13 09:01, Shane wrote: > Hi everyone > > i am trying to get some info from a web page in the format of > >
>
Text I Want
>
> And Some More i Want >
>
> And The last bit >
>
> > what would be the best way to go about this i have tried a few way but i > feel there must be an > easy way to do this > > thanks shane > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Jul 13 09:22:01 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 13 Jul 2013 09:22:01 +0200 Subject: [Gambas-user] scraping html In-Reply-To: <51E0F146.6000406@...1950...> References: <51DFA9D5.4050800@...169...> <51E0F146.6000406@...1950...> Message-ID: <51E10019.2090804@...1...> Le 13/07/2013 08:18, Caveat a ?crit : > You need to use the right tool for the job. I find the python tool > BeautifulSoup one of the best for parsing and extracting data from web > pages. > > http://www.crummy.com/software/BeautifulSoup/ > > Kind regards, > Caveat > You can use the DOM parser of the gb.qt4.webkit component too. -- Beno?t Minisini From gambas.fr at ...626... Sat Jul 13 10:33:04 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 13 Jul 2013 10:33:04 +0200 Subject: [Gambas-user] scraping html In-Reply-To: <51E0F146.6000406@...1950...> References: <51DFA9D5.4050800@...169...> <51E0F146.6000406@...1950...> Message-ID: There is a parsing tool in gambas for html. Gb.xml.html It's our own html dom parser. Itallow to generate well formated html5 page and or parsing existing html pages. It's one of the most fast parser I know. Look at that ... And if you need I van show yousome examples. Le 13 juil. 2013 08:20, "Caveat" a ?crit : > You need to use the right tool for the job. I find the python tool > BeautifulSoup one of the best for parsing and extracting data from web > pages. > > http://www.crummy.com/software/BeautifulSoup/ > > Kind regards, > Caveat > > On 12/07/13 09:01, Shane wrote: > > Hi everyone > > > > i am trying to get some info from a web page in the format of > > > >
> >
Text I Want
> >
> > And Some More i Want > >
> >
> > And The last bit > >
> >
> > > > what would be the best way to go about this i have tried a few way but i > > feel there must be an > > easy way to do this > > > > thanks shane > > > > > ------------------------------------------------------------------------------ > > See everything from the browser to the database with AppDynamics > > Get end-to-end visibility with application monitoring from AppDynamics > > Isolate bottlenecks and diagnose root cause in seconds. > > Start your free trial of AppDynamics Pro today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shanep1967 at ...169... Sat Jul 13 10:42:59 2013 From: shanep1967 at ...169... (Shane) Date: Sat, 13 Jul 2013 18:42:59 +1000 Subject: [Gambas-user] scraping html In-Reply-To: References: <51DFA9D5.4050800@...169...> <51E0F146.6000406@...1950...> Message-ID: <51E11313.8010709@...169...> On 13/07/13 18:33, Fabien Bodard wrote: > There is a parsing tool in gambas for html. > > Gb.xml.html > > It's our own html dom parser. Itallow to generate well formated html5 page > and or parsing existing html pages. > > It's one of the most fast parser I know. > > Look at that ... And if you need I van show yousome examples. > Le 13 juil. 2013 08:20, "Caveat" a ?crit : > >> You need to use the right tool for the job. I find the python tool >> BeautifulSoup one of the best for parsing and extracting data from web >> pages. >> >> http://www.crummy.com/software/BeautifulSoup/ >> >> Kind regards, >> Caveat >> >> On 12/07/13 09:01, Shane wrote: >>> Hi everyone >>> >>> i am trying to get some info from a web page in the format of >>> >>>
>>>
Text I Want
>>>
>>> And Some More i Want >>>
>>>
>>> And The last bit >>>
>>>
>>> >>> what would be the best way to go about this i have tried a few way but i >>> feel there must be an >>> easy way to do this >>> >>> thanks shane >>> >>> >> ------------------------------------------------------------------------------ >>> See everything from the browser to the database with AppDynamics >>> Get end-to-end visibility with application monitoring from AppDynamics >>> Isolate bottlenecks and diagnose root cause in seconds. >>> Start your free trial of AppDynamics Pro today! >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > thanks everyone for the replys and i would like some examples thanks Fabien From gambas.fr at ...626... Sat Jul 13 11:33:27 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 13 Jul 2013 11:33:27 +0200 Subject: [Gambas-user] scraping html In-Reply-To: <51E11313.8010709@...169...> References: <51DFA9D5.4050800@...169...> <51E0F146.6000406@...1950...> <51E11313.8010709@...169...> Message-ID: Send me an exemple url for the page Le 13 juil. 2013 10:52, "Shane" a ?crit : > On 13/07/13 18:33, Fabien Bodard wrote: > > There is a parsing tool in gambas for html. > > > > Gb.xml.html > > > > It's our own html dom parser. Itallow to generate well formated html5 > page > > and or parsing existing html pages. > > > > It's one of the most fast parser I know. > > > > Look at that ... And if you need I van show yousome examples. > > Le 13 juil. 2013 08:20, "Caveat" a ?crit : > > > >> You need to use the right tool for the job. I find the python tool > >> BeautifulSoup one of the best for parsing and extracting data from web > >> pages. > >> > >> http://www.crummy.com/software/BeautifulSoup/ > >> > >> Kind regards, > >> Caveat > >> > >> On 12/07/13 09:01, Shane wrote: > >>> Hi everyone > >>> > >>> i am trying to get some info from a web page in the format of > >>> > >>>
> >>>
Text I Want
> >>>
> >>> And Some More i Want > >>>
> >>>
> >>> And The last bit > >>>
> >>>
> >>> > >>> what would be the best way to go about this i have tried a few way but > i > >>> feel there must be an > >>> easy way to do this > >>> > >>> thanks shane > >>> > >>> > >> > ------------------------------------------------------------------------------ > >>> See everything from the browser to the database with AppDynamics > >>> Get end-to-end visibility with application monitoring from AppDynamics > >>> Isolate bottlenecks and diagnose root cause in seconds. > >>> Start your free trial of AppDynamics Pro today! > >>> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> > >> > >> > ------------------------------------------------------------------------------ > >> See everything from the browser to the database with AppDynamics > >> Get end-to-end visibility with application monitoring from AppDynamics > >> Isolate bottlenecks and diagnose root cause in seconds. > >> Start your free trial of AppDynamics Pro today! > >> > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > See everything from the browser to the database with AppDynamics > > Get end-to-end visibility with application monitoring from AppDynamics > > Isolate bottlenecks and diagnose root cause in seconds. > > Start your free trial of AppDynamics Pro today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > thanks everyone for the replys > and i would like some examples thanks Fabien > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rmorgan62 at ...626... Sat Jul 13 14:45:19 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Sat, 13 Jul 2013 05:45:19 -0700 Subject: [Gambas-user] scraping html In-Reply-To: References: <51DFA9D5.4050800@...169...> <51E0F146.6000406@...1950...> <51E11313.8010709@...169...> Message-ID: I too have done a lot of data scrapping for the past few years. I think picking the right tool for the job will ease your development. I have many python and Java tools and played with the Gambas parser. But I have found very little that matches the ease of development I find with Python and Selenium. Selenium is not just a scrapping tool. In-fact, it wasn't meant for that at all. It is a browser automation tool and website test framework. With it, I've had little problem dealing with typical changes in content. It is also great for comparing the page code sent to different browsers. BeautifulSoup is great for well structured pages. But once that structure is lost it often fails. XMLlib and HTMLlib and other Python modules just don't seem to match the productivity I find with Selenium. It all comes down to how general do you need your solution to be? Is this a one-off scrapping or something that you intend to do over a long period of time? Do you know Python or Java and can you learn it quickly? Must your solution scale to large projects, or just this one use? So answer these questions and then review the options. If it is something the GAMBAS parse can handle then use it. Or if the page is very stable and well structured, then write a parser. A basic parser is not difficult to write. Search the internet for Jack Crenshaw's article on building a simple parser. However, if the page is complex and this is a long term project, you may want to consider a more powerful and stable solution. As Bruce said, put in lots of tests along the way because some pages do change constantly. Having a reporting system that allows you to locate such changes is very helpful in a high production environment. Hope this helps On Sat, Jul 13, 2013 at 2:33 AM, Fabien Bodard wrote: > Send me an exemple url for the page > Le 13 juil. 2013 10:52, "Shane" a ?crit : > > > On 13/07/13 18:33, Fabien Bodard wrote: > > > There is a parsing tool in gambas for html. > > > > > > Gb.xml.html > > > > > > It's our own html dom parser. Itallow to generate well formated html5 > > page > > > and or parsing existing html pages. > > > > > > It's one of the most fast parser I know. > > > > > > Look at that ... And if you need I van show yousome examples. > > > Le 13 juil. 2013 08:20, "Caveat" a ?crit : > > > > > >> You need to use the right tool for the job. I find the python tool > > >> BeautifulSoup one of the best for parsing and extracting data from web > > >> pages. > > >> > > >> http://www.crummy.com/software/BeautifulSoup/ > > >> > > >> Kind regards, > > >> Caveat > > >> > > >> On 12/07/13 09:01, Shane wrote: > > >>> Hi everyone > > >>> > > >>> i am trying to get some info from a web page in the format of > > >>> > > >>>
> > >>>
Text I Want
> > >>>
> > >>> And Some More i Want > > >>>
> > >>>
> > >>> And The last bit > > >>>
> > >>>
> > >>> > > >>> what would be the best way to go about this i have tried a few way > but > > i > > >>> feel there must be an > > >>> easy way to do this > > >>> > > >>> thanks shane > > >>> > > >>> > > >> > > > ------------------------------------------------------------------------------ > > >>> See everything from the browser to the database with AppDynamics > > >>> Get end-to-end visibility with application monitoring from > AppDynamics > > >>> Isolate bottlenecks and diagnose root cause in seconds. > > >>> Start your free trial of AppDynamics Pro today! > > >>> > > >> > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > >>> _______________________________________________ > > >>> Gambas-user mailing list > > >>> Gambas-user at lists.sourceforge.net > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> See everything from the browser to the database with AppDynamics > > >> Get end-to-end visibility with application monitoring from AppDynamics > > >> Isolate bottlenecks and diagnose root cause in seconds. > > >> Start your free trial of AppDynamics Pro today! > > >> > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > ------------------------------------------------------------------------------ > > > See everything from the browser to the database with AppDynamics > > > Get end-to-end visibility with application monitoring from AppDynamics > > > Isolate bottlenecks and diagnose root cause in seconds. > > > Start your free trial of AppDynamics Pro today! > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > thanks everyone for the replys > > and i would like some examples thanks Fabien > > > > > > > > > ------------------------------------------------------------------------------ > > See everything from the browser to the database with AppDynamics > > Get end-to-end visibility with application monitoring from AppDynamics > > Isolate bottlenecks and diagnose root cause in seconds. > > Start your free trial of AppDynamics Pro today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? From mckaygerhard at ...626... Sat Jul 13 16:54:48 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sat, 13 Jul 2013 10:24:48 -0430 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) In-Reply-To: References: Message-ID: > Use Read and Write for binary data. men, i see, the examples but theres no example about save a unkown binary file, only knowed.. any could provide me a example, get from db a blob and save in fs dir? gambas lack on documentation, and NOTE that6 all that i ask here i'll post in my blog and my personal mail list due this lack of documentation.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas.fr at ...626... Sat Jul 13 22:52:13 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 13 Jul 2013 22:52:13 +0200 Subject: [Gambas-user] scraping html In-Reply-To: References: <51DFA9D5.4050800@...169...> <51E0F146.6000406@...1950...> <51E11313.8010709@...169...> Message-ID: Like Bruce and Randall said, there is no perfect solution if the structure of the parsed page change. so you need some control point before the parsing time to be sure that you get the good result at the end. If the control show a structure change then inform the user that the parser need to be revewed. Now there is two kind of parsing. Manual: by using instr, and other common text manipulation tools. I use it when i need to find one data on one line. Because it is more quick than a DOM tool that need to parse all the html struct before. But if you need many Info in many place of the web page, the Dom is better and allow more change in the web page before you need to change the parser structure. Simply because we use Tags and attributes to make the searches. I will send you an example tomorrow I too have done a lot of data scrapping for the past few years. I think picking the right tool for the job will ease your development. I have many python and Java tools and played with the Gambas parser. But I have found very little that matches the ease of development I find with Python and Selenium. Selenium is not just a scrapping tool. In-fact, it wasn't meant for that at all. It is a browser automation tool and website test framework. With it, I've had little problem dealing with typical changes in content. It is also great for comparing the page code sent to different browsers. BeautifulSoup is great for well structured pages. But once that structure is lost it often fails. XMLlib and HTMLlib and other Python modules just don't seem to match the productivity I find with Selenium. It all comes down to how general do you need your solution to be? Is this a one-off scrapping or something that you intend to do over a long period of time? Do you know Python or Java and can you learn it quickly? Must your solution scale to large projects, or just this one use? So answer these questions and then review the options. If it is something the GAMBAS parse can handle then use it. Or if the page is very stable and well structured, then write a parser. A basic parser is not difficult to write. Search the internet for Jack Crenshaw's article on building a simple parser. However, if the page is complex and this is a long term project, you may want to consider a more powerful and stable solution. As Bruce said, put in lots of tests along the way because some pages do change constantly. Having a reporting system that allows you to locate such changes is very helpful in a high production environment. Hope this helps On Sat, Jul 13, 2013 at 2:33 AM, Fabien Bodard wrote: > Send me an exemple url for the page > Le 13 juil. 2013 10:52, "Shane" a ?crit : > > > On 13/07/13 18:33, Fabien Bodard wrote: > > > There is a parsing tool in gambas for html. > > > > > > Gb.xml.html > > > > > > It's our own html dom parser. Itallow to generate well formated html5 > > page > > > and or parsing existing html pages. > > > > > > It's one of the most fast parser I know. > > > > > > Look at that ... And if you need I van show yousome examples. > > > Le 13 juil. 2013 08:20, "Caveat" a ?crit : > > > > > >> You need to use the right tool for the job. I find the python tool > > >> BeautifulSoup one of the best for parsing and extracting data from web > > >> pages. > > >> > > >> http://www.crummy.com/software/BeautifulSoup/ > > >> > > >> Kind regards, > > >> Caveat > > >> > > >> On 12/07/13 09:01, Shane wrote: > > >>> Hi everyone > > >>> > > >>> i am trying to get some info from a web page in the format of > > >>> > > >>>
> > >>>
Text I Want
> > >>>
> > >>> And Some More i Want > > >>>
> > >>>
> > >>> And The last bit > > >>>
> > >>>
> > >>> > > >>> what would be the best way to go about this i have tried a few way > but > > i > > >>> feel there must be an > > >>> easy way to do this > > >>> > > >>> thanks shane > > >>> > > >>> > > >> > > > ------------------------------------------------------------------------------ > > >>> See everything from the browser to the database with AppDynamics > > >>> Get end-to-end visibility with application monitoring from > AppDynamics > > >>> Isolate bottlenecks and diagnose root cause in seconds. > > >>> Start your free trial of AppDynamics Pro today! > > >>> > > >> > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > >>> _______________________________________________ > > >>> Gambas-user mailing list > > >>> Gambas-user at lists.sourceforge.net > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> See everything from the browser to the database with AppDynamics > > >> Get end-to-end visibility with application monitoring from AppDynamics > > >> Isolate bottlenecks and diagnose root cause in seconds. > > >> Start your free trial of AppDynamics Pro today! > > >> > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > ------------------------------------------------------------------------------ > > > See everything from the browser to the database with AppDynamics > > > Get end-to-end visibility with application monitoring from AppDynamics > > > Isolate bottlenecks and diagnose root cause in seconds. > > > Start your free trial of AppDynamics Pro today! > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > thanks everyone for the replys > > and i would like some examples thanks Fabien > > > > > > > > > ------------------------------------------------------------------------------ > > See everything from the browser to the database with AppDynamics > > Get end-to-end visibility with application monitoring from AppDynamics > > Isolate bottlenecks and diagnose root cause in seconds. > > Start your free trial of AppDynamics Pro today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Sun Jul 14 16:41:22 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 14 Jul 2013 17:41:22 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1373377530.77242.YahooMailBasic@...3054...> References: <20130708180845.GA708@...2774...> <1373377530.77242.YahooMailBasic@...3054...> Message-ID: Not sure this is thread issue, and anyway if it's the problem I think jackd doesn't have to be ran as realtime thread (but maybe you need it that way?). I don't think these are equal: "Private client As Pointer" and "jack_client_t *client;". Gambas code "Something As Pointer" creates void pointer without any allocation, but C code "jack_client_t *client;" creates pointer and allocation for the structure. So you need to find out size of the structure and make the allocation in Gambas before using it. http://gambasdoc.org/help/lang/alloc Unless the library takes care of the allocation... not sure. Also you didn't mention how your code fails. I would expect SGN11. Jussi On Tue, Jul 9, 2013 at 4:45 PM, Ru Vuott wrote: > Thank you, Tobias. > > If it is just so, it's a pity. > > Regards > vuottt > > > -------------------------------------------- > Lun 8/7/13, Tobias Boege ha scritto: > > Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. > A: "mailing list for gambas users" > Data: Luned? 8 luglio 2013, 20:08 > > On Mon, 08 Jul 2013, Ru Vuott wrote: > > Hello, > > > > I'm trying to transpose the short C code of the > application: "simple_client" based on Jack API, which you > can see here: > > > > > https://github.com/jackaudio/example-clients/blob/master/simple_client.c > > > > This small Jack application uses a function "callback" > in the code called "process", which I tried to call in > Gambas adhering to the instructions - about the "callbacks" > - contained in the official documentation relating to > external functions. > > > > I do not understand really why the "backcall" function > in my Gambas transposition does not works. > > So I'ld like to ask for your help for a checking, > so that we can understand the real problem. > > > > I attach the source code of my Gambas transposition. > > > > (Application needs Jack is running) > > > > Thanks... a lot ! > > Sorry, I don't know the least what this project is about but > the comment in > the C sources state that the callback is executed in a > "special realtime > thread". This is the same problem as here[0], I suspect. > > Regards, > Tobi > > [0] http://sourceforge.net/mailarchive/message.php?msg_id=30895071 > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sun Jul 14 17:06:37 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 14 Jul 2013 18:06:37 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: References: <20130708180845.GA708@...2774...> <1373377530.77242.YahooMailBasic@...3054...> Message-ID: Oops, what I was thinking... of course the allocation is inside of the library, not in pointer declaration... So I think that is correct. Jussi On Sun, Jul 14, 2013 at 5:41 PM, Jussi Lahtinen wrote: > Not sure this is thread issue, and anyway if it's the problem I think > jackd doesn't have to be ran as realtime thread (but > maybe you need it that way?). > > I don't think these are equal: "Private client As Pointer" and > "jack_client_t *client;". > > Gambas code "Something As Pointer" creates void pointer without any > allocation, > but C code "jack_client_t *client;" creates pointer and allocation for the > structure. > > So you need to find out size of the structure and make the allocation in > Gambas before using it. > http://gambasdoc.org/help/lang/alloc > > Unless the library takes care of the allocation... not sure. > > Also you didn't mention how your code fails. I would expect SGN11. > > Jussi > > > > > On Tue, Jul 9, 2013 at 4:45 PM, Ru Vuott wrote: > >> Thank you, Tobias. >> >> If it is just so, it's a pity. >> >> Regards >> vuottt >> >> >> -------------------------------------------- >> Lun 8/7/13, Tobias Boege ha scritto: >> >> Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. >> A: "mailing list for gambas users" >> Data: Luned? 8 luglio 2013, 20:08 >> >> On Mon, 08 Jul 2013, Ru Vuott wrote: >> > Hello, >> > >> > I'm trying to transpose the short C code of the >> application: "simple_client" based on Jack API, which you >> can see here: >> > >> > >> https://github.com/jackaudio/example-clients/blob/master/simple_client.c >> > >> > This small Jack application uses a function "callback" >> in the code called "process", which I tried to call in >> Gambas adhering to the instructions - about the "callbacks" >> - contained in the official documentation relating to >> external functions. >> > >> > I do not understand really why the "backcall" function >> in my Gambas transposition does not works. >> > So I'ld like to ask for your help for a checking, >> so that we can understand the real problem. >> > >> > I attach the source code of my Gambas transposition. >> > >> > (Application needs Jack is running) >> > >> > Thanks... a lot ! >> >> Sorry, I don't know the least what this project is about but >> the comment in >> the C sources state that the callback is executed in a >> "special realtime >> thread". This is the same problem as here[0], I suspect. >> >> Regards, >> Tobi >> >> [0] http://sourceforge.net/mailarchive/message.php?msg_id=30895071 >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From taboege at ...626... Sun Jul 14 18:46:09 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 14 Jul 2013 18:46:09 +0200 Subject: [Gambas-user] Two problems painting richtext Message-ID: <20130714164609.GF554@...2774...> Hi, I want to paint richtext which is: a) fading in a RadialGradient (black towards transparency) and b) centered in a rectangle. I can achieve a) when using Paint.RichText() followed by Paint.Fill(). But with this code, the text is not centered (although I specified Align.Center as a parameter to Paint.RichText()). This is a) without b). If I use Paint.DrawRichText(), the text is centered in the rectangle but the RadialGradient brush does not take effect. This is b) without a). I hope this is a bug and I can do both at a time. :-) Project and screenshot of the non-working result here are attached. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: paint-richtext-0.0.1.tar.gz Type: application/octet-stream Size: 5013 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: paint-richtext-wrong.png Type: image/png Size: 8751 bytes Desc: not available URL: From vuott at ...325... Sun Jul 14 23:24:29 2013 From: vuott at ...325... (Ru Vuott) Date: Sun, 14 Jul 2013 22:24:29 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: Message-ID: <1373837069.98498.YahooMailBasic@...3065...> Hello Jussi, > but C code "jack_client_t *client;" creates pointer and allocation for the structure. But if I exclude the "callback" function, all the remaining works normally. However I can try with allocation.... > Also you didn't mention how your code fails. I would expect SGN11. Yes, it does. Thanks vuott -------------------------------------------- Dom 14/7/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. A: "mailing list for gambas users" Data: Domenica 14 luglio 2013, 16:41 Not sure this is thread issue, and anyway if it's the problem I think jackd doesn't have to be ran as realtime thread (but maybe you need it that way?). I don't think these are equal: "Private client As Pointer" and "jack_client_t *client;". Gambas code "Something As Pointer" creates void pointer without any allocation, but C code "jack_client_t *client;" creates pointer and allocation for the structure. So you need to find out size of the structure and make the allocation in Gambas before using it. http://gambasdoc.org/help/lang/alloc Unless the library takes care of the allocation... not sure. Also you didn't mention how your code fails. I would expect SGN11. Jussi On Tue, Jul 9, 2013 at 4:45 PM, Ru Vuott wrote: > Thank you, Tobias. > > If it is just so, it's a pity. > > Regards > vuottt > > > -------------------------------------------- > Lun 8/7/13, Tobias Boege ha scritto: > >? Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. >? A: "mailing list for gambas users" >? Data: Luned? 8 luglio 2013, 20:08 > >? On Mon, 08 Jul 2013, Ru Vuott wrote: >? > Hello, >? > >? > I'm trying to transpose the short C code of the >? application: "simple_client" based on Jack API, which you >? can see here: >? > >? > > https://github.com/jackaudio/example-clients/blob/master/simple_client.c >? > >? > This small Jack application uses a function "callback" >? in the code called "process",? which I tried to call in >? Gambas adhering to the instructions - about the "callbacks" >? - contained in the official documentation relating to >? external functions. >? > >? > I do not understand really why the "backcall" function >? in my Gambas transposition does not works. >? > So I'ld like to ask for your help for a checking, >? so that we can understand the real problem. >? > >? > I attach the source code of my Gambas transposition. >? > >? > (Application needs Jack is running) >? > >? > Thanks... a lot ! > >? Sorry, I don't know the least what this project is about but >? the comment in >? the C sources state that the callback is executed in a >? "special realtime >? thread". This is the same problem as here[0], I suspect. > >? Regards, >? Tobi > >? [0] http://sourceforge.net/mailarchive/message.php?msg_id=30895071 > > >? ------------------------------------------------------------------------------ >? This SF.net email is sponsored by Windows: > >? Build for Windows Store. > >? http://p.sf.net/sfu/windows-dev2dev >? _______________________________________________ >? Gambas-user mailing list >? Gambas-user at lists.sourceforge.net >? https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Sun Jul 14 23:28:06 2013 From: vuott at ...325... (Ru Vuott) Date: Sun, 14 Jul 2013 22:28:06 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: Message-ID: <1373837286.94934.YahooMailBasic@...3065...> > Oops, what I was thinking... of > course the allocation is inside of the > library, not in pointer declaration... > So I think that is correct. > Jussi Ok Bye vuottt On Sun, Jul 14, 2013 at 5:41 PM, Jussi Lahtinen wrote: > Not sure this is thread issue, and anyway if it's the problem I think > jackd doesn't have to be ran as realtime thread (but > maybe you need it that way?). > > I don't think these are equal: "Private client As Pointer" and > "jack_client_t *client;". > > Gambas code "Something As Pointer" creates void pointer without any > allocation, > but C code "jack_client_t *client;" creates pointer and allocation for the > structure. > > So you need to find out size of the structure and make the allocation in > Gambas before using it. > http://gambasdoc.org/help/lang/alloc > > Unless the library takes care of the allocation... not sure. > > Also you didn't mention how your code fails. I would expect SGN11. > > Jussi > > > > > On Tue, Jul 9, 2013 at 4:45 PM, Ru Vuott wrote: > >> Thank you, Tobias. >> >> If it is just so, it's a pity. >> >> Regards >> vuottt >> >> >> -------------------------------------------- >> Lun 8/7/13, Tobias Boege ha scritto: >> >>? Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. >>? A: "mailing list for gambas users" >>? Data: Luned? 8 luglio 2013, 20:08 >> >>? On Mon, 08 Jul 2013, Ru Vuott wrote: >>? > Hello, >>? > >>? > I'm trying to transpose the short C code of the >>? application: "simple_client" based on Jack API, which you >>? can see here: >>? > >>? > >> https://github.com/jackaudio/example-clients/blob/master/simple_client.c >>? > >>? > This small Jack application uses a function "callback" >>? in the code called "process",? which I tried to call in >>? Gambas adhering to the instructions - about the "callbacks" >>? - contained in the official documentation relating to >>? external functions. >>? > >>? > I do not understand really why the "backcall" function >>? in my Gambas transposition does not works. >>? > So I'ld like to ask for your help for a checking, >>? so that we can understand the real problem. >>? > >>? > I attach the source code of my Gambas transposition. >>? > >>? > (Application needs Jack is running) >>? > >>? > Thanks... a lot ! >> >>? Sorry, I don't know the least what this project is about but >>? the comment in >>? the C sources state that the callback is executed in a >>? "special realtime >>? thread". This is the same problem as here[0], I suspect. >> >>? Regards, >>? Tobi >> >>? [0] http://sourceforge.net/mailarchive/message.php?msg_id=30895071 >> >> >>? ------------------------------------------------------------------------------ >>? This SF.net email is sponsored by Windows: >> >>? Build for Windows Store. >> >>? http://p.sf.net/sfu/windows-dev2dev >>? _______________________________________________ >>? Gambas-user mailing list >>? Gambas-user at lists.sourceforge.net >>? https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Sun Jul 14 23:38:41 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 14 Jul 2013 23:38:41 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1373837069.98498.YahooMailBasic@...3065...> References: <1373837069.98498.YahooMailBasic@...3065...> Message-ID: <20130714213841.GG554@...2774...> On Sun, 14 Jul 2013, Ru Vuott wrote: > Hello Jussi, > > > > but C code "jack_client_t *client;" creates pointer and allocation for the structure. > > But if I exclude the "callback" function, all the remaining works normally. However I can try with allocation.... > > > > Also you didn't mention how your code fails. I would expect SGN11. > > Yes, it does. > This changes the situation quite a bit. I thought "does not work" means "does nothing" and not "crashes". We must see the gdb backtrace at least to tell what happened... Regards, Tobi From jussi.lahtinen at ...626... Mon Jul 15 01:44:43 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 15 Jul 2013 02:44:43 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <20130714213841.GG554@...2774...> References: <1373837069.98498.YahooMailBasic@...3065...> <20130714213841.GG554@...2774...> Message-ID: Problem may be here: "sizeof (jack_default_audio_sample_t) * nframes);" "memcpy(outp, inp, SizeOf(gb.Float) * nframes)" Is it really float, instead of single (in C float and double)? Jussi On Mon, Jul 15, 2013 at 12:38 AM, Tobias Boege wrote: > On Sun, 14 Jul 2013, Ru Vuott wrote: > > Hello Jussi, > > > > > > > but C code "jack_client_t *client;" creates pointer and allocation > for the structure. > > > > But if I exclude the "callback" function, all the remaining works > normally. However I can try with allocation.... > > > > > > > Also you didn't mention how your code fails. I would expect SGN11. > > > > Yes, it does. > > > > This changes the situation quite a bit. I thought "does not work" means > "does nothing" and not "crashes". We must see the gdb backtrace at least to > tell what happened... > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Mon Jul 15 04:07:11 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 15 Jul 2013 03:07:11 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: Message-ID: <1373854031.84542.YahooMailBasic@...3066...> > Problem may be here: > "sizeof (jack_default_audio_sample_t) * nframes);" > "memcpy(outp, inp, SizeOf(gb.Float) * nframes)" > > Is it really float, instead of single (in C float and double)? > > Jussi Hello Jussi, I tried with "gb.Single" and all of other type..... nothing: Error 11 (Segmentation fault) :-( Bye vuottttt From taboege at ...626... Mon Jul 15 10:38:43 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 15 Jul 2013 10:38:43 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1373854031.84542.YahooMailBasic@...3066...> References: <1373854031.84542.YahooMailBasic@...3066...> Message-ID: <20130715083843.GA516@...2774...> On Mon, 15 Jul 2013, Ru Vuott wrote: > > > > Problem may be here: > > "sizeof (jack_default_audio_sample_t) * nframes);" > > "memcpy(outp, inp, SizeOf(gb.Float) * nframes)" > > > > Is it really float, instead of single (in C float and double)? > > > > Jussi > > > Hello Jussi, > > I tried with "gb.Single" and all of other type..... nothing: Error 11 (Segmentation fault) :-( > I don't like to guess. The backtrace would maybe clear this up... Regards, Tobi From vuott at ...325... Mon Jul 15 11:08:03 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 15 Jul 2013 10:08:03 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <20130715083843.GA516@...2774...> Message-ID: <1373879283.14365.YahooMailBasic@...3064...> > I don't like to guess. The backtrace would maybe clear this up... > > Regards, > Tobi Hello Tobias, uhmm... how can I get the backtrace of the function ? bye vuottttt From taboege at ...626... Mon Jul 15 11:15:55 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 15 Jul 2013 11:15:55 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1373879283.14365.YahooMailBasic@...3064...> References: <20130715083843.GA516@...2774...> <1373879283.14365.YahooMailBasic@...3064...> Message-ID: <20130715091554.GB516@...2774...> On Mon, 15 Jul 2013, Ru Vuott wrote: > > > I don't like to guess. The backtrace would maybe clear this up... > > > > Regards, > > Tobi > > > Hello Tobias, > > uhmm... how can I get the backtrace of the function ? > $ cd your/project/dir $ gbc3 -ga $ gdb gbx3 ... (gdb) r ... (gdb) bt There's a section in the docs[0] about it. Regards, Tobi [0] http://gambasdoc.org/help/doc/report#t5 From eilert-sprachen at ...221... Mon Jul 15 12:52:35 2013 From: eilert-sprachen at ...221... (Sprachschule Eilert) Date: Mon, 15 Jul 2013 12:52:35 +0200 Subject: [Gambas-user] Receiving an email Message-ID: <51E3D473.5080300@...221...> For a Gambas script, I'm looking for an easy way of receiving an email from my webserver. There is a contact form on our website, and it sends an email with the contact data to me. The idea is to have another contact form which is an application form, and to process these data by a Gambas to make them a nice pdf to be sent back to the customer. Is there an easy way to read email from within a Gambas script even if I'm not logged in the office with my mailer? Thanks for your ideas! Rolf From vuott at ...325... Mon Jul 15 13:07:07 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 15 Jul 2013 12:07:07 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <20130715091554.GB516@...2774...> Message-ID: <1373886427.55833.YahooMailBasic@...3070...> Well, thank you. Today in the evening I'll do the backtrace. vuott -------------------------------------------- Lun 15/7/13, Tobias Boege ha scritto: Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. A: "mailing list for gambas users" Data: Luned? 15 luglio 2013, 11:15 On Mon, 15 Jul 2013, Ru Vuott wrote: > > > I don't like to guess. The backtrace would maybe clear this up... > > > > Regards, > > Tobi >? > > Hello Tobias, > > uhmm... how can I get the backtrace of the function ? > $ cd your/project/dir $ gbc3 -ga $ gdb gbx3 ... (gdb) r ... (gdb) bt There's a section in the docs[0] about it. Regards, Tobi [0] http://gambasdoc.org/help/doc/report#t5 ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rmorgan62 at ...626... Mon Jul 15 17:16:52 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 15 Jul 2013 08:16:52 -0700 Subject: [Gambas-user] Receiving an email In-Reply-To: <51E3D473.5080300@...221...> References: <51E3D473.5080300@...221...> Message-ID: Is your email pop3, IMAP, MAPI, or webmail? The way you approach this depends on the target system. IMHO pop3 would be the easiest. There you would only need to access your mail account to download the emails for processing. Gambas has PDF generation capabilities so that is not an issue. Another way to handle this would be to setup a GAMABS SMTP service and have the emails forwarded to that service. Then the app could be written to process any email that arrived in the inbox. As for an easy way.... Well, easy is a qualitative term and so the ease of development would depend on the programmer's experience and abilities. If you're using webmail and the front end is something like Squirrel Mail, then you have a nice table arrangement that can be easily parsed with GAMBAS. But if your mail account is something like Yahoo or Google I think a web parsing framework such as those used with Java or Python would ease development. A lot of my data collection tasks involve writing code in different languages. For example, One of my apps is a simple bash script that takes forms submitted as pdfs, and processes them using python and then stores the results in a MySQL DB which has some stored procedures for final processing. Then a cron script runs one every 5 minutes to get any new rows from the DB and place them in a queue to be reviewed by staff. The staff app then calls a php script that connects to a asterisk system if the staff needs to contact the client, and dials the clients number. Sadly, the staff review portion was not written in Gambas but in C++/Qt. Don't get bogged down into thinking that if you use GAMBAS for a portion of the app that you must use it for the whole app. You can create powerful systems by combining the resources found other tools. Gambas and most Linux software is designed to allow this kind of inter-connect via pipes, sockets, and files. So pick the tools that make each part of the process easiest and you development will be simplified. Hope this helps! On Mon, Jul 15, 2013 at 3:52 AM, Sprachschule Eilert < eilert-sprachen at ...221...> wrote: > For a Gambas script, I'm looking for an easy way of receiving an email > from my webserver. > > There is a contact form on our website, and it sends an email with the > contact data to me. The idea is to have another contact form which is an > application form, and to process these data by a Gambas to make them a > nice pdf to be sent back to the customer. > > Is there an easy way to read email from within a Gambas script even if > I'm not logged in the office with my mailer? > > Thanks for your ideas! > > Rolf > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? From mckaygerhard at ...626... Mon Jul 15 17:40:26 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 15 Jul 2013 11:10:26 -0430 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) Message-ID: after long time of various triyngs get some example and got this error now: .... data = wtable["hex_huelladactilar"] If Exist(User.Home &/ ".fprint/0002/00000000/1") Then Kill User.Home &/ ".fprint/0002/00000000/1" Endif myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write data.Write(myFinger) Close myFinger but in open line said "file not exits" .. i wish to create the file from stream.. not open for write so then where are the examples for that? again lacks on documentation and no suggestions.. i wish to help and made good apps for business into free soft, but seems its to hard.. free soft only work in nerd-like and freakers computers ? please let probe theres not such From mckaygerhard at ...626... Mon Jul 15 17:59:31 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 15 Jul 2013 11:29:31 -0430 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) In-Reply-To: References: Message-ID: i modified the line: myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write and added Create but now: the wtable["hex_huelladactilar"] its a blob type, the blob type only provides me the Data converter to string representation.. so i cannot write to stream.. there's any other way to write blob to file ? .... > data = wtable["hex_huelladactilar"] > If Exist(User.Home &/ ".fprint/0002/00000000/1") Then > Kill User.Home &/ ".fprint/0002/00000000/1" > Endif > myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For > Write > data.Write(myFinger) > Close myFinger > again lacks on documentation and no suggestions.. i wish to help and made good apps for business into free soft, but seems its to hard.. free soft only work in nerd-like and freakers computers ? please let probe theres not such From linuxos at ...1896... Mon Jul 15 17:45:33 2013 From: linuxos at ...1896... (Olivier Cruilles) Date: Mon, 15 Jul 2013 17:45:33 +0200 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) In-Reply-To: References: Message-ID: Hi, It's because you wrote just WRITE in the OPEN line. You need to add CREATE because the file does not exist and the command must create it. If the file was existing, put just WRITE to write into. Cordialement, Olivier Cruilles Mail: linuxos at ...1896... Le 15 juil. 2013 ? 17:40, PICCORO McKAY Lenz a ?crit : > after long time of various triyngs get some example and got this error now: > > .... > data = wtable["hex_huelladactilar"] > If Exist(User.Home &/ ".fprint/0002/00000000/1") Then > Kill User.Home &/ ".fprint/0002/00000000/1" > Endif > myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write > data.Write(myFinger) > Close myFinger > > but in open line said "file not exits" .. i wish to create the file from > stream.. not open for write > > so then where are the examples for that? again lacks on documentation and > no suggestions.. i wish to help and made good apps for business into free > soft, but seems its to hard.. free soft only work in nerd-like and freakers > computers ? please let probe theres not such > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Mon Jul 15 18:29:01 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 15 Jul 2013 18:29:01 +0200 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) In-Reply-To: References: Message-ID: <20130715162901.GD516@...2774...> On Mon, 15 Jul 2013, PICCORO McKAY Lenz wrote: > after long time of various triyngs get some example and got this error now: > > .... > data = wtable["hex_huelladactilar"] > If Exist(User.Home &/ ".fprint/0002/00000000/1") Then > Kill User.Home &/ ".fprint/0002/00000000/1" > Endif > myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write > data.Write(myFinger) > Close myFinger > > but in open line said "file not exits" .. i wish to create the file from > stream.. not open for write > So you want to write to it and to create it if it doesn't exist (and it will never exist because of the three lines above): myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write Create Note the "Create" keyword at the end of the line. "For Write Create" will also truncate the file to a size of 0 if it exists while opening so the If clause before the Open statement is effectively useless. > so then where are the examples for that? again lacks on documentation and > no suggestions.. You can find my explanation above in the documentation[0], too. It seems that you are right with the first point, though. I couldn't find any example of how to use files. I'll put that on my schedule... > i wish to help and made good apps for business into free > soft, but seems its to hard.. free soft only work in nerd-like and freakers > computers ? please let probe theres not such Wait... You know that this is the gambas-user mailing list, no? By far most attendees here can program in Gambas very well. Do you realise that you asked for help and at the same time called us freaks? (Well you conditioned that "freaks" by whether we can help you or not - which is IMHO even worse.) Regards, Tobi [0] http://gambasdoc.org/help/lang/open?v3 From vuott at ...325... Mon Jul 15 18:59:38 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 15 Jul 2013 17:59:38 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. Message-ID: <1373907578.42512.YahooMailBasic@...3054...> Hello, well, I did the backtrace. Here I attach 2 text files: - test WITH Real-Time ENABLED Jack option; - test Real-Time NO ENABLED Jack option. regards. vuott -------------------------------------------- Lun 15/7/13, Tobias Boege ha scritto: Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. A: "mailing list for gambas users" Data: Luned? 15 luglio 2013, 11:15 On Mon, 15 Jul 2013, Ru Vuott wrote: > > > I don't like to guess. The backtrace would maybe clear this up... > > > > Regards, > > Tobi >? > > Hello Tobias, > > uhmm... how can I get the backtrace of the function ? > $ cd your/project/dir $ gbc3 -ga $ gdb gbx3 ... (gdb) r ... (gdb) bt There's a section in the docs[0] about it. Regards, Tobi [0] http://gambasdoc.org/help/doc/report#t5 ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ 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: Real_Time Jack option Type: application/octet-stream Size: 1709 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NO_Real_Time Jack option Type: application/octet-stream Size: 1390 bytes Desc: not available URL: From taboege at ...626... Mon Jul 15 19:40:15 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 15 Jul 2013 19:40:15 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1373907578.42512.YahooMailBasic@...3054...> References: <1373907578.42512.YahooMailBasic@...3054...> Message-ID: <20130715174015.GE516@...2774...> On Mon, 15 Jul 2013, Ru Vuott wrote: > Hello, > > well, I did the backtrace. > > Here I attach 2 text files: > > - test WITH Real-Time ENABLED Jack option; > > - test Real-Time NO ENABLED Jack option. > I'm sorry for your trouble - looks like I can't read anything meaningful out of these backtraces. Except maybe that libfontconfig seems to make problems. But I don't know about this library either... Regards, Tobi From vuott at ...325... Mon Jul 15 19:55:02 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 15 Jul 2013 18:55:02 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <20130715174015.GE516@...2774...> Message-ID: <1373910902.77553.YahooMailBasic@...3063...> > libfontconfig seems to make problems. > But I don't know about this library either... Uhmmm... maybe is this ? http://www.freedesktop.org/wiki/Software/fontconfig/ -------------------------------------------- Lun 15/7/13, Tobias Boege ha scritto: Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. A: "mailing list for gambas users" Data: Luned? 15 luglio 2013, 19:40 On Mon, 15 Jul 2013, Ru Vuott wrote: > Hello, > > well, I did the backtrace. > > Here I attach 2 text files: > > - test WITH Real-Time ENABLED Jack option; > > - test Real-Time NO ENABLED Jack option. > I'm sorry for your trouble - looks like I can't read anything meaningful out of these backtraces. Except maybe that libfontconfig seems to make problems. But I don't know about this library either... Regards, Tobi ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From mckaygerhard at ...626... Mon Jul 15 20:07:24 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 15 Jul 2013 13:37:24 -0430 Subject: [Gambas-user] Gambas-user Digest, Vol 86, Issue 16 In-Reply-To: References: Message-ID: > data = wtable["hex_huelladactilar"] > > If Exist(User.Home &/ ".fprint/0002/00000000/1") Then > > Kill User.Home &/ ".fprint/0002/00000000/1" > > Endif > > myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For > Write > > data.Write(myFinger) > > Close myFinger > So you want to write to it and to create it if it doesn't exist (and it > will > never exist because of the three lines above): > not, its complicated, but i must ensure erase previously, and put a new file... > myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write Create > Note the "Create" keyword at the end of the line. "For Write Create" will > also truncate the file to a size of 0 if it exists while opening so the If > clause before the Open statement is effectively useless. > so then how i must do that.. i realy need to store/save these files, also i note something: If i load file thorug File.Load , my data file are coirrupted, due are binary and not stream string? so then binary unknow files must load and save with stream process right ? both load and save? > You can find my explanation above in the documentation[0], too. > oh! yews, but very very little of course... > It seems that you are right with the first point, though. I couldn't find > any example of how to use files. I'll put that on my schedule... > please a good examples, i explain in next lines why: > > i wish to help and made good apps for business into free > > soft, but seems its to hard.. free soft only work in nerd-like and > freakers > > computers ? please let probe theres not such > Wait... You know that this is the gambas-user mailing list, no? By far most > attendees here can program in Gambas very well. Do you realise that you > asked for help and at the same time called us freaks? (Well you conditioned > that "freaks" by whether we can help you or not - which is IMHO even > worse.) > enterprises and linux-users cant'n made free-soft in enterprices due while are search for solution to this king of problems, the time its running! u captcha right? my boos dont acre if i made in free-soft or not, only cares if i finish and put in production the app.. so its dificult to me and linux-like users made apps with this kign of problems.. stupid things like VB, mocosoft NET etc have many examples.. so its hard to help and made linux only apps so then understantd and help me to port this system to gambas! From mckaygerhard at ...626... Mon Jul 15 20:56:47 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 15 Jul 2013 14:26:47 -0430 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) (Tobias Boege) Message-ID: hello tobias, are u a devel of gambas? i could help with documentation lacks, i see the pending tasks ... From: Tobias Boege > > but in open line said "file not exits" .. i wish to create the file from > > stream.. not open for write > So you want to write to it and to create it if it doesn't exist (and it > will > never exist because of the three lines above): > myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write Create > Note the "Create" keyword at the end of the line. "For Write Create" will > also truncate the file to a size of 0 if it exists while opening so the If > clause before the Open statement is effectively useless. > ok its hard to explain but must sure to previous data dont exists and then put new data (in this example are same by casuality) the binary blob are a unkown file created by finger readers, and my app are fault tolerant, i emulated by hand putting the file where app spect to find and works prefectly, but i need do that from db, i made the if/kill statements for see by step the app work.. > You can find my explanation above in the documentation[0], too. > yeah.. i see that .. thanks > It seems that you are right with the first point, though. I couldn't find > any example of how to use files. I'll put that on my schedule... > i wish to help.. but for now i must finish my app for my job.. i'll explain in next lines: > > > i wish to help and made good apps for business into free > > soft, but seems its to hard.. free soft only work in nerd-like and > freakers > > computers ? please let probe theres not such > Wait... You know that this is the gambas-user mailing list, no? By far most > attendees here can program in Gambas very well. Do you realise that you > asked for help and at the same time called us freaks? (Well you conditioned > that "freaks" by whether we can help you or not - which is IMHO even > worse.) > my boss provide me many resources for linux-related support and migration.. but its hard due time to made that are very little and windo-related docs are very often.. i'm the only linux devel in my section and the boss dessire migrate but this king of problem are always i really need retrieve binary file from db .... a question, the store must be also by stream process too? *please nee a example to store and retrieve binary files NOT picture files.* From rmorgan62 at ...626... Mon Jul 15 20:57:55 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 15 Jul 2013 11:57:55 -0700 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) In-Reply-To: <20130715162901.GD516@...2774...> References: <20130715162901.GD516@...2774...> Message-ID: I'm guessing Piccoro's tone is due to his frustraition with trying to comprehend the way GAMBAS works. This is the place to ask for help but not the place to post insults. But we must also be understanding of new users in the forum. Piccoro, there is no easy way to learn anything other than doing it and struggling through the difficulties. Don't give up. I would suggest you read the Wiki and the Gambas Book. Find the book here: http://beginnersguidetogambas.com/ On Mon, Jul 15, 2013 at 9:29 AM, Tobias Boege wrote: > On Mon, 15 Jul 2013, PICCORO McKAY Lenz wrote: > > after long time of various triyngs get some example and got this error > now: > > > > .... > > data = wtable["hex_huelladactilar"] > > If Exist(User.Home &/ ".fprint/0002/00000000/1") Then > > Kill User.Home &/ ".fprint/0002/00000000/1" > > Endif > > myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For > Write > > data.Write(myFinger) > > Close myFinger > > > > but in open line said "file not exits" .. i wish to create the file from > > stream.. not open for write > > > > So you want to write to it and to create it if it doesn't exist (and it > will > never exist because of the three lines above): > > myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write Create > > Note the "Create" keyword at the end of the line. "For Write Create" will > also truncate the file to a size of 0 if it exists while opening so the If > clause before the Open statement is effectively useless. > > > so then where are the examples for that? again lacks on documentation and > > no suggestions.. > > You can find my explanation above in the documentation[0], too. > > It seems that you are right with the first point, though. I couldn't find > any example of how to use files. I'll put that on my schedule... > > > i wish to help and made good apps for business into free > > soft, but seems its to hard.. free soft only work in nerd-like and > freakers > > computers ? please let probe theres not such > > Wait... You know that this is the gambas-user mailing list, no? By far most > attendees here can program in Gambas very well. Do you realise that you > asked for help and at the same time called us freaks? (Well you conditioned > that "freaks" by whether we can help you or not - which is IMHO even > worse.) > > Regards, > Tobi > > [0] http://gambasdoc.org/help/lang/open?v3 > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? From taboege at ...626... Mon Jul 15 22:11:14 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 15 Jul 2013 22:11:14 +0200 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) (Tobias Boege) In-Reply-To: References: Message-ID: <20130715201114.GF516@...2774...> On Mon, 15 Jul 2013, PICCORO McKAY Lenz wrote: > hello tobias, are u a devel of gambas? i could help with documentation > lacks, i see the pending tasks ... If you want to help with the documentation - and more importantly: if you have time to do so -, you should contact Benoit Minisini who'll grant you write access to the gambasdoc.org site. > From: Tobias Boege > > > > but in open line said "file not exits" .. i wish to create the file from > > > stream.. not open for write > > So you want to write to it and to create it if it doesn't exist (and it > > will > > never exist because of the three lines above): > > myFinger = Open User.Home &/ ".fprint/0002/00000000/1" For Write Create > > Note the "Create" keyword at the end of the line. "For Write Create" will > > also truncate the file to a size of 0 if it exists while opening so the If > > clause before the Open statement is effectively useless. > > > ok its hard to explain but must sure to previous data dont exists and then > put new data (in this example are same by casuality) > the binary blob are a unkown file created by finger readers, and my app are > fault tolerant, i emulated by hand putting the file where app spect to find > and works prefectly, but i need do that from db, i made the if/kill > statements for see by step the app work.. > I don't really understand your paragraph. Let me make a statement: --- Dim sPath As String Dim hFile As Stream sPath = User.Home &/ ".fprint/0002/00000000/1" If Exist(sPath) Then Kill sPath Endif hFile = Open sPath For Write Create --- This code snippet deletes the file if it exists and then creates a new file of the same name. --- Dim sPath As String Dim hFile As Stream sPath = User.Home &/ ".fprint/0002/00000000/1" hFile = Open sPath For Write Create --- Truncates the file to a size of 0 and opens it - because that's what Create does if the file already exists. Effectively you have an empty file in both cases. The second variant just happens to need less code. That's all I wanted to say. > > > You can find my explanation above in the documentation[0], too. > > > yeah.. i see that .. thanks > > > It seems that you are right with the first point, though. I couldn't find > > any example of how to use files. I'll put that on my schedule... > > > i wish to help.. but for now i must finish my app for my job.. i'll explain > in next lines: > > > > > > i wish to help and made good apps for business into free > > > soft, but seems its to hard.. free soft only work in nerd-like and > > freakers > > > computers ? please let probe theres not such > > Wait... You know that this is the gambas-user mailing list, no? By far most > > attendees here can program in Gambas very well. Do you realise that you > > asked for help and at the same time called us freaks? (Well you conditioned > > that "freaks" by whether we can help you or not - which is IMHO even > > worse.) > > > my boss provide me many resources for linux-related support and migration.. > but its hard due time to made that are very little and windo-related docs > are very often.. i'm the only linux devel in my section and the boss > dessire migrate but this king of problem are always > > i really need retrieve binary file from db .... > > a question, the store must be also by stream process too? > > *please nee a example to store and retrieve binary files NOT picture files.* Picture files _are_ binary files. But anyways, to get this thread done, I have attached a sample project which lets you import and export binary files of any kind to a local SQLite3 database. You should look carefully at the export functionality in btnExport_Click() which selects a record in the database table and saves the corresponding blob field to a file. Everything else in the project is just there for you to play around with it. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: db-blob-0.0.1.tar.gz Type: application/octet-stream Size: 6113 bytes Desc: not available URL: From eilert-sprachen at ...221... Mon Jul 15 22:33:26 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 15 Jul 2013 22:33:26 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> Message-ID: <51E45C96.2030207@...221...> Thanks for your advice, Randall. Am 15.07.2013 17:16, schrieb Randall Morgan: > Is your email pop3, IMAP, MAPI, or webmail? The way you approach this > depends on the target system. It is pop3 and it is my own vserver for my firm's website. > > IMHO pop3 would be the easiest. There you would only need to access your > mail account to download the emails for processing. Gambas has PDF Yes, that would be the precise question. My idea was to use the contact form plugin from the website, making another contact form which sends the results to another email address (e. g. application at ...1107... instead of info at ...1107...) and read the emails from that address. So it all boils down to: how can I read the emails - say once a minute - and place them somewhere where a script of mine - say Gambas - has access and reads them. And how to read them. I thought of leaving everything on the remote server, but it might as well be read from our local server in my firm and processed there. The latter might be the better way, as it is done so for the ordinary contact forms now (they are waiting for my email client to fetch them from the remote server via pop3, so I can fetch them even now when I'm in holidays, with my laptop). I'd just need a script to do with the other ones in regular intervals. > generation capabilities so that is not an issue. Another way to handle this > would be to setup a GAMABS SMTP service and have the emails forwarded to > that service. Then the app could be written to process any email that > arrived in the inbox. Yes, I saw there's an smtp library for Gambas, but I thought it might be easier the other way round. > > As for an easy way.... Well, easy is a qualitative term and so the ease of > development would depend on the programmer's experience and abilities. If > you're using webmail and the front end is something like Squirrel Mail, > then you have a nice table arrangement that can be easily parsed with > GAMBAS. But if your mail account is something like Yahoo or Google I think > a web parsing framework such as those used with Java or Python would ease > development. Neither nor, there's qmail on the server. That's it. > > A lot of my data collection tasks involve writing code in different > languages. I wouldn't mind calling some other script from the Gambas one or vice-versa. > For example, One of my apps is a simple bash script that takes > forms submitted as pdfs, and processes them using python and then stores > the results in a MySQL DB which has some stored procedures for final > processing. Then a cron script runs one every 5 minutes to get any new rows > from the DB and place them in a queue to be reviewed by staff. The staff > app then calls a php script that connects to a asterisk system if the staff > needs to contact the client, and dials the clients number. Sadly, the staff > review portion was not written in Gambas but in C++/Qt. Sounds rather clever, but I hope my idea won't become so extensive :-) > > Don't get bogged down into thinking that if you use GAMBAS for a portion of > the app that you must use it for the whole app. You can create powerful > systems by combining the resources found other tools. Gambas and most Linux > software is designed to allow this kind of inter-connect via pipes, > sockets, and files. So pick the tools that make each part of the process > easiest and you development will be simplified. Yes, that was the base of my idea. I started inventing a whole-in-one app with Gambas: contact form, control, pdf, everything. Then I thought there is a nice contact form plugin already, so why inventing the wheel? Ok, let's get back to the point: reading an email (pop3 from the remote server to the local one) and placing it somewhere to let a Gambas app process it, how should I start? Where can I find the emails? Isn't there a mail command I can use from a bash script? After all, there are scripts on every system that send mails to root. And where are these mails stored then? When I know where, I can examine the files and find a way to process them in Gambas. Rolf From mckaygerhard at ...626... Mon Jul 15 22:44:28 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 15 Jul 2013 16:14:28 -0430 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO Lenz McKAY) (Randall Morgan) Message-ID: From: Randall Morgan > I'm guessing Piccoro's tone is due to his frustraition with trying to > comprehend the way GAMBAS works. This is the place to ask for help but not > the place to post insults. But we must also be understanding of new users > in the forum. > i'm sure u are not under pressure. i 've 3 days later from finish due more and more code problems.. while my M$ counter part are in good rules... there0s a competition to migrate into linux many apps here... > > Piccoro, there is no easy way to learn anything other than doing it and > struggling through the difficulties. Don't give up. I would suggest you > read the Wiki and the Gambas Book. Find the book here: > http://beginnersguidetogambas.com/ i know, thanks for u'r words, i get a one solution and tobi send me other.. i'll use a sqlite dump while adapt the tobi code From mckaygerhard at ...626... Mon Jul 15 22:47:45 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 15 Jul 2013 16:17:45 -0430 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO Lenz McKAY) (Tobias Boege) Message-ID: > Picture files _are_ binary files. But anyways, to get this thread done, I > have attached a sample project which lets you import and export binary > files of any kind to a local SQLite3 database. > ummm i'ts streange, i think that too, but dont work.. i'll try the code u provide me.. wheantime, i must finish and show my app, i resolve with a sqlite dump with hex_dump converte into a shell controled processs... > > You should look carefully at the export functionality in btnExport_Click() > which selects a record in the database table and saves the corresponding > blob field to a file. > > Everything else in the project is just there for you to play around with > it. > > Regards, > Tobi > errr where i get the attached file?-- in sourgeforce? it receive cut! > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: db-blob-0.0.1.tar.gz > Type: application/octet-stream > Size: 6113 bytes > Desc: not available > From taboege at ...626... Mon Jul 15 23:12:22 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 15 Jul 2013 23:12:22 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <51E45C96.2030207@...221...> References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> Message-ID: <20130715211222.GH516@...2774...> On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: > Thanks for your advice, Randall. > > Am 15.07.2013 17:16, schrieb Randall Morgan: > > Is your email pop3, IMAP, MAPI, or webmail? The way you approach this > > depends on the target system. > > It is pop3 and it is my own vserver for my firm's website. > > > > > IMHO pop3 would be the easiest. There you would only need to access your > > mail account to download the emails for processing. Gambas has PDF > > Yes, that would be the precise question. My idea was to use the contact > form plugin from the website, making another contact form which sends > the results to another email address (e. g. application at ...1107... instead of > info at ...1107...) and read the emails from that address. > > So it all boils down to: how can I read the emails - say once a minute - > and place them somewhere where a script of mine - say Gambas - has > access and reads them. And how to read them. > > I thought of leaving everything on the remote server, but it might as > well be read from our local server in my firm and processed there. The > latter might be the better way, as it is done so for the ordinary > contact forms now (they are waiting for my email client to fetch them > from the remote server via pop3, so I can fetch them even now when I'm > in holidays, with my laptop). I'd just need a script to do with the > other ones in regular intervals. > > > generation capabilities so that is not an issue. Another way to handle this > > would be to setup a GAMABS SMTP service and have the emails forwarded to > > that service. Then the app could be written to process any email that > > arrived in the inbox. > > Yes, I saw there's an smtp library for Gambas, but I thought it might be > easier the other way round. > > > > > As for an easy way.... Well, easy is a qualitative term and so the ease of > > development would depend on the programmer's experience and abilities. If > > you're using webmail and the front end is something like Squirrel Mail, > > then you have a nice table arrangement that can be easily parsed with > > GAMBAS. But if your mail account is something like Yahoo or Google I think > > a web parsing framework such as those used with Java or Python would ease > > development. > > Neither nor, there's qmail on the server. That's it. > > > > > A lot of my data collection tasks involve writing code in different > > languages. > > I wouldn't mind calling some other script from the Gambas one or vice-versa. > > > > For example, One of my apps is a simple bash script that takes > > forms submitted as pdfs, and processes them using python and then stores > > the results in a MySQL DB which has some stored procedures for final > > processing. Then a cron script runs one every 5 minutes to get any new rows > > from the DB and place them in a queue to be reviewed by staff. The staff > > app then calls a php script that connects to a asterisk system if the staff > > needs to contact the client, and dials the clients number. Sadly, the staff > > review portion was not written in Gambas but in C++/Qt. > > Sounds rather clever, but I hope my idea won't become so extensive :-) > > > > > Don't get bogged down into thinking that if you use GAMBAS for a portion of > > the app that you must use it for the whole app. You can create powerful > > systems by combining the resources found other tools. Gambas and most Linux > > software is designed to allow this kind of inter-connect via pipes, > > sockets, and files. So pick the tools that make each part of the process > > easiest and you development will be simplified. > > Yes, that was the base of my idea. I started inventing a whole-in-one > app with Gambas: contact form, control, pdf, everything. Then I thought > there is a nice contact form plugin already, so why inventing the wheel? > > Ok, let's get back to the point: reading an email (pop3 from the remote > server to the local one) and placing it somewhere to let a Gambas app > process it, how should I start? Where can I find the emails? Isn't there > a mail command I can use from a bash script? After all, there are > scripts on every system that send mails to root. And where are these > mails stored then? When I know where, I can examine the files and find a > way to process them in Gambas. > So we have two options, right? a) Run a Gambas CGI script on the webserver which receives the user input via HTTP (GET/POST) from the HTML form. b) Have a Gambas daemon on your local computer which checks regularly for new mails dropped by an external program. Or even better: Have a Gambas program which is fed with incoming mail whenever it arrives. It seems that a) is not the topic here. So, for b) you need a mail daemon. I personally use fetchmail for all my mail (IMAP). It also understands POP3, according to the manpages. And the best thing is: it has the "-m" switch which lets you give it a program (Mail Delivery Agent) to which it will pipe its mail. The MDA shall sort/distribute mail correctly but you can equivalently well use it to call any program with every incoming mail being piped to it. You can then examine the mail and do whatever you want. I use fetchmail for around 3 years now and the system didn't fail once - or it was so unimportant that I didn't notice. The only issue you have is to install and configure fetchmail correctly. I just tested fetchmail's -m option with a self-written program and it works as expected. Regards, Tobi From taboege at ...626... Mon Jul 15 23:20:08 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 15 Jul 2013 23:20:08 +0200 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO Lenz McKAY) (Tobias Boege) In-Reply-To: References: Message-ID: <20130715212008.GI516@...2774...> On Mon, 15 Jul 2013, PICCORO McKAY Lenz wrote: > > Picture files _are_ binary files. But anyways, to get this thread done, I > > have attached a sample project which lets you import and export binary > > files of any kind to a local SQLite3 database. > > > ummm i'ts streange, i think that too, but dont work.. i'll try the code u > provide me.. wheantime, i must finish and show my app, i resolve with a > sqlite dump with hex_dump converte into a shell controled processs... > > > > > You should look carefully at the export functionality in btnExport_Click() > > which selects a record in the database table and saves the corresponding > > blob field to a file. > > > > Everything else in the project is just there for you to play around with > > it. > > > > Regards, > > Tobi > > > errr where i get the attached file?-- in sourgeforce? it receive cut! > > > > -------------- next part -------------- > > A non-text attachment was scrubbed... > > Name: db-blob-0.0.1.tar.gz > > Type: application/octet-stream > > Size: 6113 bytes > > Desc: not available > > I have never seen this notice... I just checked that I really attached the project - and yes I did. The rest is up to you... Well, the sourceforge server keeps a copy of the archive in the list archive. Try to download this[0] file directly. Regards, Tobi [0] http://sourceforge.net/mailarchive/attachment.php?list_name=gambas-user&message_id=20130715201114.GF516%40aurora&counter=1 From rmorgan62 at ...626... Tue Jul 16 00:37:04 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 15 Jul 2013 15:37:04 -0700 Subject: [Gambas-user] Receiving an email In-Reply-To: <20130715211222.GH516@...2774...> References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: Here's a really quick and dirty sample of using the gd.net.pop3 mail client using the command line project type: ' Gambas module file Public Sub Main() Dim hConn As New Pop3Client Dim sMailIds As String[] Dim sMailId As String Dim Stats As Integer[] Dim iCount As Integer Dim iSize As Integer Dim sMessage As String 'Set mail server connection parameters With hConn .Host = '"" .Port = 110 ' .User = '"" .Password = '"" 'May want to store in, and retrieve this from an encrypted file End With Try hConn.Open If Error Then Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to log this.... Else If hConn.Status = -16 Then Print "Cannot Authenticate Mail Account." Stop Else If hConn.Status = 7 Then Print "Connected to mail server...." Print hConn.Welcome Endif Endif Stats = hConn.Stat() Print "There are "; Stats[0]; " Messages in your inbox." Print "You inbox contains "; Stats[1]; " bytes of data." ' Show all mail ids sMailIds = hConn.List() For Each sMailId In sMailIds Print sMailId Next ' Get each mail and display For Each sMailId In sMailIds sMessage = hConn.Exec("RETR " & sMailId) Print "Message: "; sMailId; "\n" Print "----------------------------------------------------" Print sMessage; "\n\n" Next Print "Closing Connection." hConn.Close End You may also find these links helpful: http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html http://www.electrictoolbox.com/article/networking/pop3-commands/ On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: > On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: > > Thanks for your advice, Randall. > > > > Am 15.07.2013 17:16, schrieb Randall Morgan: > > > Is your email pop3, IMAP, MAPI, or webmail? The way you approach this > > > depends on the target system. > > > > It is pop3 and it is my own vserver for my firm's website. > > > > > > > > IMHO pop3 would be the easiest. There you would only need to access > your > > > mail account to download the emails for processing. Gambas has PDF > > > > Yes, that would be the precise question. My idea was to use the contact > > form plugin from the website, making another contact form which sends > > the results to another email address (e. g. application at ...1107... instead of > > info at ...1107...) and read the emails from that address. > > > > So it all boils down to: how can I read the emails - say once a minute - > > and place them somewhere where a script of mine - say Gambas - has > > access and reads them. And how to read them. > > > > I thought of leaving everything on the remote server, but it might as > > well be read from our local server in my firm and processed there. The > > latter might be the better way, as it is done so for the ordinary > > contact forms now (they are waiting for my email client to fetch them > > from the remote server via pop3, so I can fetch them even now when I'm > > in holidays, with my laptop). I'd just need a script to do with the > > other ones in regular intervals. > > > > > generation capabilities so that is not an issue. Another way to handle > this > > > would be to setup a GAMABS SMTP service and have the emails forwarded > to > > > that service. Then the app could be written to process any email that > > > arrived in the inbox. > > > > Yes, I saw there's an smtp library for Gambas, but I thought it might be > > easier the other way round. > > > > > > > > As for an easy way.... Well, easy is a qualitative term and so the > ease of > > > development would depend on the programmer's experience and abilities. > If > > > you're using webmail and the front end is something like Squirrel Mail, > > > then you have a nice table arrangement that can be easily parsed with > > > GAMBAS. But if your mail account is something like Yahoo or Google I > think > > > a web parsing framework such as those used with Java or Python would > ease > > > development. > > > > Neither nor, there's qmail on the server. That's it. > > > > > > > > A lot of my data collection tasks involve writing code in different > > > languages. > > > > I wouldn't mind calling some other script from the Gambas one or > vice-versa. > > > > > > > For example, One of my apps is a simple bash script that takes > > > forms submitted as pdfs, and processes them using python and then > stores > > > the results in a MySQL DB which has some stored procedures for final > > > processing. Then a cron script runs one every 5 minutes to get any new > rows > > > from the DB and place them in a queue to be reviewed by staff. The > staff > > > app then calls a php script that connects to a asterisk system if the > staff > > > needs to contact the client, and dials the clients number. Sadly, the > staff > > > review portion was not written in Gambas but in C++/Qt. > > > > Sounds rather clever, but I hope my idea won't become so extensive :-) > > > > > > > > Don't get bogged down into thinking that if you use GAMBAS for a > portion of > > > the app that you must use it for the whole app. You can create powerful > > > systems by combining the resources found other tools. Gambas and most > Linux > > > software is designed to allow this kind of inter-connect via pipes, > > > sockets, and files. So pick the tools that make each part of the > process > > > easiest and you development will be simplified. > > > > Yes, that was the base of my idea. I started inventing a whole-in-one > > app with Gambas: contact form, control, pdf, everything. Then I thought > > there is a nice contact form plugin already, so why inventing the wheel? > > > > Ok, let's get back to the point: reading an email (pop3 from the remote > > server to the local one) and placing it somewhere to let a Gambas app > > process it, how should I start? Where can I find the emails? Isn't there > > a mail command I can use from a bash script? After all, there are > > scripts on every system that send mails to root. And where are these > > mails stored then? When I know where, I can examine the files and find a > > way to process them in Gambas. > > > > So we have two options, right? > > a) Run a Gambas CGI script on the webserver which receives the user input > via HTTP (GET/POST) from the HTML form. > b) Have a Gambas daemon on your local computer which checks regularly for > new mails dropped by an external program. Or even better: Have a Gambas > program which is fed with incoming mail whenever it arrives. > > It seems that a) is not the topic here. So, for b) you need a mail daemon. > I > personally use fetchmail for all my mail (IMAP). It also understands POP3, > according to the manpages. And the best thing is: it has the "-m" switch > which lets you give it a program (Mail Delivery Agent) to which it will > pipe > its mail. The MDA shall sort/distribute mail correctly but you can > equivalently well use it to call any program with every incoming mail being > piped to it. You can then examine the mail and do whatever you want. > > I use fetchmail for around 3 years now and the system didn't fail once - or > it was so unimportant that I didn't notice. The only issue you have is to > install and configure fetchmail correctly. > > I just tested fetchmail's -m option with a self-written program and it > works > as expected. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? From sebikul at ...626... Tue Jul 16 00:57:41 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Mon, 15 Jul 2013 19:57:41 -0300 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: You could use a cron tab to run the script Randall just sent. There is a POP3Client example you can open with the gambas IDE to know how it works. Just execute the app every x minutes and you are done! Remember not to hardcode your username and password. You will regret later On Mon, Jul 15, 2013 at 7:37 PM, Randall Morgan wrote: > Here's a really quick and dirty sample of using the gd.net.pop3 mail client > using the command line project type: > > ' Gambas module file > > Public Sub Main() > Dim hConn As New Pop3Client > Dim sMailIds As String[] > Dim sMailId As String > Dim Stats As Integer[] > Dim iCount As Integer > Dim iSize As Integer > Dim sMessage As String > > > 'Set mail server connection parameters > With hConn > .Host = '"" > .Port = 110 ' ssl. > > .User = '"" > .Password = '"" 'May want to store in, and > retrieve this from an encrypted file > End With > > Try hConn.Open > > If Error Then > Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to log > this.... > Else > If hConn.Status = -16 Then > Print "Cannot Authenticate Mail Account." > Stop > Else If hConn.Status = 7 Then > Print "Connected to mail server...." > Print hConn.Welcome > Endif > Endif > > > Stats = hConn.Stat() > > Print "There are "; Stats[0]; " Messages in your inbox." > Print "You inbox contains "; Stats[1]; " bytes of data." > > ' Show all mail ids > sMailIds = hConn.List() > > For Each sMailId In sMailIds > Print sMailId > Next > > ' Get each mail and display > For Each sMailId In sMailIds > sMessage = hConn.Exec("RETR " & sMailId) > Print "Message: "; sMailId; "\n" > Print "----------------------------------------------------" > Print sMessage; "\n\n" > Next > > Print "Closing Connection." > hConn.Close > > End > > > > You may also find these links helpful: > > > http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html > > http://www.electrictoolbox.com/article/networking/pop3-commands/ > > > On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: > > > On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: > > > Thanks for your advice, Randall. > > > > > > Am 15.07.2013 17:16, schrieb Randall Morgan: > > > > Is your email pop3, IMAP, MAPI, or webmail? The way you approach this > > > > depends on the target system. > > > > > > It is pop3 and it is my own vserver for my firm's website. > > > > > > > > > > > IMHO pop3 would be the easiest. There you would only need to access > > your > > > > mail account to download the emails for processing. Gambas has PDF > > > > > > Yes, that would be the precise question. My idea was to use the contact > > > form plugin from the website, making another contact form which sends > > > the results to another email address (e. g. application at ...1107... instead of > > > info at ...1107...) and read the emails from that address. > > > > > > So it all boils down to: how can I read the emails - say once a minute > - > > > and place them somewhere where a script of mine - say Gambas - has > > > access and reads them. And how to read them. > > > > > > I thought of leaving everything on the remote server, but it might as > > > well be read from our local server in my firm and processed there. The > > > latter might be the better way, as it is done so for the ordinary > > > contact forms now (they are waiting for my email client to fetch them > > > from the remote server via pop3, so I can fetch them even now when I'm > > > in holidays, with my laptop). I'd just need a script to do with the > > > other ones in regular intervals. > > > > > > > generation capabilities so that is not an issue. Another way to > handle > > this > > > > would be to setup a GAMABS SMTP service and have the emails forwarded > > to > > > > that service. Then the app could be written to process any email that > > > > arrived in the inbox. > > > > > > Yes, I saw there's an smtp library for Gambas, but I thought it might > be > > > easier the other way round. > > > > > > > > > > > As for an easy way.... Well, easy is a qualitative term and so the > > ease of > > > > development would depend on the programmer's experience and > abilities. > > If > > > > you're using webmail and the front end is something like Squirrel > Mail, > > > > then you have a nice table arrangement that can be easily parsed with > > > > GAMBAS. But if your mail account is something like Yahoo or Google I > > think > > > > a web parsing framework such as those used with Java or Python would > > ease > > > > development. > > > > > > Neither nor, there's qmail on the server. That's it. > > > > > > > > > > > A lot of my data collection tasks involve writing code in different > > > > languages. > > > > > > I wouldn't mind calling some other script from the Gambas one or > > vice-versa. > > > > > > > > > > For example, One of my apps is a simple bash script that takes > > > > forms submitted as pdfs, and processes them using python and then > > stores > > > > the results in a MySQL DB which has some stored procedures for final > > > > processing. Then a cron script runs one every 5 minutes to get any > new > > rows > > > > from the DB and place them in a queue to be reviewed by staff. The > > staff > > > > app then calls a php script that connects to a asterisk system if the > > staff > > > > needs to contact the client, and dials the clients number. Sadly, the > > staff > > > > review portion was not written in Gambas but in C++/Qt. > > > > > > Sounds rather clever, but I hope my idea won't become so extensive :-) > > > > > > > > > > > Don't get bogged down into thinking that if you use GAMBAS for a > > portion of > > > > the app that you must use it for the whole app. You can create > powerful > > > > systems by combining the resources found other tools. Gambas and most > > Linux > > > > software is designed to allow this kind of inter-connect via pipes, > > > > sockets, and files. So pick the tools that make each part of the > > process > > > > easiest and you development will be simplified. > > > > > > Yes, that was the base of my idea. I started inventing a whole-in-one > > > app with Gambas: contact form, control, pdf, everything. Then I thought > > > there is a nice contact form plugin already, so why inventing the > wheel? > > > > > > Ok, let's get back to the point: reading an email (pop3 from the remote > > > server to the local one) and placing it somewhere to let a Gambas app > > > process it, how should I start? Where can I find the emails? Isn't > there > > > a mail command I can use from a bash script? After all, there are > > > scripts on every system that send mails to root. And where are these > > > mails stored then? When I know where, I can examine the files and find > a > > > way to process them in Gambas. > > > > > > > So we have two options, right? > > > > a) Run a Gambas CGI script on the webserver which receives the user input > > via HTTP (GET/POST) from the HTML form. > > b) Have a Gambas daemon on your local computer which checks regularly for > > new mails dropped by an external program. Or even better: Have a > Gambas > > program which is fed with incoming mail whenever it arrives. > > > > It seems that a) is not the topic here. So, for b) you need a mail > daemon. > > I > > personally use fetchmail for all my mail (IMAP). It also understands > POP3, > > according to the manpages. And the best thing is: it has the "-m" switch > > which lets you give it a program (Mail Delivery Agent) to which it will > > pipe > > its mail. The MDA shall sort/distribute mail correctly but you can > > equivalently well use it to call any program with every incoming mail > being > > piped to it. You can then examine the mail and do whatever you want. > > > > I use fetchmail for around 3 years now and the system didn't fail once - > or > > it was so unimportant that I didn't notice. The only issue you have is to > > install and configure fetchmail correctly. > > > > I just tested fetchmail's -m option with a self-written program and it > > works > > as expected. > > > > Regards, > > Tobi > > > > > > > ------------------------------------------------------------------------------ > > See everything from the browser to the database with AppDynamics > > Get end-to-end visibility with application monitoring from AppDynamics > > Isolate bottlenecks and diagnose root cause in seconds. > > Start your free trial of AppDynamics Pro today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at 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? > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rmorgan62 at ...626... Tue Jul 16 01:06:06 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 15 Jul 2013 16:06:06 -0700 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: Yes, either passing your credentials , host and port info via the command line or storing it in a settings file would be best. What I sent should NOT be used as is!!! It has many issues I am sure. It was just a quick example to get you started. On Mon, Jul 15, 2013 at 3:57 PM, Sebastian Kulesz wrote: > You could use a cron tab to run the script Randall just sent. There is a > POP3Client example you can open with the gambas IDE to know how it works. > Just execute the app every x minutes and you are done! > > Remember not to hardcode your username and password. You will regret later > > > On Mon, Jul 15, 2013 at 7:37 PM, Randall Morgan > wrote: > > > Here's a really quick and dirty sample of using the gd.net.pop3 mail > client > > using the command line project type: > > > > ' Gambas module file > > > > Public Sub Main() > > Dim hConn As New Pop3Client > > Dim sMailIds As String[] > > Dim sMailId As String > > Dim Stats As Integer[] > > Dim iCount As Integer > > Dim iSize As Integer > > Dim sMessage As String > > > > > > 'Set mail server connection parameters > > With hConn > > .Host = '"" > > .Port = 110 ' > ssl. > > > .User = '"" > > .Password = '"" 'May want to store in, and > > retrieve this from an encrypted file > > End With > > > > Try hConn.Open > > > > If Error Then > > Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to > log > > this.... > > Else > > If hConn.Status = -16 Then > > Print "Cannot Authenticate Mail Account." > > Stop > > Else If hConn.Status = 7 Then > > Print "Connected to mail server...." > > Print hConn.Welcome > > Endif > > Endif > > > > > > Stats = hConn.Stat() > > > > Print "There are "; Stats[0]; " Messages in your inbox." > > Print "You inbox contains "; Stats[1]; " bytes of data." > > > > ' Show all mail ids > > sMailIds = hConn.List() > > > > For Each sMailId In sMailIds > > Print sMailId > > Next > > > > ' Get each mail and display > > For Each sMailId In sMailIds > > sMessage = hConn.Exec("RETR " & sMailId) > > Print "Message: "; sMailId; "\n" > > Print "----------------------------------------------------" > > Print sMessage; "\n\n" > > Next > > > > Print "Closing Connection." > > hConn.Close > > > > End > > > > > > > > You may also find these links helpful: > > > > > > > http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html > > > > http://www.electrictoolbox.com/article/networking/pop3-commands/ > > > > > > On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: > > > > > On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: > > > > Thanks for your advice, Randall. > > > > > > > > Am 15.07.2013 17:16, schrieb Randall Morgan: > > > > > Is your email pop3, IMAP, MAPI, or webmail? The way you approach > this > > > > > depends on the target system. > > > > > > > > It is pop3 and it is my own vserver for my firm's website. > > > > > > > > > > > > > > IMHO pop3 would be the easiest. There you would only need to access > > > your > > > > > mail account to download the emails for processing. Gambas has PDF > > > > > > > > Yes, that would be the precise question. My idea was to use the > contact > > > > form plugin from the website, making another contact form which sends > > > > the results to another email address (e. g. application at ...1107... instead > of > > > > info at ...1107...) and read the emails from that address. > > > > > > > > So it all boils down to: how can I read the emails - say once a > minute > > - > > > > and place them somewhere where a script of mine - say Gambas - has > > > > access and reads them. And how to read them. > > > > > > > > I thought of leaving everything on the remote server, but it might as > > > > well be read from our local server in my firm and processed there. > The > > > > latter might be the better way, as it is done so for the ordinary > > > > contact forms now (they are waiting for my email client to fetch them > > > > from the remote server via pop3, so I can fetch them even now when > I'm > > > > in holidays, with my laptop). I'd just need a script to do with the > > > > other ones in regular intervals. > > > > > > > > > generation capabilities so that is not an issue. Another way to > > handle > > > this > > > > > would be to setup a GAMABS SMTP service and have the emails > forwarded > > > to > > > > > that service. Then the app could be written to process any email > that > > > > > arrived in the inbox. > > > > > > > > Yes, I saw there's an smtp library for Gambas, but I thought it might > > be > > > > easier the other way round. > > > > > > > > > > > > > > As for an easy way.... Well, easy is a qualitative term and so the > > > ease of > > > > > development would depend on the programmer's experience and > > abilities. > > > If > > > > > you're using webmail and the front end is something like Squirrel > > Mail, > > > > > then you have a nice table arrangement that can be easily parsed > with > > > > > GAMBAS. But if your mail account is something like Yahoo or Google > I > > > think > > > > > a web parsing framework such as those used with Java or Python > would > > > ease > > > > > development. > > > > > > > > Neither nor, there's qmail on the server. That's it. > > > > > > > > > > > > > > A lot of my data collection tasks involve writing code in different > > > > > languages. > > > > > > > > I wouldn't mind calling some other script from the Gambas one or > > > vice-versa. > > > > > > > > > > > > > For example, One of my apps is a simple bash script that takes > > > > > forms submitted as pdfs, and processes them using python and then > > > stores > > > > > the results in a MySQL DB which has some stored procedures for > final > > > > > processing. Then a cron script runs one every 5 minutes to get any > > new > > > rows > > > > > from the DB and place them in a queue to be reviewed by staff. The > > > staff > > > > > app then calls a php script that connects to a asterisk system if > the > > > staff > > > > > needs to contact the client, and dials the clients number. Sadly, > the > > > staff > > > > > review portion was not written in Gambas but in C++/Qt. > > > > > > > > Sounds rather clever, but I hope my idea won't become so extensive > :-) > > > > > > > > > > > > > > Don't get bogged down into thinking that if you use GAMBAS for a > > > portion of > > > > > the app that you must use it for the whole app. You can create > > powerful > > > > > systems by combining the resources found other tools. Gambas and > most > > > Linux > > > > > software is designed to allow this kind of inter-connect via pipes, > > > > > sockets, and files. So pick the tools that make each part of the > > > process > > > > > easiest and you development will be simplified. > > > > > > > > Yes, that was the base of my idea. I started inventing a whole-in-one > > > > app with Gambas: contact form, control, pdf, everything. Then I > thought > > > > there is a nice contact form plugin already, so why inventing the > > wheel? > > > > > > > > Ok, let's get back to the point: reading an email (pop3 from the > remote > > > > server to the local one) and placing it somewhere to let a Gambas app > > > > process it, how should I start? Where can I find the emails? Isn't > > there > > > > a mail command I can use from a bash script? After all, there are > > > > scripts on every system that send mails to root. And where are these > > > > mails stored then? When I know where, I can examine the files and > find > > a > > > > way to process them in Gambas. > > > > > > > > > > So we have two options, right? > > > > > > a) Run a Gambas CGI script on the webserver which receives the user > input > > > via HTTP (GET/POST) from the HTML form. > > > b) Have a Gambas daemon on your local computer which checks regularly > for > > > new mails dropped by an external program. Or even better: Have a > > Gambas > > > program which is fed with incoming mail whenever it arrives. > > > > > > It seems that a) is not the topic here. So, for b) you need a mail > > daemon. > > > I > > > personally use fetchmail for all my mail (IMAP). It also understands > > POP3, > > > according to the manpages. And the best thing is: it has the "-m" > switch > > > which lets you give it a program (Mail Delivery Agent) to which it will > > > pipe > > > its mail. The MDA shall sort/distribute mail correctly but you can > > > equivalently well use it to call any program with every incoming mail > > being > > > piped to it. You can then examine the mail and do whatever you want. > > > > > > I use fetchmail for around 3 years now and the system didn't fail once > - > > or > > > it was so unimportant that I didn't notice. The only issue you have is > to > > > install and configure fetchmail correctly. > > > > > > I just tested fetchmail's -m option with a self-written program and it > > > works > > > as expected. > > > > > > Regards, > > > Tobi > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > See everything from the browser to the database with AppDynamics > > > Get end-to-end visibility with application monitoring from AppDynamics > > > Isolate bottlenecks and diagnose root cause in seconds. > > > Start your free trial of AppDynamics Pro today! > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at 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? > > > > > ------------------------------------------------------------------------------ > > See everything from the browser to the database with AppDynamics > > Get end-to-end visibility with application monitoring from AppDynamics > > Isolate bottlenecks and diagnose root cause in seconds. > > Start your free trial of AppDynamics Pro today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? From bbruen at ...2308... Tue Jul 16 07:05:03 2013 From: bbruen at ...2308... (Bruce) Date: Tue, 16 Jul 2013 14:35:03 +0930 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) (Tobias Boege) In-Reply-To: <20130715201114.GF516@...2774...> References: <20130715201114.GF516@...2774...> Message-ID: <1373951103.11629.68.camel@...2688...> On Mon, 2013-07-15 at 22:11 +0200, Tobias Boege wrote: 8< > Picture files _are_ binary files. But anyways, to get this thread done, I > have attached a sample project which lets you import and export binary > files of any kind to a local SQLite3 database. > > You should look carefully at the export functionality in btnExport_Click() > which selects a record in the database table and saves the corresponding > blob field to a file. > > Everything else in the project is just there for you to play around with it. > > Regards, > Tobi Hi Tobi, At lines 72 and 106 in your example project you declare hBlob as Blob. I have never heard of this datatype and can find no help on it? If it exists I sure would like to know it. regards Bruce From rmorgan62 at ...626... Tue Jul 16 08:15:41 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 15 Jul 2013 23:15:41 -0700 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) (Tobias Boege) In-Reply-To: <1373951103.11629.68.camel@...2688...> References: <20130715201114.GF516@...2774...> <1373951103.11629.68.camel@...2688...> Message-ID: Bruce, The blob data type is a binary object and is a MySQL data type. Not a Gambas data type. It is used in a few other databases as well. On Mon, Jul 15, 2013 at 10:05 PM, Bruce wrote: > On Mon, 2013-07-15 at 22:11 +0200, Tobias Boege wrote: > 8< > > Picture files _are_ binary files. But anyways, to get this thread done, I > > have attached a sample project which lets you import and export binary > > files of any kind to a local SQLite3 database. > > > > You should look carefully at the export functionality in > btnExport_Click() > > which selects a record in the database table and saves the corresponding > > blob field to a file. > > > > Everything else in the project is just there for you to play around with > it. > > > > Regards, > > Tobi > > Hi Tobi, > > At lines 72 and 106 in your example project you declare hBlob as Blob. I > have never heard of this datatype and can find no help on it? If it > exists I sure would like to know it. > > regards > Bruce > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? From bbruen at ...2308... Tue Jul 16 09:30:17 2013 From: bbruen at ...2308... (Bruce) Date: Tue, 16 Jul 2013 17:00:17 +0930 Subject: [Gambas-user] Tobis "Blob" datatype (was "Hot to load and savbe ...") In-Reply-To: <1373951103.11629.68.camel@...2688...> References: <20130715201114.GF516@...2774...> <1373951103.11629.68.camel@...2688...> Message-ID: <1373959817.11629.78.camel@...2688...> On Mon, 2013-07-15 at 23:15 -0700, Randall Morgan wrote: Bruce, > > The blob data type is a binary object and is a MySQL data type. Not a > Gambas data type. It is used in a few other databases as well. > > > On Mon, Jul 15, 2013 at 10:05 PM, Bruce wrote: > > > On Mon, 2013-07-15 at 22:11 +0200, Tobias Boege wrote: > > 8< > > > Picture files _are_ binary files. But anyways, to get this thread done, I > > > have attached a sample project which lets you import and export binary > > > files of any kind to a local SQLite3 database. > > > > > > You should look carefully at the export functionality in > > btnExport_Click() > > > which selects a record in the database table and saves the corresponding > > > blob field to a file. > > > > > > Everything else in the project is just there for you to play around with > > it. > > > > > > Regards, > > > Tobi > > > > Hi Tobi, > > > > At lines 72 and 106 in your example project you declare hBlob as Blob. I > > have never heard of this datatype and can find no help on it? If it > > exists I sure would like to know it. > > > > regards > > Bruce Hi Randall, Yep, I know what a rdbms blob is, I was just hoping there was a "Blob" class somewhere in a gambas component that I didn't know about that would allow access to the raw data from the gb.db translation of the blob into a string or whatever. IIRC, recently there was a thread on a problem with postgresql v 9.2?? blobs that were being returned from the database as escaped strings. One of my colleagues fixed that on our production database but woefully failed to document what the fix was. I was just hoping to be able to reproduce the problem on a test db and see if I could figure out from the raw data exactly what the problem was and how to fix it forever, in case we need to do a db rebuild or whatever. regards Bruce From taboege at ...626... Tue Jul 16 10:20:31 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 16 Jul 2013 10:20:31 +0200 Subject: [Gambas-user] Tobis "Blob" datatype (was "Hot to load and savbe ...") In-Reply-To: <1373959817.11629.78.camel@...2688...> References: <20130715201114.GF516@...2774...> <1373951103.11629.68.camel@...2688...> <1373959817.11629.78.camel@...2688...> Message-ID: <20130716082031.GA1173@...2774...> On Tue, 16 Jul 2013, Bruce wrote: > On Mon, 2013-07-15 at 23:15 -0700, Randall Morgan wrote: > Bruce, > > > > The blob data type is a binary object and is a MySQL data type. Not a > > Gambas data type. It is used in a few other databases as well. > > > > > > On Mon, Jul 15, 2013 at 10:05 PM, Bruce wrote: > > > > > On Mon, 2013-07-15 at 22:11 +0200, Tobias Boege wrote: > > > 8< > > > > Picture files _are_ binary files. But anyways, to get this thread done, I > > > > have attached a sample project which lets you import and export binary > > > > files of any kind to a local SQLite3 database. > > > > > > > > You should look carefully at the export functionality in > > > btnExport_Click() > > > > which selects a record in the database table and saves the corresponding > > > > blob field to a file. > > > > > > > > Everything else in the project is just there for you to play around with > > > it. > > > > > > > > Regards, > > > > Tobi > > > > > > Hi Tobi, > > > > > > At lines 72 and 106 in your example project you declare hBlob as Blob. I > > > have never heard of this datatype and can find no help on it? If it > > > exists I sure would like to know it. > > > > > > regards > > > Bruce > > Hi Randall, > > Yep, I know what a rdbms blob is, I was just hoping there was a "Blob" class somewhere > in a gambas component that I didn't know about that would allow access to the raw data > from the gb.db translation of the blob into a string or whatever. > > IIRC, recently there was a thread on a problem with postgresql v 9.2?? blobs that were being > returned from the database as escaped strings. One of my colleagues fixed that on our > production database but woefully failed to document what the fix was. I was just hoping to > be able to reproduce the problem on a test db and see if I could figure out from the raw data > exactly what the problem was and how to fix it forever, in case we need to do a db rebuild or > whatever. > > regards > Bruce > Randall, Blob is a Gambas class that represents a DB's blob field. Bruce, there's no special concealment about the Blob class :-) See the class listing of gb.db[0]. Regards, Tobi [0] http://gambasdoc.org/help/comp/gb.db/?v3 From bbruen at ...2308... Tue Jul 16 11:04:57 2013 From: bbruen at ...2308... (Bruce) Date: Tue, 16 Jul 2013 18:34:57 +0930 Subject: [Gambas-user] Tobis "Blob" datatype (was "Hot to load and savbe ...") In-Reply-To: <20130716082031.GA1173@...2774...> References: <20130715201114.GF516@...2774...> <1373951103.11629.68.camel@...2688...> <1373959817.11629.78.camel@...2688...> <20130716082031.GA1173@...2774...> Message-ID: <1373965497.11629.79.camel@...2688...> On Tue, 2013-07-16 at 10:20 +0200, Tobias Boege wrote: > On Tue, 16 Jul 2013, Bruce wrote: > > On Mon, 2013-07-15 at 23:15 -0700, Randall Morgan wrote: > > Bruce, > > > > > > The blob data type is a binary object and is a MySQL data type. Not a > > > Gambas data type. It is used in a few other databases as well. > > > > > > > > > On Mon, Jul 15, 2013 at 10:05 PM, Bruce wrote: > > > > > > > On Mon, 2013-07-15 at 22:11 +0200, Tobias Boege wrote: > > > > 8< > > > > > Picture files _are_ binary files. But anyways, to get this thread done, I > > > > > have attached a sample project which lets you import and export binary > > > > > files of any kind to a local SQLite3 database. > > > > > > > > > > You should look carefully at the export functionality in > > > > btnExport_Click() > > > > > which selects a record in the database table and saves the corresponding > > > > > blob field to a file. > > > > > > > > > > Everything else in the project is just there for you to play around with > > > > it. > > > > > > > > > > Regards, > > > > > Tobi > > > > > > > > Hi Tobi, > > > > > > > > At lines 72 and 106 in your example project you declare hBlob as Blob. I > > > > have never heard of this datatype and can find no help on it? If it > > > > exists I sure would like to know it. > > > > > > > > regards > > > > Bruce > > > > Hi Randall, > > > > Yep, I know what a rdbms blob is, I was just hoping there was a "Blob" class somewhere > > in a gambas component that I didn't know about that would allow access to the raw data > > from the gb.db translation of the blob into a string or whatever. > > > > IIRC, recently there was a thread on a problem with postgresql v 9.2?? blobs that were being > > returned from the database as escaped strings. One of my colleagues fixed that on our > > production database but woefully failed to document what the fix was. I was just hoping to > > be able to reproduce the problem on a test db and see if I could figure out from the raw data > > exactly what the problem was and how to fix it forever, in case we need to do a db rebuild or > > whatever. > > > > regards > > Bruce > > > > Randall, Blob is a Gambas class that represents a DB's blob field. > > Bruce, there's no special concealment about the Blob class :-) See the class > listing of gb.db[0]. > > Regards, > Tobi > > [0] http://gambasdoc.org/help/comp/gb.db/?v3 Well I'll be hornswaggled! tx Tobi From bbruen at ...2308... Tue Jul 16 11:50:07 2013 From: bbruen at ...2308... (Bruce) Date: Tue, 16 Jul 2013 19:20:07 +0930 Subject: [Gambas-user] Tobis "Blob" datatype (was "Hot to load and savbe ...") In-Reply-To: <1373965497.11629.79.camel@...2688...> References: <20130715201114.GF516@...2774...> <1373951103.11629.68.camel@...2688...> <1373959817.11629.78.camel@...2688...> <20130716082031.GA1173@...2774...> <1373965497.11629.79.camel@...2688...> Message-ID: <1373968207.11629.80.camel@...2688...> On Tue, 2013-07-16 at 18:34 +0930, Bruce wrote: > On Tue, 2013-07-16 at 10:20 +0200, Tobias Boege wrote: > > On Tue, 16 Jul 2013, Bruce wrote: > > > On Mon, 2013-07-15 at 23:15 -0700, Randall Morgan wrote: > > > Bruce, > > > > > > > > The blob data type is a binary object and is a MySQL data type. Not a > > > > Gambas data type. It is used in a few other databases as well. > > > > > > > > > > > > On Mon, Jul 15, 2013 at 10:05 PM, Bruce wrote: > > > > > > > > > On Mon, 2013-07-15 at 22:11 +0200, Tobias Boege wrote: > > > > > 8< > > > > > > Picture files _are_ binary files. But anyways, to get this thread done, I > > > > > > have attached a sample project which lets you import and export binary > > > > > > files of any kind to a local SQLite3 database. > > > > > > > > > > > > You should look carefully at the export functionality in > > > > > btnExport_Click() > > > > > > which selects a record in the database table and saves the corresponding > > > > > > blob field to a file. > > > > > > > > > > > > Everything else in the project is just there for you to play around with > > > > > it. > > > > > > > > > > > > Regards, > > > > > > Tobi > > > > > > > > > > Hi Tobi, > > > > > > > > > > At lines 72 and 106 in your example project you declare hBlob as Blob. I > > > > > have never heard of this datatype and can find no help on it? If it > > > > > exists I sure would like to know it. > > > > > > > > > > regards > > > > > Bruce > > > > > > Hi Randall, > > > > > > Yep, I know what a rdbms blob is, I was just hoping there was a "Blob" class somewhere > > > in a gambas component that I didn't know about that would allow access to the raw data > > > from the gb.db translation of the blob into a string or whatever. > > > > > > IIRC, recently there was a thread on a problem with postgresql v 9.2?? blobs that were being > > > returned from the database as escaped strings. One of my colleagues fixed that on our > > > production database but woefully failed to document what the fix was. I was just hoping to > > > be able to reproduce the problem on a test db and see if I could figure out from the raw data > > > exactly what the problem was and how to fix it forever, in case we need to do a db rebuild or > > > whatever. > > > > > > regards > > > Bruce > > > > > > > Randall, Blob is a Gambas class that represents a DB's blob field. > > > > Bruce, there's no special concealment about the Blob class :-) See the class > > listing of gb.db[0]. > > > > Regards, > > Tobi > > > > [0] http://gambasdoc.org/help/comp/gb.db/?v3 > > Well I'll be hornswaggled! > > tx Tobi > and 30min later my problem is solved! tx again Bruce From vuott at ...325... Tue Jul 16 12:43:49 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 16 Jul 2013 11:43:49 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1373910902.77553.YahooMailBasic@...3063...> Message-ID: <1373971429.37777.YahooMailBasic@...3066...> Hello, I do not understand why, but today I re-tried the test, and i received strangly these different info: ********************* GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu Copyright (C) 2013 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 "x86_64-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/gbx3...done. (gdb) run Starting program: /usr/bin/gbx3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff7e80700 (LWP 2563)] [New Thread 0x7fffeca9b700 (LWP 2564)] Cannot lock down 82274202 byte memory area (Cannot allocate memory) [New Thread 0x7fffeca03700 (LWP 2565)] 0 *** stack smashing detected ***: traJk terminated Program received signal SIGABRT, Aborted. 0x00007ffff711b037 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007ffff711b037 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007ffff711e698 in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007ffff71585ab in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #3 0x00007ffff71f55cc in __fortify_fail () from /lib/x86_64-linux-gnu/libc.so.6 #4 0x00007ffff71f5570 in __stack_chk_fail () from /lib/x86_64-linux-gnu/libc.so.6 #5 0x00007ffff5092fdc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #6 0x00007fffffffdf40 in ?? () #7 0x00007fffffffe330 in ?? () #8 0x000000000079cc80 in ?? () #9 0x00000000007254c0 in ?? () #10 0x00007fffdc000fd0 in ?? () #11 0x00007fffffffdf20 in ?? () #12 0x000000000079cc80 in ?? () #13 0x00000000007254c0 in ?? () #14 0x00007fffffffdfa0 in ?? () #15 0x00007fffffffdf20 in ?? () #16 0x00007ffff50248ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #17 0x00007ffff502725b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #18 0x00007fffffffe008 in ?? () ---Type to continue, or q to quit--- #19 0x00007fffffffdfe0 in ?? () #20 0x0000000000000000 in ?? () ************* bha ! Regards vuott -------------------------------------------- Lun 15/7/13, Ru Vuott ha scritto: Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. A: "mailing list for gambas users" Data: Luned? 15 luglio 2013, 19:55 > libfontconfig seems to make problems. > But I don't know about this library either... Uhmmm... maybe is this ? http://www.freedesktop.org/wiki/Software/fontconfig/ -------------------------------------------- Lun 15/7/13, Tobias Boege ha scritto: Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. A: "mailing list for gambas users" Data: Luned? 15 luglio 2013, 19:40 On Mon, 15 Jul 2013, Ru Vuott wrote: > Hello, > > well, I did the backtrace. > > Here I attach 2 text files: > > - test WITH Real-Time ENABLED Jack option; > > - test Real-Time NO ENABLED Jack option. > I'm sorry for your trouble - looks like I can't read anything meaningful out of these backtraces. Except maybe that libfontconfig seems to make problems. But I don't know about this library either... Regards, Tobi ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Tue Jul 16 14:30:54 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 16 Jul 2013 14:30:54 +0200 Subject: [Gambas-user] Mouse.Inside() bug with collapsed Expander? Message-ID: <20130716123054.GF1173@...2774...> Hi, a guy at http://gambas-club.de[0] discovered some strange behaviour with Mouse.Inside() and two DrawingAreas of which one is inside a collapsed Expander. I know this sounds more specific than useful. Honestly, I haven't dug further into it (if it's only with Expanders or only with DrawingAreas or someting). I just reproduced the behaviour and made a minimal project. On the form are two DrawingAreas. One inside an Expander. A Timer fires regularly and tells you on the two Labels whether you are inside dwg1 or dwg2. This works very well. Now collapse the Expander and move over dwg1. You'll see that Mouse.Inside() reports that you are on dwg1 (which is visually correct) and on dwg2, too, which is wrong because it's hidden in the Expander and not near the mouse anyways. Regards, Tobi [0] http://gambas-club.de/viewtopic.php?f=3&t=4560 -------------- next part -------------- A non-text attachment was scrubbed... Name: mouse-inside-expander-bug-0.0.1.tar.gz Type: application/octet-stream Size: 5033 bytes Desc: not available URL: From mckaygerhard at ...626... Tue Jul 16 15:20:17 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 16 Jul 2013 08:50:17 -0430 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) (Tobias Boege) (Randall Morgan) Message-ID: Bruce, about the scape problem : > IIRC, recently there was a thread on a problem with postgresql v 9.2?? > blobs that were being > returned from the database as escaped strings. One of my colleagues fixed > that on our > production database but woefully failed to document what the fix was. I > was just hoping to > be able to reproduce the problem on a test db and see if I could figure > out from the raw data > exactly what the problem was and how to fix it forever, in case we need to > do a db rebuild or > whatever. > This problem its same with sqlite in rare cases (i dont knwo why, but in rare rare cases File.save(path, blob.Data) dont work) this can be wrapped solved exporting with exec shell bin dump export, Misa3l anonimous solves the problem, see this example: https://groups.google.com/d/msg/venenuxsarisari/IbunRRR8eUI/nxNZzC_yERgJ > On Mon, 2013-07-15 at 23:15 -0700, Randall Morgan wrote: The blob data type is a binary object and is a MySQL data type. Not a > Gambas data type. It is used in a few other databases as well. > ufff mysql+php+apache, the windolike migrated problem.. mysql its just for fun, when u are a programer, see that theres anothers DB more powerfully... and focused on special task... Gambas hav a rare famous that its to close to mysql, and let the rest of more powerfully DBMS alone with basic support (improved now in gambas 3 series...) As tobi sais: > Randall, Blob is a Gambas class that represents a DB's blob field. > > Bruce, there's no special concealment about the Blob class :-) See the > class > listing of gb.db[0]. > > Regards, > Tobi > But the problem that Bruce mentioned are true.., ah To0bi thanks for the reply , but where i can download attached files of mail list? please? From taboege at ...626... Tue Jul 16 15:48:21 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 16 Jul 2013 15:48:21 +0200 Subject: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) (Tobias Boege) (Randall Morgan) In-Reply-To: References: Message-ID: <20130716134821.GG1173@...2774...> On Tue, 16 Jul 2013, PICCORO McKAY Lenz wrote: > But the problem that Bruce mentioned are true.., ah To0bi thanks for the > reply , but where i can download attached files of mail list? please? Normally, i.e. if you're subscribed to the mailing list, you receive mails with their attachments. However, if it didn't work, you can download my attachment from yesterday here: http://sourceforge.net/mailarchive/attachment.php?list_name=gambas-user&message_id=20130715201114.GF516%40aurora&counter=1 Regards, Tobi From gambas.fr at ...626... Tue Jul 16 16:32:12 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 Jul 2013 16:32:12 +0200 Subject: [Gambas-user] Mouse.Inside() bug with collapsed Expander? In-Reply-To: <20130716123054.GF1173@...2774...> References: <20130716123054.GF1173@...2774...> Message-ID: I think Mouse.inside use the screen coords so even if the expended is collapsed, the dw2 don't move in reallity. So the only thing is that mouse.inside must test the visibility. Then on other hand ... Why this user not use _enter and _leave events to get the current mouse zone ?. Le 16 juil. 2013 14:32, "Tobias Boege" a ?crit : > Hi, > > a guy at http://gambas-club.de[0] discovered some strange behaviour with > Mouse.Inside() and two DrawingAreas of which one is inside a collapsed > Expander. > > I know this sounds more specific than useful. Honestly, I haven't dug > further into it (if it's only with Expanders or only with DrawingAreas or > someting). I just reproduced the behaviour and made a minimal project. > > On the form are two DrawingAreas. One inside an Expander. A Timer fires > regularly and tells you on the two Labels whether you are inside dwg1 or > dwg2. > > This works very well. Now collapse the Expander and move over dwg1. You'll > see that Mouse.Inside() reports that you are on dwg1 (which is visually > correct) and on dwg2, too, which is wrong because it's hidden in the > Expander and not near the mouse anyways. > > Regards, > Tobi > > [0] http://gambas-club.de/viewtopic.php?f=3&t=4560 > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From mckaygerhard at ...626... Tue Jul 16 21:07:26 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 16 Jul 2013 14:37:26 -0430 Subject: [Gambas-user] GB.DB Edit use string with numbers: wrong or cannnot scape? Message-ID: See the documentation: http://gambasdoc.org/help/comp/gb.db/db/edit that seems the parameters if provides a text but this text only have numbers , interprete this parameter as number (such integer) and if column is type Varchar, resultset never retunrs any results.. how can i force the parameter and filter to act as text parameter if are only numbres? example code: wtable = hconn.Edit("sysasis_registro", "cod_ficha = &1", id) wtable!id = id wtable!name = "pepe trueno" wtable.Update and another question, how to pass multiple arg, only added "and xx= &2 " etc etc? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From rmorgan62 at ...626... Tue Jul 16 21:14:38 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 16 Jul 2013 12:14:38 -0700 Subject: [Gambas-user] Tobis "Blob" datatype (was "Hot to load and savbe ...") In-Reply-To: <1373968207.11629.80.camel@...2688...> References: <20130715201114.GF516@...2774...> <1373951103.11629.68.camel@...2688...> <1373959817.11629.78.camel@...2688...> <20130716082031.GA1173@...2774...> <1373965497.11629.79.camel@...2688...> <1373968207.11629.80.camel@...2688...> Message-ID: I guess what I was trying to say is that the BLOB type comes from the database component not the core language. As it is database specific. On Tue, Jul 16, 2013 at 2:50 AM, Bruce wrote: > On Tue, 2013-07-16 at 18:34 +0930, Bruce wrote: > > On Tue, 2013-07-16 at 10:20 +0200, Tobias Boege wrote: > > > On Tue, 16 Jul 2013, Bruce wrote: > > > > On Mon, 2013-07-15 at 23:15 -0700, Randall Morgan wrote: > > > > Bruce, > > > > > > > > > > The blob data type is a binary object and is a MySQL data type. > Not a > > > > > Gambas data type. It is used in a few other databases as well. > > > > > > > > > > > > > > > On Mon, Jul 15, 2013 at 10:05 PM, Bruce > wrote: > > > > > > > > > > > On Mon, 2013-07-15 at 22:11 +0200, Tobias Boege wrote: > > > > > > 8< > > > > > > > Picture files _are_ binary files. But anyways, to get this > thread done, I > > > > > > > have attached a sample project which lets you import and > export binary > > > > > > > files of any kind to a local SQLite3 database. > > > > > > > > > > > > > > You should look carefully at the export functionality in > > > > > > btnExport_Click() > > > > > > > which selects a record in the database table and saves the > corresponding > > > > > > > blob field to a file. > > > > > > > > > > > > > > Everything else in the project is just there for you to play > around with > > > > > > it. > > > > > > > > > > > > > > Regards, > > > > > > > Tobi > > > > > > > > > > > > Hi Tobi, > > > > > > > > > > > > At lines 72 and 106 in your example project you declare hBlob as > Blob. I > > > > > > have never heard of this datatype and can find no help on it? > If it > > > > > > exists I sure would like to know it. > > > > > > > > > > > > regards > > > > > > Bruce > > > > > > > > Hi Randall, > > > > > > > > Yep, I know what a rdbms blob is, I was just hoping there was a > "Blob" class somewhere > > > > in a gambas component that I didn't know about that would allow > access to the raw data > > > > from the gb.db translation of the blob into a string or whatever. > > > > > > > > IIRC, recently there was a thread on a problem with postgresql v > 9.2?? blobs that were being > > > > returned from the database as escaped strings. One of my colleagues > fixed that on our > > > > production database but woefully failed to document what the fix > was. I was just hoping to > > > > be able to reproduce the problem on a test db and see if I could > figure out from the raw data > > > > exactly what the problem was and how to fix it forever, in case we > need to do a db rebuild or > > > > whatever. > > > > > > > > regards > > > > Bruce > > > > > > > > > > Randall, Blob is a Gambas class that represents a DB's blob field. > > > > > > Bruce, there's no special concealment about the Blob class :-) See the > class > > > listing of gb.db[0]. > > > > > > Regards, > > > Tobi > > > > > > [0] http://gambasdoc.org/help/comp/gb.db/?v3 > > > > Well I'll be hornswaggled! > > > > tx Tobi > > > and 30min later my problem is solved! > tx again > > Bruce > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? From gambas.fr at ...626... Tue Jul 16 21:40:59 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 Jul 2013 21:40:59 +0200 Subject: [Gambas-user] Two problems painting richtext In-Reply-To: <20130714164609.GF554@...2774...> References: <20130714164609.GF554@...2774...> Message-ID: Public Sub dwgDrawRichText_Draw() Dim hExtent As PaintExtents Paint.Text("Align.Center OK.", 0, 0, Paint.Width, Paint.Height, Align.Center) hExtent = Paint.PathExtents Paint.Brush = Paint.RadialGradient(hExtent.X, hExtent.Y, Max(hExtent.Width, hExtent.Height), hExtent.X + hExtent.Width / 2, hExtent.y + hExtent.Height / 2, [Color.Black, Color.Transparent], [0.0, 1.0]) Paint.Fill Paint.Rectangle(hExtent.X - 5, hExtent.Y - 5, hExtent.Width + 10, hExtent.Height + 10) Paint.Stroke() End 2013/7/14 Tobias Boege > Hi, > > I want to paint richtext which is: > > a) fading in a RadialGradient (black towards transparency) and > b) centered in a rectangle. > > I can achieve a) when using Paint.RichText() followed by Paint.Fill(). But > with this code, the text is not centered (although I specified Align.Center > as a parameter to Paint.RichText()). This is a) without b). > > If I use Paint.DrawRichText(), the text is centered in the rectangle but > the > RadialGradient brush does not take effect. This is b) without a). > > I hope this is a bug and I can do both at a time. :-) Project and > screenshot > of the non-working result here are attached. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fabien Bodard From jussi.lahtinen at ...626... Tue Jul 16 22:55:41 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 16 Jul 2013 23:55:41 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1373971429.37777.YahooMailBasic@...3066...> References: <1373910902.77553.YahooMailBasic@...3063...> <1373971429.37777.YahooMailBasic@...3066...> Message-ID: 1. Have you confirmed that the example made in C really works? 2. You should confirm size of jack_default_audio_sample_t. Mistakes with memcpy doesn't always lead to SGN11. Since memory area you are writing over, may be owned by the program doing the mistake. That often causes random behaviour. 3. Cannot lock down 82274202 byte memory area (Cannot allocate memory) ?? Jussi On Tue, Jul 16, 2013 at 1:43 PM, Ru Vuott wrote: > Hello, > > I do not understand why, but today I re-tried the test, and i received > strangly these different info: > > ********************* > GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu > Copyright (C) 2013 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later < > http://gnu.org/licenses/gpl.html> > 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 "x86_64-linux-gnu". > For bug reporting instructions, please see: > ... > Reading symbols from /usr/bin/gbx3...done. > (gdb) run > Starting program: /usr/bin/gbx3 > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > [New Thread 0x7ffff7e80700 (LWP 2563)] > [New Thread 0x7fffeca9b700 (LWP 2564)] > Cannot lock down 82274202 byte memory area (Cannot allocate memory) > [New Thread 0x7fffeca03700 (LWP 2565)] > 0 > *** stack smashing detected ***: traJk terminated > > Program received signal SIGABRT, Aborted. > 0x00007ffff711b037 in raise () from /lib/x86_64-linux-gnu/libc.so.6 > (gdb) bt > #0 0x00007ffff711b037 in raise () from /lib/x86_64-linux-gnu/libc.so.6 > #1 0x00007ffff711e698 in abort () from /lib/x86_64-linux-gnu/libc.so.6 > #2 0x00007ffff71585ab in ?? () from /lib/x86_64-linux-gnu/libc.so.6 > #3 0x00007ffff71f55cc in __fortify_fail () > from /lib/x86_64-linux-gnu/libc.so.6 > #4 0x00007ffff71f5570 in __stack_chk_fail () > from /lib/x86_64-linux-gnu/libc.so.6 > #5 0x00007ffff5092fdc in ?? () from > /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #6 0x00007fffffffdf40 in ?? () > #7 0x00007fffffffe330 in ?? () > #8 0x000000000079cc80 in ?? () > #9 0x00000000007254c0 in ?? () > #10 0x00007fffdc000fd0 in ?? () > #11 0x00007fffffffdf20 in ?? () > #12 0x000000000079cc80 in ?? () > #13 0x00000000007254c0 in ?? () > #14 0x00007fffffffdfa0 in ?? () > #15 0x00007fffffffdf20 in ?? () > #16 0x00007ffff50248ec in QApplicationPrivate::notify_helper(QObject*, > QEvent*) > () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #17 0x00007ffff502725b in QApplication::notify(QObject*, QEvent*) () > from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #18 0x00007fffffffe008 in ?? () > ---Type to continue, or q to quit--- > #19 0x00007fffffffdfe0 in ?? () > #20 0x0000000000000000 in ?? () > > ************* > > bha ! > > Regards > vuott > > > -------------------------------------------- > Lun 15/7/13, Ru Vuott ha scritto: > > Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. > A: "mailing list for gambas users" > Data: Luned? 15 luglio 2013, 19:55 > > > libfontconfig seems to make > problems. > > But I don't know about this library either... > > Uhmmm... maybe is this ? > http://www.freedesktop.org/wiki/Software/fontconfig/ > > > > > > -------------------------------------------- > Lun 15/7/13, Tobias Boege > ha scritto: > > Oggetto: Re: [Gambas-user] A "Callback" function doesn't > work. > A: "mailing list for gambas users" > Data: Luned? 15 luglio 2013, 19:40 > > On Mon, 15 Jul 2013, Ru Vuott wrote: > > Hello, > > > > well, I did the backtrace. > > > > Here I attach 2 text files: > > > > - test WITH Real-Time ENABLED Jack option; > > > > - test Real-Time NO ENABLED Jack option. > > > > I'm sorry for your trouble - looks like I can't read > anything meaningful out > of these backtraces. Except maybe that libfontconfig seems > to make problems. > But I don't know about this library either... > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with > AppDynamics > Get end-to-end visibility with application monitoring from > AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with > AppDynamics > Get end-to-end visibility with application monitoring from > AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Tue Jul 16 23:34:19 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 16 Jul 2013 22:34:19 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: Message-ID: <1374010459.10527.YahooMailBasic@...3063...> Hello Jussi, > 1. Have you confirmed that the example made in C really works? Yes, it does perfectly. > 2. You should confirm size of jack_default_audio_sample_t. confirm... where ? > 3. Cannot lock down 82274202 byte memory area (Cannot allocate memory) ?? I suppose that this is a standard notice, because it is displayed when I start manually jack and also in other regular cases. thanks, bye vuottt On Tue, Jul 16, 2013 at 1:43 PM, Ru Vuott wrote: > Hello, > > I do not understand why, but today I re-tried the test, and i received > strangly these different info: > > ********************* > GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu > Copyright (C) 2013 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later < > http://gnu.org/licenses/gpl.html> > 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 "x86_64-linux-gnu". > For bug reporting instructions, please see: > ... > Reading symbols from /usr/bin/gbx3...done. > (gdb) run > Starting program: /usr/bin/gbx3 > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > [New Thread 0x7ffff7e80700 (LWP 2563)] > [New Thread 0x7fffeca9b700 (LWP 2564)] > Cannot lock down 82274202 byte memory area (Cannot allocate memory) > [New Thread 0x7fffeca03700 (LWP 2565)] > 0 > *** stack smashing detected ***: traJk terminated > > Program received signal SIGABRT, Aborted. > 0x00007ffff711b037 in raise () from /lib/x86_64-linux-gnu/libc.so.6 > (gdb) bt > #0? 0x00007ffff711b037 in raise () from /lib/x86_64-linux-gnu/libc.so.6 > #1? 0x00007ffff711e698 in abort () from /lib/x86_64-linux-gnu/libc.so.6 > #2? 0x00007ffff71585ab in ?? () from /lib/x86_64-linux-gnu/libc.so.6 > #3? 0x00007ffff71f55cc in __fortify_fail () >? ? from /lib/x86_64-linux-gnu/libc.so.6 > #4? 0x00007ffff71f5570 in __stack_chk_fail () >? ? from /lib/x86_64-linux-gnu/libc.so.6 > #5? 0x00007ffff5092fdc in ?? () from > /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #6? 0x00007fffffffdf40 in ?? () > #7? 0x00007fffffffe330 in ?? () > #8? 0x000000000079cc80 in ?? () > #9? 0x00000000007254c0 in ?? () > #10 0x00007fffdc000fd0 in ?? () > #11 0x00007fffffffdf20 in ?? () > #12 0x000000000079cc80 in ?? () > #13 0x00000000007254c0 in ?? () > #14 0x00007fffffffdfa0 in ?? () > #15 0x00007fffffffdf20 in ?? () > #16 0x00007ffff50248ec in QApplicationPrivate::notify_helper(QObject*, > QEvent*) >? ???() from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #17 0x00007ffff502725b in QApplication::notify(QObject*, QEvent*) () >? ? from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #18 0x00007fffffffe008 in ?? () > ---Type to continue, or q to quit--- > #19 0x00007fffffffdfe0 in ?? () > #20 0x0000000000000000 in ?? () > > ************* > > bha ! > > Regards > vuott > > > -------------------------------------------- > Lun 15/7/13, Ru Vuott ha scritto: > >? Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. >? A: "mailing list for gambas users" >? Data: Luned? 15 luglio 2013, 19:55 > >? > libfontconfig seems to make >? problems. >? > But I don't know about this library either... > >? Uhmmm... maybe is this ? >? http://www.freedesktop.org/wiki/Software/fontconfig/ > > > > > >? -------------------------------------------- >? Lun 15/7/13, Tobias Boege >? ha scritto: > >???Oggetto: Re: [Gambas-user] A "Callback" function doesn't >? work. >???A: "mailing list for gambas users" >???Data: Luned? 15 luglio 2013, 19:40 > >???On Mon, 15 Jul 2013, Ru Vuott wrote: >???> Hello, >???> >???> well, I did the backtrace. >???> >???> Here I attach 2 text files: >???> >???> - test WITH Real-Time ENABLED Jack option; >???> >???> - test Real-Time NO ENABLED Jack option. >???> > >???I'm sorry for your trouble - looks like I can't read >???anything meaningful out >???of these backtraces. Except maybe that libfontconfig seems >???to make problems. >???But I don't know about this library either... > >???Regards, >???Tobi > > > ------------------------------------------------------------------------------ >???See everything from the browser to the database with >???AppDynamics >???Get end-to-end visibility with application monitoring from >???AppDynamics >???Isolate bottlenecks and diagnose root cause in seconds. >???Start your free trial of AppDynamics Pro today! > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >???_______________________________________________ >???Gambas-user mailing list >???Gambas-user at lists.sourceforge.net >???https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >? ------------------------------------------------------------------------------ >? See everything from the browser to the database with >? AppDynamics >? Get end-to-end visibility with application monitoring from >? AppDynamics >? Isolate bottlenecks and diagnose root cause in seconds. >? Start your free trial of AppDynamics Pro today! > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >? _______________________________________________ >? Gambas-user mailing list >? Gambas-user at lists.sourceforge.net >? https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Wed Jul 17 00:06:53 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 16 Jul 2013 22:06:53 +0000 Subject: [Gambas-user] Issue 455 in gambas: gb.report generates a report too bigger Message-ID: <0-6813199134517018827-15369233703145961619-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 455 by flynetin... at ...626...: gb.report generates a report too bigger http://code.google.com/p/gambas/issues/detail?id=455 1) gb.report generates a report too bigger 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.4.1 Operating system: Linux Distribution: Ubuntu Architecture: x86 GUI component: QT4 / GTK+ Desktop used: Gnome 3) Any project 4) If your project needs a database, try to provide it, or part of it. 5) If I generate a report of 22 pages with about 80 lines per page text-only printing generates a 50Mb file. This consumes too many resources and does the job very slow printing. I don't why but tried to use the property resolution to try to decrease the file generated and did not work in any way -- 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 wally at ...2037... Wed Jul 17 07:56:34 2013 From: wally at ...2037... (wally) Date: Wed, 17 Jul 2013 07:56:34 +0200 Subject: [Gambas-user] revision 5732 gb.xml.h misasing Message-ID: <1741084.Hq6Nsq1jQV@...3157...> At revision 5732. In file included from main.cpp:29:0: node.h:25:20: fatal error: gb.xml.h: No such file or directory From vuott at ...325... Wed Jul 17 10:34:40 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 17 Jul 2013 09:34:40 +0100 (BST) Subject: [Gambas-user] Error in rev. # 5732 Message-ID: <1374050080.95974.YahooMailBasic@...3066...> Hello, from Make of rev. # 5732 make[5]: Entering directory `/home/vuott/trunk/gb.xml/src' CXX gb_xml_la-main.lo In file included from main.cpp:29:0: node.h:25:20: fatal error: gb.xml.h: No such file or directory compilation terminated. make[5]: *** [gb_xml_la-main.lo] Error 1 make[5]: Leaving directory `/home/vuott/trunk/gb.xml/src' 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 From taboege at ...626... Wed Jul 17 10:34:59 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 17 Jul 2013 10:34:59 +0200 Subject: [Gambas-user] Two problems painting richtext In-Reply-To: References: <20130714164609.GF554@...2774...> Message-ID: <20130717083459.GA532@...2774...> On Tue, 16 Jul 2013, Fabien Bodard wrote: > Public Sub dwgDrawRichText_Draw() > > Dim hExtent As PaintExtents > > > > Paint.Text("Align.Center OK.", 0, 0, Paint.Width, Paint.Height, > Align.Center) > hExtent = Paint.PathExtents > Paint.Brush = Paint.RadialGradient(hExtent.X, hExtent.Y, > Max(hExtent.Width, hExtent.Height), hExtent.X + hExtent.Width / 2, > hExtent.y + hExtent.Height / 2, [Color.Black, Color.Transparent], [0.0, > 1.0]) > > Paint.Fill > Paint.Rectangle(hExtent.X - 5, hExtent.Y - 5, hExtent.Width + 10, > hExtent.Height + 10) > Paint.Stroke() > > End > Makes sense (somehow) :-) Thanks. But is this the intended solution or just a workaround? Regards, Tobi From gambas.fr at ...626... Wed Jul 17 10:45:11 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 17 Jul 2013 10:45:11 +0200 Subject: [Gambas-user] Two problems painting richtext In-Reply-To: <20130717083459.GA532@...2774...> References: <20130714164609.GF554@...2774...> <20130717083459.GA532@...2774...> Message-ID: In fact i fnt know what you want to achieve. So I've just trying to understand and then make it in a good way. Centering is different between draw and paint Then you can't center a richtext vertically. This make sens when wrap is active. And you have give a bad zone for centering. My way is not the only way. ... You can center by hand too. Calculate the pos in _draw not in _arrange. Le 17 juil. 2013 10:36, "Tobias Boege" a ?crit : > On Tue, 16 Jul 2013, Fabien Bodard wrote: > > Public Sub dwgDrawRichText_Draw() > > > > Dim hExtent As PaintExtents > > > > > > > > Paint.Text("Align.Center OK.", 0, 0, Paint.Width, Paint.Height, > > Align.Center) > > hExtent = Paint.PathExtents > > Paint.Brush = Paint.RadialGradient(hExtent.X, hExtent.Y, > > Max(hExtent.Width, hExtent.Height), hExtent.X + hExtent.Width / 2, > > hExtent.y + hExtent.Height / 2, [Color.Black, Color.Transparent], [0.0, > > 1.0]) > > > > Paint.Fill > > Paint.Rectangle(hExtent.X - 5, hExtent.Y - 5, hExtent.Width + 10, > > hExtent.Height + 10) > > Paint.Stroke() > > > > End > > > > Makes sense (somehow) :-) Thanks. But is this the intended solution or just > a workaround? > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Jul 17 10:45:54 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 17 Jul 2013 10:45:54 +0200 Subject: [Gambas-user] Error in rev. # 5732 In-Reply-To: <1374050080.95974.YahooMailBasic@...3066...> References: <1374050080.95974.YahooMailBasic@...3066...> Message-ID: Have you trya reconf ? Le 17 juil. 2013 10:35, "Ru Vuott" a ?crit : > Hello, > > from Make of rev. # 5732 > > > > make[5]: Entering directory `/home/vuott/trunk/gb.xml/src' > CXX gb_xml_la-main.lo > In file included from main.cpp:29:0: > node.h:25:20: fatal error: gb.xml.h: No such file or directory > compilation terminated. > make[5]: *** [gb_xml_la-main.lo] Error 1 > make[5]: Leaving directory `/home/vuott/trunk/gb.xml/src' > 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 > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Wed Jul 17 11:49:34 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 17 Jul 2013 10:49:34 +0100 (BST) Subject: [Gambas-user] Error in rev. # 5732 In-Reply-To: Message-ID: <1374054574.30104.YahooMailBasic@...3064...> I followed the usual procedure: ./reconf-al ./configure -C make && sudo make install but during the "Make" I obtained that error. Regards vuotttt -------------------------------------------- Mer 17/7/13, Fabien Bodard ha scritto: Oggetto: Re: [Gambas-user] Error in rev. # 5732 A: "mailing list for gambas users" Data: Mercoled? 17 luglio 2013, 10:45 Have you trya reconf ? Le 17 juil. 2013 10:35, "Ru Vuott" a ?crit : > Hello, > > from Make of rev. # 5732 > > > > make[5]: Entering directory `/home/vuott/trunk/gb.xml/src' >???CXX? ? gb_xml_la-main.lo > In file included from main.cpp:29:0: > node.h:25:20: fatal error: gb.xml.h: No such file or directory > compilation terminated. > make[5]: *** [gb_xml_la-main.lo] Error 1 > make[5]: Leaving directory `/home/vuott/trunk/gb.xml/src' > 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 > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From adrien.prokopowicz at ...626... Wed Jul 17 11:56:00 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Wed, 17 Jul 2013 11:56:00 +0200 Subject: [Gambas-user] Error in rev. # 5732 In-Reply-To: <1374054574.30104.YahooMailBasic@...3064...> References: <1374054574.30104.YahooMailBasic@...3064...> Message-ID: Le Wed, 17 Jul 2013 11:49:34 +0200, Ru Vuott a ?crit: > I followed the usual procedure: > > ./reconf-al > ./configure -C > make && sudo make install > > but during the "Make" I obtained that error. > > Regards > vuotttt > Whoops sorry, that's fixed in revision #5733. -- Adrien Prokopowicz From adrien.prokopowicz at ...626... Wed Jul 17 11:56:53 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Wed, 17 Jul 2013 11:56:53 +0200 Subject: [Gambas-user] revision 5732 gb.xml.h misasing In-Reply-To: <1741084.Hq6Nsq1jQV@...3157...> References: <1741084.Hq6Nsq1jQV@...3157...> Message-ID: Le Wed, 17 Jul 2013 07:56:34 +0200, wally a ?crit: > At revision 5732. > > In file included from main.cpp:29:0: > node.h:25:20: fatal error: gb.xml.h: No such file or directory > That's fixed in revision #5733. -- Adrien Prokopowicz From vuott at ...325... Wed Jul 17 12:21:29 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 17 Jul 2013 11:21:29 +0100 (BST) Subject: [Gambas-user] Error in rev. # 5732 In-Reply-To: Message-ID: <1374056489.57828.YahooMailBasic@...3064...> Yes, now it's Ok. bye vuott -------------------------------------------- Mer 17/7/13, Adrien Prokopowicz ha scritto: Whoops sorry, that's fixed in revision #5733. -- Adrien Prokopowicz ----- From taboege at ...626... Wed Jul 17 14:22:57 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 17 Jul 2013 14:22:57 +0200 Subject: [Gambas-user] Mouse.Inside() bug with collapsed Expander? In-Reply-To: References: <20130716123054.GF1173@...2774...> Message-ID: <20130717122257.GB532@...2774...> On Tue, 16 Jul 2013, Fabien Bodard wrote: > I think Mouse.inside use the screen coords so even if the expended is > collapsed, the dw2 don't move in reallity. So the only thing is that > mouse.inside must test the visibility. > I don't think so :-) If it used screen coordinates, Mouse.Inside() should _not_ find that the mouse is inside of dwg2 when it is actually inside dwg1. > Then on other hand ... Why this user not use _enter and _leave events to > get the current mouse zone ?. I don't know. IIRC, he is trying to detect when the mouse is hovering part of a painting in the DrawingArea. Enter and Leave won't be any good then. Regards, Tobi From taboege at ...626... Wed Jul 17 14:40:33 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 17 Jul 2013 14:40:33 +0200 Subject: [Gambas-user] Two problems painting richtext In-Reply-To: References: <20130714164609.GF554@...2774...> <20130717083459.GA532@...2774...> Message-ID: <20130717124033.GC532@...2774...> On Wed, 17 Jul 2013, Fabien Bodard wrote: > In fact i fnt know what you want to achieve. So I've just trying to > understand and then make it in a good way. > What I want is to draw a box and richtext which is centered in that box. The whole picture shall fade from black to transparency in a RadialGradient (from the middle of the picture). > Centering is different between draw and paint > > Then you can't center a richtext vertically. This make sens when wrap is > active. > Not much sense. When wrapping is active, Paint should compute the number of lines (based on the wrapping) to center the text vertically. Paint does offer me the Align.Center possibility so I expect that it works that way. > And you have give a bad zone for centering. > Why? I want to have the text inside this box. Did I maybe misunderstand how text is drawn with Paint? I give some text and a rectangle. The text will be drawn inside the rectangle, wrapping the text if necessary, right? > My way is not the only way. ... You can center by hand too. > Basically, I don't want another way and especially no workaround which has more lines than what I wrote. I'm asking why it doesn't work as expected - or if I expect wrong things. > Calculate the pos in _draw not in _arrange. Why? The positions are dependent only on the DrawingAreas' dimensions and these can only change when the Form changes dimensions. If this happens, the Arrange event is raised. I can see no effective difference between doing it in dwg1_Draw/dwg2_Draw or Form_Arrange, except that in Form_Arrange the code is executed less than (or equal to) half of the times if would have been in the Draw events. Regards, Tobi From vuott at ...325... Wed Jul 17 15:36:30 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 17 Jul 2013 14:36:30 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: Message-ID: <1374068190.8209.YahooMailBasic@...3066...> Hello, I'ld like to add that if I comment all lines in the "callback" function (as if it was empty), I get the same error (11) again. Regards vuott -------------------------------------------- Mar 16/7/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. A: "mailing list for gambas users" Data: Marted? 16 luglio 2013, 22:55 1. Have you confirmed that the example made in C really works? 2. You should confirm size of jack_default_audio_sample_t. Mistakes with memcpy doesn't always lead to SGN11. Since memory area you are writing over, may be owned by the program doing the mistake. That often causes random behaviour. 3. Cannot lock down 82274202 byte memory area (Cannot allocate memory) ?? Jussi On Tue, Jul 16, 2013 at 1:43 PM, Ru Vuott wrote: > Hello, > > I do not understand why, but today I re-tried the test, and i received > strangly these different info: > > ********************* > GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu > Copyright (C) 2013 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later < > http://gnu.org/licenses/gpl.html> > 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 "x86_64-linux-gnu". > For bug reporting instructions, please see: > ... > Reading symbols from /usr/bin/gbx3...done. > (gdb) run > Starting program: /usr/bin/gbx3 > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > [New Thread 0x7ffff7e80700 (LWP 2563)] > [New Thread 0x7fffeca9b700 (LWP 2564)] > Cannot lock down 82274202 byte memory area (Cannot allocate memory) > [New Thread 0x7fffeca03700 (LWP 2565)] > 0 > *** stack smashing detected ***: traJk terminated > > Program received signal SIGABRT, Aborted. > 0x00007ffff711b037 in raise () from /lib/x86_64-linux-gnu/libc.so.6 > (gdb) bt > #0? 0x00007ffff711b037 in raise () from /lib/x86_64-linux-gnu/libc.so.6 > #1? 0x00007ffff711e698 in abort () from /lib/x86_64-linux-gnu/libc.so.6 > #2? 0x00007ffff71585ab in ?? () from /lib/x86_64-linux-gnu/libc.so.6 > #3? 0x00007ffff71f55cc in __fortify_fail () >? ? from /lib/x86_64-linux-gnu/libc.so.6 > #4? 0x00007ffff71f5570 in __stack_chk_fail () >? ? from /lib/x86_64-linux-gnu/libc.so.6 > #5? 0x00007ffff5092fdc in ?? () from > /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #6? 0x00007fffffffdf40 in ?? () > #7? 0x00007fffffffe330 in ?? () > #8? 0x000000000079cc80 in ?? () > #9? 0x00000000007254c0 in ?? () > #10 0x00007fffdc000fd0 in ?? () > #11 0x00007fffffffdf20 in ?? () > #12 0x000000000079cc80 in ?? () > #13 0x00000000007254c0 in ?? () > #14 0x00007fffffffdfa0 in ?? () > #15 0x00007fffffffdf20 in ?? () > #16 0x00007ffff50248ec in QApplicationPrivate::notify_helper(QObject*, > QEvent*) >? ???() from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #17 0x00007ffff502725b in QApplication::notify(QObject*, QEvent*) () >? ? from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 > #18 0x00007fffffffe008 in ?? () > ---Type to continue, or q to quit--- > #19 0x00007fffffffdfe0 in ?? () > #20 0x0000000000000000 in ?? () > > ************* > > bha ! > > Regards > vuott > > > -------------------------------------------- > Lun 15/7/13, Ru Vuott ha scritto: > >? Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. >? A: "mailing list for gambas users" >? Data: Luned? 15 luglio 2013, 19:55 > >? > libfontconfig seems to make >? problems. >? > But I don't know about this library either... > >? Uhmmm... maybe is this ? >? http://www.freedesktop.org/wiki/Software/fontconfig/ > > > > > >? -------------------------------------------- >? Lun 15/7/13, Tobias Boege >? ha scritto: > >???Oggetto: Re: [Gambas-user] A "Callback" function doesn't >? work. >???A: "mailing list for gambas users" >???Data: Luned? 15 luglio 2013, 19:40 > >???On Mon, 15 Jul 2013, Ru Vuott wrote: >???> Hello, >???> >???> well, I did the backtrace. >???> >???> Here I attach 2 text files: >???> >???> - test WITH Real-Time ENABLED Jack option; >???> >???> - test Real-Time NO ENABLED Jack option. >???> > >???I'm sorry for your trouble - looks like I can't read >???anything meaningful out >???of these backtraces. Except maybe that libfontconfig seems >???to make problems. >???But I don't know about this library either... > >???Regards, >???Tobi > > > ------------------------------------------------------------------------------ >???See everything from the browser to the database with >???AppDynamics >???Get end-to-end visibility with application monitoring from >???AppDynamics >???Isolate bottlenecks and diagnose root cause in seconds. >???Start your free trial of AppDynamics Pro today! > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >???_______________________________________________ >???Gambas-user mailing list >???Gambas-user at lists.sourceforge.net >???https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >? ------------------------------------------------------------------------------ >? See everything from the browser to the database with >? AppDynamics >? Get end-to-end visibility with application monitoring from >? AppDynamics >? Isolate bottlenecks and diagnose root cause in seconds. >? Start your free trial of AppDynamics Pro today! > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >? _______________________________________________ >? Gambas-user mailing list >? Gambas-user at lists.sourceforge.net >? https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Wed Jul 17 16:04:37 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 17 Jul 2013 17:04:37 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1374010459.10527.YahooMailBasic@...3063...> References: <1374010459.10527.YahooMailBasic@...3063...> Message-ID: I think this is correct way to call jack_client_open, since "status" is declared in c code. Though status is enum word, not short... Dim status As Short client = jack_client_open(nomeClient, options, VarPtr(status), Null) > 2. You should confirm size of jack_default_audio_sample_t. > > confirm... where ? > Compile piece of c code: #include jack_default_audio_sample_t test; printf ("%d\n", sizeof(test)); Documentation says it can be float or double (in Gambas single and float). http://jackaudio.org/files/docs/html/types_8h.html#ae42bb7c4f7929176563585b2e3e8ebf6 Even if this doesn't fix the problem it may be part of it, and mess up bt. Jussi From vuott at ...325... Wed Jul 17 19:45:32 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 17 Jul 2013 18:45:32 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: Message-ID: <1374083132.19651.YahooMailBasic@...3066...> Hello Jussi, > I think this is correct way to call > jack_client_open, since "status" is > declared in c code. > Though status is enum word, not short... > > Dim status As Short > > client = jack_client_open(nomeClient, options, > VarPtr(status), Null) I tried in this way, but I obtain the same error 11. > Compile piece of c code: > > #include > > jack_default_audio_sample_t test; > > printf ("%d\n", sizeof(test)); > > Documentation says it can be float or double (in Gambas > single and float). > http://jackaudio.org/files/docs/html/types_8h.html#ae42bb7c4f7929176563585b2e3e8ebf6 Well, I compiled those C lines in this way: ****** #include #include #include void main () { jack_default_audio_sample_t test; printf ("%d\n", sizeof(test)); } ***** In terminal I received this notice: "warning: format ?%d? expects argument of type ?int?, but argument 2 has type ?long unsigned int? [-Wformat]" However... the relative compiled program was created, and launched in Terminal I obtained this value: 4 Bye vuott From gambas at ...1... Thu Jul 18 02:41:27 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 18 Jul 2013 02:41:27 +0200 Subject: [Gambas-user] Problems with storing a binary file in a database Message-ID: <51E739B7.5070507@...1...> Hi, I've just come back from holidays, and I see all your mails. Your english is often difficult to understand, so I apologize if I misunderstood something. So, as far as I understood, you tried to load a file into a Blob database field, and save it too. But, sometimes, a file is truncated in the process. Can you: - Send me one of the binary files that have been truncated? - Tell me again which database system you are using? Thanks in advance. Regards, -- Beno?t Minisini From paulwheeler at ...546... Thu Jul 18 05:35:02 2013 From: paulwheeler at ...546... (paulwheeler) Date: Wed, 17 Jul 2013 20:35:02 -0700 Subject: [Gambas-user] Gambas 3.4.1 won't compile on mint linux Message-ID: <51E76266.2070904@...546...> I downloaded the bz2 file from sourceforge for gambas3-3.4.1 at about 5:30 gmt Looked at Installation instructions ("INSTALL") which said to run configure Unfortunately, there is no "configure" file in the root directory for gambas3.4.1 Now what do I do? paul From ualex73 at ...626... Thu Jul 18 07:31:54 2013 From: ualex73 at ...626... (Alexie) Date: Thu, 18 Jul 2013 07:31:54 +0200 Subject: [Gambas-user] Gambas 3.4.1 won't compile on mint linux In-Reply-To: <51E76266.2070904@...546...> References: <51E76266.2070904@...546...> Message-ID: Normal steps are: ./reconf-all ./configure -C make sudo make install I think you forgot the "./reconf-all" :-) 2013/7/18 paulwheeler > > I downloaded the bz2 file from sourceforge for gambas3-3.4.1 at about > 5:30 > gmt > Looked at Installation instructions ("INSTALL") which said to run > configure > Unfortunately, there is no "configure" file in the root directory for > gambas3.4.1 > Now what do I do? > paul > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Jul 18 14:46:40 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 18 Jul 2013 15:46:40 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1374083132.19651.YahooMailBasic@...3066...> References: <1374083132.19651.YahooMailBasic@...3066...> Message-ID: > > Dim status As Short > > > > client = jack_client_open(nomeClient, options, > > VarPtr(status), Null) > > However... the relative compiled program was created, and launched in > Terminal I obtained this value: 4 > OK, so with memcpy you should use sizeof(gb.Single). After these corrections I got SGN11 from libjack. Starting program: /usr/bin/gbx3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe6ee9700 (LWP 5951)] [New Thread 0x7fffe6e68700 (LWP 5952)] Cannot lock down 82246176 byte memory area (Cannot allocate memory) 0 Campionamento = 44100 [New Thread 0x7fffe6de7700 (LWP 5953)] Program received signal SIGSEGV, Segmentation fault. 0x00007fffe6f0323c in ?? () from /usr/lib/x86_64-linux-gnu/libjack.so.0.1.0 (gdb) bt #0 0x00007fffe6f0323c in ?? () from /usr/lib/x86_64-linux-gnu/libjack.so.0.1.0 #1 0x00007fffffffc548 in ?? () #2 0x0000000000006f9c in ?? () #3 0x000000000000003d in ?? () #4 0x0000000000000004 in ?? () #5 0x0000000000000000 in ?? () I don't know what is going on. If you really want to find out, maybe you should contact developers of jack, or compile libjack from sources with debugging information. Then I would think we could have more meaningful bt. But maybe we just missed something from the C to Gambas translation... Jussi From vuott at ...325... Thu Jul 18 15:50:20 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 18 Jul 2013 14:50:20 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: Message-ID: <1374155420.57575.YahooMailBasic@...3065...> Hello Jussi, have you read Beno?t's message ? Where he tells he seems to have been running my Gambas code (...if I do not have mistranslated ) : ******************* I can run your program with no crash if ******************** albeit with some precautions: ********************************** 1) I rewrite the code at line 62. Dim status As Integer client = jack_client_open(nomeClient, JackNullOption, VarPtr(status), Null) (the status argument must be a pointer to a 'jack_status_t' that should be an 'int') 2) I run the code from a module and not from a form. In other words, outside of the QT4 GUI loop that does not like threads. *********************************** He says he run from a module. So I'ld like to know if I have to create a new project without FMain/Form... and - if affermative - how can I launch it? bye vuott -------------------------------------------- Gio 18/7/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. A: "mailing list for gambas users" Data: Gioved? 18 luglio 2013, 14:46 > > Dim status As Short > > > > client = jack_client_open(nomeClient, options, > > VarPtr(status), Null) > > However... the relative compiled program was created, and launched in > Terminal I obtained this value:???4 > OK, so with memcpy you should use sizeof(gb.Single). After these corrections I got SGN11 from libjack. Starting program: /usr/bin/gbx3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe6ee9700 (LWP 5951)] [New Thread 0x7fffe6e68700 (LWP 5952)] Cannot lock down 82246176 byte memory area (Cannot allocate memory) 0 Campionamento = 44100 [New Thread 0x7fffe6de7700 (LWP 5953)] Program received signal SIGSEGV, Segmentation fault. 0x00007fffe6f0323c in ?? () from /usr/lib/x86_64-linux-gnu/libjack.so.0.1.0 (gdb) bt #0? 0x00007fffe6f0323c in ?? () from /usr/lib/x86_64-linux-gnu/libjack.so.0.1.0 #1? 0x00007fffffffc548 in ?? () #2? 0x0000000000006f9c in ?? () #3? 0x000000000000003d in ?? () #4? 0x0000000000000004 in ?? () #5? 0x0000000000000000 in ?? () I don't know what is going on. If you really want to find out, maybe you should contact developers of jack, or compile libjack from sources with debugging information. Then I would think we could have more meaningful bt. But maybe we just missed something from the C to Gambas translation... Jussi ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Thu Jul 18 16:03:24 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 18 Jul 2013 15:03:24 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: Message-ID: <1374156204.97702.YahooMailBasic@...3064...> > But maybe we just missed something from the C to Gambas translation... > > Jussi I hope... not ! :-( About it, I'ld like to rember that if I cancel the "callback" function and any reference to it, the little Gambas application works well: in fact it connect itself regularly to sound general system. And more, with appropriate ports changes, I can make that the program connects itself to other Jack clients. But stop ! Instead, the "callback" function allows you to pass data received "from" a connected Jack client, "to" another connected Jack client ! bye vuott From jussi.lahtinen at ...626... Thu Jul 18 16:53:20 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 18 Jul 2013 17:53:20 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1374155420.57575.YahooMailBasic@...3065...> References: <1374155420.57575.YahooMailBasic@...3065...> Message-ID: > have you read Beno?t's message ? No, Benoit must have been replied to you, not to this list. > ********************************** > 1) I rewrite the code at line 62. > > Dim status As Integer > > client = jack_client_open(nomeClient, JackNullOption, VarPtr(status), Null) > > (the status argument must be a pointer to a 'jack_status_t' that should > be an 'int') > I originally understood short would be correct, but I also tried integer. 2) I run the code from a module and not from a form. In other words, > outside of the QT4 GUI loop that does not like threads. > I tried, but didn't help. > He says he run from a module. So I'ld like to know if I have to create a > new project without FMain/Form... and - if affermative - how can I launch > it? > Create module with Public Sub Main(), and select it as start up class. However it didn't work with me. Maybe Benoit could send his modifications to this list? Jussi From vuott at ...325... Thu Jul 18 17:09:54 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 18 Jul 2013 16:09:54 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: Message-ID: <1374160194.86024.YahooMailBasic@...3070...> Hello Jussi, >> have you read Beno?t's message ? > No, Benoit must have been replied to you, not to this list. Oh, yes, excuse me. > I originally understood short would be correct, but I also tried integer. Uhmm... in ufficiale Jack documention I read: ***** typedef enum JackStatus jack_status_t Status word returned from several JACK operations, formed by OR-ing together the relevant JackStatus bits. ***** and more: ******** enum JackStatus jack_status_t bits ******** ...that: BITS What'ld it could be ? > Create module with Public Sub Main(), and select it as start up class. > However it didn't work with me. I created new project that has only a Module "MMain" and main routine name is: Main() So I launched it from Terminal: I do not have errors; I can see in Jack connections that my application connects itself to sound System for a little moment, so it closes. No errors, but the "callback" function doesn't works ! Maybe Benoit could send his modifications to this list? I hope it, so I'll ask him. bye vuott From mckaygerhard at ...626... Thu Jul 18 17:19:14 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 18 Jul 2013 10:49:14 -0430 Subject: [Gambas-user] Gambas blob behavior: Problems with retreiving a binary file stored in a database Message-ID: hi benoit, my englys its bad due i hate the languaje i cannot classified this behavior as a bug, i explain: I discovered a small hole in the language "gambas", apparently the data management type "blob" in mysql is the worst, and since the only DBMS that developers of gambas used in advance, its mysql, theres no knowledge of this behavior The database engine "mysql" is the closest thing to mocosoft, data type "blob" is saved without escape string, while the other DBMS the most great and powerful for large volumes (like postgresql, oracle) data "blob" saved escaped .. When i try to implement the "File.Save (field, path)" the file are saved to a path corrupted or in 0k data I attached the file , our expert in hex behavior and data, Misa3l anonimous, confirmed the problem. pleasse see the original threat in venenux developers group: https://groups.google.com/d/msg/venenuxsarisari/IbunRRR8eUI/nxNZzC_yERgJ i made a program for payroll sisten, *I made ??a program that monitors and records the attendances of the employees* of a company, the *principal, and unique main feature: difference is that my program is made for companies that have high turnover staffing*. Do then my program and sistem are unique, powerfully and fault tolerant also,, no one has made a program like this in a gambas languaje.. for now i made the client (the monitor of records) in next month i made the service and report auditor, and then the card reader feature... -------------- next part -------------- A non-text attachment was scrubbed... Name: 1 Type: application/octet-stream Size: 2414 bytes Desc: not available URL: From jussi.lahtinen at ...626... Thu Jul 18 17:32:11 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 18 Jul 2013 18:32:11 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1374160194.86024.YahooMailBasic@...3070...> References: <1374160194.86024.YahooMailBasic@...3070...> Message-ID: > Uhmm... in ufficiale Jack documention I read: > > ***** > typedef enum JackStatus jack_status_t > Status word returned from several JACK operations, formed by OR-ing > together the relevant JackStatus bits. > ***** > > and more: > > ******** > enum JackStatus > > jack_status_t bits > ******** > > ...that: BITS What'ld it could be ? > I think Benoit is right about Integer. http://en.wikipedia.org/wiki/Word_%28computer_architecture%29 In MS way (the wrong way) it was; word (16bit), dword (32bit) and qword (64bit). Bits refers to the fact that status constants are presented by single bit. Example (these are byte constants): Constant A = 1, and in binary 00000001 Constant B = 2, and in binary 00000010 Constant C = 4, and in binary 00000100 Constant D = 8, and in binary 00001000 etc. So, one byte size variable can present eight statuses at same time. Example, if variable x has status A and C, it has value 5 = 00000101, etc. Jussi From gambas at ...1... Thu Jul 18 17:32:52 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 18 Jul 2013 17:32:52 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: References: <1374155420.57575.YahooMailBasic@...3065...> Message-ID: <51E80AA4.80704@...1...> Le 18/07/2013 16:53, Jussi Lahtinen a ?crit : > Maybe Benoit could send his modifications to this list? > Here it is. I just changed the line I talked about, and run the code outside of the GUI loop. Alas I was wrong, the program now crashes again in jack_activate(). -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: traJk-0.0.2.tar.gz Type: application/gzip Size: 6160 bytes Desc: not available URL: From gambas at ...1... Thu Jul 18 17:34:39 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 18 Jul 2013 17:34:39 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: References: <1374160194.86024.YahooMailBasic@...3070...> Message-ID: <51E80B0F.3030903@...1...> Le 18/07/2013 17:32, Jussi Lahtinen a ?crit : >> Uhmm... in ufficiale Jack documention I read: >> >> ***** >> typedef enum JackStatus jack_status_t >> Status word returned from several JACK operations, formed by OR-ing >> together the relevant JackStatus bits. >> ***** >> >> and more: >> >> ******** >> enum JackStatus >> >> jack_status_t bits >> ******** >> >> ...that: BITS What'ld it could be ? >> > > > I think Benoit is right about Integer. > http://en.wikipedia.org/wiki/Word_%28computer_architecture%29 > > In MS way (the wrong way) it was; word (16bit), dword (32bit) and qword > (64bit). > > > Bits refers to the fact that status constants are presented by single bit. > > Example (these are byte constants): > Constant A = 1, and in binary 00000001 > Constant B = 2, and in binary 00000010 > Constant C = 4, and in binary 00000100 > Constant D = 8, and in binary 00001000 > > etc. > > So, one byte size variable can present eight statuses at same time. > Example, if variable x has status A and C, it has value 5 = 00000101, etc. > > > Jussi Yep. To use external functions, you must know how C code is translated by the compiler. And an 'enum' is translated to an 'int', which is an Integer in Gambas. -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Jul 18 17:41:13 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 18 Jul 2013 18:41:13 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <51E80B0F.3030903@...1...> References: <1374160194.86024.YahooMailBasic@...3070...> <51E80B0F.3030903@...1...> Message-ID: Yeah, I was confused by jack documentation about usage of "word" and I chose Short... Jussi On Thu, Jul 18, 2013 at 6:34 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 18/07/2013 17:32, Jussi Lahtinen a ?crit : > >> Uhmm... in ufficiale Jack documention I read: > >> > >> ***** > >> typedef enum JackStatus jack_status_t > >> Status word returned from several JACK operations, formed by OR-ing > >> together the relevant JackStatus bits. > >> ***** > >> > >> and more: > >> > >> ******** > >> enum JackStatus > >> > >> jack_status_t bits > >> ******** > >> > >> ...that: BITS What'ld it could be ? > >> > > > > > > I think Benoit is right about Integer. > > http://en.wikipedia.org/wiki/Word_%28computer_architecture%29 > > > > In MS way (the wrong way) it was; word (16bit), dword (32bit) and qword > > (64bit). > > > > > > Bits refers to the fact that status constants are presented by single > bit. > > > > Example (these are byte constants): > > Constant A = 1, and in binary 00000001 > > Constant B = 2, and in binary 00000010 > > Constant C = 4, and in binary 00000100 > > Constant D = 8, and in binary 00001000 > > > > etc. > > > > So, one byte size variable can present eight statuses at same time. > > Example, if variable x has status A and C, it has value 5 = 00000101, > etc. > > > > > > Jussi > > Yep. To use external functions, you must know how C code is translated > by the compiler. And an 'enum' is translated to an 'int', which is an > Integer in Gambas. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Jul 18 17:42:55 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 18 Jul 2013 18:42:55 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <51E80AA4.80704@...1...> References: <1374155420.57575.YahooMailBasic@...3065...> <51E80AA4.80704@...1...> Message-ID: That code has still wrong size in memcpy, it should be gb.Single. With these corrections I got: (gdb) r Starting program: /usr/bin/gbx3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff7fdf700 (LWP 6225)] [New Thread 0x7ffff7f5e700 (LWP 6226)] Cannot lock down 82246176 byte memory area (Cannot allocate memory) 0 Campionamento = 44100 [New Thread 0x7ffff7ecb700 (LWP 6227)] Module1.Main.131: #3: Stack overflow 1: Module1.Main.131 [Thread 0x7ffff7ecb700 (LWP 6227) exited] [Thread 0x7ffff7f5e700 (LWP 6226) exited] [Thread 0x7ffff7fdf700 (LWP 6225) exited] [Inferior 1 (process 6222) exited with code 01] Line 131 is here: ports = jack_get_ports(client, Null, Null, jphjou) Jussi On Thu, Jul 18, 2013 at 6:32 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 18/07/2013 16:53, Jussi Lahtinen a ?crit : > > Maybe Benoit could send his modifications to this list? >> >> > Here it is. I just changed the line I talked about, and run the code > outside of the GUI loop. > > Alas I was wrong, the program now crashes again in jack_activate(). > > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Thu Jul 18 17:43:32 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 18 Jul 2013 17:43:32 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <51E80AA4.80704@...1...> References: <1374155420.57575.YahooMailBasic@...3065...> <51E80AA4.80704@...1...> Message-ID: <51E80D24.30008@...1...> Le 18/07/2013 17:32, Beno?t Minisini a ?crit : > Le 18/07/2013 16:53, Jussi Lahtinen a ?crit : >> Maybe Benoit could send his modifications to this list? >> > > Here it is. I just changed the line I talked about, and run the code > outside of the GUI loop. > > Alas I was wrong, the program now crashes again in jack_activate(). > > Anyway, don't expect your callback to work, as it is run in another thread, and the Gambas interpreter cannot be run outside of the main thread. Regards, -- Beno?t Minisini From vuott at ...325... Thu Jul 18 17:55:42 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 18 Jul 2013 16:55:42 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <51E80B0F.3030903@...1...> Message-ID: <1374162942.77623.YahooMailBasic@...3064...> > Yep. To use external functions, you must know how C code is translated > by the compiler. And an 'enum' is translated to an 'int', which is an Integer in Gambas. > > -- > Beno?t Minisini Ok, thanks. vuott From vuott at ...325... Thu Jul 18 18:01:28 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 18 Jul 2013 17:01:28 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: Message-ID: <1374163288.80881.YahooMailBasic@...3066...> > So, one byte size variable can present eight statuses at same time. > Example, if variable x has status A and C, it has value 5 = > 00000101, etc. > > Jussi Ok, thanks. vuott From vuott at ...325... Thu Jul 18 18:10:10 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 18 Jul 2013 17:10:10 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <51E80D24.30008@...1...> Message-ID: <1374163810.83600.YahooMailBasic@...3066...> > Anyway, don't expect your callback to work, as it is run in another > thread, and the Gambas interpreter cannot be run outside of the main thread. > > Regards, > > -- > Beno?t Minisini So.... we can make any changes and corrections we want, but it will never work? :-( vuott From gambas at ...1... Thu Jul 18 18:31:16 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 18 Jul 2013 18:31:16 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1374163810.83600.YahooMailBasic@...3066...> References: <1374163810.83600.YahooMailBasic@...3066...> Message-ID: <51E81854.8040201@...1...> Le 18/07/2013 18:10, Ru Vuott a ?crit : > > > Anyway, don't expect your callback to work, as it is run in another >> thread, and the Gambas interpreter cannot be run outside of the main thread. >> >> Regards, >> >> -- >> Beno?t Minisini > > > So.... we can make any changes and corrections we want, but it will never work? :-( > > vuott > If the callback run in another thread, yes. -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Jul 18 18:49:54 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 18 Jul 2013 19:49:54 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <51E81854.8040201@...1...> References: <1374163810.83600.YahooMailBasic@...3066...> <51E81854.8040201@...1...> Message-ID: Can this be fixed by using Task? Jussi On Thu, Jul 18, 2013 at 7:31 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 18/07/2013 18:10, Ru Vuott a ?crit : > > > > > Anyway, don't expect your callback to work, as it is run in another > >> thread, and the Gambas interpreter cannot be run outside of the main > thread. > >> > >> Regards, > >> > >> -- > >> Beno?t Minisini > > > > > > So.... we can make any changes and corrections we want, but it will > never work? :-( > > > > vuott > > > > If the callback run in another thread, yes. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Jul 18 19:01:16 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 18 Jul 2013 19:01:16 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: References: <1374163810.83600.YahooMailBasic@...3066...> <51E81854.8040201@...1...> Message-ID: <51E81F5C.9060403@...1...> Le 18/07/2013 18:49, Jussi Lahtinen a ?crit : > Can this be fixed by using Task? > > Jussi > I don't see how. Task is a child process, this has nothing to do with our problem: calling the Gambas interpreter inside a thread, which is not possible because the Gambas interpreter is not multi-threaded. -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Jul 18 19:17:17 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 18 Jul 2013 20:17:17 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <51E81F5C.9060403@...1...> References: <1374163810.83600.YahooMailBasic@...3066...> <51E81854.8040201@...1...> <51E81F5C.9060403@...1...> Message-ID: OK, this is not entirely clear to me (I will study). I just thought maybe it's fine if the callback function could be alone in it's own process. Jussi On Thu, Jul 18, 2013 at 8:01 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 18/07/2013 18:49, Jussi Lahtinen a ?crit : > > Can this be fixed by using Task? > > > > Jussi > > > > I don't see how. Task is a child process, this has nothing to do with > our problem: calling the Gambas interpreter inside a thread, which is > not possible because the Gambas interpreter is not multi-threaded. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Thu Jul 18 19:47:40 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 18 Jul 2013 18:47:40 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <51E81854.8040201@...1...> Message-ID: <1374169660.24336.YahooMailBasic@...3070...> Hello, well, I have been able to run the application, but..... using a shared library .so written by me. I moved the call to "callback" function and the same "callback" function in that shared library. Excuse me: I am so ashamed for the tricksy ! :-D Ok... Forget it! vuott From jussi.lahtinen at ...626... Thu Jul 18 20:02:53 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 18 Jul 2013 21:02:53 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1374169660.24336.YahooMailBasic@...3070...> References: <51E81854.8040201@...1...> <1374169660.24336.YahooMailBasic@...3070...> Message-ID: Nice workaround! However I don't quite understand why it works (I think the library is in same thread than gbx3). Jussi On Thu, Jul 18, 2013 at 8:47 PM, Ru Vuott wrote: > Hello, > > well, I have been able to run the application, but..... using a shared > library .so written by me. > > I moved the call to "callback" function and the same "callback" function > in that shared library. > > > Excuse me: I am so ashamed for the tricksy ! :-D > > > Ok... Forget it! > > > vuott > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Thu Jul 18 21:02:57 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 18 Jul 2013 20:02:57 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: References: <51E81854.8040201@...1...> <1374169660.24336.YahooMailBasic@...3070...> Message-ID: <1374174177.12349.YahooMailNeo@...3065...> > Nice workaround! Oh, thank you, Jussi. > However I don't quite understand why it works (I think the > library is in same thread than gbx3). > I do not know, but we could wait for Benoit's answer about it. Bye vuott From gambas at ...1... Fri Jul 19 00:53:40 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 19 Jul 2013 00:53:40 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <1374174177.12349.YahooMailNeo@...3065...> References: <51E81854.8040201@...1...> <1374169660.24336.YahooMailBasic@...3070...> <1374174177.12349.YahooMailNeo@...3065...> Message-ID: <51E871F4.1010507@...1...> Le 18/07/2013 21:02, Ru Vuott a ?crit : >> Nice workaround! > > Oh, thank you, Jussi. > > >> However I don't quite understand why it works (I think the >> library is in same thread than gbx3). >> > > I do not know, but we could wait for Benoit's answer about it. > > > Bye > vuott It works because the callback is written in C, it does not run the Gambas interpreter. -- Beno?t Minisini From subscriptions at ...1822... Fri Jul 19 04:51:11 2013 From: subscriptions at ...1822... (Horst Herb) Date: Fri, 19 Jul 2013 12:51:11 +1000 Subject: [Gambas-user] gambas newbie question re custom events Message-ID: I would be most grateful if somebody could point me to a relevant section of documentation or provide me with a minimal example for my following problem: I have a data model (non-GUI) that wants to emit a custom event (eg "DataChanged"). Let's say for simplicity that the model is a simple string, eg "MyString" and when modified, it emits DataChanged(MyString.contents) I have a GUI element (eg TextBox1) that has to change it's display in response to the DataChanged event. How do I bind the custom event to the GUI element's observer? I would be most grateful for any hints, Horst From bbruen at ...2308... Fri Jul 19 05:52:42 2013 From: bbruen at ...2308... (Bruce) Date: Fri, 19 Jul 2013 13:22:42 +0930 Subject: [Gambas-user] gambas newbie question re custom events In-Reply-To: References: Message-ID: <1374205962.4074.28.camel@...2688...> Here's a simple (albeit silly) demo of how to use the Observer class. hth Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: demo_events-0.0.1.tar.gz Type: application/x-compressed-tar Size: 5465 bytes Desc: not available URL: From gambas.fr at ...626... Fri Jul 19 07:40:29 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 19 Jul 2013 07:40:29 +0200 Subject: [Gambas-user] gambas newbie question re custom events In-Reply-To: <1374205962.4074.28.camel@...2688...> References: <1374205962.4074.28.camel@...2688...> Message-ID: Why using an observer ? Le 19 juil. 2013 05:55, "Bruce" a ?crit : > Here's a simple (albeit silly) demo of how to use the Observer class. > hth > Bruce > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Fri Jul 19 09:26:22 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 19 Jul 2013 09:26:22 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <51E871F4.1010507@...1...> References: <51E81854.8040201@...1...> <1374169660.24336.YahooMailBasic@...3070...> <1374174177.12349.YahooMailNeo@...3065...> <51E871F4.1010507@...1...> Message-ID: So write a C component :-) Le 19 juil. 2013 00:54, "Beno?t Minisini" a ?crit : > Le 18/07/2013 21:02, Ru Vuott a ?crit : > >> Nice workaround! > > > > Oh, thank you, Jussi. > > > > > >> However I don't quite understand why it works (I think the > >> library is in same thread than gbx3). > >> > > > > I do not know, but we could wait for Benoit's answer about it. > > > > > > Bye > > vuott > > It works because the callback is written in C, it does not run the > Gambas interpreter. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Fri Jul 19 09:56:06 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 19 Jul 2013 09:56:06 +0200 Subject: [Gambas-user] gambas newbie question re custom events In-Reply-To: References: Message-ID: <20130719075606.GA524@...2774...> On Fri, 19 Jul 2013, Horst Herb wrote: > I would be most grateful if somebody could point me to a relevant section > of documentation or provide me with a minimal example for my following > problem: > > I have a data model (non-GUI) that wants to emit a custom event (eg > "DataChanged"). Let's say for simplicity that the model is a simple string, > eg "MyString" and when modified, it emits DataChanged(MyString.contents) > > I have a GUI element (eg TextBox1) that has to change it's display in > response to the DataChanged event. > > How do I bind the custom event to the GUI element's observer? > The GUI element's observer is normally the Form it resides in. You have to create an object of a MyString class in the code belonging to the same Form and give this object an event name so that it can raise events. Of course, the MyString class needs to declare a DataChanged event and raise it where it's needed. It is then a matter of catching the EventName_DataChanged event from the MyString object in the Form's code and do whatever you want (e.g. updating a TextBox). I attached an example where you can write to one TextBox which will change the value of an object (MyString). This object will raise the DataChanged event then and the Form will catch that event and update a second TextBox. You'll have the both TextBoxes in sync through the MyString object in practice. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: custom-event-0.0.1.tar.gz Type: application/octet-stream Size: 5466 bytes Desc: not available URL: From vuott at ...325... Fri Jul 19 10:38:33 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 19 Jul 2013 09:38:33 +0100 (BST) Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: Message-ID: <1374223113.23133.YahooMailBasic@...3064...> > > -------------------------------------------- > Ven 19/7/13, Fabien Bodard ha scritto: > > > So write a C component :-) :-D From gambas at ...1... Fri Jul 19 10:43:34 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Fri, 19 Jul 2013 10:43:34 +0200 Subject: [Gambas-user] Gambas blob behavior: Problems with retreiving a binary file stored in a database In-Reply-To: References: <51E81FEB.507@...1...> Message-ID: <51E8FC36.8050409@...1...> Le 18/07/2013 19:28, PICCORO McKAY Lenz a ?crit : > > Can you send me the SQL schema of the table that receives your blob? > Did you create that schema from the Gambas IDE or from the outside? > > sql schema are not need, u can try CREATE TABLE in sqlite or postgres > etc etc and made a only blob field.. > > the problem its not really make FILE.Save(data,path) > > the problem are raised when i change the behavior of that sql for search > another data blob.. > > if i always search for same data, always work.. > > so then the problem only can reproduce if u have multiple files stored > in the table, see that: > > CREATE TABLE sysasis_registro ( > cod_ficha VARCHAR(20) NOT NULL , -- ficha/cedula/id del trabajador > hex_huelladactilar BLOB NOT NULL , -- huella dactilar tomada > PRIMARY KEY (cod_ficha) ) > > so then if i search and save always for same "cod_ficha" , the File.Save > always work.. but when i search for another different "cod_ficha" data > when saved to path are corrupted or 0k > > i solved with a hex dump feature made by misa3l.. so search for problem > and seem that DBMS stored scaped the blob data in field.. its hard to > explaint for me.. but seems important for improved the gambas languaje & ide > > > -- > Beno?t Minisini > > I tested with a mysql table created with Gambas classes having one blob field. I fill many records with the file provided by you, and I could retrieve the blobs as expected. Maybe your problem comes from the fact that "BLOB" is not a real field type in mysql, but a synonymous of "TEXT". In other words, there is no blobs in mysql (or no text field if you prefer). To make the difference, I took the following decision in the mysql gambas driver: - If the maximum length of the field is < 0 or >= 16777216, or if the mysql field datatype is "LONGBLOB" or "LONGTEXT", then it is a blob, and so a Blob in Gambas. - Otherwise, it is a text field, and so a String in Gambas. Can you try to use "LONGBLOB" instead of "BLOB" and tell me it works better for you? Regards, -- Beno?t Minisini From alberto.kavan at ...626... Fri Jul 19 10:53:33 2013 From: alberto.kavan at ...626... (Alberto Caballero) Date: Fri, 19 Jul 2013 10:53:33 +0200 Subject: [Gambas-user] Fwd: Multiple charts using gb.chart In-Reply-To: References: Message-ID: Hi all, I've been trying to find any clue at the Chart Gambas source code in order to solve my issue but I didn't find anything. Is there any memory issue regarding Chart variables? Thanks and regards, Alberto ---------- Forwarded message ---------- From: Alberto Caballero Date: 2013/7/7 Subject: Re: [Gambas-user] Multiple charts using gb.chart To: mailing list for gambas users Hi again Fabien, I've been trying to make it work, but no success. Please find attached a ZIP file containing a project that tries to show two charts inside two differente Drawing Areas inside two different tabs. Sometimes it works and sometimes not. Is it not possible to declare to Chart private variables? At the example, in order to show the graphs just click on the buttons below. Thanks and regards, Alberto 2013/6/28 Fabien Bodard > It depend... If all the chart are on the same style ... One chart object in > multiple drawing area pointing on one event handler > > Group > Le 28 juin 2013 13:14, "Alberto Caballero" a > ?crit : > > > Ok Fabien, > > > > I will try all of this. What I want to do is to show different charts > > inside different tabs. Should I declare different Chart variables for > each > > chart? > > > > I will update you ASAP. > > > > > > 2013/6/28 Fabien Bodard > > > > > Never resize the drawing area in its draw event !!! > > > > > > Use the form resize event or better learn how to use gambas arrangement > > > properties. The last allow to do what you want without any code line. > > > Le 28 juin 2013 13:06, "Fabien Bodard" a ?crit : > > > > > > > I think I don'treally understand what you want to do ... > > > > > > > > One tabstrip ... Multiple tabs and one chart object with different > set > > of > > > > data that change depend on the selected tab ? > > > > Le 28 juin 2013 12:54, "Alberto Caballero" > a > > > > ?crit : > > > > > > > >> Hi Fabien, > > > >> > > > >> Thanks for your support. > > > >> > > > >> Here you have the piece of code that manages the graph. For a new > > graph > > > at > > > >> a new DrawingArea, should I declare a new Chart variable? I think > this > > > did > > > >> not work for me. > > > >> > > > >> Private Sub GenGraficaCaudales() > > > >> > > > >> Dim i As Integer > > > >> Dim msg As String > > > >> Dim titles As New String[365] > > > >> Dim CaudalesArray As New Float[365] > > > >> > > > >> For i = 0 To 364 > > > >> msg = Str$(i) > > > >> titles[i] = msg > > > >> Next > > > >> > > > >> CaudalesArray = pProyecto.GetCaudalesArray() > > > >> ChartCaudales.Headers.Values = titles > > > >> ChartCaudales.CountDataSets = 1 > > > >> > > > >> ChartCaudales[0].Text = "Caudales" > > > >> ChartCaudales[0].Values = CaudalesArray > > > >> > > > >> ChartCaudales.Style = ChartStyle.Custom > > > >> ChartCaudales.Colors.values = [Color.blue, Color.Yellow] > > > >> ChartCaudales.Legend.Visible = True > > > >> ChartCaudales.Legend.Title = "Leyenda" > > > >> > > > >> 'Titulo de la Gr?fica > > > >> ChartCaudales.Title.Text = "Curva de Caudales Clasificados" > > > >> > > > >> ChartCaudales.XAxe.Step = 10 > > > >> ChartCaudales.YAxe.MinValue = 0 > > > >> ChartCaudales.YAxe.MaxValue = 15 > > > >> ChartCaudales.Proportionnal = True > > > >> > > > >> 'Tipo de Gr?fica > > > >> ChartCaudales.Type = ChartType.Lines > > > >> End > > > >> > > > >> Public Sub DrawingArea1_Draw() > > > >> > > > >> If (DrawOk = True) Then > > > >> ChartCaudales.Width = DrawingArea1.ClientHeight - 50 > > > >> ChartCaudales.Height = DrawingArea1.ClientWidth - 50 > > > >> ChartCaudales.Resize(880, 450) > > > >> ChartCaudales.Draw 'Muestra la Grafica > > > >> Endif > > > >> > > > >> > > > >> End > > > >> > > > >> > > > >> 2013/6/27 Fabien Bodard > > > >> > > > >> > can you send me your project or a part of it that show the > problem ? > > > >> > > > > >> > > > > >> > 2013/6/27 Alberto Caballero > > > >> > > > > >> > > Hi all, > > > >> > > > > > >> > > I am trying to show multiple charts inside a TabView. I managed > to > > > >> show > > > >> > > only one chart. I only get compilation errors or the new chart > is > > > not > > > >> > > displayed. I tried to find something to help me in the internet, > > and > > > >> even > > > >> > > in this mailing list, but I was unable to find anything. > > > >> > > > > > >> > > Would you provide me any reference or an example to have a look? > > > >> > > > > > >> > > Thanks in advance, > > > >> > > > > > >> > > Alberto > > > >> > > > > > >> > > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > > This SF.net email is sponsored by Windows: > > > >> > > > > > >> > > Build for Windows Store. > > > >> > > > > > >> > > http://p.sf.net/sfu/windows-dev2dev > > > >> > > _______________________________________________ > > > >> > > Gambas-user mailing list > > > >> > > Gambas-user at lists.sourceforge.net > > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > > >> > > > > >> > > > > >> > > > > >> > -- > > > >> > Fabien Bodard > > > >> > > > > >> > > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> > This SF.net email is sponsored by Windows: > > > >> > > > > >> > Build for Windows Store. > > > >> > > > > >> > http://p.sf.net/sfu/windows-dev2dev > > > >> > _______________________________________________ > > > >> > Gambas-user mailing list > > > >> > Gambas-user at lists.sourceforge.net > > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > >> > > > >> > > > > > > ------------------------------------------------------------------------------ > > > >> This SF.net email is sponsored by Windows: > > > >> > > > >> Build for Windows Store. > > > >> > > > >> http://p.sf.net/sfu/windows-dev2dev > > > >> _______________________________________________ > > > >> Gambas-user mailing list > > > >> Gambas-user at lists.sourceforge.net > > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > >> > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > This SF.net email is sponsored by Windows: > > > > > > Build for Windows Store. > > > > > > http://p.sf.net/sfu/windows-dev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Windows: > > > > Build for Windows Store. > > > > http://p.sf.net/sfu/windows-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > 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: MultCharts.zip Type: application/zip Size: 11052 bytes Desc: not available URL: From mckaygerhard at ...626... Fri Jul 19 14:36:30 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 19 Jul 2013 08:06:30 -0430 Subject: [Gambas-user] Gambas blob behavior: Problems with retreiving a binary file stored in a database In-Reply-To: <51E8FC36.8050409@...1...> References: <51E81FEB.507@...1...> <51E8FC36.8050409@...1...> Message-ID: On Fri, Jul 19, 2013 at 4:13 AM, Beno?t Minisini < gambas at ...1...> wrote: > I tested with a mysql table created with Gambas classes having one blob > field. I fill many records with the file provided by you, and I could > retrieve the blobs as expected. > that the problem, jajaja lol, that's always been the problem in free software guys.. mysql+apache+php etc etc no development of scale uses mysql men.. the problem occurs with super-scalar database or that DBMS that follow the standard, not with mysql or sqlserver .. just the most "microsoft" men.. do u understant that? seems that do u not read complete previosly mails.. i'm working with mysql and postgresql/orcale.. From gambas.fr at ...626... Fri Jul 19 14:45:30 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 19 Jul 2013 14:45:30 +0200 Subject: [Gambas-user] Gambas blob behavior: Problems with retreiving a binary file stored in a database In-Reply-To: References: <51E81FEB.507@...1...> <51E8FC36.8050409@...1...> Message-ID: ???? Le 19 juil. 2013 14:37, "PICCORO McKAY Lenz" a ?crit : > On Fri, Jul 19, 2013 at 4:13 AM, Beno?t Minisini < > gambas at ...1...> wrote: > > > I tested with a mysql table created with Gambas classes having one blob > > field. I fill many records with the file provided by you, and I could > > retrieve the blobs as expected. > > > > that the problem, jajaja lol, that's always been the problem in free > software guys.. mysql+apache+php etc etc > > no development of scale uses mysql men.. > > the problem occurs with super-scalar database or that DBMS that follow the > standard, not with mysql or sqlserver .. just the most "microsoft" men.. do > u understant that? > > seems that do u not read complete previosly mails.. i'm working with mysql > and postgresql/orcale.. > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jul 19 15:07:08 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Fri, 19 Jul 2013 15:07:08 +0200 Subject: [Gambas-user] Gambas blob behavior: Problems with retreiving a binary file stored in a database In-Reply-To: References: <51E81FEB.507@...1...> <51E8FC36.8050409@...1...> Message-ID: <51E939FC.7020109@...1...> Le 19/07/2013 14:36, PICCORO McKAY Lenz a ?crit : > On Fri, Jul 19, 2013 at 4:13 AM, Beno?t Minisini > > wrote: > > I tested with a mysql table created with Gambas classes having one > blob field. I fill many records with the file provided by you, and I > could retrieve the blobs as expected. > > > that the problem, jajaja lol, that's always been the problem in free > software guys.. mysql+apache+php etc etc > > no development of scale uses mysql men.. > > the problem occurs with super-scalar database or that DBMS that follow > the standard, not with mysql or sqlserver .. just the most "microsoft" > men.. do u understant that? > > seems that do u not read complete previosly mails.. i'm working with > mysql and postgresql/orcale.. If you have written your mails in clear engligh, maybe I would have understood everything. At my job we currently use a cluster of mysql databases to store hundred of millions of records of GPS tracking (but no apache and no php). So I cannot say that "no development of scale uses mysql men" (whatever it really means...). But I admit, there is no blob in it... I have found a bug in the Gambas blob management routines (a memory corruption), I'm currently trying to fix it. Maybe this is the one you got. But apparently it occurs for all DBMS, not just mysql. -- Beno?t Minisini From jussi.lahtinen at ...626... Fri Jul 19 16:09:45 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 19 Jul 2013 17:09:45 +0300 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: <51E871F4.1010507@...1...> References: <51E81854.8040201@...1...> <1374169660.24336.YahooMailBasic@...3070...> <1374174177.12349.YahooMailNeo@...3065...> <51E871F4.1010507@...1...> Message-ID: > It works because the callback is written in C, it does not run the > Gambas interpreter. > Well obviously. Didn't really answer the question. I guess the answer is that shared libraries can be run in different thread, even if their callers can't. Jussi From gambas at ...1... Fri Jul 19 16:32:14 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 19 Jul 2013 16:32:14 +0200 Subject: [Gambas-user] A "Callback" function doesn't work. In-Reply-To: References: <51E81854.8040201@...1...> <1374169660.24336.YahooMailBasic@...3070...> <1374174177.12349.YahooMailNeo@...3065...> <51E871F4.1010507@...1...> Message-ID: <51E94DEE.1020602@...1...> Le 19/07/2013 16:09, Jussi Lahtinen a ?crit : >> It works because the callback is written in C, it does not run the >> Gambas interpreter. >> > > Well obviously. Didn't really answer the question. > > I guess the answer is that shared libraries can be run in different thread, > even if their callers can't. > > Jussi It does. The interpreter cannot be run *from* a different thread. A callback written in C can. Being in a shared library or not changes nothing there. -- Beno?t Minisini From eilert-sprachen at ...221... Fri Jul 19 17:43:32 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 19 Jul 2013 17:43:32 +0200 Subject: [Gambas-user] Converting a POST string Message-ID: <51E95EA4.2070607@...221...> Hi, just bounced into this: When doing a POST request on a web form, the string input by the user is encoded in UTF-8 but as %high-byte%lowbyte such as "%C3%BC" for "?". How do I reconvert these worms to UTF-8 strings? Tried conv(), but didn't succeed yet. Is there a quick way, or do I have to pick out all % and convert them one-by-one? Thanks for your help. Rolf From eilert-sprachen at ...221... Fri Jul 19 17:44:45 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 19 Jul 2013 17:44:45 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: <51E95EED.70100@...221...> Thanks for all the good tipps, will keep your advice in mind! Rolf Am 16.07.2013 01:06, schrieb Randall Morgan: > Yes, either passing your credentials , host and port info via the command > line or storing it in a settings file would be best. What I sent should NOT > be used as is!!! It has many issues I am sure. It was just a quick example > to get you started. > > > On Mon, Jul 15, 2013 at 3:57 PM, Sebastian Kulesz wrote: > >> You could use a cron tab to run the script Randall just sent. There is a >> POP3Client example you can open with the gambas IDE to know how it works. >> Just execute the app every x minutes and you are done! >> >> Remember not to hardcode your username and password. You will regret later >> >> >> On Mon, Jul 15, 2013 at 7:37 PM, Randall Morgan >> wrote: >> >>> Here's a really quick and dirty sample of using the gd.net.pop3 mail >> client >>> using the command line project type: >>> >>> ' Gambas module file >>> >>> Public Sub Main() >>> Dim hConn As New Pop3Client >>> Dim sMailIds As String[] >>> Dim sMailId As String >>> Dim Stats As Integer[] >>> Dim iCount As Integer >>> Dim iSize As Integer >>> Dim sMessage As String >>> >>> >>> 'Set mail server connection parameters >>> With hConn >>> .Host = '"" >>> .Port = 110 '>> ssl. > >>> .User = '"" >>> .Password = '"" 'May want to store in, and >>> retrieve this from an encrypted file >>> End With >>> >>> Try hConn.Open >>> >>> If Error Then >>> Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to >> log >>> this.... >>> Else >>> If hConn.Status = -16 Then >>> Print "Cannot Authenticate Mail Account." >>> Stop >>> Else If hConn.Status = 7 Then >>> Print "Connected to mail server...." >>> Print hConn.Welcome >>> Endif >>> Endif >>> >>> >>> Stats = hConn.Stat() >>> >>> Print "There are "; Stats[0]; " Messages in your inbox." >>> Print "You inbox contains "; Stats[1]; " bytes of data." >>> >>> ' Show all mail ids >>> sMailIds = hConn.List() >>> >>> For Each sMailId In sMailIds >>> Print sMailId >>> Next >>> >>> ' Get each mail and display >>> For Each sMailId In sMailIds >>> sMessage = hConn.Exec("RETR " & sMailId) >>> Print "Message: "; sMailId; "\n" >>> Print "----------------------------------------------------" >>> Print sMessage; "\n\n" >>> Next >>> >>> Print "Closing Connection." >>> hConn.Close >>> >>> End >>> >>> >>> >>> You may also find these links helpful: >>> >>> >>> >> http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html >>> >>> http://www.electrictoolbox.com/article/networking/pop3-commands/ >>> >>> >>> On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: >>> >>>> On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: >>>>> Thanks for your advice, Randall. >>>>> >>>>> Am 15.07.2013 17:16, schrieb Randall Morgan: >>>>>> Is your email pop3, IMAP, MAPI, or webmail? The way you approach >> this >>>>>> depends on the target system. >>>>> >>>>> It is pop3 and it is my own vserver for my firm's website. >>>>> >>>>>> >>>>>> IMHO pop3 would be the easiest. There you would only need to access >>>> your >>>>>> mail account to download the emails for processing. Gambas has PDF >>>>> >>>>> Yes, that would be the precise question. My idea was to use the >> contact >>>>> form plugin from the website, making another contact form which sends >>>>> the results to another email address (e. g. application at ...1107... instead >> of >>>>> info at ...1107...) and read the emails from that address. >>>>> >>>>> So it all boils down to: how can I read the emails - say once a >> minute >>> - >>>>> and place them somewhere where a script of mine - say Gambas - has >>>>> access and reads them. And how to read them. >>>>> >>>>> I thought of leaving everything on the remote server, but it might as >>>>> well be read from our local server in my firm and processed there. >> The >>>>> latter might be the better way, as it is done so for the ordinary >>>>> contact forms now (they are waiting for my email client to fetch them >>>>> from the remote server via pop3, so I can fetch them even now when >> I'm >>>>> in holidays, with my laptop). I'd just need a script to do with the >>>>> other ones in regular intervals. >>>>> >>>>>> generation capabilities so that is not an issue. Another way to >>> handle >>>> this >>>>>> would be to setup a GAMABS SMTP service and have the emails >> forwarded >>>> to >>>>>> that service. Then the app could be written to process any email >> that >>>>>> arrived in the inbox. >>>>> >>>>> Yes, I saw there's an smtp library for Gambas, but I thought it might >>> be >>>>> easier the other way round. >>>>> >>>>>> >>>>>> As for an easy way.... Well, easy is a qualitative term and so the >>>> ease of >>>>>> development would depend on the programmer's experience and >>> abilities. >>>> If >>>>>> you're using webmail and the front end is something like Squirrel >>> Mail, >>>>>> then you have a nice table arrangement that can be easily parsed >> with >>>>>> GAMBAS. But if your mail account is something like Yahoo or Google >> I >>>> think >>>>>> a web parsing framework such as those used with Java or Python >> would >>>> ease >>>>>> development. >>>>> >>>>> Neither nor, there's qmail on the server. That's it. >>>>> >>>>>> >>>>>> A lot of my data collection tasks involve writing code in different >>>>>> languages. >>>>> >>>>> I wouldn't mind calling some other script from the Gambas one or >>>> vice-versa. >>>>> >>>>> >>>>>> For example, One of my apps is a simple bash script that takes >>>>>> forms submitted as pdfs, and processes them using python and then >>>> stores >>>>>> the results in a MySQL DB which has some stored procedures for >> final >>>>>> processing. Then a cron script runs one every 5 minutes to get any >>> new >>>> rows >>>>>> from the DB and place them in a queue to be reviewed by staff. The >>>> staff >>>>>> app then calls a php script that connects to a asterisk system if >> the >>>> staff >>>>>> needs to contact the client, and dials the clients number. Sadly, >> the >>>> staff >>>>>> review portion was not written in Gambas but in C++/Qt. >>>>> >>>>> Sounds rather clever, but I hope my idea won't become so extensive >> :-) >>>>> >>>>>> >>>>>> Don't get bogged down into thinking that if you use GAMBAS for a >>>> portion of >>>>>> the app that you must use it for the whole app. You can create >>> powerful >>>>>> systems by combining the resources found other tools. Gambas and >> most >>>> Linux >>>>>> software is designed to allow this kind of inter-connect via pipes, >>>>>> sockets, and files. So pick the tools that make each part of the >>>> process >>>>>> easiest and you development will be simplified. >>>>> >>>>> Yes, that was the base of my idea. I started inventing a whole-in-one >>>>> app with Gambas: contact form, control, pdf, everything. Then I >> thought >>>>> there is a nice contact form plugin already, so why inventing the >>> wheel? >>>>> >>>>> Ok, let's get back to the point: reading an email (pop3 from the >> remote >>>>> server to the local one) and placing it somewhere to let a Gambas app >>>>> process it, how should I start? Where can I find the emails? Isn't >>> there >>>>> a mail command I can use from a bash script? After all, there are >>>>> scripts on every system that send mails to root. And where are these >>>>> mails stored then? When I know where, I can examine the files and >> find >>> a >>>>> way to process them in Gambas. >>>>> >>>> >>>> So we have two options, right? >>>> >>>> a) Run a Gambas CGI script on the webserver which receives the user >> input >>>> via HTTP (GET/POST) from the HTML form. >>>> b) Have a Gambas daemon on your local computer which checks regularly >> for >>>> new mails dropped by an external program. Or even better: Have a >>> Gambas >>>> program which is fed with incoming mail whenever it arrives. >>>> >>>> It seems that a) is not the topic here. So, for b) you need a mail >>> daemon. >>>> I >>>> personally use fetchmail for all my mail (IMAP). It also understands >>> POP3, >>>> according to the manpages. And the best thing is: it has the "-m" >> switch >>>> which lets you give it a program (Mail Delivery Agent) to which it will >>>> pipe >>>> its mail. The MDA shall sort/distribute mail correctly but you can >>>> equivalently well use it to call any program with every incoming mail >>> being >>>> piped to it. You can then examine the mail and do whatever you want. >>>> >>>> I use fetchmail for around 3 years now and the system didn't fail once >> - >>> or >>>> it was so unimportant that I didn't notice. The only issue you have is >> to >>>> install and configure fetchmail correctly. >>>> >>>> I just tested fetchmail's -m option with a self-written program and it >>>> works >>>> as expected. >>>> >>>> Regards, >>>> Tobi >>>> >>>> >>>> >>> >> ------------------------------------------------------------------------------ >>>> See everything from the browser to the database with AppDynamics >>>> Get end-to-end visibility with application monitoring from AppDynamics >>>> Isolate bottlenecks and diagnose root cause in seconds. >>>> Start your free trial of AppDynamics Pro today! >>>> >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at 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? >>> >>> >> ------------------------------------------------------------------------------ >>> See everything from the browser to the database with AppDynamics >>> Get end-to-end visibility with application monitoring from AppDynamics >>> Isolate bottlenecks and diagnose root cause in seconds. >>> Start your free trial of AppDynamics Pro today! >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > From eilert-sprachen at ...221... Fri Jul 19 17:45:36 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 19 Jul 2013 17:45:36 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: <51E95F20.2050407@...221...> I'm aware of that, thank you for the advice! Rolf Am 16.07.2013 00:57, schrieb Sebastian Kulesz: > You could use a cron tab to run the script Randall just sent. There is a > POP3Client example you can open with the gambas IDE to know how it works. > Just execute the app every x minutes and you are done! > > Remember not to hardcode your username and password. You will regret later > > > On Mon, Jul 15, 2013 at 7:37 PM, Randall Morgan wrote: > >> Here's a really quick and dirty sample of using the gd.net.pop3 mail client >> using the command line project type: >> >> ' Gambas module file >> >> Public Sub Main() >> Dim hConn As New Pop3Client >> Dim sMailIds As String[] >> Dim sMailId As String >> Dim Stats As Integer[] >> Dim iCount As Integer >> Dim iSize As Integer >> Dim sMessage As String >> >> >> 'Set mail server connection parameters >> With hConn >> .Host = '"" >> .Port = 110 '> ssl. > >> .User = '"" >> .Password = '"" 'May want to store in, and >> retrieve this from an encrypted file >> End With >> >> Try hConn.Open >> >> If Error Then >> Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to log >> this.... >> Else >> If hConn.Status = -16 Then >> Print "Cannot Authenticate Mail Account." >> Stop >> Else If hConn.Status = 7 Then >> Print "Connected to mail server...." >> Print hConn.Welcome >> Endif >> Endif >> >> >> Stats = hConn.Stat() >> >> Print "There are "; Stats[0]; " Messages in your inbox." >> Print "You inbox contains "; Stats[1]; " bytes of data." >> >> ' Show all mail ids >> sMailIds = hConn.List() >> >> For Each sMailId In sMailIds >> Print sMailId >> Next >> >> ' Get each mail and display >> For Each sMailId In sMailIds >> sMessage = hConn.Exec("RETR " & sMailId) >> Print "Message: "; sMailId; "\n" >> Print "----------------------------------------------------" >> Print sMessage; "\n\n" >> Next >> >> Print "Closing Connection." >> hConn.Close >> >> End >> >> >> >> You may also find these links helpful: >> >> >> http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html >> >> http://www.electrictoolbox.com/article/networking/pop3-commands/ >> >> >> On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: >> >>> On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: >>>> Thanks for your advice, Randall. >>>> >>>> Am 15.07.2013 17:16, schrieb Randall Morgan: >>>>> Is your email pop3, IMAP, MAPI, or webmail? The way you approach this >>>>> depends on the target system. >>>> >>>> It is pop3 and it is my own vserver for my firm's website. >>>> >>>>> >>>>> IMHO pop3 would be the easiest. There you would only need to access >>> your >>>>> mail account to download the emails for processing. Gambas has PDF >>>> >>>> Yes, that would be the precise question. My idea was to use the contact >>>> form plugin from the website, making another contact form which sends >>>> the results to another email address (e. g. application at ...1107... instead of >>>> info at ...1107...) and read the emails from that address. >>>> >>>> So it all boils down to: how can I read the emails - say once a minute >> - >>>> and place them somewhere where a script of mine - say Gambas - has >>>> access and reads them. And how to read them. >>>> >>>> I thought of leaving everything on the remote server, but it might as >>>> well be read from our local server in my firm and processed there. The >>>> latter might be the better way, as it is done so for the ordinary >>>> contact forms now (they are waiting for my email client to fetch them >>>> from the remote server via pop3, so I can fetch them even now when I'm >>>> in holidays, with my laptop). I'd just need a script to do with the >>>> other ones in regular intervals. >>>> >>>>> generation capabilities so that is not an issue. Another way to >> handle >>> this >>>>> would be to setup a GAMABS SMTP service and have the emails forwarded >>> to >>>>> that service. Then the app could be written to process any email that >>>>> arrived in the inbox. >>>> >>>> Yes, I saw there's an smtp library for Gambas, but I thought it might >> be >>>> easier the other way round. >>>> >>>>> >>>>> As for an easy way.... Well, easy is a qualitative term and so the >>> ease of >>>>> development would depend on the programmer's experience and >> abilities. >>> If >>>>> you're using webmail and the front end is something like Squirrel >> Mail, >>>>> then you have a nice table arrangement that can be easily parsed with >>>>> GAMBAS. But if your mail account is something like Yahoo or Google I >>> think >>>>> a web parsing framework such as those used with Java or Python would >>> ease >>>>> development. >>>> >>>> Neither nor, there's qmail on the server. That's it. >>>> >>>>> >>>>> A lot of my data collection tasks involve writing code in different >>>>> languages. >>>> >>>> I wouldn't mind calling some other script from the Gambas one or >>> vice-versa. >>>> >>>> >>>>> For example, One of my apps is a simple bash script that takes >>>>> forms submitted as pdfs, and processes them using python and then >>> stores >>>>> the results in a MySQL DB which has some stored procedures for final >>>>> processing. Then a cron script runs one every 5 minutes to get any >> new >>> rows >>>>> from the DB and place them in a queue to be reviewed by staff. The >>> staff >>>>> app then calls a php script that connects to a asterisk system if the >>> staff >>>>> needs to contact the client, and dials the clients number. Sadly, the >>> staff >>>>> review portion was not written in Gambas but in C++/Qt. >>>> >>>> Sounds rather clever, but I hope my idea won't become so extensive :-) >>>> >>>>> >>>>> Don't get bogged down into thinking that if you use GAMBAS for a >>> portion of >>>>> the app that you must use it for the whole app. You can create >> powerful >>>>> systems by combining the resources found other tools. Gambas and most >>> Linux >>>>> software is designed to allow this kind of inter-connect via pipes, >>>>> sockets, and files. So pick the tools that make each part of the >>> process >>>>> easiest and you development will be simplified. >>>> >>>> Yes, that was the base of my idea. I started inventing a whole-in-one >>>> app with Gambas: contact form, control, pdf, everything. Then I thought >>>> there is a nice contact form plugin already, so why inventing the >> wheel? >>>> >>>> Ok, let's get back to the point: reading an email (pop3 from the remote >>>> server to the local one) and placing it somewhere to let a Gambas app >>>> process it, how should I start? Where can I find the emails? Isn't >> there >>>> a mail command I can use from a bash script? After all, there are >>>> scripts on every system that send mails to root. And where are these >>>> mails stored then? When I know where, I can examine the files and find >> a >>>> way to process them in Gambas. >>>> >>> >>> So we have two options, right? >>> >>> a) Run a Gambas CGI script on the webserver which receives the user input >>> via HTTP (GET/POST) from the HTML form. >>> b) Have a Gambas daemon on your local computer which checks regularly for >>> new mails dropped by an external program. Or even better: Have a >> Gambas >>> program which is fed with incoming mail whenever it arrives. >>> >>> It seems that a) is not the topic here. So, for b) you need a mail >> daemon. >>> I >>> personally use fetchmail for all my mail (IMAP). It also understands >> POP3, >>> according to the manpages. And the best thing is: it has the "-m" switch >>> which lets you give it a program (Mail Delivery Agent) to which it will >>> pipe >>> its mail. The MDA shall sort/distribute mail correctly but you can >>> equivalently well use it to call any program with every incoming mail >> being >>> piped to it. You can then examine the mail and do whatever you want. >>> >>> I use fetchmail for around 3 years now and the system didn't fail once - >> or >>> it was so unimportant that I didn't notice. The only issue you have is to >>> install and configure fetchmail correctly. >>> >>> I just tested fetchmail's -m option with a self-written program and it >>> works >>> as expected. >>> >>> Regards, >>> Tobi >>> >>> >>> >> ------------------------------------------------------------------------------ >>> See everything from the browser to the database with AppDynamics >>> Get end-to-end visibility with application monitoring from AppDynamics >>> Isolate bottlenecks and diagnose root cause in seconds. >>> Start your free trial of AppDynamics Pro today! >>> >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at 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? >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Fri Jul 19 17:47:49 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 19 Jul 2013 17:47:49 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <20130715211222.GH516@...2774...> References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: <51E95FA5.8030209@...221...> Am 15.07.2013 23:12, schrieb Tobias Boege: > On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: >> Thanks for your advice, Randall. >> >> Am 15.07.2013 17:16, schrieb Randall Morgan: >>> Is your email pop3, IMAP, MAPI, or webmail? The way you approach this >>> depends on the target system. >> >> It is pop3 and it is my own vserver for my firm's website. >> >>> >>> IMHO pop3 would be the easiest. There you would only need to access your >>> mail account to download the emails for processing. Gambas has PDF >> >> Yes, that would be the precise question. My idea was to use the contact >> form plugin from the website, making another contact form which sends >> the results to another email address (e. g. application at ...1107... instead of >> info at ...1107...) and read the emails from that address. >> >> So it all boils down to: how can I read the emails - say once a minute - >> and place them somewhere where a script of mine - say Gambas - has >> access and reads them. And how to read them. >> >> I thought of leaving everything on the remote server, but it might as >> well be read from our local server in my firm and processed there. The >> latter might be the better way, as it is done so for the ordinary >> contact forms now (they are waiting for my email client to fetch them >> from the remote server via pop3, so I can fetch them even now when I'm >> in holidays, with my laptop). I'd just need a script to do with the >> other ones in regular intervals. >> >>> generation capabilities so that is not an issue. Another way to handle this >>> would be to setup a GAMABS SMTP service and have the emails forwarded to >>> that service. Then the app could be written to process any email that >>> arrived in the inbox. >> >> Yes, I saw there's an smtp library for Gambas, but I thought it might be >> easier the other way round. >> >>> >>> As for an easy way.... Well, easy is a qualitative term and so the ease of >>> development would depend on the programmer's experience and abilities. If >>> you're using webmail and the front end is something like Squirrel Mail, >>> then you have a nice table arrangement that can be easily parsed with >>> GAMBAS. But if your mail account is something like Yahoo or Google I think >>> a web parsing framework such as those used with Java or Python would ease >>> development. >> >> Neither nor, there's qmail on the server. That's it. >> >>> >>> A lot of my data collection tasks involve writing code in different >>> languages. >> >> I wouldn't mind calling some other script from the Gambas one or vice-versa. >> >> >>> For example, One of my apps is a simple bash script that takes >>> forms submitted as pdfs, and processes them using python and then stores >>> the results in a MySQL DB which has some stored procedures for final >>> processing. Then a cron script runs one every 5 minutes to get any new rows >>> from the DB and place them in a queue to be reviewed by staff. The staff >>> app then calls a php script that connects to a asterisk system if the staff >>> needs to contact the client, and dials the clients number. Sadly, the staff >>> review portion was not written in Gambas but in C++/Qt. >> >> Sounds rather clever, but I hope my idea won't become so extensive :-) >> >>> >>> Don't get bogged down into thinking that if you use GAMBAS for a portion of >>> the app that you must use it for the whole app. You can create powerful >>> systems by combining the resources found other tools. Gambas and most Linux >>> software is designed to allow this kind of inter-connect via pipes, >>> sockets, and files. So pick the tools that make each part of the process >>> easiest and you development will be simplified. >> >> Yes, that was the base of my idea. I started inventing a whole-in-one >> app with Gambas: contact form, control, pdf, everything. Then I thought >> there is a nice contact form plugin already, so why inventing the wheel? >> >> Ok, let's get back to the point: reading an email (pop3 from the remote >> server to the local one) and placing it somewhere to let a Gambas app >> process it, how should I start? Where can I find the emails? Isn't there >> a mail command I can use from a bash script? After all, there are >> scripts on every system that send mails to root. And where are these >> mails stored then? When I know where, I can examine the files and find a >> way to process them in Gambas. >> > > So we have two options, right? > > a) Run a Gambas CGI script on the webserver which receives the user input > via HTTP (GET/POST) from the HTML form. > b) Have a Gambas daemon on your local computer which checks regularly for > new mails dropped by an external program. Or even better: Have a Gambas > program which is fed with incoming mail whenever it arrives. > > It seems that a) is not the topic here. So, for b) you need a mail daemon. I > personally use fetchmail for all my mail (IMAP). It also understands POP3, > according to the manpages. And the best thing is: it has the "-m" switch > which lets you give it a program (Mail Delivery Agent) to which it will pipe > its mail. The MDA shall sort/distribute mail correctly but you can > equivalently well use it to call any program with every incoming mail being > piped to it. You can then examine the mail and do whatever you want. > > I use fetchmail for around 3 years now and the system didn't fail once - or > it was so unimportant that I didn't notice. The only issue you have is to > install and configure fetchmail correctly. > > I just tested fetchmail's -m option with a self-written program and it works > as expected. > > Regards, > Tobi > Thank you very much for your ideas. a) could be a topic, and will, when I proceed to the next step, but it could be avoided until then Thanks for the sendmail tipp, will have a look at it later. Rolf From gambas at ...1... Fri Jul 19 18:02:16 2013 From: gambas at ...1... (=?ISO-8859-15?Q?Beno=EEt_Minisini?=) Date: Fri, 19 Jul 2013 18:02:16 +0200 Subject: [Gambas-user] Converting a POST string In-Reply-To: <51E95EA4.2070607@...221...> References: <51E95EA4.2070607@...221...> Message-ID: <51E96308.3020905@...1...> Le 19/07/2013 17:43, Rolf-Werner Eilert a ?crit : > Hi, > > just bounced into this: When doing a POST request on a web form, the > string input by the user is encoded in UTF-8 but as %high-byte%lowbyte > such as "%C3%BC" for "?". > > How do I reconvert these worms to UTF-8 strings? Tried conv(), but > didn't succeed yet. Is there a quick way, or do I have to pick out all % > and convert them one-by-one? > > Thanks for your help. > > Rolf > One by one. Or fix your HTTP client! -- Beno?t Minisini From mckaygerhard at ...626... Fri Jul 19 18:12:57 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 19 Jul 2013 11:42:57 -0430 Subject: [Gambas-user] Gambas blob behavior: Problems with retreiving a binary file stored in a database (PICCORO McKAY Lenz) Message-ID: lets get some clear to this thins, it's difficult to explaint as i said before... > If you have written your mails in clear engligh, maybe I would have > understood everything. > not, do u not read wery well , if u save and retrieve the same file in one procedure, everythong its ok.. but try with ramdownly search after saving > > At my job we currently use a cluster of mysql databases to store hundred > of millions of records of GPS tracking (but no apache and no php). So I > cannot say that "no development of scale uses mysql men" (whatever it > really means...). But I admit, there is no blob in it... > of course.. > I have found a bug in the Gambas blob management routines (a memory > corruption), I'm currently trying to fix it. Maybe this is the one you > got. But apparently it occurs for all DBMS, not just mysql. > Not, its similar.. i'm sure not its that bug, that's why i'm not sure if that behavior i found was a bug or a rare not development yet support for blob fields.. > > -- > Beno?t Minisini > > Benoit, i'll send to u a proyect with a extra binary files, in a month aprox, i must test more.. due i use a libfprint implementation and fingerscaner.. but for now i have very busy with gambas interface to admin part of my system. From eilert-sprachen at ...221... Fri Jul 19 18:27:16 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 19 Jul 2013 18:27:16 +0200 Subject: [Gambas-user] Converting a POST string In-Reply-To: <51E96308.3020905@...1...> References: <51E95EA4.2070607@...221...> <51E96308.3020905@...1...> Message-ID: <51E968E4.40103@...221...> Am 19.07.2013 18:02, schrieb Beno?t Minisini: > Le 19/07/2013 17:43, Rolf-Werner Eilert a ?crit : >> Hi, >> >> just bounced into this: When doing a POST request on a web form, the >> string input by the user is encoded in UTF-8 but as %high-byte%lowbyte >> such as "%C3%BC" for "?". >> >> How do I reconvert these worms to UTF-8 strings? Tried conv(), but >> didn't succeed yet. Is there a quick way, or do I have to pick out all % >> and convert them one-by-one? >> >> Thanks for your help. >> >> Rolf >> > > One by one. Or fix your HTTP client! > Err - you mean the server? Apache configuration? From gambas at ...1... Fri Jul 19 18:49:04 2013 From: gambas at ...1... (=?ISO-8859-15?Q?Beno=EEt_Minisini?=) Date: Fri, 19 Jul 2013 18:49:04 +0200 Subject: [Gambas-user] Converting a POST string In-Reply-To: <51E968E4.40103@...221...> References: <51E95EA4.2070607@...221...> <51E96308.3020905@...1...> <51E968E4.40103@...221...> Message-ID: <51E96E00.7050503@...1...> Le 19/07/2013 18:27, Rolf-Werner Eilert a ?crit : > > > Am 19.07.2013 18:02, schrieb Beno?t Minisini: >> Le 19/07/2013 17:43, Rolf-Werner Eilert a ?crit : >>> Hi, >>> >>> just bounced into this: When doing a POST request on a web form, the >>> string input by the user is encoded in UTF-8 but as %high-byte%lowbyte >>> such as "%C3%BC" for "?". >>> >>> How do I reconvert these worms to UTF-8 strings? Tried conv(), but >>> didn't succeed yet. Is there a quick way, or do I have to pick out all % >>> and convert them one-by-one? >>> >>> Thanks for your help. >>> >>> Rolf >>> >> >> One by one. Or fix your HTTP client! >> > > Err - you mean the server? Apache configuration? > If bytes are swapped in the client request, then the client is buggy. UTF-8 is low byte first. -- Beno?t Minisini From eilert-sprachen at ...221... Fri Jul 19 19:10:03 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 19 Jul 2013 19:10:03 +0200 Subject: [Gambas-user] Converting a POST string In-Reply-To: <51E96E00.7050503@...1...> References: <51E95EA4.2070607@...221...> <51E96308.3020905@...1...> <51E968E4.40103@...221...> <51E96E00.7050503@...1...> Message-ID: <51E972EB.6050004@...221...> Am 19.07.2013 18:49, schrieb Beno?t Minisini: > Le 19/07/2013 18:27, Rolf-Werner Eilert a ?crit : >> >> >> Am 19.07.2013 18:02, schrieb Beno?t Minisini: >>> Le 19/07/2013 17:43, Rolf-Werner Eilert a ?crit : >>>> Hi, >>>> >>>> just bounced into this: When doing a POST request on a web form, the >>>> string input by the user is encoded in UTF-8 but as %high-byte%lowbyte >>>> such as "%C3%BC" for "?". >>>> >>>> How do I reconvert these worms to UTF-8 strings? Tried conv(), but >>>> didn't succeed yet. Is there a quick way, or do I have to pick out all % >>>> and convert them one-by-one? >>>> >>>> Thanks for your help. >>>> >>>> Rolf >>>> >>> >>> One by one. Or fix your HTTP client! >>> >> >> Err - you mean the server? Apache configuration? >> > > If bytes are swapped in the client request, then the client is buggy. > UTF-8 is low byte first. > Aah ok, we got us wrong here. It's the %something thing which isn't converted back into a Gambas UTF-8 string. It is not a problem about low or high byte first, that was a mistake I made when writing the mail. When I read the POST string in, I get for example %C3%BC for "?", so I have to convert these into UTF-8 characters for the string within Gambas to process them further. My question should have been: Is there a ready-made function like conv() that is able to receive a 7-bit string in the form of %C3%BC and will convert it into a string with an ?? And if conv() will do, which types of encoding will I have to use here? Regards Rolf From taboege at ...626... Fri Jul 19 19:27:35 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 19 Jul 2013 19:27:35 +0200 Subject: [Gambas-user] Converting a POST string In-Reply-To: <51E972EB.6050004@...221...> References: <51E95EA4.2070607@...221...> <51E96308.3020905@...1...> <51E968E4.40103@...221...> <51E96E00.7050503@...1...> <51E972EB.6050004@...221...> Message-ID: <20130719172735.GB524@...2774...> On Fri, 19 Jul 2013, Rolf-Werner Eilert wrote: > > > Am 19.07.2013 18:49, schrieb Beno?t Minisini: > > Le 19/07/2013 18:27, Rolf-Werner Eilert a ?crit : > >> > >> > >> Am 19.07.2013 18:02, schrieb Beno?t Minisini: > >>> Le 19/07/2013 17:43, Rolf-Werner Eilert a ?crit : > >>>> Hi, > >>>> > >>>> just bounced into this: When doing a POST request on a web form, the > >>>> string input by the user is encoded in UTF-8 but as %high-byte%lowbyte > >>>> such as "%C3%BC" for "?". > >>>> > >>>> How do I reconvert these worms to UTF-8 strings? Tried conv(), but > >>>> didn't succeed yet. Is there a quick way, or do I have to pick out all % > >>>> and convert them one-by-one? > >>>> > >>>> Thanks for your help. > >>>> > >>>> Rolf > >>>> > >>> > >>> One by one. Or fix your HTTP client! > >>> > >> > >> Err - you mean the server? Apache configuration? > >> > > > > If bytes are swapped in the client request, then the client is buggy. > > UTF-8 is low byte first. > > > > Aah ok, we got us wrong here. It's the %something thing which isn't > converted back into a Gambas UTF-8 string. It is not a problem about low > or high byte first, that was a mistake I made when writing the mail. > > When I read the POST string in, I get for example %C3%BC for "?", so I > have to convert these into UTF-8 characters for the string within Gambas > to process them further. > > My question should have been: Is there a ready-made function like conv() > that is able to receive a 7-bit string in the form of %C3%BC and will > convert it into a string with an ?? > > And if conv() will do, which types of encoding will I have to use here? > There is Url.Encode() and Url.Decode() in gb.web which can handle this form of escaping. It apparently works with your samples. Regards, Tobi From eilert-sprachen at ...221... Fri Jul 19 19:38:49 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 19 Jul 2013 19:38:49 +0200 Subject: [Gambas-user] Converting a POST string In-Reply-To: <20130719172735.GB524@...2774...> References: <51E95EA4.2070607@...221...> <51E96308.3020905@...1...> <51E968E4.40103@...221...> <51E96E00.7050503@...1...> <51E972EB.6050004@...221...> <20130719172735.GB524@...2774...> Message-ID: <51E979A9.3010106@...221...> Am 19.07.2013 19:27, schrieb Tobias Boege: > On Fri, 19 Jul 2013, Rolf-Werner Eilert wrote: >> >> >> Am 19.07.2013 18:49, schrieb Beno?t Minisini: >>> Le 19/07/2013 18:27, Rolf-Werner Eilert a ?crit : >>>> >>>> >>>> Am 19.07.2013 18:02, schrieb Beno?t Minisini: >>>>> Le 19/07/2013 17:43, Rolf-Werner Eilert a ?crit : >>>>>> Hi, >>>>>> >>>>>> just bounced into this: When doing a POST request on a web form, the >>>>>> string input by the user is encoded in UTF-8 but as %high-byte%lowbyte >>>>>> such as "%C3%BC" for "?". >>>>>> >>>>>> How do I reconvert these worms to UTF-8 strings? Tried conv(), but >>>>>> didn't succeed yet. Is there a quick way, or do I have to pick out all % >>>>>> and convert them one-by-one? >>>>>> >>>>>> Thanks for your help. >>>>>> >>>>>> Rolf >>>>>> >>>>> >>>>> One by one. Or fix your HTTP client! >>>>> >>>> >>>> Err - you mean the server? Apache configuration? >>>> >>> >>> If bytes are swapped in the client request, then the client is buggy. >>> UTF-8 is low byte first. >>> >> >> Aah ok, we got us wrong here. It's the %something thing which isn't >> converted back into a Gambas UTF-8 string. It is not a problem about low >> or high byte first, that was a mistake I made when writing the mail. >> >> When I read the POST string in, I get for example %C3%BC for "?", so I >> have to convert these into UTF-8 characters for the string within Gambas >> to process them further. >> >> My question should have been: Is there a ready-made function like conv() >> that is able to receive a 7-bit string in the form of %C3%BC and will >> convert it into a string with an ?? >> >> And if conv() will do, which types of encoding will I have to use here? >> > > There is Url.Encode() and Url.Decode() in gb.web which can handle this form > of escaping. It apparently works with your samples. > > Regards, > Tobi > Thanks a lot, Tobi, that was it! Completely ignored it... ;-) Rolf From eilert-sprachen at ...221... Fri Jul 19 20:32:33 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 19 Jul 2013 20:32:33 +0200 Subject: [Gambas-user] Printing without X library Message-ID: <51E98641.9050105@...221...> Just stumbled over this one: When I make a Gambas2 script for a webserver, it refuses to execute because I have to use gb.qt and gb.qt.ext, and it doesn't find the X server (cannot connect to X server) when started by Apache. Is there a workaround for this? Rolf From gambas at ...1... Fri Jul 19 20:47:12 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 19 Jul 2013 20:47:12 +0200 Subject: [Gambas-user] Printing without X library In-Reply-To: <51E98641.9050105@...221...> References: <51E98641.9050105@...221...> Message-ID: <51E989B0.30202@...1...> Le 19/07/2013 20:32, Rolf-Werner Eilert a ?crit : > Just stumbled over this one: When I make a Gambas2 script for a > webserver, it refuses to execute because I have to use gb.qt and > gb.qt.ext, and it doesn't find the X server (cannot connect to X server) > when started by Apache. > > Is there a workaround for this? > > Rolf > gb.cairo would allow you to generate a PS or PDF file that you would sent to a printer. Alas gb.cairo is not finished, it can only draw on an image at the moment, and it does not implement the Paint class interface (only the Cairo one, but they are very similar). -- Beno?t Minisini From gambas at ...1... Fri Jul 19 20:51:18 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 19 Jul 2013 20:51:18 +0200 Subject: [Gambas-user] Printing without X library In-Reply-To: <51E989B0.30202@...1...> References: <51E98641.9050105@...221...> <51E989B0.30202@...1...> Message-ID: <51E98AA6.9090902@...1...> Le 19/07/2013 20:47, Beno?t Minisini a ?crit : > Le 19/07/2013 20:32, Rolf-Werner Eilert a ?crit : >> Just stumbled over this one: When I make a Gambas2 script for a >> webserver, it refuses to execute because I have to use gb.qt and >> gb.qt.ext, and it doesn't find the X server (cannot connect to X server) >> when started by Apache. >> >> Is there a workaround for this? >> >> Rolf >> > > gb.cairo would allow you to generate a PS or PDF file that you would > sent to a printer. Alas gb.cairo is not finished, it can only draw on an > image at the moment, and it does not implement the Paint class interface > (only the Cairo one, but they are very similar). > Sorry, I told rubbish. gb.cairo *can* generate PS and PDF files. Once you get one, you can send it to CUPS (for example) with the 'lpr' command-line tool. See: http://www.gambasdoc.org/help/comp/gb.cairo/cairopdfsurface/_new?v3 -- Beno?t Minisini From eilert-sprachen at ...221... Fri Jul 19 20:57:35 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 19 Jul 2013 20:57:35 +0200 Subject: [Gambas-user] Printing without X library In-Reply-To: <51E98AA6.9090902@...1...> References: <51E98641.9050105@...221...> <51E989B0.30202@...1...> <51E98AA6.9090902@...1...> Message-ID: <51E98C1F.6070809@...221...> Am 19.07.2013 20:51, schrieb Beno?t Minisini: > Le 19/07/2013 20:47, Beno?t Minisini a ?crit : >> Le 19/07/2013 20:32, Rolf-Werner Eilert a ?crit : >>> Just stumbled over this one: When I make a Gambas2 script for a >>> webserver, it refuses to execute because I have to use gb.qt and >>> gb.qt.ext, and it doesn't find the X server (cannot connect to X server) >>> when started by Apache. >>> >>> Is there a workaround for this? >>> >>> Rolf >>> >> >> gb.cairo would allow you to generate a PS or PDF file that you would >> sent to a printer. Alas gb.cairo is not finished, it can only draw on an >> image at the moment, and it does not implement the Paint class interface >> (only the Cairo one, but they are very similar). >> > > Sorry, I told rubbish. gb.cairo *can* generate PS and PDF files. Once > you get one, you can send it to CUPS (for example) with the 'lpr' > command-line tool. > > See: > > http://www.gambasdoc.org/help/comp/gb.cairo/cairopdfsurface/_new?v3 > > Sounds interesting, but it's Gambas3, and there's only Gambas2 on my webserver. So I think I will have to keep to the solution with getting the data via email and make the pdf on my own full-blown server, then resend it to the customer. From gambas at ...1... Fri Jul 19 21:18:02 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 19 Jul 2013 21:18:02 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 Message-ID: <51E990EA.5000009@...1...> Hi, I have just uploaded the source package of Gambas 3.4.2 as a pre-release. It includes a lot of backported fixes from /trunk. Download it there: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.2.tar.bz2/download Here is the list of backported revisions: r5612, r5613, r5614, r5615, r5616, r5623, r5630, r5631, r5632, r5633, r5637, r5638, r5644, r5653, r5657, r5682, r5683, r5686, r5689, r5706, r5707, r5708, r5709, r5713, r5714, r5720, r5724, r5728, r5735, r5738, r5739, r5740. Please test it and report any problem, especially if you expected some important fixes (like the XML-RPC server ones) !! The official release will follow, as soon as I get enough positive feedback. Regards, -- Beno?t Minisini From nemh at ...2007... Fri Jul 19 23:24:34 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Fri, 19 Jul 2013 23:24:34 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <51E990EA.5000009@...1...> References: <51E990EA.5000009@...1...> Message-ID: <20130719232434.5e01b0b1@...3104...> I have successfully compiled local Debian packages. I installed them, and at first glance, everything looks fine. So I uploaded this update into the PPA, so people will be able to test the functional operation. Kendek > Hi, > > I have just uploaded the source package of Gambas 3.4.2 as a > pre-release. It includes a lot of backported fixes from /trunk. > > Download it there: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.2.tar.bz2/download > > Here is the list of backported revisions: > > r5612, r5613, r5614, r5615, r5616, r5623, r5630, r5631, r5632, r5633, > r5637, r5638, r5644, r5653, r5657, r5682, r5683, r5686, r5689, r5706, > r5707, r5708, r5709, r5713, r5714, r5720, r5724, r5728, r5735, r5738, > r5739, r5740. > > Please test it and report any problem, especially if you expected > some important fixes (like the XML-RPC server ones) !! > > The official release will follow, as soon as I get enough positive > feedback. > > Regards, > From gambas at ...1... Sat Jul 20 02:58:49 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 20 Jul 2013 02:58:49 +0200 Subject: [Gambas-user] Mouse.Inside() bug with collapsed Expander? In-Reply-To: <20130717122257.GB532@...2774...> References: <20130716123054.GF1173@...2774...> <20130717122257.GB532@...2774...> Message-ID: <51E9E0C9.60603@...1...> Le 17/07/2013 14:22, Tobias Boege a ?crit : > On Tue, 16 Jul 2013, Fabien Bodard wrote: >> I think Mouse.inside use the screen coords so even if the expended is >> collapsed, the dw2 don't move in reallity. So the only thing is that >> mouse.inside must test the visibility. >> > > I don't think so :-) If it used screen coordinates, Mouse.Inside() should > _not_ find that the mouse is inside of dwg2 when it is actually inside dwg1. > >> Then on other hand ... Why this user not use _enter and _leave events to >> get the current mouse zone ?. > > I don't know. IIRC, he is trying to detect when the mouse is hovering part > of a painting in the DrawingArea. Enter and Leave won't be any good then. > > Regards, > Tobi > Mouse.Inside() returns FALSE if the control is explicitely hidden. But it does not take into account its actual visibility, i.e. the clipping of its parent containers. To do as you expect, you must test Mouse.Inside() on the parent container, the grand-parent, and so on up to the top-level window. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jul 20 12:30:06 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 20 Jul 2013 12:30:06 +0200 Subject: [Gambas-user] Two problems painting richtext In-Reply-To: <20130714164609.GF554@...2774...> References: <20130714164609.GF554@...2774...> Message-ID: <51EA66AE.7050603@...1...> Le 14/07/2013 18:46, Tobias Boege a ?crit : > Hi, > > I want to paint richtext which is: > > a) fading in a RadialGradient (black towards transparency) and > b) centered in a rectangle. > > I can achieve a) when using Paint.RichText() followed by Paint.Fill(). But > with this code, the text is not centered (although I specified Align.Center > as a parameter to Paint.RichText()). This is a) without b). > > If I use Paint.DrawRichText(), the text is centered in the rectangle but the > RadialGradient brush does not take effect. This is b) without a). > > I hope this is a bug and I can do both at a time. :-) Project and screenshot > of the non-working result here are attached. > > Regards, > Tobi > Paint.RichText() has been fixed in revision #5746. Note that Paint.DrawRichText() does not take the brush into account in gb.qt4 (only its color). You have to use Paint.RichText(). But Paint.DrawRichText() is faster. At the moment, I have no way to workaround this limitation of the Qt API. Regards, -- Beno?t Minisini From taboege at ...626... Sat Jul 20 12:36:52 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 20 Jul 2013 12:36:52 +0200 Subject: [Gambas-user] Two problems painting richtext In-Reply-To: <51EA66AE.7050603@...1...> References: <20130714164609.GF554@...2774...> <51EA66AE.7050603@...1...> Message-ID: <20130720103652.GB473@...2774...> On Sat, 20 Jul 2013, Beno?t Minisini wrote: > Le 14/07/2013 18:46, Tobias Boege a ?crit : > > Hi, > > > > I want to paint richtext which is: > > > > a) fading in a RadialGradient (black towards transparency) and > > b) centered in a rectangle. > > > > I can achieve a) when using Paint.RichText() followed by Paint.Fill(). But > > with this code, the text is not centered (although I specified Align.Center > > as a parameter to Paint.RichText()). This is a) without b). > > > > If I use Paint.DrawRichText(), the text is centered in the rectangle but the > > RadialGradient brush does not take effect. This is b) without a). > > > > I hope this is a bug and I can do both at a time. :-) Project and screenshot > > of the non-working result here are attached. > > > > Regards, > > Tobi > > > > Paint.RichText() has been fixed in revision #5746. > > Note that Paint.DrawRichText() does not take the brush into account in > gb.qt4 (only its color). You have to use Paint.RichText(). But > Paint.DrawRichText() is faster. > > At the moment, I have no way to workaround this limitation of the Qt API. > Thanks. It's not a critical path so Paint.RichText() is OK. Regards, Tobi From gambas at ...2524... Sat Jul 20 16:43:02 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 20 Jul 2013 14:43:02 +0000 Subject: [Gambas-user] Issue 452 in gambas: PictureBox.picture images file filter is broken In-Reply-To: <0-6813199134517018827-4789410307025255595-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4789410307025255595-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4789410307025255595-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version-3.4.1 Version-3.4.0 Comment #1 on issue 452 by benoit.m... at ...626...: PictureBox.picture images file filter is broken http://code.google.com/p/gambas/issues/detail?id=452 This has been already fixed in r5630. It will be backported to Gambas 3.4.2. -- 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 introlinux at ...626... Sat Jul 20 20:12:10 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sat, 20 Jul 2013 20:12:10 +0200 Subject: [Gambas-user] Fmain transparent Message-ID: Hi, I'm doing some experiments to do a simple application for painting directly on the screen in order to use it in screencast to guide the audience's attention, but I can not find the trick. I use a main form with a drawing area. If I reduce opacity, drawing area reduces too. If I use mask and a transparent picture, drawing area is transparent too. How could I do for using Paint in a drawing area with a transparent background? Thanks a lot. From gambas at ...2524... Sun Jul 21 02:00:43 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 21 Jul 2013 00:00:43 +0000 Subject: [Gambas-user] Issue 447 in gambas: tab key hierarchy In-Reply-To: <1-6813199134517018827-11139320335715798953-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-11139320335715798953-gambas=googlecode.com@...2524...> <0-6813199134517018827-11139320335715798953-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-11139320335715798953-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #2 on issue 447 by benoit.m... at ...626...: tab key hierarchy http://code.google.com/p/gambas/issues/detail?id=447 Closing the issue 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 lists at ...2828... Sun Jul 21 04:15:06 2013 From: lists at ...2828... (CJ) Date: Sun, 21 Jul 2013 04:15:06 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <51E990EA.5000009@...1...> Message-ID: <000001ce85b8$207ad2c0$0f00a8c0@...2829...> Hi, > I have just uploaded the source package of Gambas 3.4.2 as a > pre-release. It includes a lot of backported fixes from /trunk. > > Download it there: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.2.tar.bz2/d ownload > >Here is the list of backported revisions: > >r5612, r5613, r5614, r5615, r5616, r5623, r5630, r5631, r5632, r5633, >r5637, r5638, r5644, r5653, r5657, r5682, r5683, r5686, r5689, r5706, >r5707, r5708, r5709, r5713, r5714, r5720, r5724, r5728, r5735, r5738, >r5739, r5740. > >Please test it and report any problem, especially if you expected some >important fixes (like the XML-RPC server ones) !! > >The official release will follow, as soon as I get enough positive feedback. Thank you! Everything except the gb.net.pop3 component compiled for me on Xubunt 11.04. Most likely some library I'm missing on my system but can't figure it out, attached are the logfile. [System] OperatingSystem=Linux Kernel=2.6.38-8-generic Architecture=x86 Distribution=Ubuntu 11.04 Desktop=XFCE Theme=QGtk Language=en_US.UTF-8 Memory=496M [Libraries] GStreamer=libgstreamer-0.10.so.0.28.0 GTK+=libgtk-x11-2.0.so.0.2400.4 Poppler=libpoppler.so.13.0.0 Qt4=libQtCore.so.4.7.2 SDL=libSDL-1.2.so.0.11.3 Currently compiling 3.4.2 on Raspberry Pi and will let you know how it goes, will also try to install it on a BeagleBone. /CJ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Gambas3 3.4.2 Xubuntu Logfile.txt URL: From gambas at ...2524... Sun Jul 21 06:18:59 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 21 Jul 2013 04:18:59 +0000 Subject: [Gambas-user] Issue 456 in gambas: Unbase64() Append Extra Byte "\0" to the Result Message-ID: <0-6813199134517018827-5090672906464376701-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.4.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any Arch-X86-64 New issue 456 by s... at ...3142...: Unbase64() Append Extra Byte "\0" to the Result http://code.google.com/p/gambas/issues/detail?id=456 1) Describe the problem. Given a file, say "a.jpg", we encoded it using base64 to a string "str", and then decode that string "str" again, the decoded string is not identical to original content of "a.jpg" Upon inspection, UnBase64 added an extra Byte "\0" to the end of the string 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.4.1 Revision: Operating system: Linux Distribution: Netrunner (KUbuntu based) Architecture: x86_64 GUI component: QT4 Desktop used: KDE 3) Provide a little project that reproduces the bug or the crash. see attached project 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. 1. read a binary file (>1k) into a string 2. encode it using base64 and then decode it back 3. the decoded string is not identical to the original 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: base64-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 nemh at ...2007... Sun Jul 21 10:13:21 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Sun, 21 Jul 2013 10:13:21 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <000001ce85b8$207ad2c0$0f00a8c0@...2829...> References: <51E990EA.5000009@...1...> <000001ce85b8$207ad2c0$0f00a8c0@...2829...> Message-ID: <20130721101321.481b15e9@...3104...> Yeah, just read the log: Unable to met pkg-config requirement: gmime-2.6 Unable to met pkg-config requirement: gmime-2.4 gb.mime is disabled ... THESE COMPONENTS ARE DISABLED: - gb.gsl - gb.jit - gb.media - gb.mime ... Compiling gb.net.pop3... gbc: error: Component not found: gb.mime ... Unable to compile gb.net.pop3 So, install the build dependencies, and configure correctly. > Hi, > > > I have just uploaded the source package of Gambas 3.4.2 as a > > pre-release. It includes a lot of backported fixes from /trunk. > > > > Download it there: > > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.2.tar.bz2/d > ownload > > > >Here is the list of backported revisions: > > > >r5612, r5613, r5614, r5615, r5616, r5623, r5630, r5631, r5632, r5633, > >r5637, r5638, r5644, r5653, r5657, r5682, r5683, r5686, r5689, r5706, > >r5707, r5708, r5709, r5713, r5714, r5720, r5724, r5728, r5735, r5738, > >r5739, r5740. > > > >Please test it and report any problem, especially if you expected > >some important fixes (like the XML-RPC server ones) !! > > > >The official release will follow, as soon as I get enough positive > feedback. > > Thank you! > > Everything except the gb.net.pop3 component compiled for me on Xubunt > 11.04. Most likely some library I'm missing on my system but can't > figure it out, attached > are the logfile. > > [System] > OperatingSystem=Linux > Kernel=2.6.38-8-generic > Architecture=x86 > Distribution=Ubuntu 11.04 > Desktop=XFCE > Theme=QGtk > Language=en_US.UTF-8 > Memory=496M > > [Libraries] > GStreamer=libgstreamer-0.10.so.0.28.0 > GTK+=libgtk-x11-2.0.so.0.2400.4 > Poppler=libpoppler.so.13.0.0 > Qt4=libQtCore.so.4.7.2 > SDL=libSDL-1.2.so.0.11.3 > > Currently compiling 3.4.2 on Raspberry Pi and will let you know how > it goes, will also try to install it on a BeagleBone. > > /CJ > From gambas at ...2524... Sun Jul 21 12:00:09 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 21 Jul 2013 10:00:09 +0000 Subject: [Gambas-user] Issue 456 in gambas: Unbase64() Append Extra Byte "\0" to the Result In-Reply-To: <0-6813199134517018827-5090672906464376701-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5090672906464376701-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5090672906464376701-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #1 on issue 456 by benoit.m... at ...626...: Unbase64() Append Extra Byte "\0" to the Result http://code.google.com/p/gambas/issues/detail?id=456 (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... Sun Jul 21 12:16:52 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 21 Jul 2013 10:16:52 +0000 Subject: [Gambas-user] Issue 456 in gambas: Unbase64() Append Extra Byte "\0" to the Result In-Reply-To: <1-6813199134517018827-5090672906464376701-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-5090672906464376701-gambas=googlecode.com@...2524...> <0-6813199134517018827-5090672906464376701-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-5090672906464376701-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 456 by benoit.m... at ...626...: Unbase64() Append Extra Byte "\0" to the Result http://code.google.com/p/gambas/issues/detail?id=456 Fixed in revision #5752. -- 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 lists at ...2828... Sun Jul 21 12:12:15 2013 From: lists at ...2828... (CJ) Date: Sun, 21 Jul 2013 12:12:15 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <20130721101321.481b15e9@...3104...> Message-ID: <000001ce85fb$af2ab420$0f00a8c0@...2829...> > Yeah, just read the log: > > Unable to met pkg-config requirement: gmime-2.6 > Unable to met pkg-config requirement: gmime-2.4 Thanks, missed that part! Will try to install libgmime-2.x-dev and recompile! /CJ From subscriptions at ...1822... Sun Jul 21 12:25:19 2013 From: subscriptions at ...1822... (Horst Herb) Date: Sun, 21 Jul 2013 20:25:19 +1000 Subject: [Gambas-user] gambas newbie question re custom events In-Reply-To: <20130719075606.GA524@...2774...> References: <20130719075606.GA524@...2774...> Message-ID: Thanks all for your replies. Especially Tobias Boege's reply helped me to solve my problem, but I also learned a lot from Bruce's Observer class in his not-at-all silly example. Regards, Horst On Fri, Jul 19, 2013 at 5:56 PM, Tobias Boege wrote: > On Fri, 19 Jul 2013, Horst Herb wrote: > > I would be most grateful if somebody could point me to a relevant section > > of documentation or provide me with a minimal example for my following > > problem: > > > > I have a data model (non-GUI) that wants to emit a custom event (eg > > "DataChanged"). Let's say for simplicity that the model is a simple > string, > > eg "MyString" and when modified, it emits DataChanged(MyString.contents) > > > > I have a GUI element (eg TextBox1) that has to change it's display in > > response to the DataChanged event. > > > > How do I bind the custom event to the GUI element's observer? > > > > The GUI element's observer is normally the Form it resides in. You have to > create an object of a MyString class in the code belonging to the same Form > and give this object an event name so that it can raise events. > > Of course, the MyString class needs to declare a DataChanged event and > raise > it where it's needed. > > It is then a matter of catching the EventName_DataChanged event from the > MyString object in the Form's code and do whatever you want (e.g. updating > a > TextBox). > > I attached an example where you can write to one TextBox which will change > the value of an object (MyString). This object will raise the DataChanged > event then and the Form will catch that event and update a second TextBox. > > You'll have the both TextBoxes in sync through the MyString object in > practice. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Insanity in individuals is something rare - but in groups, parties, nations and epochs, it is the rule. -- Friedrich Nietzsche From lists at ...2828... Sun Jul 21 14:17:32 2013 From: lists at ...2828... (CJ) Date: Sun, 21 Jul 2013 14:17:32 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <20130719232434.5e01b0b1@...3104...> Message-ID: <000001ce860c$4b82dcc0$0f00a8c0@...2829...> Hi Kendek, > I have successfully compiled local Debian packages. I installed them, > and at first glance, everything looks fine. > So I uploaded this update into the PPA, so people will be able to test > the functional operation. Just wanted to say thanks for your efforts! I'm still on Natty Narwhal so I can't use it this time. /CJ From nemh at ...2007... Sun Jul 21 14:45:10 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Sun, 21 Jul 2013 14:45:10 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <000001ce860c$4b82dcc0$0f00a8c0@...2829...> References: <20130719232434.5e01b0b1@...3104...> <000001ce860c$4b82dcc0$0f00a8c0@...2829...> Message-ID: <20130721144510.0d9bb03b@...3104...> Ubuntu 10.10, 11.04 and 11.10 releases are not supported anymore. If I try to upload source to PPA, then rejected them. I'm sorry, but need to upgrade your system. :-( Kendek > Hi Kendek, > > > I have successfully compiled local Debian packages. I installed > > them, and at first glance, everything looks fine. > > So I uploaded this update into the PPA, so people will be able to > > test the functional operation. > > Just wanted to say thanks for your efforts! I'm still on Natty Narwhal > so I can't use it this time. > > /CJ > From vuott at ...325... Sun Jul 21 20:03:27 2013 From: vuott at ...325... (Ru Vuott) Date: Sun, 21 Jul 2013 19:03:27 +0100 (BST) Subject: [Gambas-user] Rev. 5753: gb.openal ...disabled ! Message-ID: <1374429807.81462.YahooMailNeo@...3064...> Hello, I updated my Gambas 3 with rev. #5753, and at end of ~ $ ./configure -C? I obtained this notice: || || THESE COMPONENTS ARE DISABLED: || - gb.openal || What I miss?? What I have to do? Thanksss Regards vuott From nemh at ...2007... Sun Jul 21 20:44:27 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Sun, 21 Jul 2013 20:44:27 +0200 Subject: [Gambas-user] Rev. 5753: gb.openal ...disabled ! In-Reply-To: <1374429807.81462.YahooMailNeo@...3064...> References: <1374429807.81462.YahooMailNeo@...3064...> Message-ID: <20130721204427.5ab95f7a@...3104...> [GB.OPENAL] "New component for the OpenAL 3D audio library. Work in progress..." I can only guess, but not the libopenal-dev package is missing? Might help the full build log... > Hello, > > I updated my Gambas 3 with rev. #5753, and at end of ~ $ ./configure > -C? I obtained this notice: > > || > || THESE COMPONENTS ARE DISABLED: > || - gb.openal > || > > > What I miss?? > What I have to do? > > Thanksss > > Regards > > > vuott From jussi.lahtinen at ...626... Sun Jul 21 20:58:35 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 21 Jul 2013 21:58:35 +0300 Subject: [Gambas-user] Rev. 5753: gb.openal ...disabled ! In-Reply-To: <1374429807.81462.YahooMailNeo@...3064...> References: <1374429807.81462.YahooMailNeo@...3064...> Message-ID: If you don't need openal component, then I would guess you don't need to do anything. Jussi On Sun, Jul 21, 2013 at 9:03 PM, Ru Vuott wrote: > Hello, > > I updated my Gambas 3 with rev. #5753, and at end of ~ $ ./configure -C I > obtained this notice: > > || > || THESE COMPONENTS ARE DISABLED: > || - gb.openal > || > > > What I miss? > What I have to do? > > Thanksss > > Regards > > > vuott > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lists at ...2828... Sun Jul 21 21:52:15 2013 From: lists at ...2828... (CJ) Date: Sun, 21 Jul 2013 21:52:15 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <51E990EA.5000009@...1...> Message-ID: <000001ce864b$d2ed4f80$0f00a8c0@...2829...> Hi, > I have just uploaded the source package of Gambas 3.4.2 as a > pre-release. It includes a lot of backported fixes from /trunk. > > Download it there: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.2.tar.bz2/d ownload > >Here is the list of backported revisions: > >r5612, r5613, r5614, r5615, r5616, r5623, r5630, r5631, r5632, r5633, >r5637, r5638, r5644, r5653, r5657, r5682, r5683, r5686, r5689, r5706, >r5707, r5708, r5709, r5713, r5714, r5720, r5724, r5728, r5735, r5738, >r5739, r5740. > >Please test it and report any problem, especially if you expected some >important fixes (like the XML-RPC server ones) !! > >The official release will follow, as soon as I get enough positive feedback. Just an update... After adding the missing MIME library Gambas3 3.4.2 compiled OK on Xubunt 11.04 including the POP3 component, also compiled OK on Raspberry Pi running Debian Wheezy. Finally catching up to a more recent version than 3.3.4 ;) Thanks again and kudos to everyone involved! /CJ From gambas at ...1... Sun Jul 21 23:07:43 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 21 Jul 2013 23:07:43 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <51E990EA.5000009@...1...> References: <51E990EA.5000009@...1...> Message-ID: <51EC4D9F.1000401@...1...> Le 19/07/2013 21:18, Beno?t Minisini a ?crit : > Hi, > > I have just uploaded the source package of Gambas 3.4.2 as a > pre-release. It includes a lot of backported fixes from /trunk. > > Download it there: > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.2.tar.bz2/download > > Here is the list of backported revisions: > > r5612, r5613, r5614, r5615, r5616, r5623, r5630, r5631, r5632, r5633, > r5637, r5638, r5644, r5653, r5657, r5682, r5683, r5686, r5689, r5706, > r5707, r5708, r5709, r5713, r5714, r5720, r5724, r5728, r5735, r5738, > r5739, r5740. > > Please test it and report any problem, especially if you expected some > important fixes (like the XML-RPC server ones) !! > > The official release will follow, as soon as I get enough positive feedback. > > Regards, > Hi, A new version of the Gambas 3.4.2 source package has been uploaded. With fixes from revisions r5746, r5749, r5751, r5752. Please report any problem or success again! Thanks. -- Beno?t Minisini From nemh at ...2007... Mon Jul 22 09:25:48 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Mon, 22 Jul 2013 09:25:48 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <51EC4D9F.1000401@...1...> References: <51E990EA.5000009@...1...> <51EC4D9F.1000401@...1...> Message-ID: <20130722092548.114ed361@...3118...> I have successfully upgraded the packages in the PPA (Ubuntu 10.04, 12.04, 12.10, 13.04 and 13.10). https://launchpad.net/~nemh/+archive/gambas3 Please test it, and report back. :-) Kendek > Le 19/07/2013 21:18, Beno?t Minisini a ?crit : > > Hi, > > > > I have just uploaded the source package of Gambas 3.4.2 as a > > pre-release. It includes a lot of backported fixes from /trunk. > > > > Download it there: > > > > http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.2.tar.bz2/download > > > > Here is the list of backported revisions: > > > > r5612, r5613, r5614, r5615, r5616, r5623, r5630, r5631, r5632, > > r5633, r5637, r5638, r5644, r5653, r5657, r5682, r5683, r5686, > > r5689, r5706, r5707, r5708, r5709, r5713, r5714, r5720, r5724, > > r5728, r5735, r5738, r5739, r5740. > > > > Please test it and report any problem, especially if you expected > > some important fixes (like the XML-RPC server ones) !! > > > > The official release will follow, as soon as I get enough positive > > feedback. > > > > Regards, > > > > Hi, > > A new version of the Gambas 3.4.2 source package has been uploaded. > With fixes from revisions r5746, r5749, r5751, r5752. > > Please report any problem or success again! > > Thanks. > From vuott at ...325... Mon Jul 22 10:25:26 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 22 Jul 2013 09:25:26 +0100 (BST) Subject: [Gambas-user] gb.openal resources... In-Reply-To: <20130721204427.5ab95f7a@...3104...> References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> Message-ID: <1374481526.1225.YahooMailNeo@...3066...> >[GB.OPENAL] >"New component for the OpenAL 3D audio library. Work in progress..." Hello, I'ld like to know how we can use in a project its Classes, functions and properties. Regards vuott From mckaygerhard at ...626... Mon Jul 22 16:47:04 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 22 Jul 2013 10:17:04 -0430 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 Message-ID: From: Kende Kriszti?n > winbuntu 10.10, 11.04 and 11.10 releases are not supported anymore. If > I try to upload source to PPA, then rejected them. I'm sorry, but need > to upgrade your system. :-( > this means that debian squeeze are not yet supported? that's not funny... qt4 still compiles in squeeze and php 6 can be ported, but gambas 3.4.2 not? please provide that/what package must be present for porting and compile gambas 3.4.2 in debian squeeze! i'll port thems if necesary From nemh at ...2007... Mon Jul 22 18:31:18 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Mon, 22 Jul 2013 18:31:18 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: References: Message-ID: <20130722183118.59231dde@...3104...> (winbuntu? He-he, but make no mistake, I did not write that!) I do not support Debian, but just because I do not know where to upload the packages. For example, an FTP server that I need (I can not pay for it). The best would be a PPA-like system, but it does not exist for Debian. Kendek > > winbuntu 10.10, 11.04 and 11.10 releases are not supported anymore. > > If I try to upload source to PPA, then rejected them. I'm sorry, > > but need to upgrade your system. :-( > > > > this means that debian squeeze are not yet supported? that's not > funny... qt4 still compiles in squeeze and php 6 can be ported, but > gambas 3.4.2 not? > > please provide that/what package must be present for porting and > compile gambas 3.4.2 in debian squeeze! i'll port thems if necesary From mckaygerhard at ...626... Mon Jul 22 18:55:16 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 22 Jul 2013 12:25:16 -0430 Subject: [Gambas-user] Gambas-user Digest, Vol 86, Issue 35 In-Reply-To: References: Message-ID: From: Kende Kriszti?n > (winbuntu? He-he, but make no mistake, I did not write that!) > dont worry i write for u ;-) > > I do not support Debian, but just because I do not know where to > upload the packages. i upload packages for debiasn lenny, squeeze and soon for sheeze, currently i upload packages for 3.4.0 in venenux.net repositories > The best would be a PPA-like system, but it does not exist > for Debian. > if support for wuinbuntu 10.X releases are still supported (or at least 11.0X) i cant track the changes and backported all necesary into venenux repositories and this may give more usage of gambas to many more users... > > Kendek > From nemh at ...2007... Mon Jul 22 19:17:22 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Mon, 22 Jul 2013 19:17:22 +0200 Subject: [Gambas-user] Gambas-user Digest, Vol 86, Issue 35 In-Reply-To: References: Message-ID: <20130722191722.335b9b3b@...3104...> > i upload packages for debiasn lenny, squeeze and soon for sheeze, > currently i upload packages for 3.4.0 in venenux.net repositories Aha, so you have a self repository where you can upload the packages. > if support for ubuntu 10.X releases are still supported (or at > least 11.0X) i cant track the changes and backported all necesary > into venenux repositories I support the Ubuntu 10.04, and I will support it for a while. But I prefer the higher version of releases, since they do not need to disable the incompatible Gambas components. > and this may give more usage of gambas to many more users... Yeah, I agree. :-) From kevinfishburne at ...1887... Mon Jul 22 19:27:16 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 22 Jul 2013 13:27:16 -0400 Subject: [Gambas-user] gb.openal resources... In-Reply-To: <1374481526.1225.YahooMailNeo@...3066...> References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> <1374481526.1225.YahooMailNeo@...3066...> Message-ID: <51ED6B74.9020806@...1887...> On 07/22/2013 04:25 AM, Ru Vuott wrote: >> [GB.OPENAL] >> "New component for the OpenAL 3D audio library. Work in progress..." > Hello, > > I'ld like to know how we can use in a project its Classes, functions and properties. > > Regards > vuott Just updated GAMBAS from the daily PPA and see the component hasn't yet been enabled. Once it's ready for testing someone mention it on the list. I'll start testing it and create a simple example project so others can quickly learn to use it (unless I can't figure out how to use it, of course). I also found this (C tutorial) which explains some basics: http://ffainelli.github.io/openal-example/ There are some examples in the source tree as well: http://repo.or.cz/w/openal-soft.git/tree/HEAD:/examples Since OpenAL Soft is a fork of the now proprietary OpenAL by Creative Labs, I have some question as to whether or not they are still compatible syntactically. There is extensive OpenAL documentation, but not so much for OpenAL Soft, so hopefully their syntax is still the same. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From nemh at ...2007... Mon Jul 22 19:46:50 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Mon, 22 Jul 2013 19:46:50 +0200 Subject: [Gambas-user] gb.openal resources... In-Reply-To: <51ED6B74.9020806@...1887...> References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> <1374481526.1225.YahooMailNeo@...3066...> <51ED6B74.9020806@...1887...> Message-ID: <20130722194650.7326334b@...3104...> > Just updated GAMBAS from the daily PPA and see the component hasn't > yet been enabled. Yeah, same problem: || || Unable to met pkg-config requirement: openal || gb.openal is disabled || so missing the libopenal-dev package. And of course need to write the Debian package. Sebastian will solve this little problem. From sebikul at ...626... Mon Jul 22 19:55:16 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Mon, 22 Jul 2013 14:55:16 -0300 Subject: [Gambas-user] gb.openal resources... In-Reply-To: <20130722194650.7326334b@...3104...> References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> <1374481526.1225.YahooMailNeo@...3066...> <51ED6B74.9020806@...1887...> <20130722194650.7326334b@...3104...> Message-ID: I just pushed an update to the PPA. I added the new gb.openal component and enabled 64bit packages of gb.openssl that where disabled by mistake. New builds will start to appear within a couple of hours, the launchpad buildfarm is working with a reduced number of machines so just be patient. Please report any problems you encounter! On Mon, Jul 22, 2013 at 2:46 PM, Kende Kriszti?n wrote: > > Just updated GAMBAS from the daily PPA and see the component hasn't > > yet been enabled. > > Yeah, same problem: > > || > || Unable to met pkg-config requirement: openal > || gb.openal is disabled > || > > so missing the libopenal-dev package. And of course need to write the > Debian package. Sebastian will solve this little problem. > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jul 22 20:10:47 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 22 Jul 2013 20:10:47 +0200 Subject: [Gambas-user] Rev. 5753: gb.openal ...disabled ! In-Reply-To: <20130721204427.5ab95f7a@...3104...> References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> Message-ID: <51ED75A7.1090004@...1...> Le 21/07/2013 20:44, Kende Kriszti?n a ?crit : > [GB.OPENAL] > "New component for the OpenAL 3D audio library. Work in > progress..." > > I can only guess, but not the libopenal-dev package is missing? Might > help the full build log... > > For information, I'm currently adding support for the alure utility library, so you will need the libalure-dev package soon... -- Beno?t Minisini From nemh at ...2007... Mon Jul 22 20:13:38 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Mon, 22 Jul 2013 20:13:38 +0200 Subject: [Gambas-user] gb.openal resources... In-Reply-To: References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> <1374481526.1225.YahooMailNeo@...3066...> <51ED6B74.9020806@...1887...> <20130722194650.7326334b@...3104...> Message-ID: <20130722201338.4674f80f@...3104...> Yes, and I would recommend that you use the LLVM 3.2 for gb.jit component on Raring and Saucy. Fedora use LLVM 3.3 with patch! * Tue May 28 2013 Adam Jackson 3.4.1-4 - Rebuild for final llvm 3.3 soname * Wed May 08 2013 Adam Jackson 3.4.1-3 - Fix build against llvm 3.3 > I just pushed an update to the PPA. I added the new gb.openal > component and enabled 64bit packages of gb.openssl that where > disabled by mistake. New builds will start to appear within a couple > of hours, the launchpad buildfarm is working with a reduced number of > machines so just be patient. > > Please report any problems you encounter! > From sebikul at ...626... Mon Jul 22 20:34:55 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Mon, 22 Jul 2013 15:34:55 -0300 Subject: [Gambas-user] gb.openal resources... In-Reply-To: <20130722201338.4674f80f@...3104...> References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> <1374481526.1225.YahooMailNeo@...3066...> <51ED6B74.9020806@...1887...> <20130722194650.7326334b@...3104...> <20130722201338.4674f80f@...3104...> Message-ID: Good point. Saucy and Raring now use llvm 3.2 for gb.jit. I also added the libalure development package for a smooth transition so there are no failed builds when it is implemented, thanks to Beno?t for the heads-up. On Mon, Jul 22, 2013 at 3:13 PM, Kende Kriszti?n wrote: > Yes, and I would recommend that you use the LLVM 3.2 for gb.jit > component on Raring and Saucy. Fedora use LLVM 3.3 with patch! > > * Tue May 28 2013 Adam Jackson 3.4.1-4 > - Rebuild for final llvm 3.3 soname > * Wed May 08 2013 Adam Jackson 3.4.1-3 > - Fix build against llvm 3.3 > > > I just pushed an update to the PPA. I added the new gb.openal > > component and enabled 64bit packages of gb.openssl that where > > disabled by mistake. New builds will start to appear within a couple > > of hours, the launchpad buildfarm is working with a reduced number of > > machines so just be patient. > > > > Please report any problems you encounter! > > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Mon Jul 22 23:58:29 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 22 Jul 2013 23:58:29 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: <51EDAB05.5030800@...221...> Just wanted to try, but I don't find gb.net.pop3 - where is it? Is it something quite new? My version here is 3.3.4. I tried to activate the gb.net, gb.net.curl and gb.net.smtp components, but it still doesn't know about Pop3Client. What am I doing wrong? Rolf Am 16.07.2013 00:37, schrieb Randall Morgan: > Here's a really quick and dirty sample of using the gd.net.pop3 mail client > using the command line project type: > > ' Gambas module file > > Public Sub Main() > Dim hConn As New Pop3Client > Dim sMailIds As String[] > Dim sMailId As String > Dim Stats As Integer[] > Dim iCount As Integer > Dim iSize As Integer > Dim sMessage As String > > > 'Set mail server connection parameters > With hConn > .Host = '"" > .Port = 110 ' ssl. > > .User = '"" > .Password = '"" 'May want to store in, and > retrieve this from an encrypted file > End With > > Try hConn.Open > > If Error Then > Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to log > this.... > Else > If hConn.Status = -16 Then > Print "Cannot Authenticate Mail Account." > Stop > Else If hConn.Status = 7 Then > Print "Connected to mail server...." > Print hConn.Welcome > Endif > Endif > > > Stats = hConn.Stat() > > Print "There are "; Stats[0]; " Messages in your inbox." > Print "You inbox contains "; Stats[1]; " bytes of data." > > ' Show all mail ids > sMailIds = hConn.List() > > For Each sMailId In sMailIds > Print sMailId > Next > > ' Get each mail and display > For Each sMailId In sMailIds > sMessage = hConn.Exec("RETR " & sMailId) > Print "Message: "; sMailId; "\n" > Print "----------------------------------------------------" > Print sMessage; "\n\n" > Next > > Print "Closing Connection." > hConn.Close > > End > > > > You may also find these links helpful: > > http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html > > http://www.electrictoolbox.com/article/networking/pop3-commands/ > > > On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: > >> On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: >>> Thanks for your advice, Randall. >>> >>> Am 15.07.2013 17:16, schrieb Randall Morgan: >>>> Is your email pop3, IMAP, MAPI, or webmail? The way you approach this >>>> depends on the target system. >>> >>> It is pop3 and it is my own vserver for my firm's website. >>> >>>> >>>> IMHO pop3 would be the easiest. There you would only need to access >> your >>>> mail account to download the emails for processing. Gambas has PDF >>> >>> Yes, that would be the precise question. My idea was to use the contact >>> form plugin from the website, making another contact form which sends >>> the results to another email address (e. g. application at ...1107... instead of >>> info at ...1107...) and read the emails from that address. >>> >>> So it all boils down to: how can I read the emails - say once a minute - >>> and place them somewhere where a script of mine - say Gambas - has >>> access and reads them. And how to read them. >>> >>> I thought of leaving everything on the remote server, but it might as >>> well be read from our local server in my firm and processed there. The >>> latter might be the better way, as it is done so for the ordinary >>> contact forms now (they are waiting for my email client to fetch them >>> from the remote server via pop3, so I can fetch them even now when I'm >>> in holidays, with my laptop). I'd just need a script to do with the >>> other ones in regular intervals. >>> >>>> generation capabilities so that is not an issue. Another way to handle >> this >>>> would be to setup a GAMABS SMTP service and have the emails forwarded >> to >>>> that service. Then the app could be written to process any email that >>>> arrived in the inbox. >>> >>> Yes, I saw there's an smtp library for Gambas, but I thought it might be >>> easier the other way round. >>> >>>> >>>> As for an easy way.... Well, easy is a qualitative term and so the >> ease of >>>> development would depend on the programmer's experience and abilities. >> If >>>> you're using webmail and the front end is something like Squirrel Mail, >>>> then you have a nice table arrangement that can be easily parsed with >>>> GAMBAS. But if your mail account is something like Yahoo or Google I >> think >>>> a web parsing framework such as those used with Java or Python would >> ease >>>> development. >>> >>> Neither nor, there's qmail on the server. That's it. >>> >>>> >>>> A lot of my data collection tasks involve writing code in different >>>> languages. >>> >>> I wouldn't mind calling some other script from the Gambas one or >> vice-versa. >>> >>> >>>> For example, One of my apps is a simple bash script that takes >>>> forms submitted as pdfs, and processes them using python and then >> stores >>>> the results in a MySQL DB which has some stored procedures for final >>>> processing. Then a cron script runs one every 5 minutes to get any new >> rows >>>> from the DB and place them in a queue to be reviewed by staff. The >> staff >>>> app then calls a php script that connects to a asterisk system if the >> staff >>>> needs to contact the client, and dials the clients number. Sadly, the >> staff >>>> review portion was not written in Gambas but in C++/Qt. >>> >>> Sounds rather clever, but I hope my idea won't become so extensive :-) >>> >>>> >>>> Don't get bogged down into thinking that if you use GAMBAS for a >> portion of >>>> the app that you must use it for the whole app. You can create powerful >>>> systems by combining the resources found other tools. Gambas and most >> Linux >>>> software is designed to allow this kind of inter-connect via pipes, >>>> sockets, and files. So pick the tools that make each part of the >> process >>>> easiest and you development will be simplified. >>> >>> Yes, that was the base of my idea. I started inventing a whole-in-one >>> app with Gambas: contact form, control, pdf, everything. Then I thought >>> there is a nice contact form plugin already, so why inventing the wheel? >>> >>> Ok, let's get back to the point: reading an email (pop3 from the remote >>> server to the local one) and placing it somewhere to let a Gambas app >>> process it, how should I start? Where can I find the emails? Isn't there >>> a mail command I can use from a bash script? After all, there are >>> scripts on every system that send mails to root. And where are these >>> mails stored then? When I know where, I can examine the files and find a >>> way to process them in Gambas. >>> >> >> So we have two options, right? >> >> a) Run a Gambas CGI script on the webserver which receives the user input >> via HTTP (GET/POST) from the HTML form. >> b) Have a Gambas daemon on your local computer which checks regularly for >> new mails dropped by an external program. Or even better: Have a Gambas >> program which is fed with incoming mail whenever it arrives. >> >> It seems that a) is not the topic here. So, for b) you need a mail daemon. >> I >> personally use fetchmail for all my mail (IMAP). It also understands POP3, >> according to the manpages. And the best thing is: it has the "-m" switch >> which lets you give it a program (Mail Delivery Agent) to which it will >> pipe >> its mail. The MDA shall sort/distribute mail correctly but you can >> equivalently well use it to call any program with every incoming mail being >> piped to it. You can then examine the mail and do whatever you want. >> >> I use fetchmail for around 3 years now and the system didn't fail once - or >> it was so unimportant that I didn't notice. The only issue you have is to >> install and configure fetchmail correctly. >> >> I just tested fetchmail's -m option with a self-written program and it >> works >> as expected. >> >> Regards, >> Tobi >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > From vuott at ...325... Tue Jul 23 00:10:08 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 22 Jul 2013 23:10:08 +0100 (BST) Subject: [Gambas-user] Rev. 5753: gb.openal ...disabled ! In-Reply-To: <51ED75A7.1090004@...1...> Message-ID: <1374531008.32569.YahooMailBasic@...3063...> > For information, I'm currently adding support for the alure utility > library, so you will need the libalure-dev package soon... > > -- > Beno?t Minisini Thank you for information. regards vuott From mckaygerhard at ...626... Tue Jul 23 00:22:36 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 22 Jul 2013 17:52:36 -0430 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 Message-ID: From: Kende Kriszti?n > Subject: Re: [Gambas-user] Gambas-user Digest, Vol 86, Issue 35 > To: gambas-user at lists.sourceforge.net > Message-ID: <20130722191722.335b9b3b at ...3104...> > Content-Type: text/plain; charset=US-ASCII > > Aha, so you have a self repository where you can upload the packages. > well almost... not completly > I support the Ubuntu 10.04, and I will support it for a while. > ok.. but... > But I prefer the higher version of releases, since they do not need to > disable the incompatible Gambas components. > please, when disabling this components, please, document it in rules file prefferible and why reasons u disabling.. and what i'll need backported to enable it. currently, lenny has almost all components (-1) enabled but i cannot test yet if all are working.. are very usefully that kin of actions to track your changes and made modifications accordly > > From gambas at ...1... Tue Jul 23 00:37:27 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 23 Jul 2013 00:37:27 +0200 Subject: [Gambas-user] A little use case of gb.openal Message-ID: <51EDB427.6020006@...1...> This example is directly ported from the "alureplay" C source code. Use it with revision #5759. Don't pay attention to the inner music. And as I am the boss, I allow my highness to post messages bigger than 512 Ko on the mailing-list. :-) -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: test-openal-0.0.2.tar.gz Type: application/gzip Size: 914048 bytes Desc: not available URL: From gambas at ...1... Tue Jul 23 00:49:45 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 23 Jul 2013 00:49:45 +0200 Subject: [Gambas-user] A little use case of gb.openal In-Reply-To: <51EDB427.6020006@...1...> References: <51EDB427.6020006@...1...> Message-ID: <51EDB709.4030309@...1...> Le 23/07/2013 00:37, Beno?t Minisini a ?crit : > This example is directly ported from the "alureplay" C source code. > Use it with revision #5759. > > Don't pay attention to the inner music. > > And as I am the boss, I allow my highness to post messages bigger than > 512 Ko on the mailing-list. :-) > Here is the documentation of the alure library: http://kcat.strangesoft.net/alure-docs/files/alure-cpp.html The Gambas interface is as most as possible the same as the library. The differences are: - Alure.GetVersion() returns a string, not two integer numbers. - No output arguments into pointer. So, to get the buffers automatically associated with a new stream, I added a new function Alure.GetStreamBuffers(). - No callbacks. Instead, the Alure.Update() function returns an array of the sources started with Alure.PlaySource() or Alure.PlaySourceStream() that have just stopped playing, or NULL. -- Beno?t Minisini From gambas at ...1... Tue Jul 23 01:14:38 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 23 Jul 2013 01:14:38 +0200 Subject: [Gambas-user] Another use case of gb.openal Message-ID: <51EDBCDE.2040502@...1...> This is the same example, but now it uses Alure streams. I.e, instead of loading the entire sound in memory and then playing it, it just loads a few chunks and feed the source as needed. This is what must be done if you want to play a background music, and not a little sound. Use it with revision #5760. -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: test-openal-0.0.6.tar.gz Type: application/gzip Size: 914097 bytes Desc: not available URL: From vuott at ...325... Tue Jul 23 02:15:56 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 23 Jul 2013 01:15:56 +0100 (BST) Subject: [Gambas-user] R: Another use case of gb.openal In-Reply-To: <51EDBCDE.2040502@...1...> Message-ID: <1374538556.55209.YahooMailBasic@...3065...> Hello Beno?t, I tried your last example with your mp3 file and others: the sound quality seems very good. ...but you knows I'm Midi maniac ;-) so I wanted to try a Midi file. In console I received those notices: fluidsynth: warning: No preset found on channel 0 [bank=0 prog=56] fluidsynth: warning: No preset found on channel 1 [bank=0 prog=61] fluidsynth: warning: No preset found on channel 2 [bank=0 prog=32] fluidsynth: warning: No preset found on channel 3 [bank=0 prog=65] fluidsynth: warning: No preset found on channel 4 [bank=0 prog=66] fluidsynth: warning: No preset found on channel 5 [bank=0 prog=66] fluidsynth: warning: No preset found on channel 6 [bank=0 prog=67] fluidsynth: warning: No preset found on channel 7 [bank=0 prog=71] fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0] So I run FluidSynth before your test-openal, but I otained same warnings. But, what I will say is that despite this, however, NO "code" errors were raised ! ...And this would leave me thinking that - maybe - it can also be read Midi files... Beno?t, do you think that at the end of the setup of the Openal component we'll be able to handle even the Midi files? Regards vuott -------------------------------------------- Mar 23/7/13, Beno?t Minisini ha scritto: Oggetto: [Gambas-user] Another use case of gb.openal A: "mailing list for gambas users" Data: Marted? 23 luglio 2013, 01:14 This is the same example, but now it uses Alure streams. I.e, instead of loading the entire sound in memory and then playing it, it just loads a few chunks and feed the source as needed. This is what must be done if you want to play a background music, and not a little sound. Use it with revision #5760. -- Beno?t Minisini -----Segue allegato----- ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk -----Segue allegato----- _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From kevinfishburne at ...1887... Tue Jul 23 02:28:59 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 22 Jul 2013 20:28:59 -0400 Subject: [Gambas-user] A little use case of gb.openal In-Reply-To: <51EDB427.6020006@...1...> References: <51EDB427.6020006@...1...> Message-ID: <51EDCE4B.2020707@...1887...> On 07/22/2013 06:37 PM, Beno?t Minisini wrote: > This example is directly ported from the "alureplay" C source code. > Use it with revision #5759. > > Don't pay attention to the inner music. > > And as I am the boss, I allow my highness to post messages bigger than > 512 Ko on the mailing-list. :-) > LOL. Nice one. Many thanks to the people on this list smarter than I who helped add the openal component. I'm so excited I have butterflies. Hell yeah. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From vuott at ...325... Tue Jul 23 02:31:52 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 23 Jul 2013 01:31:52 +0100 (BST) Subject: [Gambas-user] gb.openal and Midi In-Reply-To: <1374538556.55209.YahooMailBasic@...3065...> Message-ID: <1374539512.60574.YahooMailBasic@...3065...> > Beno?t, do you think that at the end of the setup of the > Openal component we'll be able to handle even the Midi files? > > Regards > vuott Uhmmm... I've had a look around the web, and I can answer myself: OpenAL does not support the Midi. Regards vuott From gambas at ...1... Tue Jul 23 02:58:45 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 23 Jul 2013 02:58:45 +0200 Subject: [Gambas-user] gb.openal and Midi In-Reply-To: <1374539512.60574.YahooMailBasic@...3065...> References: <1374539512.60574.YahooMailBasic@...3065...> Message-ID: <51EDD545.6090909@...1...> Le 23/07/2013 02:31, Ru Vuott a ?crit : >> Beno?t, do you think that at the end of the setup of the >> Openal component we'll be able to handle even the Midi files? >> >> Regards >> vuott > > Uhmmm... I've had a look around the web, and I can answer myself: OpenAL does not support the Midi. > > Regards > vuott > According to the sources and the libalure documentation, libalure has a FluidSynth backend. That should mean it can load a midi file and use FluidSynth to transform it into a sound wave. I can't say more at the moment. -- Beno?t Minisini From rmorgan62 at ...626... Tue Jul 23 03:16:42 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 22 Jul 2013 18:16:42 -0700 Subject: [Gambas-user] Receiving an email In-Reply-To: <51EDAB05.5030800@...221...> References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> <51EDAB05.5030800@...221...> Message-ID: Open your project in Gambas and got to the project menu. Select 'components' and then scroll through the list to locate gd.net.pop3. Check the box. Then close. On Mon, Jul 22, 2013 at 2:58 PM, Rolf-Werner Eilert < eilert-sprachen at ...221...> wrote: > Just wanted to try, but I don't find gb.net.pop3 - where is it? Is it > something quite new? My version here is 3.3.4. > > I tried to activate the gb.net, gb.net.curl and gb.net.smtp components, > but it still doesn't know about Pop3Client. What am I doing wrong? > > Rolf > > > Am 16.07.2013 00:37, schrieb Randall Morgan: > > Here's a really quick and dirty sample of using the gd.net.pop3 mail > client > > using the command line project type: > > > > ' Gambas module file > > > > Public Sub Main() > > Dim hConn As New Pop3Client > > Dim sMailIds As String[] > > Dim sMailId As String > > Dim Stats As Integer[] > > Dim iCount As Integer > > Dim iSize As Integer > > Dim sMessage As String > > > > > > 'Set mail server connection parameters > > With hConn > > .Host = '"" > > .Port = 110 ' for > > ssl. > > > .User = '"" > > .Password = '"" 'May want to store in, > and > > retrieve this from an encrypted file > > End With > > > > Try hConn.Open > > > > If Error Then > > Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to > log > > this.... > > Else > > If hConn.Status = -16 Then > > Print "Cannot Authenticate Mail Account." > > Stop > > Else If hConn.Status = 7 Then > > Print "Connected to mail server...." > > Print hConn.Welcome > > Endif > > Endif > > > > > > Stats = hConn.Stat() > > > > Print "There are "; Stats[0]; " Messages in your inbox." > > Print "You inbox contains "; Stats[1]; " bytes of data." > > > > ' Show all mail ids > > sMailIds = hConn.List() > > > > For Each sMailId In sMailIds > > Print sMailId > > Next > > > > ' Get each mail and display > > For Each sMailId In sMailIds > > sMessage = hConn.Exec("RETR " & sMailId) > > Print "Message: "; sMailId; "\n" > > Print "----------------------------------------------------" > > Print sMessage; "\n\n" > > Next > > > > Print "Closing Connection." > > hConn.Close > > > > End > > > > > > > > You may also find these links helpful: > > > > > http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html > > > > http://www.electrictoolbox.com/article/networking/pop3-commands/ > > > > > > On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: > > > >> On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: > >>> Thanks for your advice, Randall. > >>> > >>> Am 15.07.2013 17:16, schrieb Randall Morgan: > >>>> Is your email pop3, IMAP, MAPI, or webmail? The way you approach this > >>>> depends on the target system. > >>> > >>> It is pop3 and it is my own vserver for my firm's website. > >>> > >>>> > >>>> IMHO pop3 would be the easiest. There you would only need to access > >> your > >>>> mail account to download the emails for processing. Gambas has PDF > >>> > >>> Yes, that would be the precise question. My idea was to use the contact > >>> form plugin from the website, making another contact form which sends > >>> the results to another email address (e. g. application at ...1107... instead of > >>> info at ...1107...) and read the emails from that address. > >>> > >>> So it all boils down to: how can I read the emails - say once a minute > - > >>> and place them somewhere where a script of mine - say Gambas - has > >>> access and reads them. And how to read them. > >>> > >>> I thought of leaving everything on the remote server, but it might as > >>> well be read from our local server in my firm and processed there. The > >>> latter might be the better way, as it is done so for the ordinary > >>> contact forms now (they are waiting for my email client to fetch them > >>> from the remote server via pop3, so I can fetch them even now when I'm > >>> in holidays, with my laptop). I'd just need a script to do with the > >>> other ones in regular intervals. > >>> > >>>> generation capabilities so that is not an issue. Another way to handle > >> this > >>>> would be to setup a GAMABS SMTP service and have the emails forwarded > >> to > >>>> that service. Then the app could be written to process any email that > >>>> arrived in the inbox. > >>> > >>> Yes, I saw there's an smtp library for Gambas, but I thought it might > be > >>> easier the other way round. > >>> > >>>> > >>>> As for an easy way.... Well, easy is a qualitative term and so the > >> ease of > >>>> development would depend on the programmer's experience and abilities. > >> If > >>>> you're using webmail and the front end is something like Squirrel > Mail, > >>>> then you have a nice table arrangement that can be easily parsed with > >>>> GAMBAS. But if your mail account is something like Yahoo or Google I > >> think > >>>> a web parsing framework such as those used with Java or Python would > >> ease > >>>> development. > >>> > >>> Neither nor, there's qmail on the server. That's it. > >>> > >>>> > >>>> A lot of my data collection tasks involve writing code in different > >>>> languages. > >>> > >>> I wouldn't mind calling some other script from the Gambas one or > >> vice-versa. > >>> > >>> > >>>> For example, One of my apps is a simple bash script that takes > >>>> forms submitted as pdfs, and processes them using python and then > >> stores > >>>> the results in a MySQL DB which has some stored procedures for final > >>>> processing. Then a cron script runs one every 5 minutes to get any new > >> rows > >>>> from the DB and place them in a queue to be reviewed by staff. The > >> staff > >>>> app then calls a php script that connects to a asterisk system if the > >> staff > >>>> needs to contact the client, and dials the clients number. Sadly, the > >> staff > >>>> review portion was not written in Gambas but in C++/Qt. > >>> > >>> Sounds rather clever, but I hope my idea won't become so extensive :-) > >>> > >>>> > >>>> Don't get bogged down into thinking that if you use GAMBAS for a > >> portion of > >>>> the app that you must use it for the whole app. You can create > powerful > >>>> systems by combining the resources found other tools. Gambas and most > >> Linux > >>>> software is designed to allow this kind of inter-connect via pipes, > >>>> sockets, and files. So pick the tools that make each part of the > >> process > >>>> easiest and you development will be simplified. > >>> > >>> Yes, that was the base of my idea. I started inventing a whole-in-one > >>> app with Gambas: contact form, control, pdf, everything. Then I thought > >>> there is a nice contact form plugin already, so why inventing the > wheel? > >>> > >>> Ok, let's get back to the point: reading an email (pop3 from the remote > >>> server to the local one) and placing it somewhere to let a Gambas app > >>> process it, how should I start? Where can I find the emails? Isn't > there > >>> a mail command I can use from a bash script? After all, there are > >>> scripts on every system that send mails to root. And where are these > >>> mails stored then? When I know where, I can examine the files and find > a > >>> way to process them in Gambas. > >>> > >> > >> So we have two options, right? > >> > >> a) Run a Gambas CGI script on the webserver which receives the user > input > >> via HTTP (GET/POST) from the HTML form. > >> b) Have a Gambas daemon on your local computer which checks regularly > for > >> new mails dropped by an external program. Or even better: Have a > Gambas > >> program which is fed with incoming mail whenever it arrives. > >> > >> It seems that a) is not the topic here. So, for b) you need a mail > daemon. > >> I > >> personally use fetchmail for all my mail (IMAP). It also understands > POP3, > >> according to the manpages. And the best thing is: it has the "-m" switch > >> which lets you give it a program (Mail Delivery Agent) to which it will > >> pipe > >> its mail. The MDA shall sort/distribute mail correctly but you can > >> equivalently well use it to call any program with every incoming mail > being > >> piped to it. You can then examine the mail and do whatever you want. > >> > >> I use fetchmail for around 3 years now and the system didn't fail once > - or > >> it was so unimportant that I didn't notice. The only issue you have is > to > >> install and configure fetchmail correctly. > >> > >> I just tested fetchmail's -m option with a self-written program and it > >> works > >> as expected. > >> > >> Regards, > >> Tobi > >> > >> > >> > ------------------------------------------------------------------------------ > >> See everything from the browser to the database with AppDynamics > >> Get end-to-end visibility with application monitoring from AppDynamics > >> Isolate bottlenecks and diagnose root cause in seconds. > >> Start your free trial of AppDynamics Pro today! > >> > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? From sebikul at ...626... Tue Jul 23 04:30:52 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Mon, 22 Jul 2013 23:30:52 -0300 Subject: [Gambas-user] gb.openal resources... In-Reply-To: References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> <1374481526.1225.YahooMailNeo@...3066...> <51ED6B74.9020806@...1887...> <20130722194650.7326334b@...3104...> <20130722201338.4674f80f@...3104...> Message-ID: I'm getting build errors with openal 1.13 (1.14 builds fine). Here is a log: https://launchpadlibrarian.net/145629777/buildlog_ubuntu-precise-i386.gambas3_3.4.99-1%2Bsvn4605-build28~precise1_FAILEDTOBUILD.txt.gz Error is: c_alc.c:457:2: error: 'ALC_EXT_CAPTURE' undeclared here (not in a function) On Mon, Jul 22, 2013 at 3:34 PM, Sebastian Kulesz wrote: > Good point. Saucy and Raring now use llvm 3.2 for gb.jit. I also added the libalure > development package for a smooth transition so there are no failed builds > when it is implemented, thanks to Beno?t for the heads-up. > > > On Mon, Jul 22, 2013 at 3:13 PM, Kende Kriszti?n wrote: > >> Yes, and I would recommend that you use the LLVM 3.2 for gb.jit >> component on Raring and Saucy. Fedora use LLVM 3.3 with patch! >> >> * Tue May 28 2013 Adam Jackson 3.4.1-4 >> - Rebuild for final llvm 3.3 soname >> * Wed May 08 2013 Adam Jackson 3.4.1-3 >> - Fix build against llvm 3.3 >> >> > I just pushed an update to the PPA. I added the new gb.openal >> > component and enabled 64bit packages of gb.openssl that where >> > disabled by mistake. New builds will start to appear within a couple >> > of hours, the launchpad buildfarm is working with a reduced number of >> > machines so just be patient. >> > >> > Please report any problems you encounter! >> > >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From kevinfishburne at ...1887... Tue Jul 23 04:49:31 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 22 Jul 2013 22:49:31 -0400 Subject: [Gambas-user] components automatically loading based on usage Message-ID: <51EDEF3B.2040604@...1887...> I just noticed that referencing a boolean variable "Match" now automatically loads the pcre component and tries to use it as a function (then obviously fails). This seems a dangerous precedent, as most GAMBAS users probably don't use most components and therefore shouldn't be constrained by their reserved keywords. Having any component automatically enable itself for any reason is also troubling, as it exposes the application to any vulnerabilities the component may possess without the knowledge of the developer. For the time being I'm just renaming my variable, but I was surprised to see this. Thoughts anyone? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From nemh at ...2007... Tue Jul 23 08:20:25 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Tue, 23 Jul 2013 08:20:25 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: References: Message-ID: <20130723082025.63e82bf9@...3118...> > please, when disabling this components, please, document it in rules > file prefferible and why reasons u disabling.. and what i'll need > backported to enable it. > currently, lenny has almost all components (-1) enabled but i cannot > test yet if all are working.. > are very usefully that kin of actions to track your changes and made > modifications accordly Ok, but Debian Lenny? Anyone using it yet? The security support has long since ended. http://lists.debian.org/debian-announce/2012/msg00001.html From gambas at ...1... Tue Jul 23 10:21:16 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 23 Jul 2013 10:21:16 +0200 Subject: [Gambas-user] components automatically loading based on usage In-Reply-To: <51EDEF3B.2040604@...1887...> References: <51EDEF3B.2040604@...1887...> Message-ID: <51EE3CFC.1000603@...1...> Le 23/07/2013 04:49, Kevin Fishburne a ?crit : > I just noticed that referencing a boolean variable "Match" now > automatically loads the pcre component and tries to use it as a function > (then obviously fails). This seems a dangerous precedent, as most GAMBAS > users probably don't use most components and therefore shouldn't be > constrained by their reserved keywords. Having any component > automatically enable itself for any reason is also troubling, as it > exposes the application to any vulnerabilities the component may possess > without the knowledge of the developer. > > For the time being I'm just renaming my variable, but I was surprised to > see this. Thoughts anyone? > How do you "reference your boolean variable" that the compiler thinks it is the "Match" operator? -- Beno?t Minisini From gambas at ...1... Tue Jul 23 10:30:54 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 23 Jul 2013 10:30:54 +0200 Subject: [Gambas-user] gb.openal resources... In-Reply-To: References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> <1374481526.1225.YahooMailNeo@...3066...> <51ED6B74.9020806@...1887...> <20130722194650.7326334b@...3104...> <20130722201338.4674f80f@...3104...> Message-ID: <51EE3F3E.3000507@...1...> Le 23/07/2013 04:30, Sebastian Kulesz a ?crit : > I'm getting build errors with openal 1.13 (1.14 builds fine). Here is a > log: > https://launchpadlibrarian.net/145629777/buildlog_ubuntu-precise-i386.gambas3_3.4.99-1%2Bsvn4605-build28~precise1_FAILEDTOBUILD.txt.gz > > Error is: > > c_alc.c:457:2: error: 'ALC_EXT_CAPTURE' undeclared here (not in a function) > Please try revision #5763, and report other missings symbols in openal-soft 1.13. -- Beno?t Minisini From eilert-sprachen at ...221... Tue Jul 23 10:55:16 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 23 Jul 2013 10:55:16 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: <51EE44F4.2050107@...221...> Just wanted to try, but I don't find gb.net.pop3 - where is it? Is it something quite new? My version here is 3.3.4. I tried to activate the gb.net, gb.net.curl and gb.net.smtp components, but it still doesn't know about Pop3Client. What am I doing wrong? Rolf Am 16.07.2013 00:37, schrieb Randall Morgan: > Here's a really quick and dirty sample of using the gd.net.pop3 mail client > using the command line project type: > > ' Gambas module file > > Public Sub Main() > Dim hConn As New Pop3Client > Dim sMailIds As String[] > Dim sMailId As String > Dim Stats As Integer[] > Dim iCount As Integer > Dim iSize As Integer > Dim sMessage As String > > > 'Set mail server connection parameters > With hConn > .Host = '"" > .Port = 110 ' ssl. > > .User = '"" > .Password = '"" 'May want to store in, and > retrieve this from an encrypted file > End With > > Try hConn.Open > > If Error Then > Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to log > this.... > Else > If hConn.Status = -16 Then > Print "Cannot Authenticate Mail Account." > Stop > Else If hConn.Status = 7 Then > Print "Connected to mail server...." > Print hConn.Welcome > Endif > Endif > > > Stats = hConn.Stat() > > Print "There are "; Stats[0]; " Messages in your inbox." > Print "You inbox contains "; Stats[1]; " bytes of data." > > ' Show all mail ids > sMailIds = hConn.List() > > For Each sMailId In sMailIds > Print sMailId > Next > > ' Get each mail and display > For Each sMailId In sMailIds > sMessage = hConn.Exec("RETR " & sMailId) > Print "Message: "; sMailId; "\n" > Print "----------------------------------------------------" > Print sMessage; "\n\n" > Next > > Print "Closing Connection." > hConn.Close > > End > > > > You may also find these links helpful: > > http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html > > http://www.electrictoolbox.com/article/networking/pop3-commands/ > > > On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: > >> On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: >>> Thanks for your advice, Randall. >>> >>> Am 15.07.2013 17:16, schrieb Randall Morgan: >>>> Is your email pop3, IMAP, MAPI, or webmail? The way you approach this >>>> depends on the target system. >>> >>> It is pop3 and it is my own vserver for my firm's website. >>> >>>> >>>> IMHO pop3 would be the easiest. There you would only need to access >> your >>>> mail account to download the emails for processing. Gambas has PDF >>> >>> Yes, that would be the precise question. My idea was to use the contact >>> form plugin from the website, making another contact form which sends >>> the results to another email address (e. g. application at ...1107... instead of >>> info at ...1107...) and read the emails from that address. >>> >>> So it all boils down to: how can I read the emails - say once a minute - >>> and place them somewhere where a script of mine - say Gambas - has >>> access and reads them. And how to read them. >>> >>> I thought of leaving everything on the remote server, but it might as >>> well be read from our local server in my firm and processed there. The >>> latter might be the better way, as it is done so for the ordinary >>> contact forms now (they are waiting for my email client to fetch them >>> from the remote server via pop3, so I can fetch them even now when I'm >>> in holidays, with my laptop). I'd just need a script to do with the >>> other ones in regular intervals. >>> >>>> generation capabilities so that is not an issue. Another way to handle >> this >>>> would be to setup a GAMABS SMTP service and have the emails forwarded >> to >>>> that service. Then the app could be written to process any email that >>>> arrived in the inbox. >>> >>> Yes, I saw there's an smtp library for Gambas, but I thought it might be >>> easier the other way round. >>> >>>> >>>> As for an easy way.... Well, easy is a qualitative term and so the >> ease of >>>> development would depend on the programmer's experience and abilities. >> If >>>> you're using webmail and the front end is something like Squirrel Mail, >>>> then you have a nice table arrangement that can be easily parsed with >>>> GAMBAS. But if your mail account is something like Yahoo or Google I >> think >>>> a web parsing framework such as those used with Java or Python would >> ease >>>> development. >>> >>> Neither nor, there's qmail on the server. That's it. >>> >>>> >>>> A lot of my data collection tasks involve writing code in different >>>> languages. >>> >>> I wouldn't mind calling some other script from the Gambas one or >> vice-versa. >>> >>> >>>> For example, One of my apps is a simple bash script that takes >>>> forms submitted as pdfs, and processes them using python and then >> stores >>>> the results in a MySQL DB which has some stored procedures for final >>>> processing. Then a cron script runs one every 5 minutes to get any new >> rows >>>> from the DB and place them in a queue to be reviewed by staff. The >> staff >>>> app then calls a php script that connects to a asterisk system if the >> staff >>>> needs to contact the client, and dials the clients number. Sadly, the >> staff >>>> review portion was not written in Gambas but in C++/Qt. >>> >>> Sounds rather clever, but I hope my idea won't become so extensive :-) >>> >>>> >>>> Don't get bogged down into thinking that if you use GAMBAS for a >> portion of >>>> the app that you must use it for the whole app. You can create powerful >>>> systems by combining the resources found other tools. Gambas and most >> Linux >>>> software is designed to allow this kind of inter-connect via pipes, >>>> sockets, and files. So pick the tools that make each part of the >> process >>>> easiest and you development will be simplified. >>> >>> Yes, that was the base of my idea. I started inventing a whole-in-one >>> app with Gambas: contact form, control, pdf, everything. Then I thought >>> there is a nice contact form plugin already, so why inventing the wheel? >>> >>> Ok, let's get back to the point: reading an email (pop3 from the remote >>> server to the local one) and placing it somewhere to let a Gambas app >>> process it, how should I start? Where can I find the emails? Isn't there >>> a mail command I can use from a bash script? After all, there are >>> scripts on every system that send mails to root. And where are these >>> mails stored then? When I know where, I can examine the files and find a >>> way to process them in Gambas. >>> >> >> So we have two options, right? >> >> a) Run a Gambas CGI script on the webserver which receives the user input >> via HTTP (GET/POST) from the HTML form. >> b) Have a Gambas daemon on your local computer which checks regularly for >> new mails dropped by an external program. Or even better: Have a Gambas >> program which is fed with incoming mail whenever it arrives. >> >> It seems that a) is not the topic here. So, for b) you need a mail daemon. >> I >> personally use fetchmail for all my mail (IMAP). It also understands POP3, >> according to the manpages. And the best thing is: it has the "-m" switch >> which lets you give it a program (Mail Delivery Agent) to which it will >> pipe >> its mail. The MDA shall sort/distribute mail correctly but you can >> equivalently well use it to call any program with every incoming mail being >> piped to it. You can then examine the mail and do whatever you want. >> >> I use fetchmail for around 3 years now and the system didn't fail once - or >> it was so unimportant that I didn't notice. The only issue you have is to >> install and configure fetchmail correctly. >> >> I just tested fetchmail's -m option with a self-written program and it >> works >> as expected. >> >> Regards, >> Tobi >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > From eilert-sprachen at ...221... Tue Jul 23 10:58:19 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 23 Jul 2013 10:58:19 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: <51EE45AB.6090105@...221...> Just wanted to try, but I don't find gb.net.pop3 - where is it? Is it something quite new? My version here is 3.3.4. I tried to activate the gb.net, gb.net.curl and gb.net.smtp components, but it still doesn't know about Pop3Client. What am I doing wrong? Rolf Am 16.07.2013 00:37, schrieb Randall Morgan: > Here's a really quick and dirty sample of using the gd.net.pop3 mail client > using the command line project type: > > ' Gambas module file > > Public Sub Main() > Dim hConn As New Pop3Client > Dim sMailIds As String[] > Dim sMailId As String > Dim Stats As Integer[] > Dim iCount As Integer > Dim iSize As Integer > Dim sMessage As String > > > 'Set mail server connection parameters > With hConn > .Host = '"" > .Port = 110 ' ssl. > > .User = '"" > .Password = '"" 'May want to store in, and > retrieve this from an encrypted file > End With > > Try hConn.Open > > If Error Then > Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to log > this.... > Else > If hConn.Status = -16 Then > Print "Cannot Authenticate Mail Account." > Stop > Else If hConn.Status = 7 Then > Print "Connected to mail server...." > Print hConn.Welcome > Endif > Endif > > > Stats = hConn.Stat() > > Print "There are "; Stats[0]; " Messages in your inbox." > Print "You inbox contains "; Stats[1]; " bytes of data." > > ' Show all mail ids > sMailIds = hConn.List() > > For Each sMailId In sMailIds > Print sMailId > Next > > ' Get each mail and display > For Each sMailId In sMailIds > sMessage = hConn.Exec("RETR " & sMailId) > Print "Message: "; sMailId; "\n" > Print "----------------------------------------------------" > Print sMessage; "\n\n" > Next > > Print "Closing Connection." > hConn.Close > > End > > > > You may also find these links helpful: > > http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html > > http://www.electrictoolbox.com/article/networking/pop3-commands/ > > > On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: > >> On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: >>> Thanks for your advice, Randall. >>> >>> Am 15.07.2013 17:16, schrieb Randall Morgan: >>>> Is your email pop3, IMAP, MAPI, or webmail? The way you approach this >>>> depends on the target system. >>> >>> It is pop3 and it is my own vserver for my firm's website. >>> >>>> >>>> IMHO pop3 would be the easiest. There you would only need to access >> your >>>> mail account to download the emails for processing. Gambas has PDF >>> >>> Yes, that would be the precise question. My idea was to use the contact >>> form plugin from the website, making another contact form which sends >>> the results to another email address (e. g. application at ...1107... instead of >>> info at ...1107...) and read the emails from that address. >>> >>> So it all boils down to: how can I read the emails - say once a minute - >>> and place them somewhere where a script of mine - say Gambas - has >>> access and reads them. And how to read them. >>> >>> I thought of leaving everything on the remote server, but it might as >>> well be read from our local server in my firm and processed there. The >>> latter might be the better way, as it is done so for the ordinary >>> contact forms now (they are waiting for my email client to fetch them >>> from the remote server via pop3, so I can fetch them even now when I'm >>> in holidays, with my laptop). I'd just need a script to do with the >>> other ones in regular intervals. >>> >>>> generation capabilities so that is not an issue. Another way to handle >> this >>>> would be to setup a GAMABS SMTP service and have the emails forwarded >> to >>>> that service. Then the app could be written to process any email that >>>> arrived in the inbox. >>> >>> Yes, I saw there's an smtp library for Gambas, but I thought it might be >>> easier the other way round. >>> >>>> >>>> As for an easy way.... Well, easy is a qualitative term and so the >> ease of >>>> development would depend on the programmer's experience and abilities. >> If >>>> you're using webmail and the front end is something like Squirrel Mail, >>>> then you have a nice table arrangement that can be easily parsed with >>>> GAMBAS. But if your mail account is something like Yahoo or Google I >> think >>>> a web parsing framework such as those used with Java or Python would >> ease >>>> development. >>> >>> Neither nor, there's qmail on the server. That's it. >>> >>>> >>>> A lot of my data collection tasks involve writing code in different >>>> languages. >>> >>> I wouldn't mind calling some other script from the Gambas one or >> vice-versa. >>> >>> >>>> For example, One of my apps is a simple bash script that takes >>>> forms submitted as pdfs, and processes them using python and then >> stores >>>> the results in a MySQL DB which has some stored procedures for final >>>> processing. Then a cron script runs one every 5 minutes to get any new >> rows >>>> from the DB and place them in a queue to be reviewed by staff. The >> staff >>>> app then calls a php script that connects to a asterisk system if the >> staff >>>> needs to contact the client, and dials the clients number. Sadly, the >> staff >>>> review portion was not written in Gambas but in C++/Qt. >>> >>> Sounds rather clever, but I hope my idea won't become so extensive :-) >>> >>>> >>>> Don't get bogged down into thinking that if you use GAMBAS for a >> portion of >>>> the app that you must use it for the whole app. You can create powerful >>>> systems by combining the resources found other tools. Gambas and most >> Linux >>>> software is designed to allow this kind of inter-connect via pipes, >>>> sockets, and files. So pick the tools that make each part of the >> process >>>> easiest and you development will be simplified. >>> >>> Yes, that was the base of my idea. I started inventing a whole-in-one >>> app with Gambas: contact form, control, pdf, everything. Then I thought >>> there is a nice contact form plugin already, so why inventing the wheel? >>> >>> Ok, let's get back to the point: reading an email (pop3 from the remote >>> server to the local one) and placing it somewhere to let a Gambas app >>> process it, how should I start? Where can I find the emails? Isn't there >>> a mail command I can use from a bash script? After all, there are >>> scripts on every system that send mails to root. And where are these >>> mails stored then? When I know where, I can examine the files and find a >>> way to process them in Gambas. >>> >> >> So we have two options, right? >> >> a) Run a Gambas CGI script on the webserver which receives the user input >> via HTTP (GET/POST) from the HTML form. >> b) Have a Gambas daemon on your local computer which checks regularly for >> new mails dropped by an external program. Or even better: Have a Gambas >> program which is fed with incoming mail whenever it arrives. >> >> It seems that a) is not the topic here. So, for b) you need a mail daemon. >> I >> personally use fetchmail for all my mail (IMAP). It also understands POP3, >> according to the manpages. And the best thing is: it has the "-m" switch >> which lets you give it a program (Mail Delivery Agent) to which it will >> pipe >> its mail. The MDA shall sort/distribute mail correctly but you can >> equivalently well use it to call any program with every incoming mail being >> piped to it. You can then examine the mail and do whatever you want. >> >> I use fetchmail for around 3 years now and the system didn't fail once - or >> it was so unimportant that I didn't notice. The only issue you have is to >> install and configure fetchmail correctly. >> >> I just tested fetchmail's -m option with a self-written program and it >> works >> as expected. >> >> Regards, >> Tobi >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > From taboege at ...626... Tue Jul 23 10:59:45 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 23 Jul 2013 10:59:45 +0200 Subject: [Gambas-user] components automatically loading based on usage In-Reply-To: <51EDEF3B.2040604@...1887...> References: <51EDEF3B.2040604@...1887...> Message-ID: <20130723085945.GA797@...2774...> On Mon, 22 Jul 2013, Kevin Fishburne wrote: > I just noticed that referencing a boolean variable "Match" now > automatically loads the pcre component and tries to use it as a function > (then obviously fails). This seems a dangerous precedent, as most GAMBAS > users probably don't use most components and therefore shouldn't be > constrained by their reserved keywords. Having any component > automatically enable itself for any reason is also troubling, as it > exposes the application to any vulnerabilities the component may possess > without the knowledge of the developer. > > For the time being I'm just renaming my variable, but I was surprised to > see this. Thoughts anyone? > Hi Kevin, as you may have read in the commit logs, the Match operator was added by Benoit after I added a static Regexp.Check() shorthand function (which was subsequently renamed to Regexp.Match()). I personally am very lucky with Match being an operator because it is more powerful than Like and just looks more natural than a function call - and extended regular expressions should be part of every language. The thing with "constrained by their reserved keywords" is that Match _is_ now part of the language - which is IMO a good thing in itself - and you normally don't plug in keywords into a language. It's not that Gambas will be flooded by new keywords and the variable namespace will be polluted... A keyword is only added once in a while. I was sceptical, too, when I read that it loads the gb.pcre component in the background but: you wouldn't use Match if you didn't want to use gb.pcre, right? In this case, you would accept the risk that gb.pcre was buggy (and, come on, the component consists of ~400 LOC). That the new keyword could collide with a variable name was something I didn't think about as I stick to the naming conventions[0] ;-) Also if "Match" was a boolean variable, the literate way to name it would have been HasMatched or something as "match" is an action and "has matched" is a boolean state. Just joking :-) If you still want to use the name Match (e.g. for public symbols, properties, etc.), use braces[1]. Regards, Tobi [0] http://gambasdoc.org/help/doc/naming?v3 [1] http://gambasdoc.org/help/cat/resident?v3 From lists at ...2828... Tue Jul 23 11:26:22 2013 From: lists at ...2828... (CJ) Date: Tue, 23 Jul 2013 11:26:22 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <20130723082025.63e82bf9@...3118...> Message-ID: <000001ce8786$bb657900$0f00a8c0@...2829...> > Ok, but Debian Lenny? Anyone using it yet? The security support has > long since ended. > > http://lists.debian.org/debian-announce/2012/msg00001.html Yes, there are people still using it me included ;) I'm running Debian 5.03 Lenny on my NAS and will for a long time since I'm not able to upgrade. Have Gambas3 3.4.2 pre runtime + a few selected components working fine after manually upgrading a couple of the Debian packages. /CJ From nemh at ...2007... Tue Jul 23 12:00:02 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Tue, 23 Jul 2013 12:00:02 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <000001ce8786$bb657900$0f00a8c0@...2829...> References: <20130723082025.63e82bf9@...3118...> <000001ce8786$bb657900$0f00a8c0@...2829...> Message-ID: <20130723120002.351994e4@...3118...> > > > Ok, but Debian Lenny? Anyone using it yet? The security support has > > long since ended. > > > > http://lists.debian.org/debian-announce/2012/msg00001.html > > Yes, there are people still using it me included ;) > > I'm running Debian 5.03 Lenny on my NAS and will for a long time > since I'm not able to upgrade. Have Gambas3 3.4.2 pre runtime + a few > selected components > working fine after manually upgrading a couple of the Debian packages. > > /CJ NAS, ok. But you really need the latest version of Gambas? Normally, a desktop computer that uses legacy operating system, why do you want to use fresh Gambas? This would also be a general phenomenon? I do not understand the logic. I only support officially supported Debian releases. From lists at ...2828... Tue Jul 23 12:31:41 2013 From: lists at ...2828... (CJ) Date: Tue, 23 Jul 2013 12:31:41 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <20130723120002.351994e4@...3118...> Message-ID: <000001ce878f$dac32be0$0f00a8c0@...2829...> > NAS, ok. But you really need the latest version of Gambas? Normally, a > desktop computer that uses legacy operating system, why do you want to > use fresh Gambas? This would also be a general phenomenon? I do not > understand the logic. For me it's primarily three things... 1. Bug fixes (and to some extent new features). 2. Consistency to minimize issues between different versions on different hardware (PC, NAS, Raspberry Pi, BeagleBone etc) 3. Having the same version of Gambas3 as on my desktop since I don't develop on the NAS but do that on the desktop. > I only support officially supported Debian releases. I understand that you have to draw the line somewhere I just answered your question if Lenny was still being used ;) /CJ From nemh at ...2007... Tue Jul 23 12:50:54 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Tue, 23 Jul 2013 12:50:54 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <000001ce878f$dac32be0$0f00a8c0@...2829...> References: <20130723120002.351994e4@...3118...> <000001ce878f$dac32be0$0f00a8c0@...2829...> Message-ID: <20130723125054.380fc64d@...3118...> > > > NAS, ok. But you really need the latest version of Gambas? > > Normally, a desktop computer that uses legacy operating system, why > > do you want to use fresh Gambas? This would also be a general > > phenomenon? I do not understand the logic. > > For me it's primarily three things... > > 1. Bug fixes (and to some extent new features). > > 2. Consistency to minimize issues between different versions on > different hardware (PC, NAS, Raspberry Pi, BeagleBone etc) > > 3. Having the same version of Gambas3 as on my desktop since I > don't develop on the NAS but do that on the desktop. > > > I only support officially supported Debian releases. > > I understand that you have to draw the line somewhere I just > answered your question if Lenny was still being used ;) > > /CJ > I understand that. But PC -> Squezze or Wheezy, Raspberry Pi -> Squeeze or Wheezy, NAS why Lenny? Why ancient people use Lenny packages, but they need the fresh packages? It is meaningless to me. This is not Windows, just upgrade the system. From lists at ...2828... Tue Jul 23 13:18:30 2013 From: lists at ...2828... (CJ) Date: Tue, 23 Jul 2013 13:18:30 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <20130723125054.380fc64d@...3118...> Message-ID: <000001ce8796$6572a760$0f00a8c0@...2829...> > I understand that. But PC -> Squezze or Wheezy, Raspberry Pi > -> Squeeze or Wheezy, NAS why Lenny? > Why ancient people use Lenny packages, but they need the fresh > packages? It is meaningless to me. This is not Windows, just upgrade > the system. Sometimes thats not as easy as upgrading a PC. In my particular NAS case I don't have the required bits & pieces to upgrade the kernel and newer distributions requires that. I'm sure there is some way to do it but that requires time and since the NAS performs it's expected duites (and more thanks to Gambas3) flawlessly and time is limited I'm still using Lenny on that one. Also I'm a firm beliver in "if it ain't broken don't fix it" ;) /CJ From mckaygerhard at ...626... Tue Jul 23 16:22:24 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 Jul 2013 09:52:24 -0430 Subject: [Gambas-user] R: Another use case of gb.openal Message-ID: From: Ru Vuott > ...but you knows I'm Midi maniac ;-) so I wanted to try a Midi file. > > In console I received those notices: > fluidsynth: warning: No preset found on channel 0 [bank=0 prog=56] > fluidsynth: warning: No preset found on channel 1 [bank=0 prog=61] > fluidsynth: warning: No preset found on channel 2 [bank=0 prog=32] > fluidsynth: warning: No preset found on channel 3 [bank=0 prog=65] > fluidsynth: warning: No preset found on channel 4 [bank=0 prog=66] > fluidsynth: warning: No preset found on channel 5 [bank=0 prog=66] > fluidsynth: warning: No preset found on channel 6 [bank=0 prog=67] > fluidsynth: warning: No preset found on channel 7 [bank=0 prog=71] > fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0] > > So I run FluidSynth before your test-openal, but I otained same warnings. > u must use a midi bank file.. .. i mean, u'r channels has no instruments loaded.. so dont sound anything due not defined any instrument/sound --- for more sound linux related use venenux. www.venenux.net From gambas at ...1... Tue Jul 23 16:33:44 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 23 Jul 2013 16:33:44 +0200 Subject: [Gambas-user] R: Another use case of gb.openal In-Reply-To: References: Message-ID: <51EE9448.803@...1...> Le 23/07/2013 16:22, PICCORO McKAY Lenz a ?crit : > From: Ru Vuott > >> ...but you knows I'm Midi maniac ;-) so I wanted to try a Midi file. >> >> In console I received those notices: >> fluidsynth: warning: No preset found on channel 0 [bank=0 prog=56] >> fluidsynth: warning: No preset found on channel 1 [bank=0 prog=61] >> fluidsynth: warning: No preset found on channel 2 [bank=0 prog=32] >> fluidsynth: warning: No preset found on channel 3 [bank=0 prog=65] >> fluidsynth: warning: No preset found on channel 4 [bank=0 prog=66] >> fluidsynth: warning: No preset found on channel 5 [bank=0 prog=66] >> fluidsynth: warning: No preset found on channel 6 [bank=0 prog=67] >> fluidsynth: warning: No preset found on channel 7 [bank=0 prog=71] >> fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0] >> >> So I run FluidSynth before your test-openal, but I otained same warnings. >> > > u must use a midi bank file.. .. i mean, u'r channels has no instruments > loaded.. so dont sound anything due not defined any instrument/sound > I successfully loaded a sound bank file (by using the Alure.SetStreamPatchset method or the FLUID_SOUNDFONT environment variable). The warnings disappeared, but I got no sound at all. :-/ -- Beno?t Minisini From mckaygerhard at ...626... Tue Jul 23 18:52:08 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 Jul 2013 12:22:08 -0430 Subject: [Gambas-user] Gambas-user Digest, Vol 86, Issue 40 In-Reply-To: References: Message-ID: From: Kende Kriszti?n > Ok, but Debian Lenny? Anyone using it yet? The security support has > long since ended. > > http://lists.debian.org/debian-announce/2012/msg00001.html but currently stable releases dont run decently in low end machines.. like daruma's specially winbuntu that requires a lot of ram, and a lot of disk space, etc etc, now debian multiarch are too heavy to run with good performance in low end machines.. VenenuX has two versions currently 0.8 (based on lenny mixed with squeeze) and 0.9 (based on squeeze mixed with wheeze), and next 1.0 will be wheeze mixed with jesse) From mckaygerhard at ...626... Tue Jul 23 18:57:56 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 Jul 2013 12:27:56 -0430 Subject: [Gambas-user] R: Another use case of gb.openal Message-ID: > I successfully loaded a sound bank file (by using the > Alure.SetStreamPatchset method or the FLUID_SOUNDFONT environment variable). two possible reasons: 1) alure/fluithsynth not property configure to use right out module (alsa, jack, etc) 2) u'r sound font loaded are only sound efects and the sound defined in midi channels are not property setteld to sound as spectek with these instruments defined.. so u must use a good sound fount with large spectre of sounds.. like yamaha sound font midi piano From lists at ...2828... Tue Jul 23 19:09:52 2013 From: lists at ...2828... (CJ) Date: Tue, 23 Jul 2013 19:09:52 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <51EE45AB.6090105@...221...> Message-ID: <000001ce87c7$754f8370$0f00a8c0@...2829...> Hi Rolf, > Just wanted to try, but I don't find gb.net.pop3 - where is it? Is it > something quite new? My version here is 3.3.4. > > I tried to activate the gb.net, gb.net.curl and gb.net.smtp > components, > but it still doesn't know about Pop3Client. What am I doing wrong? I can't say exact what version needed for having the POP3 component but it sounds like you need to either recompile or update to get it. Did you compile 3.3.4 from source? I had a similar issue where gb.net.pop3 was skipped due to a missing MIME library (libgmime-2.4-dev in my case). /CJ From mckaygerhard at ...626... Tue Jul 23 19:13:31 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 Jul 2013 12:43:31 -0430 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 Message-ID: From: "CJ" > Subject: Re: [Gambas-user] Pre-release of Gambas 3.4.2 > I'm running Debian 5.03 Lenny on my NAS and will for a long time since I'm > not able to upgrade. Have Gambas3 3.4.2 pre runtime + a few selected > components > working fine after manually upgrading a couple of the Debian packages. venenux has many packages updates for lenny, but spect to use soon venenux default system settings, for now if u know how to use aptitude can manualy satisface depends an use recent releases of alsa, jack, gmime, v4l, etc etc etc most of them necesary for complete gambas3 support From: Kende Kriszti?n > Subject: Re: [Gambas-user] Pre-release of Gambas 3.4.2 > use fresh Gambas? This would also be a general phenomenon? I do not > understand the logic. thats the problem, sure u have such money to use recent hardware with no care of implicits Most people who use a old version of software is because it is working well, and perfectly, and due this, there is no reason to upgrade obviosly... "if are working, dont touch" Another powerful reason is that the hardware work well and are in perfect shape, but its not enough "modern" or "powerfully" to run the new software with good performance... That's the problem with the developments in win style, pure update and then inadvertently more code means more cycles cpu that a machine has to compute.!!!!!! From: Kende Kriszti?n > I understand that. But PC -> Squezze or Wheezy, Raspberry Pi -> Squeeze > or Wheezy, NAS why Lenny? Raspherry Pi uses a lot of squeeze, with some others.. but its NOT squeeze like > Why ancient people use Lenny packages, but they need the fresh > packages? It is meaningless to me. This is not Windows, just upgrade > the system. Most people who use a old version of software is because it is working well, and perfectly, and due this, there is no reason to upgrade obviosly... "if are working, dont touch" BUT: need another pieces up to date due DEVELOPERS dont sync with these older pieces of sooftware working perfectly.. a example, a server running apache 1.3 but need php 5.5, need to backported fast cgi and php5 for these apache server and adapt.. apache 1.4 are so far more faster rather that apache 2.X and 3.X remenber: more code means more cycles cpu that a machine has to compute.!!!!!! AN THEN: due more modern software requires more cycles and more cpu, then users/systems/admins need more power and new hardware and then its a cycle to buy always hardware to intel, amd and etc etc.. i dont like that .... From nemh at ...2007... Tue Jul 23 20:08:39 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Tue, 23 Jul 2013 20:08:39 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: References: Message-ID: <20130723200839.0289b658@...3104...> > > Most people who use a old version of software is because it is working > well, and perfectly, and due this, there is no reason to upgrade > obviosly... "if are working, dont touch" > > Another powerful reason is that the hardware work well and are in > perfect shape, but its not enough "modern" or "powerfully" to run the > new software with good performance... > I can understand, and the only problem is Lenny, and the original Debian developers (since they no longer support the old releases). So I will not support the release if no longer supported. But you are a new developer with own distribution. You must provide the software updates, that's your business. Security and other updates. If Gambas works, you do not try to fix it. :-) From eilert-sprachen at ...221... Tue Jul 23 22:59:39 2013 From: eilert-sprachen at ...221... (Sprachschule Eilert) Date: Tue, 23 Jul 2013 22:59:39 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: <51EEEEBB.4030501@...221...> Just wanted to try, but I don't find gb.net.pop3 - where is it? Is it something quite new? My version here is 3.3.4. I tried to activate the gb.net, gb.net.curl and gb.net.smtp components, but it still doesn't know about Pop3Client. Am 16.07.2013 00:37, schrieb Randall Morgan: > Here's a really quick and dirty sample of using the gd.net.pop3 mail client > using the command line project type: > > ' Gambas module file > > Public Sub Main() > Dim hConn As New Pop3Client > Dim sMailIds As String[] > Dim sMailId As String > Dim Stats As Integer[] > Dim iCount As Integer > Dim iSize As Integer > Dim sMessage As String > > > 'Set mail server connection parameters > With hConn > .Host = '"" > .Port = 110 ' ssl. > > .User = '"" > .Password = '"" 'May want to store in, and > retrieve this from an encrypted file > End With > > Try hConn.Open > > If Error Then > Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to log > this.... > Else > If hConn.Status = -16 Then > Print "Cannot Authenticate Mail Account." > Stop > Else If hConn.Status = 7 Then > Print "Connected to mail server...." > Print hConn.Welcome > Endif > Endif > > > Stats = hConn.Stat() > > Print "There are "; Stats[0]; " Messages in your inbox." > Print "You inbox contains "; Stats[1]; " bytes of data." > > ' Show all mail ids > sMailIds = hConn.List() > > For Each sMailId In sMailIds > Print sMailId > Next > > ' Get each mail and display > For Each sMailId In sMailIds > sMessage = hConn.Exec("RETR " & sMailId) > Print "Message: "; sMailId; "\n" > Print "----------------------------------------------------" > Print sMessage; "\n\n" > Next > > Print "Closing Connection." > hConn.Close > > End > > > > You may also find these links helpful: > > http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html > > http://www.electrictoolbox.com/article/networking/pop3-commands/ > > > On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: > >> On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: >>> Thanks for your advice, Randall. >>> >>> Am 15.07.2013 17:16, schrieb Randall Morgan: >>>> Is your email pop3, IMAP, MAPI, or webmail? The way you approach this >>>> depends on the target system. >>> >>> It is pop3 and it is my own vserver for my firm's website. >>> >>>> >>>> IMHO pop3 would be the easiest. There you would only need to access >> your >>>> mail account to download the emails for processing. Gambas has PDF >>> >>> Yes, that would be the precise question. My idea was to use the contact >>> form plugin from the website, making another contact form which sends >>> the results to another email address (e. g. application at ...1107... instead of >>> info at ...1107...) and read the emails from that address. >>> >>> So it all boils down to: how can I read the emails - say once a minute - >>> and place them somewhere where a script of mine - say Gambas - has >>> access and reads them. And how to read them. >>> >>> I thought of leaving everything on the remote server, but it might as >>> well be read from our local server in my firm and processed there. The >>> latter might be the better way, as it is done so for the ordinary >>> contact forms now (they are waiting for my email client to fetch them >>> from the remote server via pop3, so I can fetch them even now when I'm >>> in holidays, with my laptop). I'd just need a script to do with the >>> other ones in regular intervals. >>> >>>> generation capabilities so that is not an issue. Another way to handle >> this >>>> would be to setup a GAMABS SMTP service and have the emails forwarded >> to >>>> that service. Then the app could be written to process any email that >>>> arrived in the inbox. >>> >>> Yes, I saw there's an smtp library for Gambas, but I thought it might be >>> easier the other way round. >>> >>>> >>>> As for an easy way.... Well, easy is a qualitative term and so the >> ease of >>>> development would depend on the programmer's experience and abilities. >> If >>>> you're using webmail and the front end is something like Squirrel Mail, >>>> then you have a nice table arrangement that can be easily parsed with >>>> GAMBAS. But if your mail account is something like Yahoo or Google I >> think >>>> a web parsing framework such as those used with Java or Python would >> ease >>>> development. >>> >>> Neither nor, there's qmail on the server. That's it. >>> >>>> >>>> A lot of my data collection tasks involve writing code in different >>>> languages. >>> >>> I wouldn't mind calling some other script from the Gambas one or >> vice-versa. >>> >>> >>>> For example, One of my apps is a simple bash script that takes >>>> forms submitted as pdfs, and processes them using python and then >> stores >>>> the results in a MySQL DB which has some stored procedures for final >>>> processing. Then a cron script runs one every 5 minutes to get any new >> rows >>>> from the DB and place them in a queue to be reviewed by staff. The >> staff >>>> app then calls a php script that connects to a asterisk system if the >> staff >>>> needs to contact the client, and dials the clients number. Sadly, the >> staff >>>> review portion was not written in Gambas but in C++/Qt. >>> >>> Sounds rather clever, but I hope my idea won't become so extensive :-) >>> >>>> >>>> Don't get bogged down into thinking that if you use GAMBAS for a >> portion of >>>> the app that you must use it for the whole app. You can create powerful >>>> systems by combining the resources found other tools. Gambas and most >> Linux >>>> software is designed to allow this kind of inter-connect via pipes, >>>> sockets, and files. So pick the tools that make each part of the >> process >>>> easiest and you development will be simplified. >>> >>> Yes, that was the base of my idea. I started inventing a whole-in-one >>> app with Gambas: contact form, control, pdf, everything. Then I thought >>> there is a nice contact form plugin already, so why inventing the wheel? >>> >>> Ok, let's get back to the point: reading an email (pop3 from the remote >>> server to the local one) and placing it somewhere to let a Gambas app >>> process it, how should I start? Where can I find the emails? Isn't there >>> a mail command I can use from a bash script? After all, there are >>> scripts on every system that send mails to root. And where are these >>> mails stored then? When I know where, I can examine the files and find a >>> way to process them in Gambas. >>> >> >> So we have two options, right? >> >> a) Run a Gambas CGI script on the webserver which receives the user input >> via HTTP (GET/POST) from the HTML form. >> b) Have a Gambas daemon on your local computer which checks regularly for >> new mails dropped by an external program. Or even better: Have a Gambas >> program which is fed with incoming mail whenever it arrives. >> >> It seems that a) is not the topic here. So, for b) you need a mail daemon. >> I >> personally use fetchmail for all my mail (IMAP). It also understands POP3, >> according to the manpages. And the best thing is: it has the "-m" switch >> which lets you give it a program (Mail Delivery Agent) to which it will >> pipe >> its mail. The MDA shall sort/distribute mail correctly but you can >> equivalently well use it to call any program with every incoming mail being >> piped to it. You can then examine the mail and do whatever you want. >> >> I use fetchmail for around 3 years now and the system didn't fail once - or >> it was so unimportant that I didn't notice. The only issue you have is to >> install and configure fetchmail correctly. >> >> I just tested fetchmail's -m option with a self-written program and it >> works >> as expected. >> >> Regards, >> Tobi >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > From eilert-sprachen at ...221... Tue Jul 23 23:00:26 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 23 Jul 2013 23:00:26 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: <51EEEEEA.2010901@...221...> Just wanted to try, but I don't find gb.net.pop3 - where is it? Is it something quite new? My version here is 3.3.4. I tried to activate the gb.net, gb.net.curl and gb.net.smtp components, but it still doesn't know about Pop3Client. Am 16.07.2013 00:37, schrieb Randall Morgan: > Here's a really quick and dirty sample of using the gd.net.pop3 mail client > using the command line project type: > > ' Gambas module file > > Public Sub Main() > Dim hConn As New Pop3Client > Dim sMailIds As String[] > Dim sMailId As String > Dim Stats As Integer[] > Dim iCount As Integer > Dim iSize As Integer > Dim sMessage As String > > > 'Set mail server connection parameters > With hConn > .Host = '"" > .Port = 110 ' ssl. > > .User = '"" > .Password = '"" 'May want to store in, and > retrieve this from an encrypted file > End With > > Try hConn.Open > > If Error Then > Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to log > this.... > Else > If hConn.Status = -16 Then > Print "Cannot Authenticate Mail Account." > Stop > Else If hConn.Status = 7 Then > Print "Connected to mail server...." > Print hConn.Welcome > Endif > Endif > > > Stats = hConn.Stat() > > Print "There are "; Stats[0]; " Messages in your inbox." > Print "You inbox contains "; Stats[1]; " bytes of data." > > ' Show all mail ids > sMailIds = hConn.List() > > For Each sMailId In sMailIds > Print sMailId > Next > > ' Get each mail and display > For Each sMailId In sMailIds > sMessage = hConn.Exec("RETR " & sMailId) > Print "Message: "; sMailId; "\n" > Print "----------------------------------------------------" > Print sMessage; "\n\n" > Next > > Print "Closing Connection." > hConn.Close > > End > > > > You may also find these links helpful: > > http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html > > http://www.electrictoolbox.com/article/networking/pop3-commands/ > > > On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: > >> On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: >>> Thanks for your advice, Randall. >>> >>> Am 15.07.2013 17:16, schrieb Randall Morgan: >>>> Is your email pop3, IMAP, MAPI, or webmail? The way you approach this >>>> depends on the target system. >>> >>> It is pop3 and it is my own vserver for my firm's website. >>> >>>> >>>> IMHO pop3 would be the easiest. There you would only need to access >> your >>>> mail account to download the emails for processing. Gambas has PDF >>> >>> Yes, that would be the precise question. My idea was to use the contact >>> form plugin from the website, making another contact form which sends >>> the results to another email address (e. g. application at ...1107... instead of >>> info at ...1107...) and read the emails from that address. >>> >>> So it all boils down to: how can I read the emails - say once a minute - >>> and place them somewhere where a script of mine - say Gambas - has >>> access and reads them. And how to read them. >>> >>> I thought of leaving everything on the remote server, but it might as >>> well be read from our local server in my firm and processed there. The >>> latter might be the better way, as it is done so for the ordinary >>> contact forms now (they are waiting for my email client to fetch them >>> from the remote server via pop3, so I can fetch them even now when I'm >>> in holidays, with my laptop). I'd just need a script to do with the >>> other ones in regular intervals. >>> >>>> generation capabilities so that is not an issue. Another way to handle >> this >>>> would be to setup a GAMABS SMTP service and have the emails forwarded >> to >>>> that service. Then the app could be written to process any email that >>>> arrived in the inbox. >>> >>> Yes, I saw there's an smtp library for Gambas, but I thought it might be >>> easier the other way round. >>> >>>> >>>> As for an easy way.... Well, easy is a qualitative term and so the >> ease of >>>> development would depend on the programmer's experience and abilities. >> If >>>> you're using webmail and the front end is something like Squirrel Mail, >>>> then you have a nice table arrangement that can be easily parsed with >>>> GAMBAS. But if your mail account is something like Yahoo or Google I >> think >>>> a web parsing framework such as those used with Java or Python would >> ease >>>> development. >>> >>> Neither nor, there's qmail on the server. That's it. >>> >>>> >>>> A lot of my data collection tasks involve writing code in different >>>> languages. >>> >>> I wouldn't mind calling some other script from the Gambas one or >> vice-versa. >>> >>> >>>> For example, One of my apps is a simple bash script that takes >>>> forms submitted as pdfs, and processes them using python and then >> stores >>>> the results in a MySQL DB which has some stored procedures for final >>>> processing. Then a cron script runs one every 5 minutes to get any new >> rows >>>> from the DB and place them in a queue to be reviewed by staff. The >> staff >>>> app then calls a php script that connects to a asterisk system if the >> staff >>>> needs to contact the client, and dials the clients number. Sadly, the >> staff >>>> review portion was not written in Gambas but in C++/Qt. >>> >>> Sounds rather clever, but I hope my idea won't become so extensive :-) >>> >>>> >>>> Don't get bogged down into thinking that if you use GAMBAS for a >> portion of >>>> the app that you must use it for the whole app. You can create powerful >>>> systems by combining the resources found other tools. Gambas and most >> Linux >>>> software is designed to allow this kind of inter-connect via pipes, >>>> sockets, and files. So pick the tools that make each part of the >> process >>>> easiest and you development will be simplified. >>> >>> Yes, that was the base of my idea. I started inventing a whole-in-one >>> app with Gambas: contact form, control, pdf, everything. Then I thought >>> there is a nice contact form plugin already, so why inventing the wheel? >>> >>> Ok, let's get back to the point: reading an email (pop3 from the remote >>> server to the local one) and placing it somewhere to let a Gambas app >>> process it, how should I start? Where can I find the emails? Isn't there >>> a mail command I can use from a bash script? After all, there are >>> scripts on every system that send mails to root. And where are these >>> mails stored then? When I know where, I can examine the files and find a >>> way to process them in Gambas. >>> >> >> So we have two options, right? >> >> a) Run a Gambas CGI script on the webserver which receives the user input >> via HTTP (GET/POST) from the HTML form. >> b) Have a Gambas daemon on your local computer which checks regularly for >> new mails dropped by an external program. Or even better: Have a Gambas >> program which is fed with incoming mail whenever it arrives. >> >> It seems that a) is not the topic here. So, for b) you need a mail daemon. >> I >> personally use fetchmail for all my mail (IMAP). It also understands POP3, >> according to the manpages. And the best thing is: it has the "-m" switch >> which lets you give it a program (Mail Delivery Agent) to which it will >> pipe >> its mail. The MDA shall sort/distribute mail correctly but you can >> equivalently well use it to call any program with every incoming mail being >> piped to it. You can then examine the mail and do whatever you want. >> >> I use fetchmail for around 3 years now and the system didn't fail once - or >> it was so unimportant that I didn't notice. The only issue you have is to >> install and configure fetchmail correctly. >> >> I just tested fetchmail's -m option with a self-written program and it >> works >> as expected. >> >> Regards, >> Tobi >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > From vuott at ...325... Tue Jul 23 23:16:18 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 23 Jul 2013 22:16:18 +0100 (BST) Subject: [Gambas-user] R: Another use case of gb.openal In-Reply-To: <51EE9448.803@...1...> Message-ID: <1374614178.98234.YahooMailBasic@...3065...> -------------------------------------------- Mar 23/7/13, Beno?t Minisini ha scritto: > I successfully loaded a sound bank file (by using the > Alure.SetStreamPatchset method or the FLUID_SOUNDFONT > environment variable). Very interesting. > > The warnings disappeared, but I got no sound at all. :-/ I want to experiment it. Bye vuott From Karl.Reinl at ...2345... Tue Jul 23 23:41:04 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 23 Jul 2013 23:41:04 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <51EEEEEA.2010901@...221...> References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> <51EEEEEA.2010901@...221...> Message-ID: <1374615664.2582.88.camel@...40...> Am Dienstag, den 23.07.2013, 23:00 +0200 schrieb Rolf-Werner Eilert: > Just wanted to try, but I don't find gb.net.pop3 - where is it? Is it > something quite new? My version here is 3.3.4. > > I tried to activate the gb.net, gb.net.curl and gb.net.smtp components, > but it still doesn't know about Pop3Client. > --cut--------------------- Salut Rolf, gb.net.pop3 is a gambas3 component. You'll find in /comp/src/gb.net.pop3/ it depends on gb, gbmime and gb.net This I found in the output from 'make install' Compiling gb.mysql... OK Installing gb.mysql... Compiling gb.net.pop3... OK Installing gb.net.pop3... Compiling gb.memcached... OK I'm using svn and not the package. -- Amicalement Charlie From kevinfishburne at ...1887... Tue Jul 23 23:54:44 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 23 Jul 2013 17:54:44 -0400 Subject: [Gambas-user] components automatically loading based on usage In-Reply-To: <20130723085945.GA797@...2774...> References: <51EDEF3B.2040604@...1887...> <20130723085945.GA797@...2774...> Message-ID: <51EEFBA4.8000500@...1887...> On 07/23/2013 04:59 AM, Tobias Boege wrote: > On Mon, 22 Jul 2013, Kevin Fishburne wrote: >> I just noticed that referencing a boolean variable "Match" now >> automatically loads the pcre component and tries to use it as a function >> (then obviously fails). This seems a dangerous precedent, as most GAMBAS >> users probably don't use most components and therefore shouldn't be >> constrained by their reserved keywords. Having any component >> automatically enable itself for any reason is also troubling, as it >> exposes the application to any vulnerabilities the component may possess >> without the knowledge of the developer. >> >> For the time being I'm just renaming my variable, but I was surprised to >> see this. Thoughts anyone? >> > Hi Kevin, > > as you may have read in the commit logs, the Match operator was added by > Benoit after I added a static Regexp.Check() shorthand function (which was > subsequently renamed to Regexp.Match()). > > I personally am very lucky with Match being an operator because it is more > powerful than Like and just looks more natural than a function call - and > extended regular expressions should be part of every language. The thing > with "constrained by their reserved keywords" is that Match _is_ now part of > the language - which is IMO a good thing in itself - and you normally don't > plug in keywords into a language. It's not that Gambas will be flooded by > new keywords and the variable namespace will be polluted... A keyword is > only added once in a while. > > I was sceptical, too, when I read that it loads the gb.pcre component in the > background but: you wouldn't use Match if you didn't want to use gb.pcre, > right? In this case, you would accept the risk that gb.pcre was buggy (and, > come on, the component consists of ~400 LOC). > > That the new keyword could collide with a variable name was something I > didn't think about as I stick to the naming conventions[0] ;-) Also if > "Match" was a boolean variable, the literate way to name it would have been > HasMatched or something as "match" is an action and "has matched" is a > boolean state. Just joking :-) > > If you still want to use the name Match (e.g. for public symbols, > properties, etc.), use braces[1]. > > Regards, > Tobi LOL. Okay, I'll bite. I guess it was the surprise of seeing my variable no longer working combined with the bit about a component being automatically loaded that made fire shoot out of my eyes. I haven't used regular expressions so wasn't familiar with Match being a common function name. To Beno?t, the code I had was essentially: Dim Match As Boolean Match = False -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From vuott at ...325... Wed Jul 24 01:11:10 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 24 Jul 2013 00:11:10 +0100 (BST) Subject: [Gambas-user] gb.openal & MIDI: it WORKS with Alure !!! In-Reply-To: <51EE9448.803@...1...> Message-ID: <1374621070.35283.YahooMailBasic@...3070...> Hello Beno?t > I successfully loaded a sound bank file (by using the > Alure.SetStreamPatchset method or the FLUID_SOUNDFONT > environment variable). > > The warnings disappeared, but I got no sound at all. :-/ > > -- > Beno?t Minisini I started from that your message (I sent my message where I was told that I would have tried) and I wrote a GAMAS code via Alure API external function. Well, so I installed "FluidSynth" (I had only QSynth), and I inserted that function: alureSetStreamPatchset(streamP, "/home/vuott/Scrivania/GM (62mb).sf2") that is the second parameter is path of soundfont .sf2 . So, it WORKSSS ! I can hear the Midi file, Beno?t ! Obviously, the sounds quality results from soundfont quality loaded by that function. Bye vuott From ivan-kern at ...308... Wed Jul 24 11:31:59 2013 From: ivan-kern at ...308... (Ivan Kern) Date: Wed, 24 Jul 2013 11:31:59 +0200 Subject: [Gambas-user] Gambas3 r5763 install error Message-ID: <001101ce8850$a9469720$fbd3c560$@freenet.de> Hello Beno?t I tried to install Gambas3 r5763 on Ubuntu 10.04 LTS, but after make command I got error message, see attachment. Regards, Ivan -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: makeError.txt URL: From gambas.fr at ...626... Wed Jul 24 11:55:04 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 24 Jul 2013 11:55:04 +0200 Subject: [Gambas-user] Gambas3 r5763 install error In-Reply-To: <001101ce8850$a9469720$fbd3c560$@freenet.de> References: <001101ce8850$a9469720$fbd3c560$@freenet.de> Message-ID: Youuss libffi Le 24 juil. 2013 11:37, "Ivan Kern" a ?crit : > > > Hello Beno?t > > > > I tried to install Gambas3 r5763 on Ubuntu 10.04 LTS, but after make > command > I got error message, see attachment. > > > > Regards, > > Ivan > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Wed Jul 24 11:55:32 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 24 Jul 2013 11:55:32 +0200 Subject: [Gambas-user] Gambas3 r5763 install error In-Reply-To: <001101ce8850$a9469720$fbd3c560$@freenet.de> References: <001101ce8850$a9469720$fbd3c560$@freenet.de> Message-ID: You miss libffi Le 24 juil. 2013 11:37, "Ivan Kern" a ?crit : > > > Hello Beno?t > > > > I tried to install Gambas3 r5763 on Ubuntu 10.04 LTS, but after make > command > I got error message, see attachment. > > > > Regards, > > Ivan > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Wed Jul 24 20:38:29 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 24 Jul 2013 20:38:29 +0200 Subject: [Gambas-user] components automatically loading based on usage In-Reply-To: <51EEFBA4.8000500@...1887...> References: <51EDEF3B.2040604@...1887...> <20130723085945.GA797@...2774...> <51EEFBA4.8000500@...1887...> Message-ID: Le 23 juil. 2013 23:55, "Kevin Fishburne" a ?crit : > > On 07/23/2013 04:59 AM, Tobias Boege wrote: > > On Mon, 22 Jul 2013, Kevin Fishburne wrote: > >> I just noticed that referencing a boolean variable "Match" now > >> automatically loads the pcre component and tries to use it as a function > >> (then obviously fails). This seems a dangerous precedent, as most GAMBAS > >> users probably don't use most components and therefore shouldn't be > >> constrained by their reserved keywords. Having any component > >> automatically enable itself for any reason is also troubling, as it > >> exposes the application to any vulnerabilities the component may possess > >> without the knowledge of the developer. > >> > >> For the time being I'm just renaming my variable, but I was surprised to > >> see this. Thoughts anyone? > >> > > Hi Kevin, > > > > as you may have read in the commit logs, the Match operator was added by > > Benoit after I added a static Regexp.Check() shorthand function (which was > > subsequently renamed to Regexp.Match()). > > > > I personally am very lucky with Match being an operator because it is more > > powerful than Like and just looks more natural than a function call - and > > extended regular expressions should be part of every language. The thing > > with "constrained by their reserved keywords" is that Match _is_ now part of > > the language - which is IMO a good thing in itself - and you normally don't > > plug in keywords into a language. It's not that Gambas will be flooded by > > new keywords and the variable namespace will be polluted... A keyword is > > only added once in a while. > > > > I was sceptical, too, when I read that it loads the gb.pcre component in the > > background but: you wouldn't use Match if you didn't want to use gb.pcre, > > right? In this case, you would accept the risk that gb.pcre was buggy (and, > > come on, the component consists of ~400 LOC). > > > > That the new keyword could collide with a variable name was something I > > didn't think about as I stick to the naming conventions[0] ;-) Also if > > "Match" was a boolean variable, the literate way to name it would have been > > HasMatched or something as "match" is an action and "has matched" is a > > boolean state. Just joking :-) > > > > If you still want to use the name Match (e.g. for public symbols, > > properties, etc.), use braces[1]. > > > > Regards, > > Tobi > > LOL. Okay, I'll bite. I guess it was the surprise of seeing my variable > no longer working combined with the bit about a component being > automatically loaded that made fire shoot out of my eyes. I haven't used > regular expressions so wasn't familiar with Match being a common > function name. > > To Beno?t, the code I had was essentially: > > Dim Match As Boolean > Match = False > well it will be better with Dim bMatch As Boolean bMatch = False :-) > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Jul 24 20:44:14 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 24 Jul 2013 20:44:14 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.4.2 In-Reply-To: <20130723200839.0289b658@...3104...> References: <20130723200839.0289b658@...3104...> Message-ID: I'm using lenny on my vserver too And gb svn. And it work really well since 3 year. I have some process that run since more than one year. (I use a gbs3 deamon to send mails with gb.net.smtp) From kevinfishburne at ...1887... Wed Jul 24 23:22:39 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Wed, 24 Jul 2013 17:22:39 -0400 Subject: [Gambas-user] components automatically loading based on usage In-Reply-To: References: <51EDEF3B.2040604@...1887...> <20130723085945.GA797@...2774...> <51EEFBA4.8000500@...1887...> Message-ID: <51F0459F.6050904@...1887...> On 07/24/2013 02:38 PM, Fabien Bodard wrote: > Le 23 juil. 2013 23:55, "Kevin Fishburne" > a ?crit : >> LOL. Okay, I'll bite. I guess it was the surprise of seeing my variable >> no longer working combined with the bit about a component being >> automatically loaded that made fire shoot out of my eyes. I haven't used >> regular expressions so wasn't familiar with Match being a common >> function name. >> >> To Beno?t, the code I had was essentially: >> >> Dim Match As Boolean >> Match = False >> > well it will be better with > > Dim bMatch As Boolean > bMatch = False > > :-) > :/ Yes. I miss the old days when it was a$ = "Hello world" and such. sa = "Hello world" just isn't as sexy. Have no fear though, as bEnlightened = True and returns no error. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From eilert-sprachen at ...221... Thu Jul 25 11:57:50 2013 From: eilert-sprachen at ...221... (Sprachschule Eilert) Date: Thu, 25 Jul 2013 11:57:50 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <1374615664.2582.88.camel@...40...> References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> <51EEEEEA.2010901@...221...> <1374615664.2582.88.camel@...40...> Message-ID: <51F0F69E.6070907@...221...> Thank you everyone for your help. I'm in holiday, and had an internet stop for couple of days. So, sorry for double posting. It might indeed be the reason that gb.net.pop3 wasn't compiled due to some missing library, how do I get a fast indication AFTER ./configure has run... in the form of "Leaving out gb.net.pop3 due to missing library xyz..."? This is on my laptop, and it's not the fastest machine on this planet :-) (although, after all, this is holidays...) Rolf Am 23.07.2013 23:41, schrieb Charlie Reinl: > Am Dienstag, den 23.07.2013, 23:00 +0200 schrieb Rolf-Werner Eilert: >> Just wanted to try, but I don't find gb.net.pop3 - where is it? Is it >> something quite new? My version here is 3.3.4. >> >> I tried to activate the gb.net, gb.net.curl and gb.net.smtp components, >> but it still doesn't know about Pop3Client. >> > --cut--------------------- > > Salut Rolf, > > gb.net.pop3 is a gambas3 component. > You'll find in /comp/src/gb.net.pop3/ it depends on gb, > gbmime and gb.net > > This I found in the output from 'make install' > > Compiling gb.mysql... > OK > Installing gb.mysql... > Compiling gb.net.pop3... > OK > Installing gb.net.pop3... > Compiling gb.memcached... > OK > > I'm using svn and not the package. > From eilert-sprachen at ...221... Thu Jul 25 12:06:08 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 25 Jul 2013 12:06:08 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <000001ce87c7$754f8370$0f00a8c0@...2829...> References: <000001ce87c7$754f8370$0f00a8c0@...2829...> Message-ID: <51F0F890.5060804@...221...> Just looked it up, libgmime 2.4 is there on my system, but not the -dev version, it isn't offered at all. Am 23.07.2013 19:09, schrieb CJ: > Hi Rolf, > >> Just wanted to try, but I don't find gb.net.pop3 - where is it? Is it >> something quite new? My version here is 3.3.4. >> >> I tried to activate the gb.net, gb.net.curl and gb.net.smtp >> components, >> but it still doesn't know about Pop3Client. What am I doing wrong? > > I can't say exact what version needed for having the POP3 component > but it sounds like you need to either recompile or update to get it. > > Did you compile 3.3.4 from source? I had a similar issue where gb.net.pop3 > was skipped due to a missing MIME library (libgmime-2.4-dev in my case). > > /CJ > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lists at ...2828... Thu Jul 25 14:05:39 2013 From: lists at ...2828... (CJ) Date: Thu, 25 Jul 2013 14:05:39 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <51F0F890.5060804@...221...> Message-ID: <000001ce892f$4afebdc0$0f00a8c0@...2829...> > Just looked it up, libgmime 2.4 is there on my system, but > not the -dev version, it isn't offered at all. What Linux distribution, version etc. are you using? /CJ From eilert-sprachen at ...221... Thu Jul 25 20:10:02 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 25 Jul 2013 20:10:02 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <000001ce892f$4afebdc0$0f00a8c0@...2829...> References: <000001ce892f$4afebdc0$0f00a8c0@...2829...> Message-ID: <51F169FA.9080106@...221...> It's OpenSuse 12.1 Am 25.07.2013 14:05, schrieb CJ: > >> Just looked it up, libgmime 2.4 is there on my system, but >> not the -dev version, it isn't offered at all. > > What Linux distribution, version etc. are you using? > > /CJ > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From eilert-sprachen at ...221... Thu Jul 25 21:40:14 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 25 Jul 2013 21:40:14 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <000001ce892f$4afebdc0$0f00a8c0@...2829...> References: <000001ce892f$4afebdc0$0f00a8c0@...2829...> Message-ID: <51F17F1E.8080300@...221...> Ok, since my internet is ok this evening, I downloaded 3.4.1 and compiled it. With ./reconf-all, ./configure and make, there's no problem as far as I could see. The very last message when installing with "make install" is Unable to compile gb.net.pop3 Then it's finished. Some lines above, I found Compiling gb.net.pop3... gbc: error: Component not found: gb.mime The gb.mime directory is there, so where's the trick? Rolf Am 25.07.2013 14:05, schrieb CJ: > >> Just looked it up, libgmime 2.4 is there on my system, but >> not the -dev version, it isn't offered at all. > > What Linux distribution, version etc. are you using? > > /CJ > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From lists at ...2828... Fri Jul 26 11:20:19 2013 From: lists at ...2828... (CJ) Date: Fri, 26 Jul 2013 11:20:19 +0200 Subject: [Gambas-user] Receiving an email Message-ID: <000001ce89e1$84297740$0f00a8c0@...2829...> > It's OpenSuse 12.1 I have no experience with OpenSuse at all since I'm a Debian guy but I did a quick search and it seems that it's called "gmime-2_4-devel" instead of "libgmime-2.4-dev". Check for that or maybe you can use this one??? http://rpmfind.net/linux/RPM/opensuse/11.4/i586/gmime-2_4-devel-2.4.21-3.2 .i586.html /CJ From lists at ...2828... Fri Jul 26 11:21:28 2013 From: lists at ...2828... (CJ) Date: Fri, 26 Jul 2013 11:21:28 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <51F17F1E.8080300@...221...> Message-ID: <000101ce89e1$8587f5d0$0f00a8c0@...2829...> > Ok, since my internet is ok this evening, I downloaded 3.4.1 and > compiled it. With ./reconf-all, ./configure and make, there's > no problem > as far as I could see. The very last message when installing > with "make > install" is > > Unable to compile gb.net.pop3 > > Then it's finished. > > Some lines above, I found > > Compiling gb.net.pop3... > gbc: error: Component not found: gb.mime > > The gb.mime directory is there, so where's the trick? gb.net.pop3 depends on the gb.mime component (not directory) and if you don't have the libgmime-2.4-dev package I assume gb.mime fails first, search logfile and see if gb.mime component was compiled OK. /CJ From eilert-sprachen at ...221... Fri Jul 26 13:00:31 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 26 Jul 2013 13:00:31 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <000101ce89e1$8587f5d0$0f00a8c0@...2829...> References: <000101ce89e1$8587f5d0$0f00a8c0@...2829...> Message-ID: <51F256CF.7070406@...221...> Am 26.07.2013 11:21, schrieb CJ: > >> Ok, since my internet is ok this evening, I downloaded 3.4.1 and >> compiled it. With ./reconf-all, ./configure and make, there's >> no problem >> as far as I could see. The very last message when installing >> with "make >> install" is >> >> Unable to compile gb.net.pop3 >> >> Then it's finished. >> >> Some lines above, I found >> >> Compiling gb.net.pop3... >> gbc: error: Component not found: gb.mime >> >> The gb.mime directory is there, so where's the trick? > > gb.net.pop3 depends on the gb.mime component (not directory) and if > you don't have the libgmime-2.4-dev package I assume gb.mime fails first, > search logfile and see if gb.mime component was compiled OK. > > /CJ > I found it, installed it and now everything runs as expected. Thanks a lot for the help! Rolf From eilert-sprachen at ...221... Fri Jul 26 20:58:43 2013 From: eilert-sprachen at ...221... (Sprachschule Eilert) Date: Fri, 26 Jul 2013 20:58:43 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> Message-ID: <51F2C6E3.9050005@...221...> Hi Randall, I now got the gb.net.pop3 component to work, and your example works too. However, I only receive the message headers, not the message bodies, and the messages aren't downloaded and deleted from the server. This is what I got, when there were 3 messages in the inbox: Connected to mail server.... +OK Hello there. <29021.1374864315 at ...37...> There are 3 Messages in your inbox. You inbox contains 7501 bytes of data. 1 802 2 5581 3 1118 Message: 1 802 ---------------------------------------------------- +OK 802 octets follow. Message: 2 5581 ---------------------------------------------------- Received: (qmail 28836 invoked from network); 26 Jul 2013 19:35:08 +0200 Message: 3 1118 ---------------------------------------------------- Received: from 95.58.25.201.megaline.telecom.kz (HELO 95.58.25.201) (95.58.25.201) Closing Connection. As soon as I know how to get complete messages (in my case, these would be the contact forms sent by customers via the contact form tool on my website), I would add the DELE command to clean them from the server. Rolf Am 16.07.2013 00:37, schrieb Randall Morgan: > Here's a really quick and dirty sample of using the gd.net.pop3 mail client > using the command line project type: > > ' Gambas module file > > Public Sub Main() > Dim hConn As New Pop3Client > Dim sMailIds As String[] > Dim sMailId As String > Dim Stats As Integer[] > Dim iCount As Integer > Dim iSize As Integer > Dim sMessage As String > > > 'Set mail server connection parameters > With hConn > .Host = '"" > .Port = 110 ' ssl. > > .User = '"" > .Password = '"" 'May want to store in, and > retrieve this from an encrypted file > End With > > Try hConn.Open > > If Error Then > Print "Mail Error: "; Error.Text; "\nat "; Error.Where 'May want to log > this.... > Else > If hConn.Status = -16 Then > Print "Cannot Authenticate Mail Account." > Stop > Else If hConn.Status = 7 Then > Print "Connected to mail server...." > Print hConn.Welcome > Endif > Endif > > > Stats = hConn.Stat() > > Print "There are "; Stats[0]; " Messages in your inbox." > Print "You inbox contains "; Stats[1]; " bytes of data." > > ' Show all mail ids > sMailIds = hConn.List() > > For Each sMailId In sMailIds > Print sMailId > Next > > ' Get each mail and display > For Each sMailId In sMailIds > sMessage = hConn.Exec("RETR " & sMailId) > Print "Message: "; sMailId; "\n" > Print "----------------------------------------------------" > Print sMessage; "\n\n" > Next > > Print "Closing Connection." > hConn.Close > > End > > > > You may also find these links helpful: > > http://www.arclab.com/products/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html > > http://www.electrictoolbox.com/article/networking/pop3-commands/ > > > On Mon, Jul 15, 2013 at 2:12 PM, Tobias Boege wrote: > >> On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: >>> Thanks for your advice, Randall. >>> >>> Am 15.07.2013 17:16, schrieb Randall Morgan: >>>> Is your email pop3, IMAP, MAPI, or webmail? The way you approach this >>>> depends on the target system. >>> >>> It is pop3 and it is my own vserver for my firm's website. >>> >>>> >>>> IMHO pop3 would be the easiest. There you would only need to access >> your >>>> mail account to download the emails for processing. Gambas has PDF >>> >>> Yes, that would be the precise question. My idea was to use the contact >>> form plugin from the website, making another contact form which sends >>> the results to another email address (e. g. application at ...1107... instead of >>> info at ...1107...) and read the emails from that address. >>> >>> So it all boils down to: how can I read the emails - say once a minute - >>> and place them somewhere where a script of mine - say Gambas - has >>> access and reads them. And how to read them. >>> >>> I thought of leaving everything on the remote server, but it might as >>> well be read from our local server in my firm and processed there. The >>> latter might be the better way, as it is done so for the ordinary >>> contact forms now (they are waiting for my email client to fetch them >>> from the remote server via pop3, so I can fetch them even now when I'm >>> in holidays, with my laptop). I'd just need a script to do with the >>> other ones in regular intervals. >>> >>>> generation capabilities so that is not an issue. Another way to handle >> this >>>> would be to setup a GAMABS SMTP service and have the emails forwarded >> to >>>> that service. Then the app could be written to process any email that >>>> arrived in the inbox. >>> >>> Yes, I saw there's an smtp library for Gambas, but I thought it might be >>> easier the other way round. >>> >>>> >>>> As for an easy way.... Well, easy is a qualitative term and so the >> ease of >>>> development would depend on the programmer's experience and abilities. >> If >>>> you're using webmail and the front end is something like Squirrel Mail, >>>> then you have a nice table arrangement that can be easily parsed with >>>> GAMBAS. But if your mail account is something like Yahoo or Google I >> think >>>> a web parsing framework such as those used with Java or Python would >> ease >>>> development. >>> >>> Neither nor, there's qmail on the server. That's it. >>> >>>> >>>> A lot of my data collection tasks involve writing code in different >>>> languages. >>> >>> I wouldn't mind calling some other script from the Gambas one or >> vice-versa. >>> >>> >>>> For example, One of my apps is a simple bash script that takes >>>> forms submitted as pdfs, and processes them using python and then >> stores >>>> the results in a MySQL DB which has some stored procedures for final >>>> processing. Then a cron script runs one every 5 minutes to get any new >> rows >>>> from the DB and place them in a queue to be reviewed by staff. The >> staff >>>> app then calls a php script that connects to a asterisk system if the >> staff >>>> needs to contact the client, and dials the clients number. Sadly, the >> staff >>>> review portion was not written in Gambas but in C++/Qt. >>> >>> Sounds rather clever, but I hope my idea won't become so extensive :-) >>> >>>> >>>> Don't get bogged down into thinking that if you use GAMBAS for a >> portion of >>>> the app that you must use it for the whole app. You can create powerful >>>> systems by combining the resources found other tools. Gambas and most >> Linux >>>> software is designed to allow this kind of inter-connect via pipes, >>>> sockets, and files. So pick the tools that make each part of the >> process >>>> easiest and you development will be simplified. >>> >>> Yes, that was the base of my idea. I started inventing a whole-in-one >>> app with Gambas: contact form, control, pdf, everything. Then I thought >>> there is a nice contact form plugin already, so why inventing the wheel? >>> >>> Ok, let's get back to the point: reading an email (pop3 from the remote >>> server to the local one) and placing it somewhere to let a Gambas app >>> process it, how should I start? Where can I find the emails? Isn't there >>> a mail command I can use from a bash script? After all, there are >>> scripts on every system that send mails to root. And where are these >>> mails stored then? When I know where, I can examine the files and find a >>> way to process them in Gambas. >>> >> >> So we have two options, right? >> >> a) Run a Gambas CGI script on the webserver which receives the user input >> via HTTP (GET/POST) from the HTML form. >> b) Have a Gambas daemon on your local computer which checks regularly for >> new mails dropped by an external program. Or even better: Have a Gambas >> program which is fed with incoming mail whenever it arrives. >> >> It seems that a) is not the topic here. So, for b) you need a mail daemon. >> I >> personally use fetchmail for all my mail (IMAP). It also understands POP3, >> according to the manpages. And the best thing is: it has the "-m" switch >> which lets you give it a program (Mail Delivery Agent) to which it will >> pipe >> its mail. The MDA shall sort/distribute mail correctly but you can >> equivalently well use it to call any program with every incoming mail being >> piped to it. You can then examine the mail and do whatever you want. >> >> I use fetchmail for around 3 years now and the system didn't fail once - or >> it was so unimportant that I didn't notice. The only issue you have is to >> install and configure fetchmail correctly. >> >> I just tested fetchmail's -m option with a self-written program and it >> works >> as expected. >> >> Regards, >> Tobi >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > From gambas at ...1... Fri Jul 26 22:38:22 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 26 Jul 2013 22:38:22 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <51F2C6E3.9050005@...221...> References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> <51F2C6E3.9050005@...221...> Message-ID: <51F2DE3E.9080607@...1...> Le 26/07/2013 20:58, Sprachschule Eilert a ?crit : > Hi Randall, > > I now got the gb.net.pop3 component to work, and your example works too. > However, I only receive the message headers, not the message bodies, and > the messages aren't downloaded and deleted from the server. > > This is what I got, when there were 3 messages in the inbox: > > Connected to mail server.... > +OK Hello there. <29021.1374864315 at ...37...> > There are 3 Messages in your inbox. > You inbox contains 7501 bytes of data. > 1 802 > 2 5581 > 3 1118 > Message: 1 802 > > ---------------------------------------------------- > +OK 802 octets follow. > > > Message: 2 5581 > > ---------------------------------------------------- > Received: (qmail 28836 invoked from network); 26 Jul 2013 19:35:08 +0200 > > > Message: 3 1118 > > ---------------------------------------------------- > Received: from 95.58.25.201.megaline.telecom.kz (HELO 95.58.25.201) > (95.58.25.201) > > > Closing Connection. > > > As soon as I know how to get complete messages (in my case, these would > be the contact forms sent by customers via the contact form tool on my > website), I would add the DELE command to clean them from the server. > > Rolf > You don't have to issue the POP3 commands explicitely with the Pop3Client class. Look at the documentation: hConn.Count returns the number of messages. hConn[i] returns the i-th message. hConn[i].Size returns the message size. hConn[i].Text returns the message contents "as is". hConn[i].Message returns the message parsed as a MimeMessage object. hConn[i].Delete marks the message as being deleted. It will be actually deleted when you call hConn.Close(), but not if you call hConn.Abort(). Then go look at the MimeMessage class documentation of gb.mime! Regards, -- Beno?t Minisini From rmorgan62 at ...626... Fri Jul 26 23:04:30 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Fri, 26 Jul 2013 14:04:30 -0700 Subject: [Gambas-user] Receiving an email In-Reply-To: <51F2DE3E.9080607@...1...> References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> <51F2C6E3.9050005@...221...> <51F2DE3E.9080607@...1...> Message-ID: Yes, Benoit is right. I just did a quick demo to get you started. I used explicit commands because there are times you may need to do this. But the GB docs layout everything else. So read the docs and experiment. Also read the info on the two sites I linked to so that you have an understanding of what GB is doing for you and what to do when GB doesn't provide a solution to your needs. On Fri, Jul 26, 2013 at 1:38 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 26/07/2013 20:58, Sprachschule Eilert a ?crit : > > Hi Randall, > > > > I now got the gb.net.pop3 component to work, and your example works too. > > However, I only receive the message headers, not the message bodies, and > > the messages aren't downloaded and deleted from the server. > > > > This is what I got, when there were 3 messages in the inbox: > > > > Connected to mail server.... > > +OK Hello there. <29021.1374864315 at ...37...> > > There are 3 Messages in your inbox. > > You inbox contains 7501 bytes of data. > > 1 802 > > 2 5581 > > 3 1118 > > Message: 1 802 > > > > ---------------------------------------------------- > > +OK 802 octets follow. > > > > > > Message: 2 5581 > > > > ---------------------------------------------------- > > Received: (qmail 28836 invoked from network); 26 Jul 2013 19:35:08 +0200 > > > > > > Message: 3 1118 > > > > ---------------------------------------------------- > > Received: from 95.58.25.201.megaline.telecom.kz (HELO 95.58.25.201) > > (95.58.25.201) > > > > > > Closing Connection. > > > > > > As soon as I know how to get complete messages (in my case, these would > > be the contact forms sent by customers via the contact form tool on my > > website), I would add the DELE command to clean them from the server. > > > > Rolf > > > > You don't have to issue the POP3 commands explicitely with the > Pop3Client class. Look at the documentation: > > hConn.Count returns the number of messages. > > hConn[i] returns the i-th message. > > hConn[i].Size returns the message size. > > hConn[i].Text returns the message contents "as is". > > hConn[i].Message returns the message parsed as a MimeMessage object. > > hConn[i].Delete marks the message as being deleted. It will be actually > deleted when you call hConn.Close(), but not if you call hConn.Abort(). > > Then go look at the MimeMessage class documentation of gb.mime! > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at 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? From gambas at ...1... Sat Jul 27 00:47:04 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 27 Jul 2013 00:47:04 +0200 Subject: [Gambas-user] Release of Gambas 3.4.2 Message-ID: <51F2FC68.2070208@...1...> Hi, Better later than never, Gambas 3.4.2 has been finally released. About fourty bugs fixes, some of them being important for some of you. Read the release notes for the defails. Enjoy! -- Beno?t Minisini From gambas at ...1... Sat Jul 27 19:32:50 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 27 Jul 2013 19:32:50 +0200 Subject: [Gambas-user] Debugging web applications directly from the IDE Message-ID: <51F40442.3040407@...1...> Hi, Since revision #5765, it is possible to debug web applications directly from the IDE. How does it work? As soon as you have selected the 'gb.web' component in your project, a new debugging option is available in the 'Options' tab of the project property dialog: "Use an embedded HTTP server". If you check this option, when you run your project from the IDE: - Your project starts an embedded http server (the 'gb.httpd' component). - Your project is run as a CGI script from the embedded http server through a new child process. - A browser is automatically opened on http://localhost:8080 (the default port used by the embedded http server). - Only one CGI script is run at a time. So if you set a breakpoint, the debugged process is the one that answer to the very first request. All other requests are stalled, and can even returns the 503 error code if you are too long to debug! - If your project ends, it is started again to answer the next request, and is debugged the same way. If you want to change the http port, use the GB_HTTPD_PORT environment variable. All that is at a very early experimental stage, so expect lots of quirks (mainly because between the IDE and the debugged process stands the embedded HTTP server). So I need your comments, tests and ideas about it! Thanks in advance by those who are interested in that new feature. Regards, -- Beno?t Minisini From taboege at ...626... Sun Jul 28 14:57:26 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 28 Jul 2013 14:57:26 +0200 Subject: [Gambas-user] Backwards compatibility: anyone using gb.data's List class? Message-ID: <20130728125726.GB627@...2774...> Hi fellows, I want to commit some changes to the List class interface before the Wacken Open Air (31st Jul - 3rd Aug) and this would break backwards compatibility. Basically, I want to expose the List.Current element as a virtual object because it will get some methods and properties. I have actually done it a backwards compatible way now: List.Current remains what it was: a Variant and I added List.Item which is the virtual object representation of the current element. This, however, seems more irritating than helpful. The other option was to change Current itself to the virtual container and add a Value property or something which is a shorthand for List.Current.Value - which is what Current was before. As I cannot decide which one is the better choice, I thought I just ask you or look if anyone actually cares :-) It is a search and replace task anyway to overcome this compatibility issue but maybe you've got a strong argument? Also, I feel I have to ask because the component is already marked "Stable but not finished"... Regards, Tobi From jscops at ...11... Mon Jul 29 02:05:56 2013 From: jscops at ...11... (Jack) Date: Mon, 29 Jul 2013 02:05:56 +0200 Subject: [Gambas-user] Scrolltext Message-ID: <51F5B1E4.7040302@...11...> Hello ! here you can find a little scrolltext writen in Gambas3. http://www.gambasforge.org/code-80-scrolltext.html Enjoy ! Jack From mmcg29440 at ...3163... Mon Jul 29 02:37:04 2013 From: mmcg29440 at ...3163... (Marty) Date: Sun, 28 Jul 2013 20:37:04 -0400 Subject: [Gambas-user] How do I edit a DataView control Message-ID: <51F5B930.9020907@...3163...> Hello All, I have a dataview control that is contained in a datasource. The datasource table property is set to a SQL command tat gets the data. I can see the data in the dataview and return the index of the selected row. From the documentation on the net it appears as though the individual cells can be edited. The graphic in the Gambas docs shows a cursor in a cell with an insertion point. I can read the data from the datasource with "var = datasource1!xxxx" but the converse "datasource1!xxxx = XX" raises an error. Not an array on form foo. I need to both display and edit the contents of the cell as well as add and delete records. So how do I do it in Gambas 3? Thanks in advance to all who offer answers. Marty:-) From cybercamera at ...626... Mon Jul 29 02:40:54 2013 From: cybercamera at ...626... (Cam Era) Date: Mon, 29 Jul 2013 10:40:54 +1000 Subject: [Gambas-user] Gambas 3.4.2 hanging on startup (Ubuntu 12.10 with Cinnamon desktop) Message-ID: Greetings all I am trying to run the latest Gambas (3.4.2) on Ubuntu 12.10 (x86) system running the Cinnamon desktop. I find that the application hangs part way through loading. I've run it perhaps 30 times, and only once or twice has it actually loaded to completion. Therefore, I know it can work fine once it actually does load completely. I've also launched the application with 'strace' and here is the output of the last few lines: ### ... time(NULL) = 1375054983 time(NULL) = 1375054983 time(NULL) = 1375054983 time(NULL) = 1375054983 time(NULL) = 1375054983 time(NULL) = 1375054983 time(NULL) = 1375054983 poll([{fd=31, events=POLLIN}], 1, 60000) = ? ERESTART_RESTARTBLOCK (To be restarted) ### The application hangs on the poll() It seems to be waitin for some kind o file resources to become available, but it never does. I have no issues running this same version of Gambas on other Ubuntu 12.10 systems running different desktops. Any suggestions to fix (or pointers as to to acquire additional information), would be appreciated. Thanks, -- Con From gambas at ...1... Mon Jul 29 02:53:19 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Jul 2013 02:53:19 +0200 Subject: [Gambas-user] How do I edit a DataView control In-Reply-To: <51F5B930.9020907@...3163...> References: <51F5B930.9020907@...3163...> Message-ID: <51F5BCFF.3080305@...1...> Le 29/07/2013 02:37, Marty a ?crit : > Hello All, > > I have a dataview control that is contained in a datasource. The > datasource table property is set to a SQL command tat gets the data. I > can see the data in the dataview and return the index of the selected row. > > From the documentation on the net it appears as though the individual > cells can be edited. The graphic in the Gambas docs shows a cursor in a > cell with an insertion point. I can read the data from the datasource > with "var = datasource1!xxxx" but the converse "datasource1!xxxx = XX" > raises an error. Not an array on form foo. > > I need to both display and edit the contents of the cell as well as add > and delete records. So how do I do it in Gambas 3? > > Thanks in advance to all who offer answers. > > Marty:-) > DataSource is read-only if it points at a SQL query. It is editable only if it points at a table. Regards, -- Beno?t Minisini From cybercamera at ...626... Mon Jul 29 02:59:24 2013 From: cybercamera at ...626... (Cam Era) Date: Mon, 29 Jul 2013 10:59:24 +1000 Subject: [Gambas-user] Gambas 3.4.2 hanging on startup (Ubuntu 12.10 with Cinnamon desktop) In-Reply-To: References: Message-ID: As a follow-up on this email, I have tested the following desktop environments (Unity, Gnome Classic), on the same version of Ubuntu (12.10) and all exhibit the same problem of Gambas hanging while loading, at exactly the same system call. This doesn't seem to therefore be a problem with the desktop environment, per-se. -- Con On Mon, Jul 29, 2013 at 10:40 AM, Cam Era wrote: > > Greetings all > > I am trying to run the latest Gambas (3.4.2) on Ubuntu 12.10 (x86) system > running the Cinnamon desktop. > > I find that the application hangs part way through loading. > > I've run it perhaps 30 times, and only once or twice has it actually > loaded to completion. Therefore, I know it can work fine once it actually > does load completely. > > I've also launched the application with 'strace' and here is the output of > the last few lines: > > ### > ... > time(NULL) = 1375054983 > time(NULL) = 1375054983 > time(NULL) = 1375054983 > time(NULL) = 1375054983 > time(NULL) = 1375054983 > time(NULL) = 1375054983 > time(NULL) = 1375054983 > poll([{fd=31, events=POLLIN}], 1, 60000) = ? ERESTART_RESTARTBLOCK (To be > restarted) > > ### > > The application hangs on the poll() It seems to be waitin for some kind o > file resources to become available, but it never does. > > > I have no issues running this same version of Gambas on other Ubuntu 12.10 > systems running different desktops. > > Any suggestions to fix (or pointers as to to acquire additional > information), would be appreciated. > > Thanks, > > -- Con > From gambas at ...1... Mon Jul 29 02:59:37 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Jul 2013 02:59:37 +0200 Subject: [Gambas-user] Gambas 3.4.2 hanging on startup (Ubuntu 12.10 with Cinnamon desktop) In-Reply-To: References: Message-ID: <51F5BE79.6070503@...1...> Le 29/07/2013 02:40, Cam Era a ?crit : > Greetings all > > I am trying to run the latest Gambas (3.4.2) on Ubuntu 12.10 (x86) system > running the Cinnamon desktop. > > I find that the application hangs part way through loading. > > I've run it perhaps 30 times, and only once or twice has it actually loaded > to completion. Therefore, I know it can work fine once it actually does > load completely. > > I've also launched the application with 'strace' and here is the output of > the last few lines: > > ### > ... > time(NULL) = 1375054983 > time(NULL) = 1375054983 > time(NULL) = 1375054983 > time(NULL) = 1375054983 > time(NULL) = 1375054983 > time(NULL) = 1375054983 > time(NULL) = 1375054983 > poll([{fd=31, events=POLLIN}], 1, 60000) = ? ERESTART_RESTARTBLOCK (To be > restarted) > > ### > > The application hangs on the poll() It seems to be waitin for some kind o > file resources to become available, but it never does. > > I have no issues running this same version of Gambas on other Ubuntu 12.10 > systems running different desktops. > > Any suggestions to fix (or pointers as to to acquire additional > information), would be appreciated. > > Thanks, > > -- Con Please run the development through 'gdb', hit CTRL+C when it freezes, and send me the gdb backtrace. $ cd /path/to/gambas3/ide/project $ gbc3 -agt $ gdb gbx3 ... (gdb) run ... ------> hit CTRL+C (gdb) bt ... -- Beno?t Minisini From cybercamera at ...626... Mon Jul 29 03:21:46 2013 From: cybercamera at ...626... (Cam Era) Date: Mon, 29 Jul 2013 11:21:46 +1000 Subject: [Gambas-user] Gambas 3.4.2 hanging on startup (Ubuntu 12.10 with Cinnamon desktop) In-Reply-To: <51F5BE79.6070503@...1...> References: <51F5BE79.6070503@...1...> Message-ID: Beno?t, thank you for the speedy response. Do I need to install a separate Gambas IDE source package to gain access to the project file you indicated? I've performed a search, but cannot find any path which leads me to an IDE project directory. In /usr/share/gambas3, i have the following: drwxr-xr-x 8 root root 4096 Jul 16 08:58 control drwxr-xr-x 14 root root 4096 Jul 16 08:58 examples -rwxr-xr-x 1 root root 4929289 Jul 22 16:47 gambas3.gambas drwxr-xr-x 2 root root 4096 Jul 26 15:04 mime drwxr-xr-x 2 root root 4096 Jul 26 15:04 icons drwxr-xr-x 2 root root 4096 Jul 26 15:04 gb.sdl drwxr-xr-x 2 root root 4096 Jul 26 15:05 info and the only references to Gambas and IDE I can find at all are these: /usr/share/app-install/desktop/gambas3-ide:gambas3.desktop /usr/share/doc/gambas3-ide /usr/share/doc/gambas3-ide/changelog.Debian.gz /usr/share/doc/gambas3-ide/copyright If I can find the exact filename/path I need to look for, I can 'locate' it and then I can run the commands you suggested below. Thanks again. -- Con On Mon, Jul 29, 2013 at 10:59 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 29/07/2013 02:40, Cam Era a ?crit : > > Please run the development through 'gdb', hit CTRL+C when it freezes, > and send me the gdb backtrace. > > $ cd /path/to/gambas3/ide/project > $ gbc3 -agt > $ gdb gbx3 > ... > (gdb) run > ... > ------> hit CTRL+C > (gdb) bt > ... > > -- > Beno?t Minisini > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jul 29 03:43:42 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Jul 2013 03:43:42 +0200 Subject: [Gambas-user] Gambas 3.4.2 hanging on startup (Ubuntu 12.10 with Cinnamon desktop) In-Reply-To: References: <51F5BE79.6070503@...1...> Message-ID: <51F5C8CE.9070400@...1...> Le 29/07/2013 03:21, Cam Era a ?crit : > Beno?t, > > thank you for the speedy response. > > Do I need to install a separate Gambas IDE source package to gain access to > the project file you indicated? > > I've performed a search, but cannot find any path which leads me to an IDE > project directory. > > In /usr/share/gambas3, i have the following: > > drwxr-xr-x 8 root root 4096 Jul 16 08:58 control > drwxr-xr-x 14 root root 4096 Jul 16 08:58 examples > -rwxr-xr-x 1 root root 4929289 Jul 22 16:47 gambas3.gambas > drwxr-xr-x 2 root root 4096 Jul 26 15:04 mime > drwxr-xr-x 2 root root 4096 Jul 26 15:04 icons > drwxr-xr-x 2 root root 4096 Jul 26 15:04 gb.sdl > drwxr-xr-x 2 root root 4096 Jul 26 15:05 info > > and the only references to Gambas and IDE I can find at all are these: > > /usr/share/app-install/desktop/gambas3-ide:gambas3.desktop > /usr/share/doc/gambas3-ide > /usr/share/doc/gambas3-ide/changelog.Debian.gz > /usr/share/doc/gambas3-ide/copyright > > If I can find the exact filename/path I need to look for, I can 'locate' it > and then I can run the commands you suggested below. > > Thanks again. > > -- Con > You must get Gambas sources, or better compile and install Gambas from sources, so that you can have debugging information. That may be useful to find where it freezes exactly... Regards, -- Beno?t Minisini From cybercamera at ...626... Mon Jul 29 03:44:27 2013 From: cybercamera at ...626... (Cam Era) Date: Mon, 29 Jul 2013 11:44:27 +1000 Subject: [Gambas-user] Gambas 3.4.2 hanging on startup (Ubuntu 12.10 with Cinnamon desktop) In-Reply-To: References: <51F5BE79.6070503@...1...> Message-ID: Beno?t, I've done some more research on the debugging steps you've provided below, and have found pointers on how to get this working. Will try and do so now and report back -- Con On Mon, Jul 29, 2013 at 11:21 AM, Cam Era wrote: > Beno?t, > > thank you for the speedy response. > > Do I need to install a separate Gambas IDE source package to gain access > to the project file you indicated? > From cybercamera at ...626... Mon Jul 29 03:59:35 2013 From: cybercamera at ...626... (Cam Era) Date: Mon, 29 Jul 2013 11:59:35 +1000 Subject: [Gambas-user] Gambas 3.4.2 hanging on startup (Ubuntu 12.10 with Cinnamon desktop) In-Reply-To: <51F5C8CE.9070400@...1...> References: <51F5BE79.6070503@...1...> <51F5C8CE.9070400@...1...> Message-ID: On Mon, Jul 29, 2013 at 11:43 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 29/07/2013 03:21, Cam Era a ?crit : > > > > You must get Gambas sources, or better compile and install Gambas from > sources, so that you can have debugging information. > > That may be useful to find where it freezes exactly... > > Regards, > > -- > Beno?t Minisini > Understood. I fetched the most recent Gambas sources, unpacked them, then followed your instructions. (I didn't recompile from source them, as I have an installed current version) I have the following as a result: Reading symbols from /usr/bin/gbx3...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/gbx3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". [New Thread 0xb14c3b40 (LWP 7734)] [New Thread 0xb0affb40 (LWP 7735)] [New Thread 0xb00ffb40 (LWP 7736)] [New Thread 0xaf46cb40 (LWP 7738)] [New Thread 0xaeb43b40 (LWP 7739)] [Thread 0xb00ffb40 (LWP 7736) exited] ^C Program received signal SIGINT, Interrupt. 0xb7fdd424 in __kernel_vsyscall () (gdb) bt #0 0xb7fdd424 in __kernel_vsyscall () #1 0xb7ea7690 in poll () from /lib/i386-linux-gnu/libc.so.6 #2 0xae1104e8 in _httpWait () from /usr/lib/i386-linux-gnu/libcups.so.2 #3 0xae110c8b in httpWait () from /usr/lib/i386-linux-gnu/libcups.so.2 #4 0xae110d83 in httpRead2 () from /usr/lib/i386-linux-gnu/libcups.so.2 #5 0xae111374 in httpFlush () from /usr/lib/i386-linux-gnu/libcups.so.2 #6 0xae12e8ec in cupsDoIORequest () from /usr/lib/i386-linux-gnu/libcups.so.2 #7 0xae12eaeb in cupsDoRequest () from /usr/lib/i386-linux-gnu/libcups.so.2 #8 0xae13540e in cupsGetDefault2 () from /usr/lib/i386-linux-gnu/libcups.so.2 #9 0xae10530a in cupsGetDests2 () from /usr/lib/i386-linux-gnu/libcups.so.2 #10 0xae105363 in cupsGetDests () from /usr/lib/i386-linux-gnu/libcups.so.2 #11 0xb6b9d454 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 #12 0xb6aea58e in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 #13 0xb6b01608 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 #14 0xb6b034a1 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 #15 0xb6b0625a in QPrinter::init(QPrinter::PrinterMode) () from /usr/lib/i386-linux-gnu/libQtGui.so.4 #16 0xb6b06adb in QPrinter::QPrinter(QPrinter::PrinterMode) () from /usr/lib/i386-linux-gnu/libQtGui.so.4 #17 0xb739e7e0 in ?? () from /usr/lib/gambas3/gb.qt4.so #18 0x08051c69 in ?? () #19 0x080522ff in ?? () #20 0x080525c9 in ?? () #21 0x08052c4c in ?? () #22 0x0807c3e5 in ?? () #23 0x08050f43 in ?? () #24 0x08051585 in ?? () #25 0x080526a0 in ?? () #26 0x0806c94e in ?? () #27 0x08055eb6 in ?? () #28 0xb737f936 in ?? () from /usr/lib/gambas3/gb.qt4.so #29 0x08051c69 in ?? () #30 0x0807c63b in ?? () #31 0x08050f43 in ?? () #32 0x08051585 in ?? () #33 0x0804b44c in ?? () #34 0xb7de04d3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6 #35 0x0804b5b9 in ?? () -- Con From gambas at ...1... Mon Jul 29 04:15:54 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Jul 2013 04:15:54 +0200 Subject: [Gambas-user] Gambas 3.4.2 hanging on startup (Ubuntu 12.10 with Cinnamon desktop) In-Reply-To: References: <51F5BE79.6070503@...1...> <51F5C8CE.9070400@...1...> Message-ID: <51F5D05A.8070209@...1...> Le 29/07/2013 03:59, Cam Era a ?crit : > On Mon, Jul 29, 2013 at 11:43 AM, Beno?t Minisini < > gambas at ...1...> wrote: > >> Le 29/07/2013 03:21, Cam Era a ?crit : >>> >> >> You must get Gambas sources, or better compile and install Gambas from >> sources, so that you can have debugging information. >> >> That may be useful to find where it freezes exactly... >> >> Regards, >> >> -- >> Beno?t Minisini >> > > > > Understood. > > I fetched the most recent Gambas sources, unpacked them, then followed your > instructions. (I didn't recompile from source them, as I have an installed > current version) > > I have the following as a result: > > > Reading symbols from /usr/bin/gbx3...(no debugging symbols found)...done. > (gdb) run > Starting program: /usr/bin/gbx3 > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". > [New Thread 0xb14c3b40 (LWP 7734)] > [New Thread 0xb0affb40 (LWP 7735)] > [New Thread 0xb00ffb40 (LWP 7736)] > [New Thread 0xaf46cb40 (LWP 7738)] > [New Thread 0xaeb43b40 (LWP 7739)] > [Thread 0xb00ffb40 (LWP 7736) exited] > > ^C > Program received signal SIGINT, Interrupt. > 0xb7fdd424 in __kernel_vsyscall () > (gdb) bt > #0 0xb7fdd424 in __kernel_vsyscall () > #1 0xb7ea7690 in poll () from /lib/i386-linux-gnu/libc.so.6 > #2 0xae1104e8 in _httpWait () from /usr/lib/i386-linux-gnu/libcups.so.2 > #3 0xae110c8b in httpWait () from /usr/lib/i386-linux-gnu/libcups.so.2 > #4 0xae110d83 in httpRead2 () from /usr/lib/i386-linux-gnu/libcups.so.2 > #5 0xae111374 in httpFlush () from /usr/lib/i386-linux-gnu/libcups.so.2 > #6 0xae12e8ec in cupsDoIORequest () from > /usr/lib/i386-linux-gnu/libcups.so.2 > #7 0xae12eaeb in cupsDoRequest () from /usr/lib/i386-linux-gnu/libcups.so.2 > #8 0xae13540e in cupsGetDefault2 () from > /usr/lib/i386-linux-gnu/libcups.so.2 > #9 0xae10530a in cupsGetDests2 () from /usr/lib/i386-linux-gnu/libcups.so.2 > #10 0xae105363 in cupsGetDests () from /usr/lib/i386-linux-gnu/libcups.so.2 > #11 0xb6b9d454 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > #12 0xb6aea58e in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > #13 0xb6b01608 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > #14 0xb6b034a1 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > #15 0xb6b0625a in QPrinter::init(QPrinter::PrinterMode) () > from /usr/lib/i386-linux-gnu/libQtGui.so.4 > #16 0xb6b06adb in QPrinter::QPrinter(QPrinter::PrinterMode) () > from /usr/lib/i386-linux-gnu/libQtGui.so.4 > #17 0xb739e7e0 in ?? () from /usr/lib/gambas3/gb.qt4.so > #18 0x08051c69 in ?? () > #19 0x080522ff in ?? () > #20 0x080525c9 in ?? () > #21 0x08052c4c in ?? () > #22 0x0807c3e5 in ?? () > #23 0x08050f43 in ?? () > #24 0x08051585 in ?? () > #25 0x080526a0 in ?? () > #26 0x0806c94e in ?? () > #27 0x08055eb6 in ?? () > #28 0xb737f936 in ?? () from /usr/lib/gambas3/gb.qt4.so > #29 0x08051c69 in ?? () > #30 0x0807c63b in ?? () > #31 0x08050f43 in ?? () > #32 0x08051585 in ?? () > #33 0x0804b44c in ?? () > #34 0xb7de04d3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6 > #35 0x0804b5b9 in ?? () > > -- Con Apparently the Qt library freezes while talking with CUPS. I have a printer on my Ubuntu there, with CUPS installed, and I have no freeze problem, so please check your printer & CUPS configuration. Regards, -- Beno?t Minisini From cybercamera at ...626... Mon Jul 29 04:18:15 2013 From: cybercamera at ...626... (Cam Era) Date: Mon, 29 Jul 2013 12:18:15 +1000 Subject: [Gambas-user] Gambas 3.4.2 hanging on startup (Ubuntu 12.10 with Cinnamon desktop) In-Reply-To: <51F5D05A.8070209@...1...> References: <51F5BE79.6070503@...1...> <51F5C8CE.9070400@...1...> <51F5D05A.8070209@...1...> Message-ID: Beno?t, thanks for zeroing in on this issue. I'll check the situation out and report back if I can find any generic fix that can help others. -- Con On Mon, Jul 29, 2013 at 12:15 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 29/07/2013 03:59, Cam Era a ?crit : > > On Mon, Jul 29, 2013 at 11:43 AM, Beno?t Minisini < > > gambas at ...1...> wrote: > > > >> Le 29/07/2013 03:21, Cam Era a ?crit : > >>> > >> > >> You must get Gambas sources, or better compile and install Gambas from > >> sources, so that you can have debugging information. > >> > >> That may be useful to find where it freezes exactly... > >> > >> Regards, > >> > >> -- > >> Beno?t Minisini > >> > > > > > > > > Understood. > > > > I fetched the most recent Gambas sources, unpacked them, then followed > your > > instructions. (I didn't recompile from source them, as I have an > installed > > current version) > > > > I have the following as a result: > > > > > > Reading symbols from /usr/bin/gbx3...(no debugging symbols found)...done. > > (gdb) run > > Starting program: /usr/bin/gbx3 > > [Thread debugging using libthread_db enabled] > > Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". > > [New Thread 0xb14c3b40 (LWP 7734)] > > [New Thread 0xb0affb40 (LWP 7735)] > > [New Thread 0xb00ffb40 (LWP 7736)] > > [New Thread 0xaf46cb40 (LWP 7738)] > > [New Thread 0xaeb43b40 (LWP 7739)] > > [Thread 0xb00ffb40 (LWP 7736) exited] > > > > ^C > > Program received signal SIGINT, Interrupt. > > 0xb7fdd424 in __kernel_vsyscall () > > (gdb) bt > > #0 0xb7fdd424 in __kernel_vsyscall () > > #1 0xb7ea7690 in poll () from /lib/i386-linux-gnu/libc.so.6 > > #2 0xae1104e8 in _httpWait () from /usr/lib/i386-linux-gnu/libcups.so.2 > > #3 0xae110c8b in httpWait () from /usr/lib/i386-linux-gnu/libcups.so.2 > > #4 0xae110d83 in httpRead2 () from /usr/lib/i386-linux-gnu/libcups.so.2 > > #5 0xae111374 in httpFlush () from /usr/lib/i386-linux-gnu/libcups.so.2 > > #6 0xae12e8ec in cupsDoIORequest () from > > /usr/lib/i386-linux-gnu/libcups.so.2 > > #7 0xae12eaeb in cupsDoRequest () from > /usr/lib/i386-linux-gnu/libcups.so.2 > > #8 0xae13540e in cupsGetDefault2 () from > > /usr/lib/i386-linux-gnu/libcups.so.2 > > #9 0xae10530a in cupsGetDests2 () from > /usr/lib/i386-linux-gnu/libcups.so.2 > > #10 0xae105363 in cupsGetDests () from > /usr/lib/i386-linux-gnu/libcups.so.2 > > #11 0xb6b9d454 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > #12 0xb6aea58e in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > #13 0xb6b01608 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > #14 0xb6b034a1 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > #15 0xb6b0625a in QPrinter::init(QPrinter::PrinterMode) () > > from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > #16 0xb6b06adb in QPrinter::QPrinter(QPrinter::PrinterMode) () > > from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > #17 0xb739e7e0 in ?? () from /usr/lib/gambas3/gb.qt4.so > > #18 0x08051c69 in ?? () > > #19 0x080522ff in ?? () > > #20 0x080525c9 in ?? () > > #21 0x08052c4c in ?? () > > #22 0x0807c3e5 in ?? () > > #23 0x08050f43 in ?? () > > #24 0x08051585 in ?? () > > #25 0x080526a0 in ?? () > > #26 0x0806c94e in ?? () > > #27 0x08055eb6 in ?? () > > #28 0xb737f936 in ?? () from /usr/lib/gambas3/gb.qt4.so > > #29 0x08051c69 in ?? () > > #30 0x0807c63b in ?? () > > #31 0x08050f43 in ?? () > > #32 0x08051585 in ?? () > > #33 0x0804b44c in ?? () > > #34 0xb7de04d3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6 > > #35 0x0804b5b9 in ?? () > > > > -- Con > > Apparently the Qt library freezes while talking with CUPS. > > I have a printer on my Ubuntu there, with CUPS installed, and I have no > freeze problem, so please check your printer & CUPS configuration. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Mon Jul 29 16:09:19 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 29 Jul 2013 16:09:19 +0200 Subject: [Gambas-user] FtpClient from gb.net.curl has problems with files > 2 GiB Message-ID: <20130729140919.GA1320@...2774...> Hi, someone pointed out that he has problems with uploading files > 2 GiB with the FtpClient. FileZilla and the curl command line tool are working fine so it's neither curl nor the server who are misbehaving. I don't know curl very well but the ftpupload.c example in the curl sources uses a CURLOPT_INFILESIZE_LARGE option which may be the thing the FtpClient needs to do, too. CURLOPT_MAXFILESIZE_LARGE may be the download equivalent, although I don't know if the download file size is limited by default... Both options are available since version 7.11 of curl. Could anyone with knowledge about curl comment on this, please? Regards, Tobi From abbat.81 at ...787... Mon Jul 29 17:42:40 2013 From: abbat.81 at ...787... (abbat81) Date: Mon, 29 Jul 2013 08:42:40 -0700 (PDT) Subject: [Gambas-user] Time Format => Error Message-ID: <1375112560058-42654.post@...3046...> Hello. It was good to use Time(0, 0, seconds) but for now I need to use more seconds. So, now I get: Print Time(0, 0, 32767) => 09:06:07 Print Time(0, 0, 32768) => 14:53:52 (00/00/0000 14:53:52) How can I get Format("hh:nn:ss") from seconds? Thanks. -- View this message in context: http://gambas.8142.n7.nabble.com/Time-Format-Error-tp42654.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 29 18:04:32 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 29 Jul 2013 18:04:32 +0200 Subject: [Gambas-user] Time Format => Error In-Reply-To: <1375112560058-42654.post@...3046...> References: <1375112560058-42654.post@...3046...> Message-ID: <51F69290.7030301@...1...> Le 29/07/2013 17:42, abbat81 a ?crit : > > Hello. > It was good to use Time(0, 0, seconds) but for now I need to use more > seconds. > > So, now I get: > > Print Time(0, 0, 32767) => 09:06:07 > Print Time(0, 0, 32768) => 14:53:52 (00/00/0000 14:53:52) > > How can I get Format("hh:nn:ss") from seconds? > > Thanks. > Format(nSeconds / 3600 / 24, "hh:nn:ss") -- Beno?t Minisini From abbat.81 at ...787... Mon Jul 29 18:22:36 2013 From: abbat.81 at ...787... (abbat81) Date: Mon, 29 Jul 2013 09:22:36 -0700 (PDT) Subject: [Gambas-user] Time Format => Error In-Reply-To: <51F69290.7030301@...1...> References: <1375112560058-42654.post@...3046...> <51F69290.7030301@...1...> Message-ID: <1375114956899-42656.post@...3046...> Beno?t Minisini wrote > Format(nSeconds / 3600 / 24, "hh:nn:ss") Beno?t, I cant understand how to use this. All I got - "bad format string" -- View this message in context: http://gambas.8142.n7.nabble.com/Time-Format-Error-tp42654p42656.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jul 29 18:50:08 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 29 Jul 2013 18:50:08 +0200 Subject: [Gambas-user] Time Format => Error In-Reply-To: <1375114956899-42656.post@...3046...> References: <1375112560058-42654.post@...3046...> <51F69290.7030301@...1...> <1375114956899-42656.post@...3046...> Message-ID: <51F69D40.5050804@...1...> Le 29/07/2013 18:22, abbat81 a ?crit : > Beno?t Minisini wrote >> Format(nSeconds / 3600 / 24, "hh:nn:ss") > > > Beno?t, I cant understand how to use this. > > All I got - "bad format string" > Sorry, I meant: Format(CDate(nSeconds / 3600 / 24), "hh:nn:ss") -- Beno?t Minisini From nemh at ...2007... Mon Jul 29 19:19:11 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Mon, 29 Jul 2013 19:19:11 +0200 Subject: [Gambas-user] Time Format => Error In-Reply-To: <1375112560058-42654.post@...3046...> References: <1375112560058-42654.post@...3046...> Message-ID: <20130729191911.045b253b@...3104...> Or you may calculate manually: Dim nNum As Long = 32768 Dim nHour As Long Dim nMin, nSec As Byte nHour = Int(nNum / 3600) nMin = Int(nNum / 60) - nHour * 60 nSec = nNum - (nHour * 3600 + nMin * 60) > > Hello. > It was good to use Time(0, 0, seconds) but for now I need to use more > seconds. > > So, now I get: > > Print Time(0, 0, 32767) => 09:06:07 > Print Time(0, 0, 32768) => 14:53:52 (00/00/0000 14:53:52) > > How can I get Format("hh:nn:ss") from seconds? > > Thanks. From eilert-sprachen at ...221... Tue Jul 30 00:16:05 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 30 Jul 2013 00:16:05 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> <51F2C6E3.9050005@...221...> <51F2DE3E.9080607@...1...> Message-ID: <51F6E9A5.1060500@...221...> Thanks a lot for all the good advice. In the end, it turned out that it was only the option to expect mails with more than line which was missing, i. e. a mere TRUE. Everything is running great now! Rolf Am 26.07.2013 23:04, schrieb Randall Morgan: > Yes, Benoit is right. > > I just did a quick demo to get you started. I used explicit commands > because there are times you may need to do this. But the GB docs layout > everything else. So read the docs and experiment. Also read the info on the > two sites I linked to so that you have an understanding of what GB is doing > for you and what to do when GB doesn't provide a solution to your needs. > > > > > On Fri, Jul 26, 2013 at 1:38 PM, Beno?t Minisini < > gambas at ...1...> wrote: > >> Le 26/07/2013 20:58, Sprachschule Eilert a ?crit : >>> Hi Randall, >>> >>> I now got the gb.net.pop3 component to work, and your example works too. >>> However, I only receive the message headers, not the message bodies, and >>> the messages aren't downloaded and deleted from the server. >>> >>> This is what I got, when there were 3 messages in the inbox: >>> >>> Connected to mail server.... >>> +OK Hello there. <29021.1374864315 at ...37...> >>> There are 3 Messages in your inbox. >>> You inbox contains 7501 bytes of data. >>> 1 802 >>> 2 5581 >>> 3 1118 >>> Message: 1 802 >>> >>> ---------------------------------------------------- >>> +OK 802 octets follow. >>> >>> >>> Message: 2 5581 >>> >>> ---------------------------------------------------- >>> Received: (qmail 28836 invoked from network); 26 Jul 2013 19:35:08 +0200 >>> >>> >>> Message: 3 1118 >>> >>> ---------------------------------------------------- >>> Received: from 95.58.25.201.megaline.telecom.kz (HELO 95.58.25.201) >>> (95.58.25.201) >>> >>> >>> Closing Connection. >>> >>> >>> As soon as I know how to get complete messages (in my case, these would >>> be the contact forms sent by customers via the contact form tool on my >>> website), I would add the DELE command to clean them from the server. >>> >>> Rolf >>> >> >> You don't have to issue the POP3 commands explicitely with the >> Pop3Client class. Look at the documentation: >> >> hConn.Count returns the number of messages. >> >> hConn[i] returns the i-th message. >> >> hConn[i].Size returns the message size. >> >> hConn[i].Text returns the message contents "as is". >> >> hConn[i].Message returns the message parsed as a MimeMessage object. >> >> hConn[i].Delete marks the message as being deleted. It will be actually >> deleted when you call hConn.Close(), but not if you call hConn.Abort(). >> >> Then go look at the MimeMessage class documentation of gb.mime! >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > From eilert-sprachen at ...221... Tue Jul 30 00:20:07 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 30 Jul 2013 00:20:07 +0200 Subject: [Gambas-user] Receiving an email In-Reply-To: <51F2DE3E.9080607@...1...> References: <51E3D473.5080300@...221...> <51E45C96.2030207@...221...> <20130715211222.GH516@...2774...> <51F2C6E3.9050005@...221...> <51F2DE3E.9080607@...1...> Message-ID: <51F6EA97.2080003@...221...> Am 26.07.2013 22:38, schrieb Beno?t Minisini: > Le 26/07/2013 20:58, Sprachschule Eilert a ?crit : >> Hi Randall, >> >> I now got the gb.net.pop3 component to work, and your example works too. >> However, I only receive the message headers, not the message bodies, and >> the messages aren't downloaded and deleted from the server. >> >> This is what I got, when there were 3 messages in the inbox: >> >> Connected to mail server.... >> +OK Hello there. <29021.1374864315 at ...37...> >> There are 3 Messages in your inbox. >> You inbox contains 7501 bytes of data. >> 1 802 >> 2 5581 >> 3 1118 >> Message: 1 802 >> >> ---------------------------------------------------- >> +OK 802 octets follow. >> >> >> Message: 2 5581 >> >> ---------------------------------------------------- >> Received: (qmail 28836 invoked from network); 26 Jul 2013 19:35:08 +0200 >> >> >> Message: 3 1118 >> >> ---------------------------------------------------- >> Received: from 95.58.25.201.megaline.telecom.kz (HELO 95.58.25.201) >> (95.58.25.201) >> >> >> Closing Connection. >> >> >> As soon as I know how to get complete messages (in my case, these would >> be the contact forms sent by customers via the contact form tool on my >> website), I would add the DELE command to clean them from the server. >> >> Rolf >> > > You don't have to issue the POP3 commands explicitely with the > Pop3Client class. Look at the documentation: > > hConn.Count returns the number of messages. > > hConn[i] returns the i-th message. > > hConn[i].Size returns the message size. > > hConn[i].Text returns the message contents "as is". > > hConn[i].Message returns the message parsed as a MimeMessage object. > > hConn[i].Delete marks the message as being deleted. It will be actually > deleted when you call hConn.Close(), but not if you call hConn.Abort(). > > Then go look at the MimeMessage class documentation of gb.mime! > > Regards, > I found the reason why Randall's example didn't work like expected: The option for mails with more than line was missing. Nevertheless, interesting tipps you had here for me, I'll keep gb.mime in mind. And thanks for 3.4.2, running perfectly on my laptop! Regards Rolf From gambas at ...1... Tue Jul 30 01:28:38 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 30 Jul 2013 01:28:38 +0200 Subject: [Gambas-user] FtpClient from gb.net.curl has problems with files > 2 GiB In-Reply-To: <20130729140919.GA1320@...2774...> References: <20130729140919.GA1320@...2774...> Message-ID: <51F6FAA6.2070409@...1...> Le 29/07/2013 16:09, Tobias Boege a ?crit : > Hi, > > someone pointed out that he has problems with uploading files > 2 GiB with > the FtpClient. FileZilla and the curl command line tool are working fine so > it's neither curl nor the server who are misbehaving. > > I don't know curl very well but the ftpupload.c example in the curl sources > uses a CURLOPT_INFILESIZE_LARGE option which may be the thing the FtpClient > needs to do, too. CURLOPT_MAXFILESIZE_LARGE may be the download equivalent, > although I don't know if the download file size is limited by default... > Both options are available since version 7.11 of curl. > > Could anyone with knowledge about curl comment on this, please? > > Regards, > Tobi > Is it better with revision #5766? (I did what you suggested). -- Beno?t Minisini From shanep1967 at ...169... Tue Jul 30 02:44:08 2013 From: shanep1967 at ...169... (Shane) Date: Tue, 30 Jul 2013 10:44:08 +1000 Subject: [Gambas-user] ftp client Message-ID: <51F70C58.7040302@...169...> how do i redirect the commands printed to the console to a text area or something when connecting to a ftp server? From bbruen at ...2308... Tue Jul 30 04:48:21 2013 From: bbruen at ...2308... (Bruce) Date: Tue, 30 Jul 2013 12:18:21 +0930 Subject: [Gambas-user] Gambas 3.4.2 hanging on startup (Ubuntu 12.10 with Cinnamon desktop) In-Reply-To: References: <51F5BE79.6070503@...1...> <51F5C8CE.9070400@...1...> <51F5D05A.8070209@...1...> Message-ID: <1375152501.4074.37.camel@...2688...> On Mon, 2013-07-29 at 12:18 +1000, Cam Era wrote: > Beno?t, > > thanks for zeroing in on this issue. I'll check the situation out and > report back if I can find any generic fix that can help others. > > -- Con > > > On Mon, Jul 29, 2013 at 12:15 PM, Beno?t Minisini < > gambas at ...1...> wrote: > > > Le 29/07/2013 03:59, Cam Era a ?crit : > > > On Mon, Jul 29, 2013 at 11:43 AM, Beno?t Minisini < > > > gambas at ...1...> wrote: > > > > > >> Le 29/07/2013 03:21, Cam Era a ?crit : > > >>> > > >> > > >> You must get Gambas sources, or better compile and install Gambas from > > >> sources, so that you can have debugging information. > > >> > > >> That may be useful to find where it freezes exactly... > > >> > > >> Regards, > > >> > > >> -- > > >> Beno?t Minisini > > >> > > > > > > > > > > > > Understood. > > > > > > I fetched the most recent Gambas sources, unpacked them, then followed > > your > > > instructions. (I didn't recompile from source them, as I have an > > installed > > > current version) > > > > > > I have the following as a result: > > > > > > > > > Reading symbols from /usr/bin/gbx3...(no debugging symbols found)...done. > > > (gdb) run > > > Starting program: /usr/bin/gbx3 > > > [Thread debugging using libthread_db enabled] > > > Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". > > > [New Thread 0xb14c3b40 (LWP 7734)] > > > [New Thread 0xb0affb40 (LWP 7735)] > > > [New Thread 0xb00ffb40 (LWP 7736)] > > > [New Thread 0xaf46cb40 (LWP 7738)] > > > [New Thread 0xaeb43b40 (LWP 7739)] > > > [Thread 0xb00ffb40 (LWP 7736) exited] > > > > > > ^C > > > Program received signal SIGINT, Interrupt. > > > 0xb7fdd424 in __kernel_vsyscall () > > > (gdb) bt > > > #0 0xb7fdd424 in __kernel_vsyscall () > > > #1 0xb7ea7690 in poll () from /lib/i386-linux-gnu/libc.so.6 > > > #2 0xae1104e8 in _httpWait () from /usr/lib/i386-linux-gnu/libcups.so.2 > > > #3 0xae110c8b in httpWait () from /usr/lib/i386-linux-gnu/libcups.so.2 > > > #4 0xae110d83 in httpRead2 () from /usr/lib/i386-linux-gnu/libcups.so.2 > > > #5 0xae111374 in httpFlush () from /usr/lib/i386-linux-gnu/libcups.so.2 > > > #6 0xae12e8ec in cupsDoIORequest () from > > > /usr/lib/i386-linux-gnu/libcups.so.2 > > > #7 0xae12eaeb in cupsDoRequest () from > > /usr/lib/i386-linux-gnu/libcups.so.2 > > > #8 0xae13540e in cupsGetDefault2 () from > > > /usr/lib/i386-linux-gnu/libcups.so.2 > > > #9 0xae10530a in cupsGetDests2 () from > > /usr/lib/i386-linux-gnu/libcups.so.2 > > > #10 0xae105363 in cupsGetDests () from > > /usr/lib/i386-linux-gnu/libcups.so.2 > > > #11 0xb6b9d454 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > > #12 0xb6aea58e in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > > #13 0xb6b01608 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > > #14 0xb6b034a1 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > > #15 0xb6b0625a in QPrinter::init(QPrinter::PrinterMode) () > > > from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > > #16 0xb6b06adb in QPrinter::QPrinter(QPrinter::PrinterMode) () > > > from /usr/lib/i386-linux-gnu/libQtGui.so.4 > > > #17 0xb739e7e0 in ?? () from /usr/lib/gambas3/gb.qt4.so > > > #18 0x08051c69 in ?? () > > > #19 0x080522ff in ?? () > > > #20 0x080525c9 in ?? () > > > #21 0x08052c4c in ?? () > > > #22 0x0807c3e5 in ?? () > > > #23 0x08050f43 in ?? () > > > #24 0x08051585 in ?? () > > > #25 0x080526a0 in ?? () > > > #26 0x0806c94e in ?? () > > > #27 0x08055eb6 in ?? () > > > #28 0xb737f936 in ?? () from /usr/lib/gambas3/gb.qt4.so > > > #29 0x08051c69 in ?? () > > > #30 0x0807c63b in ?? () > > > #31 0x08050f43 in ?? () > > > #32 0x08051585 in ?? () > > > #33 0x0804b44c in ?? () > > > #34 0xb7de04d3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6 > > > #35 0x0804b5b9 in ?? () > > > > > > -- Con > > > > Apparently the Qt library freezes while talking with CUPS. > > > > I have a printer on my Ubuntu there, with CUPS installed, and I have no > > freeze problem, so please check your printer & CUPS configuration. > > > > Regards, > > > > -- > > Beno?t Minisini > > This happened to me several months ago. It was caused by a non-existent network printer. From memory, cups goes off looking for that printer forever for some reason or other. hth Bruce From cybercamera at ...626... Tue Jul 30 05:19:22 2013 From: cybercamera at ...626... (Cam Era) Date: Tue, 30 Jul 2013 13:19:22 +1000 Subject: [Gambas-user] Gambas 3.4.2 hanging on startup (Ubuntu 12.10 with Cinnamon desktop) In-Reply-To: <1375152501.4074.37.camel@...2688...> References: <51F5BE79.6070503@...1...> <51F5C8CE.9070400@...1...> <51F5D05A.8070209@...1...> <1375152501.4074.37.camel@...2688...> Message-ID: On Tue, Jul 30, 2013 at 12:48 PM, Bruce wrote: > > > This happened to me several months ago. It was caused by a non-existent > network printer. From memory, cups goes off looking for that printer > forever for some reason or other. > Bruce, you are indeed correct, modulo the non-existence network printer. The printers are certainly there, but there's obviously some bad chemistry with the CUPS client which causes Gambas to freeze indefinitely. Thanks for your feedback, it confirms what I've seen. And thanks to Beno?t, for his keen eye and speedy responses. -- Con From shanep1967 at ...169... Tue Jul 30 10:58:40 2013 From: shanep1967 at ...169... (Shane) Date: Tue, 30 Jul 2013 18:58:40 +1000 Subject: [Gambas-user] Usb Message-ID: <51F78040.7000307@...169...> is it possible to list all the usb devices on a system? From nemh at ...2007... Tue Jul 30 11:13:19 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Tue, 30 Jul 2013 11:13:19 +0200 Subject: [Gambas-user] Usb In-Reply-To: <51F78040.7000307@...169...> References: <51F78040.7000307@...169...> Message-ID: <20130730111319.430c8fd9@...3118...> > is it possible to list all the usb devices on a system? > Yeah, the lsusb command is your friend. From shanep1967 at ...169... Tue Jul 30 11:30:22 2013 From: shanep1967 at ...169... (Shane) Date: Tue, 30 Jul 2013 19:30:22 +1000 Subject: [Gambas-user] Usb In-Reply-To: <20130730111319.430c8fd9@...3118...> References: <51F78040.7000307@...169...> <20130730111319.430c8fd9@...3118...> Message-ID: <51F787AE.20606@...169...> On 30/07/13 19:13, Kende Kriszti?n wrote: >> is it possible to list all the usb devices on a system? >> > Yeah, the lsusb command is your friend. > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I should have said usb drive I was thinking using dev some how From nemh at ...2007... Tue Jul 30 11:52:40 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Tue, 30 Jul 2013 11:52:40 +0200 Subject: [Gambas-user] Usb In-Reply-To: <51F787AE.20606@...169...> References: <51F78040.7000307@...169...> <20130730111319.430c8fd9@...3118...> <51F787AE.20606@...169...> Message-ID: <20130730115240.1330b4d0@...3118...> > >> is it possible to list all the usb devices on a system? > >> > > Yeah, the lsusb command is your friend. > > > > I should have said usb drive I was thinking using dev some how > No problem, I use this: Dim item, dev, name As String For Each item In Dir("/dev/disk/by-id", "usb-*", gb.Link) dev = Stat("/dev/disk/by-id/" & item).Link dev = "/dev/" & Right(dev, - RInStr(dev, "/")) If Len(dev) = 8 name = Right(item, -4) name = Left(name, RInStr(name, "_")) Print dev & " " & Replace(name, "_", " ") Endif Next From nemh at ...2007... Tue Jul 30 11:54:36 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Tue, 30 Jul 2013 11:54:36 +0200 Subject: [Gambas-user] Usb In-Reply-To: <51F787AE.20606@...169...> References: <51F78040.7000307@...169...> <20130730111319.430c8fd9@...3118...> <51F787AE.20606@...169...> Message-ID: <20130730115436.1eb38add@...3118...> > >> is it possible to list all the usb devices on a system? > >> > > Yeah, the lsusb command is your friend. > > > > I should have said usb drive I was thinking using dev some how > No problem, I use this for pendrives: Dim item, dev, name As String For Each item In Dir("/dev/disk/by-id", "usb-*", gb.Link) dev = Stat("/dev/disk/by-id/" & item).Link dev = "/dev/" & Right(dev, - RInStr(dev, "/")) If Len(dev) = 8 name = Right(item, -4) name = Left(name, RInStr(name, "_")) Print dev & " " & Replace(name, "_", " ") Endif Next This not work with HDDs. From eilert-sprachen at ...221... Tue Jul 30 19:47:35 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 30 Jul 2013 19:47:35 +0200 Subject: [Gambas-user] smtp-client mail body Message-ID: <51F7FC37.2050307@...221...> Hi folks, just experimenting with the smtp-client from gb.net.smtp. 1. I do not find the way to add a message text, so I'm missing some .message or .body string property. 2. When I want to attach a pdf, is binary the correct way of encoding the attachment? Thanks for your advice Rolf From willy at ...2734... Tue Jul 30 23:18:30 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 30 Jul 2013 23:18:30 +0200 Subject: [Gambas-user] Error in Gambas documentation for gb.map Message-ID: <1375219110.7607.0.camel@...3024...> I get this error on the documentation page for gb.map at http://gambasdoc.org/help/comp/gb.map?v3 -- Unexpected error while displaying this page. 'UserControl' class is missing in gb.map component exported classes CComponent.Load.594 -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From eilert-sprachen at ...221... Wed Jul 31 00:24:28 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 31 Jul 2013 00:24:28 +0200 Subject: [Gambas-user] smtp-client doesn't return Message-ID: <51F83D1C.9090109@...221...> Ok, maybe I got this completely wrong, so here's my first trial with gb.net.smtp: Public Sub Main() Dim email As New SmtpClient With email .Add("Is this the mailtext?") .To.Add("mymainemail at ...3165...") .From = "sender at ...3166..." .Subject = "Just a test" .Port = 25 .Host = "smtp.provider.de" .User = "username" .Password = "password" End With email.Send End Everything is accepted, but email.Send never returns, i. e. the program never stops and I've never got an email. Does .Add really add the message text, or is it for attachments only? Where would I have to add the message body text then? The plan is to automatically send an email like from an ordinary mail client (Thunderbird) via my smtp provider to the receiver. There should be a mail text and a pdf attached. Regards Rolf From sundar_ima at ...251... Wed Jul 31 04:02:15 2013 From: sundar_ima at ...251... (sundar j) Date: 31 Jul 2013 02:02:15 -0000 Subject: [Gambas-user] =?utf-8?q?Usb?= Message-ID: <1375178107.S.5444.23708.H.TktlbmRlIEtyaXN6dGnDoW4AUmU6IFtHYW1iYXMtdXNlcl0gVXNi.RU.jfsv, jfs1, w2273, 31, 214.f4-234-169.lb.old.1375236135.19092@...2802...> Use dbus component for reliable usb detection. Have a look at these links http://gambasdoc.org/help/comp/gb.dbus?v3http://udisks.freedesktop.org/docs/1.0.5/Device.html#Device:DeviceFile From: Kende Kriszti n <nemh at ...2007...> Sent: Tue, 30 Jul 2013 15:25:07 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] Usb > >> is it possible to list all the usb devices on a system? > >> > > Yeah, the lsusb command is your friend. > > > > I should have said usb drive I was thinking using dev some how > No problem, I use this for pendrives: Dim item, dev, name As String For Each item In Dir("/dev/disk/by-id", "usb-*", gb.Link)  dev = Stat("/dev/disk/by-id/" & item).Link  dev = "/dev/" & Right(dev, - RInStr(dev, "/"))  If Len(dev) = 8    name = Right(item, -4)    name = Left(name, RInStr(name, "_"))    Print dev & " " & Replace(name, "_", " ")  Endif Next This not work with HDDs. ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jprovan at ...626... Wed Jul 31 07:05:07 2013 From: jprovan at ...626... (Jim Provan) Date: Wed, 31 Jul 2013 00:05:07 -0500 Subject: [Gambas-user] Cloning a control Message-ID: This is probably a noob question, but then, I am a noob to Gambas, but not to programming in general. How do you clone a control ? I want to make a copy of a control. I have done this in C#, and use it fairly frequently in an app that I am writing, but cannot figure out how to accomplish this in Gambas. Jim Provan From gambas.fr at ...626... Wed Jul 31 12:20:36 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 31 Jul 2013 12:20:36 +0200 Subject: [Gambas-user] Cloning a control In-Reply-To: References: Message-ID: Le 31 juil. 2013 07:06, "Jim Provan" a ?crit : > > This is probably a noob question, but then, I am a noob to Gambas, but not > to programming in general. How do you clone a control ? > > I want to make a copy of a control. I have done this in C#, and use it > fairly frequently in an app that I am writing, but cannot figure out how to > accomplish this in Gambas. > > > Jim Provan http://www.gambasforge.org/code-62-copier-un-controle-ou-un-conteneur-et-ses-enfants.html Its in french but it is what you want to achieve > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Wed Jul 31 12:46:29 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 31 Jul 2013 11:46:29 +0100 (BST) Subject: [Gambas-user] R: Another use case of gb.openal In-Reply-To: <51EE9448.803@...1...> Message-ID: <1375267589.16923.YahooMailBasic@...3054...> Hello Beno?t, I'ld like to come back on this argument: gb.openal & Midi. Surely you remember that I wrote you that I was able to run Midi file using the function: AlureSetStreamPatchset() but using the Alure API (NOT gb.openal). Well, today I wanted to try running Midi files by using the features of the new Gambas component: gb.openal. Well, I did, and I'll send you the simple code that I used: **************************** Public Sub Form_Open() Dim percorsoFile As String = "/path/of/my/file.mid" Dim src, lungh, ast, isdone As Integer Dim ast As AlureStream Alure.InitDevice(Null, Null) src = Al.GenSources(1)[0] lungh = Stat(percorsoFile).Size ast = Alure.CreateStreamFromFile(percorsoFile, lungh, 0) Alure.SetStreamPatchset(ast, "/path/of/my/soundfont/file.sf2") Alure.PlaySourceStream(src, ast, 3, 0) While isdone = 0 Alure.Update() Wend End *********************************************** Regards vuott -------------------------------------------- Mar 23/7/13, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] R: Another use case of gb.openal A: "mailing list for gambas users" Data: Marted? 23 luglio 2013, 16:33 Le 23/07/2013 16:22, PICCORO McKAY Lenz a ?crit : > From: Ru Vuott > >> ...but you knows I'm Midi maniac ;-) so I wanted to try a Midi file. >> >> In console I received those notices: >> fluidsynth: warning: No preset found on channel 0 [bank=0 prog=56] >> fluidsynth: warning: No preset found on channel 1 [bank=0 prog=61] >> fluidsynth: warning: No preset found on channel 2 [bank=0 prog=32] >> fluidsynth: warning: No preset found on channel 3 [bank=0 prog=65] >> fluidsynth: warning: No preset found on channel 4 [bank=0 prog=66] >> fluidsynth: warning: No preset found on channel 5 [bank=0 prog=66] >> fluidsynth: warning: No preset found on channel 6 [bank=0 prog=67] >> fluidsynth: warning: No preset found on channel 7 [bank=0 prog=71] >> fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0] >> >> So I run FluidSynth before your test-openal, but I otained same warnings. >> > > u must use a midi bank file.. .. i mean, u'r channels has no instruments > loaded.. so dont sound anything due not defined any instrument/sound > I successfully loaded a sound bank file (by using the Alure.SetStreamPatchset method or the FLUID_SOUNDFONT environment variable). The warnings disappeared, but I got no sound at all. :-/ -- Beno?t Minisini ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Wed Jul 31 17:07:53 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 31 Jul 2013 15:07:53 +0000 Subject: [Gambas-user] Issue 457 in gambas: Project gives signal 11 when there occurs an error related to modal form and mysql. Message-ID: <0-6813199134517018827-12303131762646449477-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 457 by r... at ...1740...: Project gives signal 11 when there occurs an error related to modal form and mysql. http://code.google.com/p/gambas/issues/detail?id=457 1) Describe the problem. Project gives signal 11 when there occurs and error related to modal form and mysql. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: 5765 [System] OperatingSystem=Linux Kernel=3.8.0-26-generic Architecture=x86 Distribution=Ubuntu 13.04 Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=2017M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 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. Too complicated project, cannot reproduce with sample project yet. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. When starting my project and there occurs and mysql error, because table layout it different than expected for example Gambas3, bails out with this signal 11 It also displays 'on_error_show_modal' in cli. ron at ...3168...:~/domotiga/DomotiGa3$ gdb gbx3 GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu Copyright (C) 2013 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 "i686-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/gbx3...done. (gdb) run Starting program: /usr/bin/gbx3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". [New Thread 0xb2853b40 (LWP 27078)] [New Thread 0xb1effb40 (LWP 27079)] [New Thread 0xb14ffb40 (LWP 27080)] [New Thread 0xb04e6b40 (LWP 27090)] [Thread 0xb04e6b40 (LWP 27090) exited] on_error_show_modal Program received signal SIGSEGV, Segmentation fault. 0xb696eb9a in QWidget::testAttribute_helper(Qt::WidgetAttribute) const () from /usr/lib/i386-linux-gnu/libQtGui.so.4 (gdb) bt #0 0xb696eb9a in QWidget::testAttribute_helper(Qt::WidgetAttribute) const () from /usr/lib/i386-linux-gnu/libQtGui.so.4 #1 0xb7358256 in QWidget::testAttribute (this=0x8462ac8, attribute=Qt::WA_DeleteOnClose) at /usr/include/qt4/QtGui/qwidget.h:1042 #2 0xb7359abe in MyMainWindow::isPersistent (this=0x8462ac8) at CWindow.cpp:2335 #3 0xb7359b24 in on_error_show_modal (info=0xbfffeae0) at CWindow.cpp:1775 #4 0x080785cb in ERROR_propagate () at gb_error.c:285 #5 0x08051307 in EXEC_function_loop () at gbx_exec.c:1038 #6 0x080515b6 in EXEC_function_real () at gbx_exec.c:871 #7 0x08052242 in EXEC_public_desc (class=0x8338adc, object=0x84da68c, desc=0x84d8084, nparam=0) at gbx_exec.c:1584 #8 0x08066167 in raise_event (observer=observer at ...2861...=0x84da68c, object=object at ...2861...=0x84eac2c, func_id=175, func_id at ...2861...=176, nparam=0) at gbx_api.c:816 #9 0x08066c80 in GB_Raise (object=0x84eac2c, event_id=0, nparam=0) at gbx_api.c:952 #10 0x08077dc5 in CTIMER_raise (_object=0x84eac2c) at gbx_c_timer.c:72 #11 0xb734ee93 in MyTimer::timerEvent (this=0x84ea710, e=0xbfffe870) at main.cpp:521 #12 0xb669b2d4 in QObject::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4 #13 0xb6927c7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4 #14 0xb692ab94 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4 #15 0xb667f90e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4 #16 0xb66b48c0 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4 #17 0xb66b15a8 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4 #18 0xb62db3b3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0 #19 0xb62db750 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #20 0xb62db831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0 #21 0xb66b1c21 in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/i386-linux-gnu/libQtCore.so.4 #22 0xb69dea5a in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4 #23 0xb667e3ec in QEventLoop::processEvents(QFlags) () from /usr/lib/i386-linux-gnu/libQtCore.so.4 #24 0xb667e6e1 in QEventLoop::exec(QFlags) () from /usr/lib/i386-linux-gnu/libQtCore.so.4 #25 0xb735c588 in MyMainWindow::showModal (this=0x8462ac8) at CWindow.cpp:1834 #26 0xb735c62d in CWINDOW_show_modal (_object=0x84da68c, _param=0xb73a3020) at CWindow.cpp:713 #27 0x0805164f in EXEC_native_quick () at gbx_exec.c:1179 #28 0x080520ce in EXEC_native_check (defined=1 '\001') at gbx_exec.c:1129 #29 0x0807cafb in EXEC_loop () at gbx_exec_loop.c:1136 #30 0x08050f6f in EXEC_function_loop () at gbx_exec.c:907 #31 0x080515b6 in EXEC_function_real () at gbx_exec.c:871 #32 0x08052242 in EXEC_public_desc (class=0x831e944, object=0x833e42c, desc=0x83263e4, nparam=0) at gbx_exec.c:1584 #33 0x08066167 in raise_event (observer=observer at ...2861...=0x833e42c, object=object at ...2861...=0x833e42c, func_id=200, func_id at ...2861...=201, nparam=0) at gbx_api.c:816 #34 0x08066c80 in GB_Raise (object=0x833e42c, event_id=21, nparam=0) at gbx_api.c:952 #35 0xb7358f66 in emit_open_event (_object=0x833e42c) at CWindow.cpp:230 #36 emit_open_event (_object=0x833e42c) at CWindow.cpp:209 #37 0xb735b7fd in CWINDOW_show (_object=0x833e42c, _param=0xb73a3010) at CWindow.cpp:667 #38 0x0805164f in EXEC_native_quick () at gbx_exec.c:1179 #39 0x080520ce in EXEC_native_check (defined=1 '\001') at gbx_exec.c:1129 #40 0x0807cafb in EXEC_loop () at gbx_exec_loop.c:1136 #41 0x08050f6f in EXEC_function_loop () at gbx_exec.c:907 #42 0x080515b6 in EXEC_function_real () at gbx_exec.c:871 #43 0x08052242 in EXEC_public_desc (class=0x81bc0bc, object=0x0, desc=0x82fe78c, nparam=0) at gbx_exec.c:1584 #44 0x0804b451 in main (argc=1, argv=0xbffff214) at gbx.c:392 (gdb) 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 willy at ...2734... Wed Jul 31 20:44:19 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 31 Jul 2013 20:44:19 +0200 Subject: [Gambas-user] smtp-client doesn't return In-Reply-To: <51F83D1C.9090109@...221...> References: <51F83D1C.9090109@...221...> Message-ID: <1375296259.2267.7.camel@...3024...> On Wed, 2013-07-31 at 00:24 +0200, Rolf-Werner Eilert wrote: > Ok, maybe I got this completely wrong, so here's my first trial with > gb.net.smtp: > > Public Sub Main() > > Dim email As New SmtpClient > > With email > .Add("Is this the mailtext?") > .To.Add("mymainemail at ...3165...") > .From = "sender at ...3166..." > .Subject = "Just a test" > .Port = 25 > .Host = "smtp.provider.de" > .User = "username" > .Password = "password" > End With > > email.Send > > End > > > Everything is accepted, but email.Send never returns, i. e. the program > never stops and I've never got an email. > > Does .Add really add the message text, or is it for attachments only? > Where would I have to add the message body text then? > > The plan is to automatically send an email like from an ordinary mail > client (Thunderbird) via my smtp provider to the receiver. There should > be a mail text and a pdf attached. > > Regards > > Rolf email.Add("This is the body of the mail",,"") email.Add("This is attached as text file", "text/plain", "File.txt") First line should give you the body and the second line should produce you an attachment named File.txt with content "This is attached as text file". Don't know about attaching pdf, haven't been there but I am curious too. email.Send should send the mail. Don't know why it doesn't. Do you need the username and password for smtp at your provider? Else just skip it as it is send in plain text and easy to trap with a network sniffer. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From eilert-sprachen at ...221... Wed Jul 31 23:53:13 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 31 Jul 2013 23:53:13 +0200 Subject: [Gambas-user] smtp-client doesn't return In-Reply-To: <1375296259.2267.7.camel@...3024...> References: <51F83D1C.9090109@...221...> <1375296259.2267.7.camel@...3024...> Message-ID: <51F98749.6010504@...221...> Am 31.07.2013 20:44, schrieb Willy Raets: > On Wed, 2013-07-31 at 00:24 +0200, Rolf-Werner Eilert wrote: >> Ok, maybe I got this completely wrong, so here's my first trial with >> gb.net.smtp: >> >> Public Sub Main() >> >> Dim email As New SmtpClient >> >> With email >> .Add("Is this the mailtext?") >> .To.Add("mymainemail at ...3165...") >> .From = "sender at ...3166..." >> .Subject = "Just a test" >> .Port = 25 >> .Host = "smtp.provider.de" >> .User = "username" >> .Password = "password" >> End With >> >> email.Send >> >> End >> >> >> Everything is accepted, but email.Send never returns, i. e. the program >> never stops and I've never got an email. >> >> Does .Add really add the message text, or is it for attachments only? >> Where would I have to add the message body text then? >> >> The plan is to automatically send an email like from an ordinary mail >> client (Thunderbird) via my smtp provider to the receiver. There should >> be a mail text and a pdf attached. >> >> Regards >> >> Rolf > > email.Add("This is the body of the mail",,"") > email.Add("This is attached as text file", "text/plain", "File.txt") > > First line should give you the body and the second line should produce > you an attachment named File.txt with content "This is attached as text > file". > > Don't know about attaching pdf, haven't been there but I am curious too. > > email.Send should send the mail. Don't know why it doesn't. > > Do you need the username and password for smtp at your provider? Else > just skip it as it is send in plain text and easy to trap with a network > sniffer. > > Hm, would any provider accept mails without giving username and password? I don't know any. And most providers offer a way of secure access, not using port 25 but 465 or 587. I just don't know if this is supported by gb.net.smtp. If yes, I would prefer it of course. Is there a way of observing what email.Send is doing? Or have I simply got to wait for it to return, hoping it will do so some day? Rolf From gambas at ...1... Wed Jul 31 23:59:55 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 31 Jul 2013 23:59:55 +0200 Subject: [Gambas-user] smtp-client doesn't return In-Reply-To: <51F98749.6010504@...221...> References: <51F83D1C.9090109@...221...> <1375296259.2267.7.camel@...3024...> <51F98749.6010504@...221...> Message-ID: <51F988DB.3020202@...1...> Le 31/07/2013 23:53, Rolf-Werner Eilert a ?crit : > > Hm, would any provider accept mails without giving username and > password? I don't know any. And most providers offer a way of secure > access, not using port 25 but 465 or 587. I just don't know if this is > supported by gb.net.smtp. If yes, I would prefer it of course. > > Is there a way of observing what email.Send is doing? Or have I simply > got to wait for it to return, hoping it will do so some day? > > Rolf > Did you see the 'Debug' property in the doc? :-) -- Beno?t Minisini