Re: [Gambas-user] Conflicting and bewildering help for pipes

2013-10-29 Thread Tobias Boege
On Fri, 25 Oct 2013, Beno?t Minisini wrote: > Le 24/10/2013 15:08, Tobias Boege a ?crit : > > My workaround always was like this: > > > >' Create the read pipe special file > >hGPstdout = Pipe "/tmp/gnuplotFIFO2" For Write > >Close #hG

Re: [Gambas-user] Conflicting and bewildering help for pipes

2013-10-29 Thread Tobias Boege
On Tue, 29 Oct 2013, Caveat wrote: > If gnuplot is giving an error, wouldn't that appear on stderr, which you > don't appear to be watching? > > Just a thought... > I also had a version where I redirected stdout to stderr had stderr redirected to the FIFO before. Good thought but no, the text a

Re: [Gambas-user] Specifications for Gambas 3 packaging : updated!

2013-10-29 Thread Tobias Boege
On Tue, 29 Oct 2013, Kende Kriszti?n wrote: > 2013-10-28 20:37 keltez?ssel, Beno?t Minisini ?rta: > > Hi, > > > > The specifications of "how to package Gambas 3" have been updated (list > > of components, dependencies), thanks to all errors and misses detected > > by Kende Kriszti?n. > > > > If any

[Gambas-user] Color.Blend() and alpha channels

2013-10-29 Thread Tobias Boege
Hi Benoit, the documentation[0] of Color.Blend() states that the resulting colour get the maximum alpha channels of the Source and Destination parameters. However, in a test project, we Color.Blend()'d two colours, one of which has the alpha component 190 and the other one has 90. The resulting c

Re: [Gambas-user] Color.Blend() and alpha channels

2013-10-29 Thread Tobias Boege
On Tue, 29 Oct 2013, Beno?t Minisini wrote: > Le 29/10/2013 20:27, Tobias Boege a ?crit : > > Hi Benoit, > > > > the documentation[0] of Color.Blend() states that the resulting colour get > > the maximum alpha channels of the Source and Destination parameters. > &g

Re: [Gambas-user] Conflicting and bewildering help for pipes

2013-10-29 Thread Tobias Boege
On Fri, 25 Oct 2013, Beno?t Minisini wrote: > Le 24/10/2013 15:08, Tobias Boege a ?crit : > > My workaround always was like this: > > > >' Create the read pipe special file > >hGPstdout = Pipe "/tmp/gnuplotFIFO2" For Write > >Close #hG

Re: [Gambas-user] Conflicting and bewildering help for pipes

2013-10-30 Thread Tobias Boege
On Wed, 30 Oct 2013, Beno?t Minisini wrote: > Try that. You must kill gnuplot explicitely. Otherwise by running > the program several times, you get a lot of gnuplot processes all > writing to the same pipes. So everything is mixed. > Seems like occasionally my brain stops working... Thanks for p

Re: [Gambas-user] debugging a (apparent) memory leak

2013-10-31 Thread Tobias Boege
On Wed, 30 Oct 2013, Kevin Fishburne wrote: > On 10/28/2013 10:36 PM, Beno?t Minisini wrote: > > Le 29/10/2013 03:27, Beno?t Minisini a ?crit : > >> Le 29/10/2013 02:20, Kevin Fishburne a ?crit : > >>> I don't think it's always been like this, but when I sometimes forget to > >>> close the server a

[Gambas-user] Wiki: File attribute instructions not "only 3.1"?

2013-11-03 Thread Tobias Boege
Hi, Hans discovered yet three other oddities in the docs. ChMod, ChOwn and ChGrp are tagged "only 3.1" but I just tested them in a project. They get compiled and work. May I replace the "only" with a "since" then? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. M

Re: [Gambas-user] Wiki: File attribute instructions not "only 3.1"?

2013-11-03 Thread Tobias Boege
On Sun, 03 Nov 2013, Beno?t Minisini wrote: > Le 03/11/2013 17:57, Tobias Boege a ?crit : > > Hi, > > > > Hans discovered yet three other oddities in the docs. ChMod, ChOwn and ChGrp > > are tagged "only 3.1" but I just tested them in a project. They get com

Re: [Gambas-user] Need help for testing revision #5928

2013-11-03 Thread Tobias Boege
On Fri, 01 Nov 2013, Beno?t Minisini wrote: > Hi, > > In revision #5928, the packager now can create GUI support metapackages > for the ArchLinux distribution. > > But I can't really test the code, as the ArchLinux packaging tool > (makepkg) does not exist on Ubuntu. > > Is there some ArchLinu

Re: [Gambas-user] if-else vs try who are best faster in machine time?

2013-11-05 Thread Tobias Boege
On Mon, 04 Nov 2013, Sebastian Kulesz wrote: > On Mon, Nov 4, 2013 at 6:43 PM, Jussi Lahtinen > wrote: > > > Why not simply write benchmark? > > > > A benchmark wouldn't be accurate, as it will be IO bound, and being an old > machine, better reduce disk IO than CPU usage (I'm guessing it uses ID

