Re: [Gambas-user] URGENT request to people of Gambas stable PPA

2015-03-17 Thread Willy Raets
On ma, 2015-03-16 at 11:28 -0300, Sebastian Kulesz wrote:
 Hey there!
 
 I haven't pushed the update to the stable ppa yet. Just last night I
 updated the bleeding edge ppa and I would like to wait a day or two to
 see if any issues arise. 
 
 I can not hold the update because of one user. Think that there are a
 lot of people waiting for the new features and fixes this release
 brings. 
 
 From what you wrote, I assume you are using a Debian based distro.
 Would it be possible for you to download a local copy of the
 repository instead of compiling Gambas? Google a tool named reprepo,
 try to set it up on a server locally, and download the packages
 currently available on the stable ppa. I won't update it for a day or
 two, and I will let you know with some time so you can prepare. But
 know that holding it for more than a few days is not ideal. 
 
 If I can be of any help let me know!
 
Hi Sebastian,

I managed to get my own local repository running with the Gambas 3.6.2
from your PPA. I also managed to install from there (just needed to
neglect the key warnings).

So, as far as I am concerned there is no need to hold back the release
of Gambas 3.7

Thanks for your cooperation.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] URGENT request to people of Gambas stable PPA

2015-03-17 Thread Willy Raets
On di, 2015-03-17 at 11:35 -0500, Lewis Balentine wrote:
 Congratulations Willy  :-)


Thanks, and it only costed me a days work to figure it all out :)

I guess this might mean I'll manage to get the migration going next week
as planned.

 
 On 03/17/2015 11:19 AM, Willy Raets wrote:
  I managed to get my own local repository running with the Gambas 3.6.2
  from your PPA. I also managed to install from there (just needed to
  neglect the key warnings).
 
 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] URGENT request to people of Gambas stable PPA

2015-03-16 Thread Willy Raets
Hi,

First, thank you for all the good and hard work getting Gambas out
there.

I have an urgent request for the Gambas-team people taking care of
Gambas stable PPA.

Would it be possible to have a PPA where Gambas 3.6.2 is available (a
copy for example of the current).

The reason I am asking is as follows.

At work, I have been working on  a complete rewriting of current VB
Client applications under Windows/MSAccess to Gambas 3.6.2 client
applications under Linux/MySql. This project started december 2013.

The rewrites have finished a few months ago and since I have been
testing all. I am about to migrate the Windows environment to Linux.

For this I need a working Gambas 3.6.2 PPA.

Compiling Gambas 3.6 on the local systems will not work. Simply because
the installation of the Gambas 3.6 migrated application .debs will not
work because of missing dependencies.

Why? Well, the distros package management system is not aware of the
locally compiled Gambas 3.6.2. and will try to look for a PPA that holds
them. Since all my applications are coded for auto-update-install new
application versions, using the newer .debs, my auto-update-install
mechanisms will not work either!

Access to a Gambas 3.7 PPA is no solution as none of the applications
where tested against Gambas 3.7 and I do not have a few months time to
retest all. The migration is planned for next week!

For this reason I need access to a working Gambas 3.6.2 repository, but
with the release of Gambas 3.7, the 3.6.2 will soon be updated and no
more 3.6.2 PPA will be available.

Is it possible to host the 3.6.2 version at launchpad in a separate PPA,
so that it will stay available.

And wouldn't it be handy to have such a PPA for each last 3.x version.
Especially, for those working in a professional environment, where
stability is more important that the latest and greatest version of
something.

I hope some kind of solution will be possible or else the project will
have a setback of a few months and my bosses will NOT be happy.

It took me quite some time to convince them to make the move from
VB/Windows to Gambas/Linux,so this latest Gambas update is really bad
timing for me.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] URGENT request to people of Gambas stable PPA

2015-03-16 Thread Willy Raets
On ma, 2015-03-16 at 09:25 -0500, Lewis Balentine wrote:
 Have you considered setting up a local PPA.
 In that way you might also control 'what else' gets updated.
 http://inodes.org/2009/09/14/building-a-private-ppa-on-ubuntu/
 
 Cheers,
 
 Lewis

Hi Lewis,

I have considered this but IF I would get a PPA working, I do not have
the know how to make the needed Gambas packages to go into the PPA.

Another thing is the time constrain, I have much to do before the
migration starts next week and that 'much to do' doesn't include
learning how to set up a repo, learning how to package Gambas, test the
repo and packages and so on...


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] URGENT request to people of Gambas stable PPA

2015-03-16 Thread Willy Raets
On ma, 2015-03-16 at 16:04 +0100, Christof Thalhofer wrote:
 Hello Willy,
 
 Am 16.03.2015 um 15:34 schrieb Willy Raets:
 
  I have considered this but IF I would get a PPA working, I do not have
  the know how to make the needed Gambas packages to go into the PPA.
  
  Another thing is the time constrain, I have much to do before the
  migration starts next week and that 'much to do' doesn't include
  learning how to set up a repo, learning how to package Gambas, test the
  repo and packages and so on...
 
 It is really easy in Debian with Reprepro:
 
 apt-get install apache2 reprepro
 
 Create dirs:
 
 /var/www/apt/gambas3
 /var/www/apt/gambas3/conf
 
 in /var/www/apt/gambas3/conf create three files:
 
 distributions  options  updates
 
 Filecontents:
 
 #  distributions
 
 Origin: My Gambas3
 Label: My Gambas3
 Architectures: i386 amd64
 Suite: stable
 Codename: trusty
 Components: main
 Contents: .gz
 Update: - gambas3-ppa
 Description: My Gambas Archive
 # SignWith: XYZPGPKEY
 
 #  options
 
 verbose
 ask-passphrase
 
 #  updates
 
 Name: gambas3-ppa
 # Gambas3 Beta
 Method: http://ppa.launchpad.net/gambas-team/gambas-beta/ubuntu
 Components: main
 Architectures: i386 amd64
 VerifyRelease: 6CAEE58D
 
 ---
 
 To fetch the gambas repo from Launchpad:
 
 $: cd /var/www/apt/gambas3
 $: reprepro -V update
 
 In your client pcs as root:
 
 touch /etc/apt/sources.list.d/mygambas.list
 
 #  mygambas.list
 deb http://mysserverip/apt/gambas3 trusty main
 
 That's all.
 
 The only thing I did not mention here is to create a gpg key to sign the
 repos.
 
 
 Alles Gute
 
 Christof Thalhofer
 

Thanks

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] URGENT request to people of Gambas stable PPA

2015-03-16 Thread Willy Raets
On ma, 2015-03-16 at 16:50 +0100, Christof Thalhofer wrote:
 Am 16.03.2015 um 16:25 schrieb Willy Raets:
 
  On ma, 2015-03-16 at 11:43 -0300, Sebastian Kulesz wrote:
  You can use the same packages that are now available on the ppa. Just
  use curl or wget to download them all. There is no need to build
  anything.  
  
  Are you saying that a wget and next publish the location in apache would
  do the trick?
 
 Maybe (just try it out), but if your clients will also rely on the
 launchpad stable dist they will fetch 3.7 from there as soon as stable
 lies there, because there lies the one with higher version number.

The clients will have no references in their sources.list to the Gambas
3.7 PPA, so that should be no problem.

I am currently trying to set it up. I have got the files
in /var/www/apt/gambas3

I'm not sure though on what to publish so it makes sense for apt-get.

The above apt/gambas3 folder has an ubuntu folder. In there you have
dists and pool.

dists contains a develop, lucid, precise, ... and trusty folder
All the above mentioned folders (develop, lucid,..) hold a main folder,
the release file and release.gpg

The pool folder holds a main folder with folder g and l, with more
subfolders eventually leading to the .deb packages.

What I was wondering is, what level of the folder structure to publish
in apache.
/var/www/apt/gambas3? or /var/www/apt/gambas3/ubuntu?

 
 AFAIK
 
 If you're familiar with the use of reprepro you can distribute your own
 software to your clients via apt also. I do that and it's nice and
 comfortable.
 
 Alles Gute
 
 Christof Thalhofer
 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] URGENT request to people of Gambas stable PPA

2015-03-16 Thread Willy Raets
On ma, 2015-03-16 at 11:43 -0300, Sebastian Kulesz wrote:
 
 On Mar 16, 2015 11:36 AM, Willy Raets wi...@earthshipbelgium.be
 wrote:
 
  On ma, 2015-03-16 at 09:25 -0500, Lewis Balentine wrote:
   Have you considered setting up a local PPA.
   In that way you might also control 'what else' gets updated.
   http://inodes.org/2009/09/14/building-a-private-ppa-on-ubuntu/
  
   Cheers,
  
   Lewis
 
  Hi Lewis,
 
  I have considered this but IF I would get a PPA working, I do not
 have
  the know how to make the needed Gambas packages to go into the PPA.
 
  Another thing is the time constrain, I have much to do before the
  migration starts next week and that 'much to do' doesn't include
  learning how to set up a repo, learning how to package Gambas, test
 the
  repo and packages and so on...
 
 You can use the same packages that are now available on the ppa. Just
 use curl or wget to download them all. There is no need to build
 anything.  

Are you saying that a wget and next publish the location in apache would
do the trick?


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] URGENT request to people of Gambas stable PPA

2015-03-16 Thread Willy Raets
On ma, 2015-03-16 at 11:28 -0300, Sebastian Kulesz wrote:
 Hey there!

Hi Sebastian,

Thanks for the quick response.
 
 I haven't pushed the update to the stable ppa yet. Just last night I
 updated the bleeding edge ppa and I would like to wait a day or two to
 see if any issues arise. 

Nice
 
 I can not hold the update because of one user. Think that there are a
 lot of people waiting for the new features and fixes this release
 brings. 
 
 From what you wrote, I assume you are using a Debian based distro.
 Would it be possible for you to download a local copy of the
 repository instead of compiling Gambas?

I used wget to make a local copy of your stable PPA onto my local disk.

Now, if I understand it all well, I would:

1. Have to push this local copy of your PPA to our Debian server 
2. I would have to install reprepo on the Debian server and somehow tell
it where the repo is (so configure it).
3. I would need to configure apache to publish the repo.
4. On the clients edit the sources.list to point to the repo

Are these the correct steps and in the right order to take?

 
 If I can be of any help let me know!

I will probably need your help.

I have been looking into reprepo for several times over the past few
years, but never actually tried setting up a repo.

Most documentation comes with a lot of bash scripts that are very
specific for the shown example, or deal with having reprepo make
packages from source and so on. None of the docs seems to aim at why I
intend to do, set up an Ubuntu repo on a Debian server, with the
packages ripped from a PPA.

I have the feeling that making the folder structure and packages for the
repo is not needed if ripping an existing ppa from its packages and
folder structure.
That should make the whole setup much eazier, but what to configure and
what not in reprepo for this situation is a bit unclear to me.
But somehow I have the feeling that even a lot of what needs to be
configured is already in place when copying an existing PPA.

I find it very hard to find documentation that makes sense to me and
this specific situation.

I have like a dozen of bookmarks in my browser on reprepro for a few
years now (add new ones when I find them), reread them like every half
year and still never managed to completely wrap my head around setting
up a repo :)

So any help is appreciated.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Possible bug in ValueBox coding of gb.form Component

2015-03-08 Thread Willy Raets
On zo, 2015-03-08 at 16:44 +, John Rose wrote:
 I've attached a Test project. The significant controls are 13 ValueBoxes
 (named CypheredValueBox 1 etc, all in Group Cyphered) and 13 MaskBoxes
 (named PlainMaskBox1 etc, all in Group Plain): please ignore the other
 controls  their coding. When I change any CypheredValueBox to a another
 number, the event Cyphered_Change does not execute; however, when I
 change any PlainMaskBox to another alphabetic, the event Plain_Change
 does execute. To me this seems like a bug in the gb.form Component. Am I
 correct?
 

This is because a ValueBox doesn't have a change event.
So, the group of ValueBoxes won't have it either.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Rpi 2

2015-02-13 Thread Willy Raets
On vr, 2015-02-13 at 09:09 +0100, Alexie wrote:
 Hi Mike,
 
 Compiling Gambas3 on a Pi / Pi2 is a long task, so for the DomotiGa project
 we created pre-compiled packages of Gambas 3.6.2 (and when new version are
 released, we will update ofcourse).
 
 You can download/install as follows:
 
 $ wget -O - https://domotiga.nl/apt/public.gpg.key | sudo apt-key add -
 $ sudo su -c echo 'deb https://domotiga.nl/apt/raspbian wheezy main'
  /etc/apt/sources.list
 $ sudo apt-get install -y apt-transport-https
 $ sudo apt-get update
 $ sudo apt-get upgrade
 $ sudo apt-get install gambas3
 
 I have tested this with the Pi and Pi2 (clear Raspbian images).
 
 Regards,
 Alex
 

Hi Alex,

Very nice and very good to know...
I'll update the Gambas wiki for Pin installation to point to your Gambas
binaries.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Packaging a project with libraries to deb failed

2015-01-18 Thread Willy Raets
On zo, 2015-01-18 at 14:58 +0100, Christof Thalhofer wrote:
 Hi,
 
 after I wrote my first small app in Gambas, I decided to export some
 common modules and classes to an external library, which worked well (at
 design time).
 
 But now the original project cannot be packed as .deb. There is an error
 shown when packaging:
 
  dpkg-buildpackage: Host-Architektur amd64
   dpkg-source --before-build xyz-program-0.4.3
  dpkg-source: Warnung: Abhängigkeit (= 0.0.0) kann nicht ausgewertet werden
  dpkg-source: Fehler: Fehler beim Parsen von Build-Depends
 
 I try a translation of the error:
 dpkg-source: Warning: Dependancy (= 0.0.0) can not be parsed
 
 Any idea?
 
 
 Alles Gute
 
 Christof Thalhofer

I believe I had something likewise when building a library.
As far as I can remember it was because my library had version 0.0.0 (or
maybe even 0.0.1, can't remeber as it has been a while ago).

Try increasing the version of your library and then package again and
see what happens. It worked for me.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Column Alignment Property

2015-01-09 Thread Willy Raets
On vr, 2015-01-09 at 04:11 -0600, Lewis Balentine wrote:
 On another note:
 I wanted to verify these results with a later verions of GAMBAS. I have 
 one machien set up with: deb 
 http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu trusty main. It 
 reported version 3.6.99 available. I did the normal update but it still 
 reported 3.6.90.

As a matter of fact there is no Gambas 3.6.99.
Trunk version is always 3.x.90.
So, current stable is 3.6.2 and trunk is 3.6.90
As soon as 3.7.0 will be released the new trunk version will be 3.7.90.

The package has been named 3.6.99 by the Gambas team by accident.

Restoring the name to 3.6.90 seems to be problematic as far as I
understood (- correct me if I'm wrong Sebstian of the Gambas team PPA)
because 3.6.90 is a lower number as 3.6.99.

I guess this can be corrected as soon as 3.7.0 is out and 3.6.99
packages can be named correctly to 3.7.90

In short, the packages having 3.6.99 in package name will simply install
3.6.90.


 
 I then did: $ sudo apt-get purge gambas3
 followed by: $ sudo apt-get autoremove
 followed by: reboot
 followed by: sudo apt-get install gambas3

A lot of trouble, all for nothing...

 
 It still reports version 3.6.90 although as I watched the install I 
 clearly saw references to 3.6.99 (see below).
 ... and the results were the same for all three version tests.
 
Yes it will :)


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] fullscreen

2015-01-05 Thread Willy Raets
On ma, 2015-01-05 at 17:29 +0100, Reiner Goerlach wrote:
 Never never never never !
 
 I haqd a small Problem. Loss of Fullscreen property of Form in GAMBAS2. 
 Now I have work for 3 people all their life ! Minimum ! Than k you very 
 much 
 Reiner

For Ubuntu you don even need to compile, you can install latest Gambas3
from binaries (just don't use the official Ubuntu repository as it has
an outdated Gambas3 version).
All you need to do is open a terminal and do:
$ sudo add-apt-repository ppa:gambas-team/gambas3
$ sudo apt-get update
$ sudo apt-get install gambas3

Note that:
Gambas2 and Gambas3 can coexist on one and the same system.
Gambas2 is no longer maintained, so bugs will NOT get fixed.
Gambas3 is maintained and bugs should get fixed (if reported).

You can import your Gambas2 project into Gambas3 and with little or no
extra effort (in my experience) run it as is.
Make sure to backup your source before doing so.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Gambas translator behaviour (expected or bug?)

2015-01-01 Thread Willy Raets
On do, 2015-01-01 at 10:02 +0100, Benoît Minisini wrote:
 Le 30/12/2014 23:34, Willy Raets a écrit :
  On di, 2014-12-30 at 23:04 +0100, Benoît Minisini wrote:
  Le 30/12/2014 14:57, Willy Raets a écrit :
  Hi all,
 
  I was wondering next about the Gambas translator:
  When importing .po files send to me by a translator, only the empty
  strings get imported.
  If a translator has changed a earlier translated string to a more
  correct translation these modified strings do NOT get imported because
  there is already an earlier translated string present that needs the
  corrected string instead.
 
  Is this expected behaviour or a bug?
 
  For now I work around this by deleting the entire translation for the
  specific language and next importing the .po file.
 
  Note that I am using Gambas 3.5.4 and didn't test this for Gambas 3.6.x
  So maybe this behaviour is no longer.
 
 
 
  It is the expected behaviour, because the import feature was done just
  to get not yet translated strings from other translation files. Not for
  importing a new translation.
 
  Maybe I should add a replace existing translations option?
 
 
  That would be a great feature.
 
 
 It has been added in revision #6786. I didn't really test it, so please 
 report any problem!
 
 Regards,
 

I'll report back as soon as I have tested it. First need to update a
system to the latest revision.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Gambas translator behaviour (expected or bug?)

2014-12-30 Thread Willy Raets
Hi all,

I was wondering next about the Gambas translator:
When importing .po files send to me by a translator, only the empty
strings get imported.
If a translator has changed a earlier translated string to a more
correct translation these modified strings do NOT get imported because
there is already an earlier translated string present that needs the
corrected string instead.

Is this expected behaviour or a bug?

For now I work around this by deleting the entire translation for the
specific language and next importing the .po file.

Note that I am using Gambas 3.5.4 and didn't test this for Gambas 3.6.x
So maybe this behaviour is no longer.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Gambas translator behaviour (expected or bug?)

2014-12-30 Thread Willy Raets
On di, 2014-12-30 at 23:04 +0100, Benoît Minisini wrote:
 Le 30/12/2014 14:57, Willy Raets a écrit :
  Hi all,
 
  I was wondering next about the Gambas translator:
  When importing .po files send to me by a translator, only the empty
  strings get imported.
  If a translator has changed a earlier translated string to a more
  correct translation these modified strings do NOT get imported because
  there is already an earlier translated string present that needs the
  corrected string instead.
 
  Is this expected behaviour or a bug?
 
  For now I work around this by deleting the entire translation for the
  specific language and next importing the .po file.
 
  Note that I am using Gambas 3.5.4 and didn't test this for Gambas 3.6.x
  So maybe this behaviour is no longer.
 
 
 
 It is the expected behaviour, because the import feature was done just 
 to get not yet translated strings from other translation files. Not for 
 importing a new translation.
 
 Maybe I should add a replace existing translations option?
 

