Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Randall Morgan
Wally, I've been looking at the GSL and Gambas C/C++ components. I'm thinking we can create a gsl component in C. I'm playing around with that idea now. If I can get some simple examples working then I know I can get more advanced things working. Writing a C based component should make life a lit

Re: [Gambas-user] Out of Memory Error

2012-01-23 Thread ekimtrah
ekimtrah wrote: > > It runs out of memory in the RemoveBetween function on the web page in the > code but not on other Web Pages. > I found the problem, had to change WHILE (StartStrPos > 0) to WHILE (StartStrPos > 0) AND (EndStrPos > StartStrPos) There is a tag at the end of that page I

Re: [Gambas-user] How to create simple applet?

2012-01-23 Thread abbat
I hope he is interested in this function. Thanks for support. Peter. Jussi Lahtinen wrote: > > OK, now think I understand what you mean... You want to make LXPanel > plugin. > I rechecked the link you send. I'm not sure you can do that with Gambas. > > Trayicon shows only small icon, so I don

Re: [Gambas-user] How to create simple applet?

2012-01-23 Thread Jussi Lahtinen
OK, now think I understand what you mean... You want to make LXPanel plugin. I rechecked the link you send. I'm not sure you can do that with Gambas. Trayicon shows only small icon, so I don't think you can reasonably fit text to it, but you can put text to tooltip of that icon. Maybe it is the se

Re: [Gambas-user] Unable to compile gb.form.stock

2012-01-23 Thread Matti
Confirmed. The message has gone now. Am 23.01.2012 20:28, schrieb Benoît Minisini: > Le 23/01/2012 20:07, Matti a écrit : >> First, I deleted everything in /trunk, did svn checkout (rev.4415 now) >> and recompiled. >> Same result. >> >> Then, I deleted everything in /usr/local/bin and >> /usr/loc

Re: [Gambas-user] Unable to compile gb.form.stock

2012-01-23 Thread Benoît Minisini
Le 23/01/2012 20:07, Matti a écrit : > First, I deleted everything in /trunk, did svn checkout (rev.4415 now) > and recompiled. > Same result. > > Then, I deleted everything in /usr/local/bin and > /usr/local/share/gambas3, and recompiled again. > Same result. There is this warning message, but all

Re: [Gambas-user] Unable to compile gb.form.stock

2012-01-23 Thread Matti
First, I deleted everything in /trunk, did svn checkout (rev.4415 now) and recompiled. Same result. Then, I deleted everything in /usr/local/bin and /usr/local/share/gambas3, and recompiled again. Same result. There is this warning message, but all the stock icons are usable. Output is attatc

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Wally
Rqandall, let us listen Marcin first. Maybe he has some interesting informations. In fityk i found that the favourie mehtod is "chi squares method". Gsl offers this also : — Function: double gsl_cdf_chisq_P (double x, double nu) — Function: double gsl_cdf_chisq_Q (double x, double nu) — Function:

Re: [Gambas-user] How to create simple applet?

2012-01-23 Thread abbat
I mean a time-text near that icon. I need send my text near that icon, like time shows on panel, not pop-up Jussi Lahtinen wrote: > > Do you mean trayicon? > http://gambasdoc.org/help/comp/gb.qt4/trayicon?v3 > > Jussi > > > > On Mon, Jan 23, 2012 at 19:59, abbat wrote: > >> >> >> I need

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Randall Morgan
Looks to me that as long as any derivative work is lincesed GPL and we follow it's terms we should be good to go with the fityk library. On Mon, Jan 23, 2012 at 10:18 AM, Randall Morgan wrote: > Wally, > > I just found this: http://fityk.nieto.pl/intro.html#about > > If you scroll down you'll f

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread Benoît Minisini
Le 23/01/2012 19:07, M. Cs. a écrit : > I found a way to do, but I didn't understand what Benoit wanted: > If I have a query, I can always do the following: > Replace > "SELECT * FROM CATALOGS WHERE VName=." > with > "SELECT * FROM CATALOGS WHERE "& DB.Subst("VName=&1",...)& "..." > > That

Re: [Gambas-user] How to create simple applet?

