Re: [Gambas-user] Feature Request

2016-10-31 Thread Jorge Carrión
I agree with that, Fabien.

Regards

2016-10-31 9:33 GMT+01:00 Fabien Bodard :

> 2016-10-30 13:48 GMT+01:00 Jorge Carrión :
> > It would be great if Gambas would report of Farm's actualizations on
> > installed projects at start... I think.
>
> Maybe not at Ide start but at the farm start... It avoid some slow.
>
> >
> > Best Regards
> > 
> --
> > The Command Line: Reinvented for Modern Developers
> > Did the resurgence of CLI tooling catch you by surprise?
> > Reconnect with the command line and become more productive.
> > Learn the new .NET and ASP.NET CLI. Get your free copy!
> > http://sdm.link/telerik
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> --
> Fabien Bodard
>
> 
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2016-10-31 Thread Fabien Bodard
2016-10-30 13:48 GMT+01:00 Jorge Carrión :
> It would be great if Gambas would report of Farm's actualizations on
> installed projects at start... I think.

Maybe not at Ide start but at the farm start... It avoid some slow.

>
> Best Regards
> --
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature Request

2016-10-30 Thread Jorge Carrión
It would be great if Gambas would report of Farm's actualizations on
installed projects at start... I think.

Best Regards
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request for gambas load screen

2016-02-25 Thread Rolf-Werner Eilert

Am 26.02.2016 04:35, schrieb richard terry:
> On 26/02/16 10:07, Charlie Reinl wrote:
>> Am Donnerstag, den 25.02.2016, 22:54 +0100 schrieb Benoît Minisini:
>>> Le 25/02/2016 22:42, Charlie Reinl a écrit :
 Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry:
> Hi benoit,
>
> If there is another way to do this please let me know.
>
> When I load gambas the boot screen has lots of 'old' projects on it. As
> I continue to develop my software I sometimes run in parallel different
> versions, they will com up looking the same except different database
> version and svn version numbers, it all get very confusing, especially
> if having to scroll down through other recently loaded gambas projects
> eg downloaded from the software farm.
>
> Is there any way one can currently delete the unwanted ones, or could
> you on the right mouse popup menu put a Delete Project from list option.
>
> Regards
>
> richard
 Salut Richard,

 cleaning up the project list, that was realised at Revision: 7589 but
 now on Revision: 7610 I see it got lost!

>>> In '/trunk' IDE, you have a little delete icon visible when you hover
>>> the project box: click on it to remove the project from the recent list.
>>>
>>> Regards,
>> Salut Benoît,
>>
>> OH, yes indeed, oh thats the smarter solution! But not easy to find out.
>> Thank you for telling.
> I'm clueless, can't see this, could someone send me a screen dump
> showing where it is to rte...@internode.on.net (thanks)
>
> richard
>

It's on the trunk version only. I guess you use the latest official one 
like me? It's not there yet.

Regards
Rolf


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request for gambas load screen

2016-02-25 Thread Rolf-Werner Eilert

Am 25.02.2016 22:54, schrieb Benoît Minisini:
> Le 25/02/2016 22:42, Charlie Reinl a écrit :
>> Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry:
>>> Hi benoit,
>>>
>>> If there is another way to do this please let me know.
>>>
>>> When I load gambas the boot screen has lots of 'old' projects on it. As
>>> I continue to develop my software I sometimes run in parallel different
>>> versions, they will com up looking the same except different database
>>> version and svn version numbers, it all get very confusing, especially
>>> if having to scroll down through other recently loaded gambas projects
>>> eg downloaded from the software farm.
>>>
>>> Is there any way one can currently delete the unwanted ones, or could
>>> you on the right mouse popup menu put a Delete Project from list 
>>> option.
>>>
>>> Regards
>>>
>>> richard
>>
>> Salut Richard,
>>
>> cleaning up the project list, that was realised at Revision: 7589 but
>> now on Revision: 7610 I see it got lost!
>>
>
> In '/trunk' IDE, you have a little delete icon visible when you hover 
> the project box: click on it to remove the project from the recent list.
>
> Regards,
>

In your screenshot, I can see that you have this mosaic pattern in the 
main window. Same on my laptop, but on the terminal server, the window 
is just gray. Any idea what that means?

Regards
Rolf


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request for gambas load screen

2016-02-25 Thread richard terry
On 26/02/16 10:07, Charlie Reinl wrote:
> Am Donnerstag, den 25.02.2016, 22:54 +0100 schrieb Benoît Minisini:
>> Le 25/02/2016 22:42, Charlie Reinl a écrit :
>>> Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry:
 Hi benoit,

 If there is another way to do this please let me know.

 When I load gambas the boot screen has lots of 'old' projects on it. As
 I continue to develop my software I sometimes run in parallel different
 versions, they will com up looking the same except different database
 version and svn version numbers, it all get very confusing, especially
 if having to scroll down through other recently loaded gambas projects
 eg downloaded from the software farm.

 Is there any way one can currently delete the unwanted ones, or could
 you on the right mouse popup menu put a Delete Project from list option.

 Regards

 richard
>>> Salut Richard,
>>>
>>> cleaning up the project list, that was realised at Revision: 7589 but
>>> now on Revision: 7610 I see it got lost!
>>>
>> In '/trunk' IDE, you have a little delete icon visible when you hover
>> the project box: click on it to remove the project from the recent list.
>>
>> Regards,
> Salut Benoît,
>
> OH, yes indeed, oh thats the smarter solution! But not easy to find out.
> Thank you for telling.
I'm clueless, can't see this, could someone send me a screen dump 
showing where it is to rte...@internode.on.net (thanks)

richard


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request for gambas load screen

2016-02-25 Thread Charlie Reinl
Am Donnerstag, den 25.02.2016, 22:54 +0100 schrieb Benoît Minisini:
> Le 25/02/2016 22:42, Charlie Reinl a écrit :
> > Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry:
> >> Hi benoit,
> >>
> >> If there is another way to do this please let me know.
> >>
> >> When I load gambas the boot screen has lots of 'old' projects on it. As
> >> I continue to develop my software I sometimes run in parallel different
> >> versions, they will com up looking the same except different database
> >> version and svn version numbers, it all get very confusing, especially
> >> if having to scroll down through other recently loaded gambas projects
> >> eg downloaded from the software farm.
> >>
> >> Is there any way one can currently delete the unwanted ones, or could
> >> you on the right mouse popup menu put a Delete Project from list option.
> >>
> >> Regards
> >>
> >> richard
> >
> > Salut Richard,
> >
> > cleaning up the project list, that was realised at Revision: 7589 but
> > now on Revision: 7610 I see it got lost!
> >
> 
> In '/trunk' IDE, you have a little delete icon visible when you hover 
> the project box: click on it to remove the project from the recent list.
> 
> Regards,

Salut Benoît,

OH, yes indeed, oh thats the smarter solution! But not easy to find out.
Thank you for telling. 
-- 
Amicalement
Charlie


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request for gambas load screen

2016-02-25 Thread Charlie Reinl
Am Freitag, den 26.02.2016, 07:55 +1100 schrieb richard terry:
> Hi benoit,
> 
> If there is another way to do this please let me know.
> 
> When I load gambas the boot screen has lots of 'old' projects on it. As 
> I continue to develop my software I sometimes run in parallel different 
> versions, they will com up looking the same except different database 
> version and svn version numbers, it all get very confusing, especially 
> if having to scroll down through other recently loaded gambas projects 
> eg downloaded from the software farm.
> 
> Is there any way one can currently delete the unwanted ones, or could 
> you on the right mouse popup menu put a Delete Project from list option.
> 
> Regards
> 
> richard

Salut Richard,

cleaning up the project list, that was realised at Revision: 7589 but
now on Revision: 7610 I see it got lost!


 
-- 
Amicalement
Charlie


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request for gambas load screen

2016-02-25 Thread richard terry
Hi benoit,

If there is another way to do this please let me know.

When I load gambas the boot screen has lots of 'old' projects on it. As 
I continue to develop my software I sometimes run in parallel different 
versions, they will com up looking the same except different database 
version and svn version numbers, it all get very confusing, especially 
if having to scroll down through other recently loaded gambas projects 
eg downloaded from the software farm.

Is there any way one can currently delete the unwanted ones, or could 
you on the right mouse popup menu put a Delete Project from list option.

Regards

richard


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2015-06-19 Thread willy
On 2015-06-19 03:10, Benoît Minisini wrote:
 Le 19/06/2015 02:40, wi...@develop.earthshipeurope.org a écrit :
 This is a bug, as the Gambas executable are (or should be)
 architecture-independant. Can you provide me the i386 and the armhf
 packages?
 
 First, it will have to wait until monday because the code is at my
 system at work.
 Secondly, the application requires a internal database to run.
 Thirdly, internal company database content is required by contract to
 stay internal company data
 
 So, I will have to try and reproduce the problem in some small project
 and send that one.
 It may take a while but I will get back to that.
 
 The armhf system I'm running is a Lubuntu 14.04
 The i386 systems are running Lubuntu 12.04 and Linux Mint 17.1 Mate
 
 
 I don't need to run the programs, I just need to have the two packages
 to compare them (the Gambas executables only). I guess this is an
 endianness problem, so by comparing the two packages, I may find where
 the problem is.

Okay Benoît,

But it will still have to wait until monday :)

gbWilly



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2015-06-19 Thread willy
On 2015-06-19 02:12, Benoît Minisini wrote:
 Le 18/06/2015 23:05, wi...@develop.earthshipeurope.org a écrit :
 Hi all,
 
 I have been looking at the Gambas IDE package code (in
 app/.src/gambas3/.src/packager folder)
 In the package module I see that packages for debain/ubuntu are made
 with:
 dpkg-buildpackage -d -rfakeroot
 
 Request 1:
 Could a simple -kkeyid option be added to 'dpkg-buildpackage -d
 -rfakeroot' for debian/ubuntu, so packages can be signed.
 This could be set as a preference in IDE where you could select 
 'package
 with key' and enter the key in a field and select the distro the key 
 has
 to be used for when signing.
 
 Maybe it should be possible to have multople seperate key like one for
 Debian and one for Ubuntu to sign with (just thinking out loud)
 
 Is the signature something associated with the user, i.e. the same
 signature will theoritically be used for all projects for the same 
 system?
 
 Note that packager can only make a difference between the provided
 distributions.
 
 
 I have no idea how signing rpm packages works, but I guess it might be
 useful there as well.
 
 This is needed, I should implement signing for all packages: deb, rmp,
 but also ArchLinux and Slackware! Not just for Debian...
 
 
 Request 2:
 I have noticed that some of the own application when packaged on i386
 system (architecture for package by IDE is set to all) and installed 
 on
 an armhf, they do not alway run, but crash without any GUI to be seen.
 If I next package that application on armhf (again as an all package)
 and install it on armhf it does run!!
 
 This is a bug, as the Gambas executable are (or should be)
 architecture-independant. Can you provide me the i386 and the armhf
 packages?
 
 Thanks.

Request 3:
Could the standards version used in debian/control file for packaging 
Debian and Ubuntu packages be a preference as well. I saw in the code 
that it is kind of old.
Standards version 3.9.5 would be more up to date and it changes from 
time to time, so maybe it shouldn't be hardcoded, but just a default 
value that is configurable in IDE.

Thanks,

gbWilly


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2015-06-19 Thread willy
On 2015-06-19 02:12, Benoît Minisini wrote:
 Le 18/06/2015 23:05, wi...@develop.earthshipeurope.org a écrit :
 Hi all,
 
 I have been looking at the Gambas IDE package code (in
 app/.src/gambas3/.src/packager folder)
 In the package module I see that packages for debain/ubuntu are made
 with:
 dpkg-buildpackage -d -rfakeroot
 
 Request 1:
 Could a simple -kkeyid option be added to 'dpkg-buildpackage -d
 -rfakeroot' for debian/ubuntu, so packages can be signed.
 This could be set as a preference in IDE where you could select 
 'package
 with key' and enter the key in a field and select the distro the key 
 has
 to be used for when signing.
 
 Maybe it should be possible to have multople seperate key like one for
 Debian and one for Ubuntu to sign with (just thinking out loud)
 
 Is the signature something associated with the user, i.e. the same
 signature will theoritically be used for all projects for the same 
 system?
 
 Note that packager can only make a difference between the provided
 distributions.
 
 
 I have no idea how signing rpm packages works, but I guess it might be
 useful there as well.
 
 This is needed, I should implement signing for all packages: deb, rmp,
 but also ArchLinux and Slackware! Not just for Debian...

Here is some info on signing rpm packages:
http://www.rpm.org/max-rpm/s1-rpm-pgp-signing-packages.html
Here some on signing Arch packages:
http://allanmcrae.com/2011/08/pacman-package-signing-1-makepkg-and-repo-add/

 
 
 Request 2:
 I have noticed that some of the own application when packaged on i386
 system (architecture for package by IDE is set to all) and installed 
 on
 an armhf, they do not alway run, but crash without any GUI to be seen.
 If I next package that application on armhf (again as an all package)
 and install it on armhf it does run!!
 
 This is a bug, as the Gambas executable are (or should be)
 architecture-independant. Can you provide me the i386 and the armhf
 packages?
 
 Thanks.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2015-06-18 Thread willy