That would be a great feature.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Project gives a Segfault

2014-12-23 Thread Willy Raets
I have been testing a project of mine and found it to segfault on some
distros.

Tested conditions WITH NO SEGFAULT:
- Gambas 3.5.4 - LXDE 0.5.10 - Debian 7.7 Wheezy
- Gambas 3.5.4 - LXDE 0.6.1 - Fedora 20
- Gambas 3.5.4 - Xfce 4.10 - Linux Mint 13
- Gambas 3.6.2 - LXDE 0.5.8 - Lubuntu 12.04
- Gambas 3.6.2 - Xfce 4.10 - Linux Mint 13

Tested conditions WITH SEGFAULT:

- Gambas 3.6.2 - Mate 1.8 - Linux Mint 17
- Gambas 3.6.90 (rev#6768) - LXDE 0.6.1 - Lubuntu 14.04

It seems to effect Ubuntu 14.04 based system (Linux Mint 17 is Ubuntu
14.04 based as is Lubuntu 14.04)

Strangely enough the segfault doesn't happen on very run!!
About half of the times the application starts normal, the other times
it freezes or gives a segfault message.

I run gdb gbx / (gdb)run ang (gbd) bt
Added is an attachment with the output.

There are two outputs, one of a a segfault run and one of successful
run. Both are on the same system with the same project.

This is the system info of the system (Lubuntu 14.04) I run gdb on:

[System]
Gambas=3.6.90
OperatingSystem=Linux
Kernel=3.13.0-37-generic
Architecture=x86
Distribution=Ubuntu 14.04.1 LTS
Desktop=LXDE
Theme=QGtk
Language=nl_NL.UTF-8
Memory=1002M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4

If more info is needed, let me know.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org



== output of a failed run ==
$gdb gbx3
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i686-linux-gnu.
Type show configuration for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type help.
Type apropos word to search for commands related to word...
Reading symbols from gbx3...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/gbx3 
Warning: couldn't activate thread debugging using libthread_db: Cannot find new 
threads: generic error
warning: File /lib/i386-linux-gnu/libthread_db-1.0.so auto-loading has been 
declined by your `auto-load safe-path' set to $debugdir:$datadir/auto-load.
To enable execution of this file add
  add-auto-load-safe-path /lib/i386-linux-gnu/libthread_db-1.0.so
line to your configuration file /home/willy/.gdbinit.
To completely disable this security protection add
  set auto-load safe-path /
line to your configuration file /home/willy/.gdbinit.
For more information about this security protection see the
Auto-loading safe path section in the GDB manual.  E.g., run from the shell:
  info (gdb)Auto-loading safe path
warning: Unable to find libthread_db matching inferior's thread library, thread 
debugging will not be available.
[New LWP 3568]
[LWP 3568 exited]
[New LWP 3579]

Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 3579]
__GI_fgets_unlocked (buf=buf@entry=0xa2c416e8 127.0.0.1, n=n@entry=1032, 
fp=0x0) at iofgets_u.c:53
53  iofgets_u.c: Bestand of map bestaat niet.
(gdb) bt
#0  __GI_fgets_unlocked (buf=buf@entry=0xa2c416e8 127.0.0.1, n=n@entry=1032, 
fp=0x0) at iofgets_u.c:53
#1  0xafe0d3ec in get_contents (stream=optimized out, len=1032, 
linebuf=0xa2c416e8 127.0.0.1) at nss_files/files-XXX.c:201
#2  internal_getent (result=result@entry=0xa2c4166c, 
buffer=buffer@entry=0xa2c416d0 \177, buflen=buflen@entry=1056, 
errnop=errnop@entry=0xa2c41bf0, 
herrnop=herrnop@entry=0xa2c41bfc, af=af@entry=0, flags=flags@entry=0) at 
nss_files/files-XXX.c:246
#3  0xafe0e445 in _nss_files_gethostbyname4_r (name=0xaf121770 
idsync.rlcdn.com, pat=0xa2c41bec, buffer=0xa2c416d0 \177, 
buflen=buflen@entry=1056, errnop=0xa2c41bf0, 
herrnop=0xa2c41bfc, ttlp=ttlp@entry=0x0) at nss_files/files-hosts.c:402
#4  0xb7edf368 in gaih_inet (name=optimized out, service=optimized out, 
req=req@entry=0xa2c41dec, pai=pai@entry=0xa2c41cb0, 
naddrs=naddrs@entry=0xa2c41cbc)
at ../sysdeps/posix/getaddrinfo.c:850
#5  0xb7ee114b in __GI_getaddrinfo (name=optimized out, service=optimized 
out, hints=0xa2c41dec, pai=0xa2c41dd8) at ../sysdeps/posix/getaddrinfo.c:2406
#6  0xb4ebdbba in ?? () from /usr/lib/i386-linux-gnu/libQtNetwork.so.4
#7  0xb4eb2ab1 in ?? () from /usr/lib/i386-linux-gnu/libQtNetwork.so.4
#8  0xb6467f07 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#9  0xb6474b6f in ?? () 

Re: [Gambas-user] Install from Ubuntu repo - several issues

2014-12-12 Thread Willy Raets
On vr, 2014-12-12 at 05:54 -0800, LVDave wrote:
 Having used to use MSVisualBasic many moons ago, I wanted to see how close
 Gambas was to VB. Since I'm on Ubuntu 14.04, I installed Gambas from the
 Ubuntu repository. Everything installed with no errors, but when I attempt
 to open any one of the sample projects, I get a dialog box saying this
 project seems to be already opened, opening the same project twice can lead
 to data loss...If I go ahead and reopen the sample, it appears to load
 ok, but then if I try to run it, I get a dialog box saying the program has
 returned the value of 1... As I said this occurs with all of the sample
 programs..
 
 What am I doing wrong??

As far as I know Ubuntu 14.04 official repository has a very outdated
Gambas 3.1.1.

Since Gambas 3.1.1, many bugs have been fixed and the latest stable
version is Gambas 3.6.2

I suggest you first remove the current install (if it is Gambas 3.1.1)
and next install the most recent stable Gambas 3.6.2 from the
Gambas-team PPA.

The instructions to install latest stable from binaries (PPA) are in the
Gambas wiki:
http://gambaswiki.org/wiki/install/ubuntu#t2

If after all this you still have problems with the examples just let us
know.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Similar problem compiling 3.6.2

2014-11-13 Thread Willy Raets
On do, 2014-11-13 at 14:22 +0100, CJ wrote:
 Just tried to compile 3.6.2 but get a similar error
 like before but this time in gb.mime, any clues?
 
 ...
 make[4]: Leaving directory `/home/gambas3-3.6.2/gb.net.curl'
 make[3]: Leaving directory `/home/gambas3-3.6.2/gb.net.curl'
 make[2]: Leaving directory `/home/gambas3-3.6.2/gb.net.curl'
 Making all in gb.mime
 make[2]: Entering directory `/home/gambas3-3.6.2/gb.mime'
 make  all-recursive
 make[3]: Entering directory `/home/gambas3-3.6.2/gb.mime'
 Making all in src
 make[4]: Entering directory `/home/gambas3-3.6.2/gb.mime/src'
   CC gb_mime_la-main.lo
 In file included from main.c:28:
 main.h:31:18: error: glib.h: No such file or directory
 main.h:32:25: error: gmime/gmime.h: No such file or directory
 In file included from c_mimemessage.h:30,
  from main.c:31:
 c_mimepart.h:39: error: expected specifier-qualifier-list before
 'GMimeObject'
 c_mimepart.h:43: error: expected ')' before '*' token
 In file included from main.c:31:
 c_mimemessage.h:40: error: expected specifier-qualifier-list before
 'GMimeMessage'
 c_mimemessage.h:46: error: expected ')' before '*' token
 main.c: In function 'GB_INIT':
 main.c:49: warning: implicit declaration of function 'g_mime_init'
 main.c: In function 'GB_EXIT':
 main.c:56: warning: implicit declaration of function 'g_mime_shutdown'
 make[4]: *** [gb_mime_la-main.lo] Error 1
 make[4]: Leaving directory `/home/gambas3-3.6.2/gb.mime/src'
 make[3]: *** [all-recursive] Error 1
 make[3]: Leaving directory `/home/gambas3-3.6.2/gb.mime'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory `/home/gambas3-3.6.2/gb.mime'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/gambas3-3.6.2'
 make: *** [all] Error 2
 root@raspi-dev:/home/gambas3-3.6.2#
 
 Full logfile attached.
 
 /CJ

From your log:
|| Unable to met pkg-config requirement: gmime-2.6
|| But gmime 2.4 has been detected!

Seems you need a higher version of gmine (2.6 instead of 2.4)

If you are running Raspbian you need package libgmime-2.6-dev.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem compiling trunk on Debian wheezy

2014-11-11 Thread Willy Raets
On di, 2014-11-11 at 13:06 +0100, rolf wrote:
 Hi, 
 
 I answer myself, to tell that the problem with aclocal is solved - why does 
 the package autoconf is not mentioned as a required package in the howtos?

Online Gambas wiki, does have autoconf mentioned as required package!!
Has always been there.


 
 Now I need a hint how to get gb.media compiled in wheezy - the compiler alway 
 complains about gstreamer-video - I do not find an associated package in the 
 repository.

In your log I can see gstreamer doesn't get installed, hence gb.media
will not compile.
--
Die folgenden Pakete haben verletzte Abhängigkeiten:
 gstreamer1.0-plugins-good : Hängt ab von: liborc-0.4-0 (= 1:0.4.18)
aber 1:0.4.16-2 ist installiert.
 libgstreamer-plugins-base1.0-0 : Hängt ab von: liborc-0.4-0 (=
1:0.4.18) aber 1:0.4.16-2 ist installiert.
 gstreamer1.0-plugins-base : Hängt ab von: liborc-0.4-0 (= 1:0.4.18)
aber 1:0.4.16-2 ist installiert.
--
Seems your liborc-0.4-0 version installed is to low and coming form
wheezy. I guess the gstreamer1.0 comes from wheezy-backports repo?

Simple search on Debian Package Search for liborc-0.4-0
shows that
- wheezy package is on 1:0.4.16-2 (the one installed on your system)
- wheezy-bakcports is on 1:0.4.19-1~bpo70+1 (the one you need!!)

See:
https://packages.debian.org/search?keywords=liborc-0.4-0searchon=namessuite=allsection=all

Some of the other packages that would not install (see your log) will
probably have a same kind of problem.


 
 Also jit is always disabled. 

llvm above 3.1. Again check wheezy versus wheezy-backports versions!!
Used Debian Package Search to help you out and search for any suite to
see them all.


 
 Attached is the skript I use to compile Gambas and the output of the process 
 on wheezy system with wheezy-backports activated.
 
 Any help is welcomed
 Rolf
 --
 Comprehensive Server Monitoring with Site24x7.
 Monitor 10 servers for $9/Month.
 Get alerted through email, SMS, voice calls or mobile push notifications.
 Take corrective actions from your mobile device.
 http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk
 ___ Gambas-user mailing list 
 Gambas-user@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem compiling trunk on Debian wheezy

2014-11-11 Thread Willy Raets
On di, 2014-11-11 at 14:33 +0100, Willy Raets wrote:
 On di, 2014-11-11 at 13:06 +0100, rolf wrote:
  Hi, 
  
  I answer myself, to tell that the problem with aclocal is solved - why does 
  the package autoconf is not mentioned as a required package in the howtos?
 
 Online Gambas wiki, does have autoconf mentioned as required package!!
 Has always been there.
 
 
  
  Now I need a hint how to get gb.media compiled in wheezy - the compiler 
  alway 
  complains about gstreamer-video - I do not find an associated package in 
  the 
  repository.
 
 In your log I can see gstreamer doesn't get installed, hence gb.media
 will not compile.
 --
 Die folgenden Pakete haben verletzte Abhängigkeiten:
  gstreamer1.0-plugins-good : Hängt ab von: liborc-0.4-0 (= 1:0.4.18)
 aber 1:0.4.16-2 ist installiert.
  libgstreamer-plugins-base1.0-0 : Hängt ab von: liborc-0.4-0 (=
 1:0.4.18) aber 1:0.4.16-2 ist installiert.
  gstreamer1.0-plugins-base : Hängt ab von: liborc-0.4-0 (= 1:0.4.18)
 aber 1:0.4.16-2 ist installiert.
 --
 Seems your liborc-0.4-0 version installed is to low and coming form
 wheezy. I guess the gstreamer1.0 comes from wheezy-backports repo?
 
 Simple search on Debian Package Search for liborc-0.4-0
 shows that
 - wheezy package is on 1:0.4.16-2 (the one installed on your system)
 - wheezy-bakcports is on 1:0.4.19-1~bpo70+1 (the one you need!!)
 
 See:
 https://packages.debian.org/search?keywords=liborc-0.4-0searchon=namessuite=allsection=all
 
 Some of the other packages that would not install (see your log) will
 probably have a same kind of problem.

A little added note:
To make sure liborc-0.4-0 gets pulled from wheezy-backports add a
preferences file to /etc/apt with this content:

Package: liborc-0.4-0
Pin: release n=wheezy-backports
Pin-Priority: 1050

Package: *
Pin: release n=wheezy
Pin-Priority: 950

Package: *
Pin: release n=wheezy-backports
Pin-Priority: -1

Or if you don't mind that wheezy-backport version get preferred you
could also do this in preferences file:

Package: *
Pin: release n=wheezy-backports
Pin-Priority: 1050

Package: *
Pin: release n=wheezy
Pin-Priority: 950

 
 
  
  Also jit is always disabled. 
 
 llvm above 3.1. Again check wheezy versus wheezy-backports versions!!
 Used Debian Package Search to help you out and search for any suite to
 see them all.
 
 
  
  Attached is the skript I use to compile Gambas and the output of the 
  process 
  on wheezy system with wheezy-backports activated.
  
  Any help is welcomed
  Rolf
  --
  Comprehensive Server Monitoring with Site24x7.
  Monitor 10 servers for $9/Month.
  Get alerted through email, SMS, voice calls or mobile push notifications.
  Take corrective actions from your mobile device.
  http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk
  ___ Gambas-user mailing list 
  Gambas-user@lists.sourceforge.net 
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem compiling trunk on Debian wheezy

2014-11-11 Thread Willy Raets
On di, 2014-11-11 at 15:26 +0100, rolf wrote:
 Hi Willy
 
  Online Gambas wiki, does have autoconf mentioned as required package!!
  Has always been there.
 I copied the packages in the Step 4 section and there is no automake as 
 package named.
 
   Now I need a hint how to get gb.media compiled in wheezy - the compiler
   alway complains about gstreamer-video - I do not find an associated
   package in the repository.
 
  In your log I can see gstreamer doesn't get installed, hence gb.media
  will not compile.
  --
  Die folgenden Pakete haben verletzte Abhängigkeiten:
   gstreamer1.0-plugins-good : Hängt ab von: liborc-0.4-0 (= 1:0.4.18)
  aber 1:0.4.16-2 ist installiert.
   libgstreamer-plugins-base1.0-0 : Hängt ab von: liborc-0.4-0 (=
  1:0.4.18) aber 1:0.4.16-2 ist installiert.
   gstreamer1.0-plugins-base : Hängt ab von: liborc-0.4-0 (= 1:0.4.18)
  aber 1:0.4.16-2 ist installiert.
  --
  Seems your liborc-0.4-0 version installed is to low and coming form
  wheezy. I guess the gstreamer1.0 comes from wheezy-backports repo?
 
  Simple search on Debian Package Search for liborc-0.4-0
  shows that
  - wheezy package is on 1:0.4.16-2 (the one installed on your system)
  - wheezy-bakcports is on 1:0.4.19-1~bpo70+1 (the one you need!!)
 
 Thanks. I installed it with aptitude install -t wheezy-backports and now it 
 works.
 
 Do you have an idea which package I need for llvm. gb.jit does not compile.

As Benoît wrote Gambas needs llvm 3.1 or higher
So on wheezy that would be: llvm-3.1-dev
https://packages.debian.org/search?suite=allsection=allarch=anysearchon=nameskeywords=llvm-3.1-dev
It is in the wheezy repository.

After you have installed the missing dependencies, remember to do the
whole:

./reconf-all
./configure -C
make
sudo make install



 
 Many thanks again
 Rolf

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem compiling trunk on Debian wheezy

2014-11-11 Thread Willy Raets
On di, 2014-11-11 at 16:43 +0100, rolf wrote:
 Hi Willy
 
   Thanks. I installed it with aptitude install -t wheezy-backports and now
   it works.
  
   Do you have an idea which package I need for llvm. gb.jit does not
   compile.
 
  As Benoît wrote Gambas needs llvm 3.1 or higher
  So on wheezy that would be: llvm-3.1-dev
  https://packages.debian.org/search?suite=allsection=allarch=anysearchon=
 nameskeywords=llvm-3.1-dev It is in the wheezy repository.
 
 As I wrote before, llvm-3.1-dev is installed and llvm-config-3.1 --version 
 gives 3.1, but it is still disabled.
 
 Many thanks for your help.
 Rolf

Open Synaptic Package Manager. Search for llvm and mark all installed
llvm packages for complete removal.
Next apply the removal.
Close Synaptic
Open terminal and install llvm-3.1-dev

Next do:
./reconf-all
./configure -C
make
sudo make install

That is all I can think of. It should compile and install gb.jit with
llvm-3.1-dev installed.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.report question

2014-10-25 Thread Willy Raets
On do, 2014-10-23 at 07:37 +0200, Fabien Bodard wrote:
 Van toi sens me en example 

I'll try to come up an example for you.
 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





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


Re: [Gambas-user] About SMTP component

2014-10-22 Thread Willy Raets
On wo, 2014-10-22 at 12:49 +0200, Jorge Carrión wrote:
 I've a problem with gambas 3.6 Smtpclient (with previous versions too).
 perhaps I don't understand very well the SMTP protocol or I don't undestand
 what some propertis of SmtpClient are, but If someone can help me I'll
 appreciate it very much:

I have added a source archive with application MailTester

1. It allows you to test mail with the settings entered in the form
fields. Note that these are saved as setings (using gb.settings) and the
password is stored in keyring (using gb.desktop) except for attachment
path.

2. It also allows you to browse for an attachment and add it to the test
mail.

3. It sends the mail to your from mail address and adds some body
content to let you know it worked.

4. If using authentication it needs Gambas 3.6 at least (as
authentication was still buggy pre 3.6)


 
 I use this function to send eMails:
 
 Public Sub enviarmail(aTo As String[], cSubject As String, cTexto As
 String, cFrom As String, Optional aAttacheds As String[], Optional bcc As
 String[])
 
 Dim SmtpC As New SmtpClient
 Dim s, fich, mime, fname As String
 
 SmtpC.debug = True
 SmtpC.host = mcomun.mailserver[host]
 SmtpC.user = mcomun.mailserver[user]
 SmtpC.password = mcomun.mailserver[password]
 SmtpC.From = cFrom
 For Each s In aTo
 SmtpC.To.Add(s)
 Next
 SmtpC.Subject = cSubject
 SmtpC.Body = cTexto
 SmtpC.Alternative = False''Not sure about this is for
 If Not IsNull(aAttacheds) Then
 For Each fich In aAttacheds
 Exec [file, -bi, fich] To mime
 mime = Left(mime, InStr(mime, ;) - 1)
 fname = Right(fich, - RInStr(fich, /))
 SmtpC.Add(File.Load(fich), mime, fname)
 Next
 Endif
 If Not IsNull(bcc) Then
 For Each s In bcc
 SmtpC.bcc.Add(s)
 Next
 Endif
 SmtpC.Encrypt = Net.SSL
 SmtpC.send
 
 End

You can test MailTester and if it works for you compare the code to
yours.

I have tested this with .png, .tar, .txt and .deb attachments and they
are all nicely added.

I also attached a screenshot of one of the test mails received.


Hope this will help.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





MailTester-0.0.2.tar.gz
Description: application/compressed-tar
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gb.report question

2014-10-22 Thread Willy Raets
Hi all,

I have a report that exists of 3 'blocks of data' that are fed by 3
different result sets from a MySql database.

All works fine as long as all result sets have data.

Now, one of the results sets CAN be empty (this is intentional and just
means that the block of data for that result set should not be shown on
the report).

This is where my trouble starts :)

