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
.
On 2017-09-26 08:59 PM, Benoît Minisini via Gambas-user wrote:
Hi, Tony.
I have just pushed the 'rework-stream-interface' branch to the gitlab
repository.
I have reworked the internal interpreter stream interface, so that
incomplete reads are retried automatically until all the da
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. 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 d
bytesread += 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 pa
meout. 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, fo
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, DeleteM
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
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
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
ver
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.
.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 Gambas
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
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 ca
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 as
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 develo
.DBus 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?
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 Tra
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.
BTW
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 list
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, "abcdefg
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 i
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. :-)
-
/merge_requests,
On 2017-08-20 03:44 PM, PICCORO McKAY Lenz wrote:
tony, the answers to "bugtraker" are not traked.. you must enter in the bug
url and paste the respnse here.. and will be usefully the url of the merge
url request to able others track the help/colaboration
Lenz McKAY Gerardo (PIC
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 wrote:
1) I tried to
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,
"org.ajmconsulting.gbme
mounted. I use 2 separate notifications because mounting can take some
time.
Anyway, attached is a revised class.
On 2017-08-20 10:19 AM, adamn...@gmail.com wrote:
Thanks, for that Tony, some good stuff in there (the least of which is
that damned "hints" collection!) Since my origi
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&from=L21haW4-
Tony MOREHEN reported a new bug.
Summary
---
Paste doesn't work in gb.form.terminal
Type
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
hDbusN
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 w
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 cru
ote:
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 Notif
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"
Priva
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 suppor
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. TreeV
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 guarant
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 In
On 2017-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
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 button, mounts OK
4) Click t
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 ou
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"] = ComboBox1.T
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 result
tude adjustment" 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 wrote:
zxMarce, you are exactly right. DateDiff returns an integer so when
print adds the two datediff it adds 2 sign
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 wit
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.
;
fn("(foo)xx") do you want "(foo)" or "(foo" or "(foo)x" yours returns
"(foo)x"
fn("(foo)xxx") do you want "(foo)" or "(foo" or "(foo)x" or "(foo)xx"
yours returns "(foo)xx"
Let's
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 ")"
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
Hi Charlie, I just published a new version of gbWeather. Changes include:
1) No editing is done to the location name, except for the Trim() you
suggested.
2) LocationID is now used for both OpenWeather and Yahoo Weather
lookups. That means changes to location after the locationid has been
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?
H
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 :
It
bytes
i can see that tony didn't right it i should of said did he convert it
to gambas ?
i think this should be in the farm ?
On 20/07/17 21:04, Gianluigi wrote:
2017-07-20 12:09 GMT+02:00 Shane :
yep can't use structs have to do like tony's code works perfect thanks
again
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:
http://gambaswiki.org/bugtracker/edit?objec
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 stru
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
-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.
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
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! http://sdm.link/sl
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 be
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 l
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"
wrote:
>Le 18/12/2016 à 05:52, Tony Morehen a écrit :
>> Fabian, it looks great and works like a charm.
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 searc
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 S
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&from=L21haW4-
>
> Comment #2 by vuott VUOTT:
>
>> Desktop.RunAsRoot requires the command to be written between the brackets.
> Yes, I know it.
>
>
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'
ac
nuCash for
personal accounting for some time. The double entry bit and UI are a
little clunky for my basic needs, but in the end it works. I'm think you
can use it for billing and you can tailor reports etc in guile, so it
may be worth a look. Source code should be available since it is GP
apter is plugged a
symbolic link is created to the appropriate tty. In my case /dev/ttyATEN0 ->
/dev/ttyUSB0-4. The adapter can then be addressed from Gambas as
/dev/ttyATEN0.
[14]http://www.reactivated.net/writing_udev_rules.html
Hope this helps,
Tony.
References
y this has been fixed, it would seem to be another plus.
Regards,
Tony.
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions f
Benoit,
Here is the output of valgrind as requested. I hope it helps.
Regards,
Tony..
$ valgrind --tool=memcheck --num-callers=50 gbx2
==2404== Memcheck, a memory error detector
==2404== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==2404==
Thanks and regards,
Tony..
Benoît Minisini wrote:
Thanks Benoit and all for your speedy replies..
I'm using the serial port in a timing application with 3 laser through
beam sensors feeding into the CTS, RI and DSR lines of the serial port. In
this mode I don't pass any data
oing back to polling, a property to define the frequency
would be nice.
Thanks again,
Tony.
Benoît Minisini wrote:
Thanks for the suggestion Ricardo.
I have already compiled G2.18 from source onto Ubuntu 9.04. The
application was working fine on Ubuntu 9.04 with G2.8 but fails w
binary on Ubuntu 9.10 which doesn't work).
Regards,
Tony..
Ricardo DÃaz MartÃn wrote:
Tony,
Try to compile gambas2 again. I got similar problem with apps after upgrade
ubuntu from 9.04 yo 9.10 and it was necessary to do this:
sudo apt-get install build-essential autoconf libbz
Hi,
I have a Gambas2 application (gb.qt) checking for status change events
on the CTS, RI and DSR signals (SerialPort-gb.net class) of a USB to
serial converter (Prolific pl2303) which works fine on Ubuntu 9.04
(Gambas2 2.8 and kernel 2.6.28-16-generic 32bit). After upgrade to
Ubuntu 9.10 (Gam
71 matches
Mail list logo