On 2015-06-19 02:12, Benoît Minisini wrote:
 Le 18/06/2015 23:05, wi...@develop.earthshipeurope.org a écrit :
 Hi all,
 
 I have been looking at the Gambas IDE package code (in
 app/.src/gambas3/.src/packager folder)
 In the package module I see that packages for debain/ubuntu are made
 with:
 dpkg-buildpackage -d -rfakeroot
 
 Request 1:
 Could a simple -kkeyid option be added to 'dpkg-buildpackage -d
 -rfakeroot' for debian/ubuntu, so packages can be signed.
 This could be set as a preference in IDE where you could select 
 'package
 with key' and enter the key in a field and select the distro the key 
 has
 to be used for when signing.
 
 Maybe it should be possible to have multople seperate key like one for
 Debian and one for Ubuntu to sign with (just thinking out loud)
 
 Is the signature something associated with the user, i.e. the same
 signature will theoritically be used for all projects for the same 
 system?

Well, you can generate signing keys with gpg.
These can be used for signing.
Just fine for private/intranet repositories.

You can associate them with whatever mail addres you would like it to be 
associated with.

If you package for Debian or Ubuntu repo's, you can generate a key as 
well with gpg and have it signed by one or more maintainers.
Next you can use the signed key to sign packages for uploading to 
official Debian/Ubuntu repositories.

In my case it is about two things:
1. Setting up an intranet repository with Gambas 3.6.2 for wheezy and 
internal developed Gambas applications (this is at work)
2. Setting up a GambOS own distro repository holding more recent Gambas3 
version and Gambas applications developed for GambOS.

Both need a different key to sign with.
Since keys can be exported/imported, you can have multiple signing keys 
on one system.

If you have a look at the keys they look something like this (dummie 
example, no real key):

$ gpg --list-keys
/home/joe/.gnupg/pubring.gpg
---
pub   2048R/E123D553 2011-08-03 [expires: 2012-08-02]
uid  Joe User (Some organization) joe.u...@domain.com
sub   2048R/F2495744 2011-08-03 [expires: 2012-08-02]

In this case F2495744 is the key id to sign with.

So a 'dpkg-buildpackage -d -rfakeroot -kF2495744'would sign the packages 
made.
Best is the key has the same mail address as used in the debian/control 
file uploader field and same mail address as used in debian/changelog.

 
 Note that packager can only make a difference between the provided
 distributions.

That is no problem as packages for Debian will run on any Debian based 
distro, same goed for Ubuntu.

 
 
 I have no idea how signing rpm packages works, but I guess it might be
 useful there as well.
 
 This is needed, I should implement signing for all packages: deb, rmp,
 but also ArchLinux and Slackware! Not just for Debian...
 
 
 Request 2:
 I have noticed that some of the own application when packaged on i386
 system (architecture for package by IDE is set to all) and installed 
 on
 an armhf, they do not alway run, but crash without any GUI to be seen.
 If I next package that application on armhf (again as an all package)
 and install it on armhf it does run!!
 
 This is a bug, as the Gambas executable are (or should be)
 architecture-independant. Can you provide me the i386 and the armhf
 packages?

First, it will have to wait until monday because the code is at my 
system at work.
Secondly, the application requires a internal database to run.
Thirdly, internal company database content is required by contract to 
stay internal company data

So, I will have to try and reproduce the problem in some small project 
and send that one.
It may take a while but I will get back to that.

The armhf system I'm running is a Lubuntu 14.04
The i386 systems are running Lubuntu 12.04 and Linux Mint 17.1 Mate





--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2015-06-18 Thread Benoît Minisini
Le 19/06/2015 02:40, wi...@develop.earthshipeurope.org a écrit :
 This is a bug, as the Gambas executable are (or should be)
 architecture-independant. Can you provide me the i386 and the armhf
 packages?

 First, it will have to wait until monday because the code is at my
 system at work.
 Secondly, the application requires a internal database to run.
 Thirdly, internal company database content is required by contract to
 stay internal company data

 So, I will have to try and reproduce the problem in some small project
 and send that one.
 It may take a while but I will get back to that.

 The armhf system I'm running is a Lubuntu 14.04
 The i386 systems are running Lubuntu 12.04 and Linux Mint 17.1 Mate


I don't need to run the programs, I just need to have the two packages 
to compare them (the Gambas executables only). I guess this is an 
endianness problem, so by comparing the two packages, I may find where 
the problem is.

Regards,

-- 
Benoît Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2015-06-18 Thread willy
On 2015-06-19 02:40, wi...@develop.earthshipeurope.org wrote:
 On 2015-06-19 02:12, Benoît Minisini wrote:
 Le 18/06/2015 23:05, wi...@develop.earthshipeurope.org a écrit :
 Hi all,
 
 I have been looking at the Gambas IDE package code (in
 app/.src/gambas3/.src/packager folder)
 In the package module I see that packages for debain/ubuntu are made
 with:
 dpkg-buildpackage -d -rfakeroot
 
 Request 1:
 Could a simple -kkeyid option be added to 'dpkg-buildpackage -d
 -rfakeroot' for debian/ubuntu, so packages can be signed.
 This could be set as a preference in IDE where you could select
 'package
 with key' and enter the key in a field and select the distro the key
 has
 to be used for when signing.
 
 Maybe it should be possible to have multople seperate key like one 
 for
 Debian and one for Ubuntu to sign with (just thinking out loud)
 
 Is the signature something associated with the user, i.e. the same
 signature will theoritically be used for all projects for the same
 system?
 
 Well, you can generate signing keys with gpg.
 These can be used for signing.
 Just fine for private/intranet repositories.
 
 You can associate them with whatever mail addres you would like it to 
 be
 associated with.
 
 If you package for Debian or Ubuntu repo's, you can generate a key as
 well with gpg and have it signed by one or more maintainers.
 Next you can use the signed key to sign packages for uploading to
 official Debian/Ubuntu repositories.
 
 In my case it is about two things:
 1. Setting up an intranet repository with Gambas 3.6.2 for wheezy and
 internal developed Gambas applications (this is at work)
 2. Setting up a GambOS own distro repository holding more recent 
 Gambas3
 version and Gambas applications developed for GambOS.
 
 Both need a different key to sign with.
 Since keys can be exported/imported, you can have multiple signing keys
 on one system.
 
 If you have a look at the keys they look something like this (dummie
 example, no real key):
 
 $ gpg --list-keys
 /home/joe/.gnupg/pubring.gpg
 ---
 pub   2048R/E123D553 2011-08-03 [expires: 2012-08-02]
 uid  Joe User (Some organization) joe.u...@domain.com
 sub   2048R/F2495744 2011-08-03 [expires: 2012-08-02]
 
 In this case F2495744 is the key id to sign with.
 
 So a 'dpkg-buildpackage -d -rfakeroot -kF2495744'would sign the 
 packages
 made.

Little extra note here:
If the key has a passphrase, the dpkg-buildpackage will ask for it to do 
the signing!!
so, that has to be taken into account.

Just do some packaging from the command line in a terminal, with key 
signing and passphrase on key and you will see when and what is asked by 
dpkg-buildpackage.

gbWilly

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request

2015-06-18 Thread willy
Hi all,

I have been looking at the Gambas IDE package code (in 
app/.src/gambas3/.src/packager folder)
In the package module I see that packages for debain/ubuntu are made 
with:
dpkg-buildpackage -d -rfakeroot

Request 1:
Could a simple -kkeyid option be added to 'dpkg-buildpackage -d 
-rfakeroot' for debian/ubuntu, so packages can be signed.
This could be set as a preference in IDE where you could select 'package 
with key' and enter the key in a field and select the distro the key has 
to be used for when signing.

Maybe it should be possible to have multople seperate key like one for 
Debian and one for Ubuntu to sign with (just thinking out loud)

I have no idea how signing rpm packages works, but I guess it might be 
useful there as well.

Request 2:
I have noticed that some of the own application when packaged on i386 
system (architecture for package by IDE is set to all) and installed on 
an armhf, they do not alway run, but crash without any GUI to be seen.
If I next package that application on armhf (again as an all package) 
and install it on armhf it does run!!

So, maybe it should be possible to default package all (like it is right 
now), but have the option to select a specif architecture so making 
specific architecture packages is possible (if desired).
The only architecture that could be chosen (if not opting for default 
all) would have to be the  architecture the IDE doing the packaging is 
running on.

Thanks,

gbWilly



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2015-06-18 Thread Benoît Minisini
Le 18/06/2015 23:05, wi...@develop.earthshipeurope.org a écrit :
 Hi all,

 I have been looking at the Gambas IDE package code (in
 app/.src/gambas3/.src/packager folder)
 In the package module I see that packages for debain/ubuntu are made
 with:
 dpkg-buildpackage -d -rfakeroot

 Request 1:
 Could a simple -kkeyid option be added to 'dpkg-buildpackage -d
 -rfakeroot' for debian/ubuntu, so packages can be signed.
 This could be set as a preference in IDE where you could select 'package
 with key' and enter the key in a field and select the distro the key has
 to be used for when signing.

 Maybe it should be possible to have multople seperate key like one for
 Debian and one for Ubuntu to sign with (just thinking out loud)

Is the signature something associated with the user, i.e. the same 
signature will theoritically be used for all projects for the same system?

Note that packager can only make a difference between the provided 
distributions.


 I have no idea how signing rpm packages works, but I guess it might be
 useful there as well.

This is needed, I should implement signing for all packages: deb, rmp, 
but also ArchLinux and Slackware! Not just for Debian...


 Request 2:
 I have noticed that some of the own application when packaged on i386
 system (architecture for package by IDE is set to all) and installed on
 an armhf, they do not alway run, but crash without any GUI to be seen.
 If I next package that application on armhf (again as an all package)
 and install it on armhf it does run!!

This is a bug, as the Gambas executable are (or should be) 
architecture-independant. Can you provide me the i386 and the armhf 
packages?

Thanks.

-- 
Benoît Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2015-02-07 Thread Lewis Balentine
The context sensitive on-line help system uses the Wiki. That implies 
the existence of some sort of search capability.

It would be very helpful if that were exposed on the web pages ... but 
perhaps it is based on the various index pages.


On 02/07/2015 05:33 AM, Ian wrote:
 IIF - I should have know there would be something.

 now if the wiki had a search function


 Ian.




--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2015-02-07 Thread Ian
IIF - I should have know there would be something.

now if the wiki had a search function


Ian.

On 07/02/15 14:15, Fabien Bodard wrote:
 :-P

 You need to read the wki help language pages at least !

 2015-02-07 7:09 GMT+01:00 T Lee Davidson t.lee.david...@gmail.com:
 Hey Ian,

 Unless I'm missing something, you're talking about an Inline IF. And, there
 already is one.

 http://gambaswiki.org/wiki/lang/iif

 Print IIf(True, Yes, No) ' - Yes
 Print IIf(False, Yes, No) ' - No


 Lee
 __

 On 02/06/2015 08:51 PM, Ian wrote:
 Would it be possible to have a Gambas function to return a string based
 on a Boolean value.
 IFF may not be the best naming convention for the keyword but was all I
 could think of.

 Public Function IFF(InBool As Boolean, InStrTrue As String, InStrFalse
 As String) As String

   If Inbool Then
  Return InStrTrue
   Else
  Return InStrFalse
   Endif

 End

 Use example:
 BoolValue = True
 Txt_AmIHappy.Text = IFF(BoolValue,Yes- Im Using Gambas,No-I have to
 use VB)

 Of course this can be done with an If-Else or Select-Case but its a
 little more elegant.


 Cheers,
 Ian.




 --
 Dive into the World of Parallel Programming. The Go Parallel Website,
 sponsored by Intel and developed in partnership with Slashdot Media, is your
 hub for all things parallel software development, from weekly thought
 leadership blogs to news, videos, case studies, tutorials and more. Take a
 look and join the conversation now. http://goparallel.sourceforge.net/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

 --
 Dive into the World of Parallel Programming. The Go Parallel Website,
 sponsored by Intel and developed in partnership with Slashdot Media, is your
 hub for all things parallel software development, from weekly thought
 leadership blogs to news, videos, case studies, tutorials and more. Take a
 look and join the conversation now. http://goparallel.sourceforge.net/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2015-02-07 Thread Fabien Bodard
Le 7 févr. 2015 12:46, Lewis Balentine le...@keywild.com a écrit :

 The context sensitive on-line help system uses the Wiki. That implies
 the existence of some sort of search capability.

 It would be very helpful if that were exposed on the web pages ... but
 perhaps it is based on the various index pages.

No that implies a try test
--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2015-02-07 Thread Benoît Minisini
Le 08/02/2015 00:34, Ian a écrit :
 The problem with context sensitive help is that most of the time (50%)+
 you just get Page Not Found

 Example:
 Create a new connection object. ($Con)
 Type $Con.  and scroll the displayed parameter list - on my machine you
 get page not found for each element. I can understand some of the
 obsucre elements not having any help but I would have thought that the
 connection object would be one of the better documented .

 Unless there is something broken on my machine (Linux Mint 17) *sigh*

 It could be a symptom of another error -  where I cannot access the
 examples but get a strange error.
 Posted with this subject in the forum Password error on clicking store
 or examples in GUI

 ...and yes, I'm on daily updates.

 Cheers,
 Ian.