Re: [Gambas-user] gambas editor control and the highlight method

2013-11-08 Thread Tobias Boege
On Fri, 08 Nov 2013, Sean wrote: > want that my program, at a click of the button will do > some highlighting in the text in an editor (a component of > gambas that you can add to a form). > > So, in the form_open() method, i set : > > programEdit.Styles[Highlight.Normal].Color = Color.Red >

Re: [Gambas-user] gambas editor control and the highlight method

2013-11-08 Thread Tobias Boege
On Fri, 08 Nov 2013, Sean wrote: > > Hi Tobi, thanks for the Answer. > > Would it be too much if i request you do show me a Minimum > Working Example of the correct syntax? The > html-highlighter given in the Examples is too complex.. > I perfectly understand that. I once aimed at implementin

Re: [Gambas-user] wait vs sleep confusion, console works, graphically have strange behabior

2013-11-10 Thread Tobias Boege
On Sun, 10 Nov 2013, PICCORO McKAY Lenz wrote: > i read the wiki and sleep its prefered, but sleep stop complete > runtime, and wait i dont understand > > in my program, the main Form, i change wait , and use sleep and then > some message before run process (shell executing) do not show > > eithe

Re: [Gambas-user] wait vs sleep confusion, console works, graphically have strange behabior

2013-11-11 Thread Tobias Boege
On Mon, 11 Nov 2013, PICCORO McKAY Lenz wrote: > From: Tobias Boege > > Sleep puts the program to sleep - literally. It just waits for a given time > > to elapse and then resumes execution. > all programs inherint and parent? !! ok thnks for clarification! but > some detail

Re: [Gambas-user] wait vs sleep confusion, console works, graphically have strange behabior

2013-11-11 Thread Tobias Boege
On Mon, 11 Nov 2013, PICCORO McKAY Lenz wrote: > From: Tobias Boege > > On Mon, 11 Nov 2013, PICCORO McKAY Lenz wrote: > >> From: Tobias Boege > >> > Sleep puts the program to sleep - literally. It just waits for a given > >> > time > >> > t

[Gambas-user] Edit specialised Forms in the IDE

2013-11-12 Thread Tobias Boege
Hi, I have written a StatusbarForm.class which is a Form with a built-in Statusbar. Some people seem to like this sort of thing. My class hierarchy looks like this: - Statusbar.class (a Statusbar) - _StatusbarLabel.class (to manage the contents of a Statusbar) - Form -> StatusbarForm.clas

Re: [Gambas-user] how to make threats

2013-11-13 Thread Tobias Boege
On Wed, 13 Nov 2013, Sebastian Kulesz wrote: > I had the same problem, you can look at my solution here [0]. Basically, i > used a pool of HttpClients with the async property set to True. > > The logic goes like this. I have an index files which tracks around 120 > files stored online. Not going t

Re: [Gambas-user] Pre-release of Gambas 3.5.1

2013-11-15 Thread Tobias Boege
On Fri, 15 Nov 2013, PICCORO McKAY Lenz wrote: > From: Willy Raets > > it will run for at least 5 years in the production environment it is > > being used. Why change what works just fine? Just because there is some > > new fancy stuff out there? > i 'm running a payroll system in debian lenny, 24

Re: [Gambas-user] Pre-release of Gambas 3.5.1

2013-11-17 Thread Tobias Boege
On Fri, 15 Nov 2013, PICCORO McKAY Lenz wrote: > From: Tobias Boege > > Yeah... Let's don't get political here. > > > > > PS: I'm away over the weekend. I realise that I presented my views in a > > rather destructive manner and as if they were fac

Re: [Gambas-user] gb.pcre RegExp.Replace does not work in GUI mode

2013-11-17 Thread Tobias Boege
On Sun, 17 Nov 2013, derox wrote: > Hi! > > I cannot get the RegExp.Replace function to work in a GUI application > (works wery well with CLI programs though...) > > One example is a simple form with tree components TextEdit, TextBox and a > Button, with the following code: > > Public Sub btnFin

Re: [Gambas-user] Workspace event question

2013-11-19 Thread Tobias Boege
On Wed, 20 Nov 2013, richard terry wrote: > Hi List, > > Think I posted this a week ago but got no reply, maybe I sent it from > the wrong address. > > Anway, I've got a workspace which I use to place forms each on a new tab. > > I wondered if there was anyway to intercept the close event of th

Re: [Gambas-user] Workspace event question

2013-11-19 Thread Tobias Boege
On Wed, 20 Nov 2013, richard terry wrote: > On 20/11/13 08:49, Tobias Boege wrote: > > On Wed, 20 Nov 2013, richard terry wrote: > >> Hi List, > >> > >> Think I posted this a week ago but got no reply, maybe I sent it from > >> the wrong address. >