2012-01-23 Thread Jussi Lahtinen
Do you mean trayicon? http://gambasdoc.org/help/comp/gb.qt4/trayicon?v3 Jussi On Mon, Jan 23, 2012 at 19:59, abbat wrote: > > > I need applet on label which would be situated near time-applet on LXPanel. > Sorry, I'm not professional, I tried to understand this manual: > http://home.student.u

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Randall Morgan
Wally, I just found this: http://fityk.nieto.pl/intro.html#about If you scroll down you'll find that the fityk library is licensed under the GPL 2 or later. This should allow us to create derivative works. Take a look at the license and I will too. Randall On Mon, Jan 23, 2012 at 10:11 AM, Ra

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Randall Morgan
OK thank you. On Mon, Jan 23, 2012 at 10:09 AM, Wally wrote: > > Marcin Wojdyr , author of fityk told me he will post his opinion > directlty here to the mailinglist today or tomorrow. > > On Monday, January 23, 2012 09:59:16 Randall Morgan wrote: > > Thanks, Wally. > > > > I'll go over both but

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Wally
Marcin Wojdyr , author of fityk told me he will post his opinion directlty here to the mailinglist today or tomorrow. On Monday, January 23, 2012 09:59:16 Randall Morgan wrote: > Thanks, Wally. > > I'll go over both but get back to me once you have an answer from the > author of fityk. I would

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread M. Cs.
I found a way to do, but I didn't understand what Benoit wanted: If I have a query, I can always do the following: Replace "SELECT * FROM CATALOGS WHERE VName=." with "SELECT * FROM CATALOGS WHERE " & DB.Subst("VName=&1",...) & "..." That can solve the problem. I'm sorry but something can be

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Randall Morgan
Thanks, Wally. I'll go over both but get back to me once you have an answer from the author of fityk. I would still love to see a plot and GSL module for Gambas. But fityk looks like a lot less work right now. GSL has grown quite a bit since I last used it. On Mon, Jan 23, 2012 at 4:29 AM, Wally

Re: [Gambas-user] How to create simple applet?

2012-01-23 Thread abbat
I need applet on label which would be situated near time-applet on LXPanel. Sorry, I'm not professional, I tried to understand this manual: http://home.student.utwente.nl/j.vanderhoff/LXPanel_HowTo.html but I could not translate it to Gambas. I just asked a example of such applet on Gambas to mo

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread Caveat
Why not just process one term at a time? Dim conn As Connection Dim termStr As String Dim terms As String[] Dim enteredTerm, escapedTerm As String ... conn = DataAccess.getConnection() ... ' Get termStr from the input box 'termStr = txtQueryInput.Text ' Set termStr manua

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread M. Cs.
Hello again: PRINT DB.Subst("WHERE Name = &1 AND Date = &2", "Benoit", Now) WHERE Name = 'Benoit' AND Date = '2006-02-15 11:51:33.043' This is the given example for the DB.Subst. But what if the user has a textBox input in which he can enter the search phrases divided by gaps like: "Benoit .jpg Su

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread M. Cs.
I'm sorry Benoit, but I didn't realized that in "You must use DB.Subst()" the You is me. I was thinking you are answering to Johnny. I'll give a try. Csaba 2012/1/23, Benoît Minisini : > Le 23/01/2012 14:03, M. Cs. a écrit : >> Well, that was the thing I was fearing: I must handle the characters

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread Benoît Minisini
Le 23/01/2012 14:03, M. Cs. a écrit : > Well, that was the thing I was fearing: I must handle the characters > by my own. The strange thing is , that if I have something like > DB.Exec("SELECT * FROM CATALOGS WHERE VName=&1","Blackmore's Night'") > the query won't fail. > I can even have query > DB

Re: [Gambas-user] How to create simple applet?

2012-01-23 Thread Jussi Lahtinen
Reason for why I haven't answer, is, I don't quite understand what you want to know. If you can start Gambas IDE, there shouldn't be any problems to create just an some applet. Where do you need this text? In form title? To a label? What is the problem exactly? Jussi On Mon, Jan 23, 2012 at 02

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread M. Cs.
Well, that was the thing I was fearing: I must handle the characters by my own. The strange thing is , that if I have something like DB.Exec("SELECT * FROM CATALOGS WHERE VName=&1","Blackmore's Night'") the query won't fail. I can even have query DB.Exec("SELECT * FROM CATALOGS WHERE VName LiKE &1"

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Wally
The spline example is member of Gambas3 examples "Examples-> Drawing->GSLSpline" or see attachment I'll try to contact the author of fityk to get his opinion about what we want to do. Fityk seems more clear and easier to implement. On the other hand GSL covers a much wider range of functionality.

Re: [Gambas-user] How to know Height and Width of screen?

2012-01-23 Thread Benoît Minisini
Le 23/01/2012 12:32, abbat a écrit : > > > in VB.NET I get it by this way: > > Dim yy As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height > Dim xx As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width > > How to do it in Gambas 3? > > Thanks Desktop.Width / Desktop.H

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Randall Morgan
I don't think this app is licensed OSS. So I am not sure if you can legally write a module with it. The GSL or similar library is the way to go. I have my plate full at the moment but I will try to give you as much guidance as I can. Be forewarned I too am still learning. Give me a day or two to g

[Gambas-user] How to know Height and Width of screen?