If you use the development version with the offline help, this is 
normal. The Connection class has changed.

When using the development version, you should better use the online 
help. The offline help is usually too old for it.

Regards,

-- 
Benoît Minisini

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2015-02-07 Thread Ian
The problem with context sensitive help is that most of the time (50%)+ 
you just get Page Not Found

Example:
Create a new connection object. ($Con)
Type $Con.  and scroll the displayed parameter list - on my machine you 
get page not found for each element. I can understand some of the 
obsucre elements not having any help but I would have thought that the 
connection object would be one of the better documented .

Unless there is something broken on my machine (Linux Mint 17) *sigh*

It could be a symptom of another error -  where I cannot access the 
examples but get a strange error.
Posted with this subject in the forum Password error on clicking store 
or examples in GUI

...and yes, I'm on daily updates.

Cheers,
Ian.



On 07/02/15 19:45, Lewis Balentine wrote:
 The context sensitive on-line help system uses the Wiki. That implies
 the existence of some sort of search capability.

 It would be very helpful if that were exposed on the web pages ... but
 perhaps it is based on the various index pages.


 On 02/07/2015 05:33 AM, Ian wrote:
 IIF - I should have know there would be something.

 now if the wiki had a search function


 Ian.



 --
 Dive into the World of Parallel Programming. The Go Parallel Website,
 sponsored by Intel and developed in partnership with Slashdot Media, is your
 hub for all things parallel software development, from weekly thought
 leadership blogs to news, videos, case studies, tutorials and more. Take a
 look and join the conversation now. http://goparallel.sourceforge.net/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2015-02-06 Thread T Lee Davidson
Hey Ian,

Unless I'm missing something, you're talking about an Inline IF. And, there 
already is one.

http://gambaswiki.org/wiki/lang/iif

Print IIf(True, Yes, No) ' - Yes
Print IIf(False, Yes, No) ' - No


Lee
__

On 02/06/2015 08:51 PM, Ian wrote:
 Would it be possible to have a Gambas function to return a string based
 on a Boolean value.
 IFF may not be the best naming convention for the keyword but was all I
 could think of.

 Public Function IFF(InBool As Boolean, InStrTrue As String, InStrFalse
 As String) As String

  If Inbool Then
 Return InStrTrue
  Else
 Return InStrFalse
  Endif

 End

 Use example:
 BoolValue = True
 Txt_AmIHappy.Text = IFF(BoolValue,Yes- Im Using Gambas,No-I have to
 use VB)

 Of course this can be done with an If-Else or Select-Case but its a
 little more elegant.


 Cheers,
 Ian.




 --
 Dive into the World of Parallel Programming. The Go Parallel Website,
 sponsored by Intel and developed in partnership with Slashdot Media, is your
 hub for all things parallel software development, from weekly thought
 leadership blogs to news, videos, case studies, tutorials and more. Take a
 look and join the conversation now. http://goparallel.sourceforge.net/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2015-02-06 Thread Fabien Bodard
:-P

You need to read the wki help language pages at least !

2015-02-07 7:09 GMT+01:00 T Lee Davidson t.lee.david...@gmail.com:
 Hey Ian,

 Unless I'm missing something, you're talking about an Inline IF. And, there
 already is one.

 http://gambaswiki.org/wiki/lang/iif

 Print IIf(True, Yes, No) ' - Yes
 Print IIf(False, Yes, No) ' - No


 Lee
 __

 On 02/06/2015 08:51 PM, Ian wrote:
 Would it be possible to have a Gambas function to return a string based
 on a Boolean value.
 IFF may not be the best naming convention for the keyword but was all I
 could think of.

 Public Function IFF(InBool As Boolean, InStrTrue As String, InStrFalse
 As String) As String

  If Inbool Then
 Return InStrTrue
  Else
 Return InStrFalse
  Endif

 End

 Use example:
 BoolValue = True
 Txt_AmIHappy.Text = IFF(BoolValue,Yes- Im Using Gambas,No-I have to
 use VB)

 Of course this can be done with an If-Else or Select-Case but its a
 little more elegant.


 Cheers,
 Ian.




 --
 Dive into the World of Parallel Programming. The Go Parallel Website,
 sponsored by Intel and developed in partnership with Slashdot Media, is your
 hub for all things parallel software development, from weekly thought
 leadership blogs to news, videos, case studies, tutorials and more. Take a
 look and join the conversation now. http://goparallel.sourceforge.net/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


 --
 Dive into the World of Parallel Programming. The Go Parallel Website,
 sponsored by Intel and developed in partnership with Slashdot Media, is your
 hub for all things parallel software development, from weekly thought
 leadership blogs to news, videos, case studies, tutorials and more. Take a
 look and join the conversation now. http://goparallel.sourceforge.net/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature Request

2015-02-06 Thread Ian
Would it be possible to have a Gambas function to return a string based 
on a Boolean value.
IFF may not be the best naming convention for the keyword but was all I 
could think of.

Public Function IFF(InBool As Boolean, InStrTrue As String, InStrFalse 
As String) As String

If Inbool Then
   Return InStrTrue
Else
   Return InStrFalse
Endif

End

Use example:
BoolValue = True
Txt_AmIHappy.Text = IFF(BoolValue,Yes- Im Using Gambas,No-I have to 
use VB)

Of course this can be done with an If-Else or Select-Case but its a 
little more elegant.


Cheers,
Ian.




--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature Request: Val Function

2014-11-26 Thread Lewis Balentine
There does not seem to be an inverse function for HEX$.

Feature Request:
Add ability to VAL function to return the value of a HEX string.


Example:
Print Val(0xc25688)' formatted as used internally by Gambas
12736136

Print Val(0Hc25688)' formatted as used in Gambas Documentation
12736136

Thank you,

le...@keywild.com

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request: Val Function

2014-11-26 Thread Ron
There is:

Print Val(H  c25688)
12736136

2014-11-26 17:29 GMT+01:00 Lewis Balentine le...@keywild.com:

 There does not seem to be an inverse function for HEX$.

 Feature Request:
 Add ability to VAL function to return the value of a HEX string.


 Example:
 Print Val(0xc25688)' formatted as used internally by Gambas
 12736136

 Print Val(0Hc25688)' formatted as used in Gambas Documentation
 12736136

 Thank you,

 le...@keywild.com


 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: A preview button in the wiki editor

2014-10-05 Thread Benoît Minisini
Le 04/10/2014 17:12, Tobias Boege a écrit :
 Hi,

 when I try to update a wiki page, it takes me several (more than I want to
 admit) tries to get the markup right. For whatever reason.

 It would be nice, in the favour of cleaner page histories, to have a preview
 button when editing a page, not only Save or Cancel.

 Luckily, this can wait until 3.6 is released because very few (if any) care
 about the wiki source code as long as a good version runs on gambaswiki.org.

 Regards,
 Tobi


Done. Maybe it is not tested enough yet, but you will tell me.

Regards,

-- 
Benoît Minisini

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: A preview button in the wiki editor

2014-10-05 Thread Tobias Boege
On Sun, 05 Oct 2014, Beno?t Minisini wrote:
 Le 04/10/2014 17:12, Tobias Boege a ?crit :
  Hi,
 
  when I try to update a wiki page, it takes me several (more than I want to
  admit) tries to get the markup right. For whatever reason.
 
  It would be nice, in the favour of cleaner page histories, to have a preview
  button when editing a page, not only Save or Cancel.
 
  Luckily, this can wait until 3.6 is released because very few (if any) care
  about the wiki source code as long as a good version runs on gambaswiki.org.
 
  Regards,
  Tobi
 
 
 Done. Maybe it is not tested enough yet, but you will tell me.
 

I will if you regenerate the index of gb.data's wiki page (or whatever you
do to make new classes show up in the wiki). Trie and PrioSet are missing,
AFAICT which will be in 3.6.

Thanks,
Tobi

-- 
There's an old saying: Don't change anything... ever! -- Mr. Monk

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: A preview button in the wiki editor

2014-10-05 Thread Benoît Minisini
Le 05/10/2014 17:57, Tobias Boege a écrit :
 On Sun, 05 Oct 2014, Beno?t Minisini wrote:
 Le 04/10/2014 17:12, Tobias Boege a ?crit :
 Hi,

 when I try to update a wiki page, it takes me several (more than I want to
 admit) tries to get the markup right. For whatever reason.

 It would be nice, in the favour of cleaner page histories, to have a preview
 button when editing a page, not only Save or Cancel.

 Luckily, this can wait until 3.6 is released because very few (if any) care
 about the wiki source code as long as a good version runs on gambaswiki.org.

 Regards,
 Tobi


 Done. Maybe it is not tested enough yet, but you will tell me.


 I will if you regenerate the index of gb.data's wiki page (or whatever you
 do to make new classes show up in the wiki). Trie and PrioSet are missing,
 AFAICT which will be in 3.6.

 Thanks,
 Tobi


Done.

-- 
Benoît Minisini

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: A preview button in the wiki editor

2014-10-05 Thread Tobias Boege
On Sun, 05 Oct 2014, Beno?t Minisini wrote:
 Le 05/10/2014 17:57, Tobias Boege a ?crit :
  On Sun, 05 Oct 2014, Beno?t Minisini wrote:
  Le 04/10/2014 17:12, Tobias Boege a ?crit :
  Hi,
 
  when I try to update a wiki page, it takes me several (more than I want to
  admit) tries to get the markup right. For whatever reason.
 
  It would be nice, in the favour of cleaner page histories, to have a 
  preview
  button when editing a page, not only Save or Cancel.
 
  Luckily, this can wait until 3.6 is released because very few (if any) 
  care
  about the wiki source code as long as a good version runs on 
  gambaswiki.org.
 
  Regards,
  Tobi
 
 
  Done. Maybe it is not tested enough yet, but you will tell me.
 
 
  I will if you regenerate the index of gb.data's wiki page (or whatever you
  do to make new classes show up in the wiki). Trie and PrioSet are missing,
  AFAICT which will be in 3.6.
 
  Thanks,
  Tobi
 
 
 Done.
 

Thanks, but one class is missing: PrioSet. It's in the Gambas part of
gb.data. BTW: gb.data has a part written in Gambas now. Is that of
importance to packagers? Do I have to add information somewhere? IIRC
gambas-team's gb.data package did contain the gb.data.gambas file, so
_their_ scripts were clever enough to detect it.

Regards,
Tobi

-- 
There's an old saying: Don't change anything... ever! -- Mr. Monk

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: A preview button in the wiki editor

2014-10-05 Thread Benoît Minisini
Le 05/10/2014 18:36, Tobias Boege a écrit :

 Thanks, but one class is missing: PrioSet. It's in the Gambas part of
 gb.data. BTW: gb.data has a part written in Gambas now. Is that of
 importance to packagers? Do I have to add information somewhere? IIRC
 gambas-team's gb.data package did contain the gb.data.gambas file, so
 _their_ scripts were clever enough to detect it.

 Regards,
 Tobi


It should be better now.

-- 
Benoît Minisini

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: A preview button in the wiki editor

2014-10-05 Thread Tobias Boege
On Sun, 05 Oct 2014, Beno?t Minisini wrote:
 Le 04/10/2014 17:12, Tobias Boege a ?crit :
  Hi,
 
  when I try to update a wiki page, it takes me several (more than I want to
  admit) tries to get the markup right. For whatever reason.
 
  It would be nice, in the favour of cleaner page histories, to have a preview
  button when editing a page, not only Save or Cancel.
 
  Luckily, this can wait until 3.6 is released because very few (if any) care
  about the wiki source code as long as a good version runs on gambaswiki.org.
 
  Regards,
  Tobi
 
 
 Done. Maybe it is not tested enough yet, but you will tell me.
 

Everything works very well. Thank you.

-- 
There's an old saying: Don't change anything... ever! -- Mr. Monk

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: A preview button in the wiki editor

2014-10-04 Thread Tobias Boege
Hi,

when I try to update a wiki page, it takes me several (more than I want to
admit) tries to get the markup right. For whatever reason.

It would be nice, in the favour of cleaner page histories, to have a preview
button when editing a page, not only Save or Cancel.

Luckily, this can wait until 3.6 is released because very few (if any) care
about the wiki source code as long as a good version runs on gambaswiki.org.

Regards,
Tobi

-- 
There's an old saying: Don't change anything... ever! -- Mr. Monk

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2014-07-05 Thread Benoît Minisini
Le 24/06/2014 22:29, Stephen a écrit :
When adding new modules, classes, or forms the ability to select
 pre-existing code is good, an improvement would be enabling multi-select
 of those items, eliminating the need to loop through the
 RightClick-New-[Module/Class/Form]-Existing-[Selection].

 Just a thought.


Done in revision #6364.

Regards,

-- 
Benoît Minisini

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Color.Link and Color.Visited system colors.

2014-06-20 Thread Benoît Minisini
Le 20/06/2014 07:57, Patrik Karlsson a écrit :
 Is it possible to add system colors in order to get the color of links from
 the current theme?
 Color.Link and Color.Visited.

 /Patrik