Re: [Gambas-user] Breaking logical check when coming to a true statement in a IF block

2013-11-22 Thread Tobias Boege
On Fri, 22 Nov 2013, derox wrote: > Hi! > > Though I have limited knowledge of C++, I do believe it has the following > functionallity that also could be useful in Gambas: > > If you have an IF-block with several statements that are to be evaluated, > in C++ it will jump out of that evalutaion pr

Re: [Gambas-user] Breaking logical check when coming to a true statement in a IF block

2013-11-22 Thread Tobias Boege
On Fri, 22 Nov 2013, derox wrote: > On Fri, 22 Nov 2013, derox wrote: > > Hi! > > > > Though I have limited knowledge of C++, I do believe it has the following > > functionallity that also could be useful in Gambas: > > > > If you have an IF-block with several statements that are to be evaluated, >

Re: [Gambas-user] Paint an image

2013-11-24 Thread Tobias Boege
On Sun, 24 Nov 2013, ukimiku wrote: > Hi Fabien, > > thank you for your prompt reply. I must be missing something, I guess. It > still does not display the image. > > In the Form_open event, I set >fr.cached = false > > I see the effect when I drag the window with the mouse. It is slow and a

Re: [Gambas-user] Paint an image

2013-11-24 Thread Tobias Boege
On Sun, 24 Nov 2013, ukimiku wrote: > No, I am not calling "Refresh" in the mousemove event, only once after the > image data has been read in. > > I set "cached" to "False". Still, the image does not appear with > "DrawImage". But with painted brushes, it works. I can live with that. I > just wis

Re: [Gambas-user] Paint an image

2013-11-24 Thread Tobias Boege
On Sun, 24 Nov 2013, ukimiku wrote: > Hi Tobi, > > this is very kind of you. Your sample project works like a charm: I see the > pixels update and change color randomly. > > The problem with my project is: After I fill my image with color data, it > gets displayed correctly. Then I fill in new co

Re: [Gambas-user] How Stream.ByteOrder ?

2013-11-24 Thread Tobias Boege
On Sun, 24 Nov 2013, Ru Vuott wrote: > Hello, > > I would like to see an simple, but complete example about "Stream.ByteOrder " > property. > > Thanks > > vuott Well, I won't give you a complete project because I also have work to do but here you have an idea: try to parse a .bmp file with Gam

Re: [Gambas-user] gb.web how to grab using post and get?

2013-11-25 Thread Tobias Boege
On Mon, 25 Nov 2013, PICCORO McKAY Lenz wrote: > From: Fabien Bodard > > >well ... in fact it's an svn version. > >but true i've just update it two day ago. > i cannot update, squeeze has more efficient services for rather than > wheeze, in performance test with jabber clusterized nodes.. wheeze

Re: [Gambas-user] gb.web how to grab using post and get?

2013-11-25 Thread Tobias Boege
On Mon, 25 Nov 2013, PICCORO McKAY Lenz wrote: > From: Tobias Boege > >>> send me a example project? (and the link due in this list nobod, iy > >> can receibe files directly) > >> > > Hmm. I attached a project that _is working_ on my system

Re: [Gambas-user] A little article on Gambas on Phoronix

2013-11-26 Thread Tobias Boege
On Tue, 26 Nov 2013, Beno??t Minisini wrote: > Le 26/11/2013 14:07, PICCORO McKAY Lenz a ??crit : > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > due there's no critically apps on production environment, there's no > > enterprise that uses gambas to any critical applic

Re: [Gambas-user] article on Gambas...

2013-11-26 Thread Tobias Boege
On Tue, 26 Nov 2013, Ru Vuott wrote: > > a example of power of gambas its www.gambasforge.org/index.html > > Hi, > > yes, but we must add also: > - http://www.gambas-es.org/ > - http://www.gambas-it.org/smf/ > - http://www.gambas-club.de/ > I think he meant that gambasforge.org is written in G

Re: [Gambas-user] article on Gambas...

2013-11-26 Thread Tobias Boege
On Tue, 26 Nov 2013, ukimiku wrote: > Tobias, > > congratulations! > > I read on the Gambas-Buch page that you are co-author of a book on Gambas > programming. I tried to locate it at Amazon, but no luck. Where is it > available? Does it cover Gambas 3? > Good to hear t

Re: [Gambas-user] X coordinate in Paint.DrawText works in reverse.

2013-11-27 Thread Tobias Boege
On Wed, 27 Nov 2013, Ru Vuott wrote: > Hello, > > I have this code: > > * > > Public Sub Button1_Click() > > Dim a As New Image > Dim b As Picture > > ' I load a file image: >a = a.Load("/path/of/file/image") > > With Paint >.Begin(a) >.

[Gambas-user] Gambas3 logo license?