2012-01-23 Thread abbat
in VB.NET I get it by this way: Dim yy As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height Dim xx As Integer = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width How to do it in Gambas 3? Thanks -- View this message in context: http://old.nabble.com/How-to-know-Height-an

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Benoît Minisini
Le 23/01/2012 11:59, Wally a écrit : > On Monday, January 23, 2012 11:47:47 Benoît Minisini wrote: >> Le 22/01/2012 09:54, Wally a écrit : >>> Does anyone have experience with curve fitting and/or peakfinding >>> using gambas ?(e.g. example code) >>> >>> Is there a plain C library (Linux) known

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Randall Morgan
You must be familiar with C at some level? I'd be surprised if the GSL doesn't already have a C wrapper somewhere. I haven't used it in many years so I can't recall, and I am sure it has changed. It sounds like you've already got a start. So you just need to invest more time into porting GSL to Gam

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Wally
On Monday, January 23, 2012 11:47:47 Benoît Minisini wrote: > Le 22/01/2012 09:54, Wally a écrit : > > Does anyone have experience with curve fitting and/or peakfinding > > using gambas ?(e.g. example code) > > > > Is there a plain C library (Linux) known, suitable to this problem > > and gamb

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Randall Morgan
Yes it is entirely possible. It just take a little time and elbow grease. To use C++ you simply have to write a C wrapper. 2012/1/23 Benoît Minisini > Le 22/01/2012 09:54, Wally a écrit : > > > > Does anyone have experience with curve fitting and/or peakfinding > > using gambas ?(e.g. exam

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Benoît Minisini
Le 22/01/2012 09:54, Wally a écrit : > > Does anyone have experience with curve fitting and/or peakfinding > using gambas ?(e.g. example code) > > Is there a plain C library (Linux) known, suitable to this problem > and gambas ? > > Something like "fityk" (which is written in C++) but written i

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread Benoît Minisini
Le 23/01/2012 00:15, M. Cs. a écrit : > I have a dinamically created query text. I don't know the number of > parameters passed to the DB.Exec, so I cannot use&1,&2,... form. I > need to use the DB.Quote() > My problem is: If I have a string > mystring="Blackmore's Night", > the DB.Quote(mystring)

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Wally
Do you think it's possible to create a gambas module, similar to "gb.db.sqlite3" or "gb.cairo" but , lets say "gb.gsl" or "gb.math" ? These gb.moduls seems to be able to use C++ Libraries. Ok, most of the people which are able to to this, usually do not have time to do it. I have time but no e

Re: [Gambas-user] DB.Quote() doesn't quotes apostrophes

2012-01-23 Thread Johny Provoost
op 23-01-12 00:15, M. Cs. schreef: > I have a dinamically created query text. I don't know the number of > parameters passed to the DB.Exec, so I cannot use&1,&2,... form. I > need to use the DB.Quote() > My problem is: If I have a string > mystring="Blackmore's Night", > the DB.Quote(mystring) wo

Re: [Gambas-user] How to create simple applet?

2012-01-23 Thread Caveat
On Sun, 2012-01-22 at 16:10 -0800, abbat wrote: > How to create simple applet with text? > > Thanks That's the fourth time you've asked the same question on this list within a matter of days. The chances of getting an answer do not increase with the number of times you ask the same question... i

Re: [Gambas-user] Bizarre things with controls

2012-01-23 Thread John Rose
Caveat, Thanks for your comp_gambas script. I just ran the sudo apt-get command that you supplied. Everything OK except for 'Couldn't find package libgdk-pixbuf2.0-dev' I'm using Ubuntu Lucid. Can you point me tothis package? ---

Re: [Gambas-user] Bizarre things with controls

2012-01-23 Thread Caveat
Hi John, For compiling Gambas, I use a script which was originally inspired by Kevin Fishburne of this mailing list. I've hacked it around a bit and added stuff to it over time. The script is called comp_gambas and is attached herewith. The script contains all (?) the commands needed for compil

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Randall Morgan
Wally, SG and RDP both would do a decent job for you since you need to preserve your peaks. I don't have code for this but you can find psuedo code for it on Wikipedia. The sudo code should be easy to convert into Gambas. It would be nice if one Gambas had tools like GSL, Armadillo, PyLab, and Num

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Wally
The signal data i want to process comes from a HPLC detctor, which generates analog voltage outputs. e.g. every second one meqasurement. The data is typical chromatography data as generated by several spectroscopic methods. The time base can be set to different values but mostly i use 1 Hz. A 16

Re: [Gambas-user] curve fitting library ?

2012-01-23 Thread Randall Morgan
Most of the stuff I did in signal processing was on the 68000 and Z80's. So I let most of that go a very long time ago. Besides, unless you know what you are looking for in a smoothing algorithm, any code would be useless. For example, the simplest algorithm for smoothing is the moving average meth