Done in revision #6331.

Note that GTK+2 does not have system colors for that, so some default 
color is used.

-- 
Benoît Minisini

--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Color.Link and Color.Visited system colors.

2014-06-20 Thread Patrik Karlsson
Much appreciated, thank you.


2014-06-20 15:44 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net:

 Le 20/06/2014 07:57, Patrik Karlsson a écrit :
  Is it possible to add system colors in order to get the color of links
 from
  the current theme?
  Color.Link and Color.Visited.
 
  /Patrik

 Done in revision #6331.

 Note that GTK+2 does not have system colors for that, so some default
 color is used.

 --
 Benoît Minisini


 --
 HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
 Find What Matters Most in Your Big Data with HPCC Systems
 Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
 Leverages Graph Analysis for Fast Processing  Easy Data Exploration
 http://p.sf.net/sfu/hpccsystems
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: Color.Link and Color.Visited system colors.

2014-06-19 Thread Patrik Karlsson
Is it possible to add system colors in order to get the color of links from
the current theme?
Color.Link and Color.Visited.

/Patrik
--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link

2014-06-16 Thread B Bruen
On Mon, 16 Jun 2014 07:45:42 +0930
B Bruen bbr...@paddys-hill.net wrote:

 hmmm.
 
 IDE crashes on rollover.
 
 
Seems to happen only if Debug is used, Print and Error dont crash.
LXDE?

-- 
B Bruen bbr...@paddys-hill.net

--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link

2014-06-16 Thread Jussi Lahtinen
Happens also with XFCE.


Jussi


On Mon, Jun 16, 2014 at 12:29 PM, B Bruen bbr...@paddys-hill.net wrote:

 On Mon, 16 Jun 2014 07:45:42 +0930
 B Bruen bbr...@paddys-hill.net wrote:

  hmmm.
 
  IDE crashes on rollover.
 
 
 Seems to happen only if Debug is used, Print and Error dont crash.
 LXDE?

 --
 B Bruen bbr...@paddys-hill.net


 --
 HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
 Find What Matters Most in Your Big Data with HPCC Systems
 Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
 Leverages Graph Analysis for Fast Processing  Easy Data Exploration
 http://p.sf.net/sfu/hpccsystems
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link

2014-06-15 Thread Benoît Minisini
Le 14/06/2014 22:33, Jussi Lahtinen a écrit :
 Excellent idea!


 Jussi



Done in revision #6320.

At the moment, the feature is not optional, but it will be. I'm just 
waiting from people's tests before.

Regards,

-- 
Benoît Minisini

--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link

2014-06-15 Thread Patrik Karlsson
2014-06-15 14:46 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net:

 Le 14/06/2014 22:33, Jussi Lahtinen a écrit :
  Excellent idea!
 
 
  Jussi
 
 

 Done in revision #6320.

 At the moment, the feature is not optional, but it will be. I'm just
 waiting from people's tests before.

 Regards,

 --
 Benoît Minisini


Thank you for making the Gambas experience more and more enjoyable.
--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link

2014-06-14 Thread Patrik Karlsson
I would like to be able to (ctrl) click the Class.Function.Line in the
Debug output in order to navigate to its source.

*CScoreGrid.HoverRow.337*: 0  12
*CRoller.PictureBox_MouseUp.171*:

It does not have to look like a link, as long as it acts like one.

/Patrik
--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link

2014-06-14 Thread Jussi Lahtinen
Excellent idea!


Jussi


On Sat, Jun 14, 2014 at 9:17 PM, Patrik Karlsson pata.karls...@gmail.com
wrote:

 I would like to be able to (ctrl) click the Class.Function.Line in the
 Debug output in order to navigate to its source.

 *CScoreGrid.HoverRow.337*: 0  12
 *CRoller.PictureBox_MouseUp.171*:

 It does not have to look like a link, as long as it acts like one.

 /Patrik

 --
 HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
 Find What Matters Most in Your Big Data with HPCC Systems
 Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
 Leverages Graph Analysis for Fast Processing  Easy Data Exploration
 http://p.sf.net/sfu/hpccsystems
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: IDE

2014-06-06 Thread Patrik Karlsson
There are things in other IDEs/editors that I miss in Gambas and that I
think would be useful, not only to me.

1. Tab management
* Add close all from the view menu to the tabs popup menu.
* Add close tabs to left
* Add close tabs to right

2. Make shortcut for Horizontal and Vertikal split toggle.

3. Insert an 'Edit' menu between File and Project with cut, copy, paste,
undo redo...

4. Shortcut for delete current row

5. CTRL X cuts current row if nothing is selected

6. CTRL C copies current row if nothing is selected

7. Triple click selects entire row.

8. Sort selection (a-z, z-a)

9. Move current row up/down

10. Move current selection up/down

11. CTRL Mouse click acts as F2, Find definition.

12. CTRL Shift W as default for Close all windows.

/Patrik
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: IDE

2014-06-06 Thread Benoît Minisini
Le 06/06/2014 09:52, Patrik Karlsson a écrit :
 There are things in other IDEs/editors that I miss in Gambas and that I
 think would be useful, not only to me.

 1. Tab management
 * Add close all from the view menu to the tabs popup menu.

You can click on the little cross on the top left of the project tree view.

 * Add close tabs to left
 * Add close tabs to right

Mmmf. Is it really useful?


 2. Make shortcut for Horizontal and Vertikal split toggle.

CTRL+H and CTRL+J don't work?


 3. Insert an 'Edit' menu between File and Project with cut, copy, paste,
 undo redo...

OK. Maybe...


 4. Shortcut for delete current row

 5. CTRL X cuts current row if nothing is selected

As I'm running out of shortcuts, maybe I can merge 4) and 5) ?


 6. CTRL C copies current row if nothing is selected

OK.


 7. Triple click selects entire row.

If it does not disturb other things, OK.


 8. Sort selection (a-z, z-a)

OK.


 9. Move current row up/down

 10. Move current selection up/down

If I can find available shortcuts.


 11. CTRL Mouse click acts as F2, Find definition.

I will see if I can.


 12. CTRL Shift W as default for Close all windows.

CTRL+ALT+W is the shortcut.

-- 
Benoît Minisini

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: IDE

2014-06-06 Thread Patrik Karlsson
2014-06-06 10:01 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net:

 Le 06/06/2014 09:52, Patrik Karlsson a écrit :
  There are things in other IDEs/editors that I miss in Gambas and that I
  think would be useful, not only to me.
 
  1. Tab management
  * Add close all from the view menu to the tabs popup menu.

 You can click on the little cross on the top left of the project tree view.


Ok, there you go! :) Since Im switching between IDEs and close all option
is common I still would appreciate it in Gambas too.



  * Add close tabs to left
  * Add close tabs to right

 Mmmf. Is it really useful?


Most of the time I find myself working constantly on 2-4 documents and
having many more others open at the same time. Those are the one I would
like to close with close tabs to the right.



  2. Make shortcut for Horizontal and Vertikal split toggle.

 CTRL+H and CTRL+J don't work?


No, not for me. It just turns splitting on, not off.


  3. Insert an 'Edit' menu between File and Project with cut, copy, paste,
  undo redo...

 OK. Maybe...

 
  4. Shortcut for delete current row
 
  5. CTRL X cuts current row if nothing is selected

 As I'm running out of shortcuts, maybe I can merge 4) and 5) ?


Well, #5 puts the line on the clipboard and #4 should not. But if we got #5
I would use it for #4 too. :)

 12. CTRL Shift W as default for Close all windows.


 CTRL+ALT+W is the shortcut.


Maybe it's just me but I have only come across CTRL Shift W for Close all
windows. Thats not a big problem, I have redefined it.

And may I introduce #13...

The ability to load and save custom shortcut configuration in style with
color theme.
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Giving _compare() an optional user data argument

2014-05-19 Thread Tobias Boege
On Sun, 18 May 2014, Beno?t Minisini wrote:
 Le 14/05/2014 21:38, Tobias Boege a ?crit :
  Hi Benoit,
 
  when we wanted to sort a 2d array (table) by a specific column, variable at
  runtime, we did the following:
 
1. Create the class, let's call it Record, to represent the table
   records which implements a _compare() method and has a SortField
   property which indicates to _compare() which column we want to sort
   by.
2. Create a class RecordGroup which Inherits Object[] and has a
   SortField(Field As Integer, Optional Mode As Integer) method which is
   a multicolumn-aware version of Sort:
 
   Public Sub SortField(Field As Integer, Optional Mode As Integer)
 Dim iInd As Integer
 
 For iInd = 0 To Super.Count - 1
   Super[iInd].SortField = Field
 Next
 Super.Sort(Mode)
   End
3. Then, we must work with RecordGroups which we can sort by, say, column 
  7
   using myGroup.SortField(7).
 
  You see that we need to set each object's SortField property to the Field
  value in order to make the _compare()s work together as we desire. If some
  objects don't get it, we will lose transitivity of our relation and the
  sort may fail.
 
  We can't use static properties in the Record class either because we may
  want to have multiple groups.
 
 I don't understand that: if the sort field is a parameter of the sort, 
 then you can store it inside a static variable just during the sort.
 

Hmm... that's an idea, indeed! Because we can ensure that no parallel sorts
mess up the static variable.

Too bad that this is a good solution. We were already excited about this
potential new feature :-)

Regards,
Tobi

-- 
There's an old saying: Don't change anything... ever! -- Mr. Monk

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Giving _compare() an optional user data argument

2014-05-19 Thread Tobias Boege
On Mon, 19 May 2014, Beno?t Minisini wrote:
 Le 19/05/2014 17:42, Tobias Boege a ?crit :
 I don't understand that: if the sort field is a parameter of the sort,
 then you can store it inside a static variable just during the sort.
 
 
 Hmm... that's an idea, indeed! Because we can ensure that no parallel sorts
 mess up the static variable.
 
 Too bad that this is a good solution. We were already excited about this
 potential new feature :-)
 
 Regards,
 Tobi
 
 
 OK, but that potential new feature would have slowed down the sort: calling
 a _compare method with two fixed arguments is faster that calling a _compare
 method with one more optional argument.
 

Right... Having two differently implemented versions of Object[].Sort() (one
which behaves efficiently when not given an optional argument and one which
passes that argument) is, if not an insane interface, at least nothing that
belongs to the gb component.

For our purposes, maybe a small component gb.multisort may suffice which
enhances Object[] by the necessary logic and we would require users to
provide a _compare2() then which could take the additional argument. No
big deal.

Regards,
Tobi

-- 
There's an old saying: Don't change anything... ever! -- Mr. Monk

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: Array.Frequency

2014-05-18 Thread Patrik Karlsson
I'm converting a Java app of mine to Gambas and I could not find any
equivalent to Java's Collections.frequency [1].

So I wrote this function for Integer[]:

Private Function Frequency(aArray As Integer[], iValue As Integer) As
Integer

  Dim iCount As Integer
  Dim iItem As Integer

  For Each iItem In aArray
If iItem = iValue Then
  Inc iCount
Endif
  Next

  Return iCount

End

Would it be possible to add Frequency as a read only property to gb.Array?

/Patrik

[1]
http://docs.oracle.com/javase/7/docs/api/java/util/Collections.html#frequency(java.util.Collection,
java.lang.Object)
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Array.Frequency

2014-05-18 Thread Benoît Minisini
Le 18/05/2014 13:44, Patrik Karlsson a écrit :
 I'm converting a Java app of mine to Gambas and I could not find any
 equivalent to Java's Collections.frequency [1].

 So I wrote this function for Integer[]:

 Private Function Frequency(aArray As Integer[], iValue As Integer) As
 Integer

Dim iCount As Integer
Dim iItem As Integer

For Each iItem In aArray
  If iItem = iValue Then
Inc iCount
  Endif
Next

Return iCount

 End

 Would it be possible to add Frequency as a read only property to gb.Array?

 /Patrik


Why don't you do that in Gambas using JIT compiler ?

-- 
Benoît Minisini

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Array.Frequency

2014-05-18 Thread Emil Lenngren
For best performance, loop over index from 0 to length-1 instead of using
the For Each construct.


2014-05-18 14:43 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net:

 Le 18/05/2014 13:44, Patrik Karlsson a écrit :
  I'm converting a Java app of mine to Gambas and I could not find any
  equivalent to Java's Collections.frequency [1].
 
  So I wrote this function for Integer[]:
 
  Private Function Frequency(aArray As Integer[], iValue As Integer) As
  Integer
 
 Dim iCount As Integer
 Dim iItem As Integer
 
 For Each iItem In aArray
   If iItem = iValue Then
 Inc iCount
   Endif
 Next
 
 Return iCount
 
  End
 
  Would it be possible to add Frequency as a read only property to
 gb.Array?
 
  /Patrik
 

 Why don't you do that in Gambas using JIT compiler ?

 --
 Benoît Minisini


 --
 Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
 Instantly run your Selenium tests across 300+ browser/OS combos.
 Get unparalleled scalability from the best Selenium testing platform
 available
 Simple to use. Nothing to install. Get started now for free.
 http://p.sf.net/sfu/SauceLabs
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Giving _compare() an optional user data argument