The code is in the _new event of the Report.
I first do check the result (let's name it rResult) for data, but next
have no idea on how to continue

If rResult.Count = 0 Then
  'here I need to prevent the ReportLabels from having their data event
  'triggered as that leads to an error because of no result

Else
  

Endif

So, how to I get the ReportLabels belonging to the rResult to not run
their _Data event?

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] About SMTP component

2014-10-22 Thread Willy Raets
On wo, 2014-10-22 at 18:10 +0200, Jorge Carrión wrote:
 Willy, thank you for your response.
 
 With Mailtester the same situation occurs that with my function: If
 you attach a text file, it is enconded as cuoted printable (what is
 the same that no enconded as all) and the text from inside the file
 is shown under the message .Body...

I have taken a closer look and I do notice one difference between 3.5.4
and 3.6

With gb.smpt 3.5.4 I get the mail in my inbox and see a paperclip icon
indicating an attachment.

With gb.smtp 3.6 there is no longer a paperclip icon in my inbox. But
the content appears the same, and the attachment is there in the same
way as with 3.5.4 (so really attached and not part of the content as
happened with some pre 3.5.4 version, don't remember the version)

So apparently, something is different under the hood..



-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





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


Re: [Gambas-user] Upgrading to 3.6

2014-10-19 Thread Willy Raets
On zo, 2014-10-19 at 12:38 -0400, Martin McGlensey wrote:
 Benoit,
 
  
 
 Thanks for your response. From your comments I understand that I can update
 from the Gambas Team ppa as that is the one I used to install 3.5. Is that
 correct? I do not know the commands needed to uninstall 3.5. Is there a
 procedure posted for this? If I upgrade from the ppa will I now have both
 Gambas 3.5 and 3.6 or just 3.5? Sorry very new to Linux and need simple
 answers.

Since you have 3.5.4 from PPA Gambas Team you can keep it simple.
No removal needed, but you might need to do a two step install (in some
cases).

Do this:
sudo apt-get update
sudo apt-get upgrade

If before typing Y in last command you see some gambas3 packages are
kept back write their names down.

In case above is done and some package where kept back do
sudo apt-get install name package name package

This will install the last missing packages. You should now have a
working Gambas 3.6 version.


 
  
 
 Thanks for all your work on Gambas. I use it now instead of VB. Gambas is a
 much better product.

I agree on that with you :)

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] SMTP error in Gambas 3.6.0 (rev#6552)

2014-10-15 Thread Willy Raets
On wo, 2014-10-15 at 13:54 +0200, Benoît Minisini wrote:
 Le 15/10/2014 13:48, Willy Raets a écrit :
  Hi,
 
  I've been testing smpt on Gambas 3.6.0 (rev#6552).
 
  I use the exact same settings as I do in my mail client Evolution (see
  screenshot smtp-settings-evolution.png), but Gambas smtp fails with
  error:
 
  'Unable to send mail:Unable to connect to the SMTP server:EHLO command
  failed' (see attached screenshot smtp-error.png)
 
  The form shown on screenshot is part of a Gambas library that user can
  use to set their mail settings so the library can use those settings to
  send me error reports.
 
  The info filled in in the textboxes is stored in Settings and used from
  there in the code below. (see screenshot smtp-settings.png - I placed
   on real date for the screenshot, but real info was used for the
  test)
 
  This is the code for the Test button, that tests the connection, but
  returns above error:
 
  Public Sub btnTest_Click()
 
 Dim hMail As New SmtpClient
 Dim sMessage As String
 Dim iL, iE As Integer
 Dim bMailSend As Boolean
 Inc Application.Busy
 Settings.Save
 $bIsChanged = False
 Wait
 hMail.To.Add(Settings[LibGb3DevAid/mailfrom])
 hMail.From = Settings[LibGb3DevAid/mailfrom]
 hMail.Host = Settings[LibGb3DevAid/smtp]
 hMail.Port = Settings[LibGb3DevAid/port]
 If Settings[LibGb3DevAid/authenticate] = -1 Then
   hMail.User = Settings[LibGb3DevAid/user]
   hMail.Password = Settings[LibGb3DevAid/password]
 Endif
 If Not IsNull(Settings[LibGb3DevAid/encrypt]) Then
   hMail.Encrypt = Settings[LibGb3DevAid/encrypt]
 Else
   hMail.Encrypt = 0
 Endif
 hMail.Subject = (Test connection of your mail settings)
 hMail.Add(Subst((You have succesfuly send a mail using mail settings
  in application 1.), Local.DefaultAppName))
 hMail.Send
 bMailSend = True
 
 Finally
   Dec Application.Busy
   If bMailSend Then
 sMessage = Subst((Check you  1 mailbox to see if the test mail
  has been send correctly.), Settings[LibGb3DevAid/mailfrom])
 Message.Info(sMessage)
   Endif
 
 Catch
   bMailSend = False
   If Len(Error.Text)  70 Then
 iL = Int(Len(Error.Text) / 2)
 iE = InStr(Error.Text,  , iL)
 sMessage = Left(Error.Text, iE)
 sMessage = \n  Mid(Error.Text, iE + 1, Len(Error.Text) - iE)
 sMessage = (\n\nConnection test failed!!)
   Else
 sMessage = Error.Text  (\n\nConnection test failed!!)
   Endif
   Message.Info(sMessage)
   Error.Clear
 
  End
 
  It is quite important to me that this works in Gambas 3.6, so I hope it
  can be solved before final 3.6 release.
 
  If needed to help solve the problem I can make a mail address at the
  server for testing purposes.
 
 
 Yes, give me a mail address and send me a project that send a mail that 
 fails on your computer

I have made a simplified test project where you can replicate the
problem. I used the original form and code from my library and threw out
all unneeded controls and code.

I did test it again and error remains the same, so seems I have
replicated the problem in the attached project.

I will now make you a mail address on the mail server and send you all
details in a private mail.
 
 And what do you get if you set the Debug property to TRUE?
 

Forgot to try :(

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





MailTester-0.0.1.tar.gz
Description: application/compressed-tar
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Possible bug in IDE

2014-10-09 Thread Willy Raets
On do, 2014-10-09 at 01:42 +0200, Benoît Minisini wrote:
 Le 08/10/2014 23:15, T Lee Davidson a écrit :
  Confirmed with v3.5.4. Except simply opening another project with
  File-Open_project does not clear the incorrect filters. I have to Quit
  and re-launch Gambas to clear them.
 
 
  On 10/08/2014 10:53 AM, Willy Raets wrote:
  Try this at home and see what goes wrong.
  Both 3.5.4 and 3.5.90 (rev#6521) show this behaviour.
 
  1. Open a project in IDE
  2. In project browser
  - right click 'Sources'
  - select 'New'
  - select 'Module'
  - Click tab 'Existing'
  - 'Gambas modules (*.module) is the correct filter set
  3. Repeat step 2 for Class, Form and Report (if gb.report activated)
  All should be good so far and correct filters should be shown.
 
  4. In Project browser
  - right click 'Data'
  - select 'New'
  - select 'Image'
  - click tab 'Existing'
  - 'Gambas modules (*.module) is the WRONG filter set!!
  5. Repeat step 4 for HTML file, Stylesheet, Javascript file and Other
  You see what goes wrong in the filter.
  Somehow the filters of Sources are kept.
 
  No to make it even odder try this:
  1. Open ANOTHER project in IDE (important)
  2. In Project browser
  - right click 'Data'
  - select 'New'
  - select 'Image'
  - click tab 'Existing'
  - 'Images files (*.png,*jpg,..) is the correct filter set
  3. Repeat step 4 for HTML file, Stylesheet, Javascript file and Other
  All should be good so far and correct filters should be shown.
 
  4. In project browser
  - right click 'Sources'
  - select 'New'
  - select 'Module'
  - Click tab 'Existing'
  - 'Images files (*.png,*jpg,..) is the WRONG filter set!!
  5. Repeat step 2 for Class, Form and Report (if gb.report activated)
  You see what goes wrong in the filter.
  This time the filters of Data are kept.
 
  So, filters seem to depend on if you first right clicked 'Sources' or
  'Data' in the Project browser.
 
 
 
 I fixed the behaviour of that dialog in revision #6522. If you can tell 
 me if it is ok for you...
 

I can confirm it is fixed.

Thanks again.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Possible bug in IDE

2014-10-08 Thread Willy Raets
Try this at home and see what goes wrong.
Both 3.5.4 and 3.5.90 (rev#6521) show this behaviour.

1. Open a project in IDE
2. In project browser
  - right click 'Sources'
  - select 'New'
  - select 'Module'
  - Click tab 'Existing'
  - 'Gambas modules (*.module) is the correct filter set
3. Repeat step 2 for Class, Form and Report (if gb.report activated)
All should be good so far and correct filters should be shown.

4. In Project browser
  - right click 'Data'
  - select 'New'
  - select 'Image'
  - click tab 'Existing'
  - 'Gambas modules (*.module) is the WRONG filter set!!
5. Repeat step 4 for HTML file, Stylesheet, Javascript file and Other
You see what goes wrong in the filter.
Somehow the filters of Sources are kept.

No to make it even odder try this:
1. Open ANOTHER project in IDE (important)
2. In Project browser
  - right click 'Data'
  - select 'New'
  - select 'Image'
  - click tab 'Existing'
  - 'Images files (*.png,*jpg,..) is the correct filter set
3. Repeat step 4 for HTML file, Stylesheet, Javascript file and Other
All should be good so far and correct filters should be shown.

4. In project browser
  - right click 'Sources'
  - select 'New'
  - select 'Module'
  - Click tab 'Existing'
  - 'Images files (*.png,*jpg,..) is the WRONG filter set!!
5. Repeat step 2 for Class, Form and Report (if gb.report activated)
You see what goes wrong in the filter.
This time the filters of Data are kept.

So, filters seem to depend on if you first right clicked 'Sources' or
'Data' in the Project browser.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Possible bug in IDE

2014-10-08 Thread Willy Raets
On do, 2014-10-09 at 01:42 +0200, Benoît Minisini wrote:
 Le 08/10/2014 23:15, T Lee Davidson a écrit :
  Confirmed with v3.5.4. Except simply opening another project with
  File-Open_project does not clear the incorrect filters. I have to Quit
  and re-launch Gambas to clear them.
 
 
  On 10/08/2014 10:53 AM, Willy Raets wrote:
  Try this at home and see what goes wrong.
  Both 3.5.4 and 3.5.90 (rev#6521) show this behaviour.
 
  1. Open a project in IDE
  2. In project browser
  - right click 'Sources'
  - select 'New'
  - select 'Module'
  - Click tab 'Existing'
  - 'Gambas modules (*.module) is the correct filter set
  3. Repeat step 2 for Class, Form and Report (if gb.report activated)
  All should be good so far and correct filters should be shown.
 
  4. In Project browser
  - right click 'Data'
  - select 'New'
  - select 'Image'
  - click tab 'Existing'
  - 'Gambas modules (*.module) is the WRONG filter set!!
  5. Repeat step 4 for HTML file, Stylesheet, Javascript file and Other
  You see what goes wrong in the filter.
  Somehow the filters of Sources are kept.
 
  No to make it even odder try this:
  1. Open ANOTHER project in IDE (important)
  2. In Project browser
  - right click 'Data'
  - select 'New'
  - select 'Image'
  - click tab 'Existing'
  - 'Images files (*.png,*jpg,..) is the correct filter set
  3. Repeat step 4 for HTML file, Stylesheet, Javascript file and Other
  All should be good so far and correct filters should be shown.
 
  4. In project browser
  - right click 'Sources'
  - select 'New'
  - select 'Module'
  - Click tab 'Existing'
  - 'Images files (*.png,*jpg,..) is the WRONG filter set!!
  5. Repeat step 2 for Class, Form and Report (if gb.report activated)
  You see what goes wrong in the filter.
  This time the filters of Data are kept.
 
  So, filters seem to depend on if you first right clicked 'Sources' or
  'Data' in the Project browser.
 
 
 
 I fixed the behaviour of that dialog in revision #6522. If you can tell 
 me if it is ok for you...

I'll check as soon as Daily builds PPA is updated to rev. #6522 and
report back.

Thanks.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] help generation for local classes

2014-10-07 Thread Willy Raets
On di, 2014-10-07 at 15:26 +1030, B Bruen wrote:
 I am not sure where this crept in but...

See this thread and you will now where it crept in:
http://sourceforge.net/p/gambas/mailman/gambas-user/thread/1411158266.2876.13.camel%40Attilla/#msg32850004

 
 The IDE help browser now deems local classes to be non-creatable if they do 
 not contain a _new() method.
 pic attached
 
Well, is the class creatable then, if it has no _new() method?

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Question about making packages

2014-10-07 Thread Willy Raets
On di, 2014-10-07 at 11:00 +0200, Rolf-Werner Eilert wrote:
 Just for fun I tried to make an install package out of one of my 
 projects. Everything ran flawlessly, now there is an .rpm of the 
 binaries and an .rpm of the sources.
 
 If I was another user and would download and install the binary package, 
 would Gambas or the interpreter be installed automatically? Would the 
 dependencies be observed, or would I have to care for this myself?
 
 I tried to use the file browser and just clicked on the .rpm. 
 Installation was stopped because it didn't find a Gambas3 (I have a 
 self-compiled version running).
 
 There is one project which might be nice to distribute for our students, 
 in case they use Linux. That's why I ask.
 
 Rolf

Rolf,
the .rpm packages will only install if dependencies are met. This is
something the distro's package installers normally check.

Dependencies are only met, if a repository is know to you distro that
can meet the dependencies by installing the gambas parts the .rpm needs.

I don't know what distro you use and thus if a recent Gambas version is
available for that distro.

I do know that recent versions of Fedora and Mageia have Gambas 3.5.x in
their repositories, so there installing the .rmp should work (presuming
you did NOT make the .rpm with Gambas 3.5.90).


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Question on ComboBox

2014-10-07 Thread Willy Raets
When using a combobox, with a lot of elements in there you get a screen
full. To me this is NOT very user friendly.



I was wondering why it is not allowed to set the MaxLength property for
a list that is Read Only?
Is there a specific reason, or can it be implemented  into Gambas for
Read Only lists as well?

I want users to select from a ComboBox, pre filled with data from a
table (a long list and NOT very user friendly to see on screen). I do
not want them to be able to type their own stuff into the combobox , so
I need to set it to Read Only.


Problem now is that MaxLength property is no longer possible to set!!

So, it is either:
- a short list (desired) and user can input into combobox (not desired)
- a long list (not desired) and user can't input into combobox (desired)






-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Question on ComboBox

2014-10-07 Thread Willy Raets
On di, 2014-10-07 at 11:57 +0200, Willy Raets wrote:
 When using a combobox, with a lot of elements in there you get a screen
 full. To me this is NOT very user friendly.
 
 
 
 I was wondering why it is not allowed to set the MaxLength property for
 a list that is Read Only?
 Is there a specific reason, or can it be implemented  into Gambas for
 Read Only lists as well?
 
 I want users to select from a ComboBox, pre filled with data from a
 table (a long list and NOT very user friendly to see on screen). I do
 not want them to be able to type their own stuff into the combobox , so
 I need to set it to Read Only.
 
 
 Problem now is that MaxLength property is no longer possible to set!!
 
 So, it is either:
 - a short list (desired) and user can input into combobox (not desired)
 - a long list (not desired) and user can't input into combobox (desired)
 
My message accidentally got send when editing it.
I still wanted to add this:

I know the length of the list of ComboBox was discussed here on the
mailing list recently (like a week or so ago) and suggestions like
create your own ComboBox where suggested.

But now I stumble into a situation where it becomes a problem to me too,
so hence the question.

Would it not be more logical that Gambas IDE supports limiting the
length of the list (read only or not) out of the box (unless there are
of course problems with the underlying toolkit to get the job done)?

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Question on ComboBox

2014-10-07 Thread Willy Raets
On di, 2014-10-07 at 13:39 +0200, Benoît Minisini wrote:
 Le 07/10/2014 12:13, Willy Raets a écrit :
  On di, 2014-10-07 at 11:57 +0200, Willy Raets wrote:
  When using a combobox, with a lot of elements in there you get a screen
  full. To me this is NOT very user friendly.
 
 
 
  I was wondering why it is not allowed to set the MaxLength property for
  a list that is Read Only?
  Is there a specific reason, or can it be implemented  into Gambas for
  Read Only lists as well?
 
  I want users to select from a ComboBox, pre filled with data from a
  table (a long list and NOT very user friendly to see on screen). I do
  not want them to be able to type their own stuff into the combobox , so
  I need to set it to Read Only.
 
 
  Problem now is that MaxLength property is no longer possible to set!!
 
  So, it is either:
  - a short list (desired) and user can input into combobox (not desired)
  - a long list (not desired) and user can't input into combobox (desired)
 
  My message accidentally got send when editing it.
  I still wanted to add this:
 
  I know the length of the list of ComboBox was discussed here on the
  mailing list recently (like a week or so ago) and suggestions like
  create your own ComboBox where suggested.
 
  But now I stumble into a situation where it becomes a problem to me too,
  so hence the question.
 
  Would it not be more logical that Gambas IDE supports limiting the
  length of the list (read only or not) out of the box (unless there are
  of course problems with the underlying toolkit to get the job done)?
 
 
 The ComboBox look and behaviour is entirely managed by the GUI toolkit 
 and theme. Most of GTK+ theme has this weird behaviour with ComboBox. 
 Qt4 don't, unless you use the QGtk widget theme that encapsulates a GTK+ 
 theme inside a QT one.

That explains a lot, as I was using gb.qt4, but the widget theme is
indeed QGtk.

 
 In other words, Gambas cannot do anything against that, unless you 
 rewrite your own ComboBox entirely in Gambas.
 
 I will try to do that after the 3.6 release to see if it is possible.

I'll be looking forward to that :)

Thank you

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Possible bug gb.gtk in Gambas 3.5.90

2014-10-06 Thread Willy Raets
On ma, 2014-10-06 at 02:41 +0200, Benoît Minisini wrote:
 Le 05/10/2014 23:11, Willy Raets a écrit :
  Hi,
 
  I noticed that with Gambas 3.5.90, the TextBox and TextArea do not
  accept input from keyboard with gb.gtk on LXDE. It works fine with
  gb.qt4.
  I haven't noticed this problem on other desktops (even LXDE) but that
  was all with Gambas 3.5.x.
  It does not occur on Gambas 3.5.4 on Lubuntu 12.04 - LXDE 0.5.8 with
  default theme after fresh install.
 
  Problem is on Gambas 3.5.90 on Lubuntu 14.04 - LXDE 0.6.1 with default
  theme after fresh install.
 
  Don't know if the problem is 3.5.90 related or LXDE 0.6.1
 
  [System]
  Gambas=3.5.90 (rev #6516)
  OperatingSystem=Linux
  Kernel=3.13.0-36-generic
  Architecture=x86
  Distribution=Ubuntu 14.04.1 LTS
  Desktop=LXDE
  Theme=QGtk
  Language=nl_NL.UTF-8
  Memory=1002M
  [Libraries]
  Cairo=libcairo.so.2.11301.0
  Curl=libcurl.so.4.3.0
  DBus=libdbus-1.so.3.7.6
  GStreamer=libgstreamer-0.10.so.0.30.0
  GStreamer=libgstreamer-1.0.so.0.204.0
  GTK+3=libgtk-3.so.0.1000.8
  GTK+=libgtk-x11-2.0.so.0.2400.23
  OpenGL=libGL.so.1.2.0
  Poppler=libpoppler.so.44.0.0
  Qt4=libQtCore.so.4.8.6
  SDL=libSDL-1.2.so.0.11.4
 
 
 
 I have just installed lxde on my Ubuntu 14.04, but I didn't succeed in 
 reproducing what you are talking about. Apparently it works on my 
 configuration.

Did you install Lubuntu 14.04 or Ubuntu 14.04 with LXDE?
My problem is on Lubuntu 14.04 with LXDE 0.6.1
Currently on Gambas 3.5.90 (rev #6519)

 
 Can you give the following details:
 
 - A little project example.

Attached. BTW, I noticed ValueBox isn't working either.

 
 - Which GTK+ theme do you use?

Lubuntu-Default (see attached screenshot).
I tried with 3 other themes as well (Industrial, Lubuntu-dark-panel and
Mist), but none of them made input possible.

Changing from gb.gtk to gb.gtk3 and no input possible as with gb.gtk.
Changing from gb.gtk to gb.qt4 and all works as should.

 
 - Which input method do you use? Use the TextBox or TextArea popup menu 
 for that.

Keyboard input is impossible.
I did notice that with the popup menu I can paste data into TextBox,
TextArea and ValueBox.
I can also paste data into the controls with keyboard shortcuts (CTRL +
V). That all seems to work.

When I input from keyboard, there is no error generated. Nothing
happens, that is all.

 
 Thanks.
 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





TextBoxText-0.0.1.tar.gz
Description: application/compressed-tar
--
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Possible bug gb.gtk in Gambas 3.5.90

2014-10-05 Thread Willy Raets
Hi,

I noticed that with Gambas 3.5.90, the TextBox and TextArea do not
accept input from keyboard with gb.gtk on LXDE. It works fine with
gb.qt4.
I haven't noticed this problem on other desktops (even LXDE) but that
was all with Gambas 3.5.x. 
It does not occur on Gambas 3.5.4 on Lubuntu 12.04 - LXDE 0.5.8 with
default theme after fresh install.

Problem is on Gambas 3.5.90 on Lubuntu 14.04 - LXDE 0.6.1 with default
theme after fresh install.

Don't know if the problem is 3.5.90 related or LXDE 0.6.1

[System]
Gambas=3.5.90 (rev #6516)
OperatingSystem=Linux
Kernel=3.13.0-36-generic
Architecture=x86
Distribution=Ubuntu 14.04.1 LTS
Desktop=LXDE
Theme=QGtk
Language=nl_NL.UTF-8
Memory=1002M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Question on the .gitignore file

2014-09-26 Thread Willy Raets
On vr, 2014-09-26 at 19:09 +0200, Benoît Minisini wrote:
 Le 26/09/2014 17:00, Willy Raets a écrit :
  Hi,
 
  At work I have been playing with setting up a git repository on a server
  to have some version control on Gambas development.
 
  Now I have seen that the Gambas (trunk version) default makes
  a .gitignore file, witch is a very handy thing when working with git.
 
  I was wondering what is the use of ignoring the language .pot files
  (.lang/*.pot)?
 
  I mean if I'm working on a local clone (lets say AClone) of the main git
  repository on the server and I would add a new form, in a translatable
  project, a .pot file would be generated. These are to my understanding
  the .po template files.
 
  After an add and commit of working directory into origin (AClone on the
  local machine) and next pushing it to the server, it would ignore
  these .pot files.
 
  If someone (let say a translator) now clones the server to his local
  machine (lets say B), there would be no .pot file for the new form, so
  no template to translate.
  Could he do translations (in BClone)? Will the IDE generate a new .pot
  file the moment the translator (in BClone) would open the Translation
  form?
 
  If it does, I have no more questions and all is okay.
 
  If not the translator could not do translations for the new form and
  thus the .pot files should not be ignored in .gitignore
 
  Just wondering?
 
 
 By principle, I don't put any file that is generated in subversion, git, 
 or any version control system. Which is the case with *.pot files, that 
 are generated by the compiler (with the bytecode files stored in the 
 '.gambas' directory, that are not put into version control too).

Okay, if the .pot files are generated by compiler then they are there
when needed and all should be okay.

 
 When you open the translation dialog, the project is compiled, so 
 normally you should not have any problem. And you must not, so if you 
 find something strange happening, tell me, it should be a bug.

I haven't encountered anything strange and after this explanation I'm
not expecting anything strange. But if I do, I'll of course report it
back.

Thanks for explaining.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Request for implementation

2014-09-24 Thread Willy Raets
On di, 2014-09-23 at 02:29 +0200, Benoît Minisini wrote:
 Le 22/09/2014 01:20, Willy Raets a écrit :
  Hi all,
 
  It would be nice if the translator in IDE could update some extra info
  in the translation files (.po)
 
  Example:
  #, fuzzy
  msgid 
  msgstr 
  Project-Id-Version: PACKAGE VERSION\n
  POT-Creation-Date: 2002-11-01 04:27+0100\n
  PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n
  Last-Translator: FULL NAME EMAIL@ADDRESS\n
  Language-Team: LANGUAGE l...@li.org\n
  MIME-Version: 1.0\n
  Content-Type: text/plain; charset=UTF-8\n
  Content-Transfer-Encoding: 8bit\n
 
  Po-Revision-Date could be added when saving the translation as could
  Last Translator - take name and mail from Packaging Preferences in IDE
  (if available)
  Or maybe this option should be a specific new Preference, as some maybe
  don;t want their name and mail in the po file.
 
  This way there is some kind of tracking on how recent or old
  translations are and someone to contact who has done the most recent
  translation, as it is simply added in the .po file.
 
  What do other Gambas translators or maybe soon to be translators think
  about this suggestion?
 
 
 I implemented that in revision #6503.
 
 The *.pot files header is updated by the compiler when its corresponding 
 class is compiled.
 
 The *.po files header is updated when the translation is saved to the 
 disk by the IDE translation dialog.
 
 Please report any problem!
 
 Regards,
 

I just tested the new feature and it works well
See the nl.po file committed in rev.# 6508 for the result.
Nice work.

Thanks

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Request for implementation

2014-09-23 Thread Willy Raets
On di, 2014-09-23 at 02:29 +0200, Benoît Minisini wrote:
 Le 22/09/2014 01:20, Willy Raets a écrit :
  Hi all,
 
  It would be nice if the translator in IDE could update some extra info
  in the translation files (.po)
 
  Example:
  #, fuzzy
  msgid 
  msgstr 
  Project-Id-Version: PACKAGE VERSION\n
  POT-Creation-Date: 2002-11-01 04:27+0100\n
  PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n
  Last-Translator: FULL NAME EMAIL@ADDRESS\n
  Language-Team: LANGUAGE l...@li.org\n
  MIME-Version: 1.0\n
  Content-Type: text/plain; charset=UTF-8\n
  Content-Transfer-Encoding: 8bit\n
 
  Po-Revision-Date could be added when saving the translation as could
  Last Translator - take name and mail from Packaging Preferences in IDE
  (if available)
  Or maybe this option should be a specific new Preference, as some maybe
  don;t want their name and mail in the po file.
 
  This way there is some kind of tracking on how recent or old
  translations are and someone to contact who has done the most recent
  translation, as it is simply added in the .po file.
 
  What do other Gambas translators or maybe soon to be translators think
  about this suggestion?
 
 
 I implemented that in revision #6503.
 
 The *.pot files header is updated by the compiler when its corresponding 
 class is compiled.
 
 The *.po files header is updated when the translation is saved to the 
 disk by the IDE translation dialog.
 
 Please report any problem!
 
 Regards,
 

Great and thank you.

I'll test as soon as daily PPA is at this revision and report back.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Installation package(s)

2014-09-23 Thread Willy Raets
On di, 2014-09-23 at 04:59 -0700, Charlie wrote:
 Thanks for the reply but I am still confused. I have tried a few of the .deb
 files but they don't seem to work so which one?
 
 control_1.0.4-0ubuntu1_all.deb
 control_1.0.4-0ubuntu1_amd64.changes
 control_1.0.4-0ubuntu1.diff.gz
 control_1.0.4-0ubuntu1.dsc
 control_1.0.4.orig.tar.gz
 control-gtk_1.0.4-0ubuntu1_all.deb
 control-gtk_1.0.4-0ubuntu1_amd64.changes
 control-gtk_1.0.4-0ubuntu1.dsc
 control-gtk_1.0.4-0ubuntu1.tar.gz
 control-qt4_1.0.4-0ubuntu1_all.deb
 control-qt4_1.0.4-0ubuntu1_amd64.changes
 control-qt4_1.0.4-0ubuntu1.dsc
 control-qt4_1.0.4-0ubuntu1.tar.gz
 
Hi Charlie,

You have this many packages because your project uses gb.gui.

When you use gb.gui the packager will also make gb.gtk and gb.qt4
packages. That is why you have this many packages.

Use the control_1.0.4-0ubuntu1_all.deb to install. It should be the
biggest in size compared to the two other .debs (being
control-gtk_1.0.4-0ubuntu1_all.deb and
control-qt4_1.0.4-0ubuntu1_all.deb)


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Installation package(s)

2014-09-23 Thread Willy Raets
On di, 2014-09-23 at 15:34 +0200, Benoît Minisini wrote:
 Le 23/09/2014 15:20, Willy Raets a écrit :
  On di, 2014-09-23 at 04:59 -0700, Charlie wrote:
  Thanks for the reply but I am still confused. I have tried a few of the 
  .deb
  files but they don't seem to work so which one?
 
  control_1.0.4-0ubuntu1_all.deb
  control_1.0.4-0ubuntu1_amd64.changes
  control_1.0.4-0ubuntu1.diff.gz
  control_1.0.4-0ubuntu1.dsc
  control_1.0.4.orig.tar.gz
  control-gtk_1.0.4-0ubuntu1_all.deb
  control-gtk_1.0.4-0ubuntu1_amd64.changes
  control-gtk_1.0.4-0ubuntu1.dsc
  control-gtk_1.0.4-0ubuntu1.tar.gz
  control-qt4_1.0.4-0ubuntu1_all.deb
  control-qt4_1.0.4-0ubuntu1_amd64.changes
  control-qt4_1.0.4-0ubuntu1.dsc
  control-qt4_1.0.4-0ubuntu1.tar.gz
 
  Hi Charlie,
 
  You have this many packages because your project uses gb.gui.
 
  When you use gb.gui the packager will also make gb.gtk and gb.qt4
  packages. That is why you have this many packages.
 
  Use the control_1.0.4-0ubuntu1_all.deb to install. It should be the
  biggest in size compared to the two other .debs (being
  control-gtk_1.0.4-0ubuntu1_all.deb and
  control-qt4_1.0.4-0ubuntu1_all.deb)
 
 
 
 No!
 
 You have to install either the 'control-gtk_1.0.4-0ubuntu1_all.deb' or 
 the 'control-qt4_1.0.4-0ubuntu1_all.deb' package, depending on which GUI 
 you want to -be able- to use. If you want to -be able- to use GTK+ and 
 QT4, you have to install both packages.
 
 The actual GUI that will be used at runtime depends on the running 
 desktop, and if the corresponding Gambas GUI component (gb.gtk or 
 gb.qt4) is installed.
 
 These GUI packages just ensure that at least one Gambas GUI component is 
 installed, that's all.
 
 And they depends on the 'control_1.0.4-0ubuntu1_all.deb' package which 
 is your project without the GUI dependency, so that it is installed too.
 
 Regards,
 
Seems, my assumption was wrong, but I stopped using gb.gui in my
projects since Gambas 3.5.x, so that might explain it ;)

Thanks for the correction

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Installation package(s)

2014-09-23 Thread Willy Raets
On di, 2014-09-23 at 15:34 +0200, Benoît Minisini wrote:
 Le 23/09/2014 15:20, Willy Raets a écrit :
  On di, 2014-09-23 at 04:59 -0700, Charlie wrote:
  Thanks for the reply but I am still confused. I have tried a few of the 
  .deb
  files but they don't seem to work so which one?
 
  control_1.0.4-0ubuntu1_all.deb
  control_1.0.4-0ubuntu1_amd64.changes
  control_1.0.4-0ubuntu1.diff.gz
  control_1.0.4-0ubuntu1.dsc
  control_1.0.4.orig.tar.gz
  control-gtk_1.0.4-0ubuntu1_all.deb
  control-gtk_1.0.4-0ubuntu1_amd64.changes
  control-gtk_1.0.4-0ubuntu1.dsc
  control-gtk_1.0.4-0ubuntu1.tar.gz
  control-qt4_1.0.4-0ubuntu1_all.deb
  control-qt4_1.0.4-0ubuntu1_amd64.changes
  control-qt4_1.0.4-0ubuntu1.dsc
  control-qt4_1.0.4-0ubuntu1.tar.gz
 
  Hi Charlie,
 
  You have this many packages because your project uses gb.gui.
 
  When you use gb.gui the packager will also make gb.gtk and gb.qt4
  packages. That is why you have this many packages.
 
  Use the control_1.0.4-0ubuntu1_all.deb to install. It should be the
  biggest in size compared to the two other .debs (being
  control-gtk_1.0.4-0ubuntu1_all.deb and
  control-qt4_1.0.4-0ubuntu1_all.deb)
 
 
 
 No!
 
 You have to install either the 'control-gtk_1.0.4-0ubuntu1_all.deb' or 
 the 'control-qt4_1.0.4-0ubuntu1_all.deb' package, depending on which GUI 
 you want to -be able- to use. If you want to -be able- to use GTK+ and 
 QT4, you have to install both packages.
 
 The actual GUI that will be used at runtime depends on the running 
 desktop, and if the corresponding Gambas GUI component (gb.gtk or 
 gb.qt4) is installed.
 
 These GUI packages just ensure that at least one Gambas GUI component is 
 installed, that's all.
 
 And they depends on the 'control_1.0.4-0ubuntu1_all.deb' package which 
 is your project without the GUI dependency, so that it is installed too.
 
 Regards,
 

A question (with gb.gtk3 component on mind):
Will the future 'make installation packager' make a gtk3 package as well
for a gb.gui project?

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] DateBox popup transparency issue

2014-09-23 Thread Willy Raets
On di, 2014-09-23 at 18:36 +0200, Benoît Minisini wrote:
 Le 23/09/2014 17:46, Tobias Boege a écrit :
  Hi,
 
  someone reported an issue with DateBox's chooser popup. After 
  double-clicking
  on a date, the popup would stay halfways transparent and flicker according 
  to
  the mouse movements. The attached screenshot kind of shows this. Project is
  also attached.
 
  After it didn't happen on my system, we found out that replacing gb.gui with
  gb.qt4 fixed the symptom. His system:
 
  [System]
  Gambas=3.5.4
  OperatingSystem=Linux
  Kernel=3.13.0-36-generic
  Architecture=x86_64
  Distribution=Ubuntu 14.04.1 LTS
  Desktop=GNOME
  Theme=QGtk
  Language=en_US.UTF-8
  Memory=16030M
  [Libraries]
  Cairo=libcairo.so.2.11301.0
  Curl=libcurl.so.4.3.0
  DBus=libdbus-1.so.3.7.6
  GStreamer=libgstreamer-0.10.so.0.30.0
  GStreamer=libgstreamer-1.0.so.0.204.0
  GTK+=libgtk-x11-2.0.so.0.2400.23
  OpenGL=libGL.so.1.2.0
  Poppler=libpoppler.so.44.0.0
  Qt4=libQtCore.so.4.8.6
  SDL=libSDL-1.2.so.0.11.4
 
  Regards,
  Tobi
 
 
 I guess this is an Unity thing... By the way, it detects the desktop as 
 being Gnome. If someone knows a way to detect that it is actually Unity.

Private $sUnityVersion As String

Private Function Unity() As Boolean

  Dim sOutput As String
  Try Exec [unity, --version] To sOutput
  If Not (Error Or Len(sOut) = 0) Then
bUnity = True
$sUnityVersion = ExtractUnityVersion(sOutput)
Return True
  Else
Return False
  Endif


Private Function ExtractUnityVersion(TextToParse As String) As String
  
  Dim iPosB, iPosE As Integer
  iPosB = InStr(TextToParse,  , 1) + 1
  iPosE = InStr(TextToParse, \n, iPosB)
  Return Trim(Mid$(TextToParse, iPosB, iPosE - iPosB))
  
End

Important is to check this before checking for gnome!!

As far as I know it doesn't run with all window managers.
It does run with: mutter, metacity, kwin and muffin.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Request for implementation

2014-09-21 Thread Willy Raets
Hi all,

It would be nice if the translator in IDE could update some extra info
in the translation files (.po)

Example:
#, fuzzy
msgid 
msgstr 
Project-Id-Version: PACKAGE VERSION\n
POT-Creation-Date: 2002-11-01 04:27+0100\n
PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n
Last-Translator: FULL NAME EMAIL@ADDRESS\n
Language-Team: LANGUAGE l...@li.org\n
MIME-Version: 1.0\n
Content-Type: text/plain; charset=UTF-8\n
Content-Transfer-Encoding: 8bit\n

Po-Revision-Date could be added when saving the translation as could
Last Translator - take name and mail from Packaging Preferences in IDE
(if available)
Or maybe this option should be a specific new Preference, as some maybe
don;t want their name and mail in the po file.

This way there is some kind of tracking on how recent or old
translations are and someone to contact who has done the most recent
translation, as it is simply added in the .po file.

What do other Gambas translators or maybe soon to be translators think
about this suggestion?

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Willy Raets
Hi all,

I have this Gambas library.
I have made sure classes have their description (using ''' at the
beginning) and public functions/methods have their description (using ''
just before the function/method)

I have this exported class named Update.
When typing Update in an application using the library the help shows up
with info on the class Update (see Screenshot01.png)

I can correctly see my info, being:
Update provides methods for handling your application updates, version
checking,
provide online information from (rich) text files and show changelog.
This class is not creatable.

But I can also see that Gambas seems to add stuff:
This class can be used like an object by creating an hidden instance on
demand.
This class is creatable.

Now these two are a contradictions. My help info says:
This class is not creatable.
Gambas adds info:
This class is creatable.

The class Update is an exported class, but all functions and methods are
Static. (see Screenshot02.png)
No instances can be made of the class nor of it's public
functions/methods.

I noticed this in Gambas 3.5.4, had a look (in VM) at an installed
Gambas 3.5.90 (#rev.6469), but there the info is the same.

Shouldn't a class with Create static NOT show the added Gambas info on
being able to be created, or am I misunderstanding something?


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org



--
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Willy Raets
On vr, 2014-09-19 at 22:30 +0200, Tobias Boege wrote:
 On Fri, 19 Sep 2014, Willy Raets wrote:
  Hi all,
  
  I have this Gambas library.
  I have made sure classes have their description (using ''' at the
  beginning) and public functions/methods have their description (using ''
  just before the function/method)
  
  I have this exported class named Update.
  When typing Update in an application using the library the help shows up
  with info on the class Update (see Screenshot01.png)
  
  I can correctly see my info, being:
  Update provides methods for handling your application updates, version
  checking,
  provide online information from (rich) text files and show changelog.
  This class is not creatable.
  
  But I can also see that Gambas seems to add stuff:
  This class can be used like an object by creating an hidden instance on
  demand.
  This class is creatable.
  
  Now these two are a contradictions. My help info says:
  This class is not creatable.
  Gambas adds info:
  This class is creatable.
  
  The class Update is an exported class, but all functions and methods are
  Static. (see Screenshot02.png)
  No instances can be made of the class nor of it's public
  functions/methods.
  
  I noticed this in Gambas 3.5.4, had a look (in VM) at an installed
  Gambas 3.5.90 (#rev.6469), but there the info is the same.
  
  Shouldn't a class with Create static NOT show the added Gambas info on
  being able to be created, or am I misunderstanding something?
  
 
 I think you can instantiate your class, even if everything is static in
 there and you have Create Static set -- the instance you get from New would
 just be rather useless.

I guess it could, but as _new() isn't even in the code it would not be
very useful. So, from the point of view of a developer using the library
the added gambas info is misleading at least and in contradiction.

I'm trying to tell them to to instantiate as it is useless. Gambas added
info tells the opposite.

This is what wiki says on the subject of a static class:

1.1. Classes



A static class is a class whose all members are static (see below). In
Gambas, a static class is also named a module.

A static class cannot be instantiated: it would create an object with no
dynamic variable, which is useless.

Source: http://gambaswiki.org/wiki/doc/object-model

  (IIRC I tried that a few days ago: I tried to create
 an object of a module, and it worked!) The only thing which would forbid
 instantiation is the Create Private keyword.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Willy Raets
On za, 2014-09-20 at 00:09 +0200, Benoît Minisini wrote:
 Le 19/09/2014 22:30, Tobias Boege a écrit :
  On Fri, 19 Sep 2014, Willy Raets wrote:
  Hi all,
 
  I have this Gambas library.
  I have made sure classes have their description (using ''' at the
  beginning) and public functions/methods have their description (using ''
  just before the function/method)
 
  I have this exported class named Update.
  When typing Update in an application using the library the help shows up
  with info on the class Update (see Screenshot01.png)
 
  I can correctly see my info, being:
  Update provides methods for handling your application updates, version
  checking,
  provide online information from (rich) text files and show changelog.
  This class is not creatable.
 
  But I can also see that Gambas seems to add stuff:
  This class can be used like an object by creating an hidden instance on
  demand.
  This class is creatable.
 
  Now these two are a contradictions. My help info says:
  This class is not creatable.
  Gambas adds info:
  This class is creatable.
 
  The class Update is an exported class, but all functions and methods are
  Static. (see Screenshot02.png)
  No instances can be made of the class nor of it's public
  functions/methods.
 
  I noticed this in Gambas 3.5.4, had a look (in VM) at an installed
  Gambas 3.5.90 (#rev.6469), but there the info is the same.
 
  Shouldn't a class with Create static NOT show the added Gambas info on
  being able to be created, or am I misunderstanding something?
 
 
  I think you can instantiate your class, even if everything is static in
  there and you have Create Static set -- the instance you get from New would
  just be rather useless. (IIRC I tried that a few days ago: I tried to create
  an object of a module, and it worked!) The only thing which would forbid
  instantiation is the Create Private keyword.
 
 
 Indeed. I removed the constraint where a class without dynamic variable 
 is not instanciable. But I don't know why I suddenly found that useful...
 
I remember it not being there (I mean the added info for a static class)
in previous Gambas version before 3.5.x

Anyway, the help info and wiki are in contradiction (see my previous
answer). Seems either one of them needs to be changed.

And since it is of no use to instantiate a static class, I would prefer
the added help info to be gone.

But I'll leave it up to you to see what is best as you have the best all
over view on the matter and maybe added it for some good reason.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Willy Raets
On za, 2014-09-20 at 01:12 +0200, Benoît Minisini wrote:
 Le 20/09/2014 01:05, Benoît Minisini a écrit :
  Le 20/09/2014 01:02, Benoît Minisini a écrit :
 
  Can you send your project? Normally the sentence This class is
  creatable is not display if you don't have a _new public method.
 
  Regards,
 
 
  Sorry, it is displayed when the help comes from the source code! I fix
  that...
 
 
 OK, it should be fixed in revision #6490.

Thanks, 

I'll check as soon as Daily Builds PPA os updated to this revision and
report back if it worked.
 
 Regards,
 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Willy Raets
On za, 2014-09-20 at 00:19 +0100, John Leake wrote:
 Thank you. Should the documentation in the wiki also be updated to
 reflect this new behaviour ?

I don't think so as the fix should make Gambas confirm the
documentation :)

Modules normally don't have the _new public method. As a matter of fact
modules are static classes.

When creating a static class yourself (so not using a module, but a
class with create static, as in my case), you normally don't implement a
_new public method either.

The goal of a static class is to provide properties, functions and
methods that can't be instantiated (including the class itself, as that
is of very little practical use).

If you want a class that can be instantiated you normally use a
non-static class. At least to my understanding of the matter.

Please correct me if I'm wrong.

 
 On 20/09/14 00:12, Benoît Minisini wrote:
  Le 20/09/2014 01:05, Benoît Minisini a écrit :
  Le 20/09/2014 01:02, Benoît Minisini a écrit :
 
  Can you send your project? Normally the sentence This class is
  creatable is not display if you don't have a _new public method.
 
  Regards,
 
 
  Sorry, it is displayed when the help comes from the source code! I fix
  that...
 
  
  OK, it should be fixed in revision #6490.
  
  Regards,
  
 
 --
 Slashdot TV.  Video for Nerds.  Stuff that Matters.
 http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Stat() Auth and Mode (misunderstanding or bug?)

2014-09-18 Thread Willy Raets
On do, 2014-09-18 at 14:15 +0200, Tobias Boege wrote:
 On Thu, 18 Sep 2014, Willy Raets wrote:
  On do, 2014-09-18 at 01:53 +0200, Beno??t Minisini wrote:
   Le 18/09/2014 01:50, Willy Raets a ??crit :
Hi all,
   
Following was brought to my attention:
   
To reproduce make a file named test in your home folder.
Create a console project in IDE with any name you like
   
Public Sub Main()
   
   Dim sPath As String
   sPath = User.Home / test
   With Stat(sPath)
 Print Auth:   .Auth
 Print Mode:   .Mode
  End With
   
End
   
Run the project.
Output is:
   
Auth: rw-r--r--
Mode: 420
   
Should mode not be 644 or do I misunderstand Stat().Mode?
   
user rw- = 6
group r-- = 4
other r-- = 4
   
   
   644 is octal. In decimal it is 420.
  
  That explains a lot and at the same time it is confusing as I got used
  to octal representation when running chmod on linux.
  
  I guess I'll have to rewire my brain when using Stat().Mode in Gambas :)
  
 
 Think of it as: Mode returns an Integer. Integers only have *values*, they
 do *not* come with specific representation information, like a number base.

Here is a function that converts a decimal to octal and returns it as an
Integer :)
Isn't that what we can do with Gambas ;)

Just copy/paste into an empty console project, run the project and sit
back and enjoy the mode looking familiar to CHMOD in linux :)

=== THE CODE 

'Function: Octal
'Description: Convert decimal to octal
'Author: W.J.L. Raets
'License: GNU - GPL version 3

Public Sub Main()

  Dim sPath As String
  sPath = User.Home
  Print Path:   sPath
  With Stat(sPath)
Print Auth:   .Auth
Print Mode:   Octal(.Mode)
  End With

Private Function Octal(Decimal As String) As Integer
  
  Dim iPos, iX, iTot As Integer
  Dim sTot As String
  iTot = 0
  If Len(Decimal)  0 Then
iPos = Val(Decimal)
For iX = 1 To Len(Decimal)
  iTot = iPos / 8 ^ (Len(Decimal) - iX)
  iPos = iPos - 8 ^ (Len(Decimal) - iX) * iTot
  sTot = iTot
Next
  Else
sTot = 0
  Endif
  Return Val(sTot)
  
End

=== END CODE 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Stat() Auth and Mode (misunderstanding or bug?)

2014-09-17 Thread Willy Raets
On do, 2014-09-18 at 01:53 +0200, Benoît Minisini wrote:
 Le 18/09/2014 01:50, Willy Raets a écrit :
  Hi all,
 
  Following was brought to my attention:
 
  To reproduce make a file named test in your home folder.
  Create a console project in IDE with any name you like
 
  Public Sub Main()
 
 Dim sPath As String
 sPath = User.Home / test
 With Stat(sPath)
   Print Auth:   .Auth
   Print Mode:   .Mode
End With
 
  End
 
  Run the project.
  Output is:
 
  Auth: rw-r--r--
  Mode: 420
 
  Should mode not be 644 or do I misunderstand Stat().Mode?
 
  user rw- = 6
  group r-- = 4
  other r-- = 4
 
 
 644 is octal. In decimal it is 420.

That explains a lot and at the same time it is confusing as I got used
to octal representation when running chmod on linux.

I guess I'll have to rewire my brain when using Stat().Mode in Gambas :)

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Planning the release of Gambas 3.6...

2014-09-15 Thread Willy Raets
On di, 2014-09-16 at 02:35 +0200, Benoît Minisini wrote:
 Le 16/09/2014 02:25, Willy Raets a écrit :
  On di, 2014-09-16 at 02:20 +0200, Benoît Minisini wrote:
  Le 16/09/2014 02:04, Willy Raets a écrit :
  On di, 2014-09-16 at 01:50 +0200, Benoît Minisini wrote:
  Hi,
 
  I plan to release Gambas 3.6 soon (not immediately).
 
  I want to release Gambas 3.6 as soon as possible, as there is a lot of
  important bug fixes in it that cannot really be backported to Gambas 3.5.
  If someone has a very important bug that is not fixed yet, or a needed
  feature that should be implement before, you must tell now.
 
  Will the gb.smtp component have the authentication fix? That is about
  the most important thing I'm waiting for.
 
 
  It's fixed in /trunk, unless you are talking about another bug I'm not
  aware of.
 
  I know it is fixed in trunk and I have tested the fix to work, but you
  wrote that gb.smtp was unfinished (as you were rewriting the component)
  and not sure it would make the 3.6 release.
  So, does it make the 3.6 release or will it be in the 3.7 release?
 
 
 In Gambas 3.6. It's fixed in /trunk, and /trunk is the next Gambas 3.6.

Great,

Thank you very much.
 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Me.close BUG

2014-09-14 Thread Willy Raets
Hi,

It came to my attention that closing a Main form with a simple Me.Close
doesn't close any other forms that still might be open.
It didn't used to be that way as far as I can remember, so it must have
sneaked in somewhere along the road.

Using Quit does close Main form and any other form that might still be
opened, but isn't advised for GUI and it also leaves some allocations
not freed. so not the way to go.

How to reproduce:
Make a project that opens another form, now close the main form using
Me.Close in event and see that only main form gets closed

Tested on Mint 13 Maya with Gambas 3.5.4 from Gambas-team stable PPA

[System]
Gambas=3.5.4
OperatingSystem=Linux
Kernel=3.2.0-68-generic
Architecture=x86
Distribution=Linux Mint 13 Maya
Desktop=MATE
Theme=QGtk
Language=en_GB.UTF-8
Memory=2446M
[Libraries]
Cairo=libcairo.so.0.0.0
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.5.8
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.1.0
GTK+=libgtk-x11-2.0.so.0.2400.10
Poppler=libpoppler.so.19.0.0
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3

Tested on Lubuntu 14.04 with Gambas 3.5.90 from Gambas-team daily builds
PPA (rev#6469 I believe)

[System]
Gambas=3.5.90
OperatingSystem=Linux
Kernel=3.13.0-33-generic
Architecture=x86
Distribution=Ubuntu 14.04.1 LTS
Desktop=LXDE
Theme=QGtk
Language=en_US.UTF-8
Memory=1002M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Me.close BUG

2014-09-14 Thread Willy Raets
On zo, 2014-09-14 at 16:23 +0200, Benoît Minisini wrote:
 Le 14/09/2014 16:05, Willy Raets a écrit :
  Hi,
 
  It came to my attention that closing a Main form with a simple Me.Close
  doesn't close any other forms that still might be open.
  It didn't used to be that way as far as I can remember, so it must have
  sneaked in somewhere along the road.
 
 This was automatic before (the first form was the main one), but this is 
 not always desirable.
 
 So now you must explicitely define which of your form is the boss, with 
 the Application.MainWindow property.


Thanks for the quick response.
Seems I've got some work to do on all my projects :)

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Firebird?

2014-09-14 Thread Willy Raets
On zo, 2014-09-14 at 16:57 +0200, Tobias Boege wrote:
 Hi,
 
 I have seen in the commit logs that gb.db.firebird does not exist anymore
 but there are traces of Firebird in the docs, among them:
 
  - http://gambaswiki.org/wiki/doc/odbc which implies that firebird can be
used through ODBC (I have no clue about that),

ODBC stands for Open Database Connectivity. Any database system
supporting ODBC can be accessed. I believe that goes for Firebird (never
ever used it, but most DBMS support it)

  - http://gambaswiki.org/wiki/install/fedora which lists some firebird
packages to install to compile Gambas,

I haven't written the compilation instructions, but do not believe that
any firebird packages are needed for Gambas installation (that might be
a historical left over from Gambas 2)
Have you encountered any firebird packages in the compilation
instructions for other distributions?

  - http://gambaswiki.org/wiki/comp/gb.db/connection/type which says we can
set Connection.Type = firebird.

I guess another historical left over.

I believe there used to be a firebird component in Gambas 2, but because
of firebird licenses not being conform GNU General Public license, it
was removed from Gambas.


 Is any of these not meant to be in the docs anymore? I will try to remove
 wrong information when I understand the situation (and install a warning on
 gb.db's page because Hans has spent a day installing and configuring
 firebird until I just found out that it may not be relevant anymore).
 

Benoît should know for sure.

 Regards,
 Tobi
 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] CTRL+A (select all) bug

2014-09-12 Thread Willy Raets
Hi,

Select all, using CTRL+A in IDE results in the last line NOT being
selected. Selection ends at the beginning of the last line.

How to reproduce:
Make sure that in the code editor (or on a text file contained in the
project data folder) the last line is NOT an empty line.
Do CTRL+A and see that selection ends at the beginning of the last line
instead of at the end. So all but last line is selected.

See attached screenshot

[System]
Gambas=3.5.4
OperatingSystem=Linux
Kernel=3.2.0-68-generic
Architecture=x86
Distribution=Linux Mint 13 Maya
Desktop=MATE
Theme=QGtk
Language=en_GB.UTF-8
Memory=2446M
[Libraries]
Cairo=libcairo.so.0.0.0
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.5.8
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.1.0
GTK+=libgtk-x11-2.0.so.0.2400.10
Poppler=libpoppler.so.19.0.0
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org



--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug: Mageia packages made by IDE do not install application icon in distro menu

2014-08-31 Thread Willy Raets
Hi all,

Lee (also on this mailinglist) did some testing of an application of
mine.
He reported that when installing the rpm he had script errors.
The application did install and had a menu entry, but no icon was
present for the entry.

When I run the .deb files on Mint icon are properly made for the distro
menu entry.

So the problem seems to be in the mageia package as made by the IDE.

This is what Lee reported back to me:

-
Running `rpm -Uvh earthshipcalc-1.0.91-1mga.noarch.rpm` as root gave me:

Preparing...  # 
[100%]
Updating / installing...
1:earthshipcalc-1.0.91-1mga
# 
[ 50%]
/var/tmp/rpm-tmp.p7FUo4: line 1: fg: no job control
warning: %post(earthshipcalc-1.0.91-1mga.noarch) scriptlet failed, exit 
status 1
Cleaning up / removing...
2:earthshipcalc-1.0.90-1mga
# 
[100%]
/var/tmp/rpm-tmp.lWAIDV: line 1: fg: no job control
warning: %postun(earthshipcalc-1.0.90-1mga.noarch) scriptlet failed, 
exit status 1


Version 1.0.90 was given a menu spot in Development-Tools. Version 
1.0.91 occupies a menu entry in Sciences which is appropriate. But, it 
still does not display its own custom icon.

I tried to find the icon with `locate Earthship` as root. I got the 
following lines at the top of the result:
/%{_iconsdir}/EarthshipCalc.png
/%{_liconsdir}/EarthshipCalc.png
/%{_miconsdir}/EarthshipCalc.png

And indeed, those directories (and the icon) are there in the system 
root directory. It seems something in the install script/process is not 
replacing those dynamic placeholders with their correct local values.
-

Some info on Lee his system:

- Architecture: i686
- Kernel: Linux
- Kernel release: 3.10.50-desktop-1.mga3
- Distribution: Mageia 3
- Distro Code name: thornicroft
- X Window Manager: KWin
- Desktop: KDE
- Gambas3 version: 3.5.4

Maybe Lee can add more info to this bug report.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to disable a select number of Tabs in a TabStrip?

2014-08-31 Thread Willy Raets
Hi all,

With TabStrip1.Enabled = True all tabs are disabled and that makes
sense.
I on the other hand, would like to disable only a few select tabs on a
TabStrip. I've tried several options, had a look at the wiki on TabStrip
and searched the mailing list, but nothing came up.

So what is the proper method of achieving this?

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to disable a select number of Tabs in a TabStrip?

2014-08-31 Thread Willy Raets
On zo, 2014-08-31 at 17:28 +0200, Tobias Boege wrote:
 On Sun, 31 Aug 2014, Willy Raets wrote:
  Hi all,
  
  With TabStrip1.Enabled = True all tabs are disabled and that makes
  sense.
  I on the other hand, would like to disable only a few select tabs on a
  TabStrip. I've tried several options, had a look at the wiki on TabStrip
  and searched the mailing list, but nothing came up.
  
  So what is the proper method of achieving this?
  
 
 TabStrip[iIndex].Enabled = False.
 
 The array accessors are often overlooked in the docs.

Yes they are, I could have know this :)

Thanks,
 
 Regards,
 Tobi
 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature suggestion: GAMBAS optional runtime auto-update

2014-08-24 Thread Willy Raets
On zo, 2014-08-24 at 15:12 -0400, Kevin Fishburne wrote:
 On 08/23/2014 09:22 AM, Willy Raets wrote:
  On vr, 2014-08-22 at 19:51 -0400, Kevin Fishburne wrote:
  In the interest of accessibility to a stable version of the GAMBAS
  runtime without requiring users to add a PPA or drop to the command
  line, I think it may be useful to add an auto-update feature or
  equivalent.
 
  Currently users have three ways to install GAMBAS: (1) Install from
  their distro's package manager, (2) add the stable or daily PPA, and (3)
  compile from source. Users who will be using GAMBAS to program will have
  no trouble using any of these methods. Users who simply need the runtime
  to use a GAMBAS application however may require a dead-simple method, as
  they could in theory be the mythical Grandmother.
 
  Another problem is that the specific build of GAMBAS packaged with many
  distros is outdated or unstable. I can create a GAMBAS application using
  the stable PPA, create an installation package, distribute it, and users
  who install it may not be able to run the program because their distro's
  GAMBAS build is too old.
  I run into the same problems, distributing my applications to simple
  users is a hell, becuase of outdated Gambas packages in the official
  repositories.
 
  I don't know the best solution to these problems, though I can think of
  some possibilities:
 
  Add an option when creating an installation package to prompt the user
  to install dependencies from the stable PPA or from source. When the
  user begins to install the package, a script will be run that prompts
  them if they'd like to install updated runtime dependencies with the
  default answer being Yes. Whether the PPA or sources are used depends on
  the option chosen when building the installation package.
  This is a bit of a chicken/egg situation.
  Example:
  You build a package in say 3.5.4 and it then should have some way to
  latest stable PPA.
 
  Say you run it on Ubuntu 12.04 running Gambas 3.1.1.
  Your 3.5.4 package will be aborted because of 3.5 dependency, so even
  the adding newer PPA wouldn't run!!
 
  What would be needed is a Gambas application written in 3.1.x named
  GambasUpdater for example that simply adds the stable repo to the
  sources.list and run an apt-get update.
 
  After this you should be able to install 3.5.x packages.
  But now you only tackled Ubuntu and Ubuntu based distro's
 
  For Debian the application would need to add jessie repo to sources.list
  and a Preferences file to make it work.
 
  I have been thinking about writing such an application so at least
  Ubuntu and Debain Gambas 3.5.x packages can be installed, as long as the
  user first installs the application GambasUpdate. Time constrains have
  kept me from doing so
 
  For other distro's (rpm based ones) I have no clue.
  But if I know what repos and how to add a repo on fedora, mageia,
  opensuse and such, it could all be done in one app.
 
  User selects distro he is running and next a recent Gambas repo gets
  added to their system, that is about all that would be needed.
 
 That is an interesting solution, although that assumes GAMBAS is already 
 1. installed on a user's system. 
 My suggestion was to have the GAMBAS 
 Installation Package (Project, Make, Installation Package) procedure, 
 which will already be targeting a specific distribution, add a script to 
 the .deb files to optionally add the PPA and update the repositories so 
 the updated dependencies will be installed instead of the stock distro 
 packages. I don't know much about the Debian package structure, but 
 surely it supports running pre/post scripts?

I wonder if when the package installer detects a dependency on Gambas
3.5, but no repo is available, it will abort the install. So I wonder if
pre install scripts would be even run?!

 The user would open the 
 .deb, click the Install button, a script would be run to add the PPA, 
 update the package list, then the .deb would install normally but with 
 access to the updated PPA dependencies. The only thing the user may be 
 required to do is enter their password and press Enter on the PPA 
 prompt, and we may be able to suppress the latter.
 
  Another possibility is to have an option when creating an installation
  package that includes the runtime dependencies of the dev's build
  environment. Instead of the package pulling dependencies from the target
  system's repositories it would simply use the included packages. I know
  that's not the Linux or GAMBAS way, but it's better than using old
  GAMBAS packages in the user's repositories that may not work at all.
  Remember, these solutions are for users that either don't know or don't
  want to know the right way to do things, they just want to run the
  program.
 
  Yet another possibility is to have an option when creating an
  installation package that would cause the execution of the installed
  application itself to check the installed runtime

Re: [Gambas-user] Feature suggestion: GAMBAS optional runtime auto-update

2014-08-23 Thread Willy Raets
On vr, 2014-08-22 at 19:51 -0400, Kevin Fishburne wrote:
 In the interest of accessibility to a stable version of the GAMBAS 
 runtime without requiring users to add a PPA or drop to the command 
 line, I think it may be useful to add an auto-update feature or 
 equivalent.
 
 Currently users have three ways to install GAMBAS: (1) Install from 
 their distro's package manager, (2) add the stable or daily PPA, and (3) 
 compile from source. Users who will be using GAMBAS to program will have 
 no trouble using any of these methods. Users who simply need the runtime 
 to use a GAMBAS application however may require a dead-simple method, as 
 they could in theory be the mythical Grandmother.
 
 Another problem is that the specific build of GAMBAS packaged with many 
 distros is outdated or unstable. I can create a GAMBAS application using 
 the stable PPA, create an installation package, distribute it, and users 
 who install it may not be able to run the program because their distro's 
 GAMBAS build is too old.

I run into the same problems, distributing my applications to simple
users is a hell, becuase of outdated Gambas packages in the official
repositories.

 
 I don't know the best solution to these problems, though I can think of 
 some possibilities:
 
 Add an option when creating an installation package to prompt the user 
 to install dependencies from the stable PPA or from source. When the 
 user begins to install the package, a script will be run that prompts 
 them if they'd like to install updated runtime dependencies with the 
 default answer being Yes. Whether the PPA or sources are used depends on 
 the option chosen when building the installation package.

This is a bit of a chicken/egg situation.
Example:
You build a package in say 3.5.4 and it then should have some way to
latest stable PPA.

Say you run it on Ubuntu 12.04 running Gambas 3.1.1.
Your 3.5.4 package will be aborted because of 3.5 dependency, so even
the adding newer PPA wouldn't run!!

What would be needed is a Gambas application written in 3.1.x named
GambasUpdater for example that simply adds the stable repo to the
sources.list and run an apt-get update.

After this you should be able to install 3.5.x packages. 
But now you only tackled Ubuntu and Ubuntu based distro's

For Debian the application would need to add jessie repo to sources.list
and a Preferences file to make it work.

I have been thinking about writing such an application so at least
Ubuntu and Debain Gambas 3.5.x packages can be installed, as long as the
user first installs the application GambasUpdate. Time constrains have
kept me from doing so

For other distro's (rpm based ones) I have no clue.
But if I know what repos and how to add a repo on fedora, mageia,
opensuse and such, it could all be done in one app.

User selects distro he is running and next a recent Gambas repo gets
added to their system, that is about all that would be needed.

 
 Another possibility is to have an option when creating an installation 
 package that includes the runtime dependencies of the dev's build 
 environment. Instead of the package pulling dependencies from the target 
 system's repositories it would simply use the included packages. I know 
 that's not the Linux or GAMBAS way, but it's better than using old 
 GAMBAS packages in the user's repositories that may not work at all. 
 Remember, these solutions are for users that either don't know or don't 
 want to know the right way to do things, they just want to run the 
 program.
 
 Yet another possibility is to have an option when creating an 
 installation package that would cause the execution of the installed 
 application itself to check the installed runtime dependencies (if any) 
 against the stable PPA's runtime dependencies and prompt the user to 
 update if there is a discrepancy. It could even add the PPA, install the 
 dependencies, then remove the PPA.
 
 Solutions requiring the automatic compilation from source would be more 
 difficult, as the target environment would need to be set up with build 
 tools first. Solutions adding a PPA would be easier assuming the target 
 environment's distribution version was supported by the PPA. I don't 
 know how reliable the solution including the developer's runtime 
 dependencies would be.
 
 IMHO for GAMBAS to properly dominate the world, installing a GAMBAS 
 program really should be as easy as double-clicking a .deb/.rpm and 
 clicking Next, Next, etc. So, is this a problem worth solving, and if 
 so, what does everything think the best solution would be?
 

I think it is worth solving and the best option would be that we get
more recent Gambas versions in the official repositories.
The second best option is writing the GambasUpdate application in an
older Gambas 3.1, so that this can be installed using the outdated
official repositories and next when run update to a non official repo
running the latest Gambas.

-- 
Kind regards,

Willy (aka gbWilly)


Re: [Gambas-user] Issue 540 in gambas: gb.net.smtp doesn't work with e.g. smtp.gmail.com, responses aren't handled properly (timing issue)

2014-08-23 Thread Willy Raets
On za, 2014-08-02 at 18:26 +0200, Alexie wrote:
 Hi Benoit,
 
 I have tested it with the TRUNK and copying in the SmtpClient code into
 the stable 3.5.3/3.5.4 and it works fine with the stable, but the same code
 signal-11 on the TRUNK. So it isn't a bug in the new SmtpClient, so best to
 revert #6410 i think.
 
 Regards,
 Alex

I had some trouble with gb.smtp as well.
The user authentication never worked (Tested on Gambas 3.4.x and 3.5.x)

Today I run an application on Gambas 3.5.90 - rev.#4616
Well the user authentication works out of the box.

So, I am hoping that the new gb.smtp component will be back ported to
Gambas 3.5 series (as that seems to be no problem according to above
post).

Is there any change this will happen?

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] libraries with svn

2014-08-13 Thread Willy Raets
On do, 2014-08-14 at 09:25 +1000, Ian Haywood wrote:
 Richard Terry and I have run into a problem
 Our project uses one library (and may use more as we hive up the
 project into logical components)
 But, it will be in different locations on our systems (mine in
 /home/ian/easygp/base.gambas, his funnily enough is
 /home/richard/easygp/base.gambas, or similar), and obviously our third
 developer (who  isn't called richard or ian) will have the same
 problem.

If you make an installation package from the library and install it on
both systems, it will install in /usr/bin.
Next open your application and change the location of the library to use
the library installed in /usr/bin
 
 each time one of us updates svn, the .project file is changed to ur
 setting, thus breaking the package for the other one.

Doing above will give same location for all in the .project file and
thus an svn update will not break the package.
 
 Is there a way to exclude changes to the project file from svn
 updates? (I know this can be done through configuring svn manually,
 which I will do, but is their an official gambas solution?)

A note from Gambas Wiki (http://gambaswiki.org/wiki/doc/library):

How and where to install a library?

When you run a project from the IDE, the libraries it uses are located
by using their absolute path, as specified in the 'Libraries' tab of the
project property dialog.

But when you run the project executable, the libraries it uses then must
be located in the same directory.

If a library is not found, then it is searched in /bin and /usr/bin as
last resort.

So, contrary to a component, a library must be packaged exactly like a
normal program, so that it is installed in a place where all project can
find it.
---

A Gambas library installed using a installation package made from
library in Gambas IDE is according to me the official Gambas solution.

Why? The installation wizard will skip menu entries and such and will
always install the library package with .gambas extension in /usr/bin.

So the installed library will always be found.

 
 Ian


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





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


[Gambas-user] A note for Gambas users on Debian or Raspian wheezy using jessie repository for installation

2014-08-12 Thread Willy Raets
Hi all,

As Gambas 3.5.4 has been made available in jessie repository about a
month ago (for both Debian and Raspbian), I have updated the
instructions to install it on wheezy using a preferences file.

Those who used a preferences file for installing Gambas 3.5.2 from
jessie on wheezy will see that upgrading to 3.5.4. will not install the
binaries  gambas3 and gambas3-gb-pdf (all the rest is updated).

To make it work the preferences file needs an update as Gambas 3.5.4 is
packaged depending on libpoppler46 instead of libpoppler44.

So the entry of libpoppler44 should be changed to:

Package: libpoppler46
Pin: release n=jessie
Pin-Priority: 1050

Now libpoppler46 needs 2 more depended packages from jessie, so two more
entries need to be added to the preferences file.

Package: libopenjpeg5
Pin: release n=jessie
Pin-Priority: 1050

Package: libtiff5
Pin: release n=jessie
Pin-Priority: 1050

Next save the preferences file, do an apt-get update and upgrade and
both gambas3 and gambas3-gb-pdf should install.

I have updated the instructions in the Gambas wiki accordingly.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





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


Re: [Gambas-user] Compiling instruction not updated

2014-07-16 Thread Willy Raets
On di, 2014-07-15 at 16:46 -0400, Pino Zollo wrote:
 Applying: On Mint 17 Mate
 
 sudo apt-get install build-essential g++ autoconf libbz2-dev
 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev
 libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev
 libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev
 libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev
 libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev
 libxtst-dev libffi-dev libqt4-dev libglew1.5-dev libimlib2-dev
 libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev
 linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
 libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.1-dev
 libalure-dev libgmp-dev
 
 as from the Gambas page

As from the Gambas page as well, the IMPORTANT note that needs to be
taken into account (on the Gambas page
(http://gambaswiki.org/wiki/install/ubuntu) , just a little below the,
by you mentioned, sudo apt-get):

Note: For trunk version you might need to install more dependencies as
new components get developed.
For more recent versions of Ubuntu you might also need higher versions
of dependencies.
For example for Trusty (14.04) you need to install llvm-3.3-dev or
llvm-3.4-dev instead of llvm-3.1-dev.
For availability of packages in your specific distribution version see A
note on package dependencies

 
 I get:
 
 
 
 Creando árbol de dependencias
 Leyendo la información de estado... Hecho
 Nota, seleccionando «libglew-dev» en lugar de «libglew1.5-dev»
 E: No se ha podido localizar el paquete llvm-3.1-dev
 E: No se pudo encontrar ningún paquete con la expresión regular
 «llvm-3.1-dev»
 
 
 
 Please which is the updated lit of libraries ?...
 
 as form ./configure -C I get:
 
 ||
 || THESE COMPONENTS ARE DISABLED:
 || - gb.jit

So installing llvm-3.4-dev or llvm-3.4-dev should get gb.jit enabled.
Installing llvm-3.1-dev doens't work on Trusty (Mint 17), but does on
Precise (Mint 13). That's why the notes are important.

 || - gb.qt4.opengl
 || - gb.qt4.webkit
 ||

Strange cause installing libqt4-dev should pull in all needed
dependencies to get both gb.qt4.opengl as gb.qt4.webkit going
See: http://packages.ubuntu.com/trusty/libqt4-dev

 
 ...at least I should have qt4 complete.
 

Yes, you should.

 Thenks
 
 Pino
 
 --
 Want fast and easy access to all the code in your enterprise? Index and
 search up to 200,000 lines of code with a free copy of Black Duck
 Code Sight - the same software that powers the world's largest code
 search on Ohloh, the Black Duck Open Hub! Try it now.
 http://p.sf.net/sfu/bds
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Compiling instruction not updated

2014-07-16 Thread Willy Raets
On wo, 2014-07-16 at 22:45 +0200, Willy Raets wrote:
 On di, 2014-07-15 at 16:46 -0400, Pino Zollo wrote:
  Applying: On Mint 17 Mate
  
  sudo apt-get install build-essential g++ autoconf libbz2-dev
  libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev
  libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev
  libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev
  libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev
  libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev
  libxtst-dev libffi-dev libqt4-dev libglew1.5-dev libimlib2-dev
  libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev
  linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
  libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.1-dev
  libalure-dev libgmp-dev
  
  as from the Gambas page
 
 As from the Gambas page as well, the IMPORTANT note that needs to be
 taken into account (on the Gambas page
 (http://gambaswiki.org/wiki/install/ubuntu) , just a little below the,
 by you mentioned, sudo apt-get):
 
 Note: For trunk version you might need to install more dependencies as
 new components get developed.
 For more recent versions of Ubuntu you might also need higher versions
 of dependencies.
 For example for Trusty (14.04) you need to install llvm-3.3-dev or
 llvm-3.4-dev instead of llvm-3.1-dev.
 For availability of packages in your specific distribution version see A
 note on package dependencies
 
  
  I get:
  
  
  
  Creando árbol de dependencias
  Leyendo la información de estado... Hecho
  Nota, seleccionando «libglew-dev» en lugar de «libglew1.5-dev»
  E: No se ha podido localizar el paquete llvm-3.1-dev
  E: No se pudo encontrar ningún paquete con la expresión regular
  «llvm-3.1-dev»
  
  
  
  Please which is the updated lit of libraries ?...
  
  as form ./configure -C I get:
  
  ||
  || THESE COMPONENTS ARE DISABLED:
  || - gb.jit
 
 So installing llvm-3.4-dev or llvm-3.4-dev should get gb.jit enabled.
 Installing llvm-3.1-dev doens't work on Trusty (Mint 17), but does on
 Precise (Mint 13). That's why the notes are important.
 
  || - gb.qt4.opengl
  || - gb.qt4.webkit
  ||
 
 Strange cause installing libqt4-dev should pull in all needed
 dependencies to get both gb.qt4.opengl as gb.qt4.webkit going
 See: http://packages.ubuntu.com/trusty/libqt4-dev
 

I just noticed on above mentioned link
http://packages.ubuntu.com/trusty/libqt4-dev that when installing
libgt4-dev, both libqt4-opengl-dev and libqtwebkit-dev  are recommended
packages and so do not get installed automatically.

So:

$ sudo apt-get install llvm-3.4-dev libqt4-opengl-dev libqtwebkit-dev

should solve your problem.

P.S. The installation instructions where last updated July 8th, so quite
recently.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3.5.4 and the Stable PPA

2014-07-12 Thread Willy Raets
On za, 2014-07-12 at 02:38 -0300, Sebastian Kulesz wrote:
 Hey! Long time no see.
 
 I got word a few hours ago that Kendek won't be maintaining the Stable PPA
 any more. Instead, he created a new PPA under the gambas-team Launchpad
 name and uploaded the current stable (3.5.3) packages so they can be
 updated by us.

I've seen his PPA has been archived and mailed him. He told me the same.

 
 The thing is, I don't have ubuntu installed in my computer as i don't need
 it to manage the Daily Builds PPA. The problem arises when trying to push
 Gambas 3.5.4 to the Stable PPA using the same method i'm using for the
 Daily Builds. To do this, i have to bisect 3 repositories to find the
 revision which corresponds to the release of the 5.* branch. Right now,
 this repositories correspond to the next release of Gambas (3.6). So, even
 if i were to do the bisection and find the working revision, the builds
 would still differ from the one Kendek made.

Could you not simply take from svn 3.5 branch, instead of picking
revisions, or am I understanding this wrong?

 
 Because of this, I decided not to package this release in the new PPA for
 now. Different package methods can introduce bugs that should not exist in
 a stable distribution.
 Don't get me wrong, with enough time, i know it can be done. But i'm
 currently studying for finals and time is really scarce.

I'm glad you are willing to take up this job, but your finals go first,
so we will be patient.:)

 
 If anybody is up for the job, please let me know. If it's not too time
 consuming i will do my best to help get it done.

I wish I knew how to package, have been reading about it and was advised
to start with simple packages. Packaging Gambas doesn't seem a good
point of start for learning how to package debs in general.


 Next week, once i'm done, i will fix the repositories to also build the
 Stable releases, but until the next major release I won't label it as
 stable. I don't want to put extra work where it is not needed.
 
 Bad news aside, this move brings the possibility for automatic Beta builds.
 This ones will be based off the current stable branch, and be updated every
 time there is a merge from trunk to backport a bugfix.
 This shortens the window of getting a fix for a stopping bug from months to
 24 hours! :)
 
Sounds promising, looking forward to it and thanks for your efforts to
get Gambas latest stable available on Ubuntu and its siblings...

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





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


[Gambas-user] Updated Ubuntu installation instructions

2014-06-19 Thread Willy Raets
Hi all,

Updated instructions to install Gambas on Ubuntu.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Requirements for compilation and installation

2014-06-19 Thread Willy Raets
Hi all,

The list with requirements for compilation and installation at
http://gambaswiki.org/wiki/install seems to be missing some components.

Could it be updated to meet the latest Gambas release?

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Requirements for compilation and installation

2014-06-19 Thread Willy Raets
On do, 2014-06-19 at 22:26 +0200, Tobias Boege wrote:
 On Thu, 19 Jun 2014, Willy Raets wrote:
  Hi all,
  
  The list with requirements for compilation and installation at
  http://gambaswiki.org/wiki/install seems to be missing some components.
  
  Could it be updated to meet the latest Gambas release?
  
 
 As far as it concerns me:
 
  - gb.ncurses and gb.openssl are listed,
  - gb.data and gb.inotify do not have any requirements.
 
 I think components without requirements don't need to be listed, no?

I agree Tobi, no requirements no need to list them.

I have recently seen gb.gtk3 appear as a component and it has different
requirements as gb,gtk, but is not listed in the requirements for
compilation and installation, so I had to do some investigations myself,
to get it compiled.

Having the requirements listed makes the search for the proper
dependencies for a specific distribution a little easier :)

Or maybe the list only meant for stable versions and not for trunk?

 
 Regards,
 Tobi
 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Requirements for compilation and installation

2014-06-19 Thread Willy Raets
On do, 2014-06-19 at 22:50 +0200, Willy Raets wrote:
 On do, 2014-06-19 at 22:26 +0200, Tobias Boege wrote:
  On Thu, 19 Jun 2014, Willy Raets wrote:
   Hi all,
   
   The list with requirements for compilation and installation at
   http://gambaswiki.org/wiki/install seems to be missing some components.
   
   Could it be updated to meet the latest Gambas release?
   
  
  As far as it concerns me:
  
   - gb.ncurses and gb.openssl are listed,
   - gb.data and gb.inotify do not have any requirements.
  
  I think components without requirements don't need to be listed, no?
 
 I agree Tobi, no requirements no need to list them.
 
 I have recently seen gb.gtk3 appear as a component and it has different
 requirements as gb,gtk, but is not listed in the requirements for
 compilation and installation, so I had to do some investigations myself,
 to get it compiled.
 
 Having the requirements listed makes the search for the proper
 dependencies for a specific distribution a little easier :)
 
 Or maybe the list only meant for stable versions and not for trunk?
 

gb.openal is another one missing requirements.

Well, I guess we all experience that developing is more fun than
documenting our developments :)

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] GamBOS Alpha 3 released

2014-05-24 Thread Willy Raets
On vr, 2014-05-23 at 17:04 -0700, Randall Morgan wrote:
 Hi Willy,
 
 
 You may want to check out the free advertising available at
 www.gambasmag.com to help promote GamBOS.

I will have a look.

  Infact, one of the articles for the first issue (due to be released
 Jul, 1st, 2014) introduces GamBOS and shows how to install it on
 Windows using VirtualBox.

As a matter of fact, Alpha 3 comes with an VirtualBox exported OVA file
(1 GB in size), so installing it into VirtualBox is a matter of
importing the OVA.

That should make life easier and it should work on Windows as well
(although I still need to test that.)

  If interested, see advertising under Submissions on the main menu.
 Currently ads are free if they follow the size limitation given for
 free and public service ads.

I'll check it out.

Thanks


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] GamBOS Alpha 3 released

2014-05-23 Thread Willy Raets
GambOS, as a distribution, aims at being a learning environment for
programming in Gambas3. It is based on Lubuntu, and stripped down from
unneeded ballast.

Part of the common desktop applications have been replaced by ones
written in Gambas3. This to show and enjoy what can be done with Gambas
3, while still learning the skills.

Check out the release announcement on gambos.org (1)

(1): http://gambos.org/index.php?page=gambosnews

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] gb.db.postgresql – These Components Are Disabled

2014-05-18 Thread Willy Raets
On zo, 2014-05-18 at 20:38 +0200, gian wrote:
 Hi all,
 
 compiling Gambas3 following the instructions Gambas Documentation I received 
 this
 result:
 
 || THESE COMPONENTS ARE DISABLED:
 
 || - gb.db.postgresql

libpg-dev
http://packages.ubuntu.com/trusty/libpq-dev

 
 || - gb.gmp

libgmp-dev
http://packages.ubuntu.com/trusty/libgmp-dev

 
 || - gb.gtk3

libgtk-3-dev
http://packages.ubuntu.com/trusty/libgtk-3-dev

 
 || - gb.jit

llvm-3.4
http://packages.ubuntu.com/trusty/llvm-3.4

 
 With web suggestions and research on Synaptic I have installed these 
 libraries:
 
 libgmp-dev
 
 libgtk-3-dev
 
 llvm 1:3.4-0ubuntu1
   

You did very well figuring out these dependencies ;)

 
 Now I receive:
 
 THESE COMPONENTS ARE DISABLED: only on gb.db.postgresql, but I just do not 
 understand why.
 Because I have already installed the following libraries:
 
 libpq5
 
 libpq-dev
 
 rsyslog
 
 librdf0

libpq-dev (depends on libpq5 on Ubuntu 14.04) should be enough as far as
I am aware. At least they where for Gambas 3.5.2

I haven't compiled trunk version on Ubuntu for a while (got lazy because
of the Daily builds PPA available), so maybe something changed in the
trunk dependencies.

Maybe Sebastian (of the Daily Builds PPA) might be able to help.
He should be on this mailing list as well...

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] JIT problem

2014-05-17 Thread Willy Raets
On vr, 2014-05-16 at 17:04 +0200, Roki wrote:
 Hello!
 Perhaps The question I ask you is ridiculous, but bear in mind that I am 
 a relative novice in Gambas. How to pick revision #6264? I have daily 
 PPA, but no update maybe for ten days.
 
 On 05/15/2014 12:24 PM, Benoît Minisini wrote:
  revision #6264
 
Latest build in Gambas Daily Builds is from 14 hours ago, so from
16-05-2014 (1).

If you look at this (2) page you will find 5057 has been build 16 hours
ago.

If you click 5057 (3) you will find that this version 5057 is based on
trunk 6268. So the current Daily Builds 5057 is Gambas revision #6268.

If it doesn't update (even if already installed) simply do:
sudo apt-get update
sudo apt-get install gambas3

It will pull in latest Daily builds.


(1): https://launchpad.net/~gambas-team/+archive/gambas-daily
(2): https://code.launchpad.net/~gambas-team/+junk/gambas-svn
(3):
http://bazaar.launchpad.net/~gambas-team/+junk/gambas-svn/revision/5057


--
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] JIT problem

2014-05-17 Thread Willy Raets
On za, 2014-05-17 at 07:08 -0700, Randall Morgan wrote:
 Here's what I'm pulling from the ppa:
 http://ppa.launchpad.net/pool/main/g/gambas3/gambas3_3.5.99.1+svn20140509+build42~ubuntu12.04.1
 And i have done a sudo apt-get update...
 
 
Just after giving my previous answer, I updated gambas3 and same here. L
Something is not quite going well in the PPA

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Daily Builds PPA stuck at gambas3_3.5.99.1+svn20140509...

2014-05-17 Thread Willy Raets
Hi all,

Seems the Gambas Daily Builds PPA is stuck at 09 may 2014.
Problem seems to start with this (1) update where gb.desktop has
undergone some changes and a new component gb.desktop.x11 was
introduced.

Hope one of the maintainers of the PPA picks up on this post.

(1)
http://bazaar.launchpad.net/~gambas-team/+junk/gambas-svn/revision/5049 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] gb.report question on setting printer to print to

2014-05-07 Thread Willy Raets
On Tue, 2014-05-06 at 21:55 +0200, Fabien Bodard wrote:
 hi willy
 
 
 the option is available since 3.5.3
 
 Report.Print(optional MyPrinter as printer)
 
 if printer is defined then the configure box will not show.
 
 
 dim hprinter as new printer
 
 hprinter.name = HP-LaserJet
 
 report.print(hprinter)
 

Thanks Fabian,

I'll upgrade to 3.5.3


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Fontchooser help

2014-05-07 Thread Willy Raets
On Wed, 2014-05-07 at 15:32 -0500, Jb Skaggs wrote:
 I have not been able to find any font chooser examples. I can get my
 textarea font to match the file chooser font, but I can't seem to
 change the size or styles to that of the fontchooser.  Could someone
 point me to an example showing how the fontchooser works?

Hi Jb,

Attached a source archive with a short example on how to use.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





FontChooser-0.0.1.tar.gz
Description: application/compressed-tar
--
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


[Gambas-user] gb.report question on setting printer to print to

2014-05-05 Thread Willy Raets
Hi all,

I have this situation where I have multiple printers available.
Say they are named HP-LaserJet (default) and HP-Color.

I do not want a Report Preview but print directly to either one of both
printers available to the system.

Now most reports I made need to go to the default printer being
HP-LaserJet.

In Gambas I have a RprtPrintTo1 and RprtPrintTo2
So next code will work and print the RprtPrintTo1 to printer HP-LaserJet
(as it is the default):

Dim hReport As New RprtPrintTo1
hReport = New RprtPrintTo1
hReport.Paper = Printer.A4
hReport.Print

But some reports (like RprtPrintTo2) are specific for the printer
HP-Color (not being the default printer).
Code below will send it to HP-LaserJet (default) instead of HP-Color.

Dim hReport As New RprtPrintTo2
hReport = New RprtPrintTo2
hReport.Paper = Printer.A4
hReport.Print

How can I have the report printed to HP-Color? I can't find any property
in Report that I can set the printer to print the report to and I don't
want to use hReport.Preview. Documentation wasn't helpful either.

Using Gambas 3.5.2

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org







--
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] Problem getting ReportVBox visible/invisible depending on condition

2014-04-25 Thread Willy Raets
On Thu, 2014-04-24 at 21:45 +0200, Fabien Bodard wrote:
 i think i have forgotten to manage invisible case

That explains a lot, hope this will be fixed in Gambas 3.6 release ( as
I understood that 3.5.x releases don't get all that is changed in trunk
version).

Meanwhile I'll have to think of another approach as the application goes
into use (at work) before my summer vacation.


 
 2014-04-24 18:13 GMT+02:00 Willy Raets wi...@earthshipbelgium.be:
  Hi,
 
  I have this situation where I have a one paged report that selects a
  certain record from a database, shows this data in the upper part of the
  report and then needs to show one out of two ReportVBoxes below that
  data, depending on an argument passed when instantiating the report.
 
  I have attached a simplified project source with only the ReportVBoxes
  and no data.
 
  In the IDE design of the report both ReportVBoxes have their property
  visible set to false. In the preview they will always show up!!?
 
  Am I missing something, I have tried different approaches. Anybody any
  suggestions?
 
  --
  Kind regards,
 
  Willy (aka gbWilly)
 
  http://gambasshowcase.org/I guess the 
fix will be for Gambas 3.6, right?
  http://howtogambas.org
  http://gambos.org
 
 
 
 
  --
  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
 
 
 
 

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Problem getting ReportVBox visible/invisible depending on condition

2014-04-24 Thread Willy Raets
Hi,

I have this situation where I have a one paged report that selects a
certain record from a database, shows this data in the upper part of the
report and then needs to show one out of two ReportVBoxes below that
data, depending on an argument passed when instantiating the report.

I have attached a simplified project source with only the ReportVBoxes
and no data.

In the IDE design of the report both ReportVBoxes have their property
visible set to false. In the preview they will always show up!!?

Am I missing something, I have tried different approaches. Anybody any
suggestions?

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





ReportVBox-0.0.1.tar.gz
Description: application/compressed-tar
--
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] Repeat: Severe problem with update...

2014-04-14 Thread Willy Raets
On Sun, 2014-04-13 at 22:35 -0400, ISS Boss wrote:
 New information on my problem.  I went to the GambasWIKI site and 
 followed these three instructions under the Gambas3 Stable header 
 (which is how I installed it the first time):
 
 sudo add-apt-repository ppa:nemh/gambas3
 
 sudo apt-get update
 
 sudo apt-get install gambas3
 
 What I have now when I open Gambas is and get system info is:
 
 
 [System]
 Gambas=3.5.3
 OperatingSystem=Linux
 Kernel=3.5.0-48-generic
 Architecture=x86
 Distribution=Ubuntu 12.04.4 LTS
 Desktop=GNOME
 Theme=QGtk
 Language=en_US.UTF-8
 Memory=2017M
 [Libraries]
 Cairo=libcairo.so.2.11000.2
 Curl=libcurl.so.4.2.0
 DBus=libdbus-1.so.3.5.8
 GStreamer=libgstreamer-0.10.so.0.30.0
 GStreamer=libgstreamer-1.0.so.0.1.0
 GTK+=libgtk-x11-2.0.so.0.2400.10
 OpenGL=libGL.so.1.2.0
 Poppler=libpoppler.so.19.0.0
 Qt4=libQtCore.so.4.8.1
 SDL=libSDL-1.2.so.0.11.3
 
 NOTE that Gambas 3.5.2 has been replaced by Gambas 3.5.3 (the only change).
 
 When I issued the first install instruction, I get results I was not 
 anticipating.  They were as follows:
 
 bill@Troll:~$ sudo add-apt-repository ppa:nemh/gambas3
 [sudo] password for bill:
 You are about to add the following PPA to your system:
   This PPA contain the stable version of Gambas 3.
   More info: https://launchpad.net/~nemh/+archive/gambas3
 Press [ENTER] to continue or ctrl-c to cancel adding it
 
 Exception in thread Thread-1:
 Traceback (most recent call last):
File /usr/lib/python2.7/threading.py, line 551, in __bootstrap_inner
  self.run()
File /usr/lib/python2.7/dist-packages/softwareproperties/ppa.py, 
 line 99, in run
  self.add_ppa_signing_key(self.ppa_path)
File /usr/lib/python2.7/dist-packages/softwareproperties/ppa.py, 
 line 132, in add_ppa_signing_key
  tmp_keyring_dir = tempfile.mkdtemp()
File /usr/lib/python2.7/tempfile.py, line 322, in mkdtemp
  name = names.next()
File /usr/lib/python2.7/tempfile.py, line 141, in next
  letters = [choose(c) for dummy in 123456]
File /usr/lib/python2.7/random.py, line 274, in choice
  return seq[int(self.random() * len(seq))]  # raises IndexError if 
 seq is empty
 ValueError: cannot convert float NaN to integer
 
 This indicates that something is wrong with an installation script 
 somewhere doesn't it?  Shouldn't that be fixed?
 
 When I executed the Install command, I asked me if I wanted to install 
 unverified packages.  I answered Y. and it installed.
 
 Now, when I run the Update Manager it says I have no updates to 
 install.  So, I guess my problem is solved for the time being. Will 
 this happen the next time updates are up for Gambas?
 
 Bill

You should be good now if:
1. The proper PPA is added to your sources.list.
2. The Public Key of all PPA's used are on your system

These PPA's are the software repositories that are checked when
running:

$ sudo apt-get update

And these are the repositories updates will be installed from when
running:

$ sudo apt-get upgrade

Next time when PPA memh/gambas3 gets an updated gambas version the
apt-get update and upgrade will upgrade your version.

The message:

-
Requires installation of untrusted packages.

This action would require the installation of packages from not
authenticated sources
--

could have originated from another PPA as your output in previous mail
said:

--
W: GPG error: [97]http://ppa.launchpad.net precise Release: The
following
   signatures couldn't be verified because the public key is not
available:
   NO_PUBKEY 14E4942973C62A1B
---

This means that packages from this PPA are not trusted because of public
key missing for this PPA.
Check: http://blog.launchpad.net/ppa/adding-a-ppas-key-to-ubuntu
for more info on how to install a Public Key from a PPA.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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


[Gambas-user] Install Gambas 3 on Raspbian instruction in Gambas wiki

2014-04-09 Thread Willy Raets
Hi All,

Since I'm now the owner of a Raspberry Pi running Raspbian I wrote some
short instructions for installing Gambas3 on Raspbian.

http://gambaswiki.org/wiki/install/raspbian

Also added Raspbian to the index of distributions.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Updated Debinan installation instructions

2014-03-15 Thread Willy Raets
Hi all,

I have just updated the installation instructions for Debian in the new
Gambas Wiki (http://gambaswiki.org/wiki/install/debian)

Nice thing is that jessie repository now has a working Gambas 3.5.2.
Adding the jessie repository to your sources.list on wheezy allows you
to install Gambas 3.5.2 from binaries, so good news for the Debian users
among us.

In case you compile and install Gambas3.5.2. from source on wheezy:
gstreamer-1.0 is now found in the wheezy backports
llvm-3.1 is now part of wheezy repository

If you find any irregularities in the instructions, please let me know
so I can correct them.
 
-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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/13534_NeoTech
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to group on reports using gb.report?

2014-02-18 Thread Willy Raets
Hi All,

I have been working with reports now for a while. The examples and some
help from Fabien proved to be very useful.
I managed porting the most simple reports made in Ms Access to
gb.report.

But at the moment I'm stuck with something I can't figure out.
Since the project is big and data confidential I'll try and explain
using some sample data.

Imagine I have following data
CodeDescription Amount
103 Table   0
103 Table   20
103 Table   12
105 Chair   46
105 Chair   34
106 Bed 0
106 Bed 0
106 Bed 9
203 Pool table  2
203 Pool table  3

I'm trying to group by code and make a total for each group.

In Ms Access I based the report on a query that filters out the Amount
fields equal to 0. The grouping on the Code field could be done in the
report design.

With gb.report I have tried all kinds of different combinations of
controls and property settings and never managed to get the desired
result.

I would like the report to like this: 

Articles produced -- header of the report (only on page 1)

CodeDescription Amount
--
103 Table   20
103 Table   12
Total:  32

CodeDescription Amount
--
105 Chair   46
105 Chair   34
Total:  80

CodeDescription Amount
--
106 Bed 9
Total:  9

CodeDescription Amount
--
203 Pool table  2
203 Pool table  3
Total:  5   


The number of groups is no fixed number, meaning there can be more
groups than shown above. In the reports I need this grouping we are
talking multi paged reports.

An example doing this would be very helpful and help me get quite some
of the left over Ms Access reports ported to Gambas.

P.S. Using Gambas 3.5.2

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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=121054471iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Daily builds PPA doesn't install gb.markdown

2014-02-06 Thread Willy Raets
On Mon, 2014-02-03 at 14:22 +0100, Willy Raets wrote:
 On Sun, 2014-02-02 at 16:48 +0100, Willy Raets wrote:
  On Sun, 2014-02-02 at 15:15 +0100, Benoît Minisini wrote:
   Le 02/02/2014 15:05, Willy Raets a écrit :
Hi all,
   
I just updated 2 VMs to latest Daily Builds (packages dated 20-20-2014).
When running the new Web example I got the message that the gb.markdown
component is missing.
   
When opening a project and checking the component tab in properties
there is no gb.markdown selectable.
   
Trying to do sudo apt-get install gambas3-gb-markdown doesn't seem to do
the trick either. Strange thing is that when I downloaded the source
(apt-get source), the gb.markdown component source is available.
   
Any ideas why the gb.markdown won't install.
   
Tested this on:
- Linux Mint 16 with xfce 4.10
- Lubuntu 12.10 with LXDE 0.5.11
   
   
   
   It has been fixed in revision #6125, so you must wait a little...
   
  
  Thanks,
  
  I'll check tomorrows release of Daily builds and see if the fix works.
  I'll keep you updated.
  
 
 Hi,
 
 Seems the problem is in the Gambas Daily Builds PPA.
 
 I updated today to:
 - 3.5.99.1+svn20140203+build51~ubuntu12.10.1 (on the Lubuntu 12.10)
 - 3.5.99.1+svn20140203+build18~ubuntu13.10.1 (on Linux Mint 16)
 
 I think that this is revision #6127
 
 No gb.markdown gets installed on both systems mentioned earlier.
 
 Attached two screenshots.
 1. When opening the SmallWiki example a message says gb.markdown missing
 2. Properties - Tab components of SmallWiki example (no gb.markdown to
 select)
 
 Doing a sudo apt-get install gambas3-gb-markdown doesn't install
 anything, as the package can't be found.
 
 As gb.markdown is a new component, maybe something in the packaging has
 gone wrong.

Hello,

Update Gambas from PPA Daily Builds to:
- 3.5.99.1+svn20140205+build51~ubuntu12.10.1. (Lubuntu 12.10)
- 3.5.99.1+svn20140205+build18~ubuntu13.10.1 (Linux Mint 16)

I think this is revision #6134.

WikiExample gives no errors. This makes sense as gb.markdown has been
embedded into the example by Benoît.

But the new gb.markdown component still doesn't get installed. So I
guess Kendek and/or Sebastian will have to have a look at the packaging
process and see what has gone wrong there.

Please keep me informed when it will get fixed and I'll have another go
to check.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] ppa

2014-02-06 Thread Willy Raets
On Wed, 2014-02-05 at 18:11 +1100, Shane wrote:
 is the daily build of kendek's ppa still working ?

Gambas Daily Builds PPA (the development version of Gambas) is still
working.

It doesn't install a new component named gb.markdown, but other than
that is just runs fine and shouldn't be a problem as long as you are in
no need of gb.markdown.cion 

Kendek's Gambas3 PPA (the stable version of Gambas) is still working as
well.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
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] Gambas Daily builds PPA doesn't install gb.markdown

2014-02-02 Thread Willy Raets
Hi all,

I just updated 2 VMs to latest Daily Builds (packages dated 20-20-2014).
When running the new Web example I got the message that the gb.markdown
component is missing.

When opening a project and checking the component tab in properties
there is no gb.markdown selectable.

Trying to do sudo apt-get install gambas3-gb-markdown doesn't seem to do
the trick either. Strange thing is that when I downloaded the source
(apt-get source), the gb.markdown component source is available.

Any ideas why the gb.markdown won't install.

Tested this on:
- Linux Mint 16 with xfce 4.10
- Lubuntu 12.10 with LXDE 0.5.11


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Daily builds PPA doesn't install gb.markdown

2014-02-02 Thread Willy Raets
On Sun, 2014-02-02 at 15:15 +0100, Benoît Minisini wrote:
 Le 02/02/2014 15:05, Willy Raets a écrit :
  Hi all,
 
  I just updated 2 VMs to latest Daily Builds (packages dated 20-20-2014).
  When running the new Web example I got the message that the gb.markdown
  component is missing.
 
  When opening a project and checking the component tab in properties
  there is no gb.markdown selectable.
 
  Trying to do sudo apt-get install gambas3-gb-markdown doesn't seem to do
  the trick either. Strange thing is that when I downloaded the source
  (apt-get source), the gb.markdown component source is available.
 
  Any ideas why the gb.markdown won't install.
 
  Tested this on:
  - Linux Mint 16 with xfce 4.10
  - Lubuntu 12.10 with LXDE 0.5.11
 
 
 
 It has been fixed in revision #6125, so you must wait a little...
 

Thanks,

I'll check tomorrows release of Daily builds and see if the fix works.
I'll keep you updated.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2014-01-22 Thread Willy Raets
On Tue, 2014-01-21 at 17:58 -0500, Kevin Fishburne wrote:
 On 01/21/2014 03:57 PM, martin p cristia wrote:
  Stepping in this old conversation to point out my take:
 
  -computers nowadays are fast enough to run a VM that's fast enough to
  run a normal aplication
 
  -If Benoit says it's complicated, what's left for us ??
 
  - so instead of trying to port gambas, why not making a installer that
  sets everything up for the inexperinced user??? Something like the
  SmallTalk approach.
 
  Making a small footprint VM+Linux+Gambas...they're all opensource, we
  can get rid of everyhing that Gambas dont need...even more, making a
  ligth weight Gambas or tagging components as portable and others not
  Say it's a 500MB installer? C'mon my android phone has Hello world
  like apps that weight 30MB, half giga is 15m download...even here in the
  ass of the world (small town Argentina)
 
  As for porting Gambas, it will be really good.  I have the time (but not
  the brain) to help anyone that joins the party and has the know-how for
  a start.
 
 Sounds like a good idea to me. I'm planning on creating my own LiveCD to 
 allow users to run my game on Windows and OSX. Not a great solution, but 
 there aren't many options that the average user will stomach.
 
 For your idea I think we'd need to set up a script or small executable 
 that would:
 
  1. Install VirtualBox.
  2. Extract a premade vdi (Virtual Disk Image) containing only what
 Gambas needs to run its components (probably a lot).
  3. Extract a premade vbox file (VirtualBox Machine Definition) so
 VirtualBox knows about the VM and all its settings.
  4. Create desktop and menu shortcuts to launch the VM.
 
 I remember Windows had self-extracting executables, like a zip file with 
 an .exe extension. Perhaps there's an open source program that can 
 create those on Windows and then run a script afterward? If so that 
 would take care of everything except creating the Gambas VM. From my 
 experience with doing the latter, the image always ends up around 7-8 
 GB. I think getting the file size down to 1-2 GB is going to be tough.
 

Hi,

That seems like what we try to do with GambOS. It is primarily meant as
a learning environment, a Lubuntu 12.04 dressed down of all the
excessive applications and with Gambas pre-installed and some guides to
start learning.

Exporting it to a pre-made Virtual Disk Image gives a .ova file of about
2.6 GB, but I believe that this can be brought down a bit more.
Making an installation .iso of GambOS (for those who want to install it
themselves) is about 1.2 GB.

I have tested importing the .ova file into a Virtual Box running on
Widows XP and that worked just fine. So for those running Widows and
with little to no know how on Linux, this is an easy approach for
running Gambas.

If there would be a decent Gambas repository for Debain, I would love to
base GambOS on Debian (instead of Lubuntu), so that a Raspberry Pi
version of GambOS could be made. This would be a pre installed
Debian/Gambas on a SD card. All the ideas are there, but the lack of
some needed experts is missing in the project.

I'm still hoping for a Debian packager who can make a recent Gambas
repository (the Debain ones suck), as all it would take is a ftp
location at gambos.org, to put all the stuff and from there all can be
installed and updated. But I'm no Debian packager.

I still need to buy a Raspberry Pi, to see what is possible there and
figure out how to make the OS on SD card. But again, GambOS needs to
have a repository with Gambas for that as compiling Gambas is no option.
People need to be able to easily update Gambas, not compile every new
version, as that seems to take ages on Raspberry.

At the moment I'm about the only one working on the project. The
initiator of the project somehow got to busy, and the person making the
iso has received the latest GambOS.ova to make the iso over a month ago,
but I haven't heard of him yet.

So the project is kind of stuck and meanwhile I'm attempting to make the
iso myself (first run in making an iso ended in a no longer working
GambOS VM).

If anyone is willing to work with me, that would be great.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] multi document interface

2014-01-22 Thread Willy Raets
On Mon, 2014-01-20 at 01:15 +0100, Benoît Minisini wrote:
 Le 14/01/2014 09:50, Willy Raets a écrit :
  Hi all,
 
  Does anyone have a small example of working with a multi document
  interface. I need one toolbar that works with all opened documents?
 
  For example a toolbar with a copy and paste button that can copy a text
  from one of the opened documents and paste it into an other opened
  document in the multi document interface.
 
  What is the best approach of achieving this? Any suggestions or a small
  example would be appreciated.
 
 
 The IDE does not fit your needs? It has a main window with a main 
 toolbar, and MDI child windows with their own private toolbars.

Haven't thought about looking a the source code of the IDE, but I will
definitely have a look. Need to download it anyway for checking if any
more Dutch translations are needed.
 
 Then you create your Toolbar, fill them with ToolButton, ComboBox...
 
 The toolbar Key property must be set.
 
 The Action property of all toolbar controls must be set too.
 
 If a toolbar button has a corresponding menu, the menu must have the 
 same action.
 
 If an action is local to a MDI window (for example, in the IDE, two form 
 editors have its own instance of the same toolbar), it must start with a 
 dot. Read all the documentation of the Action class.

I'll have a look at that too. Back to research :)
 
 Regards,
 

Thanks for leading me into the right direction.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Printing text vertically (using printing or gb.report)

2014-01-18 Thread Willy Raets
On Fri, 2014-01-17 at 21:50 +0100, Fabien Bodard wrote:
 2014/1/16 Willy Raets wi...@earthshipbelgium.be:
 
  I added some screenshots of how it is implemented at the moment in MS
  Access. As you can see the report designer of MS Access allows for
  labels to be placed vertically on the design (there is a property named
  vertical for textlabels that can be set to yes, it is as simple as
  that).
 
  The second screenshot is a print preview and that is the result I would
  need. As you can see the layout of the Dymo Address Label is portrait,
  the text is printed vertical on the Address Label.
 
  As I am porting this application to Gambas, I need to figure out how
  this can be done in Gambas, as the Dymo Label Writer doesn't have any
  other options to print this.
 
  gb.report doesn't seem to have this possibility and neither does using
  the printer object. Or maybe they can but I haven't discovered it yet.
 
 
  
  
   myPrinter.Orientation = Printer.Landscape
  
  
   This suggestion sets me to think. The Dymo labels are in portrait in the
   Dymo label printer. So making a landscape label on a pdf surface and
   next print this in landscape (so actually giving the landscape design a
   twist to being printed in portrait) could do the job. I'am going to give
   this a try as soon as I am at work.
 
  Yes, sometimes things can be tricky :-)
 
  I do think I will try with gb.cairo to see what I can come up with, just
  curious if that would work. But having this option in gb.report would of
  course be much easier :)
 
 it is in the code of report but it seem i have a bug with path
 extents. and the editor don't show the rotation.
 
 i will correct that.
 

That would be great.

Thanks

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A Gambas-MySql question - Query the result of a query and a table

2014-01-16 Thread Willy Raets
On Thu, 2014-01-16 at 00:45 +1030, Bruce wrote:
 Hi Willy,
 I have been thinking about this for the last day (amongst 20,000 other
 things) and I really don't have an easy answer. 
 
 On Tue, 2014-01-14 at 10:20 +0100, Willy Raets wrote:
  Hi all,
  
  In MS Access it was possible to make a query based on a query. I am in
  the middle of porting all MS Access clients to Gambas 3 and all tables
  have been migrated to MySql.
  
 I do sort of remember this. We used to make a lot of use of it. But I
 can't remember how it was done. Could you post a simple example?

Do you mean a MS Access example of a query based on a query and some
tables?

 
  Is it possible in Gambas to do a query and next do another query on the
  result of the previous query combined with some extra tables?
 
 (Without the example, the answer is) Well not really, but there are a
 lot of options.
  
  Or, do I need to do the query, store the result in a table and next
  query this table combined with the extra tables.
 
 No, you need not go this far!
 A Gambas result is not a cursor in the true sense of the word. The
 best way I can explain it is that it is sort of a live collection of
 rows. You can iterate through it using the short form of the For Each
 method, but you cant refer to it in another query as the dbms has no
 idea what you could be talking about.
 
 There are a few options that leap to mind without remembering how this
 stuff was done, but they all involve using direct SQL calls rather than
 the clever stuff Benout has provided. Also be very aware that you will
 be writing dbms specific code and so lose the database agnosticity
 that normal use of gb.db provides. (And as you seem intent on using that
 dog of a dbms, MySQL, I can't really be entirely specific as to how to
 go about it.)
 
 Generally, it works like this. The SQL standard requires a SELECT
 statement to refer in the FROM clause to either:
 - real tables
 - views
 - embedded queries.
 
 So we can 
   SELECT (blah..)
   FROM aTable as A, aView as B, (SELECT Martians FROM
   somewhere WHERE etc) AS C
   WHERE A.Joe= b.Mary AND B.Sausages = C.Martians;
 (Note, I am cleverly avoiding JOINS here :-) )
 
 This is standard (and I mean Standard!) SQL. 
 
 But you can't do that using the normal Gambas db stuff, you have to do a
 Connection.Exec(query) call and that is 
 a) dbms specific and
 b) not updatable.

I am using Connection.Exec(query) often in the application as there are
so many specific things that need to be done (a lot of INNER, LEFT and
RIGHT JOINS) that the normal db stuff can't handle (I think).
That means a lot of SQL calls in Gambas code, so a bit harder to
maintain. But that is okay, as I made a separate file in the Gambas
project documenting where in the code I use what SQL calls, so I have
some overview of what is going on for maintenance purposed later on.

 
 So to cut a long story short, consider this approach:
 1) Convert your Access queries to views and store them in your MySQL
 (Ack, spit) database, but only store the Keying information
 2) Use those views, which are visible in gambas as Tables
 3) Use the view result as a list of keys in your gambas app to do real
 table updates.
 
 We do this every day, let me check todays stats... pic attached
 hmm a pretty slow day really.

I'll have a look at how to make these views in MySql (so back to
research) and see what I can get working. The queries in question are
again quite extensive and with all kinds of JOINS.

Thanks for sharing your suggestions and insight.
 
 
  
  I know this last option would work, but I am just wondering if there are
  any better ways of doing this, without having to create a table with the
  query result.
  
  Suggestions are appreciated.
  
 
 hth
 Bruce

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Printing text vertically (using printing or gb.report)

2014-01-16 Thread Willy Raets
On Tue, 2014-01-14 at 10:04 +0100, Willy Raets wrote:
 Hi all,
 
 I have a Dymo Label writer at work and need to print address labels.
 Thing is that the labels are in portrait and the text needs to be
 printed vertically instead of horizontally as it happens now.
 
 I have tried with both printing and reports but don't manage to get the
 job done. Text aways gets printed horizontal and thus the addresses
 don't fit the width or the Dymo Label.
 
 The size of the Dymo labels that need to be printed is:
 PaperWidth = 35.630555
 PaperHeight = 88.9
 Both sizes are in milimeters (mm).
 
 I used to do this with reports from MS Access and there you can simply
 set the textlabels on the report vertically instead of horizontally.
 Didn't find a manner to achieve that with gb.report. Does that exist?
 
 The project itself is a rebuilt in Gambas of MS Access clients apps
 currently used. I can't send the code because:
 a. it is too big a project
 b. it contains specific inside company information that is not meant for
 the public.
 I'll try and make a printed pdf of the result later today to show you
 what I mean.
 
 Any suggestions would be appreciated.
 

Anyone any suggestion as I really need this to work somehow.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Printing text vertically (using printing or gb.report)

2014-01-16 Thread Willy Raets
On Thu, 2014-01-16 at 10:44 +0100, Rolf-Werner Eilert wrote:
 
 Am 16.01.2014 10:30, schrieb Willy Raets:
  On Tue, 2014-01-14 at 10:04 +0100, Willy Raets wrote:
  Hi all,
 
  I have a Dymo Label writer at work and need to print address labels.
  Thing is that the labels are in portrait and the text needs to be
  printed vertically instead of horizontally as it happens now.
 
  I have tried with both printing and reports but don't manage to get the
  job done. Text aways gets printed horizontal and thus the addresses
  don't fit the width or the Dymo Label.
 
  The size of the Dymo labels that need to be printed is:
  PaperWidth = 35.630555
  PaperHeight = 88.9
  Both sizes are in milimeters (mm).
 
  I used to do this with reports from MS Access and there you can simply
  set the textlabels on the report vertically instead of horizontally.
  Didn't find a manner to achieve that with gb.report. Does that exist?
 
  The project itself is a rebuilt in Gambas of MS Access clients apps
  currently used. I can't send the code because:
  a. it is too big a project
  b. it contains specific inside company information that is not meant for
  the public.
  I'll try and make a printed pdf of the result later today to show you
  what I mean.
 
  Any suggestions would be appreciated.
 
 
  Anyone any suggestion as I really need this to work somehow.
 
 
 It should be possible to make the page (pdf painting surface) landscape:

Are you talking gb.cairo component here as you mention a pdf painting
surface as I haven't had a go at that. I was playing with the printer
object and had a go with gb.reports.

 
 myPrinter.Orientation = Printer.Landscape
 

This suggestion sets me to think. The Dymo labels are in portrait in the
Dymo label printer. So making a landscape label on a pdf surface and
next print this in landscape (so actually giving the landscape design a
twist to being printed in portrait) could do the job. I'am going to give
this a try as soon as I am at work.

 Does this help? It runs flawlessly here on my system... If it doesn't 
 react, try setting gb.qt4 instead of gb.gui for the components to load. 
 I had a problem here with it the other day, and I don't know if Benoit 
 has already fixed it.

I'm using gb.qt4 in the project so that should be okay. I'll let you
know if I managed to get it done. Thanks for the suggestion.

 
 Rolf


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] multi document interface

2014-01-14 Thread Willy Raets
Hi all,

Does anyone have a small example of working with a multi document
interface. I need one toolbar that works with all opened documents?

For example a toolbar with a copy and paste button that can copy a text
from one of the opened documents and paste it into an other opened
document in the multi document interface.

What is the best approach of achieving this? Any suggestions or a small
example would be appreciated.

-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   3   4   >