[Gambas-user] reconf error for r7786 trunk

2016-05-24 Thread Tony Morehen
I ran reconf-all which quits with: autoreconf: configure.ac: adding subdirectory gb.httpd to autoreconf autoreconf: Entering directory `gb.httpd' aclocal: installing 'm4/libtool.m4' from '/usr/share/aclocal/libtool.m4' aclocal: installing 'm4/ltoptions.m4' from '/usr/share/aclocal/ltoptions.m4'

Re: [Gambas-user] [Gambas Bug Tracker] Bug #973: Desktop.RunAsRoot(): file or directory doesn't exist

2016-08-05 Thread Tony Morehen
Try adding the full path to chmod or cat. On 8/5/2016 5:00 PM, bugtrac...@gambaswiki.org wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.973=L21haW4- > > Comment #2 by vuott VUOTT: > >> Desktop.RunAsRoot requires the command to be written between the brackets. > Yes, I know it. > > >

Re: [Gambas-user] Arrays of Structs

2016-11-29 Thread Tony Morehen
I may just be responding to a typo but your struct is named MapObjec while the code using it refers to MapObject. On 28/11/16 10:40 PM, Cam Era wrote: > I expect I'm trying to do something that's not possible with Gambas, but > I'll ask this anyway. > > I'm trying to create an n x n array of a

Re: [Gambas-user] New Editor Side Bar

2016-12-17 Thread Tony Morehen
Fabian, it looks great and works like a charm. By the way, I'm working on text editor which would benefit from a couple of minor changes to the text editor component. Could you make $hDoc.Lines a read/write property of TextEditor and $hDoc.LineLength a read only property? I working on a

Re: [Gambas-user] New Editor Side Bar

2016-12-18 Thread Tony Morehen
Thanks for the info, Benoit. I'm still learning all of Gambas' nuances. BTW, I am using string.instr. On December 18, 2016 3:43:07 AM EST, "Benoît Minisini" <gam...@users.sourceforge.net> wrote: >Le 18/12/2016 à 05:52, Tony Morehen a écrit : >> Fabian, it looks gre

Re: [Gambas-user] A couple of ?s about encryption

2017-08-13 Thread Tony Morehen
Don't use .hidden. There is nothing secure about and its only used by the development/installation environments. Hidden directories in general do nothing for security. Don't worry about open source/GNU. All encryption programs use the same well known algorithms. It's passwords that

Re: [Gambas-user] How to stop a control raising events?

2017-08-13 Thread Tony Morehen
Careful, though, Object.Lock inhibits all events associated with a control, including events from internal controls. For example, DirView has an internal TreeView control. When you click on a folder or set the Current property in code, DirView tells the TreeView to expand that branch.

[Gambas-user] Weather app in Software Farm

2017-07-14 Thread Tony Morehen
I just uploaded a Weather systray app to the software farm. Comments/suggestions welcome. Enjoy. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org!

Re: [Gambas-user] Weather app in Software Farm

2017-07-16 Thread Tony Morehen
-mint-17-3 I haven't been able to test since I'm running Manjaro. What version of Mint are you using : Cinnamon, Mate Xfce? 17.? 18.? On 2017-07-15 09:39 AM, Charlie wrote: Tony Morehen wrote I just uploaded a Weather systray app to the software farm. Comments/suggestions welcome. Enjoy. Hi

Re: [Gambas-user] What is the simplest way to display text properties in Gambas?

2017-07-06 Thread Tony Morehen
Basically, assign some simple HTML to the text property. Not sure what comprises simple HTML though. ie TextLabel1.Text="Bold not bold" Seelhttp://gambaswiki.org/wiki/comp/gb.qt4/textlabel On 2017-07-06 12:43 PM, Fernando Cabral wrote: Based on the image you've sent a link to, I have not

Re: [Gambas-user] My quest for efficiency

2017-07-15 Thread Tony Morehen
Did you try Benoit's suggestion: Public Sub Main() Dim sIn as String Dim sOut as String sIn = File.Load("/home/fernando/temp/deah001.dhn") sOut = Add11(sIn) File.Save("/home/fernando/temp/deah001.11Added.dhn", sOut) End Public Sub Add11(InputString as String) as String Dim bArray

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

2017-07-18 Thread Tony Morehen
I'll compile and start using it right away. In the meantime, a feature request: Currently, a menu item with children does nothing before displaying its child menu items. I propose that the parent menu raise a click event before displaying its children. This would allow you to show/not show

Re: [Gambas-user] reading files

2017-07-20 Thread Tony Morehen
+02:00 Shane <buster6se...@gmail.com>: thanks tony sounds like just what i needed i will take a look cheers On 19/07/17 22:34, Tony Morehen wrote: I've attached an archive containing the code I use to read v1 and v2 MP3 tags and other MP3 info including bitrates (fixed and VBR), sa

Re: [Gambas-user] reading files

2017-07-19 Thread Tony Morehen
I've attached an archive containing the code I use to read v1 and v2 MP3 tags and other MP3 info including bitrates (fixed and VBR), sampling rates and number of channels. v1 tags are pretty staightforward to read if you don't try to read the structure directly, but by each element of the

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1128: Message.Question should return -1 on cancel

2017-07-19 Thread Tony Morehen
That is the documented behaviour: All Message functions can have up to three buttons: * The first button is always the default button. * The last button is always the cancel button. On 2017-07-19 09:20 AM, bugtrac...@gambaswiki.org wrote:

Re: [Gambas-user] reading files

2017-07-20 Thread Tony Morehen
Audio or development On 2017-07-20 02:40 PM, Hans Lehmann wrote: Am 20.07.2017 um 20:27 schrieb Tony Morehen: I've uploaded the class with a short command line demo to the software farm. Hello Tony, under which heading can I find the class in the software farm? Honsek

Re: [Gambas-user] reading files

2017-07-20 Thread Tony Morehen
I've uploaded the class with a short command line demo to the software farm. On 2017-07-20 12:22 PM, Gianluigi wrote: Hi Tony, Sorry if i answered instead of you, but I did not understand who the question was for :-( Regards Gianluigi 2017-07-20 15:35 GMT+02:00 Tony Morehen <tm

Re: [Gambas-user] Mystery with file.load and regexp

2017-07-04 Thread Tony Morehen
File.Load is working fine. It is just loading a file that has a trailing "\n". Split then adds an empty string as the last entry in the array. This is Split's documented behaviour. Adding the True option suppresses empty entries. Note that Split will also add an empty entry for any blank

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread Tony Morehen
It's difficult to say for sure what's happening without Piccaro's test strings. However, 2 things do come to mind. First, according to Gambas doc, InStr(strinchar, ")", -n) does a left to right search for ")", starting at -n characters from the end of strinchar. So if Instr doesn't find

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread Tony Morehen
tested, me too.. However the playground's editor does match the parentheses correctly. :) jajaja excelent work! Which Gambas version are you using ? There may be an old bug here. 3.9.1 with some git patches.. in the job i have 3.1 and at my home 3.5 its a bug in 3.9 and 3.8, with 3.1 wor

Re: [Gambas-user] Gambas ML problem

2017-08-09 Thread Tony Morehen
I haven't seen them either but nabble shows "This post has NOT been accepted by the mailing list yet." for all three posts. On 2017-08-09 01:25 PM, Gianluigi wrote: I do not understand. Does it mean that you see here [0] mails sent in the last few days? Who received Charlie's email [1] or

Re: [Gambas-user] Shell command formating

2017-08-07 Thread Tony Morehen
Try changing command to: command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path & " 2>1" On 2017-08-06 09:52 PM, Shane wrote: command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path -- Check

Re: [Gambas-user] Shell command

2017-08-07 Thread Tony Morehen
Shane, I can reproduce your crash here on 3.9.2. It's cause is the line: Settings["Options/stmDevice"] = ComboBox1.Current If that line is changed to: Settings["Options/stmDevice"] = ComboBox1.Current.Text or the simpler, and in my mind preferred: Settings["Options/stmDevice"] =

Re: [Gambas-user] Trouble with CSVFile Component

2017-07-27 Thread Tony Morehen
Did you add gb.utils component to your project? Project->Properties->Components & check gb.utils On 2017-07-27 07:10 PM, markwalt wrote: Hi guys, I'm trying to write a very simple program that pulls in one CSV File, and spits out another, based on what's inside the file. I see from the Wiki

Re: [Gambas-user] Difference DateDiff(...) ?

2017-08-06 Thread Tony Morehen
tment" in these cases: It may need to either raise an overflow error or return a 64bit Long. Hope this helps, zxMarce. On Aug 6, 2017, 12:00, at 12:00, Tony Morehen <tmore...@ajmconsulting.ca> wrote: zxMarce, you are exactly right. DateDiff returns an integer so when print adds the two datediff

Re: [Gambas-user] Shell command

2017-08-06 Thread Tony Morehen
what is the output of the shell line? If you could post the complete output, we could properly test your code. You could try this line: devices = Split(sdevices, " ", "", True) On 2017-08-06 08:35 PM, Shane wrote: Hi Jussi I gave that a try by commenting that line out still the same

Re: [Gambas-user] Difference DateDiff(...) ?

2017-08-06 Thread Tony Morehen
zxMarce, you are exactly right. DateDiff returns an integer so when print adds the two datediff it adds 2 signed integers and gets an signed integer. Since the max value of a signed integer is 2147483647, the answer of 2208988800 overflows to -2085978496. So print's behaviour is as expected.

[Gambas-user] [CRASH REPORT] gbUDisk2

2017-08-06 Thread Tony Morehen
Hello all, Damn, my program crashed Gambas this way : 1) Run the program 2) Plug in a usb drive 3) Click the mount button, mounts OK 4) Click the unmount button Program crashes Aborted(6) Console shows realloc error invalid old size Background: I'm writing a Udisks2 module that communicates

Re: [Gambas-user] [CRASH REPORT] gbUDisk2

2017-08-07 Thread Tony Morehen
-08-07 09:52 AM, Benoît Minisini wrote: Le 07/08/2017 à 15:02, Adrien Prokopowicz a écrit : Le Sun, 06 Aug 2017 17:56:27 +0200, Tony Morehen <tmore...@ajmconsulting.ca> a écrit: Hello all, Damn, my program crashed Gambas this way : 1) Run the program 2) Plug in a usb drive 3) Click the mount butt

Re: [Gambas-user] Balloons, everywhere but when I don't want them.

2017-08-18 Thread Tony Morehen
: This could perhaps implemented into the gb.Desktop component as 'Desktop.Notify()'? Den 18.08.2017 16:15, skrev Tobias Boege: On Fri, 18 Aug 2017, Tony Morehen wrote: Gambas can talk to the notifications daemon via Dbus. I use this code: Private NotifyInterface As String

Re: [Gambas-user] Git compilation report

2017-08-18 Thread Tony Morehen
I'd recommend for a very clean make: cd gambasdevel sudo make uninstall'really only needed on a version change or your compilation is likely 'to include different ie fewer components make clean 'get rid of all the generated or backup

Re: [Gambas-user] Mailinglist

2017-08-19 Thread Tony Morehen
What about using nabble itself? On 2017-08-19 03:25 PM, Jussi Lahtinen wrote: 1) Google groups are not a mailing-list. I want mails, so that I can have every post in my mail client and read them without Internet. They are if you want. That is exactly how I use google groups. I never use the

Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1134: The scrollbar in gb.form.terminal is virtually illegible against a black background.

2017-08-22 Thread Tony Morehen
I was using Breeze Dark and it was responsible for the invisible scroll bars. I've switched themes so this bug should be marked Rejected. On 2017-08-22 04:54 PM, Benoît Minisini via Gambas-user wrote: Message transféré Sujet : [Gambas Bug Tracker] Bug #1134: The scrollbar

Re: [Gambas-user] Connect to and control LibreOffice

2017-08-22 Thread Tony Morehen
You're not fixing TerminalView's Paste? On 2017-08-22 11:46 AM, Benoît Minisini via Gambas-user wrote: Le 22/08/2017 à 17:35, Fabien Bodard a écrit : hum or this :-) ... on the road... And as I just fixed the TerminalView control, you can even finish the gb.term.form component. :-)

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1133: Paste doesn't work in gb.form.terminal

2017-08-20 Thread Tony Morehen
I submitted a merge request on Gitlab to fix this bug. On 2017-08-10 11:21 PM, bugtrac...@gambaswiki.org wrote: http://gambaswiki.org/bugtracker/edit?object=BUG.1133=L21haW4- Tony MOREHEN reported a new bug. Summary --- Paste doesn't work in gb.form.terminal Type : Bug

Re: [Gambas-user] Class Implementing DBus Notifications

2017-08-20 Thread Tony Morehen
I saw that. As far as I could tell, it's identical to the gnome discussion. Including having the hints category and urgency discussion before the hints chapter! On 2017-08-20 12:06 PM, adamn...@gmail.com wrote: On Sun, 20 Aug 2017 11:37:38 -0400 Tony Morehen <tmore...@ajmconsulting

Re: [Gambas-user] Class Implementing DBus Notifications

2017-08-20 Thread Tony Morehen
1) I tried to be as agnostic as possible. The reference to the Gnome developer's specification is there because it is the only one available on the web. There is not even one on freedesktop.org. It is my understanding that modern DEs conform to that spec, including KDE, Gnome, Cinnamon,

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1133: Paste doesn't work in gb.form.terminal

2017-08-20 Thread Tony Morehen
CORO) http://qgqlochekone.blogspot.com 2017-08-20 9:57 GMT-04:00 Tony Morehen <tmore...@ajmconsulting.ca>: I submitted a merge request on Gitlab to fix this bug. On 2017-08-10 11:21 PM, bugtrac...@gambaswiki.org wrote: http://gambaswiki.org/bugtracker/edit?object=BUG.1133=L21haW4- Tony

Re: [Gambas-user] More DBus queries - signals

2017-08-20 Thread Tony Morehen
I see nothing amiss in your code. This is the code I use for a DbusObject. It is used to control a desktop menu application. Note the event declaration. DbusObject is missing, but implicit to the class. I raise the event the same way you do: DBus.Raise(hDbusObj,

Re: [Gambas-user] Balloons, everywhere but when I don't want them.

2017-08-18 Thread Tony Morehen
to the Notifications signal is never called. I've opened a bug report (1132) on this issue. On 2017-08-18 10:05 AM, Tony Morehen wrote: Gambas can talk to the notifications daemon via Dbus. I use this code: Private NotifyInterface As String = "org.freedesktop.Notifications" Private

Re: [Gambas-user] Balloons, everywhere but when I don't want them.

2017-08-18 Thread Tony Morehen
Gambas can talk to the notifications daemon via Dbus. I use this code: Private NotifyInterface As String = "org.freedesktop.Notifications" Private NotifyApp As String = "session://" & NotifyInterface Private NotifyPath As String = "/" & Replace(NotifyInterface, ".", "/") 'does the daemon

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-23 Thread Tony Morehen
Just a quick update on an Imap class.  The following methods have been implemented and, for the most part, tested: Abort, AddMessageFlags, Authed, BuildSequenceSet, Capabilities, CleanUpMailBoxList, Connect, CopyMessage, CopyMessages, CreateMailbox, Debug, DeleteMailbox, DeleteMessage,

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-23 Thread Tony Morehen
.  Idle and Notify commands can wait for 20 minutes or more. Comments? Suggestions?  I'd really appreciate advice on the best way to handle this. On 2017-09-23 09:09 PM, Tony Morehen wrote: Just a quick update on an Imap class.  The following methods have been implemented and, for the most

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-23 Thread Tony Morehen
d += 4096   Loop   Response = result.Join("") Now both TCP and openssl work, no zero-fill no errors. Any ideas? Other fixes? On 2017-09-23 09:09 PM, Tony Morehen wrote: Just a quick update on an Imap class.  The following methods have been implemented and, for the most part, tested

Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1196: Socket Lof returns 0 when data is available.

2017-10-04 Thread Tony Morehen
That fixes both polling and events.  Great work. and quite the turnaround! The change makes sense.  I read the original code as testing the actual, physical socket while the revised code effectively tests a virtual socket with responses buffered to the stream. Unfortunately, the fix does not

Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first declared bus for signals

2017-08-30 Thread Tony Morehen
Sorry, it doesn't work for me. In fact, my test program receives no signals at all. I'm working off what at the time was the latest commit, a2183117ffd8448b10008f76e7dac6eecd01cc3d I've attached the test program. To use, just insert or remove a usb drive and watch the debug messages.

Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first declared bus for signals

2017-08-30 Thread Tony Morehen
It is indeed fixed.  Thanks Benoit! BTW is there any way to add an event loop to a console app?  ie I want to use a console app as a daemon, responding to dbus signals. On 2017-08-30 03:57 PM, Benoît Minisini via Gambas-user wrote: Message transféré Sujet : [Gambas Bug

Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1161: Class Editor is Locked

2017-09-05 Thread Tony Morehen
and the original.  Try to add code and edit the new module etc. 4) Can the problems be related to dropbox. On 2017-09-05 09:52 AM, Fernando Cabral wrote: Tony Morehen wrote: The fact that Gambas runs properly from a vm strongly suggests that the problem is not Gambas, but is the system

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-24 Thread Tony Morehen
/09/2017 à 04:07, Tony Morehen a écrit : I came across an interesting issue when working on Imap's Fetch command.  Fetch is used to down load messages.  The response to a Fetch has 4 parts: 1) a single line providing the size of the download, say, 69000 bytes. 2) the mime-encoded download

Re: [Gambas-user] Support for IMAP in gb.net.curl

2017-09-28 Thread Tony Morehen
or an error occurs, whatever the underlying stream. Can you try it and tell me if it fixes the incomplete read on TCP sockets? Regards, Le 24/09/2017 à 04:07, Tony Morehen a écrit : I came across an interesting issue when working on Imap's Fetch command.  Fetch is used to down load messages

Re: [Gambas-user] CRYPT function - a little help please?

2017-08-24 Thread Tony Morehen
Dim userid As String Dim encrypted As String Dim cked As Boolean userid = "xcodex" encrypted = Crypt.md5(userid, "abcdefgh") cked = Crypt.Check(userid, encrypted) Print cked On 2017-08-24 06:14 PM, mikeB wrote: userid = "xcodex" Crypt.MD5(userid, "abcdefgh") cked = Crypt.Check(userid,

Re: [Gambas-user] Fwd: \r\n and \n

2017-08-27 Thread Tony Morehen
I'm having the same issue.  I have to remember to click reply to list.  Unfortunatly, memory fails all to often. On 2017-08-27 05:12 PM, Benoît Minisini via Gambas-user wrote: Le 27/08/2017 à 22:57, Jussi Lahtinen a écrit : I just realized that Benoit answered directly to me, not via the

[Gambas-user] Class Implementing DBus Notifications

2017-08-20 Thread Tony Morehen
As promised, attached is a heavily commented class implementing DBus Notifications. It is a complete implementation of the specification. There are two approaches to using the class: 1) fill in the properties and call SendNotification: Dim hDbusNotify As New DbusNotify

Re: [Gambas-user] TerminalView1.Exec(...)

2017-09-01 Thread Tony Morehen
If you're using a recent commit, you can use hTerminalView.Input("somecommand\n") to run it automatically or don't include "\n" and press ENTER. On 2017-09-01 03:15 AM, Hans Lehmann wrote: Hello, I currently test the component gb.form.terminal with the class TerminalView. The class works

Re: [Gambas-user] TerminalView1.Exec(...)

2017-09-01 Thread Tony Morehen
Your version is dated Aug 21.  Input() was added Aug 22. TerminalView has been updated quite a lot recently.  You should update to the current commit. On 2017-09-01 11:09 AM, Hans Lehmann wrote: Am 01.09.2017 um 15:05 schrieb Tony Morehen: If you're using a recent commit, you can use

Re: [Gambas-user] New domain name for Gambas

2017-09-01 Thread Tony Morehen
My preference is for gambas-basic.  It would make it easier for potential visitors to find the site. another option is perhaps to take over the gambas.guru site. It seems to be well structured  but has been read only for some time. On 2017-09-01 05:13 PM, Adrien Prokopowicz wrote: I have the

Re: [Gambas-user] New domain name for Gambas

2017-09-01 Thread Tony Morehen
.org and .net are owned by buydomains.com, expire 5/18 On 2017-09-01 07:34 PM, PICCORO McKAY Lenz wrote: why gambas are unnavailable? how many days left to one of that domains? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-09-01 16:39 GMT-04:00 Benoît Minisini via

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1136: ColorButton fails with error bad drawing under gtk2 and gtk3

2017-09-02 Thread Tony Morehen
Sorry, I realized after I uploaded the project that I uploaded a version using a customized DirView.  Is there any way to delete the gbTerm I published to the Software Farm? My version of DirView has some new events and properties.  It is otherwise 100% compatible with the standard DirView.

Re: [Gambas-user] [Gambas Bug Tracker] Bug #1136: ColorButton fails with error bad drawing under gtk2 and gtk3

2017-09-02 Thread Tony Morehen
Some how I've wound up with 2 gambaswiki accounts.  I logged in with the wrong account so didn't see the remove button. On 2017-09-02 02:47 PM, Benoît Minisini wrote: Le 02/09/2017 à 20:09, Tony Morehen a écrit : Sorry, I realized after I uploaded the project that I uploaded a version using

Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first declared bus for signals

2017-08-30 Thread Tony Morehen
and gb.base Everything worked.  I have my daemon with a minimum of memory overhead.  Brilliant! On 2017-08-30 06:10 PM, Benoît Minisini wrote: Le 31/08/2017 à 00:07, Tony Morehen a écrit : It is indeed fixed.  Thanks Benoit! BTW is there any way to add an event loop to a console app?  ie I

Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first declared bus for signals

2017-08-31 Thread Tony Morehen
Hans, I've uploaded gbAutoMount to the Software Farm.  It shows what you can do with Udisks2 and desktop notifications. On 2017-08-31 12:43 PM, Hans Lehmann wrote: Am 31.08.2017 um 16:40 schrieb Tony Morehen: There were issues with dbus signals that were cleared up in the recent development

Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1161: Class Editor is Locked

2017-09-05 Thread Tony Morehen
Fernando, The fact that Gambas runs properly from a vm strongly suggests that the problem is not Gambas, but is the system environment that Gambas is running in. What directory is your project located?  Have you tried copying the project to your home directory?  In the vm, is Gambas loading