2014-05-18 Thread Benoît Minisini
Le 14/05/2014 21:38, Tobias Boege a écrit :
 Hi Benoit,

 when we wanted to sort a 2d array (table) by a specific column, variable at
 runtime, we did the following:

   1. Create the class, let's call it Record, to represent the table
  records which implements a _compare() method and has a SortField
  property which indicates to _compare() which column we want to sort
  by.
   2. Create a class RecordGroup which Inherits Object[] and has a
  SortField(Field As Integer, Optional Mode As Integer) method which is
  a multicolumn-aware version of Sort:

  Public Sub SortField(Field As Integer, Optional Mode As Integer)
Dim iInd As Integer

For iInd = 0 To Super.Count - 1
  Super[iInd].SortField = Field
Next
Super.Sort(Mode)
  End
   3. Then, we must work with RecordGroups which we can sort by, say, column 7
  using myGroup.SortField(7).

 You see that we need to set each object's SortField property to the Field
 value in order to make the _compare()s work together as we desire. If some
 objects don't get it, we will lose transitivity of our relation and the
 sort may fail.

 We can't use static properties in the Record class either because we may
 want to have multiple groups.

I don't understand that: if the sort field is a parameter of the sort, 
then you can store it inside a static variable just during the sort.

-- 
Benoît Minisini

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Array.Frequency

2014-05-18 Thread Patrik Karlsson
Ok, so the module looks like this now, is Variant slower than other native
data types?

Export
Fast

Public Function Frequency(avValues As Variant[], vValue As Variant) As
Integer

  Dim i As Integer
  Dim iFrequency As Integer

  For i = 0 To avValues.Length - 1
If avValues[i] = vValue Then
  Inc iFrequency
Endif
  Next

  Return iFrequency

End



2014-05-18 14:50 GMT+02:00 Emil Lenngren emil.lenng...@gmail.com:

 For best performance, loop over index from 0 to length-1 instead of using
 the For Each construct.


 2014-05-18 14:43 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net:

  Le 18/05/2014 13:44, Patrik Karlsson a écrit :
   I'm converting a Java app of mine to Gambas and I could not find any
   equivalent to Java's Collections.frequency [1].
  
   So I wrote this function for Integer[]:
  
   Private Function Frequency(aArray As Integer[], iValue As Integer) As
   Integer
  
  Dim iCount As Integer
  Dim iItem As Integer
  
  For Each iItem In aArray
If iItem = iValue Then
  Inc iCount
Endif
  Next
  
  Return iCount
  
   End
  
   Would it be possible to add Frequency as a read only property to
  gb.Array?
  
   /Patrik
  
 
  Why don't you do that in Gambas using JIT compiler ?
 
  --
  Benoît Minisini
 
 
 
 --
  Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
  Instantly run your Selenium tests across 300+ browser/OS combos.
  Get unparalleled scalability from the best Selenium testing platform
  available
  Simple to use. Nothing to install. Get started now for free.
  http://p.sf.net/sfu/SauceLabs
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 

 --
 Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
 Instantly run your Selenium tests across 300+ browser/OS combos.
 Get unparalleled scalability from the best Selenium testing platform
 available
 Simple to use. Nothing to install. Get started now for free.
 http://p.sf.net/sfu/SauceLabs
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Array.Frequency

2014-05-18 Thread Emil Lenngren
Yes, Variant is slower than other native data types, as it must always
examine the type of the variable when it is used.

Note that you should write avValues As Variant instead of Variant[],
since a Variant can contain any type (for example any Array). A Variant[]
however is always an array containing Variants, which might not be what you
want.

The JIT compiler is good at optimizing code that uses native datatypes, but
not so good at optimizing code that uses Variants.

If you want fast code that works on Integer arrays, you should have a
function that only accept Integer arrays.


2014-05-18 16:04 GMT+02:00 Patrik Karlsson pata.karls...@gmail.com:

 Ok, so the module looks like this now, is Variant slower than other native
 data types?

 Export
 Fast

 Public Function Frequency(avValues As Variant[], vValue As Variant) As
 Integer

   Dim i As Integer
   Dim iFrequency As Integer

   For i = 0 To avValues.Length - 1
 If avValues[i] = vValue Then
   Inc iFrequency
 Endif
   Next

   Return iFrequency

 End



 2014-05-18 14:50 GMT+02:00 Emil Lenngren emil.lenng...@gmail.com:

  For best performance, loop over index from 0 to length-1 instead of using
  the For Each construct.
 
 
  2014-05-18 14:43 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net
 :
 
   Le 18/05/2014 13:44, Patrik Karlsson a écrit :
I'm converting a Java app of mine to Gambas and I could not find any
equivalent to Java's Collections.frequency [1].
   
So I wrote this function for Integer[]:
   
Private Function Frequency(aArray As Integer[], iValue As Integer) As
Integer
   
   Dim iCount As Integer
   Dim iItem As Integer
   
   For Each iItem In aArray
 If iItem = iValue Then
   Inc iCount
 Endif
   Next
   
   Return iCount
   
End
   
Would it be possible to add Frequency as a read only property to
   gb.Array?
   
/Patrik
   
  
   Why don't you do that in Gambas using JIT compiler ?
  
   --
   Benoît Minisini
  
  
  
 
 --
   Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
   Instantly run your Selenium tests across 300+ browser/OS combos.
   Get unparalleled scalability from the best Selenium testing platform
   available
   Simple to use. Nothing to install. Get started now for free.
   http://p.sf.net/sfu/SauceLabs
   ___
   Gambas-user mailing list
   Gambas-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/gambas-user
  
 
 
 --
  Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
  Instantly run your Selenium tests across 300+ browser/OS combos.
  Get unparalleled scalability from the best Selenium testing platform
  available
  Simple to use. Nothing to install. Get started now for free.
  http://p.sf.net/sfu/SauceLabs
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 

 --
 Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
 Instantly run your Selenium tests across 300+ browser/OS combos.
 Get unparalleled scalability from the best Selenium testing platform
 available
 Simple to use. Nothing to install. Get started now for free.
 http://p.sf.net/sfu/SauceLabs
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-17 Thread Benoît Minisini
Le 09/05/2014 16:16, Patrik Karlsson a écrit :
 I think it would be nice to just tick a CheckBox in the new project dialog
 to create a standard .gitignore.

 What do you think?

 /Patrik

I want to automatically create a .gitignore file inside Gambas project 
directories, to ignore all files that must be ignored.

Question: is the .gitignore file automatically ignored? Never ignored?

-- 
Benoît Minisini

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-17 Thread Tobias Boege
On Sat, 17 May 2014, Beno?t Minisini wrote:
 Le 09/05/2014 16:16, Patrik Karlsson a ?crit :
  I think it would be nice to just tick a CheckBox in the new project dialog
  to create a standard .gitignore.
 
  What do you think?
 
  /Patrik
 
 I want to automatically create a .gitignore file inside Gambas project 
 directories, to ignore all files that must be ignored.
 
 Question: is the .gitignore file automatically ignored? Never ignored?
 

It's up to you. Per default, modifications to .gitignore are reported when
you issue git status. But you can also ignore it by listing it inside of
itself. (Note that .gitignore doesn't need to be committed before git
honours it. As soon as the file contents change, git behaves accordingly.)

I wouldn't recommend the latter because then people preparing a commit won't
see changes they made to .gitignore (which may of course happen, depending
on the project; and developers may want users to get the .gitignore because
users are potential developers) and if they try to git add .gitignore,
this will be an error. (They need to force the add: git add -f .gitignore
which is uncool).

Regards,
Tobi

-- 
There's an old saying: Don't change anything... ever! -- Mr. Monk

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-17 Thread Benoît Minisini
Le 17/05/2014 16:40, Benoît Minisini a écrit :
 Le 09/05/2014 16:16, Patrik Karlsson a écrit :
 I think it would be nice to just tick a CheckBox in the new project
 dialog
 to create a standard .gitignore.

 What do you think?

 /Patrik

 I want to automatically create a .gitignore file inside Gambas project
 directories, to ignore all files that must be ignored.

 Question: is the .gitignore file automatically ignored? Never ignored?


In revision #6272, a .gitignore file is automatically created when 
opening a project.

If the file already exists, it is not erased. The IDE just writes inside 
its own bunch of ignore patterns, using comments to delimit and 
recognize it.