2013-11-29 Thread Tobias Boege
Hello Fabien (or anyone who knows), what was the license of the Gambas3 logo you made? I was unable to find that information. We would like to use it in a video. Regards, Tobi -- Rapidly troubleshoot problems before they

Re: [Gambas-user] Compiling a Gambas Project

2013-12-01 Thread Tobias Boege
On Sun, 01 Dec 2013, Nigel Verity wrote: > Hi > > When I perform a "Compile" or "Compile All" operation from the Gambas menu > any language syntax errors seem to be identified correctly. The same applies > to declaration errors. However, I have noticed that calls to non-existant > functions (as

Re: [Gambas-user] Compiling A Gambas Project

2013-12-01 Thread Tobias Boege
On Sun, 01 Dec 2013, Nigel Verity wrote: > > > > Hi Tobi > > Perhaps if I describe a scenario I encountered yesterday you can advise on > whether the behaviour should be expected or whether there is actually a bug. > > I always structure my projects using the default approach so that each for

Re: [Gambas-user] Online radio with "Shell"

2013-12-01 Thread Tobias Boege
On Sun, 01 Dec 2013, abbat81 wrote: > Hi! > Help me please. > I want to make some small GUI app for online radio using "Shell" > Here is sample string for terminal. > > > *"mplayer -cache 128 http://music.myradio.ua/trance_news128.mp3"* > > > How can I use it? > > Hext does not work: > > *

Re: [Gambas-user] Online radio with "Shell"

2013-12-01 Thread Tobias Boege
On Sun, 01 Dec 2013, abbat81 wrote: > Hi Tobi, > Can you explain or give example please? > > I don't understand how to use > "Print #$hMPlayer, sCommand" > > I got: > "Unknown identifier #$hMPlayer" > > How should I declare the #$hMPlayer? > > Thaks You want to communicate with the mplayer p

Re: [Gambas-user] Online radio with "Shell"

2013-12-01 Thread Tobias Boege
On Sun, 01 Dec 2013, abbat81 wrote: > Tobi, thank you.. > and excuse me please, but last question. > > How to start that process? > > > Public Sub Button3_Click() > _new() > End > _new() is automatically called when your form (I suspected you use forms) is created. You can equivalently well

Re: [Gambas-user] shell

2013-12-02 Thread Tobias Boege
On Mon, 02 Dec 2013, Mike Crean wrote: > > Hey boys, I am trying to emulate the terminal string sudo sh -c > 'echo out /sys/class/gpio/gpio27/direction' (works OK in terminal, on > BBB wheezy arm lxde) I run this from gambas3.5.90 Exec [system.shell, > "sudo sh -c 'echo out /sys/class/gpio/gpio27

Re: [Gambas-user] gambas documentation offline include in source (gb.web)

2013-12-02 Thread Tobias Boege
On Mon, 02 Dec 2013, PICCORO McKAY Lenz wrote: > From: Rob Kudla > > > Should be... I did apt-get source gambas3 and the source for the program is > > here inside the tarball: > > > > gambas3-3.1.1/app/src/doc.cgi/ > > > yes, but the idea its to generate when user/admin goes to install, and the >

Re: [Gambas-user] Calling a sub from a Webview

2013-12-04 Thread Tobias Boege
On Wed, 04 Dec 2013, Jesus wrote: > Hi all > > I currently helping to port a VB6 program to Gambas3, but to my > surprise, it does weird things like these from the post title: it is > calling methods and functions from the html code inside a webbrowser > control. > > It has a wb control that a

Re: [Gambas-user] Calling a sub from a Webview

2013-12-04 Thread Tobias Boege
On Wed, 04 Dec 2013, Jesus wrote: > El 04/12/13 22:32, Tobias Boege escribi?: > > On Wed, 04 Dec 2013, Jesus wrote: > >> Hi all > >> > >> I currently helping to port a VB6 program to Gambas3, but to my > >> surprise, it does weird things like these fr

Re: [Gambas-user] Calling a sub from a Webview

2013-12-05 Thread Tobias Boege
On Wed, 04 Dec 2013, terco IDE wrote: > Hi: > i'm the mad guy who made that VB code wich calls Funcitions from the HTML > code :) > > I'n new to Gambas, but from what I've read, it is possible to set up an > Object Observer ...so why not intercept the webview control and do things > BEFORE t

Re: [Gambas-user] Line continuation

2013-12-08 Thread Tobias Boege
On Sat, 07 Dec 2013, MinnesotaJon wrote: > If you are using SHELL, you can assign lines to variables. If the string > continues on multiple lines, assign the text to string variables, and > concatenate those variables. > The example below merely shows SHELL accepting a string variable as its > c

Re: [Gambas-user] Stopping a CLI program

2013-12-08 Thread Tobias Boege
On Sun, 08 Dec 2013, John Rose wrote: > I want to be able to stop a CLI program (started by an Exec statement) > as though the user was keying in a special character from the keyboard. > Specifically, I want to stop ffmpeg recording to disk when grabbing > streaming video using x11grab. The rec

Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Tobias Boege
On Mon, 09 Dec 2013, Jussi Lahtinen wrote: > Can someone try to reproduce this with other system? > > Jussi > > > On Sun, Dec 8, 2013 at 7:18 PM, Jussi Lahtinen > wrote: > > > Oh sorry, problem occurs with Gambas 3 rev 5988 on Xubuntu 13.04 64bit. > > > > Jussi > > > > > > On Sun, Dec 8, 2013

Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Tobias Boege
On Mon, 09 Dec 2013, Jussi Lahtinen wrote: > > Although I don't know what you expect me to report, I get exactly one line > > asking "what went wrong". > > > > I attached a patch that fixes this without having to comment the Raise line > > out. Seems like Raise is taken by the interpreter as an opp

Re: [Gambas-user] Obtaining Sound Output Monitor's Name

2013-12-10 Thread Tobias Boege
On Tue, 10 Dec 2013, John Rose wrote: > I'm trying to obtain the sound output monitor's name (as a string using > the Shell command) for later use in an Exec command (calling ffmpeg). > > Running the appropriate command in a Terminal gives: >john@JohnDesktop:~$ pactl list | grep -A2 '^Source

Re: [Gambas-user] Stopping a CLI program

2013-12-10 Thread Tobias Boege
On Tue, 10 Dec 2013, John Rose wrote: > Tobias, > I just realised that a post that I made on the 'Line continuation' > thread is better in this thread. The details are: > I liked your ideas of: > Dim aExec As String[] > Dim sRes As String > aExec = ["cat"

Re: [Gambas-user] Stopping a CLI program

2013-12-10 Thread Tobias Boege
On Tue, 10 Dec 2013, Tobias Boege wrote: > I attached a program that stops ffmpeg printing "q" to it. Hope it helps... ... and here comes the attachment. ffmpeg-print-q-0.0.1.tar.gz Description: Binary data -

Re: [Gambas-user] Stopping a CLI program

2013-12-11 Thread Tobias Boege
On Wed, 11 Dec 2013, John Rose wrote: > Tobias, > > Thanks for your example. I've now got the Exec's termination working OK. > Below is an extract from my code: > Private aExec As String[] > Private sOutput As String > Private hffmpeg As Process > hffmpeg = E

Re: [Gambas-user] Stopping a CLI program

2013-12-11 Thread Tobias Boege
On Wed, 11 Dec 2013, Tobias Boege wrote: > On Wed, 11 Dec 2013, John Rose wrote: > > Tobias, > > > > Thanks for your example. I've now got the Exec's termination working OK. > > Below is an extract from my code: > > Private aExec As String[] > >

Re: [Gambas-user] Stopping a CLI program

2013-12-11 Thread Tobias Boege
On Wed, 11 Dec 2013, John Rose wrote: > Tobias, > > Thank you for your reply. > > The reason for my using "-f x11grab" as one parameter (rather than 2 > parameters of "-f" & "x11grab") to the Exec command is that I was > thinking of that

Re: [Gambas-user] Stopping a CLI program

2013-12-11 Thread Tobias Boege
On Wed, 11 Dec 2013, Tobias Boege wrote: > On Wed, 11 Dec 2013, John Rose wrote: > > Tobias, > > > > Thank you for your reply. > > > > The reason for my using "-f x11grab" as one parameter (rather than 2 > > parameters of "-f" &

Re: [Gambas-user] Blob type and segmentation error

2013-12-11 Thread Tobias Boege
On Wed, 11 Dec 2013, bill-lancaster wrote: > I have a mysql table with a blob type field, this seems to cause Segmentation > Fault (11) or Aborted(6) crashes. > Is this a known problem? (other postings seem to suggest this) > Or is there a work-around? > I have written a program which stores Blob

Re: [Gambas-user] Popup menu in project tree

2013-12-11 Thread Tobias Boege
On Wed, 11 Dec 2013, Jesus wrote: > El 09/12/13 22:38, Jesus escribi?: > > Hi all > > > > When I right click over an item in the project tree, say "Data" folder, > > there's not a full menu, so I cannot add a new file or whatever. If such > > a folder contains a sub-item, then I am able to add anot

Re: [Gambas-user] Writing a text file from the contents of a text area

2013-12-15 Thread Tobias Boege
On Sun, 15 Dec 2013, John Rose wrote: > Bill, > > The textarea control (i.e. as you see it on the form) has a number > of lines. But I'm also interested in an example for a textarea string > having a "number of lines" (i.e. it > contains \n escape characters). Also, I'm interested in an example w

Re: [Gambas-user] A "statusbar" control

2013-12-21 Thread Tobias Boege
On Sat, 21 Dec 2013, Bruce wrote: > Did someone recently speak about having developed a "statusbar" form > control? > If you mean[0], then yes, roughly. There was a StatusBar class from Raymond de Bruijne (Gambas2) which I changed to be more Gambas3. (However, I haven't worked on it since I pose

Re: [Gambas-user] basics of dynamic arrays of structures

2013-12-21 Thread Tobias Boege
On Sat, 21 Dec 2013, Kevin Fishburne wrote: > On 12/21/2013 12:36 AM, Kevin Fishburne wrote: > > I've gotten some flak about how I declare arrays and want to change my > > ways. Previously I would do something like: > > > > Public SomeArray[300,300] as Integer > > > > I have a case now where I need

Re: [Gambas-user] How to copy a frame containing various controls

2013-12-21 Thread Tobias Boege
On Fri, 20 Dec 2013, u...@gmx.ch wrote: > Dear Cracks, > > > I want to show various CsvLines in a ScrollView. > Each line will be splitted and filled in a bunch of controls which are > all neatly placed and formatted in a "SourceFrame". > > My question: > Is there an easy way to copy/paste that

[Gambas-user] IsDate(), IsFloat(), IsInteger(), ... documentation inconsistencies

2013-12-21 Thread Tobias Boege
Hi, I believe there is an error in the documentation. We see (at least) three different signatures for the Is*() functions: 1. Boolean = IsDate ( String ) 2. Result = IsFloat ( String ) AS Boolean 3. Result = IsInteger ( String ) AS Integer Are these correct or should every Is*() function return

[Gambas-user] Native Complex type?

2013-12-21 Thread Tobias Boege
Hi Benoit, is it planned to support complex numbers in Val() or to have an IsComplex() function? I see the difficulties that come with this, like having to incorporate complex numbers into the interpreter directly and since Complex needs to be an object, intermixing objcts and native datatypes in

Re: [Gambas-user] A "statusbar" control

2013-12-22 Thread Tobias Boege
On Sun, 22 Dec 2013, Bruce wrote: > On Sat, 2013-12-21 at 10:46 +0100, Tobias Boege wrote: > > On Sat, 21 Dec 2013, Bruce wrote: > > > Did someone recently speak about having developed a "statusbar" form > > > control? > > > > > > > If y

Re: [Gambas-user] basics of dynamic arrays of structures

2013-12-29 Thread Tobias Boege
On Mon, 23 Dec 2013, Kevin Fishburne wrote: > On 12/21/2013 04:57 AM, Tobias Boege wrote: > >On Sat, 21 Dec 2013, Kevin Fishburne wrote: > >>On 12/21/2013 12:36 AM, Kevin Fishburne wrote: > >>>I've gotten some flak about how I declare arrays and want to change

Re: [Gambas-user] 'gb.crypt' component and SHA (1-2)

2013-12-29 Thread Tobias Boege
On Thu, 26 Dec 2013, Kende Kriszti?n wrote: > 2013-12-26 17:58 keltez?ssel, Kende Kriszti?n ?rta: > > 2013-12-26 12:33 keltez?ssel, Kende Kriszti?n ?rta: > >> Hi, > >> > >> 'gb.crypt' component is perfect if I want to check SHA-512 password match: > >> > >> Dim shahash As String > >> > >>

Re: [Gambas-user] Native Complex type?

2013-12-29 Thread Tobias Boege
On Sun, 22 Dec 2013, Beno?t Minisini wrote: > Le 21/12/2013 16:53, Tobias Boege a ?crit : > > Hi Benoit, > > > > is it planned to support complex numbers in Val() or to have an IsComplex() > > function? > > No at the moment. > > It's a problem for Va

[Gambas-user] Overriding ValueBox, adding new Types

2013-12-29 Thread Tobias Boege
Hi, I'm writing a ValueBox extension which recognises complex numbers when chosen ValueBox.Type = ValueBox.Complex. For the time being I'm using the "global symbol table" extension method, i.e. I call my class ValueBox and Export it - just for the sake of it. (Later, I will likely directly commit

[Gambas-user] Relaunching a program as root

2013-12-29 Thread Tobias Boege
Hi all, last month I read a question at gambas-club.de about how to relaunch one's program with root privileges if it was running without them. This was the straw to break the camel's back :-) [*] As far as I can remember back, it was always a problem for the most to get sudo or su do the right t

Re: [Gambas-user] Relaunching a program as root

2013-12-29 Thread Tobias Boege
On Mon, 30 Dec 2013, Bruce wrote: > On Sun, 2013-12-29 at 21:59 +0100, Tobias Boege wrote: > > Hi all, > > > > last month I read a question at gambas-club.de about how to relaunch one's > > program with root privileges if it was running without them. This was th

Re: [Gambas-user] Relaunching a program as root

2013-12-30 Thread Tobias Boege
On Mon, 30 Dec 2013, Kende Kriszti?n wrote: > Otherwise. Your code: > > IIf(Application.Path Ends ".gambas", "/usr/bin/gbr3 ", "/usr/bin/gbx3 ") & > Application.Path > > isn't correct, because Application.Path is a directory, not file. > Right! You used Application.Path &/ Application.Name whic

Re: [Gambas-user] Where did the Help Files Go?

2014-01-02 Thread Tobias Boege
On Thu, 02 Jan 2014, VonZorch wrote: > Where are there english help files? Gambasdocs.org has been down since mid > September. > You should look at gambasdoc.org (without the "s"). -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -

[Gambas-user] gb.gsl Polynomial segfault

2014-01-02 Thread Tobias Boege
Hi, I get a segfault from gb.gsl when running the attached project. I looked at the source and it seems I am allowed to do this... Even if I'm not, a segfault isn't the most charming way to tell me ;-) GDB output: (gdb) r Starting program: /usr/bin/gbx3 warning: no loadable sections found in add

Re: [Gambas-user] Controls on form do not respond.

2014-01-02 Thread Tobias Boege
On Thu, 02 Jan 2014, VonZorch wrote: > I have a form called from the main program. > When called it opens and does everything in SUB _new(). However using the > controls on it does not cause any event. I have tried using all varieties > of .Show. > Any help will be greatly appreciated. > There

Re: [Gambas-user] gb.gsl Polynomial segfault

2014-01-02 Thread Tobias Boege
On Thu, 02 Jan 2014, Tobias Boege wrote: > Hi, > > I get a segfault from gb.gsl when running the attached project. I looked at > the source and it seems I am allowed to do this... Even if I'm not, a > segfault isn't the most charming way to tell me ;-) > I compi

Re: [Gambas-user] Anotating a pdf image

2014-01-10 Thread Tobias Boege
On Fri, 10 Jan 2014, bill-lancaster wrote: > I have a number of files in pdf format and I'd like to add some text to the > image and save as a pdf file. > Is this possible? > If so, some hints as to how would be appreciated. > Hmm. I've personally used a tool called pdftk for manipulating PDFs -

Re: [Gambas-user] How to convert .XmlElementAttributes into string

2014-01-10 Thread Tobias Boege
On Fri, 10 Jan 2014, Floryn90 wrote: > When declaring Dim hXmlElementAttributes As .XmlElementAttributes > gambas tell me "Unexpected '.' " > I see you don't really understand what you're typing so let me explain this first: .XmlElementAttributes is a virtual class (which is IMHO one of the be

[Gambas-user] Swap expressions with side effects

2014-01-11 Thread Tobias Boege
Hi, I just spent two good hours over my implementation of an algorithm to arrange some PointFs in an array so that the distance between P[i] and P[i+1] is the smallest possible among all points P[j], j > i. I don't want to bother you with details (well, I think I already did, sorry) but the compar

Re: [Gambas-user] Swap expressions with side effects

2014-01-11 Thread Tobias Boege
On Sat, 11 Jan 2014, Beno?t Minisini wrote: > Le 11/01/2014 19:05, Tobias Boege a ?crit : > > Hi, > > > > I just spent two good hours over my implementation of an algorithm to > > arrange some PointFs in an array so that the distance between P[i] and > > P[i+1] i

Re: [Gambas-user] Anotating a pdf image

2014-01-12 Thread Tobias Boege
On Sun, 12 Jan 2014, bill-lancaster wrote: > Thanks for the ideas and encouragement Tobi > I've got something working now. > But be cautious with this... I wrote a proof-of-concept program and it turned out that PdfDocument[Page].GetImage() returns images with obvious quality loss and in the PDF

Re: [Gambas-user] Anotating a pdf image

2014-01-12 Thread Tobias Boege
On Sun, 12 Jan 2014, Tobias Boege wrote: > On Sun, 12 Jan 2014, bill-lancaster wrote: > > Thanks for the ideas and encouragement Tobi > > I've got something working now. > > > > But be cautious with this... I wrote a proof-of-concept program and it > turned

Re: [Gambas-user] Starting a Process and forgetting about it

2014-01-16 Thread Tobias Boege
On Sun, 12 Jan 2014, Bruce wrote: > > Good morning, > > > > Did this ever get taken further? (Another long post sorry!) > > Indeed... > > [...] I'll certainly find time to respond on this topic more elaborately than this: Maybe you want to create a new session using setsid() with your programs

[Gambas-user] gb.logging: out of bounds error with certain fields

2014-01-20 Thread Tobias Boege
Hi Sebastian, I get an "Out of bounds" error with the attached project. I haven't used gb.logging myself yet, so I can't say more. I'm just mediating the report to you... Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk logtest-0.0.1.tar.gz Description: Bin

Re: [Gambas-user] send 'pgup' to process

2014-01-21 Thread Tobias Boege
On Mon, 20 Jan 2014, Johny Provoost wrote: > Hi, > > I adapted the example Movieplayer from Beno?t . > It's about sending keys to mplayer. > I can send "+" and "-' to the process with success, but when want to > send "PageUp", "PageDown", "Up", "Down","Left", and 'right', I get stuck. > > > the

Re: [Gambas-user] gb.logging: out of bounds error with certain fields

2014-01-21 Thread Tobias Boege
On Mon, 20 Jan 2014, Sebastian Kulesz wrote: > It should be fixed in revision #6092. Please let me know how it went! Works! Thanks. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -- CenturyLink C

[Gambas-user] gb.inotify to capture filesystem events

2014-01-22 Thread Tobias Boege
Hi all, a new component, gb.inotify, is public since some time (30th Dec 2013) but I never told you... It is about monitoring filesystem events on Linux as you may have already guessed from its name. Since it lacks time over here to write documentation, ATM, I'll simply give you a sample project

Re: [Gambas-user] Gambas Future or what kind of Gambas we want.

2014-01-23 Thread Tobias Boege
On Thu, 23 Jan 2014, Jussi Lahtinen wrote: > I would guess by far the largest number of potential > > - not current - users are those who have come from Windows and > > VB6. If they are long-standing users of Linux, then they are > > probably conversant with C, etc. and don't particularly need/wan

Re: [Gambas-user] Question on ByteArray > 63 elements

2014-01-26 Thread Tobias Boege
On Sun, 26 Jan 2014, wally wrote: > Hi Jussi, > > still "too many arguments" > > I do something wrong, incedible a 63 limit for Byte[] > > GG.src.Insert([1,2,3,4, ... , 64, 65]) > This is a known limit, but it has nothing special to do with the Byte[] class. IIRC, I was the one who last asked

[Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
Hi Benoit, attached is a project that generates an "internal compiler error" with this usage of the New keyword: Public Sub Main() New Boolean[] End Actually, this is the project's whole code. What's wrong with it? Could we be able to do such a thing so that, e.g. PathWatch (gb.inotify) object

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > ?? > That doesn't make any sense, what do you think it should do? > > > Public Sub Main() > > New Boolean[] > > End > > It should create a Boolean[] and free it afterwards because there is no reference to it. -- "There's an old saying: Don't change

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > Well ok, but I don't think that should be allowed syntax (at least I don't > see any usage for it). > I do: the PathWatch class in gb.inotify or generally every object like this: --8<-[ MyObject.class ]-

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Mon, 27 Jan 2014, Tobias Boege wrote: > On Mon, 27 Jan 2014, Jussi Lahtinen wrote: > > Well ok, but I don't think that should be allowed syntax (at least I don't > > see any usage for it). > > > > I do: the PathWatch class in gb.inotify or gener

Re: [Gambas-user] Internal compiler error with New

2014-01-27 Thread Tobias Boege
On Tue, 28 Jan 2014, Jussi Lahtinen wrote: > Maybe it's my sleep deprivation, but I can't understand connection between > unreferenced array and this. How unreferenced array would help in this? By > definition, if you can't refer to it, how you can use it? > > Jussi > Yeah, sorry, the Boolean[]

Re: [Gambas-user] Question on ByteArray > 63 elements

2014-01-28 Thread Tobias Boege
On Tue, 28 Jan 2014, wally wrote: > > Le 26/01/2014 18:03, wally a ?crit : > >> Hello, > >> > >> i need to write more than 63 Bytes to an Byte[] in a structure. > >> > >> How to do this job ? > >> > >> mini example attached > >> > >> > >> thank you wally > >> > > Since revision #6110 the number of

Re: [Gambas-user] Possible bug in round() function

2014-01-30 Thread Tobias Boege
On Thu, 30 Jan 2014, Bruce wrote: > On Thu, 2014-01-30 at 10:33 +, Ricardo D??az Mart??n wrote: > > ? round (283.5 * 0.21, -2) > > very interesting. The miracles we call floats. > try > ? round (283.46 * 0.20996, -2) > 59.54 > > Strange and magical, we'd be

Re: [Gambas-user] Long C routine

2014-01-30 Thread Tobias Boege
On Thu, 30 Jan 2014, martin p cristia wrote: > Hi: > > I need a way to keep the GUI alive while processing a EXTERNAL C routine: > > Public Extern M8gauss(mfMatriz As Float[], vfX As Float[], vfTermns As > Float[], lOrder As Long) As Long > > wich is a Gaussian ecuations system solver, and can

Re: [Gambas-user] Is this a bug

2014-01-31 Thread Tobias Boege
On Fri, 31 Jan 2014, Wolfgang wrote: > Hello all, > > I found a strange behaviour with opacity. > > Example: > Public Sub ButtonStart_Click() > Dim img1, img2 As Image > Dim i As Integer > > 'let us load an image to img1 > img1 = Image.Load("data/map.png") > > > For i = 1 To 20 > i

<    2   3   4   5   6   7   8   9   10   11   >