Tell me if it fits your needs, and if it works (I don't use git, so I 
can't test).

-- 
Benoît Minisini

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-17 Thread Patrik Karlsson
Great, looking forward to that one too!


2014-05-17 17:21 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net:

 Le 17/05/2014 16:40, Benoît Minisini a écrit :
  Le 09/05/2014 16:16, Patrik Karlsson a écrit :
  I think it would be nice to just tick a CheckBox in the new project
  dialog
  to create a standard .gitignore.
 
  What do you think?
 
  /Patrik
 
  I want to automatically create a .gitignore file inside Gambas project
  directories, to ignore all files that must be ignored.
 
  Question: is the .gitignore file automatically ignored? Never ignored?
 

 In revision #6272, a .gitignore file is automatically created when
 opening a project.

 If the file already exists, it is not erased. The IDE just writes inside
 its own bunch of ignore patterns, using comments to delimit and
 recognize it.

 Tell me if it fits your needs, and if it works (I don't use git, so I
 can't test).

 --
 Benoît Minisini


 --
 Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
 Instantly run your Selenium tests across 300+ browser/OS combos.
 Get unparalleled scalability from the best Selenium testing platform
 available
 Simple to use. Nothing to install. Get started now for free.
 http://p.sf.net/sfu/SauceLabs
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-16 Thread Patrik Karlsson
2014-05-15 12:26 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net:

 Le 09/05/2014 16:16, Patrik Karlsson a écrit :
  I think it would be nice to just tick a CheckBox in the new project
 dialog
  to create a standard .gitignore.

 Better: the IDE should support git as it supports subversion.

 Do you have the needed knowledge to explain me the difference between
 git and subversion, and how I can do with git what I'm already doing
 with subversion? (updates, commits, conflict management, revision
 numbers, ignoring files...)

 --
 Benoît Minisini


I guess I don't.
I'm not sure how Gambas support for subversion is, I have never used it.
In NetBeans and Eclipse I have used integrated svn and integrated git and
if Gambas could provide that it would be really cool.
For me, the main advantage that git has over svn is well, speed, and the
fact that it is distributed. I can work on my local copy and commit even
when not online, and later push/sync with another repository.

/Patrik
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-15 Thread Benoît Minisini
Le 09/05/2014 16:16, Patrik Karlsson a écrit :
 I think it would be nice to just tick a CheckBox in the new project dialog
 to create a standard .gitignore.

 What do you think?

 /Patrik

Better: the IDE should support git as it supports subversion.

Do you have the needed knowledge to explain me the difference between 
git and subversion, and how I can do with git what I'm already doing 
with subversion? (updates, commits, conflict management, revision 
numbers, ignoring files...)

-- 
Benoît Minisini

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-15 Thread Jussi Lahtinen
 Better: the IDE should support git as it supports subversion.


Prepare to have a massive head ache.


Jussi
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-15 Thread Randall Morgan
I myself was just looking into using git with Gambas. I'd be very
interested in anything you guys have to add. If anyone would like to write
an article about it for Gambas Magazine let me know


On Thu, May 15, 2014 at 1:31 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote:

  Better: the IDE should support git as it supports subversion.
 

 Prepare to have a massive head ache.


 Jussi

 --
 Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
 Instantly run your Selenium tests across 300+ browser/OS combos.
 Get unparalleled scalability from the best Selenium testing platform
 available
 Simple to use. Nothing to install. Get started now for free.
 http://p.sf.net/sfu/SauceLabs
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




-- 
If you ask me if it can be done. The answer is YES, it can always be done.
The correct questions however are... What will it cost, and how long will
it take?
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: Giving _compare() an optional user data argument

2014-05-14 Thread Tobias Boege
Hi Benoit,

when we wanted to sort a 2d array (table) by a specific column, variable at
runtime, we did the following:

 1. Create the class, let's call it Record, to represent the table
records which implements a _compare() method and has a SortField
property which indicates to _compare() which column we want to sort
by.
 2. Create a class RecordGroup which Inherits Object[] and has a
SortField(Field As Integer, Optional Mode As Integer) method which is
a multicolumn-aware version of Sort:

Public Sub SortField(Field As Integer, Optional Mode As Integer)
  Dim iInd As Integer

  For iInd = 0 To Super.Count - 1
Super[iInd].SortField = Field
  Next
  Super.Sort(Mode)
End
 3. Then, we must work with RecordGroups which we can sort by, say, column 7
using myGroup.SortField(7).

You see that we need to set each object's SortField property to the Field
value in order to make the _compare()s work together as we desire. If some
objects don't get it, we will lose transitivity of our relation and the
sort may fail.

We can't use static properties in the Record class either because we may
want to have multiple groups.

These redundant assignments are what bothers us (also that we need a custom
array type that we called Group to hide our clumsiness in communicating
the SortField to each object). [ There are other ways of efficiently grouping
elements but the ones I can think of are pretty obscure - but I'm open for
suggestions! If none: ]

Is it possible to - and what will existing code say if we - change
_compare()'s signature to

  Public Sub _compare(hOther As Object, Optional vPrivate As Variant)

and have a new corresponding optional argument to Object[].Sort() and
MyClass[].Sort()? Sorting by column 7 in the above scenario would boil
down to calling (without groups) Record[].Sort(7).

Regards,
Tobi

-- 
There's an old saying: Don't change anything... ever! -- Mr. Monk

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Giving _compare() an optional user data argument

2014-05-14 Thread B Bruen
On Wed, 14 May 2014 21:38:33 +0200
Tobias Boege tabo...@gmail.com wrote:

 Hi Benoit,
 
 when we wanted to sort a 2d array (table) by a specific column, variable at
 runtime, we did the following:
 
  1. Create the class, let's call it Record, to represent the table
 records which implements a _compare() method and has a SortField
 property which indicates to _compare() which column we want to sort
 by.
  2. Create a class RecordGroup which Inherits Object[] and has a
 SortField(Field As Integer, Optional Mode As Integer) method which is
 a multicolumn-aware version of Sort:
 
 Public Sub SortField(Field As Integer, Optional Mode As Integer)
   Dim iInd As Integer
 
   For iInd = 0 To Super.Count - 1
 Super[iInd].SortField = Field
   Next
   Super.Sort(Mode)
 End
  3. Then, we must work with RecordGroups which we can sort by, say, column 7
 using myGroup.SortField(7).
 
 You see that we need to set each object's SortField property to the Field
 value in order to make the _compare()s work together as we desire. If some
 objects don't get it, we will lose transitivity of our relation and the
 sort may fail.
 
 We can't use static properties in the Record class either because we may
 want to have multiple groups.
 
 These redundant assignments are what bothers us (also that we need a custom
 array type that we called Group to hide our clumsiness in communicating
 the SortField to each object). [ There are other ways of efficiently grouping
 elements but the ones I can think of are pretty obscure - but I'm open for
 suggestions! If none: ]
 
 Is it possible to - and what will existing code say if we - change
 _compare()'s signature to
 
   Public Sub _compare(hOther As Object, Optional vPrivate As Variant)
 
 and have a new corresponding optional argument to Object[].Sort() and
 MyClass[].Sort()? Sorting by column 7 in the above scenario would boil
 down to calling (without groups) Record[].Sort(7).
 
 Regards,
 Tobi
 

I would really like to see this too! My attempts at providing a generic sorting 
mechanism along the lines suggested by Tobi's approach have been less than 
successful for exactly the same reasons.

-- 
B Bruen bbr...@paddys-hill.net

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-09 Thread Patrik Karlsson
I think it would be nice to just tick a CheckBox in the new project dialog
to create a standard .gitignore.

What do you think?

/Patrik
--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
#149; 3 signs your SCM is hindering your productivity
#149; Requirements for releasing software faster
#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Make 'Pointer' a true integer type

2014-05-08 Thread Benoît Minisini
Le 27/04/2014 10:14, Bruno Félix Rezende Ribeiro a écrit :
 Hello again!

 It'd be very handy if 'Pointer' was considered by the interpreter as an
 integer data type like 'Byte', 'Short', 'Integer' and 'Long'. That way
 one could use any integer function indiscriminately on a Pointer as
 well, rather than converting it to 'Long' (using 'CLong' function)
 every time it's an argument for an integer function.  That is specially
 relevant when interfacing with external C libraries, where to make
 portable Gambas programs one need to treat the C data type 'long' as
 the Gambas data type 'Pointer'.  This means that 'Pointer' isn't
 meaningful only in pointer contexts but also in ordinary integer
 contexts.  What do you think about this proposed change?  Is there any
 way in which it can be harmful to existing code or interpreter's
 functionality?

 Thanks in advance.


Pointer are already automatically converted to integers or longs. What 
do you need to do exactly?

-- 
Benoît Minisini

--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
#149; 3 signs your SCM is hindering your productivity
#149; Requirements for releasing software faster
#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Make 'Pointer' a true integer type

2014-05-08 Thread Bruno Félix Rezende Ribeiro
Em Thu, 08 May 2014 14:25:33 +0200
Benoît Minisini gam...@users.sourceforge.net escreveu:

 Pointer are already automatically converted to integers or longs.
 What do you need to do exactly?

This problem arose when I tried to use some bit manipulation functions
over pointers and get caught by an error.  The very simple code below
show what I mean:

  Dim pPointer As Pointer = BSet(pPointer, 2)

The evaluation of the previous line raises an error which says:

  Type mismatch: wanted Number, got Pointer instead

However I can obtain the desired behavior by rewriting it as:

  Dim pPointer As Pointer = BSet(CLong(pPointer), 2)

My request is to make the interpreter operate directly over pointers
within numeric functions or to convert Pointers to Longs transparently
whenever needed.  Considering the error message, I think the
interpreter should consider the type 'Pointer' a Number type also.


Thank you for your dedication.


Ps: I'm using Gambas 3.5.2.

--
 ,= ,-_-. =.  Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
((_/)o o(\_)) There is no system but GNU;
 `-'(. .)`-'  GNU Linux-Libre is one of its official kernels;
 \_/  All software must be free as in freedom;


signature.asc
Description: PGP signature
--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
#149; 3 signs your SCM is hindering your productivity
#149; Requirements for releasing software faster
#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: absolute C data type equivalents and native type aliasing

2014-04-29 Thread Fabien Bodard
Hi Bruno

I think the better way will be to make a C component that interface the
xlib . This component will have it's own gb api. Not necessary a fully
complient but something that allow to do simply simple things and to push
if necessary more advanced flags.

Xlib is hard and complex... Is there a way to have a high level gb api and
maybe a common gb api interface for xlib wayland and maybe Mir.

The better way to make this ... Will be to construct in the same time a
simple windows manager... So you will see what is really need .. and less
need.

It's a great project and a good idea...
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: Make 'Pointer' a true integer type

2014-04-27 Thread Bruno Félix Rezende Ribeiro
Hello again!

It'd be very handy if 'Pointer' was considered by the interpreter as an
integer data type like 'Byte', 'Short', 'Integer' and 'Long'. That way
one could use any integer function indiscriminately on a Pointer as
well, rather than converting it to 'Long' (using 'CLong' function)
every time it's an argument for an integer function.  That is specially
relevant when interfacing with external C libraries, where to make
portable Gambas programs one need to treat the C data type 'long' as
the Gambas data type 'Pointer'.  This means that 'Pointer' isn't
meaningful only in pointer contexts but also in ordinary integer
contexts.  What do you think about this proposed change?  Is there any
way in which it can be harmful to existing code or interpreter's
functionality?

Thanks in advance.

Ps: In order to make portable Gambas programs which interface with
external C libraries, one needs to follow the correct equivalence
between C and Gambas integer data types, which is given by the table:

[C] [Gambas]
charByte
short   Short
int Integer
longPointer
void *  Pointer
long long   Long

However, the Gambas Wiki page [1], besides having an incomplete table
which does not address 'char', 'short' and 'long long', says that the
equivalent of C's 'long' is Gambas' 'Long', what is only true on some
64-bit architectures.

Footnotes:

[1] http://gambaswiki.org/wiki/howto/extern

-- 
 ,= ,-_-. =.  Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
((_/)o o(\_)) There is no system but GNU;
 `-'(. .)`-'  GNU Linux-Libre is one of its official kernels;
 \_/  All software must be free as in freedom;


signature.asc
Description: PGP signature
--
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: absolute C data type equivalents and native type aliasing

2014-04-26 Thread Benoît Minisini
Le 26/04/2014 05:57, Bruno Félix Rezende Ribeiro a écrit :
 Hello Gambas users and developers!

 I'm working on a module for Gambas, fully written in Gambas language,
 which aims to provide full access to the X Window System's Xlib library
 through a high-level Gambas-ish interface.  I'm in the very beginning,
 but I've been making progress and so far I've implemented 9% of the
 features of the C language X interface as described in [1].

I don't want to discourage you, but I think XLib will not be used 
anymore in a few years because of Wayland. :-/


 However, I'm facing a major problem that needs to be addressed before
 I get too far.  Let's take a look at a particular instance of it.
 Various Xlib functions accept or return a C 'long' data-type
 parameter.  GCC reports that on my x86 machine 'long' is 4 bytes wide
 while on my x86_64 machine it's 8 bytes wide instead.  AFAIK, Gambas
 'Integer' and 'Long' data-type are always 4 and 8 bytes wide,
 respectively, regardless of architecture.  How can I cope with that
 when declaring external functions and structures?

This is one of many design errors of XLib.

Use the Pointer datatype each time you see a long. It has the same 
behaviour.


 The only solution I could think of is to use Gambas' preprocessor
 directives, but it isn't practical to put a preprocessor
 conditional again and again every time I'm declaring something
 which uses the same C language type:  I'd have to do that several
 hundreds of times!  So, I'd suggest to provide absolute C data type
 equivalents to 'char', 'short', 'int', 'long', 'long long', 'float',
 'double' and 'long double', so we could interface smoothly with C
 libraries and write robust and easy to maintain components for Gambas,
 entirely in Gambas language.  In this case the C compiler would decide
 what's the wideness of each data type at Gambas' compilation time.
 One suggestion for their names is: CChar, CShort, CInt, CLong,
 CLongLong, CFloat, CDouble and CLongDouble.

 This feature alone would be a great improvement, but not enough.  Within
 C libraries it's a common practice to define conditionally new data
 types in terms of the native ones.  In order to have a complete
 environment to interface with external libraries inside Gambas, we also
 need a way to make aliases to native Gambas' data types conditionally.
 It could well be a preprocessor facility, but that isn't required at
 all.  I'd suggest something that looks like:

 #If ARCH = x86
 #  AliasType(CLong, XID)
 #Else
 #  AliasType(CInt, XID)
 #Endif
 #AliasType(XID, WindowID)
 #AliasType(XID, FontID)


 Thanks in advance.


 Footnotes:

 [1] http://www.x.org/releases/X11R7.7/doc/libX11/libX11/libX11.html
 [2] Like 'Window', 'Font', 'Pixmap', 'Colormap', 'Cursor' and
  'GContext'.


I can't add any native datatype to Gambas at the moment. You must wait 
for something like Gambas 4. :-)

Regards,

-- 
Benoît Minisini

--
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: absolute C data type equivalents and native type aliasing

2014-04-26 Thread Bruno Félix Rezende Ribeiro
Em Sat, 26 Apr 2014 13:06:27 +0200
Benoît Minisini gam...@users.sourceforge.net escreveu:

 I don't want to discourage you, but I think XLib will not be used 
 anymore in a few years because of Wayland. :-/

Well, we can't be sure whether Xlib will fall into desuse.  And even if
that does happen I'll write a Wayland Gambas component when the
time has come, and that's not now. ;-) Anyway, Xlib programs will still
be runnable in Wayland environments for the foreseeable future by some
compatibility layer.  Also, at the unlikely worst possible case, maybe
it's worth to write a component that will still be useful for a few
years from now.

Would you accept, in the main Gambas' distribution, a well written and
documented Xlib component?

 Use the Pointer datatype each time you see a long. It has the same 
 behaviour.

I'd like to avoid such ugly hacks, but I guess I haven't many
options. :-(

 I can't add any native datatype to Gambas at the moment. You must
 wait for something like Gambas 4. :-)

How long do I have to wait? :-P  How can I help you?


Thank you for your time.


-- 
 ,= ,-_-. =.  Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
((_/)o o(\_)) There is no system but GNU;
 `-'(. .)`-'  GNU Linux-Libre is one of its official kernels;
 \_/  All software must be free as in freedom;


signature.asc
Description: PGP signature
--
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: absolute C data type equivalents and native type aliasing

2014-04-25 Thread Bruno Félix Rezende Ribeiro
Hello Gambas users and developers!

I'm working on a module for Gambas, fully written in Gambas language,
which aims to provide full access to the X Window System's Xlib library
through a high-level Gambas-ish interface.  I'm in the very beginning,
but I've been making progress and so far I've implemented 9% of the
features of the C language X interface as described in [1].

However, I'm facing a major problem that needs to be addressed before
I get too far.  Let's take a look at a particular instance of it.
Various Xlib functions accept or return a C 'long' data-type
parameter.  GCC reports that on my x86 machine 'long' is 4 bytes wide
while on my x86_64 machine it's 8 bytes wide instead.  AFAIK, Gambas
'Integer' and 'Long' data-type are always 4 and 8 bytes wide,
respectively, regardless of architecture.  How can I cope with that
when declaring external functions and structures?

The only solution I could think of is to use Gambas' preprocessor
directives, but it isn't practical to put a preprocessor
conditional again and again every time I'm declaring something
which uses the same C language type:  I'd have to do that several
hundreds of times!  So, I'd suggest to provide absolute C data type
equivalents to 'char', 'short', 'int', 'long', 'long long', 'float',
'double' and 'long double', so we could interface smoothly with C
libraries and write robust and easy to maintain components for Gambas,
entirely in Gambas language.  In this case the C compiler would decide
what's the wideness of each data type at Gambas' compilation time.
One suggestion for their names is: CChar, CShort, CInt, CLong,
CLongLong, CFloat, CDouble and CLongDouble.

This feature alone would be a great improvement, but not enough.  Within
C libraries it's a common practice to define conditionally new data
types in terms of the native ones.  In order to have a complete
environment to interface with external libraries inside Gambas, we also
need a way to make aliases to native Gambas' data types conditionally.
It could well be a preprocessor facility, but that isn't required at
all.  I'd suggest something that looks like:

#If ARCH = x86
#  AliasType(CLong, XID)
#Else
#  AliasType(CInt, XID)
#Endif
#AliasType(XID, WindowID)
#AliasType(XID, FontID)


Thanks in advance.


Footnotes:

[1] http://www.x.org/releases/X11R7.7/doc/libX11/libX11/libX11.html
[2] Like 'Window', 'Font', 'Pixmap', 'Colormap', 'Cursor' and
'GContext'.

-- 
 ,= ,-_-. =.  Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
((_/)o o(\_)) There is no system but GNU;
 `-'(. .)`-'  GNU Linux-Libre is one of its official kernels;
 \_/  All software must be free as in freedom;


signature.asc
Description: PGP signature
--
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Redirecting stderr of terminal-emulated program back to IDE

2014-02-09 Thread Benoît Minisini
Le 05/02/2014 16:58, Tobias Boege a écrit :
 Hi Benoit,

 I may have requested this some time ago already but now I can give you a
 project where it is shown (see attachments).

 What I want is that we can use a terminal emulator to run a program but
 still get Debug statements into the IDE because they really disturb ncurses
 programs.

 I attach two projects: one is a mere application (*-app) using gb.ncurses,
 the second one (without the -app suffix) runs the former using xterm but
 redirects stderr back to itself to display it in the TextArea. There is
 already a .gambas archive of the -app project in the non-app project. I
 send you the -app project anyway for the obvious reasons.

 I'd like to ask you to incorporate this into the IDE as an option or so.

 Regards,
 Tobi


Done in revision #6146.

Regards,

-- 
Benoît Minisini

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Redirecting stderr of terminal-emulated program back to IDE

2014-02-09 Thread Tobias Boege
On Sun, 09 Feb 2014, Beno?t Minisini wrote:
 Le 05/02/2014 16:58, Tobias Boege a ?crit :
  Hi Benoit,
 
  I may have requested this some time ago already but now I can give you a
  project where it is shown (see attachments).
 
  What I want is that we can use a terminal emulator to run a program but
  still get Debug statements into the IDE because they really disturb ncurses
  programs.
 
  I attach two projects: one is a mere application (*-app) using gb.ncurses,
  the second one (without the -app suffix) runs the former using xterm but
  redirects stderr back to itself to display it in the TextArea. There is
  already a .gambas archive of the -app project in the non-app project. I
  send you the -app project anyway for the obvious reasons.
 
  I'd like to ask you to incorporate this into the IDE as an option or so.
 
  Regards,
  Tobi
 
 
 Done in revision #6146.
 

Just how I wanted it to be. Thanks.

Regards,
Tobi

-- 
There's an old saying: Don't change anything... ever! -- Mr. Monk

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: Redirecting stderr of terminal-emulated program back to IDE

2014-02-05 Thread Tobias Boege
Hi Benoit,

I may have requested this some time ago already but now I can give you a
project where it is shown (see attachments).

What I want is that we can use a terminal emulator to run a program but
still get Debug statements into the IDE because they really disturb ncurses
programs.

I attach two projects: one is a mere application (*-app) using gb.ncurses,
the second one (without the -app suffix) runs the former using xterm but
redirects stderr back to itself to display it in the TextArea. There is
already a .gambas archive of the -app project in the non-app project. I
send you the -app project anyway for the obvious reasons.

I'd like to ask you to incorporate this into the IDE as an option or so.

Regards,
Tobi

-- 
There's an old saying: Don't change anything... ever! -- Mr. Monk


terminal-redirect-stderr-back-app-0.0.2.tar.gz
Description: Binary data


terminal-redirect-stderr-back-0.0.1.tar.gz
Description: Binary data
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-15 Thread Benoît Minisini
Le 13/08/2013 01:31, Benoît Minisini a écrit :
 Le 11/08/2013 13:33, Tobias Boege a écrit :
 Hi Benoit,

 what bothers me from time to time is that With is *so* handy but can't be
 used to access Array or Collection elements like:

 With hCollection ' or hArray
Print [key]  ' or Print [0]
 End With

 I see that this would be a syntactical problem because [key] and [0]
 may
 equivalently well be recognised as inline arrays. But we have another
 option, right? There is still the ! operator which is unambiguous:

 With hCollection
Print !key
 End With

 Should be no problem if implemented. What do you think? And while we
 are at
 it, couldn't the ! operator at the same time get the capability to
 support
 integers, so that the above will also work with an array:

 With hArray
Print !0
 End With

 Regards,
 Tobi


 The '!' can't be used, because a!b is just syntactic sugar for a[b].

 Maybe a syntax like .[x] = y could be used, as at the moment .[x] is a
 syntax error... I will think about it.


This is implemented in revision #5797:

Dim aStr As New String[2]
With aStr
   .[0] = a
   .[1] = b
   Print .[0];; .[1]
End With

Enjoy!

-- 
Benoît Minisini

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-15 Thread Tobias Boege
On Thu, 15 Aug 2013, Beno?t Minisini wrote:
 Le 13/08/2013 01:31, Beno?t Minisini a ?crit :
  Le 11/08/2013 13:33, Tobias Boege a ?crit :
  Hi Benoit,
 
  what bothers me from time to time is that With is *so* handy but can't be
  used to access Array or Collection elements like:
 
  With hCollection ' or hArray
 Print [key]  ' or Print [0]
  End With
 
  I see that this would be a syntactical problem because [key] and [0]
  may
  equivalently well be recognised as inline arrays. But we have another
  option, right? There is still the ! operator which is unambiguous:
 
  With hCollection
 Print !key
  End With
 
  Should be no problem if implemented. What do you think? And while we
  are at
  it, couldn't the ! operator at the same time get the capability to
  support
  integers, so that the above will also work with an array:
 
  With hArray
 Print !0
  End With
 
  Regards,
  Tobi
 
 
  The '!' can't be used, because a!b is just syntactic sugar for a[b].
 
  Maybe a syntax like .[x] = y could be used, as at the moment .[x] is a
  syntax error... I will think about it.
 
 
 This is implemented in revision #5797:
 
 Dim aStr As New String[2]
 With aStr
.[0] = a
.[1] = b
Print .[0];; .[1]
 End With
 
 Enjoy!

Nice! Works also with Collection-like objects. The only thing I noticed was
that it's not very comfortable to type in the IDE, i.e. once you are in the
With clause and type ., you will presented the list of symbols in the
auto-completion popup. If you press [, the first thing in there is
inserted before the [.

Anyway, this is very great!

Thanks,
Tobi

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-15 Thread Benoît Minisini
Le 15/08/2013 16:32, Tobias Boege a écrit :
 This is implemented in revision #5797:

 Dim aStr As New String[2]
 With aStr
 .[0] = a
 .[1] = b
 Print .[0];; .[1]
 End With

 Enjoy!

 Nice! Works also with Collection-like objects. The only thing I noticed was
 that it's not very comfortable to type in the IDE, i.e. once you are in the
 With clause and type ., you will presented the list of symbols in the
 auto-completion popup. If you press [, the first thing in there is
 inserted before the [.

 Anyway, this is very great!

 Thanks,
 Tobi


Yep, the IDE is not yet aware of that new syntax...

In revision #5798, I implemented the same thing for the ! operator.

With some Result object or Collection
   !field1 = foo
   !field2 = bar
End With

Regards,

-- 
Benoît Minisini

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-15 Thread Tobias Boege
On Thu, 15 Aug 2013, Beno?t Minisini wrote:
 Le 15/08/2013 16:32, Tobias Boege a ?crit :
  This is implemented in revision #5797:
 
  Dim aStr As New String[2]
  With aStr
  .[0] = a
  .[1] = b
  Print .[0];; .[1]
  End With
 
  Enjoy!
 
  Nice! Works also with Collection-like objects. The only thing I noticed was
  that it's not very comfortable to type in the IDE, i.e. once you are in the
  With clause and type ., you will presented the list of symbols in the
  auto-completion popup. If you press [, the first thing in there is
  inserted before the [.
 
  Anyway, this is very great!
 
  Thanks,
  Tobi
 
 
 Yep, the IDE is not yet aware of that new syntax...
 
 In revision #5798, I implemented the same thing for the ! operator.
 
 With some Result object or Collection
!field1 = foo
!field2 = bar
 End With
 

Yes, everything works perfectly. The IDE now, too. Thank you very much.

Regards,
Tobi

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-12 Thread Benoît Minisini
Le 11/08/2013 13:33, Tobias Boege a écrit :
 Hi Benoit,

 what bothers me from time to time is that With is *so* handy but can't be
 used to access Array or Collection elements like:

 With hCollection ' or hArray
Print [key]  ' or Print [0]
 End With

 I see that this would be a syntactical problem because [key] and [0] may
 equivalently well be recognised as inline arrays. But we have another
 option, right? There is still the ! operator which is unambiguous:

 With hCollection
Print !key
 End With

 Should be no problem if implemented. What do you think? And while we are at
 it, couldn't the ! operator at the same time get the capability to support
 integers, so that the above will also work with an array:

 With hArray
Print !0
 End With

 Regards,
 Tobi


The '!' can't be used, because a!b is just syntactic sugar for a[b].

Maybe a syntax like .[x] = y could be used, as at the moment .[x] is a 
syntax error... I will think about it.

-- 
Benoît Minisini

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: Use key- (and index-)accessor in a With clause

2013-08-11 Thread Tobias Boege
Hi Benoit,

what bothers me from time to time is that With is *so* handy but can't be
used to access Array or Collection elements like:

With hCollection ' or hArray
  Print [key]  ' or Print [0]
End With

I see that this would be a syntactical problem because [key] and [0] may
equivalently well be recognised as inline arrays. But we have another
option, right? There is still the ! operator which is unambiguous:

With hCollection
  Print !key
End With

Should be no problem if implemented. What do you think? And while we are at
it, couldn't the ! operator at the same time get the capability to support
integers, so that the above will also work with an array:

With hArray
  Print !0
End With

Regards,
Tobi

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: Redirecting stderr of a program run in a terminal emulator

2013-08-04 Thread Tobias Boege
Hi Benoit,

when writing programs that use gb.ncurses it is difficult to emit debugging
information, i.e. one cannot use the handy Debug or Error instructions
because they write string\n to stderr where string\r\n would be needed
in ncurses mode.

While it would be easy to add a \r to the end of each string, it would
also most likely mess up the display of the program. I think it would be
best to be able to redirect the standard error of a program which is run in
a terminal emulator back to the console window in the IDE.

In my imagination this would be a simple checkbox in the project options
dialog. Could you please implement this?

Regards,
Tobi

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Redirecting stderr of a program run in a terminal emulator

2013-08-04 Thread Benoît Minisini
Le 04/08/2013 17:59, Tobias Boege a écrit :
 Hi Benoit,

 when writing programs that use gb.ncurses it is difficult to emit debugging
 information, i.e. one cannot use the handy Debug or Error instructions
 because they write string\n to stderr where string\r\n would be needed
 in ncurses mode.

 While it would be easy to add a \r to the end of each string, it would
 also most likely mess up the display of the program. I think it would be
 best to be able to redirect the standard error of a program which is run in
 a terminal emulator back to the console window in the IDE.

 In my imagination this would be a simple checkbox in the project options
 dialog. Could you please implement this?

 Regards,
 Tobi


Why does ncurses change the behaviour of the standard error stream? I 
don't see the reason...

And what do you mean by redirect the standard error of a program which 
is run in a terminal emulator back to the console window in the IDE? 
This is what is already done for all debugged programs!

-- 
Benoît Minisini

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Redirecting stderr of a program run in a terminal emulator

2013-08-04 Thread Tobias Boege
On Sun, 04 Aug 2013, Beno?t Minisini wrote:
 Le 04/08/2013 17:59, Tobias Boege a ?crit :
  Hi Benoit,
 
  when writing programs that use gb.ncurses it is difficult to emit debugging
  information, i.e. one cannot use the handy Debug or Error instructions
  because they write string\n to stderr where string\r\n would be needed
  in ncurses mode.
 
  While it would be easy to add a \r to the end of each string, it would
  also most likely mess up the display of the program. I think it would be
  best to be able to redirect the standard error of a program which is run in
  a terminal emulator back to the console window in the IDE.
 
  In my imagination this would be a simple checkbox in the project options
  dialog. Could you please implement this?
 
  Regards,
  Tobi
 
 
 Why does ncurses change the behaviour of the standard error stream? I 
 don't see the reason...
 

It changes the tty line discipline and stderr just happens to be directed
to that tty. Normally the tty has the ONLCR bit set when humans operate with
it which means: translate each incoming newline into a carriage-return-
newline sequence.

NCurses turns this bit off. Try stty -onlcr in a terminal to see the
result.

 And what do you mean by redirect the standard error of a program which 
 is run in a terminal emulator back to the console window in the IDE? 
 This is what is already done for all debugged programs!
 

AFAICS, when I have the Use a terminal emulator setting checked in the
project options, writing to stderr results in output to the controlling
terminal (xterm in my case), not to the IDE console.

I have a screenshot attached and the project used to generate the display. I
hope this makes it clear enough? I'd like to have an option to send the
strings from Error and Debug to the IDE console, not to the terminal
emulator.

Regards,
Tobi


no-carriage-return-0.0.1.tar.gz
Description: Binary data
attachment: no-carriage-return.png--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Redirecting stderr of a program run in a terminal emulator

2013-08-04 Thread Benoît Minisini
Le 04/08/2013 20:31, Tobias Boege a écrit :

 Why does ncurses change the behaviour of the standard error stream? I
 don't see the reason...


 It changes the tty line discipline and stderr just happens to be directed
 to that tty. Normally the tty has the ONLCR bit set when humans operate with
 it which means: translate each incoming newline into a carriage-return-
 newline sequence.

 NCurses turns this bit off. Try stty -onlcr in a terminal to see the
 result.


Maybe you can turn this bit on just after NCurses initialisation?

 And what do you mean by redirect the standard error of a program which
 is run in a terminal emulator back to the console window in the IDE?
 This is what is already done for all debugged programs!


 AFAICS, when I have the Use a terminal emulator setting checked in the
 project options, writing to stderr results in output to the controlling
 terminal (xterm in my case), not to the IDE console.

 I have a screenshot attached and the project used to generate the display. I
 hope this makes it clear enough? I'd like to have an option to send the
 strings from Error and Debug to the IDE console, not to the terminal
 emulator.

 Regards,
 Tobi


The debugged program is entirely under the control of the terminal 
emulator. I don't know how I can tell it to redirect its standard error 
output to the standard error output of the terminal emulator, or 
(better) a specific pipe, so that the IDE gets the data... It should be 
possible with a named pipe, I will try...

-- 
Benoît Minisini

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Redirecting stderr of a program run in a terminal emulator

2013-08-04 Thread Tobias Boege
On Sun, 04 Aug 2013, Beno?t Minisini wrote:
 Le 04/08/2013 20:31, Tobias Boege a ?crit :
 
  Why does ncurses change the behaviour of the standard error stream? I
  don't see the reason...
 
 
  It changes the tty line discipline and stderr just happens to be directed
  to that tty. Normally the tty has the ONLCR bit set when humans operate with
  it which means: translate each incoming newline into a carriage-return-
  newline sequence.
 
  NCurses turns this bit off. Try stty -onlcr in a terminal to see the
  result.
 
 
 Maybe you can turn this bit on just after NCurses initialisation?
 

It's possible but ncurses does what it does to have the tty in a known state
and I shouldn't mess around with it behind ncurses' back...

  And what do you mean by redirect the standard error of a program which
  is run in a terminal emulator back to the console window in the IDE?
  This is what is already done for all debugged programs!
 
 
  AFAICS, when I have the Use a terminal emulator setting checked in the
  project options, writing to stderr results in output to the controlling
  terminal (xterm in my case), not to the IDE console.
 
  I have a screenshot attached and the project used to generate the display. I
  hope this makes it clear enough? I'd like to have an option to send the
  strings from Error and Debug to the IDE console, not to the terminal
  emulator.
 
  Regards,
  Tobi
 
 
 The debugged program is entirely under the control of the terminal 
 emulator. I don't know how I can tell it to redirect its standard error 
 output to the standard error output of the terminal emulator, or 
 (better) a specific pipe, so that the IDE gets the data... It should be 
 possible with a named pipe, I will try...
 

Yes, my first thought was way too simple... But actually it should be doable
with something like exec 2/.../gambas-named-pipe just before the program
is executed in the terminal emulator.

Regards,
Tobi

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Read a component's .info file for help in the IDE

2013-05-25 Thread Tobias Boege
On Fri, 24 May 2013, Beno?t Minisini wrote:
 Le 24/05/2013 23:14, Tobias Boege a ?crit :
  Hi,
 
  it is said in [0] that the IDE can access an .info file of a project to get
  documentation out of it.
 
  I tried this with gb.openssl which I documented in its source code. It did
  not work since it's a component and not a project. As the gambas-devels may
  already know, I have a bunch of scripts to extract these comments and merge
  them into existing .info files. This works properly meanwhile. Consequently,
  I'd like to see the IDE display the help comments in a *component's* .info
  file. Is that possible?
 
  Regards,
  Tobi
 
  [0] http://gambasdoc.org/help/doc/helpcomments?v3
 
 
 No, component help must be written on the wiki.
 
 Component help can be written on the wiki only after I have uploaded the 
 information files on the wiki server.
 
 I will upload the information files after having taken a look at the 
 interface of your component.
 

Do you mean that you can import an .info file to the wiki? This would be
great to kick-start the gb.openssl documentation if you used my modified
.info file.

Regards,
Tobi

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: Read a component's .info file for help in the IDE

2013-05-24 Thread Tobias Boege
Hi,

it is said in [0] that the IDE can access an .info file of a project to get
documentation out of it.

I tried this with gb.openssl which I documented in its source code. It did
not work since it's a component and not a project. As the gambas-devels may
already know, I have a bunch of scripts to extract these comments and merge
them into existing .info files. This works properly meanwhile. Consequently,
I'd like to see the IDE display the help comments in a *component's* .info
file. Is that possible?

Regards,
Tobi

[0] http://gambasdoc.org/help/doc/helpcomments?v3

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Read a component's .info file for help in the IDE

2013-05-24 Thread Benoît Minisini
Le 24/05/2013 23:14, Tobias Boege a écrit :
 Hi,

 it is said in [0] that the IDE can access an .info file of a project to get
 documentation out of it.

 I tried this with gb.openssl which I documented in its source code. It did
 not work since it's a component and not a project. As the gambas-devels may
 already know, I have a bunch of scripts to extract these comments and merge
 them into existing .info files. This works properly meanwhile. Consequently,
 I'd like to see the IDE display the help comments in a *component's* .info
 file. Is that possible?

 Regards,
 Tobi

 [0] http://gambasdoc.org/help/doc/helpcomments?v3


No, component help must be written on the wiki.

Component help can be written on the wiki only after I have uploaded the 
information files on the wiki server.

I will upload the information files after having taken a look at the 
interface of your component.

Regards,

-- 
Benoît Minisini

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: project refresh should reload dependencies

2013-03-31 Thread Bruce
On Sun, 2013-03-31 at 04:01 +0200, Benoît Minisini wrote:
 Le 28/03/2013 06:39, Bruce a écrit :
  Hi Benoît,
 
  It would be helpful if the IDE Project Refresh action re-read the
  project dependencies (components and libraries) so that when working on
  a main project and a library at the same time we didn't have to keep
  quitting and re-opening the main program in order to get new features in
  the dependency visible in the auto-complete.
 
  TIA
  Bruce
 
 
 Done in revision #5602. Tell me if it works as expected for you!
 
 Regards,
 

Works fine!
Thanks Benoît


--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: project refresh should reload dependencies

2013-03-30 Thread Benoît Minisini
Le 28/03/2013 06:39, Bruce a écrit :
 Hi Benoît,

 It would be helpful if the IDE Project Refresh action re-read the
 project dependencies (components and libraries) so that when working on
 a main project and a library at the same time we didn't have to keep
 quitting and re-opening the main program in order to get new features in
 the dependency visible in the auto-complete.

 TIA
 Bruce


Done in revision #5602. Tell me if it works as expected for you!

Regards,

-- 
Benoît Minisini

--
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: project refresh should reload dependencies

2013-03-27 Thread Bruce
Hi Benoît,

It would be helpful if the IDE Project Refresh action re-read the
project dependencies (components and libraries) so that when working on
a main project and a library at the same time we didn't have to keep
quitting and re-opening the main program in order to get new features in
the dependency visible in the auto-complete.

TIA
Bruce


--
Own the Future-Intelreg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Component hunt disabler

2012-12-19 Thread Benoît Minisini
Le 18/12/2012 13:13, Bruce a écrit :
 On Tue, 2012-12-18 at 11:26 +0100, M. Cs. wrote:
 In fact I cannot catch the error, although it occurs randomly. I've tried
 several times to create screenshots, but at that moment the error didn't
 come up.

 Csaba

 Benoît,
 I can confirm that this issue is true.  One instance I see it in is if a
 procedure does not use a passed parameter value then a warning is
 properly raised and the IDE either opens the source concerned or resets
 the current line to somewhere in that class.  This seems to happen
 whether or not warnings are activated.
 More tomorrow.


I disabled the automatic jump to the first warning in revision #5454.

Regards,

-- 
Benoît Minisini

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Component hunt disabler

2012-12-18 Thread M. Cs.
In fact I cannot catch the error, although it occurs randomly. I've tried
several times to create screenshots, but at that moment the error didn't
come up.

Csaba

2012/12/18 Benoît Minisini gam...@users.sourceforge.net

 Le 18/12/2012 01:01, Adrien Prokopowicz a écrit :
 
  Hi Benoît,
 
  I have the same problem since a few weeks now, and I just understood what
  it was.
  Actually, when I get a compilation warning, the IDE automatically jumps
 to
  the position of the warning, and makes these messy jumps.
  I know that I should write my code so that I won't have any warning, but
  this is really annoying.
 
 
  Regards,
 

 Warnings can be disabled in the project property dialog if they are
 unwanted.

 Regards,

 --
 Benoît Minisini


 --
 LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
 Remotely access PCs and mobile devices and provide instant support
 Improve your efficiency, and focus on delivering more value-add services
 Discover what IT Professionals Know. Rescue delivers
 http://p.sf.net/sfu/logmein_12329d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Component hunt disabler

2012-12-18 Thread Bruce
On Tue, 2012-12-18 at 11:26 +0100, M. Cs. wrote:
 In fact I cannot catch the error, although it occurs randomly. I've tried
 several times to create screenshots, but at that moment the error didn't
 come up.
 
 Csaba
 
Benoît,
I can confirm that this issue is true.  One instance I see it in is if a
procedure does not use a passed parameter value then a warning is
properly raised and the IDE either opens the source concerned or resets
the current line to somewhere in that class.  This seems to happen
whether or not warnings are activated.
More tomorrow.

-- 
Bruce bbr...@paddys-hill.net
Paddys-Hill dot net


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Component hunt disabler

2012-12-17 Thread M. Cs.
Why, I could not reproduce the error!

2012/12/16 Benoît Minisini gam...@users.sourceforge.net

 Le 16/12/2012 19:36, M. Cs. a écrit :
  Hello Benoit,
  I would like to ask you to set a default behavior for the Gambas3 IDE:
 
  When I do some changes either in code editor in let say Public Sub
 MyAct(),
  or in form designer on a component Combobox1 after hitting F5 and
 checking
  the difference, the IDE drops me either to a random part of code or to
  FMain's properties. This is very annoying and can take quite a lot of
 time
  to search for the code I've just edited or to find a component in
 Hierarchy
  tree. Can this kind of behavior be healed. I would like to continue the
  code writing/ designing right there where I was before the CompileRun.
 
  Thanks!
 
  Csaba

 Sorry, I don't understand: if I start or stop a program, the current
 editor and the current cursor do not change.

 Can you explain differently, eventually with screenshots?

 --
 Benoît Minisini


 --
 LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
 Remotely access PCs and mobile devices and provide instant support
 Improve your efficiency, and focus on delivering more value-add services
 Discover what IT Professionals Know. Rescue delivers
 http://p.sf.net/sfu/logmein_12329d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Component hunt disabler

2012-12-17 Thread Adrien Prokopowicz

Hi Benoît,

I have the same problem since a few weeks now, and I just understood what  
it was.
Actually, when I get a compilation warning, the IDE automatically jumps to  
the position of the warning, and makes these messy jumps.
I know that I should write my code so that I won't have any warning, but  
this is really annoying.


Regards,

-- 
Adrien Prokopowicz

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Component hunt disabler

2012-12-17 Thread Benoît Minisini
Le 18/12/2012 01:01, Adrien Prokopowicz a écrit :

 Hi Benoît,

 I have the same problem since a few weeks now, and I just understood what
 it was.
 Actually, when I get a compilation warning, the IDE automatically jumps to
 the position of the warning, and makes these messy jumps.
 I know that I should write my code so that I won't have any warning, but
 this is really annoying.


 Regards,


Warnings can be disabled in the project property dialog if they are 
unwanted.

Regards,

-- 
Benoît Minisini

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request: Component hunt disabler

2012-12-16 Thread M. Cs.
Hello Benoit,
I would like to ask you to set a default behavior for the Gambas3 IDE:

When I do some changes either in code editor in let say Public Sub MyAct(),
or in form designer on a component Combobox1 after hitting F5 and checking
the difference, the IDE drops me either to a random part of code or to
FMain's properties. This is very annoying and can take quite a lot of time
to search for the code I've just edited or to find a component in Hierarchy
tree. Can this kind of behavior be healed. I would like to continue the
code writing/ designing right there where I was before the CompileRun.

Thanks!

Csaba
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   3   >