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

2017-09-07 Thread Fernando Cabral
2017-09-07 5:52 GMT-03:00 Benoît Minisini via Gambas-user <
gambas-user@lists.sourceforge.net>:

>
> Is it possible for you (or other people) to compare the list of your
> environment variables between a real system (where the bug occurs) and a
> virtual machine with the same system (where the bug does not occur)?
>

I am attaching two files with the variables used in the virtual and real
environments. To me they look the same except for minor details that do not
seem related to the issue.

Best regards

- fernando


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
declare -x CINNAMON_VERSION="3.4.6"
declare -x 
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-oBdGoF8tYz,guid=87572c4175772bd8eccc1b4c59b15956"
declare -x DEFAULTS_PATH="/usr/share/gconf/cinnamon.default.path"
declare -x DERBY_HOME="/usr/lib/jvm/java-9-oracle/db"
declare -x DESKTOP_SESSION="cinnamon"
declare -x DISPLAY=":0"
declare -x GDM_LANG="pt_BR"
declare -x GDMSESSION="cinnamon"
declare -x GJS_DEBUG_OUTPUT="stderr"
declare -x GJS_DEBUG_TOPICS="JS ERROR;JS LOG"
declare -x GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
declare -x GTK_MODULES="gail:atk-bridge"
declare -x GTK_OVERLAY_SCROLLING="1"
declare -x HOME="/home/fernando"
declare -x J2REDIR="/usr/lib/jvm/java-9-oracle"
declare -x J2SDKDIR="/usr/lib/jvm/java-9-oracle"
declare -x JAVA_HOME="/usr/lib/jvm/java-9-oracle"
declare -x LANG="pt_BR.UTF-8"
declare -x LANGUAGE="pt_BR:pt:en"
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
declare -x LESSOPEN="| /usr/bin/lesspipe %s"
declare -x LOGNAME="fernando"
declare -x 
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
declare -x MANDATORY_PATH="/usr/share/gconf/cinnamon.mandatory.path"
declare -x OLDPWD="/home/fernando"
declare -x 
PATH="/home/fernando/bin:/home/fernando/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-9-oracle/bin:/usr/lib/jvm/java-9-oracle/db/bin"
declare -x PWD="/home/fernando/Downloads"
declare -x QT_ACCESSIBILITY="1"
declare -x QT_LINUX_ACCESSIBILITY_ALWAYS_ON="1"
declare -x QT_QPA_PLATFORMTHEME="qgnomeplatform"
declare -x QT_STYLE_OVERRIDE="gtk"
declare -x 
SESSION_MANAGER="local/fernando-amd:@/tmp/.ICE-unix/2311,unix/fernando-amd:/tmp/.ICE-unix/2311"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_AGENT_PID="2368"
declare -x SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"
declare -x TERM="xterm-256color"
declare -x USER="fernando"
declare -x VTE_VERSION="4205"
declare -x WINDOWID="136314886"
declare -x XAUTHORITY="/home/fernando/.Xauthority"
declare -x XDG_CONFIG_DIRS="/etc/xdg/xdg-cinnamon:/etc/xdg"
declare -x XDG_CURRENT_DESKTOP="X-Cinnamon"
declare -x 
XDG_DATA_DIRS="/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/

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

2017-09-07 Thread Fernando Cabral
>
> Comment #19 by PICCORO LENZ MCKAY:
>
> also please do not try in your distro of problem it's possible that the
> virtual machine can inherit the problem in different way..
> i mean try to install in another hardware away of the one with the
> problem, by example you can use for debian this repository
> https://software.opensuse.org//download.html?project=home%3A
> mckaygerhard%3Agambas3=gambas3
>
> I did not get your point, McKay. if we know that it is running OK on the
virtual machine, but not on the bare metal machine, we know it can not be
an inheritance problem. Otherwise, it would not be running on the virtual
machine either...

Perhaps I have lost track of your reasoning.

- fernando






Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-09-06 Thread Fernando Cabral
2017-09-06 14:41 GMT-03:00 zainudin ahmad <author.i...@gmail.com>:

> sudo apt-get install gambas3-gb-qt5 gambas3-gb-qt5-ext
> gambas3-gb-qt5-opengl gambas3-gb-qt5-webkit
>

gambas3-gb-qt5 gambas3-gb-qt5-opengl were already installed.

apt did not find packages gambas3-gb-qt5-ext and gambas3-gb-webkit

- fernando



>
> I am sure we have the different issue :)
>
> On 9/6/17, Fernando Cabral <fernandojosecab...@gmail.com> wrote:
> > 2017-09-06 3:28 GMT-03:00 Benoît Minisini via Gambas-user <
> > gambas-user@lists.sourceforge.net>:
> >
> >>
> >>
> >> Comment #8 by Delio CARVALHO:
> >>
> >> Yes, all components is correctly installed and typing "GB_GUI=gb.qt5
> >> gambas3" on a terminal opens Gambas3 IDE without warnings or errors, but
> >> its class editor remains not editable.
> >>
> >> Now we might be on something here. Running GB_GUI=qb.qt5 gambas3 on my
> > regular machine I got the error message:
> >
> >
> >
> > *$ GB_GUI=qb.qt5 gambas3gb.gui: warning: 'qb.qt5' component not
> supported*
> >
> > But, if I run the same command on the virtual machine (on which gambas
> IDE
> > is working) I got no error message.
> >
> > So, having or not having the qb.qt5 component installed might the cause
> of
> > the problem.
> > Now my questions is: how do I do to install the qb.qt5 component in order
> > to see if it solves the issue?
> >
> > By the way: I installed gambas on both machine using the same command
> > sequence (with PPA).
> >
> >
> >>
> >>
> >>
> >> 
> >> --
> >> Check out the vibrant tech community on one of the world's most
> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >> ___
> >> Gambas-user mailing list
> >> Gambas-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >
> >
> >
> > --
> > Fernando Cabral
> > Blogue: http://fernandocabral.org
> > Twitter: http://twitter.com/fjcabral
> > e-mail: fernandojosecab...@gmail.com
> > Facebook: f...@fcabral.com.br
> > Telegram: +55 (37) 99988-8868
> > Wickr ID: fernandocabral
> > WhatsApp: +55 (37) 99988-8868
> > Skype:  fernandojosecabral
> > Telefone fixo: +55 (37) 3521-2183
> > Telefone celular: +55 (37) 99988-8868
> >
> > Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> > nenhum político ou cientista poderá se gabar de nada.
> > 
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-09-06 Thread Fernando Cabral
2017-09-06 17:25 GMT-03:00 Benoît Minisini via Gambas-user <
gambas-user@lists.sourceforge.net>:

>
> Comment #12 by Zainudin AHMAD:
>
> Can you try to :
> .
> 1) rename gambas3.conf file in ~/.config/gambas3/ directory, from
> gambas3.conf to gambas3.conf-org (or other)
> 2) run gambas IDE and open/create any project
> 3) try write someting in code editor
> .
> it's work ???


I've tried your suggestion. No, it did not work.

- fernando

>
>
>
> .
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-09-06 Thread Fernando Cabral
2017-09-06 17:25 GMT-03:00 Benoît Minisini via Gambas-user <
gambas-user@lists.sourceforge.net>:

>
> Comment #13 by Delio CARVALHO:
>
> I did a completely uninstall of Gambas3 IDE, its dependencies and
> components, after that, I've purged all its remaining files including
> ~/.config/gambas3/ directory. then, I reinstalled everything again. But the
> problem persists.
> Today I'm going to uninstall Gambas3 and reinstall, but now, compiling it
> from the source code instead of installing from repository.
>

Several weeks ago I did the same to no avail.
This week (for other reasons, not because of Gambas), a did a fresh install
in a brand new machine.
Did no work. Same problem.

So, I guess you will just waist your time. But who knows? When black magic
sets in, anything may happen.

- fernando


>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-09-06 Thread Fernando Cabral
2017-09-06 3:28 GMT-03:00 Benoît Minisini via Gambas-user <
gambas-user@lists.sourceforge.net>:

>
>
> Comment #8 by Delio CARVALHO:
>
> Yes, all components is correctly installed and typing "GB_GUI=gb.qt5
> gambas3" on a terminal opens Gambas3 IDE without warnings or errors, but
> its class editor remains not editable.
>
> Now we might be on something here. Running GB_GUI=qb.qt5 gambas3 on my
regular machine I got the error message:



*$ GB_GUI=qb.qt5 gambas3gb.gui: warning: 'qb.qt5' component not supported*

But, if I run the same command on the virtual machine (on which gambas IDE
is working) I got no error message.

So, having or not having the qb.qt5 component installed might the cause of
the problem.
Now my questions is: how do I do to install the qb.qt5 component in order
to see if it solves the issue?

By the way: I installed gambas on both machine using the same command
sequence (with PPA).


>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-09-05 Thread Fernando Cabral
2017-09-05 12:49 GMT-03:00 Tony Morehen <tmore...@ajmconsulting.ca>:

> Some more questions / things to try:
>
> 1) Copy the project folder elsewhere in your home directory, but not in
> the dropbox tree.  Try to edit.
> 2) In the copied folder, run chmod --recursive a+w *.  Try to edit.
> 3) Try creating a new module, class or form.  Try this in both the copied
> folder and the original.  Try to add code and edit the new module etc.
> 4) Can the problems be related to dropbox.
>
> I have already tried this all in various combinations. Some even more
radical, like
making every file and directory 777. I've created a user named gambas and
everything completely open.

Now, I know it has to do with permissions because if I run "sudo gambas3"
it will work!
Now, if I set the user id bit (chmod u+s gambas3, for instance), it does
not work.

How come?

Every single directory and file is rwxrwxrwd. They all belong to me (owner
and group).

This issue has mystified me for several months now. I had settled down and
accepted the idea of keeping using the virtual machine to do the editing.
Until this morning, when someone else refered to the same issue.

- fernando


>
> On 2017-09-05 09:52 AM, Fernando Cabral wrote:
>
>> Tony Morehen wrote:
>>
>> The fact that Gambas runs properly from a vm strongly suggests that the
>>
>>> problem is not Gambas, but is the system environment that Gambas is
>>> running
>>> in.
>>>
>>
>> Agreed. But so far, this understanding has not helped me to find a
>> solution.
>>
>> What directory is your project located?  Have you tried copying the
>> project
>>
>>> to your home directory?
>>>
>>> It is on my home directory (everything is under
>>>
>> /home/fernando/Dropbox/Gambas/*"). Directory Dropbox is a local directory
>> that is replicated by Dropbox so I have a copy available in other machines
>> that respect the same structure).
>>
>> In the vm, is Gambas loading the project directly from the original
>>
>>> directory or from a copy in the vm.
>>>
>>> Yes. In the VM Gambas works with the same files directly. The
>> above-mentioned directory is mounted on the VM so Gambas sees them as
>> local
>> files (local to the VM).
>>
>> Does your system enable extended ACLs?  Are you running AppArmor or
>>
>>> SELinux?  What about in the vm?
>>>
>>> Not running AppArmor or SELinux. Extended ACLs not enabled.
>>
>> OS running on the physical machine is precisely the same that runs on the
>> virtual machine. I install them both from the same source and give them
>> the
>> same configuration. For instance, now I am running Linux Mint 18.2 on the
>> metal and, under VirtualBox I have the same Linux Mint 18.2 (technically
>> it
>> is not a clone, but it looks a lot like it).
>>
>> Regards
>>
>> - fernando
>>
>>
>> 2017-09-05 10:10 GMT-03:00 Tony Morehen <tmore...@ajmconsulting.ca>:
>>
>> Fernando,
>>>
>>> The fact that Gambas runs properly from a vm strongly suggests that the
>>> problem is not Gambas, but is the system environment that Gambas is
>>> running
>>> in.
>>>
>>> What directory is your project located?  Have you tried copying the
>>> project to your home directory?  In the vm, is Gambas loading the project
>>> directly from the original directory or from a copy in the vm.
>>>
>>> Does your system enable extended ACLs?  Are you running AppArmor or
>>> SELinux?  What about in the vm?
>>>
>>>
>>>
>>> On 2017-09-05 08:55 AM, Fernando Cabral wrote:
>>>
>>> Benoît, I don't know which input method I am using and I don't know how
>>>> to
>>>> find it.
>>>> Nevertheless, I know for sure it is the standard method for Linux Mint,
>>>> whichever it is.
>>>> I've never tinkered with it. Also, IDE used to work. All of sudden, it
>>>> stopped working.
>>>> I had changed nothing between the working stage and the non-working
>>>> stage.
>>>> Besides, when I install the virtual machines, I use the default input
>>>> method (whichever it is).
>>>>
>>>> Perhaps you can provide me with a command to find out what input method
>>>> I
>>>> am using.
>>>> The nearest I got to it was by looking into the files at /etc/X11/xinit.
>>>> Basically, either they are empty or say "default".
>>>>
>>>> Regards
>>&

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

2017-09-05 Thread Fernando Cabral
Tony Morehen wrote:

The fact that Gambas runs properly from a vm strongly suggests that the
> problem is not Gambas, but is the system environment that Gambas is running
> in.


Agreed. But so far, this understanding has not helped me to find a solution.

What directory is your project located?  Have you tried copying the project
> to your home directory?
>
> It is on my home directory (everything is under
/home/fernando/Dropbox/Gambas/*"). Directory Dropbox is a local directory
that is replicated by Dropbox so I have a copy available in other machines
that respect the same structure).

In the vm, is Gambas loading the project directly from the original
> directory or from a copy in the vm.
>

Yes. In the VM Gambas works with the same files directly. The
above-mentioned directory is mounted on the VM so Gambas sees them as local
files (local to the VM).

Does your system enable extended ACLs?  Are you running AppArmor or
> SELinux?  What about in the vm?
>

Not running AppArmor or SELinux. Extended ACLs not enabled.

OS running on the physical machine is precisely the same that runs on the
virtual machine. I install them both from the same source and give them the
same configuration. For instance, now I am running Linux Mint 18.2 on the
metal and, under VirtualBox I have the same Linux Mint 18.2 (technically it
is not a clone, but it looks a lot like it).

Regards

- fernando


2017-09-05 10:10 GMT-03:00 Tony Morehen <tmore...@ajmconsulting.ca>:

> Fernando,
>
> The fact that Gambas runs properly from a vm strongly suggests that the
> problem is not Gambas, but is the system environment that Gambas is running
> in.
>
> What directory is your project located?  Have you tried copying the
> project to your home directory?  In the vm, is Gambas loading the project
> directly from the original directory or from a copy in the vm.
>
> Does your system enable extended ACLs?  Are you running AppArmor or
> SELinux?  What about in the vm?
>
>
>
> On 2017-09-05 08:55 AM, Fernando Cabral wrote:
>
>> Benoît, I don't know which input method I am using and I don't know how to
>> find it.
>> Nevertheless, I know for sure it is the standard method for Linux Mint,
>> whichever it is.
>> I've never tinkered with it. Also, IDE used to work. All of sudden, it
>> stopped working.
>> I had changed nothing between the working stage and the non-working stage.
>> Besides, when I install the virtual machines, I use the default input
>> method (whichever it is).
>>
>> Perhaps you can provide me with a command to find out what input method I
>> am using.
>> The nearest I got to it was by looking into the files at /etc/X11/xinit.
>> Basically, either they are empty or say "default".
>>
>> Regards
>>
>> - fernando
>>
>>
>> 2017-09-05 8:24 GMT-03:00 Benoît Minisini via Gambas-user <
>> gambas-user@lists.sourceforge.net>:
>>
>>
>>>  Message transféré 
>>> Sujet : [Gambas Bug Tracker] Bug #1161: Class Editor is Locked
>>> Date : Tue, 05 Sep 2017 11:21:11 GMT
>>> De : bugtrac...@gambaswiki.org
>>> Pour : deli...@gmail.com, g4m...@gmail.com
>>>
>>> http://gambaswiki.org/bugtracker/edit?object=BUG.1161=L21haW4-
>>>
>>> Comment #1 by Benoît MINISINI:
>>>
>>> Which X11 input method do you use?
>>>
>>> Benoît MINISINI changed the state of the bug to: NeedsInfo.
>>>
>>>
>>>
>>>
>>>
>>> 
>>> --
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>>
>>
>>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-09-05 Thread Fernando Cabral
Benoît, I don't know which input method I am using and I don't know how to
find it.
Nevertheless, I know for sure it is the standard method for Linux Mint,
whichever it is.
I've never tinkered with it. Also, IDE used to work. All of sudden, it
stopped working.
I had changed nothing between the working stage and the non-working stage.
Besides, when I install the virtual machines, I use the default input
method (whichever it is).

Perhaps you can provide me with a command to find out what input method I
am using.
The nearest I got to it was by looking into the files at /etc/X11/xinit.
Basically, either they are empty or say "default".

Regards

- fernando


2017-09-05 8:24 GMT-03:00 Benoît Minisini via Gambas-user <
gambas-user@lists.sourceforge.net>:

>
>
>  Message transféré 
> Sujet : [Gambas Bug Tracker] Bug #1161: Class Editor is Locked
> Date : Tue, 05 Sep 2017 11:21:11 GMT
> De : bugtrac...@gambaswiki.org
> Pour : deli...@gmail.com, g4m...@gmail.com
>
> http://gambaswiki.org/bugtracker/edit?object=BUG.1161=L21haW4-
>
> Comment #1 by Benoît MINISINI:
>
> Which X11 input method do you use?
>
> Benoît MINISINI changed the state of the bug to: NeedsInfo.
>
>
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-09-05 Thread Fernando Cabral
u-default-settings/kf5-settings
> XDG_CURRENT_DESKTOP=KDE
> XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var
> /lib/flatpak/exports/share/:/usr/share//usr/share/xsessions
> /plasma:/.local/share/flatpak/exports/share:/var/
> lib/flatpak/exports/share:/usr/local/share:/usr/share:/
> var/lib/snapd/desktop
> XDG_RUNTIME_DIR=/run/user/1000
> XDG_SEAT=seat0
> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
> XDG_SESSION_CLASS=user
> XDG_SESSION_DESKTOP=KDE
> XDG_SESSION_ID=3
> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
> XDG_SESSION_TYPE=x11
> XDG_VTNR=7
>
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] OH NO - not this ? again...

2017-09-02 Thread Fernando Cabral
Myself? I'd be benefited with a comprehensive answer to this quest. To this
moment I have not been able to create a package that, by itself, would work
in a new machine. Up to now, the solution I have found is no solution at
all: I install the whole gambas package and then copy the source directory.

It would be great to know what is the right thing to do.

- fernando

2017-09-01 17:18 GMT-03:00 mikeB <mi...@my-audiosharing.com>:

> eGreetings - The World of Gambas,
>
> Most likely most of you will be thinking "OH NO - not this subject again"
> but I'm sure I'm not the only one trying to switch from vb6(M$) to Gambas
> (Linux freedom)
> that after many hours of research - is very confused on what is required
> to create/ re-distribute
> an install file (e.g. xxx.deb).
>
> I'm finding that this problem is harder to understand/ solve then the
> codling diff (vb6 vs Gambas).
> Maybe, surely your advice will help many others ;-)
>
> So here goes - my newbie questions:
> * are the Gambas runtime files most always backward compatible?
>
> * if so = why doesn't the "MAKE > Installation package" function
> automatically include them?
> From my testing it does not - get install error "Can not install - "Gambas
> runtime files missing blah, blah.."
>
> Not a criticism but only a question - there most likely is a good reason?
>
> * Is there somewhere/ someone that creates/ offers the current runtime
> files for download as a setup (e.g. Gambas-runtime.deb)?
> I'm think'n that I could just have the end user download and run before
> install of my offering (Gambas app.)
>
> * If not = how do I deal with this (include the runtime files) - PLEASE,
> so even I can understand ;-)
>
> A BIG THANKS to anyone taking the time to advance this newbie, and others
> knowledge!
>
> It will be a big help in advancing development of Linux Gambas apps so
> folks can rid themselves from M$.
>
> Have a GREAT day,
> mikeB
>
> PS: see that there are some of you that is working hard on the terminal
> component - will be a VERY exciting addition to Gambas
>
> when completed - if you would, please inform the list when stable (and
> what is needed to do to implement).
>
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Why is this code running twice?

2017-08-02 Thread Fernando Cabral
2017-08-02 6:40 GMT-03:00 Fabien Bodard <gambas...@gmail.com>:

> Ok Fernando ... your code is no so bad :-)
>
>
> ==> the code revised
>
>
Still being executed twice. I have not been able to understand why.

Thanks.

- fernando


> ' Gambas class file
>
> Private Const W As Integer = 2048
> Private Const H As Integer = 2048
>
> Public Sub _new()
>
> dwgArea.width = 800 ' does nothing
>   dwgArea.Height = 1000 ' does nothing  Print dwgArea.width; dwgArea.Height
>   dwgArea.Refresh
> End
>
>
>
> Public Sub DwgArea_Draw()
>
>   Dim angle As Float
>   Dim eScale As Float
>   Dim i As Integer
>
>   Print "Executing" & Now
>
>   Paint.Translate(dwgArea.W / 2, dwgArea.H / 2)
>   Paint.Brush = Paint.Color(Color.SetAlpha(Color.Red, 128))
>   Paint.LineWidth = 1
>
>   For i = -15 To 195 Step 15
>
> angle = Rad(CFloat(i))
> Paint.MoveTo(0, 0)
> Paint.LineTo(Cos(angle) * W / 2, Sin(angle) * H / 2)
> Print Cos(angle) * w / 2
> Paint.Stroke
> 'Paint.Fill
>   Next
>
> End
>
>
> Best Regards,
>
> Fabien Bodard
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Why is this code running twice?

2017-08-02 Thread Fernando Cabral
2017-08-02 6:40 GMT-03:00 Fabien Bodard <gambas...@gmail.com>:

> Ok Fernando ... your code is no so bad :-)
>
> I know. Some explanations bellow.

>
> First never call the resizing of the caneva in the drawing event as it
> call itself the drawing event ... (normally if I rememember well it
> have been disabled)
> So you must resize in another place.
>
> then I don't really understand why you are resizing the drawingarea
> and not the windows... but you must have your idea.
>

This was only a test (as other lines). I am trying to figure out how the
code works.
I got the original code from the software farm (analogic clock) and then I'
ve been pruning it what I need.

But this assignement, besides doing nothing, is not the reason for the loop.
I know so because I can delete it and the behaviour is the same.

>
> You need to call DrawingArea.Refresh Function to force the refresh so
> the _Draw event calling. Or resising the form, or anything else that
> force the need to refresh the area.
>

You mean, for the resizing to take place?


>
>
> For example if you want to make a clock you do :
>
> 'Where timer delay is 1000 for example
> Public sub MyTimer_Timer()
>
> $dCurTime = GetCurTime()
> dwgClock.Refresh
>
> End
>
>
> Yep! That's the functionality the original code had. Nevertheless,
the only thing I want (and I am trying to learn how to do) is to draw some
lines
at certain angles inside a square or a rectangle. (the angles you see in
the
for loop is only for testing the concept. Real angles will be a different).

The "Print "executing" & Now' is also only for testing purpose. I suspected
the code
was in loop but could figure out why. So I placed this printing thing there
to confirm.
And, yes, it prints continuously changing the time.

>
> ==> the code revised
>
> ' Gambas class file
>
> Private Const W As Integer = 2048
> Private Const H As Integer = 2048
>
> Public Sub _new()
>
> dwgArea.width = 800 ' does nothing
>   dwgArea.Height = 1000 ' does nothing  Print dwgArea.width; dwgArea.Height
>   dwgArea.Refresh
> End
>
>
>
> Public Sub DwgArea_Draw()
>
>   Dim angle As Float
>   Dim eScale As Float
>   Dim i As Integer
>
>   Print "Executing" & Now
>
>   Paint.Translate(dwgArea.W / 2, dwgArea.H / 2)
>   Paint.Brush = Paint.Color(Color.SetAlpha(Color.Red, 128))
>   Paint.LineWidth = 1
>
>   For i = -15 To 195 Step 15
>
> angle = Rad(CFloat(i))
> Paint.MoveTo(0, 0)
> Paint.LineTo(Cos(angle) * W / 2, Sin(angle) * H / 2)
> Print Cos(angle) * w / 2
> Paint.Stroke
> 'Paint.Fill
>   Next
>
> End
>
>
> Best Regards,
>
> Fabien Bodard
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Why is this code running twice?

2017-08-02 Thread Fernando Cabral
2017-08-02 7:05 GMT-03:00 Adrien Prokopowicz <adrien.prokopow...@gmail.com>:


Le Wed, 02 Aug 2017 03:38:33 +0200, Fernando Cabral <
> fernandojosecab...@gmail.com> a écrit:
>
> Besides, I have a question: when a drawing area is created, it (0,0)
>> supposed to be the central point?
>>
>>
> No. Unlike math where the origin (0,0) is usually represented in the
> center,
> the origin of screen coordinates is always located in the top-left corner.
>
> If you want the actual center of your DrawingArea, you will have to use
> the following coordinates :
>
> x = DrawingArea.Width / 2
> y = DrawingArea.Height / 2
>

Problem is: this simple instruction "Paint.MoveTo(0, 0)" moves the cursor
to the center
of the drawing area.  I expected it to move it to the left superior corner.
I can't figure why.

Regards

- fernando


> Hope this helps. :-)
>
> Regards,
>
> [0] http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea
> [1] http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea/cached
> [2] http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea/refresh
>
> --
> Adrien Prokopowicz
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Why is this code running twice?

2017-08-01 Thread Fernando Cabral
I am trying to create a sundial faceplate. I took the analogic clock,
discarded what I did not need and thought I was ready to work on the
calculations and drawing of the hour angles.

Nevertheless, I am mystified by two things I can't understand:
a) The code produces a loop I can't see why (I am not referring to the FOR
loop)
b) I can't modify the drawing area dimensions ( dwgArea.width = 800  does
not work)

Besides, I have a question: when a drawing area is created, it (0,0)
supposed to be the central point?

The code follows:

























*Private Const W As Integer = 2048Private Const H As Integer = 2048Public
Sub DwgArea_Draw()  Dim angle As Float  Dim eScale As Float  Dim i As
Integer  Print "Executing" & Now  dwgArea.width = 800 ' does nothing
dwgArea.Height = 1000 ' does nothing  Print dwgArea.width; dwgArea.Height
Paint.Translate(dwgArea.W / 2, dwgArea.H / 2)   Paint.Brush =
Paint.Color(Color.SetAlpha(Color.Red, 128))   Paint.LineWidth = 1For i
= -15 To 195 Step 15   angle = Rad(CFloat(i))   Paint.MoveTo(0, 0)
Paint.LineTo(Cos(angle) * W / 2, Sin(angle) * H / 2)   Paint.Stroke
Paint.Fill  NextEnd*



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] I need help to start drawing with Gambas

2017-07-30 Thread Fernando Cabral
2017-07-30 17:51 GMT-03:00 Tobias Boege <tabo...@gmail.com>:

> On Sun, 30 Jul 2017, Fernando Cabral wrote:
> To get you started, you can find the ancient AnalogWatch example on the
> software farm, which draws an analog wall clock. If you're proficient
> with trigonometry you can concentrate on the Paint bits of the source
> code.
>

Yes, I think this analogwatch will do for simple sundials (regular,
horizontal sundials).
I will only have to tinker with the angles to adapt them to the latitude.

I'll leave more complex things for the future.
Thank you.

- fernando


>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] I need help to start drawing with Gambas

2017-07-30 Thread Fernando Cabral
Perhaps some of you have a little time available to point me the direction
for this littledelineate project of mine.

I like to play with sundials. Basically, it consists in calculating some
lines and angles and then drawing them on the ground, marble, concrete,
etc. Things are conceptually very easy. I have line lengths and angles. I
can use either or both to delineate the sundial face.

I would guess I will have to resort to cairo or chart, but I don't know
where to start from. I'd appreciate a few hints.

Thanks.

- fernando

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-07-28 Thread Fernando Cabral
Piccoro, sorry for my previous information. Something was missing.
In fact, both versions work the same:












*  strinchar = "test )after)r"positionlen = (InStr(strinchar, ")", -1)
- 1)Print strincharPrint positionlenstrinchar = Mid(strinchar,
1, positionlen) Print strincharstrinchar = "test )after)r"
strinchar = Mid(strinchar, 1, (InStr(strinchar, ")", -1) - 1))Print
strinchar *
Both print  "test )after"

- fernando

2017-07-28 22:02 GMT-03:00 Adrien Prokopowicz <adrien.prokopow...@gmail.com>
:

>
> Le Sat, 29 Jul 2017 02:40:44 +0200, Jussi Lahtinen <
> jussi.lahti...@gmail.com> a écrit:
>
> No... again. My initial mail was correct. It should be:
>> strinchar = Mid(strinchar, 1, (InStr(strinchar, ")", -1) - 1))
>>
>> But the IDE makes highlighting bug with the brackets.
>>
>>
>> Jussi
>>
>> On Sat, Jul 29, 2017 at 3:33 AM, Jussi Lahtinen <jussi.lahti...@gmail.com
>> >
>> wrote:
>>
>> Hmmm... sorry, no mistake... I will look closer.
>>>
>>>
>>> Jussi
>>>
>>> On Sat, Jul 29, 2017 at 3:33 AM, Jussi Lahtinen <
>>> jussi.lahti...@gmail.com>
>>> wrote:
>>>
>>> Because the line makes no sense at all. Try to remove ")".
>>>>
>>>>
>>>> Jussi
>>>>
>>>> On Fri, Jul 28, 2017 at 11:55 PM, PICCORO McKAY Lenz <
>>>> mckaygerh...@gmail.com> wrote:
>>>>
>>>> in the following code:
>>>>>
>>>>> strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1)
>>>>>
>>>>> IDE said error invalid argument, but if i do:
>>>>>
>>>>> psotionlen = InStr(strinchar, ")", -1) - 1
>>>>>  strinchar = Mid(strinchar, 1, psotionlen)
>>>>>
>>>>> works, why?
>>>>>
>>>>> i wnat to remove the last occurence of a char but bybass some possible
>>>>> spaces/chars at the end of string
>>>>>
>>>>> Lenz McKAY Gerardo (PICCORO)
>>>>> http://qgqlochekone.blogspot.com
>>>>>
>>>>
> Actually, his original code is correct. For me it runs without error in
> the IDE using
> the 3.10 development version, but the editor is indeed having trouble
> matching the
> parentheses.
>
> I also tried it on the playground (which also uses 3.10) and it works
> fine : https://gambas-playground.proko.eu/?gist=97ed16795393aa3b689
> 13025e5d2b83c .
>
> However the playground's editor does match the parentheses correctly. :)
>
> Which Gambas version are you using ? There may be an old bug here.
>
> --
> Adrien Prokopowicz
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-07-28 Thread Fernando Cabral
2017-07-28 20:46 GMT-03:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:

> 2017-07-28 17:17 GMT-04:00 Fernando Cabral <fernandojosecab...@gmail.com>:
>
>> > in the following code:
>> > strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1)
>> > What does inStr() returns if nothing is found? You may be passing an
>> invalid argument to Mid().
>> Please, check it up.
>>
>
> fernando check it up you, if i do the instr() -1 separately works... dou
> you see the code before answer:
>
> strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1) ' does
> not work
>
> IDE said error invalid argument, but if i do:
>
> psotionlen = InStr(strinchar, ")", -1) - 1   ' separate the stolen
> and..
>  strinchar = Mid(strinchar, 1, psotionlen)  ' put in here then works
> ?!?!?!!?
>
> works, why?
>

I did the following test. It did not work as expected, but it did work.
I mean, I got no errors, but it did not work as expected in the sense that
the search seems always to be done from left to right, not right to left,
even if the third parameter is negative.

   Dim strinchar As String
   Dim positionlen As Integer

strinchar = "test )after)r"
positionlen = String.InStr(strinchar, ")", -1) - 1
Print strinchar
Print positionlen
strinchar = Mid(strinchar, 1, positionlen)
Print strinchar
strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1)
Print strinchar


This prints:

test )after)r
5
test
test

Regards

- fernando



>
>> - fernando
>>
>> > IDE said error invalid argument, but if i do:
>> >
>> > psotionlen = InStr(strinchar, ")", -1) - 1
>> >  strinchar = Mid(strinchar, 1, psotionlen)
>> >
>> > works, why?
>> >
>> > i wnat to remove the last occurence of a char but bybass some possible
>> > spaces/chars at the end of string
>> >
>> > Lenz McKAY Gerardo (PICCORO)
>> > http://qgqlochekone.blogspot.com
>> > 
>> > --
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > ___
>> > Gambas-user mailing list
>> > Gambas-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>>
>>
>>
>> --
>> Fernando Cabral
>> Blogue: http://fernandocabral.org
>> Twitter: http://twitter.com/fjcabral
>> e-mail <http://twitter.com/fjcabral%0Ae-mail>:
>> fernandojosecab...@gmail.com
>> Facebook: f...@fcabral.com.br
>> Telegram: +55 (37) 99988-8868 <%2837%29%2099988-8868>
>> Wickr ID: fernandocabral
>> WhatsApp: +55 (37) 99988-8868 <%2837%29%2099988-8868>
>> Skype:  fernandojosecabral
>> Telefone fixo: +55 (37) 3521-2183 <%2837%29%203521-2183>
>> Telefone celular: +55 (37) 99988-8868 <%2837%29%2099988-8868>
>>
>> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
>> nenhum político ou cientista poderá se gabar de nada.
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-07-28 Thread Fernando Cabral
2017-07-28 17:55 GMT-03:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:

> in the following code:
>
> strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1)
>
> What does inStr() returns if nothing is found? You may be passing an
invalid argument to Mid().
Please, check it up.

- fernando

> IDE said error invalid argument, but if i do:
>
> psotionlen = InStr(strinchar, ")", -1) - 1
>  strinchar = Mid(strinchar, 1, psotionlen)
>
> works, why?
>
> i wnat to remove the last occurence of a char but bybass some possible
> spaces/chars at the end of string
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread Fernando Cabral
2017-07-28 12:50 GMT-03:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:

> wow! i must made a string search procedure until "comment" was find.. !
>
> i think that but i also think that a reg expresion must be better with pcre
> component!
>

My suggestion it to be used with pcre componte. I only gave you the search
and replace regular expression. Something like

NewLine  = RegExp.Replace(OldLIne,
"^(.*?) COMMENT +?(".*?")(,.*?)", "&1 \*&2*/&3", RegExp.UTF8)

But, since I presume you'll be using it several times, then it will be more
efficiente if you compile it first.

- fernando

Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-07-28 11:34 GMT-04:00 Fernando Cabral <fernandojosecab...@gmail.com>:
>
> > 2017-07-28 11:57 GMT-03:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:
> >
> > >
> > > my target objetive it parse a text/line like this:
> > >
> > >  fiel1 TEXT COMMENT "coment fiel1" , field2 TEXT, fiel3 TEXT
> > >  fiel4 NUMBER(10,2), fiel5 TEXT COMMENT "pepepeep",
> > >  fiel6 TEXT
> > >
> > > into this:
> > >
> > >  fiel1 TEXT /* coment fiel1*/ , field2 TEXT, fiel3 TEXT
> > >  fiel4 NUMBER(10,2), fiel5 TEXT /*pepepeep*/,
> > >  fiel6 TEXT
> > >
> >
> > Let me see if I have understood this well enough:
> > a) find the word " COMMENT " (whitespace before and after), followed by
> > whatever till you find a "," (comma)
> > b) Delede " COMMENT " and put "whatever" between "/*" and "*/"
> > c) Leave untouched whatever is after the first "," (comma) including the
> > comma itself.
> >
> > Is that right? If it is, you should start by compiling this regular
> > expression:
> >
> > "^(.*?) COMMENT +?(".*?")(,.*?)"
> >
> > And the replace by: "&1 \*&2*/&3"  (scape as needed) and this should
> work.
> >
> > what it does:
> > a) from the start of the line, find whatever exists until the expression
> "
> > COMMENT " -- which should not be included.
> > b) Save that firt part into the buffer number 1
> > c) Skip til after the last white space after " COMMENT " - throw that
> away
> > d) save the next portion between double quotes and save into buffer
> number
> > 2
> > e) Save next portion into buffer number 3
> >
> > Put back the contents from buffer 1, add "\*", put back the contents of
> > buffer 2, add "*/" and then put back the contents of buffer number 3.
> >
> > You may have to tinker around a little, but I think this contains the
> basic
> > ideia.
> >
> > - fernando
> >
> >
> >
> >
> > Lenz McKAY Gerardo (PICCORO)
> >
> > > http://qgqlochekone.blogspot.com
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> >
> >
> >
> > --
> > Fernando Cabral
> > Blogue: http://fernandocabral.org
> > Twitter: http://twitter.com/fjcabral
> > e-mail: fernandojosecab...@gmail.com
> > Facebook: f...@fcabral.com.br
> > Telegram: +55 (37) 99988-8868
> > Wickr ID: fernandocabral
> > WhatsApp: +55 (37) 99988-8868
> > Skype:  fernandojosecabral
> > Telefone fixo: +55 (37) 3521-2183
> > Telefone celular: +55 (37) 99988-8868
> >
> > Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> > nenhum político ou cientista poderá se gabar de nada.
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdo

Re: [Gambas-user] replace beetween two strings

2017-07-28 Thread Fernando Cabral
2017-07-28 13:11 GMT-03:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:

>
> " string pepe pablo, data toto made thinker data2 \" and also a pizza"
>
> i what to remove all the string or extrac all the string beetween the
> "data" fist ocurrence and the next after that ocurrence..
>

".*?data (.*?) data2" saves the substring between "data" and "data2" to the
first buffer.

You can recover it with &1 (\1 in more traditional regex replace).

- fernando

>
> i try to do but in the for each always replace twice..
>
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] textarea won't accept text

2017-07-28 Thread Fernando Cabral
Perhaps Bill has met the same problem I have here. I can't use IDE in my
regular machines because it will not take anything from the keyboard. I
only can edit my source code using a virtual machine.
Nevertheless - I must add - the textarea in my program is working fine.

- fernando

2017-07-28 12:16 GMT-03:00 Charlie <char...@cogier.com>:

> bill-lancaster wrote
> > I'm obviously missing something here but have just added a textarea
> > control to my form.
> > I can display text in it from code but can only enter one character.
> > Any ideas?
>
> I have tried this and I can't find a fault. I can enter as much text as I
> like. Put text in with code and add more text with the keyboard. I have
> tested it with gb.gui, gb.gtk3 and gb.qt4 and all behave the same.
>
> An example, as Adrien said, might help.
>
>
>
> -
> Check out www.gambas.one
> --
> View this message in context: http://gambas.8142.n7.nabble.
> com/textarea-won-t-accept-text-tp59911p59922.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread Fernando Cabral
2017-07-28 11:57 GMT-03:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:

>
> my target objetive it parse a text/line like this:
>
>  fiel1 TEXT COMMENT "coment fiel1" , field2 TEXT, fiel3 TEXT
>  fiel4 NUMBER(10,2), fiel5 TEXT COMMENT "pepepeep",
>  fiel6 TEXT
>
> into this:
>
>  fiel1 TEXT /* coment fiel1*/ , field2 TEXT, fiel3 TEXT
>  fiel4 NUMBER(10,2), fiel5 TEXT /*pepepeep*/,
>  fiel6 TEXT
>

Let me see if I have understood this well enough:
a) find the word " COMMENT " (whitespace before and after), followed by
whatever till you find a "," (comma)
b) Delede " COMMENT " and put "whatever" between "/*" and "*/"
c) Leave untouched whatever is after the first "," (comma) including the
comma itself.

Is that right? If it is, you should start by compiling this regular
expression:

"^(.*?) COMMENT +?(".*?")(,.*?)"

And the replace by: "&1 \*&2*/&3"  (scape as needed) and this should work.

what it does:
a) from the start of the line, find whatever exists until the expression "
COMMENT " -- which should not be included.
b) Save that firt part into the buffer number 1
c) Skip til after the last white space after " COMMENT " - throw that away
d) save the next portion between double quotes and save into buffer number 2
e) Save next portion into buffer number 3

Put back the contents from buffer 1, add "\*", put back the contents of
buffer 2, add "*/" and then put back the contents of buffer number 3.

You may have to tinker around a little, but I think this contains the basic
ideia.

- fernando




Lenz McKAY Gerardo (PICCORO)

> http://qgqlochekone.blogspot.com
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-07-18 Thread Fernando Cabral
; > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] My quest for efficiency

2017-07-16 Thread Fernando Cabral
Thank you, Caveat [emptor?].
The code you proposed worked very, very well.
In fact, I timed it against two versions of the C program and the result
was quite good.
In C, reading from the standard input and writing to the standard output
took a trifle beyond half a second (0.6?? real time).

Meanwhile, your version in Gambas ran in 2.5?? (real time). The question
mark means little variation from trial to trial.

Out of curiosity, I wrote a Gambas version similar to the C version. Here
are the two codes:

  *Dim b As Byte*




*  While Not Eof()b = Read As ByteWrite (b + 11) As Byte  Wend*

- - - - -  - -





*  int c;  while((c = getchar()) != EOF) putchar(c + 11);*

The C version ran in 0.59 against the Gambas version that ran in 7.6
seconds (real time). Not too bad in my opinion!

Then I tried to stretch it a little bit and wrote:


*  Write (( Read As Byte) + 11) As Byte*
Alas! this is something Gambas does not understand.

These are just for the sake of experience. I am happy with the solution
Caveat proposed.
Thank you.

2017-07-15 17:28 GMT-03:00 Caveat <gam...@youngjules.net>:

> Something is horribly wrong, or you're running on a 286 :-)
>
> I just tested here, and the program runs on a 51 MB test file in about 5
> seconds.
>
> Some reasonably well commented code for you...
>
> Public Sub Main()
>
>   Dim inFile, outFile As File
>   Dim buff As New Byte[1024]
>   Dim idx, remBytes, readSize As Integer
>
>   ' CHANGE THIS to your input file
>   inFile = Open "/home/caveat/Downloads/mytestfile" For Read
>
>   ' CHANGE THIS to your output file
>   outFile = Open "/home/caveat/Downloads/mytestfile.out2" For Create
>
>   ' Remaining bytes starts as the total length of the file
>   remBytes = Lof(inFile)
>
>   ' Until we reach the end of the input file...guess you could instead
> check on remBytes...
>   While Not Eof(inFile)
> If remBytes > buff.length Then
>   ' Limit reading to the size of our buffer (the Byte[])
>   readSize = buff.length
> Else
>   ' Only read the bytes we have left into our buffer (the Byte[])
>   readSize = remBytes
> Endif
> ' Read from the input file into our buffer, starting at offset 0 in
> the buffer
> buff.Read(inFile, 0, readSize)
> ' Update the number of bytes remaining...
> remBytes = remBytes - readSize
> ' Run round each byte in our buffer
> For idx = 0 To buff.length - 1
>   ' Dunno if you need any conditions, I check for > 30 as I can put
> newlines in the file to make it more readable for testing
>   If buff[idx] > 30 Then
> ' This is the 'trick' you need to apply... subtract 11 from every
> byte in the file
> ' Not sure how you deal with edge cases... if you have a byte of
> 5, is your result then 250?
> buff[idx] = buff[idx] - 11
>   Endif
> Next
> ' Write the whole buffer out to the output file
> buff.Write(outFile, 0, readSize)
>   Wend
>
>   Close #inFile
>   Close #outFile
>
> End
>
>
> Kind regards,
> Caveat
>
> On 15-07-17 21:24, Benoît Minisini via Gambas-user wrote:
>
>> Le 15/07/2017 à 20:49, Tony Morehen a écrit :
>>
>>> Did you try Benoit's suggestion:
>>>
>>> Public Sub Main()
>>>
>>>Dim sIn as String
>>>Dim sOut as String
>>>
>>>sIn = File.Load("/home/fernando/temp/deah001.dhn")
>>>sOut = Add11(sIn)
>>>File.Save("/home/fernando/temp/deah001.11Added.dhn", sOut)
>>>
>>> End
>>>
>>> Public Sub Add11(InputString as String) as String
>>>Dim bArray As Byte[]
>>>Dim String11 As String
>>>Dim i As Integer
>>>
>>>bArray = Byte[].FromString(InputString)
>>>For i = 0 To bArray.Max
>>>  bArray[i] += 11
>>>Next
>>>   Return bArray.ToString
>>> End
>>>
>>>
>>>
>> Just a remark:
>>
>> You don't have to use Byte[].FromString.
>>
>> You can use the Bute[].Read() method instead, to load the file directly
>> into the array. You save an intermediate string that way.
>>
>> Regards,
>>
>>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.

Re: [Gambas-user] My quest for efficiency

2017-07-15 Thread Fernando Cabral
Well, after 5 hours the most efficient version is still running. Only 1/5
of the file has been processed. The less efficient version has only
processed 1 MB, or 1/ 42 of the file.

So I decided to write a C program to do the same task. Since I have not
been using C in the last 20 years, I did not try any fancy thing. I know C
has to be more efficient, so I expected to find find, perhaps, 10 minutes,
5 minutes. Not so. To my surprise, the program bellow did the whole thing
in ONE SECOND!

I found this to be quite inexpected.

















*#include int main(void){FILE *fp;int c;fp =
fopen("/home/fernando/temp/deah001.dhn", "r");while((c = fgetc(fp)) !=
EOF) {putchar(c + 11);}fclose(fp);return 0;}*

I am sure there is a way to do this efficiently in Gambas.Certainly not in
1 second, as it happened here, but perhaps in 5 or 10 minutes instead of
the several hours it is now taking.

- fernando

2017-07-15 11:08 GMT-03:00 Fernando Cabral <fernandojosecab...@gmail.com>:

> Hi
>
> I've found a file whose text has been obfuscated by subtracting 11 from
> every byte. Now I want to bring it back to regular text. To do this I have
> to add 11 to each byte read from that file. Now, I have tried several ways
> to do it, and they all seemed every inefficient to me. Two examples follow
>
>
>
>
>
>
>
>
>
>
>
> *j = 0For i = 0 To Len(RawText)str &= Chr(CByte(Asc(RawText, i) + 11))  '
> either this or the following'Mid(Rawtext, i, 1) = Chr(CByte(Asc(RawText, i)
> + 11))Inc jIf j = 10 Then   Print i; Now   j = 0EndifNext*
>
> In the first option (uncommented) I am building a new string byte by byte.
> In the second option (commented) I am replacing each character in place.
> I expected the second option to be way faster, especially because there is
> no need for the string to be reallocated. Nevertheless, it showed to be a
> snail.
> The first option, in spite of the fact that it grows slower and slower as
> the string grows, is still way faster than the second option.
>
>
> To me it does not make sense. Does it for you?
> Also, is there a faster way to do this?
>
> --
> Fernando Cabral
> Blogue: http://fernandocabral.org
> Twitter: http://twitter.com/fjcabral
> e-mail: fernandojosecab...@gmail.com
> Facebook: f...@fcabral.com.br
> Telegram: +55 (37) 99988-8868 <(37)%2099988-8868>
> Wickr ID: fernandocabral
> WhatsApp: +55 (37) 99988-8868 <(37)%2099988-8868>
> Skype:  fernandojosecabral
> Telefone fixo: +55 (37) 3521-2183 <(37)%203521-2183>
> Telefone celular: +55 (37) 99988-8868 <(37)%2099988-8868>
>
> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> nenhum político ou cientista poderá se gabar de nada.
>
>


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] My quest for efficiency

2017-07-15 Thread Fernando Cabral
Hi

I've found a file whose text has been obfuscated by subtracting 11 from
every byte. Now I want to bring it back to regular text. To do this I have
to add 11 to each byte read from that file. Now, I have tried several ways
to do it, and they all seemed every inefficient to me. Two examples follow











*j = 0For i = 0 To Len(RawText)str &= Chr(CByte(Asc(RawText, i) + 11))  '
either this or the following'Mid(Rawtext, i, 1) = Chr(CByte(Asc(RawText, i)
+ 11))Inc jIf j = 10 Then   Print i; Now   j = 0EndifNext*

In the first option (uncommented) I am building a new string byte by byte.
In the second option (commented) I am replacing each character in place.
I expected the second option to be way faster, especially because there is
no need for the string to be reallocated. Nevertheless, it showed to be a
snail.
The first option, in spite of the fact that it grows slower and slower as
the string grows, is still way faster than the second option.


To me it does not make sense. Does it for you?
Also, is there a faster way to do this?

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] how to log to stdout/stderr

2017-07-13 Thread Fernando Cabral
2017-07-13 21:21 GMT-03:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:

> the nohup trick not always work.. for that there's the gambas redirection
> print.. that's why i ask previously how i detec if are runnig inside ide..
> if are inside ide. let normal print, if not, redirect...
>
> I am not sure I have understood what you said. What I can say is that, for
logging purpose, you can just open a regular file and then write to or
append to.

In order to determine if your application is running as a daemon or not, if
can be quite easy and fool proof. For intance, you can create a command
line options like, say "-d". If it is present, your applicaiton should run
as a daemon, so you act accordingly. Otherwise the application is not
running as daemon, so you should act as a regular application.

As to printing (if you mean, printing to a printer proper) you can either
open a pipe to the printer daemon or else create a file and then use a
shell () instruction to print and delete that file. Both should work well.

- fernando




> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-07-13 19:54 GMT-04:00 Fernando Cabral <fernandojosecab...@gmail.com>:
>
> > 2017-07-13 17:11 GMT-03:00 Tobias Boege <tabo...@gmail.com> said:
> >
> > > As we discussed recently [1], stdout and stderr are redirected to
> > /dev/null
> > > when you daemonise, so there is not really any value in wanting to
> print
> > > there if you want to make a daemon.
> >
> >
> > I don't know if I have understood you correctly and completely.
> >  I am an old timer and Linux may have changed things as compared to UNIX.
> > A daemon is supposed to run in the background. Typically, when you put
> > something to
> > run in the background, Unix would send the standard output to... standard
> > output.
> >
> > Now, if you do "nohup something.gambas", standard outuput will to to
> > "nohup.out".
> > But, if you do "nohup something.gambas >x &" or "something.gambas >x",
> > standard output wll be sent to "x".
> >
> > In any case, if you don't want to preserve any output, you should
> redirect
> > stderr and
> > stdout to /dev/null.
> >
> > I would guess that a daemon started at startup or by cron would give the
> > same result.
> > Am I wrong?
> >
> > Regards
> >
> > - fernando
> >
> > > [1] https://sourceforge.net/p/gambas/mailman/gambas-user/
> > > thread/1498036647346-59450.post%40n7.nabble.com/#msg35904830
> > > [2] https://stackoverflow.com/questions/17954432/creating-a-
> > > daemon-in-linux
> > >
> > > --
> > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk
> > >
> > > --------
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> >
> >
> >
> > --
> > Fernando Cabral
> > Blogue: http://fernandocabral.org
> > Twitter: http://twitter.com/fjcabral
> > e-mail: fernandojosecab...@gmail.com
> > Facebook: f...@fcabral.com.br
> > Telegram: +55 (37) 99988-8868
> > Wickr ID: fernandocabral
> > WhatsApp: +55 (37) 99988-8868
> > Skype:  fernandojosecabral
> > Telefone fixo: +55 (37) 3521-2183
> > Telefone celular: +55 (37) 99988-8868
> >
> > Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> > nenhum político ou cientista poderá se gabar de nada.
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.n

Re: [Gambas-user] how to log to stdout/stderr

2017-07-13 Thread Fernando Cabral
2017-07-13 17:11 GMT-03:00 Tobias Boege <tabo...@gmail.com> said:

> As we discussed recently [1], stdout and stderr are redirected to /dev/null
> when you daemonise, so there is not really any value in wanting to print
> there if you want to make a daemon.


I don't know if I have understood you correctly and completely.
 I am an old timer and Linux may have changed things as compared to UNIX.
A daemon is supposed to run in the background. Typically, when you put
something to
run in the background, Unix would send the standard output to... standard
output.

Now, if you do "nohup something.gambas", standard outuput will to to
"nohup.out".
But, if you do "nohup something.gambas >x &" or "something.gambas >x",
standard output wll be sent to "x".

In any case, if you don't want to preserve any output, you should redirect
stderr and
stdout to /dev/null.

I would guess that a daemon started at startup or by cron would give the
same result.
Am I wrong?

Regards

- fernando

> [1] https://sourceforge.net/p/gambas/mailman/gambas-user/
> thread/1498036647346-59450.post%40n7.nabble.com/#msg35904830
> [2] https://stackoverflow.com/questions/17954432/creating-a-
> daemon-in-linux
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] About gambas, the word

2017-07-13 Thread Fernando Cabral
*Warning: this is only a linguistic curiosity with no relation to Gambas,
the language.*

Entirely by chance, I came across the following definition and etymology
for gambas, the word:










*From Petit Robert 2007: gambasgambas [gɑ̃bas] nom féminin plurielétym.
répandu v. 1960; catalan gamba, du latin populaire cambarus, classique
cammarus, du grec kammarosv■ Grosses crevettes comestibles de la
Méditerranée. Gambas frites (è scampi), grillées. Brochette de gambas.▫
Rare Une gamba [gɑ̃ba].*
In Brazil, I never heard the word gamba. I never found it in written text.
Nevertheless, at least one Brazilian dictionary registers it as a Spanish
word only recently introduced into Portuguese. So, perhaps it is used in
Portugal.

Anyway, it is interesting to know that, in the end, it comes from Greek
"kammaros" that gave us the Portuguese "camarão" and the Italian
"gamberetto". Nevertheless, at the first sight, it is hard to see that
"gamba" and "camarão" come from the same Greek word.

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Best ways to format float values

2017-07-13 Thread Fernando Cabral
I can say this is the best way to do what you want, but I use the following:





* Print Int(100.55 * 100) / 100.00 Print Round(100.55, -2)*
The first operation truncates the number to 100.55 (no rounding takes
effect).
The second operation rounds the number to at most two digits after the
decimal separator.
This means in the example above, result will be 100.56. If the number was
100.5
it would be rounded to 100.6.

Again, I dont know if those are the best way to do it, but it works.

Regards

-fernando



2017-07-13 2:39 GMT-03:00 alexchernoff <alexchern...@hotmail.com>:

> Peace to all,
>
> this might a bit silly but what is the best way to format float values like
> 26.66016 into having two digits AND/OR  with rounding them?
>
> e.g.
>
> 26.66016 becomes 26.66 shortened
> 26.66016 becomes 26.67 rounded
>
> cheers!
>
>
>
>
>
> --
> View this message in context: http://gambas.8142.n7.nabble.
> com/Best-ways-to-format-float-values-tp59733.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to make installation package

2017-07-07 Thread Fernando Cabral
2017-07-07 10:15 GMT-03:00 <gbwi...@openmailbox.org>: wrote

The target system where you want to install the gambas application on has
>>> to have the link to the gambas repository.
>>> Seems you are on Debian/Ubuntu.
>>>
>>> For Ubuntu open terminal on target system and do:
>>>
>>> sudo add-apt-repository ppa:gambas-team/gambas3
>>> sudo apt-get update
>>>
>>>
>>> Next you can install your gambas application, it will pull in all
>>> dependencies (like interpreter) and install them.
>>> It will only install those parts of Gambas the application needs to run
>>> properly.
>>>
>>>
>>> Above is for Gambas stable 3.9.2, if you developed your application in
>>> trunk you will need to add trunk repo to target system instead of stable
>>> repo.
>>>
>>> Hope this explains all.
>>
>>
Willy, it does explain. Just to be on the safe side:
a) It means Gambas iteself is not installed when we run the package
installer, right?
b) What do the *.deb files do? Just copy the sorce code and the bytecode to
the new system?

Thank you.

- fernando

On 2017-07-06 03:43, Fernando Cabral wrote:
>
>> I'd like to make an installation package to install a gambas program on a
>> machine that does not have gambas. I tried doing it clicking on
>> Project -> Make -> Installation package.
>> After presenting some questions, it runs and creates 22 files (regular,
>> .gz, dsc and deb files). Four of them a *.deb files. Now, here are the
>> issues:
>>
>> 1) They are all small files, so, for sure, they do not contain the
>> interpreter
>> 2) trying to install the deb files results in nothing (no error message,
>> but nothing happens)
>>
>>
> The target system where you want to install the gambas application on has
> to have the link to the gambas repository.
> Seems you are on Debian/Ubuntu.
>
> For Ubuntu open terminal on target system and do:
>
> sudo add-apt-repository ppa:gambas-team/gambas3
> sudo apt-get update
>
>
> Next you can install your gambas application, it will pull in all
> dependencies (like interpreter) and install them.
> It will only install those parts of Gambas the application needs to run
> properly.
>
>
> Above is for Gambas stable 3.9.2, if you developed your application in
> trunk you will need to add trunk repo to target system instead of stable
> repo.
>
> Hope this explains all.
>
> gbWilly
>
>
> ----
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-07-06 Thread Fernando Cabral
Based on the image you've sent a link to, I have not been able to
understand how to do it.

Thank you.

- fernando

2017-07-06 11:08 GMT-03:00 Charlie <char...@cogier.com>:

> Fernando Cabral wrote
> > I'd like to display text highlights like bold and italics. Can I do it
> > using TextArea? If yes, how?
> >
> > If I can't which resource should I use?
>
> Try using a TextLabel: -
>
> <http://gambas.8142.n7.nabble.com/file/n59696/GUITest.png>
>
>
>
>
> -
> Check out www.gambas.one
> --
> View this message in context: http://gambas.8142.n7.nabble.
> com/What-is-the-simplest-way-to-display-text-properties-in-
> Gambas-tp59692p59696.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to make installation package

2017-07-05 Thread Fernando Cabral
I'd like to make an installation package to install a gambas program on a
machine that does not have gambas. I tried doing it clicking on
Project -> Make -> Installation package.
After presenting some questions, it runs and creates 22 files (regular,
.gz, dsc and deb files). Four of them a *.deb files. Now, here are the
issues:

1) They are all small files, so, for sure, they do not contain the
interpreter
2) trying to install the deb files results in nothing (no error message,
but nothing happens)

Is there a wiki page where I can get better information on how to do this?

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-07-05 Thread Fernando Cabral
I'd like to display text highlights like bold and italics. Can I do it
using TextArea? If yes, how?

If I can't which resource should I use?

Regards

- fernando

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Isn't bracket regular expression compatible with UTF8?

2017-07-05 Thread Fernando Cabral
Tobi wrote:

> n your mail I can see three distinct attempts at writing down a
> negative character class: [^[:alpha:], [^[alpha]], and [^[:alpha]],
> but the correct syntax is
>
>   [[:^alpha:]]
>
> You want to check this first.


Right again, Tobi. I can't understand how I missed this. Thank you.

- fernando

2017-07-05 6:37 GMT-03:00 Tobias Boege <tabo...@gmail.com>:

> On Tue, 04 Jul 2017, Fernando Cabral wrote:
> > I have been trying something like *poder[^[:alpha:]*  so I  could find
> the
> > word "poder " ("poder" followed by an space) but not "poderão" ("ã" being
> > an alpha character in Portuguese.)
> >
> > In English it could be like finding "power" but not "powerless".
> >
> > Problem is that it seems [^[alpha]] includes accented characters like
> "á",
> > "é", "ã".
> >
> > That is, accented characters are not understood as alpha, but not alpha.
> >
> > Please, note that I have compiled it with the UTF8 flag:
> > *   re.Compile(poder[^[:alpha]], RegExp.utf8)*
> >
> > Any hints?
> >
>
> In your mail I can see three distinct attempts at writing down a
> negative character class: [^[:alpha:], [^[alpha]], and [^[:alpha]],
> but the correct syntax is
>
>   [[:^alpha:]]
>
> You want to check this first.
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-07-05 Thread Fernando Cabral
bb wrote:

>I think you might find that the last character of indesejaveis.txt is a \n
(as is the case for many, many > files) so in actual fact your original
split did exactly what it was supposed to do.
>
> And your work around is correct. Although it is not actually a work
around it is a very
> common  construct when dealing with text files.

> So, I very much doubt there is a bug in File.Load()

In the beginning, I thought I File.Load() had an idiosyncratic behavior.
Then I understood that's not true. It just reads everything from the file
into the variable. So, it is good behavior when it brings in the last "\n".

Then I thought Split() had a strange behavior since it brought in something
that did not exist after the last separator, that is, an empty string.

Then, I discovered I was wrong on this account: if I have a separator as
the last real element, then after that what I have is an empty string. So,
I can't blame Split() for bringing it in. Unless I explicitly tell Split()
to drop it.

Yes, in this case, the bug was in my brain. It is called lack of knowledge
or faulty reasoning.

Thank you bb and Tony for showing me the light.

- fernando


2017-07-05 0:43 GMT-03:00 bb <adamn...@gmail.com>:

> On 05/07/17 11:58, Fernando Cabral wrote:
>
>> I have found and worked around the problem. When you do the following:
>>
>> *Dim Expressions as string[] =
>> Split(File.Load("/home/fernando/.config/libreoffice/4/user/
>> basic/indesejaveis.txt"),
>> "\n") *
>>
>> The last item pushed into *Expressions* is an empty string ("") even
>> though
>> it DOES NOT exist
>> in the file. So, the expressions are compiled one after the other til the
>> last one, that is empty. Then the program crashes.
>>
>> So it seems there is a bug in the *load.file()*. Bug that I was able to
>> compensate for by adding the option *True* in the call to the functions
>> *split()*.
>>
>>
>
>> I think you might find that the last character of indesejaveis.txt is a
> \n (as is the case for many, many files) so in actual fact your original
> split did exactly what it was supposed to do.
>
> And your work around is correct. Although it is not actually a work around
> it is a very common construct when dealing with text files.
>
> So, I very much doubt there is a bug in File.Load()
>
> b
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-07-04 Thread Fernando Cabral
I have found and worked around the problem. When you do the following:

*Dim Expressions as string[] =
Split(File.Load("/home/fernando/.config/libreoffice/4/user/basic/indesejaveis.txt"),
"\n") *

The last item pushed into *Expressions* is an empty string ("") even though
it DOES NOT exist
in the file. So, the expressions are compiled one after the other til the
last one, that is empty. Then the program crashes.

So it seems there is a bug in the *load.file()*. Bug that I was able to
compensate for by adding the option *True* in the call to the functions
*split()*.

2017-07-04 22:29 GMT-03:00 Fernando Cabral <fernandojosecab...@gmail.com>:

> Concerning RegExp I have another mysterious thing to understand
>
> If I do something like:
>
>
>
>
>
>
>
>
> *Searchfor.Push("Word")Searchfor.Push("Power")Searchfor.Push("The
> same")For Each searchedfor In searchfor   re.Compile(searchedfor,
> re.utf8)Next*
> The expression gest compiled. No error.
> Neverthelesse, if I the same words from a file, using this expression:
>
> *Dim Searchfor As New String[] = Split(File.Load("Strings"), "\n")*
>
> re.Compile will not work. It will display an error message saying there is
> nothing to compile. Now, if I do:
>
>
> *print "@" & Searchfor[n] &"@\n"*
> in both cases I will see precisely the same output. I can't distinguish
> one from the other. So, why it compiles in the first case, but does not in
> the second?
>
> This is the mystery I must solve with a little help from a good soul out
> there.
>
> - fernando
>
>
>
> --
> Fernando Cabral
> Blogue: http://fernandocabral.org
> Twitter: http://twitter.com/fjcabral
> e-mail: fernandojosecab...@gmail.com
> Facebook: f...@fcabral.com.br
> Telegram: +55 (37) 99988-8868 <(37)%2099988-8868>
> Wickr ID: fernandocabral
> WhatsApp: +55 (37) 99988-8868 <(37)%2099988-8868>
> Skype:  fernandojosecabral
> Telefone fixo: +55 (37) 3521-2183 <(37)%203521-2183>
> Telefone celular: +55 (37) 99988-8868 <(37)%2099988-8868>
>
> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> nenhum político ou cientista poderá se gabar de nada.
>
>


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-07-04 Thread Fernando Cabral
Concerning RegExp I have another mysterious thing to understand

If I do something like:








*Searchfor.Push("Word")Searchfor.Push("Power")Searchfor.Push("The same")For
Each searchedfor In searchfor   re.Compile(searchedfor, re.utf8)Next*
The expression gest compiled. No error.
Neverthelesse, if I the same words from a file, using this expression:

*Dim Searchfor As New String[] = Split(File.Load("Strings"), "\n")*

re.Compile will not work. It will display an error message saying there is
nothing to compile. Now, if I do:


*print "@" & Searchfor[n] &"@\n"*
in both cases I will see precisely the same output. I can't distinguish one
from the other. So, why it compiles in the first case, but does not in the
second?

This is the mystery I must solve with a little help from a good soul out
there.

- fernando



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Isn't bracket regular expression compatible with UTF8?

2017-07-04 Thread Fernando Cabral
I have been trying something like *poder[^[:alpha:]*  so I  could find the
word "poder " ("poder" followed by an space) but not "poderão" ("ã" being
an alpha character in Portuguese.)

In English it could be like finding "power" but not "powerless".

Problem is that it seems [^[alpha]] includes accented characters like "á",
"é", "ã".

That is, accented characters are not understood as alpha, but not alpha.

Please, note that I have compiled it with the UTF8 flag:
*   re.Compile(poder[^[:alpha]], RegExp.utf8)*

Any hints?

- fernando
-- 
Fernando Cabral


Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Is it possible to read a file directly into an array?

2017-07-04 Thread Fernando Cabral
Well, I found a very easy way to do it:


*Dim Wordlist as string []*

*Wordlist = Split(File.Load("strings.txt"), "\n")*
It seems it can't be easier, can it?




2017-07-04 12:06 GMT-03:00 Fernando Cabral <fernandojosecab...@gmail.com>:

> Is there a straightforward way to read a file directly into an array?
> Say I have a file with several lines (lines ended with "\n").
> I want to read each line and push its content as an item of an array.
>
> Lets say the file contents are "a\nb\nc\n" and what I need is:
>
> word[0] = "a"
> word[1] = "b"
> word[2] = "c"
>
> Yes, I know I can LINE INPUT each line and copy it into the array.
> But I have seen that Gambas has so many shortcuts that perhaps there is
> one for this operation too.
>
> Any hints?
>
> Regards
>
> - fernando
>
>
> --
> Fernando Cabral
> Blogue: http://fernandocabral.org
> Twitter: http://twitter.com/fjcabral
> e-mail: fernandojosecab...@gmail.com
> Facebook: f...@fcabral.com.br
> Telegram: +55 (37) 99988-8868 <(37)%2099988-8868>
> Wickr ID: fernandocabral
> WhatsApp: +55 (37) 99988-8868 <(37)%2099988-8868>
> Skype:  fernandojosecabral
> Telefone fixo: +55 (37) 3521-2183 <(37)%203521-2183>
> Telefone celular: +55 (37) 99988-8868 <(37)%2099988-8868>
>
> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> nenhum político ou cientista poderá se gabar de nada.
>
>


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Is it possible to read a file directly into an array?

2017-07-04 Thread Fernando Cabral
Is there a straightforward way to read a file directly into an array?
Say I have a file with several lines (lines ended with "\n").
I want to read each line and push its content as an item of an array.

Lets say the file contents are "a\nb\nc\n" and what I need is:

word[0] = "a"
word[1] = "b"
word[2] = "c"

Yes, I know I can LINE INPUT each line and copy it into the array.
But I have seen that Gambas has so many shortcuts that perhaps there is one
for this operation too.

Any hints?

Regards

- fernando


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Any (easy) way to render RTF or HTML with gambas?

2017-07-04 Thread Fernando Cabral
Sure, Fabien, here it is. Note that basically, I took your program and
deleted what I didn' t need.
I didn't need, for instance, a file pickup list -- That's because I know
beforehand which file I want to display.

I could put to good use some niceties like a zooming button, but I can do
without them.


























*Private $hPdf As New PdfDocumentPublic Sub Form_Open()  Me.Center  Try
$hPdf.Open("/home/fernando/.config/libreoffice/4/user/basic/EmpregoDoHífen.pdf")
If Error Then  Message.Error("Unable to open the file : " &
"/home/fernando/.config/libreoffice/4/user/basic/EmpregoDoHifen.pdf")
ReturnEndif  DocumentView1.Count = $hPdf.Count
DocumentView1.RefreshEndPublic Sub DocumentView1_Layout(Page As Integer)
DocumentView1.Layout.Width = $hPdf[Page + 1].Width + 150
DocumentView1.Layout.Height = $hPdf[Page + 1].Height + 150EndPublic Sub
DocumentView1_Draw(Page As Integer, Width As Integer, Height As Integer)
Paint.DrawImage($hPdf[Page + 1].Image, 0, 0, Paint.Width,
Paint.Height)EndPublic Sub Button2_Click()  Me.CloseEnd*


2017-07-04 7:09 GMT-03:00 Fabien Bodard <gambas...@gmail.com>:

> Maybe you can send me a source. So i can take an eyes.
>
> 2017-07-02 23:17 GMT+02:00 Fernando Cabral <fernandojosecab...@gmail.com>:
> > 2017-07-02 17:19 GMT-03:00 Fabien Bodard <gambas...@gmail.com>:
> >
> >> Well DocumentView is just a viewer i've done for gb.report. In fact
> >> it's abilities is to manages different Image in a paging style layout.
> >>
> >
> > Starting with you example I have been able to do what I needed. I just
> > deleted the part that allows the user
> > to select a PDF file. Instead I put a path/filename as a constant.
> >
> > Only problem is that I have not found how to change font size. Even so,
> it
> > delivers what I needed.
> >
> > Thank you.
> >
> > - fernando
> >
> >>
> >> So this tool is good for display Documents such as pdf or reports. But
> >> for those documents the libs pdf and report have a .Draw method that
> >> render the image in the given DrawingArea or image container.
> >>
> >> For you job take a look in the gambas ide in the HelpView.class. It
> >> inherit webview and give the hability to manage personnal url's. (in
> >> this case "gambas://") by cheating with the error link event.
> >>
> >> Take a look :-). Even we generate web page on the fly for the help
> >> embedded in the code source.
> >>
> >> 2017-07-02 19:11 GMT+02:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:
> >> > 2017-07-02 12:12 GMT-04:30 Fernando Cabral <
> fernandojosecab...@gmail.com
> >> >:
> >> >
> >> >> As to this, I think you still did not understand what I needed,
> which is
> >> >> to render a HTML or RTF file. This has nothing to do with HTTPD or
> HTTP.
> >> >> The RTF and HTLM file are local file. I open them and them I wanted
> do
> >> >> display them. No protocols involved.
> >> >>
> >> > jajaj Fernando.. the method i described its the same you do.. but you
> >> using
> >> > pdf instead html
> >> >
> >> > just invoked a "own" localhost running inside project, same behaviour
> are
> >> > used by the gambas IDE when you run a WEB project..
> >> >
> >> >
> >> >>
> >> >>> i prefer the firs due all the hard work to interprete the html
> markup
> >> are
> >> >>> "let to expert".. and not hadle by own.. due will be a extra work..
> >> >>>
> >> >>
> >> >> Yep. That's why  I was searching for some built in method to do it.
> >> >>
> >> > * Try $hPdf.Open("pdfFIle.pdf")*
> >> >>
> >> >>
> >> >> * DocumentView1.Count = $hPdf.Count DocumentView1.Refresh*
> >> >>
> >> > same as for html..  but changing the open call by a httpd run process
> in
> >> > private port and send a exec to browser to open the local running
> httpd
> >> > "own" webserver
> >> >
> >> > the gambas ide do the same for web projects.. rund their own embebed
> http
> >> > web server and start a browser..
> >> >
> >> > instead use a embebed http webserver you can use the gb.httpd
> component
> >> > that does/usage are the same..
> >> >
> >> >
> >> >>
> >> >> This sol

Re: [Gambas-user] Any (easy) way to render RTF or HTML with gambas?

2017-07-02 Thread Fernando Cabral
2017-07-02 17:19 GMT-03:00 Fabien Bodard <gambas...@gmail.com>:

> Well DocumentView is just a viewer i've done for gb.report. In fact
> it's abilities is to manages different Image in a paging style layout.
>

Starting with you example I have been able to do what I needed. I just
deleted the part that allows the user
to select a PDF file. Instead I put a path/filename as a constant.

Only problem is that I have not found how to change font size. Even so, it
delivers what I needed.

Thank you.

- fernando

>
> So this tool is good for display Documents such as pdf or reports. But
> for those documents the libs pdf and report have a .Draw method that
> render the image in the given DrawingArea or image container.
>
> For you job take a look in the gambas ide in the HelpView.class. It
> inherit webview and give the hability to manage personnal url's. (in
> this case "gambas://") by cheating with the error link event.
>
> Take a look :-). Even we generate web page on the fly for the help
> embedded in the code source.
>
> 2017-07-02 19:11 GMT+02:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:
> > 2017-07-02 12:12 GMT-04:30 Fernando Cabral <fernandojosecab...@gmail.com
> >:
> >
> >> As to this, I think you still did not understand what I needed, which is
> >> to render a HTML or RTF file. This has nothing to do with HTTPD or HTTP.
> >> The RTF and HTLM file are local file. I open them and them I wanted do
> >> display them. No protocols involved.
> >>
> > jajaj Fernando.. the method i described its the same you do.. but you
> using
> > pdf instead html
> >
> > just invoked a "own" localhost running inside project, same behaviour are
> > used by the gambas IDE when you run a WEB project..
> >
> >
> >>
> >>> i prefer the firs due all the hard work to interprete the html markup
> are
> >>> "let to expert".. and not hadle by own.. due will be a extra work..
> >>>
> >>
> >> Yep. That's why  I was searching for some built in method to do it.
> >>
> > * Try $hPdf.Open("pdfFIle.pdf")*
> >>
> >>
> >> * DocumentView1.Count = $hPdf.Count DocumentView1.Refresh*
> >>
> > same as for html..  but changing the open call by a httpd run process in
> > private port and send a exec to browser to open the local running httpd
> > "own" webserver
> >
> > the gambas ide do the same for web projects.. rund their own embebed http
> > web server and start a browser..
> >
> > instead use a embebed http webserver you can use the gb.httpd component
> > that does/usage are the same..
> >
> >
> >>
> >> This solves this issue for good, althou I still want to know how to do
> the
> >> same thing with a HTML file.
> >>
> > as i described.. if you want a example run a new web gambas project, and
> in
> > a console see the process with ps and its basically that i described...
> >
> >
> >>
> >>
> >>
> >>>
> >>>>
> >>>> To make it more concrete. Imagine there is a help file in html. When
> the
> >>>> user clicks on the proper button, I'll read it
> >>>> and display it so the user can see the document. I want a method to
> >>>> display it rendered as it would be rendered in a browser.
> >>>>
> >>>> The editor might be able to do it. But then, I can't find instructions
> >>>> on how to create it, load and display de text.
> >>>>
> >>>> I have also found two lines of code that hint on the way to do it,
> but I
> >>>> can not learn enough from them. Says the guy:
> >>>>
> >>>> Then in Gambas2 I have a form with Textedit1  and I add:
> >>>> textedit1.text=file.load("filename.html")  in my form_open sub
> >>>>
> >>>> I would guess textedit1.text is in a form that, when displayed, will
> >>>> render the file correctly.
> >>>> But then again, I can't find the rest of the code.
> >>>>
> >>>> Thank you.
> >>>>
> >>>> - fernando
> >>>>
> >>>>
> >>>> 2017-07-02 10:07 GMT-03:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com
> >:
> >>>>
> >>>>> hi fernando,, u must read as stream.. see it:
> >>>>>
> >>>>> here a example minimal: http://gambaswiki.org/wiki/lang/lineinput
> 

Re: [Gambas-user] Any (easy) way to render RTF or HTML with gambas?

2017-07-02 Thread Fernando Cabral
Thank you Gianluigi. It seems there more than one way to skin this cat.
I believe the problem has to do with my ignorance concerning Gambas.
I have just found a DocumentView that will probably work too.
Since I have a full example of this usage, I'll probably  try it first.

Thank you.

- fernando


2017-07-02 10:43 GMT-03:00 Gianluigi <bagone...@gmail.com>:

> You can use WebView (gb.gui.qt.webkit)
>
>
> Gianluigi
>
> 2017-07-02 15:24 GMT+02:00 Fernando Cabral <fernandojosecab...@gmail.com>:
>
>> No, Lenz, reading the file is not te issue. This is easy and can be done
>> with several different methods.
>> What I am looking for is a way to render the html file (or rtf file). So,
>> I
>> want to read the file and display its contents.
>> Displaying (rendering the html) is the issue.
>>
>> To make it more concrete. Imagine there is a help file in html. When the
>> user clicks on the proper button, I'll read it
>> and display it so the user can see the document. I want a method to
>> display
>> it rendered as it would be rendered in a browser.
>>
>> The editor might be able to do it. But then, I can't find instructions on
>> how to create it, load and display de text.
>>
>> I have also found two lines of code that hint on the way to do it, but I
>> can not learn enough from them. Says the guy:
>>
>> Then in Gambas2 I have a form with Textedit1  and I add:
>> textedit1.text=file.load("filename.html")  in my form_open sub
>>
>> I would guess textedit1.text is in a form that, when displayed, will
>> render
>> the file correctly.
>> But then again, I can't find the rest of the code.
>>
>> Thank you.
>>
>> - fernando
>>
>>
>> 2017-07-02 10:07 GMT-03:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:
>>
>> > hi fernando,, u must read as stream.. see it:
>> >
>> > here a example minimal: http://gambaswiki.org/wiki/lang/lineinput
>> >
>> > but i think that what do you want its "understand" the file format!
>> right?
>> >
>> > due i guess rtf files have some "rich"text inside.. something in some
>> > binary/specific non ascii/plain text ...
>> >
>> > Lenz McKAY Gerardo (PICCORO)
>> > http://qgqlochekone.blogspot.com
>> >
>> > 2017-07-02 7:31 GMT-04:30 Fernando Cabral <fernandojosecab...@gmail.com
>> >:
>> >
>> >> I've browsed the documentation but did not find what I am looking for:
>> a
>> >> way do read a html (or rtf) file and display it using some built in
>> >> method.
>> >> Say, something simple like this:
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> *Public Sub Main()  Dim TextFile As File  Dim RtfText As String
>> TextFile
>> >> =
>> >> Open "~/Doc.rtf" For Read  Line Input #TextFile, RtfText
>> >> FMain.LoadText(RtfFile)  *' Here is the rub!
>> >>
>> >> *  FMain.ShowmodalEnd*
>> >>
>> >> Regards
>> >>
>> >> - fernando
>> >> --
>> >> Fernando Cabral
>> >> Blogue: http://fernandocabral.org
>> >> Twitter: http://twitter.com/fjcabral
>> >> e-mail <http://twitter.com/fjcabrale-mail>:
>> fernandojosecab...@gmail.com
>> >> Facebook: f...@fcabral.com.br
>> >> Telegram: +55 (37) 99988-8868 <(37)%2099988-8868>
>> >> Wickr ID: fernandocabral
>> >> WhatsApp: +55 (37) 99988-8868 <(37)%2099988-8868>
>> >> Skype:  fernandojosecabral
>> >> Telefone fixo: +55 (37) 3521-2183 <(37)%203521-2183>
>> >> Telefone celular: +55 (37) 99988-8868 <(37)%2099988-8868>
>> <(37)%2099988-8868>
>>
>> >>
>> >> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
>> >> nenhum político ou cientista poderá se gabar de nada.
>> >> 
>> >> --
>> >> Check out the vibrant tech community on one of the world's most
>> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> >> ___
>> >> Gambas-user mailing list
>> >> Gambas-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >>
>> >
>> >
>>
>>
>>

Re: [Gambas-user] Any (easy) way to render RTF or HTML with gambas?

2017-07-02 Thread Fernando Cabral
No, Lenz, reading the file is not te issue. This is easy and can be done
with several different methods.
What I am looking for is a way to render the html file (or rtf file). So, I
want to read the file and display its contents.
Displaying (rendering the html) is the issue.

To make it more concrete. Imagine there is a help file in html. When the
user clicks on the proper button, I'll read it
and display it so the user can see the document. I want a method to display
it rendered as it would be rendered in a browser.

The editor might be able to do it. But then, I can't find instructions on
how to create it, load and display de text.

I have also found two lines of code that hint on the way to do it, but I
can not learn enough from them. Says the guy:

Then in Gambas2 I have a form with Textedit1  and I add:
textedit1.text=file.load("filename.html")  in my form_open sub

I would guess textedit1.text is in a form that, when displayed, will render
the file correctly.
But then again, I can't find the rest of the code.

Thank you.

- fernando


2017-07-02 10:07 GMT-03:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:

> hi fernando,, u must read as stream.. see it:
>
> here a example minimal: http://gambaswiki.org/wiki/lang/lineinput
>
> but i think that what do you want its "understand" the file format! right?
>
> due i guess rtf files have some "rich"text inside.. something in some
> binary/specific non ascii/plain text ...
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-07-02 7:31 GMT-04:30 Fernando Cabral <fernandojosecab...@gmail.com>:
>
>> I've browsed the documentation but did not find what I am looking for: a
>> way do read a html (or rtf) file and display it using some built in
>> method.
>> Say, something simple like this:
>>
>>
>>
>>
>>
>>
>>
>>
>> *Public Sub Main()  Dim TextFile As File  Dim RtfText As String  TextFile
>> =
>> Open "~/Doc.rtf" For Read  Line Input #TextFile, RtfText
>> FMain.LoadText(RtfFile)  *' Here is the rub!
>>
>> *  FMain.ShowmodalEnd*
>>
>> Regards
>>
>> - fernando
>> --
>> Fernando Cabral
>> Blogue: http://fernandocabral.org
>> Twitter: http://twitter.com/fjcabral
>> e-mail <http://twitter.com/fjcabrale-mail>: fernandojosecab...@gmail.com
>> Facebook: f...@fcabral.com.br
>> Telegram: +55 (37) 99988-8868 <(37)%2099988-8868>
>> Wickr ID: fernandocabral
>> WhatsApp: +55 (37) 99988-8868 <(37)%2099988-8868>
>> Skype:  fernandojosecabral
>> Telefone fixo: +55 (37) 3521-2183 <(37)%203521-2183>
>> Telefone celular: +55 (37) 99988-8868 <(37)%2099988-8868>
>>
>> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
>> nenhum político ou cientista poderá se gabar de nada.
>> ----
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Any (easy) way to render RTF or HTML with gambas?

2017-07-02 Thread Fernando Cabral
I've browsed the documentation but did not find what I am looking for: a
way do read a html (or rtf) file and display it using some built in method.
Say, something simple like this:








*Public Sub Main()  Dim TextFile As File  Dim RtfText As String  TextFile =
Open "~/Doc.rtf" For Read  Line Input #TextFile, RtfText
FMain.LoadText(RtfFile)  *' Here is the rub!

*  FMain.ShowmodalEnd*

Regards

- fernando
-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Fwd: Problem to be examined by those who must use UTF8 with Gambas

2017-07-01 Thread Fernando Cabral
-- Forwarded message --
From: Fernando Cabral <fernandojosecab...@gmail.com>
Date: 2017-07-01 17:34 GMT-03:00
Subject: Re: [Gambas-user] Problem to be examined by those who must use
UTF8 with Gambas
To: Jussi Lahtinen <jussi.lahti...@gmail.com>


2017-07-01 16:15 GMT-03:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:

> I don't quite get your description of the problem. It seems self
> contradictory. I mean this part:
>
> Perhaps It should sound contradictory. That's because if I write directly
to a TextArea.text from
inside the program, it will show "À" correctly. Nevertheless, if I read the
same string from a file read into a variable and then try to display it...
it does not work.

> Are you using ascii functions for UTF-8 at some point?

I only use ascii functions where there are no UTF-8 functions. For
instance, split().

> I think we need to see your code to understand the issue.

I have attached a text file (ODT) as well as the code itself. Note that, in
order to run the code you will have to have unoconv installed.

If you comment the two lines bellow, the code will not work.



* RawText = RegExp.Replace(RawText, "À", "à") RawText =
RegExp.Replace(RawText, "Ó", "ó")*

This happens because for some mysterious reason, the QT library seems to
get confused
with *À* and *Ó*. But not always!

Jussi



On Sat, Jul 1, 2017 at 8:01 PM, Fernando Cabral <
fernandojosecab...@gmail.com> wrote:

> I've been testing my new toy with every large and small text I can put my
> hands on. The fact is, I have had surprise after surprise. I've just found
> that when I read a text that contains "À" (that's an A with a grave accent
> (`A) -- or  a backward acute accent for those who are not familiar with
> diacritics).
>
> Well, I can't display it if I load it into a TextArea.text. Nothing shows.
> I mean, NOTHING. That is, I have a blank screen. If I bring it to lowercase
> (à or `a) it will show up (in lowercase) with the rest of the text.
>
> So, "`A" (coded as  "\xC3\x80") will prevent the displaying of any string.
> Nevertheless, if I just try to display "Some text plus  À and some text
> more" it will work.
>
> Now, if I take the original text and do:
>
> *  RawText = RegExp.Replace(RawText, "À", "à")*
>
> yep! it does work.
> But if I translate it back with
>
> *  RawText = RegExp.Replace(RawText, "à", "À")*
>
> It does not work anymore.
>
> But if I do
>
> *RawText = RawText & "À"*
>
> And RawText did not contain "À"  before, then it will be displayed.
>
> Amazing.
>
> Any ideas about why this happens?
>
> Regards
>
> - fernando
>
>
>
> --
> Fernando Cabral
> Blogue: http://fernandocabral.org
> Twitter: http://twitter.com/fjcabral
> e-mail <http://twitter.com/fjcabrale-mail>: fernandojosecab...@gmail.com
> Facebook: f...@fcabral.com.br
> Telegram: +55 (37) 99988-8868
> Wickr ID: fernandocabral
> WhatsApp: +55 (37) 99988-8868
> Skype:  fernandojosecabral
> Telefone fixo: +55 (37) 3521-2183
> Telefone celular: +55 (37) 99988-8868
>
> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> nenhum político ou cientista poderá se gabar de nada.
> --------
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868 <(37)%2099988-8868>
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868 <(37)%2099988-8868>
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183 <(37)%203521-2183>
Telefone celular: +55 (37) 99988-8868 <(37)%2099988-8868>

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.




-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.


Test.odt
Description: application/vnd.oasis.opendocument.text

[Gambas-user] Problem to be examined by those who must use UTF8 with Gambas

2017-07-01 Thread Fernando Cabral
I've been testing my new toy with every large and small text I can put my
hands on. The fact is, I have had surprise after surprise. I've just found
that when I read a text that contains "À" (that's an A with a grave accent
(`A) -- or  a backward acute accent for those who are not familiar with
diacritics).

Well, I can't display it if I load it into a TextArea.text. Nothing shows.
I mean, NOTHING. That is, I have a blank screen. If I bring it to lowercase
(à or `a) it will show up (in lowercase) with the rest of the text.

So, "`A" (coded as  "\xC3\x80") will prevent the displaying of any string.
Nevertheless, if I just try to display "Some text plus  À and some text
more" it will work.

Now, if I take the original text and do:

*  RawText = RegExp.Replace(RawText, "À", "à")*

yep! it does work.
But if I translate it back with

*  RawText = RegExp.Replace(RawText, "à", "À")*

It does not work anymore.

But if I do

*RawText = RawText & "À"*

And RawText did not contain "À"  before, then it will be displayed.

Amazing.

Any ideas about why this happens?

Regards

- fernando



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Eliminating duplicates real fast... but adding text do textarea works in a snail pace

2017-07-01 Thread Fernando Cabral
I want to share with you what seems to be my final solution for the problem
concerning breaking a text into words, counting them all and eliminating
duplicates. I was in for a surprise. Maybe you are too.

First, to eliminate duplicates and count occurrences. Here is the code.
Very simple, very time efficient: only 40 MILLISECONDS to sort 68,626
words, find and copy 8,984 unique words, prepending a count number and then
sorting again:















* MatchedWords.Sort(gb.ascent + gb.language + gb.IgnoreCase) For i = 0 To
MatchedWords.Maxn = 1For j = i + 1 To MatchedWords.Max  If
(Comp(MatchedWords[i], MatchedWords[j], gb.language + gb.ignorecase) = 0)
Then n += 1  Else Break  EndifNext
UniqWords.Push(Format(n, "0###") & "#" & MatchedWords[i])i += (n - 1)
Next UniqWords.Sort(gb.descent + gb.language + gb.ignorecase)*
So, sorting, comparing, copying and sorting again was not the issue.
Preparing to display was. So much so that the following function took me
30+ seconds to add those 8984 words to the TextArea to be displayed:



*Public Sub AppendText(Text As String)   TextArea1.text &= TextEnd*

But, I was able to reduce that to 32 MILLISECONDS merely by concatenating
the words into a single string before calling AppendText() just once:






*str = "" For i = 0 To UniqWords.Max   str &= UniqWords[i] &
"\n" Next FMain.AppendText(str)*
So, concatenating here is two orders of magnitude faster than concatenating
a TextArea. Even thou both were just string concatenation.

In the end, what was taking 30+ do execute came down to 135 MILLISECONDS!
That's a 222 times reduction.

The lesson I have re-learned one more time: measure, don't guess. What
seems the culprit might not be. And a innocent-looking function might be
the killer.

Thank you guys for your help. I've learned a lot about Gambas as well as
about algorithms.

Regards

- fernando

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] any way to convert Result to Collection more faster than copy?

2017-07-01 Thread Fernando Cabral
2017-07-01 6:30 GMT-03:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:

> all of those question are not relevant, the real problem its the lack of
> gambas to handle many DB features due the ODBC connection..
>

I think you should be more specific. Instead of saying "the real problem is
the lack of
gambas to handle many DB features", let us know which those [lacking]
features are.
I am sure if you do so the master professionals in this list will be able
to tell you if
those features are really missing; if there are good workarounds; or
perhaps if you
should forget gambas and try something different.

If gambas can not do what you have to do, then I see no point in insisting.
But, if you want to get some help in clarifying this issue, then you' be
better be
more specific.

Regards

- fernando


>
> >
> > rgrds
> > b
> >
> > --
> > B Bruen <adamn...@gnail.com (sort of)>
> >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array

2017-06-30 Thread Fernando Cabral
I thank you guys for the hints on counting and eliminating duplicates. In
the end, I resorted to something that is very simple and does the trick in
three steps. In the first step I sort the array.
In the second step I count the number of occurrences and prepend it to the
word itself (with a separator). In the third step I sort the array again,
so now I have it sorted by the number of occurrences from the largest to
the smallest.

That is all I need.

Nevertheless, I am concerned with the performance. For 69,725 words, from
which 8,987 were unique, it took 28 seconds for the code below to execute.
I will survive this 28 seconds, if I have to. But I still would like to
find a faster solution.

On the other hand, I think I am close to the fastest possible solution.
Basically, the array will be traversed once only, no matter how many terms
and how many repetitions it may have.

(What do you think about this efficiency, Tobi?)




















*MatchedWords.Sort(gb.ascent + gb.language + gb.IgnoreCase) For i = 0 To
MatchedWords.Maxn = 1For j = i + 1 To MatchedWords.Max  If
(Comp(MatchedWords[i], MatchedWords[j], gb.language + gb.ignorecase) = 0)
Then n += 1  Else Break  EndifNext
UniqWords.Push(Format(n, "0###") & "#" & MatchedWords[i])i += (n - 1)
NextUniqWords.Sort(gb.descent + gb.language + gb.ignorecase)For i = 0 To
UniqWords.Max   Print UniqWords[i]Next*



2017-06-30 15:10 GMT-03:00 Gianluigi <bagone...@gmail.com>:

> Just for curiosity, on my computer, my function (double) processes 10
> million strings (first and last name) in about 3 seconds.
> Very naif measurement using Timers and a limited number of names and
> surnames eg Willy Weber has come up 11051 times
>
> To demonstrate the goodness of Tobias' arguments, about 1 million 3 cents a
> second I really understood (I hope) what he wanted to say.
>
> Sorry my response times but today my modem works worse than my brain.
>
> Regards
> Gianluigi
>
> 2017-06-30 17:58 GMT+02:00 Gianluigi <bagone...@gmail.com>:
>
> > Sorry Tobias,
> > other explanations are not necessary.
> > I would not be able to understand :-(
> > I accept what you already explained to me as a dogma and I will try to
> put
> > it into practice by copying your code :-).
> >
> > Thanks again.
> >
> > Gianluigi
> >
> > 2017-06-30 17:44 GMT+02:00 Gianluigi <bagone...@gmail.com>:
> >
> >>
> >> 2017-06-30 17:21 GMT+02:00 Tobias Boege <tabo...@gmail.com>:
> >>
> >>>
> >>> I wouldn't say there is anything *wrong* with it, but it also has
> >>> quadratic
> >>> worst-case running time. You use String[].Push() which is just another
> >>> name
> >>> for String[].Add(). Adding an element to an array (the straightforward
> >>> way)
> >>> is done by extending the space of that array by one further element and
> >>> storing the value there. But extending the space of an array could
> >>> potentially
> >>> require you to copy the whole array somewhere else (where you have
> enough
> >>> free memory at the end of the array to enlarge it). Doing worst-case
> >>> analysis,
> >>> we have to assume that this bad case always occurs.
> >>>
> >>> If you fill an array with n values, e.g.
> >>>
> >>>   Dim a As New Integer[]
> >>>   For i = 1 To n
> >>> a.Add(i)
> >>>   Next
> >>>
> >>> then you loop n times and in the i-th iteration there will be already
> >>> i-many elements in your array. Adding one further element to it will,
> >>> in the worst case, require i copy operations to be performed.
> 9-year-old
> >>> C.F. Gauss will tell you that the amount of store operations is about
> >>> n^2.
> >>>
> >>>
> >> Tobias you are always kind and thank you very much.
> >> Is possible for you to explain this more elementarily, for me (a poorly
> >> educated boy :-) )
> >>
> >>
> >>
> >>> And your function does two jobs simultaneously but only returns the
> >>> result
> >>> of one of the jobs. The output you get is only worth half the time you
> >>> spent.
> >>>
> >>>
> >> I did two functions in one, just to save space, this is a simple
> example.
> >> :-)
> >>
> >> Regards
> >> Gianluigi
> >>
> >
> >
> 
> --
> Check o

Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array

2017-06-30 Thread Fernando Cabral
ngle.Push(sSort[i])
> >> > > bb.Push(n + 1)
> >> > > n = 0
> >> > >   Endif
> >> > > Endif
> >> > >   Next
> >> > >   sSingle.Push(sSort[sSort.Max])
> >> > >   bb.Push(n + 1)
> >> > >   For i = 0 To sSingle.Max
> >> > > Print sSingle[i]
> >> > >   Next
> >> > >   For i = 0 To bb.Max
> >> > > Print bb[i] & sSingle[i]
> >> > >   Next
> >> > >
> >> > > End
> >> > >
> >> > > Regards
> >> > > Gianluigi
> >> > >
> >> > > 2017-06-27 16:33 GMT+02:00 <nand...@nothingsimple.com>:
> >> > >
> >> > > > Another very effective and simple would be:
> >> > > >
> >> > > > You have your array with data
> >> > > > You create a new empty array.
> >> > > >
> >> > > > Loop through each item in your array with data
> >> > > > If it's not in the new array, then add it.
> >> > > >
> >> > > > Destroy the original array.
> >> > > > Keep the new one.
> >> > > > ...something like (syntax may not be correct)
> >> > > >
> >> > > > Public Function RemoveMultiple(a As String[]) As String[]
> >> > > >
> >> > > >   Dim x as Integer
> >> > > >   Dim z as NEW STRING[]
> >> > > >
> >> > > >   For x = 1 to a.count()
> >> > > > if z.Find(a) = 0 Then z.Add(a[x])
> >> > > >   Next
> >> > > >
> >> > > >   Return z
> >> > > >
> >> > > > END
> >> > > >
> >> > > > -Nando (Canada)
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > Open WebMail Project (http://openwebmail.org)
> >> > > >
> >> > > >
> >> > > > -- Original Message ---
> >> > > > From: Hans Lehmann <h...@gambas-buch.de>
> >> > > > To: gambas-user@lists.sourceforge.net
> >> > > > Sent: Tue, 27 Jun 2017 15:51:19 +0200
> >> > > > Subject: Re: [Gambas-user] I need a hint on how to deleted
> duplicate
> >> > items
> >> > > > in a array
> >> > > >
> >> > > > > Hello,
> >> > > > >
> >> > > > > look here:
> >> > > > >
> >> > > > > 8<--
> >> > > > -
> >> > > > > -- Public Function RemoveMultiple(aStringListe As
> String[])
> >> > As
> >> > > > String[]
> >> > > > >  Dim iCount As Integer   Dim iIndex As Integer   Dim sElement As
> >> > String
> >> > > > >
> >> > > > >iIndex = 0 ' Initialisierung NICHT notwendig
> >> > > > >While iIndex < aStringListe.Count
> >> > > > >  iCount = 0
> >> > > > >  sElement = aStringListe[iIndex]
> >> > > > >  While aStringListe.Find(sElement) <> -1
> >> > > > >Inc iCount
> >> > > > >aStringListe.Remove(aStringListe.Find(sElement))
> >> > > > >  Wend
> >> > > > >  If iCount Mod 2 = 1 Then
> >> > > > > aStringListe.Add(sElement, iIndex)
> >> > > > > Inc iIndex
> >> > > > >  Endif ' iCount Mod 2 = 1 ?
> >> > > > >Wend
> >> > > > >
> >> > > > >Return aStringListe
> >> > > > >
> >> > > > > End ' RemoveMultiple(...)
> >> > > > > 8<--
> >> > > > -
> >> > > > > --
> >> > > > >
> >> > > > > Hans
> >> > > > > gambas-buch.de
> >> > > > >
> >> > > > > 
> >> > > > --
&

Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array

2017-06-27 Thread Fernando Cabral
Lehmann <h...@gambas-buch.de>
> > > > To: gambas-user@lists.sourceforge.net
> > > > Sent: Tue, 27 Jun 2017 15:51:19 +0200
> > > > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate
> > items
> > > > in a array
> > > >
> > > > > Hello,
> > > > >
> > > > > look here:
> > > > >
> > > > > 8<--
> > > > -
> > > > > -- Public Function RemoveMultiple(aStringListe As String[])
> > As
> > > > String[]
> > > > >  Dim iCount As Integer   Dim iIndex As Integer   Dim sElement As
> > String
> > > > >
> > > > >iIndex = 0 ' Initialisierung NICHT notwendig
> > > > >While iIndex < aStringListe.Count
> > > > >  iCount = 0
> > > > >  sElement = aStringListe[iIndex]
> > > > >  While aStringListe.Find(sElement) <> -1
> > > > >Inc iCount
> > > > >aStringListe.Remove(aStringListe.Find(sElement))
> > > > >  Wend
> > > > >  If iCount Mod 2 = 1 Then
> > > > > aStringListe.Add(sElement, iIndex)
> > > > > Inc iIndex
> > > > >  Endif ' iCount Mod 2 = 1 ?
> > > > >Wend
> > > > >
> > > > >Return aStringListe
> > > > >
> > > > > End ' RemoveMultiple(...)
> > > > > 8<--
> > > > -
> > > > > --
> > > > >
> > > > > Hans
> > > > > gambas-buch.de
> > > > >
> > > > > 
> > > > --
> > > > > Check out the vibrant tech community on one of the world's most
> > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > > ___
> > > > > Gambas-user mailing list
> > > > > Gambas-user@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > > --- End of Original Message ---
> > > >
> > > >
> > > > 
> > > > --
> > > > Check out the vibrant tech community on one of the world's most
> > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > ___
> > > > Gambas-user mailing list
> > > > Gambas-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > >
> > > 
> > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > --- End of Original Message ---
> >
> >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array

2017-06-27 Thread Fernando Cabral
gt; >  If iCount Mod 2 = 1 Then
> > > > aStringListe.Add(sElement, iIndex)
> > > > Inc iIndex
> > > >  Endif ' iCount Mod 2 = 1 ?
> > > >Wend
> > > >
> > > >Return aStringListe
> > > >
> > > > End ' RemoveMultiple(...)
> > > > 8<--
> > > -
> > > > --
> > > >
> > > > Hans
> > > > gambas-buch.de
> > > >
> > > > 
> > > --
> > > > Check out the vibrant tech community on one of the world's most
> > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > ___
> > > > Gambas-user mailing list
> > > > Gambas-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > --- End of Original Message ---
> > >
> > >
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> --- End of Original Message ---
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array

2017-06-27 Thread Fernando Cabral
2017-06-27 11:29 GMT-03:00 Tobias Boege <tabo...@gmail.com>:

>
> Your first sentence is a bit confusing. First you say that your array is
> sorted but then you say that duplicates may be scattered across the array.
>
You are right. My fault. The array is sorted. What I meant by scattered was
that
pairs, duples, triplets or a bunch of duplicates may appear all over
interspersed with non-duplicated items.

My items are either words or sentences (extracted from an ODT file.
After the extraction, the words (or sentences) are sorted with the method
Array.sort(gb.descent).

After sorting it is much more efficient to search for the duplicates. And
it can be done
with some simple code (as some people have exemplified in this thread).

So, my question is basically if Gambas has some built in method do
eliminate duplicates.
The reason I am asking this is because I am new to Gambas, so I have found
myself coding
things that were not needed. For instance, I coded some functions to do
quicksort and bubble sort and then I found Array.sort () was available.
Therefore, I waisted my time coding those quicksort and bubble sort
functions :-(

Regards

- fernando


> If you have a sorting where duplicates are consecutive, the solution is
> very easy: just go through the array linearly and kick out these
> consecutive
> duplicates (which is precisely what uniq does), e.g. for integers:
>
>   Dim aInts As Integer[] = ...
>   Dim iInd, iLast As Integer
>
>   If Not aInts.Count Then Return
>   iLast = aInts[0]
>   iInd = 1
>   While iInd < aInts.Count
> If aInts[iInd] = iLast Then ' consecutive duplicate
>   aInts.Remove(iInd, 1)
> Else
>   iLast = aInts[iInd]
>   Inc iInd
> Endif
>   Wend
>
> Note that the way I wrote it to get the idea across is not a linear-time
> operation (it depends on the complexity of aInts.Remove()), but you can
> achieve linear performance by writing better code. Think of it as an
> exercise. (Of course, you can't hope to be more efficient than linear
> time in a general situation.)
>
> The counting task is solved with a similar pattern, but while you kick
> an element out, you also increment a dedicated counter:
>
>   Dim aInts As Integer[] = ...
>   Dim aDups As New Integer[]
>   Dim iInd, iLast As Integer
>
>   If Not aInts.Count Then Return
>   iLast = aInts[0]
>   iInd = 1
>   aDups.Add(0)
>   While iInd < aInts.Count
> If aInts[iInd] = iLast Then ' consecutive duplicate
>   aInts.Remove(iInd, 1)
>   Inc aDups[aDups.Max]
> Else
>   iLast = aInts[iInd]
>   aDups.Add(0)
>   Inc iInd
> Endif
>   Wend
>
> After this executed, the array aInts will not contain duplicates (supposing
> it was sorted before) and aDups[i] will contain the number of duplicates of
> the item aInts[i] that were removed.
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] I need a hint on how to deleted duplicate items in a array

2017-06-27 Thread Fernando Cabral
Hi

I have a sorted array that may contain several repeated items scattered all
over.

I have to do two different things at different times:
a) Eliminate the duplicates leaving a single specimen from each repeated
item;
b) Eliminate the duplicates but having a count of the original number.

So, if I have, say

A
B
B
C
D
D

In the first option, I want to have
A
B
C
D
In the second option, I want to have
1 A
2 B
1 C
2 D

Any hints on how to do this using some Gambas buit in method?

Note; Presently I have been doing it using external calls to
the utilities sort and uniq.

Regards

- fernando


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-25 Thread Fernando Cabral
alc 100*75/798
> 9.398496240601503   0x9 0y1001
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> ------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-25 Thread Fernando Cabral
2017-06-25 6:31 GMT-03:00 Christof Thalhofer <chri...@deganius.de>:

>
> > I never understood the religious cruzification of Goto.
>
> No doubt you can use a GOTO in a effective and understandable way.
Especially if you are just jumping a few lines downwards as you mentioned.
But my 40-year long experience with  more than a dozen programming
languages has always shown me this simple truth (for me!):  if I come to a
point where a GOTO is the best solution I can think of, then I'd better
rewrite the code because something has gone stray. To begin with, probabily
I don't know what I am doing. I have not thought enough about the problem
at hand.

Yes, even C has a GOTO. But if I remember correctly the original C Manual,
it briefly mentions it and then recommends against using it.

Now, this is not a religious crucification of GOTO. This is the result of
the 60+ collective experience with GOTOs. I have never met a good
programmer that relies on GOTOs to jump out of spaghetti-like code. That's
because good programmers to not have spaghetti code, to begin with.

But, again, I agree that jumping a few lines down the lane might not
obfuscate the code to the point of making it unreadable. But then again,
"breaks" and "loops" might work better even when you have nested loops.

My two cents.

Regards

- fernando


> Christof Thalhofer
>
> --
> Dies ist keine Signatur
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-22 Thread Fernando Cabral
On Thu, 22 Jun 2017, PICCORO McKAY Lenz wrote:

> > i only use to avoid a similar to this:
> >
> > if isnull(value ) then
> >' amount of 4000 lines of code
> > else
> >' amount of other lot of lines
> > endif
> > if not isnull()
> >   goto codepiecelabel1
> > endif
> >   ' amount of lines
>
> I don't want to be blunt, but I am forced to say that:

a) GOTO is always avoidable (even in COBOL)
b) The need for GOTO usally comes from poor coding (and perhaps poor
languages)
c)  For me, the above example is one of the worst situations to use GOTO.
It makes reading
and understanding the code very, very hard.

My experience is that when you get to a point where GOTO seems to be the
best solution (sometimes, only solution) then probabibly you have thought
not enough about what you are coding -- or coded well enough.

Finally, if you set the GOTO to break a loop, or to jump to a nearby place,
you might be able to survive.
But if you use it to to jump over 4000 lines of code, that should sound a
LOUD, VERY LOUD alarm. Something is probabily very wrong. I simply can not
think about a situation where you have a single block of 4.000 lines of
code. It should have been broken down into a few tens or pehaps hundreds
functions.

It means, even thou I don't know your code, I would guess it has not been
well thought out..

Regards

- fernando

be put into a meaningful class. An object of this class contains all
> your relevant variables and you can pass a reference of that object
> (as a container for the variables) to a function.
>
> If there's no sensible grouping of variables into classes but you
> don't have dozens of variables, then you could try ByRef [1].
>
> Regards,
> Tobi
>
> [1] http://gambaswiki.org/wiki/doc/byref
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Help needed from regexp gurus

2017-06-19 Thread Fernando Cabral
This is mostly to thank Tobi and Jussi for their help in solving some
issues that were making me unhappy.

With three lines of code I have solved what used to take me twenty or so.
What is better yet: execution time
fell down from 2min 30 sec to 1,5 seconds. And the code is much more
transparent, The three lines bellow are the heart and brain of the program:

MatchedWords = Split(RawText, " \"'`[]{}+-_:#$%&.!?:(),;-\n", "", True)
MatchedSentences = Split(RegExp.Replace(RawText,
"([.])|([!])|([?])|(;\n)|([:]\n)", "&1&2&3&4&5\x00", RegExp.UTF8), "\x00",
"", True)
MatchedParagraphs = Split(RawText, "\n", "", True)

These three lines will take an entire text file (read into the variable
RawText) and split it into words, sentences and paragraphs. They ONE SECOND
to process a 150-page long text file with  414,961 bytes, tallying 69,196
words, 4,626 sentences and 2,409 paragraphs.

I am impressed!

In this last (and fast) version I have depended very little on RegExp. But
I still have used it to do some massaging on the original text. The line
"MatchedSentences = " above shows an example. The characters ".?!",
and the strings ";\n" and ":\n" signal the end of a sentence. Nevertheless,
I can not use them as separators for Split(). I can' t because Split ()
would drop them as it does with separators. Nevertheless, I need them
later. So I used RegExpl.Replace () to insert a \x00 after each of them and
then I used \x00 as the only sentence separator. This preserved the
punctuation marks I needed at the end of each sentence.

After running those three lines I still need to do some additional
processing with the resulting arrays, but that only consumes another half a
second for the same 150-page long document.

Now I am happy and I feel stimulated to complete the code and do some
polishing.

Thank you, Tobi and Jussi. You have helped a lot.

2017-06-17 18:06 GMT-03:00 Tobias Boege <tabo...@gmail.com>:

> On Sat, 17 Jun 2017, Fernando Cabral wrote:
> > Still beating my head against the wall due to my lack of knowledge about
> > the PCRE methods and properties... Because of this, I have progressed not
> > only very slowly but also -- I fell -- in a very inelegant way. So
> perhaps
> > you guys who are more acquainted with PCRE might be able to hint me on a
> > better solution.
> >
> > I want to search a long string that can contain a sentence, a paragraph
> or
> > even a full text. I wanna find and isolate every word it contains. A word
> > is defined as any sequence of alphabetic characters followed by a
> > non-alphatetic character.
> >
>
> The Mathematician in me can't resist to point this out: you hopefully
> wanted
> to define "word in a string" as "a *longest* sequence of alphabetic
> characters
> followed by a non-alphabetic character (or the end of the string)". Using
> your
> definition above, the words in "abc:" would be "c", "bc" and "abc", whereas
> you probably only wanted "abc" (the longest of those).
>
> > The sample code bellow does work, but I don't feel it is as elegant and
> as
> > fast as it could and should be.  Especially the way I am traversing the
> > string from the beginning to the end. It looks awkward and slow. There
> must
> > be a more efficient way, like working only with offsets and lengths
> instead
> > of copying the string again and again.
> >
>
> You think worse of String.Mid() than it deserves, IMHO. Gambas strings
> are triples of a pointer to some data, a start index and a length, and
> the built-in string functions take care not to copy a string when it's
> not necessary. The plain Mid$() function (dealing with ASCII strings only)
> is implemented as a constant-time operation which simply takes your input
> string and adjusts the start index and length to give you the requested
> portion of the string. The string doesn't even have to be read, much less
> copied, to do this.
>
> Now, the String.Mid() function is somewhat more complicated, because
> UTF-8 strings have variable-width characters, which makes it difficult
> to map byte indices to character positions. To implement String.Mid(),
> your string has to be read, but, again, not copied.
>
> Extracting a part of a string is a non-destructive operation in Gambas
> and no copying takes place. (Concatenating strings, on the other hand,
> will copy.) So, there is some reading overhead (if you need UTF-8 strings),
> but it's smaller than you probably thought.
>
> > Dim Alphabetics as string "abc...zyzABC...ZYZ"
> > Dim re as RegExp
> > Dim matches as String []
> > Dim

Re: [Gambas-user] Help needed from regexp gurus / String.Mid() and Mid$() implementation

2017-06-18 Thread Fernando Cabral
Tobi, I have been learning a lot with your comments and suggestions.

Usually, I don't stress performance too much.  In this case, I have tried
to do things a little faster because I am using Gambas as a kind of add-on
to LibreOffice. I use it to check readability, wordiness, sentences that
are too long, things like that. In order to avoid coding, I resorted to RE.
My first try at it resulted in very slow code. In fact, a 150-page long
document took about two and a half minute to check. That's not short enough
to stimulate someone to run the code repeatedly. That's when I tried
introducing RegExp.Replace to canonize the input text and then applying
split(). Split () is fast, but canonizing the input text proved slow.  Then
I resorted to RegExp.Compile and RegExp. Way faster than Regex.Replace(),
but still slow. That's when I asked for help.

Today, following Jussi's suggestion, I went back to Split(). Without the
canonization phase, the same 150-page document was processed in 1,5 second.
That' s 100 times faster than the original version. That is great.
Nevertheless, there a few issues I have not been able to solve in an
elegant way.

Anyway, for this magnitude of performance gain, I am quite willing to go
back to Split () and then do soma massaging in those situations where
results are less than perfect.

Thank you for the many hints you've provided me with.

Regards

- fernando






2017-06-18 11:08 GMT-03:00 Tobias Boege <tabo...@gmail.com>:

> On Sat, 17 Jun 2017, Fernando Cabral wrote:
> > Tobi
> >
> > One more thing about the way I wish it could work (I remember having done
> > this in C perhaps 30 years ago). The pseudo-code bellow is pretty
> > schematic, but I think it will clarify the issue.
> >
> > Let p and l be arrays of integers and s be the string "abc defg hijkl"
> >
> > So, after traversing the string we would have the following result:
> > p[0] = offset of "a" (0)
> > l[0] = length of "abc" (3)
> > p[1] = offset of "d" (4)
> > l[1] = lenght of "defg" (4)
> > p[2] = offset of "h" (9)
> > l[2] = lenght of "hijkl" (5).
> >
> > After this, each word could be retrieved in the following manner:
> >
> > for i = 0 to 2
> > print mid(s, p[i], l[i])
> > next
> >
> > I think this would be the most efficient way to do it. But I can't find
> how
> > to do it in Gambas using Regex.
> >
>
> As I said before, the Gambas String.Mid() and Mid$() functions do just
> that.
> The internal representation of a string is some base data (which is usually
> shared among many strings, via reference counting), an offset and a length.
> If you apply String.Mid() or Mid$() to a string, no copying takes place,
> only
> the offset and length members of the Gambas string structure are adjusted.
> This is why Gambas strings are sometimes called "read-only" in the wiki
> (the
> same string base data is shared by many strings, so you can't have external
> libraries modify the data behind a Gambas string). Even the statement
>
>   s = String.Mid$(s, 10, 20)
>
> will *not* require a copy operation. You simply add 10 (UTF-8 positions) to
> the offset member of the string structure and set the length member to 20
> (UTF-8 positions) (or to the remaining length of s if it's smaller than
> 20).
>
> String.Mid() and Mid$() are implemented exactly by manipulating offsets and
> lengths, like you want to do. In fact there are multiple places in the
> Gambas
> source tree where those two are used in place of a C-style
>
>   for (i = 0; i < len; i++)
> do something with str[i];
>
> loop. I suggest you look at the implementations yourself if you don't
> believe it:
>
>   String datatype: https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/
> trunk/main/share/gambas.h#l126
>   Mid$():  https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/
> trunk/main/gbx/gbx_exec_loop.c#l3820
>   String.Mid():https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/
> trunk/main/gbx/gbx_c_string.c#l399
>
> (I recommend downloading the source tree and using ctags or something to
> navigate through it, of course, instead of the SF web interface.)
>
> You should also try the following: create a console project with this code
> in the Main.module:
>
>1 ' Gambas module file
>2
>3 Public Sub Main()
>4   Dim s As String = ""
>5   Dim i As Integer
>6
>7   For i = 1 To 5
>8 s = String.Mid$(s, i, 2*i)
>9   Next
>   10   s &= "a"
>   11 End
>
> It will call String.Mid$() multiple times. Now compile and run this program
> th

Re: [Gambas-user] Help needed from regexp gurus

2017-06-17 Thread Fernando Cabral
Tobi

One more thing about the way I wish it could work (I remember having done
this in C perhaps 30 years ago). The pseudo-code bellow is pretty
schematic, but I think it will clarify the issue.

Let p and l be arrays of integers and s be the string "abc defg hijkl"

So, after traversing the string we would have the following result:
p[0] = offset of "a" (0)
l[0] = length of "abc" (3)
p[1] = offset of "d" (4)
l[1] = lenght of "defg" (4)
p[2] = offset of "h" (9)
l[2] = lenght of "hijkl" (5).

After this, each word could be retrieved in the following manner:

for i = 0 to 2
print mid(s, p[i], l[i])
next

I think this would be the most efficient way to do it. But I can't find how
to do it in Gambas using Regex.

Regards

- fernando


2017-06-17 18:06 GMT-03:00 Tobias Boege <tabo...@gmail.com>:

> On Sat, 17 Jun 2017, Fernando Cabral wrote:
> > Still beating my head against the wall due to my lack of knowledge about
> > the PCRE methods and properties... Because of this, I have progressed not
> > only very slowly but also -- I fell -- in a very inelegant way. So
> perhaps
> > you guys who are more acquainted with PCRE might be able to hint me on a
> > better solution.
> >
> > I want to search a long string that can contain a sentence, a paragraph
> or
> > even a full text. I wanna find and isolate every word it contains. A word
> > is defined as any sequence of alphabetic characters followed by a
> > non-alphatetic character.
> >
>
> The Mathematician in me can't resist to point this out: you hopefully
> wanted
> to define "word in a string" as "a *longest* sequence of alphabetic
> characters
> followed by a non-alphabetic character (or the end of the string)". Using
> your
> definition above, the words in "abc:" would be "c", "bc" and "abc", whereas
> you probably only wanted "abc" (the longest of those).
>
> > The sample code bellow does work, but I don't feel it is as elegant and
> as
> > fast as it could and should be.  Especially the way I am traversing the
> > string from the beginning to the end. It looks awkward and slow. There
> must
> > be a more efficient way, like working only with offsets and lengths
> instead
> > of copying the string again and again.
> >
>
> You think worse of String.Mid() than it deserves, IMHO. Gambas strings
> are triples of a pointer to some data, a start index and a length, and
> the built-in string functions take care not to copy a string when it's
> not necessary. The plain Mid$() function (dealing with ASCII strings only)
> is implemented as a constant-time operation which simply takes your input
> string and adjusts the start index and length to give you the requested
> portion of the string. The string doesn't even have to be read, much less
> copied, to do this.
>
> Now, the String.Mid() function is somewhat more complicated, because
> UTF-8 strings have variable-width characters, which makes it difficult
> to map byte indices to character positions. To implement String.Mid(),
> your string has to be read, but, again, not copied.
>
> Extracting a part of a string is a non-destructive operation in Gambas
> and no copying takes place. (Concatenating strings, on the other hand,
> will copy.) So, there is some reading overhead (if you need UTF-8 strings),
> but it's smaller than you probably thought.
>
> > Dim Alphabetics as string "abc...zyzABC...ZYZ"
> > Dim re as RegExp
> > Dim matches as String []
> > Dim RawText as String
> >
> > re.Compile("([" & Alphabetics & "]+?)([^" & Alphabetics & "]+)",
> > RegExp.utf8)
> > RawText = "abc12345def ghi jklm mno p1"
> >
> > Do While RawText
> >  re.Exec(RawText)
> >  matches.add(re[1].text)
> >  RawText = String.Mid(RawText, String.Len(re.text) + 1)
> > Loop
> >
> > For i = 0 To matches.Count - 1
> >   Print matches[i]
> > Next
> >
> >
> > Above code correctly finds "abc, def, ghi, jlkm, mno, p". But the tricks
> I
> > have used are cumbersome (like advancing with string.mid() and resorting
> to
> > re[1].text and re.text.
> >
>
> Well, I think you can't use PCRE alone to solve your problem, if you want
> to capture a variable number of words in your submatches. I did a bit of
> reading and from what I gather [1][2] capturing group numbers are assigned
> based on the verbatim regular expression, i.e. the number of submatches
> you can receive is limited by the number of "(...)" constructs in your
> expressio

Re: [Gambas-user] Help needed from regexp gurus

2017-06-17 Thread Fernando Cabral
Thank you, Tobi, for taking the time to comment on my issues. I will ponder
the following.

2017-06-17 18:06 GMT-03:00 Tobias Boege <tabo...@gmail.com>:

> On Sat, 17 Jun 2017, Fernando Cabral wrote:
> >> Still beating my head against the wall due to my lack of knowledge about
> >> the PCRE methods and properties... Because of this, I have progressed
> not
> >> only very slowly but also -- I fell -- in a very inelegant way. So
> perhaps
> >> you guys who are more acquainted with PCRE might be able to hint me on
> a
> >> better solution.
> >>
> >> I want to search a long string that can contain a sentence, a
> paragraph or
> >> even a full text. I wanna find and isolate every word it contains. A
> word
> >> is defined as any sequence of alphabetic characters followed by a
> >> non-alphatetic character.
>
> >The Mathematician in me can't resist to point this out: you hopefully
> wanted
> >to define "word in a string" as "a *longest* sequence of alphabetic
> characters
> >followed by a non-alphabetic character (or the end of the string)".
> Using your
> >definition above, the words in "abc:" would be "c", "bc" and "abc",
> whereas
> >you probably only wanted "abc" (the longest of those).
>
> Right, the longest sequence. But I can't see why my definition is not
equivalent to yours, even thou
it is simpler. "A word is defined as any sequence of alphabetic characters
followed by a non-alphabetic character" has to be the longest, no matter
what. See, in "abc", "a" and "ab" are not followed by a non-alphabetic, so
you have to keep advancing. "abc" is followed by a non-alphabetic, so it
will comply with the definition.

So I think we can do without stating it has to be the longest sequence. If
I am wrong, I still can' t see why.


> >> The sample code bellow does work, but I don't feel it is as elegant and
> as
> >> fast as it could and should be.  Especially the way I am traversing the
> >> string from the beginning to the end. It looks awkward and slow. There
> must
> >> be a more efficient way, like working only with offsets and lengths
> instead
> >> of copying the string again and again.
>
> >You think worse of String.Mid() than it deserves, IMHO. Gambas strings
> >are triples of a pointer to some data, a start index and a length, and
> >the built-in string functions take care not to copy a string when it's
> >not necessary. The plain Mid$() function (dealing with ASCII strings only)
> >is implemented as a constant-time operation which simply takes your input
> >string and adjusts the start index and length to give you the requested
> >portion of the string. The string doesn't even have to be read, much less
> >copied, to do this.
>
> >Now, the String.Mid() function is somewhat more complicated, because
> >UTF-8 strings have variable-width characters, which makes it difficult
> >to map byte indices to character positions. To implement String.Mid(),
> >your string has to be read, but, again, not copied.
>
> Right. Since I am workings with Portuguese, it has to be UTF8. So I can't
avoid using
String.Mid().

But I still understand it has to be copied because I am doing a

str = String.Mid(str, HowMany)

In this case I would guess it has to be copied because the original
contents is shrunk, which
happens again and again, until nothing is left to be scanned. I understand
Gambas does not do
garbage collection as old basic used to do, but still, I suppose it
eventually will have to recover
unused memory.




> > Extracting a part of a string is a non-destructive operation in Gambas
> > and no copying takes place. (Concatenating strings, on the other hand,
> > will copy.) So, there is some reading overhead (if you need UTF-8
> strings),
> > but it's smaller than you probably thought.
>
> As per above, in this case it is not only extracting, but overwriting the
contents itself.


> > Dim Alphabetics as string "abc...zyzABC...ZYZ"
> > Dim re as RegExp
> > Dim matches as String []
> > Dim RawText as String
> >
> > re.Compile("([" & Alphabetics & "]+?)([^" & Alphabetics & "]+)",
> > RegExp.utf8)
> > RawText = "abc12345def ghi jklm mno p1"
> >
> > Do While RawText
> >  re.Exec(RawText)
> >  matches.add(re[1].text)
> >  RawText = String.Mid(RawText, String.Len(re.text) + 1)
> > Loop
> >
> > For i = 0 To matches.Count - 1
> >   Print matches[i]
> > Next
> >
> >
> > A

[Gambas-user] Help needed from regexp gurus

2017-06-17 Thread Fernando Cabral
Still beating my head against the wall due to my lack of knowledge about
the PCRE methods and properties... Because of this, I have progressed not
only very slowly but also -- I fell -- in a very inelegant way. So perhaps
you guys who are more acquainted with PCRE might be able to hint me on a
better solution.

I want to search a long string that can contain a sentence, a paragraph or
even a full text. I wanna find and isolate every word it contains. A word
is defined as any sequence of alphabetic characters followed by a
non-alphatetic character.

The sample code bellow does work, but I don't feel it is as elegant and as
fast as it could and should be.  Especially the way I am traversing the
string from the beginning to the end. It looks awkward and slow. There must
be a more efficient way, like working only with offsets and lengths instead
of copying the string again and again.

Dim Alphabetics as string "abc...zyzABC...ZYZ"
Dim re as RegExp
Dim matches as String []
Dim RawText as String

re.Compile("([" & Alphabetics & "]+?)([^" & Alphabetics & "]+)",
RegExp.utf8)
RawText = "abc12345def ghi jklm mno p1"

Do While RawText
 re.Exec(RawText)
 matches.add(re[1].text)
 RawText = String.Mid(RawText, String.Len(re.text) + 1)
Loop

For i = 0 To matches.Count - 1
  Print matches[i]
Next


Above code correctly finds "abc, def, ghi, jlkm, mno, p". But the tricks I
have used are cumbersome (like advancing with string.mid() and resorting to
re[1].text and re.text.

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] I ask for examples of regex functions usage

2017-06-15 Thread Fernando Cabral
So far I have confined myself to using Regex.Replace (). Nevertheless, for
some applications I understand there are better ways to do things, like
compiling the regular expression before searching or replacing. Also, I
presume there are other conveniences available.

The documentation I have found so far hints on these possibilities, but
there are no full-fledged examples. I wonder if those of you who have been
using regex more extensively can send me (or point me to) some code sample
where the Regex family of methods and parameters are more intensively used.

Best regards

- fernando
-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Fwd: ​ Re: Keyboard locked -- insisting one more time

2017-06-11 Thread Fernando Cabral
I've now installed gambas 3.9.90. Unfortunately, the keyboard is still
locked.

How about you, guys, who had the same problem I have? Still having it, or
has it been solved
with the last revision?


- fernando

2017-05-25 16:15 GMT-03:00 Fabien Bodard <gambas...@gmail.com>:

> -- Forwarded message --
> From: Fernando Cabral <fernandojosecab...@gmail.com>
> Date: 2017-05-25 0:12 GMT+02:00
> Subject: Re: [Gambas-user] Re: Keyboard locked -- insisting one more time
> To: Fabien Bodard <gambas...@gmail.com>
>
>
> I
>
> 2017-05-24 14:31 GMT-03:00 Fabien Bodard <gambas...@gmail.com>:
> >
> > can you describe your machine ?
>
> If you mean hardware, I use notebook HP, Dell and Acer. They all have
> the same problem.
> As to the operating system, they are all running Linux Mint 18.1 with
> Linux 4.4.0-78
> (4.4.0-78-generic #99-Ubuntu SMP Thu Apr 27 15:29:09 UTC 2017 x86_64
> x86_64 x86_64 GNU/Linux)
>
> As to Gambas, the last version available in the PPA.
>
> Regards
>
> - fernando
>
>
> >
> >
> > 2017-05-24 18:13 GMT+02:00 Fernando Cabral <fernandojosecab...@gmail.com
> >:
> > > Glaucio wrote:
> > >>I don't know, but, since it works in other systems than Xubuntu/Mint, I
> > >>guess that may be some environment variable missing.
> > >
> > > Could be an environment variable issue. But which variable? As far as I
> > > know, I did not change anything. So, if anything changed, it was
> changed
> > > stealthily by an unknown program.
> > >
> > >>With Benoit's script, for example, the TextEditor didn't worked here,
> but
> > >>the same component did work just fine running in Gambas' design time
> > >>test. Again, the difference, I guess, is pretty much just the execution
> > >>environment, or not?
> > >
> > > Only worked here on the virtual machine; not on the real machine.
> > >
> > >
> > > 2017-05-24 7:50 GMT-03:00 Glaucio Araujo <glaucio.de.ara...@gmail.com
> >:
> > >
> > >> I don't know, but, since it works in other systems than Xubuntu/Mint,
> I
> > >> guess that may be some environment variable missing.
> > >>
> > >> With Benoit's script, for exemple, the TextEditor didin't worked
> here, but
> > >> the same component did worked just fine running in Gambas' design time
> > >> test. Again, the difference, I guess, is pretty much just the
> execution
> > >> environment, or not?
> > >>
> > >>
> > >>
> > >>
> > >> ---
> > >>
> > >> Gláucio de Araujo
> > >>
> > >> Mail : glaucio.de.ara...@gmail.com
> > >> TIM  : (11) 95900-7801 (WhatsApp / Telegram)
> > >>
> > >> 2017-05-24 7:25 GMT-03:00 Benoît Minisini <
> gam...@users.sourceforge.net>:
> > >>
> > >> > Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
> > >> > > We need to wait for Benoit as it's a misstake on the rev 8132.
> > >> > >
> > >> >
> > >> > I'm not sure it's a mistake in rev 8132. Fernando must check with an
> > >> > older revision to see if the problem comes from it.
> > >> >
> > >> > Moreover, Glaucio says he has the problem with an older version of
> > >> > Gambas, so...
> > >> >
> > >> > I think it's a problem related to QT and the Xim input method. So I
> > >> > suggest people to change their input method to see if something
> changes.
> > >> >
> > >> > --
> > >> > Benoît Minisini
> > >> >
> > >> > ----
> > >> > --
> > >> > Check out the vibrant tech community on one of the world's most
> > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > >> > ___
> > >> > Gambas-user mailing list
> > >> > Gambas-user@lists.sourceforge.net
> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >> >
> > >> 
> > >> --
> > >> Check out the vibrant tech community on one of the world's most
> > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > >> ___
>

Re: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update?

2017-06-11 Thread Fernando Cabral
Gianluigi and Tobi

I tried to compile, then  I found some modules would be disabled (a long
list of them). Reading the INSTALL instruction I found that in order to
compile for Mint (Ubuntu) I would have to manually define a lot of things
specific to that environment. I gave up because I do not have the time or
knowledge to do what is required (It is not that I am lazy; it is because
time has been quite scarce.

Maybe I should try the unstable version...

Regards


- fernando


2017-06-11 17:02 GMT-03:00 Gianluigi <bagone...@gmail.com>:

> +1 
> I also use the version of Gambas compiled from sources without any
> problems☺
> Regards
> Gianluigi
>
>
> 2017-06-11 19:04 GMT+02:00 Tobias Boege <tabo...@gmail.com>:
>
> > On Sun, 11 Jun 2017, Fernando Cabral wrote:
> > > Tobi
> > >
> > > Excuse both my ignorance and poor communication ability. I prefer using
> > the
> > > latest stable version, which I expect be the case when I resort to the
> > PPA
> > > I am presently using. Now, I was not aware that those revisions are
> still
> > > considered unstable. So, I expected (wrongly, I see) that they would be
> > > incorporated into the stable version.
> > >
> > > So, I will stay with the stable version and wait until the changes are
> > made
> > > available for general use. Meanwhile, I'll keep using the workaround
> for
> > > the keyboard locking issue.
> > >
> >
> > Ok, but just a quick remark. "Unstable" is an unclear term. I, for one,
> > always run an unstable version of Gambas (compiled from source) and
> usually
> > have no problems. But once in a while it happens that something is broken
> > in the development version because of a change that was not fully thought
> > through; or you install a revision in the middle of someone making a
> bunch
> > of commits, before he is done with all his changes, and Gambas doesn't
> even
> > compile completely.
> >
> > If you want to test a bug fix (or go on bug hunt yourself), you have to
> use
> > the unstable version, because the stable version is supposed(TM) to not
> > have
> > bugs but to have confirmed bug fixes. Unstable usually isn't as bad as it
> > sounds.
> >
> > Regards,
> > Tobi
> >
> > --
> > "There's an old saying: Don't change anything... ever!" -- Mr. Monk
> >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> --------
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update?

2017-06-11 Thread Fernando Cabral
Tobi

Excuse both my ignorance and poor communication ability. I prefer using the
latest stable version, which I expect be the case when I resort to the PPA
I am presently using. Now, I was not aware that those revisions are still
considered unstable. So, I expected (wrongly, I see) that they would be
incorporated into the stable version.

So, I will stay with the stable version and wait until the changes are made
available for general use. Meanwhile, I'll keep using the workaround for
the keyboard locking issue.

Thank you.

- fernando

2017-06-11 11:33 GMT-03:00 Tobias Boege <tabo...@gmail.com>:

> On Sun, 11 Jun 2017, Fernando Cabral wrote:
> > I have gambas3 3.9.2 running Linux Mint 18.1. I have installed gambas
> using
> > a PPA. Is there a way I can use to force apt-get to download and install
> > the last stable version? I've tried removing, purging and installing
> anew,
> > but it seems I ended up with the same version.  From this fact I would
> > guess the PPA does not represent last revision we can find at the
> > sourceforge repository [r8142].
> >
> > Is my understanding right?
> >
> > I tried to download and compile, but there were so many modules disabled
> > that I concluded gambas would barely work -- if at all.
> >
> > I guess my practical question is: is there a way for me to get the latest
> > revision without having to go thru the pains of finding out how to
> overcome
> > the issues with the disabled modules and compiling from source?
> >
>
> If you want the latest *stable* version, as you say in your first
> paragraph,
> then you got it. 3.9.2 is the latest stable Gambas release.
>
> On the other hand, if you want the latest SVN revision (aka "/trunk", or
> more verbosely "unstable development snapshot"), as you say in the
> remainder
> of your mail, you have to use a different PPA, called "gambas-daily".
> Before I explain it with my own words, did you read the wiki page [1] ?
>
> Regards,
> Tobi
>
> [1] http://gambaswiki.org/wiki/install/ubuntu
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How can I force linux mint to upgrade gambas3 to the last update?

2017-06-11 Thread Fernando Cabral
I have gambas3 3.9.2 running Linux Mint 18.1. I have installed gambas using
a PPA. Is there a way I can use to force apt-get to download and install
the last stable version? I've tried removing, purging and installing anew,
but it seems I ended up with the same version.  From this fact I would
guess the PPA does not represent last revision we can find at the
sourceforge repository [r8142].

Is my understanding right?

I tried to download and compile, but there were so many modules disabled
that I concluded gambas would barely work -- if at all.

I guess my practical question is: is there a way for me to get the latest
revision without having to go thru the pains of finding out how to overcome
the issues with the disabled modules and compiling from source?

Regards

- fernando

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas-Documentation

2017-06-06 Thread Fernando Cabral
Agreed, Honsek. I am a newcomer, I liked Gambas at first sight, but I have
had a hard time finding proper documentation and  good examples on how-to.

- fernando



2017-06-06 7:53 GMT-03:00 Hans Lehmann <h...@gambas-buch.de>:

> A warm Hello to all friends of the Gambas programming language,
>
> many years ago users complained in various Gambas forum posts about the
> lack of books about Gambas in the German language. I liked Gambas from
> the beginning. Its conception allows people, like myself, switching over
> from other environments as well as ambitioned programmers to work on a
> range of different tasks in a single language. This motivated me as early
> as 2008 to design a concept for a Gambas book. For a few years now this
> book is made available online at www.gambas-buch.de. Many chapters have
> already been published. With great effort, the team of authors pursues
> the goal to produce a good description of the components and classes of
> Gambas and to demonstrate their use in example projects. Every chapter
> and its parts are also offered as a PDF file, and archives of the tested
> demonstration projects are available for download.
>
> However, our work on the online book is hampered increasingly because some
> components and their classes have only fragmentary documentation in the
> Gambas wiki, or none at all. By tolerating this condition, the Gambas
> developers throw away opportunities for newcomers to discover and use
> Gambas. A class or component should, in my opinion, only be released after
> its documentation is complete and correct and put on the Gambas wiki.
> Do the developers really believe that a potential Gambas user will read
> all the source code to understand how the properties, methods and events
> work? (I, for one, have never learned C.) To me, for example, it is clear
> after over 44 years as a grammar school teacher -- among others for
> Computer Science -- that nothing motivates more than success und success
> has to be prepared.
>
> This brings us to the crucial point with Gambas: all efforts should
> currently
> be directed towards quickly closing the gaps and flaws in the
> documentation!
> One only learns a language well by speaking it -- and this is only possible
> with a good dictionary! Such an excellent programming language as Gambas
> should enjoy a thorough documentation of the existing components and
> classes
> with small projects or code snippets which show the essential properties
> and methods in action. If you have a look at the current state of the
> documentation, you will see that it is exceedingly incomplete. Do the
> developers seriously think that the Gambas programmers can read in a
> crystal
> ball if all that's known about a class is the names of its properties,
> methods and events?
>
> The software farm with its projects does not replace a systematic treatment
> of the basics of the language. The online book wanted to provide just that
> for the German-speaking Gambas programmers, and those who want to be! If
> none or only insufficient information about the properties, methods and
> events of a Gambas class is available, then a newbie or a Gambas
> programmer,
> who wants to use this class, will resign and turn to other languages.
>
> My wish is essentially just that the developers do their job until the end
> and provide the documentation for their classes, because only then can
> their
> valuable work be truly useful. Only then can Gambas finally make progress.
>
> Honsek
> www.gambas-buch.de
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Regex - expert opinion requested

2017-06-01 Thread Fernando Cabral
Tobi,

> This sounds interesting, because for one thing I can't imagine a pipe
chain
> of "sed" invocations to take this long on just 500 KiB input (but I could
> be wrong).

"sed" does it in a lightning fast way.
For instance, sed 's/[^.:;,?!]//g' About your regular expressions: I think the key point is that you are
really
>just erasing characters of character casses. Your expressions are extremely
>simple in that regard. You mentioned that avoiding regular expressions
gives
>you a big speedup but the code took you longer to write. I don't see why.
>You should be able to write a general function.

Yes, that's what amazes me the most: the RE are pretty simple;
nevertheless, slow when using PCRE.

On the other hand, yes, I have written a general expression (see the
attached code). It is just a very simple parser that breaks the text into
char, non-char, syllable, words, sentences.
In the end, this solution is about 31 times faster than the solution based
on the regex.replace function.
That's a lot faster than both gambas.

> Regardless, I would be a little interested in getting a sample project
which
> includes your regular expressions and such a text file, to see for myself
> where the time is exactly spent. Can you send a version of your project
that
> contains only the parts relevant to these regular expressions?

I am attaching the two versions, the one based on RE, and the other one I
built from scratch. Neither is an example of good code. I am trying to
learn gambas so I certainly have not used the best possible alternatives
available.  Many things I did by trial and error because I don't have any
experience with gambas. So, pardon me for the low code quality.

I have also attached the test file. Its text is not in good shape. This
means it has a lot of broken things, like missing or wrong punctuation,
blank lines, dangling words, unpaired parenthesis and quotes. This is one
of the reasons I am using it as a test platform. It allows me to test the
code robustness.

To run and compare the two versions timewise, do:

$  time ./Legibilidade-odt PauloCoelho.odt
$ time ./AnalisaSenteca PauloCoelho.odt

You will have to install "unoconv" in your machine. Just in case you don't
have it and you do not want to install it, I am sending also a txt version
of the same file. You can use it to test the RegExp using sed and also you
can change the code to skip the conversion phase (conversion from ODT to
TXT).

Results generated by the two programs are very similar, but the time spent
by each of them is quite different.

SInce the list administrator did not allow me to send the files, I am
sending you the links so you can get them from Dropbox:

https://www.dropbox.com/s/6prpw8l7bir177f/AnalisaSentenca-0.0.665.tar.gz?dl=0
https://www.dropbox.com/s/82adoan7ojbwvbn/Legibilidade-odt-0.0.354.tar.gz?dl=0
https://www.dropbox.com/s/3n637e7g8rwqzfd/PauloCoelho.odt?dl=0
https://www.dropbox.com/s/3n637e7g8rwqzfd/PauloCoelho.odt?dl=0



Regards

- fernando
PS - Neither of the two programs is good stuff. They are not finished
and some of the algorithms and functions are only crude versions of what
they could be.

2017-05-31 19:21 GMT-03:00 Tobias Boege <tabo...@gmail.com>:

> On Wed, 31 May 2017, Fernando Cabral wrote:
> > This is only for those who like to work with regular expressions.
> > It is a performance issue. I am using 26 different regular expressions of
> > this kind:
> >
> > txt = RegExp.Replace(TextoBruto, NaoNumerais, "&1\n", RegExp.UTF8)
> > txt = RegExp.Replace(Txt, "\n\n+?", "\n", RegExp.UTF8)
> > txt = RegExp.Replace(Txt, "^\n+?", "", RegExp.UTF8)
> > txt = RegExp.Replace(Txt, "\n+?$", "", RegExp.UTF8)
> >
> > Those are pretty fast. Less than one second for a text with 415KB (about
> > six thousand lines).
> >
> > But the following code is quite slow. About 27 seconds each:
> >
> > ttDigitos = String.Len(RegExp.Replace(TextoBruto, "[^0-9]", "",
> > RegExp.UTF8)) ' 27 segundos
> > ttPontuacao = String.Len(RegExp.Replace(TextoBruto, "[^.:;,?!]", "",
> > RegExp.UTF8))  ' 27 segundos
> > ttBrancos = String.Len(RegExp.Replace(TextoBruto, "[^ \t]", "",
> > RegExp.UTF8))   ' 27 segundos
> > Print "Especial antigo", Now
> > 'ttEspeciais = String.Len(RegExp.Replace(TextoBruto,
> > "[^-[\\](){}\"@#$%&*_+=<>/|ºª§“”‘’]", "", RegExp.UTF8))  ' 27
> segundos
> > Print "Especial novo", Now
> > ttEspeciais = String.Len(RegExp.Replace(TextoBruto,
> > "[-aeiouãáéíóúâõàbcçdfghjlmnpqrstvxyz
> > ,.:;!?()0-9êôwkèìòùäÄÁÉÍÓÚÀÈÌÒÙÂÔÂÊÔÇABCDEFGHIJKLMNOPQRSTUVWXYZ]", "",
> > RegExp.UT

[Gambas-user] Regex - expert opinion requested

2017-05-31 Thread Fernando Cabral
This is only for those who like to work with regular expressions.
It is a performance issue. I am using 26 different regular expressions of
this kind:

txt = RegExp.Replace(TextoBruto, NaoNumerais, "&1\n", RegExp.UTF8)
txt = RegExp.Replace(Txt, "\n\n+?", "\n", RegExp.UTF8)
txt = RegExp.Replace(Txt, "^\n+?", "", RegExp.UTF8)
txt = RegExp.Replace(Txt, "\n+?$", "", RegExp.UTF8)

Those are pretty fast. Less than one second for a text with 415KB (about
six thousand lines).

But the following code is quite slow. About 27 seconds each:

ttDigitos = String.Len(RegExp.Replace(TextoBruto, "[^0-9]", "",
RegExp.UTF8)) ' 27 segundos
ttPontuacao = String.Len(RegExp.Replace(TextoBruto, "[^.:;,?!]", "",
RegExp.UTF8))  ' 27 segundos
ttBrancos = String.Len(RegExp.Replace(TextoBruto, "[^ \t]", "",
RegExp.UTF8))   ' 27 segundos
Print "Especial antigo", Now
'ttEspeciais = String.Len(RegExp.Replace(TextoBruto,
"[^-[\\](){}\"@#$%&*_+=<>/|ºª§“”‘’]", "", RegExp.UTF8))  ' 27 segundos
Print "Especial novo", Now
ttEspeciais = String.Len(RegExp.Replace(TextoBruto,
"[-aeiouãáéíóúâõàbcçdfghjlmnpqrstvxyz
,.:;!?()0-9êôwkèìòùäÄÁÉÍÓÚÀÈÌÒÙÂÔÂÊÔÇABCDEFGHIJKLMNOPQRSTUVWXYZ]", "",
RegExp.UTF8))  ' 27 segundos
Print "fim especial novo", Now

Quite slow. The whole programm takes 2 minutes to run. The above lines
alone consume 108 seconds (108:120).

I tried some variations. For instance, ttEspeciais =  has two versions.
One negates what to leave in, the other describes what to take out. End
result is the same. And so is the time spent.

I have also written a much longer code that does the same thing using loops
and searching for the characters I want in or want out. The whole thing
runs in about 5 seconds (but this code took me much, much longer do write).

I wonder if any of you could suggest potentially faster RegExp that could
replace the specimens above.

Regard

- fernando
-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Reg expression still beating me up

2017-05-28 Thread Fernando Cabral
In the piece of code bellow, RegExp.Replace will never return.

Sentencas[i] = "Test string."
Print "Before replacing"
Sentencas[i] = RegExp.Replace(Sentencas[i], "[.:!?;]*[ ]*?\n*?", "",
RegExp.UTF8)
Print "After replacing"

It beats me, because what it should do is very simple: optionally find one
of the punction marks (.:?!;) optionally followed by any number of white
space, optionally followed by any number of "\n" (end of line). Replace
whatever is found with an empty string.

In the text string, it should find the dot (.) and replace it with nothing.
So, the returned string should be "Test string".

Alas! It will never come back. Same if I replace the test string with
"Test string. \n" or "Test string.\n"

Now, this works as expected, but this is not what I need:  "[.:!?;][
]*?\n*?", ""
To my eyes, "[.:!?;]*[ ]*?\n*?" is a perfectly valid regular expression.

Any hints?


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Fernando Cabral
2017-05-24 20:31 GMT-03:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:

> Please post the replies to the list, so that Benoit will see them. I don't
> know enough about the topic.
>
Sorry. I thought I had.

>
>
> Jussi
>
> On Thu, May 25, 2017 at 1:46 AM, Fernando Cabral <
> fernandojosecab...@gmail.com> wrote:
>
>> 2017-05-24 18:54 GMT-03:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
>>
>>> Do you have ~/.xinputrc ?
>>> I think you can just change "run_im xim" to "run_im scim", or create the
>>> file with latter line, if it doesn't exist. Then you need to log out and
>>> log in.
>>> I suggest to try this with virtual machine first or with different user.
>>> So that it is easy to change things back, if something goes wrong.
>>>
>> Did that. So, here are the results:
>> 1) Virtual machine. No ~/.xinputrc -- Gambas works fine
>> 2) Real machine. No ~/.xinputrc -- Gambas does not work, even as root
>> 3) Real machine. With ~/.xinputrc original (run_im xim) -- Gambas does
>> not work with a regular user, but runs as root
>> 4) Real machine. With ~/.xinputrc modified to run_im scim -- Gambas does
>> not work even as root. The Brazilian keyboard stopped generating diacritics.
>>
>> Regards
>>
>> - fernando
>>
>>>
>>>
>>>
>>> Jussi
>>>
>>> On Wed, May 24, 2017 at 7:13 PM, Fernando Cabral <
>>> fernandojosecab...@gmail.com> wrote:
>>>
>>>> Glaucio wrote:
>>>> >I don't know, but, since it works in other systems than Xubuntu/Mint, I
>>>> >guess that may be some environment variable missing.
>>>>
>>>> Could be an environment variable issue. But which variable? As far as I
>>>> know, I did not change anything. So, if anything changed, it was changed
>>>> stealthily by an unknown program.
>>>>
>>>> >With Benoit's script, for example, the TextEditor didn't worked here,
>>>> but
>>>> >the same component did work just fine running in Gambas' design time
>>>> >test. Again, the difference, I guess, is pretty much just the execution
>>>> >environment, or not?
>>>>
>>>> Only worked here on the virtual machine; not on the real machine.
>>>>
>>>>
>>>> 2017-05-24 7:50 GMT-03:00 Glaucio Araujo <glaucio.de.ara...@gmail.com>:
>>>>
>>>> > I don't know, but, since it works in other systems than Xubuntu/Mint,
>>>> I
>>>> > guess that may be some environment variable missing.
>>>> >
>>>> > With Benoit's script, for exemple, the TextEditor didin't worked
>>>> here, but
>>>> > the same component did worked just fine running in Gambas' design time
>>>> > test. Again, the difference, I guess, is pretty much just the
>>>> execution
>>>> > environment, or not?
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > ---
>>>> >
>>>> > Gláucio de Araujo
>>>> >
>>>> > Mail : glaucio.de.ara...@gmail.com
>>>> > TIM  : (11) 95900-7801 (WhatsApp / Telegram)
>>>> >
>>>> > 2017-05-24 7:25 GMT-03:00 Benoît Minisini <
>>>> gam...@users.sourceforge.net>:
>>>> >
>>>> > > Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
>>>> > > > We need to wait for Benoit as it's a misstake on the rev 8132.
>>>> > > >
>>>> > >
>>>> > > I'm not sure it's a mistake in rev 8132. Fernando must check with an
>>>> > > older revision to see if the problem comes from it.
>>>> > >
>>>> > > Moreover, Glaucio says he has the problem with an older version of
>>>> > > Gambas, so...
>>>> > >
>>>> > > I think it's a problem related to QT and the Xim input method. So I
>>>> > > suggest people to change their input method to see if something
>>>> changes.
>>>> > >
>>>> > > --
>>>> > > Benoît Minisini
>>>> > >
>>>> > > 
>>>> > > --
>>>> > > Check out the vibrant tech community on one of the world's most
>>>> > > engaging tech

Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Fernando Cabral
Glaucio wrote:
>I don't know, but, since it works in other systems than Xubuntu/Mint, I
>guess that may be some environment variable missing.

Could be an environment variable issue. But which variable? As far as I
know, I did not change anything. So, if anything changed, it was changed
stealthily by an unknown program.

>With Benoit's script, for example, the TextEditor didn't worked here, but
>the same component did work just fine running in Gambas' design time
>test. Again, the difference, I guess, is pretty much just the execution
>environment, or not?

Only worked here on the virtual machine; not on the real machine.


2017-05-24 7:50 GMT-03:00 Glaucio Araujo <glaucio.de.ara...@gmail.com>:

> I don't know, but, since it works in other systems than Xubuntu/Mint, I
> guess that may be some environment variable missing.
>
> With Benoit's script, for exemple, the TextEditor didin't worked here, but
> the same component did worked just fine running in Gambas' design time
> test. Again, the difference, I guess, is pretty much just the execution
> environment, or not?
>
>
>
>
> ---
>
> Gláucio de Araujo
>
> Mail : glaucio.de.ara...@gmail.com
> TIM  : (11) 95900-7801 (WhatsApp / Telegram)
>
> 2017-05-24 7:25 GMT-03:00 Benoît Minisini <gam...@users.sourceforge.net>:
>
> > Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
> > > We need to wait for Benoit as it's a misstake on the rev 8132.
> > >
> >
> > I'm not sure it's a mistake in rev 8132. Fernando must check with an
> > older revision to see if the problem comes from it.
> >
> > Moreover, Glaucio says he has the problem with an older version of
> > Gambas, so...
> >
> > I think it's a problem related to QT and the Xim input method. So I
> > suggest people to change their input method to see if something changes.
> >
> > --
> > Benoît Minisini
> >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Fernando Cabral
Benoît says:
> I'm not sure it's a mistake in rev 8132. Fernando must check with an
> older revision to see if the problem comes from it.

When the problem appeared, I downgraded to the version I had on the Mint
repository.
I did not work. So, whatever has changed (either on the operating system or
on the gambas package), it affects present as well as previous versions.

> Moreover, Glaucio says he has the problem with an older version of
> Gambas, so...

Same here. But, using a virtual machine, both older and newest versions
work.

Besides, I am using Mint 8.1 both in the real and virtual machines. Both
are up to date.
So, the operating system version itself is not the culprit.

> I think it's a problem related to QT and the Xim input method. So I
> suggest people to change their input method to see if something changes

*.*
*I don't know peanuts about Xinput method. That's why I have no tried any
change on this*


*front as yet.*


*Regards*

*- fernando *



2017-05-24 7:25 GMT-03:00 Benoît Minisini <gam...@users.sourceforge.net>:

> Le 24/05/2017 à 08:44, Fabien Bodard a écrit :
> > We need to wait for Benoit as it's a misstake on the rev 8132.
> >
>
> I'm not sure it's a mistake in rev 8132. Fernando must check with an
> older revision to see if the problem comes from it.
>
> Moreover, Glaucio says he has the problem with an older version of
> Gambas, so...
>
> I think it's a problem related to QT and the Xim input method. So I
> suggest people to change their input method to see if something changes.
>
> --
> Benoît Minisini
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-24 Thread Fernando Cabral
Dimitris wrote:
> Ok.. Gambas3 run as root? Not a good idea. I realize it's a much needed
> workaround but not the recommended one. I would go with what Cris
suggested.

Agreed that running gambas as root is not a good idea. It was only a test.
Since some people
thought it could be a permission issue, running as root was a way to gather
more information on
the issue. It was not a proper workaround.

>I've run Gambas3 3.9.2 on a Virtualbox VM of Ubuntu Budgie 17.04 and as a
> normal user I've never had problems with the keyboard locking.
> Is there something that might be misconfigured on your VM perhaps (I mean
> on the Virtualbox settings)?

It is the other way around: Gambas 3.9.2 runs flawlessly on the Virtual Box.
The keyboard locks in the real machine -- even when the keyboard is the
same for both machines.

Regards

- fernando


2017-05-24 1:23 GMT-03:00 Dimitris Anogiatis <dos...@gmail.com>:

> Ok.. Gambas3 run as root? Not a good idea. I realize it's a much needed
> workaround but not the recommended one. I would go with what Cris
> suggested.
> I've run Gambas3 3.9.2 on a Virtualbox VM of Ubuntu Budgie 17.04 and as a
> normal user I've never had problems with the keyboard locking.
>
> Is there something that might be misconfigured on your VM perhaps (I mean
> on the Virtualbox settings)?
>
> On Mon, May 15, 2017 at 9:20 AM, Cristiano Guadagnino <crigu...@gmail.com>
> wrote:
>
> > Fernando, did you try setting up a new user on your system and trying to
> > run gambas as the new user?
> >
> > Cris
> >
> >
> >
> >   <https://mailtrack.io/>
> >
> > Sent with Mailtrack
> > <https://mailtrack.io/install?source=signature=en;
> > referral=crigu...@gmail.com=22>
> >
> >
> > On Mon, May 15, 2017 at 12:53 PM, Fernando Cabral <
> > fernandojosecab...@gmail.com> wrote:
> >
> > > Gláucio
> > >
> > > I see our systems and environment are quite similar, although not
> exactly
> > > the same. Have you installed something different that might have
> changed
> > > the IDE behavior? If I have, I have not been able to determine what it
> > > could be. What I know for sure is that one moment everything was
> working,
> > > next moment it was not anymore. What happened in-between, I can not
> > figure
> > > out.
> > >
> > > Now, after running gambas as superuser ("sudo gambas3") I have given up
> > the
> > > keyboard hypothesis (at least for now). I went back to the hypothesis
> > that
> > > it has to do with some file or directory permission. Nevertheless, I
> have
> > > not been able to determine which file or directory it could be. As to
> the
> > > project tree, I have opened it up completely (rwxrwxrwx for the
> > directories
> > > and at least rw-rw-rw- for the files. Even for the hidden ones.  It did
> > not
> > > help.
> > >
> > > I have also searched for every single file and directory related to
> > gambas.
> > > For this I used searches like "locate -i --regex .*gambas.*" and "gbr3"
> > and
> > > "gbx3", etc. Saved the results to a file and checked file and directory
> > > permissions. I could not find and thing unexpected.
> > >
> > > I have exhausted my bag of tricks so I have resorted to either of two
> > ugly
> > > workarounds:  running gambas as superuser or doing the edition in a
> > virtual
> > > machine. In the last option, I just mount the project tree as a
> directory
> > > in the virtual machine. Then I make the changes in the virtual machine
> > and
> > > test them in the real machine. Cumbersome, but has worked.
> > > I would ask you to try running "sudo gambas3". If you can edit your
> files
> > > as superuser, then it will be very likely that we have exactly the same
> > > problem.
> > >
> > > Saudações
> > >
> > > - fernando
> > >
> > > 2017-05-14 18:19 GMT-03:00 Glaucio Araujo <glaucio.de.ara...@gmail.com
> >:
> > >
> > > > Hi,
> > > >
> > > > I'm having exactly the same problem here in Xubuntu 17.04 with Gambas
> > > 3.9.1
> > > > and 3.9.2(PPA).
> > > >
> > > >
> > > > ​My system information:
> > > >
> > > > [System]
> > > > Gambas=3.9.2
> > > > OperatingSystem=Linux
> > > > Kernel=4.10.0-20-generic
> > > > Architecture=x86_64
> > > > Distribution=Ubuntu 17.04
> &

Re: [Gambas-user] What is the maximum text we can put on a TextArea?

2017-05-23 Thread Fernando Cabral
Tobi wrote:
>I don't know where your problems with text input controls come from but I
>just generated a 10^6 characters long string and inserted it into a
TextArea
>without any problems.

That's impressive. And much longer than I need.
Perhaps I should try a different explanation for the failure. Which makes
sense, since
different strings have given different limits on the test I've performed.

Thank you.

- fernando

2017-05-23 13:58 GMT-03:00 Tobias Boege <tabo...@gmail.com>:

> On Tue, 23 May 2017, Fernando Cabral wrote:
> > How much text can we display on TextArea?
> > Even after performing serval tests I couldn' t find out.
> > It seems sometimes I can display 7000 characters,
> > sometimes  twice as much.
> >
> > Perhaps someone can point me the proper documentation.
> >
>
> Whatever the answer is, it is not to be found in the Gambas documentation.
> Gambas borrows its primitive graphical controls from toolkits, Gtk and QT,
> in (meanwhile) multiple versions. Their documentation is where you should
> start looking. (I would *assume* that the answer is: as much as memory
> permits.)
>
> I don't know where your problems with text input controls come from but I
> just generated a 10^6 characters long string and inserted it into a
> TextArea
> without any problems.
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] What is the maximum text we can put on a TextArea?

2017-05-23 Thread Fernando Cabral
How much text can we display on TextArea?
Even after performing serval tests I couldn' t find out.
It seems sometimes I can display 7000 characters,
sometimes  twice as much.

Perhaps someone can point me the proper documentation.

Thanks

- fernando

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Editing still blocked

2017-05-22 Thread Fernando Cabral
For those of you that, like me, are having trouble with editing a source
file, I have been using two functional workarounds:

a) I run a virtual machine (vbox), and then I mount the project directory
onto the virtual machine. From this virtual machine I edit the source code,
compile it, and then switch back to the real machine, where I test it.

b) Running on the real machine, I edit the source code using vi. After
saving the edited file I reload it on the gambas IDE, compile it and test
it.

Cumbersome, perhaps, but workable enough to let me keep learning gambas

Regards

- fernando


2017-05-18 15:31 GMT-03:00 Karl Reinl <karl.re...@fen-net.de>:

> Am Donnerstag, den 18.05.2017, 00:50 +0200 schrieb Benoît Minisini:
> > Le 17/05/2017 à 22:30, Fabien Bodard a écrit :
> > > So the problem come from the drawingarea.
> > >
> >
> > I have changed something related to events in revision #8132, so it must
> > me that.
> >
> > But everything works correctly on my system...
> >
> > I will investigate, but not before next week.
> >
> > Regards,
> >
>
> Salut,
>
> until your solution comes, the SVN-user can check out release 8131
> svn checkout -r 8131  
> --
> Amicalement
> Charlie
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Keyboard locked -- insisting one more time

2017-05-15 Thread Fernando Cabral
Gláucio wrote:
> gda@acer:~$ sudo gambas3
> [sudo] senha para gda:
> X Error: BadAccess (attempt to access private resource denied) 10
> Extension:130 (MIT-SHM)
>  Minor opcode: 1 (X_ShmAttach)
 > Resource id:  0x141

I don´t get this error. It runs smoothly. But then, I am running Mint 18.1
(and the same on the virtual machine...)

It seems Benoît thinks it has to do with keyboard input. He suggested I
changed Xinput method, but did not give any hints on what to change.

- fernando

2017-05-15 9:53 GMT-03:00 Glaucio Araujo <glaucio.de.ara...@gmail.com>:

> Let's see...​
>
>
>
> > Have you installed something different that might have changed
> > the IDE behavior?
>
>
>
> ​Not that I know. The problem happened just after Gambas fresh install.
>
>
>
> >
> > Now, after running gambas as superuser ("sudo gambas3") I have given up
> the
> > keyboard hypothesis (at least for now). I went back to the hypothesis
> that
> > it has to do with some file or directory permission. Nevertheless, I have
> > not been able to determine which file or directory it could be. As to the
> > project tree, I have opened it up completely (rwxrwxrwx for the
> directories
> > and at least rw-rw-rw- for the files. Even for the hidden ones.  It did
> not
> > help.
> >
>
>
> ​Same here. But I know that it has nothing to do with permissions, since
> it's possible to paste with the mouse.
>
>
>
> >
> >
> > I have exhausted my bag of tricks so I have resorted to either of two
> ugly
> > workarounds:  running gambas as superuser or doing the edition in a
> virtual
> > machine. In the last option, I just mount the project tree as a directory
> > in the virtual machine. Then I make the changes in the virtual machine
> and
> > test them in the real machine. Cumbersome, but has worked.
> > I would ask you to try running "sudo gambas3". If you can edit your files
> > as superuser, then it will be very likely that we have exactly the same
> > problem.
> >
>
>
> Running as "sudo":
>
> gda@acer:~$ sudo gambas3
> [sudo] senha para gda:
> X Error: BadAccess (attempt to access private resource denied) 10
>   Extension:130 (MIT-SHM)
>   Minor opcode: 1 (X_ShmAttach)
>   Resource id:  0x141
>
>
> ​+ ​I'm wondering if the editor uses Java. There was some similar issues
> with keyboards and java code editors on Linux in the past.
>
> + I'm also thinking about some Gtk+2/3 missing or conflicting library,
> since my system has Xubuntu and Gnome 3.24.1
>
> + Maybe some Xorg setting could do the trick, as it is the only difference
> I can think between VM/Desktop install.
>
>
>
> ​Abraço!​
>
>
> ​
> ​
> ---
>
> Gláucio de Araujo
>
> Mail : glaucio.de.ara...@gmail.com
> TIM  : (11) 95900-7801 (WhatsApp / Telegram)
> ​
> --------
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-15 Thread Fernando Cabral
that I know of.
> > Second, why I only see the problem with the gambas IDE? Everything else
> is
> > working fine.
> >
> > I also have tried this:
> > a) installed Linux Mint 18.1 in a virtual box
> > b) mounted the original directories in the virtual box
> > c) installed gambas in the virtual machine
> > d) edited the original files in the virtual environment -- no problems
> > whatsoever.
> >
> > The keyboard is the same. The hardware is the same. The operating system
> is
> > the same.
> > Nevertheless, the IDE behavior is different.
> >
> > It must have something to do with the keyboard driver, but what?
> >
> > I still  can't see why this would only affect Gambas and nothing else.
> Not
> > even applications developed with gambas.
> >
> > Anyway, I am glad you and others have tried so hard to help me.
> >
> > - fernando
> >
> >
> >
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Keyboard locked -- insisting one more time

2017-05-13 Thread Fernando Cabral
Thank you, Tobi for your patience explaining this whole thing.
Your comments make sense. No, as to the keyboard issue,
what I can not figure out boils down to two things: First, I have not
changed anything. At least that I know of.
Second, why I only see the problem with the gambas IDE? Everything else is
working fine.

I also have tried this:
a) installed Linux Mint 18.1 in a virtual box
b) mounted the original directories in the virtual box
c) installed gambas in the virtual machine
d) edited the original files in the virtual environment -- no problems
whatsoever.

The keyboard is the same. The hardware is the same. The operating system is
the same.
Nevertheless, the IDE behavior is different.

It must have something to do with the keyboard driver, but what?

I still  can't see why this would only affect Gambas and nothing else. Not
even applications developed with gambas.

Anyway, I am glad you and others have tried so hard to help me.

- fernando



2017-05-13 13:07 GMT-03:00 Tobias Boege <tabo...@gmail.com>:

> On Sat, 13 May 2017, Fernando Cabral wrote:
> > Using IDE I can't edit my source code. It seems locked up. To no avail, I
> > have followed every hint I' ve received from you guys. I've done more. I
> > have uninstalled the whole gambas package. I have even searched every
> file
> > using find and locate so as not to leave any remains behind. I compressed
> > and save source code and moved all of them to a different directory.
> >
> > After that, I installed gambas3. The First time, I used apt-get and got
> an
> > older version. It did not work. I uninstalled and proceeded to full
> removal
> > again.
> > Then installed one more time using PPA. Again, it dis not work.
> >
> > I even tried using a virtual keyboard (Florence). Same problem.
> >
> > I am at a complete lost. I have no idea where else, or what else to look
> > for.
> >
> > Will someone be kind enough to tell me what the IDE looks for to decide
> if
> > the source code is locked or not for edition?
> >
> > One more note: I can use cut, copy and paste. Everything that can be done
> > with a mouse click works, but the keys used for editing are all locked
> > (arrows, character, pgdn, pgup, etc.)
> >
> > I've created a virtual machine with the same environment (linux mint
> 18.1).
> > There I can install gambas and change my source code.
> >
> > Any hints, no matter how crazy, will be much appreciated. I have already
> > lost a bunch of hours trying to figure this out, but have made no
> progress
> > so far.
> >
>
> I haven't been closely attending the other thread(s) but from this summary
> it sounds to me like the problem is somewhere between your keyboard and the
> IDE and not inside of the IDE. This would explain why chmod'ing didn't cure
> the symptom. I'll try to convince you of that below.
>
> It might still be a problem inside the graphical Gambas components, for
> instance, which handle keyboard input, but since you completely removed and
> re-installed Gambas multiple times and confirm it works under another
> installation of the same distribution, this sounds less likely than, say,
> an incompatibility or misconfiguration of another package. Then again this
> is also unlikely since Gambas is the only program that misbehaves, right?
>
> So, I have no other hints to give. But I can answer your question:
>
> > Will someone be kind enough to tell me what the IDE looks for to decide
> if
> > the source code is locked or not for edition?
>
> There are two ways to make files non-editable in the IDE: the first is
> making the project globally read-only, the other is locking specific files.
>
> For project-wide locking, quoting Project.module:Open() in the IDE source:
>
>467 Public Function Open(sDir As String, Optional bInAnotherWindow As
> Boolean) As Boolean
>...
>523   ReadOnly = Not Access(sDir, gb.Write)
>524
>525   If Not ReadOnly Then
>526 If Exist(sDir &/ ".startup") And If Not Access(sDir &/
> ".startup", gb.Write) Then ReadOnly = True
>527   Endif
>528
>529   Try hLock = Lock sDir &/ ".lock"
>530
>531   If Not ReadOnly And ((bConvert And Exist(sDir &/ ".lock")) Or Not
> hLock) Then
>532 If Message.Warning(("This project seems to be already
> opened.\n\nOpening the same project twice can lead to data loss."),
>533 ("Open after all"), ("Do not open")) = 2 Then
>534   Return True
>535 Endif
>536   Endif
>
> sDir is the project directory. So it first checks whether the project
> directory is writable by the 

Re: [Gambas-user] Keyboard locked -- insisting one more time

2017-05-13 Thread Fernando Cabral
Benoît, for me, hic sunt dracones. What should I change?

Regards

Fernando

2017-05-13 12:24 GMT-03:00 Benoît Minisini <gam...@users.sourceforge.net>:

> Le 13/05/2017 à 15:56, Fernando Cabral a écrit :
>
>> Using IDE I can't edit my source code. It seems locked up. To no avail, I
>> have followed every hint I' ve received from you guys. I've done more. I
>> have uninstalled the whole gambas package. I have even searched every file
>> using find and locate so as not to leave any remains behind. I compressed
>> and save source code and moved all of them to a different directory.
>>
>> After that, I installed gambas3. The First time, I used apt-get and got an
>> older version. It did not work. I uninstalled and proceeded to full
>> removal
>> again.
>> Then installed one more time using PPA. Again, it dis not work.
>>
>> I even tried using a virtual keyboard (Florence). Same problem.
>>
>> I am at a complete lost. I have no idea where else, or what else to look
>> for.
>>
>> Will someone be kind enough to tell me what the IDE looks for to decide if
>> the source code is locked or not for edition?
>>
>> One more note: I can use cut, copy and paste. Everything that can be done
>> with a mouse click works, but the keys used for editing are all locked
>> (arrows, character, pgdn, pgup, etc.)
>>
>> I've created a virtual machine with the same environment (linux mint
>> 18.1).
>> There I can install gambas and change my source code.
>>
>> Any hints, no matter how crazy, will be much appreciated. I have already
>> lost a bunch of hours trying to figure this out, but have made no progress
>> so far.
>>
>> Regards
>>
>> - fernando
>>
>>
>>
> Can you try to change your XInput method?
>
> --
> Benoît Minisini
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Keyboard locked -- insisting one more time

2017-05-13 Thread Fernando Cabral
Using IDE I can't edit my source code. It seems locked up. To no avail, I
have followed every hint I' ve received from you guys. I've done more. I
have uninstalled the whole gambas package. I have even searched every file
using find and locate so as not to leave any remains behind. I compressed
and save source code and moved all of them to a different directory.

After that, I installed gambas3. The First time, I used apt-get and got an
older version. It did not work. I uninstalled and proceeded to full removal
again.
Then installed one more time using PPA. Again, it dis not work.

I even tried using a virtual keyboard (Florence). Same problem.

I am at a complete lost. I have no idea where else, or what else to look
for.

Will someone be kind enough to tell me what the IDE looks for to decide if
the source code is locked or not for edition?

One more note: I can use cut, copy and paste. Everything that can be done
with a mouse click works, but the keys used for editing are all locked
(arrows, character, pgdn, pgup, etc.)

I've created a virtual machine with the same environment (linux mint 18.1).
There I can install gambas and change my source code.

Any hints, no matter how crazy, will be much appreciated. I have already
lost a bunch of hours trying to figure this out, but have made no progress
so far.

Regards

- fernando


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Editing still blocked

2017-05-10 Thread Fernando Cabral
After some more testing, I found the problem seems to be related to the
keyboard.
After all, I've found that I  can edit the source code, as long I only use
the mouse for editing (cutting, copying, pasting).
I can click and save the program, I can compile it.

As to the keyboard, no regular key works (digits, alpha or editing: arrow,
home, pgup or down, insert, delete, etc.)
Keys that are intercepted by the windows managers do work (for instance,
ALT+TAB, CTRL^+ALT+T, etc.).

So the problem has now narrowed down to a frozen keyboard. The rub now
seems to be finding why the IDE is not reading the keyboard.

Regards

- fernando

2017-05-10 3:47 GMT-03:00 Rolf-Werner Eilert <rwe-...@osnanet.de>:

> Am 10.05.2017 01:04, schrieb Jussi Lahtinen:
> > Maybe some window manager setting steal focus from the editor..?
> >
> >
> > Jussi
> >
>
>
> Further upstairs in the thread, Fernando answered to a question from me:
>
> "Nevertheless, the problem appeared after I had
> downloaded
> docEditor from the farm. After that, editing has been locked. But I can't
> affirm there is
> a cause/effect here.For the time being, I see it as a coincidence."
>
> Sounds strange, especially after re-installation, but source code isn't
> de-installed after all, so the blocking element might still be there.
>
> Rolf
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Editing still blocked

2017-05-09 Thread Fernando Cabral
Here goes the the archive generated as instructed.
(Code quality is pretty poor because this was my first try at gambas).

- fernando


2017-05-09 18:56 GMT-03:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:

> Can you try to re-send the project directory as the file you attached is
> not extractable. Do it this way; go to Gambas IDE, open some project and go
> to menu "project" --> "make" --> "source archive". And send the result.
>
>
> Jussi
>
> On Wed, May 10, 2017 at 12:31 AM, Fernando Cabral <
> fernandojosecab...@gmail.com> wrote:
>
>> Jussi, I am baffled. I have removed everything you suggested. But I went
>> beyond. I updated the "locate" database and searched for everything that
>> contained "gambas" somewhere in the filename or directory name "locate -i
>> --regex "*.gambas.*". I did this after a regular "remove" and
>> "autoremove"  with apt-get. I saved the printout in a file, turned it
>> into a shell script and removed everything, except source code. Then I
>> updated the locate database once more. After that, searching "locate -i
>> --regex ".*gambas.*" returned nihil. So, not a trace from gambas.
>>
>> Then I reinstalled anew using the regular apt-get (no PPA). Installed
>> version is now 3.8.4
>>
>> IDE still locked. This mystifies me.  There must be a file somewhere
>> whose name does not contain "gambas" that says I should not be able to edit
>> any source code. I am about to give up.
>>
>> Regards
>>
>> - fernando
>>
>> 2017-05-09 17:47 GMT-03:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
>>
>>> Remove *all* installations of Gambas 3 (made from PPAs, repos, compiled,
>>> etc), and then run these commands:
>>>
>>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3
>>> /usr/local/bin/gbi3 /usr/local/bin/gbs3
>>> sudo rm -rf /usr/local/lib/gambas3
>>> sudo rm -rf /usr/local/share/gambas3
>>> sudo rm -f /usr/local/bin/gambas3
>>> sudo rm -f /usr/local/bin/gambas3.gambas
>>>
>>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3
>>> /usr/local/bin/gbs3
>>> sudo rm -rf /usr/lib/gambas3
>>> sudo rm -rf /usr/share/gambas3
>>> sudo rm -f /usr/bin/gambas3
>>> sudo rm -f /usr/bin/gambas3.gambas
>>>
>>> After that, try to install Gambas 3 again. That is just to make sure you
>>> have clean install.
>>>
>>>
>>> Jussi
>>>
>>>
>>> On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral <
>>> fernandojosecab...@gmail.com> wrote:
>>>
>>>>  >Can you send a tar.gz archive of your project directory?
>>>>
>>>> I am sending one. Do you need them all?
>>>> (tar compressed)
>>>>
>>>> Regards
>>>>
>>>> - fernando
>>>>
>>>> 
>>>> --
>>>> Check out the vibrant tech community on one of the world's most
>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>> ___
>>>> Gambas-user mailing list
>>>> Gambas-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>
>>>>
>>>
>>
>>
>> --
>> Fernando Cabral
>> Blogue: http://fernandocabral.org
>> Twitter: http://twitter.com/fjcabral
>> e-mail: fernandojosecab...@gmail.com
>> Facebook: f...@fcabral.com.br
>> Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868>
>> Wickr ID: fernandocabral
>> WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868>
>> Skype:  fernandojosecabral
>> Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183>
>> Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868>
>>
>> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
>> nenhum político ou cientista poderá se gabar de nada.
>>
>>
>


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.


Legibilidade-odt-0.0.351.tar.gz
Description: GNU Zip compressed data
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Editing still blocked

2017-05-09 Thread Fernando Cabral
> 2017-05-09 19:01 GMT-03:00 Jussi Lahtinen <jussi.lahti...@gmail.com>
wrote:

> Also what happens if you try to edit the project with regular text editor,
> instead of Gambas?
>

They all can be edited. For instance, with vi. No problem.

- fernando

>
> Jussi
>
> On Wed, May 10, 2017 at 12:56 AM, Jussi Lahtinen <jussi.lahti...@gmail.com
> > wrote:
>
>> Can you try to re-send the project directory as the file you attached is
>> not extractable. Do it this way; go to Gambas IDE, open some project and go
>> to menu "project" --> "make" --> "source archive". And send the result.
>>
>>
>> Jussi
>>
>> On Wed, May 10, 2017 at 12:31 AM, Fernando Cabral <
>> fernandojosecab...@gmail.com> wrote:
>>
>>> Jussi, I am baffled. I have removed everything you suggested. But I went
>>> beyond. I updated the "locate" database and searched for everything that
>>> contained "gambas" somewhere in the filename or directory name "locate -i
>>> --regex "*.gambas.*". I did this after a regular "remove" and
>>> "autoremove"  with apt-get. I saved the printout in a file, turned it
>>> into a shell script and removed everything, except source code. Then I
>>> updated the locate database once more. After that, searching "locate -i
>>> --regex ".*gambas.*" returned nihil. So, not a trace from gambas.
>>>
>>> Then I reinstalled anew using the regular apt-get (no PPA). Installed
>>> version is now 3.8.4
>>>
>>> IDE still locked. This mystifies me.  There must be a file somewhere
>>> whose name does not contain "gambas" that says I should not be able to edit
>>> any source code. I am about to give up.
>>>
>>> Regards
>>>
>>> - fernando
>>>
>>> 2017-05-09 17:47 GMT-03:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
>>>
>>>> Remove *all* installations of Gambas 3 (made from PPAs, repos,
>>>> compiled, etc), and then run these commands:
>>>>
>>>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3
>>>> /usr/local/bin/gbi3 /usr/local/bin/gbs3
>>>> sudo rm -rf /usr/local/lib/gambas3
>>>> sudo rm -rf /usr/local/share/gambas3
>>>> sudo rm -f /usr/local/bin/gambas3
>>>> sudo rm -f /usr/local/bin/gambas3.gambas
>>>>
>>>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3
>>>> /usr/local/bin/gbs3
>>>> sudo rm -rf /usr/lib/gambas3
>>>> sudo rm -rf /usr/share/gambas3
>>>> sudo rm -f /usr/bin/gambas3
>>>> sudo rm -f /usr/bin/gambas3.gambas
>>>>
>>>> After that, try to install Gambas 3 again. That is just to make sure
>>>> you have clean install.
>>>>
>>>>
>>>> Jussi
>>>>
>>>>
>>>> On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral <
>>>> fernandojosecab...@gmail.com> wrote:
>>>>
>>>>>  >Can you send a tar.gz archive of your project directory?
>>>>>
>>>>> I am sending one. Do you need them all?
>>>>> (tar compressed)
>>>>>
>>>>> Regards
>>>>>
>>>>> - fernando
>>>>>
>>>>> 
>>>>> --
>>>>> Check out the vibrant tech community on one of the world's most
>>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>>> ___
>>>>> Gambas-user mailing list
>>>>> Gambas-user@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Fernando Cabral
>>> Blogue: http://fernandocabral.org
>>> Twitter: http://twitter.com/fjcabral
>>> e-mail: fernandojosecab...@gmail.com
>>> Facebook: f...@fcabral.com.br
>>> Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868>
>>> Wickr ID: fernandocabral
>>> WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868>
>>> Skype:  fernandojosecabral
>>> Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183>
>>> Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868>
>>>
>>> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
>>> nenhum político ou cientista poderá se gabar de nada.
>>>
>>>
>>
>


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Editing still blocked

2017-05-09 Thread Fernando Cabral
Jussi, I am baffled. I have removed everything you suggested. But I went
beyond. I updated the "locate" database and searched for everything that
contained "gambas" somewhere in the filename or directory name "locate -i
--regex "*.gambas.*". I did this after a regular "remove" and
"autoremove"  with apt-get. I saved the printout in a file, turned it into
a shell script and removed everything, except source code. Then I updated
the locate database once more. After that, searching "locate -i --regex
".*gambas.*" returned nihil. So, not a trace from gambas.

Then I reinstalled anew using the regular apt-get (no PPA). Installed
version is now 3.8.4

IDE still locked. This mystifies me.  There must be a file somewhere whose
name does not contain "gambas" that says I should not be able to edit any
source code. I am about to give up.

Regards

- fernando

2017-05-09 17:47 GMT-03:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:

> Remove *all* installations of Gambas 3 (made from PPAs, repos, compiled,
> etc), and then run these commands:
>
> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3
> /usr/local/bin/gbi3 /usr/local/bin/gbs3
> sudo rm -rf /usr/local/lib/gambas3
> sudo rm -rf /usr/local/share/gambas3
> sudo rm -f /usr/local/bin/gambas3
> sudo rm -f /usr/local/bin/gambas3.gambas
>
> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3
> /usr/local/bin/gbs3
> sudo rm -rf /usr/lib/gambas3
> sudo rm -rf /usr/share/gambas3
> sudo rm -f /usr/bin/gambas3
> sudo rm -f /usr/bin/gambas3.gambas
>
> After that, try to install Gambas 3 again. That is just to make sure you
> have clean install.
>
>
> Jussi
>
>
> On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral <
> fernandojosecab...@gmail.com> wrote:
>
>>  >Can you send a tar.gz archive of your project directory?
>>
>> I am sending one. Do you need them all?
>> (tar compressed)
>>
>> Regards
>>
>> - fernando
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Editing still blocked

2017-05-08 Thread Fernando Cabral
 >Can you send a tar.gz archive of your project directory?

I am sending one. Do you need them all?
(tar compressed)

Regards

- fernando


legibilidade
Description: Binary data
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Editing still blocked

2017-05-08 Thread Fernando Cabral
Karl wrote:

> Are these projects which you have coded yourself, saved and then closed
> and opened again? Or are these project which were made by others?
[...]
> In the past (before software farm), there used to be the problem that
> when I loaded one of the examples offered on the website, they could be
> run but not edited. It's not that problem, is it? It was the rights
> thing, but not chmod but chown which caused it. Or maybe you loaded your
> own stuff from another machine where your username has another Uid?

I did the code myself. Nevertheless, the problem appeared after I had
downloaded
docEditor from the farm. After that, editing has been locked. But I can't
affirm there is
a cause/effect here.For the time being, I see it as a coincidence.

Regards

- fernando


2017-05-08 11:11 GMT-03:00 Karl Reinl <karl.re...@fen-net.de>:

> Am Montag, den 08.05.2017, 09:37 -0300 schrieb Fernando Cabral:
> > > 2017-05-08 8:43 GMT-03:00 Charlie <char...@cogier.com> wrote:
> > > Have you checked the Edit menu, there is a 'Locked' feature there.
> This is
> > > just a guess as 'Everything is locked' is a little vague.
> >
> > Charlie, unfortunately, "everything is locked" means what it is supposed
> to
> > mean: I can't edit anything. No application, no source, nothing. I can
> load
> > any project, but when I try to edit anything -- like say, entering a new
> > line or even a new character,
> > the gambas editor does not respond. This applies to any and every
> project I
> > load.
> >
> > Yes, I have tried locking and unlocking clicking on the lock icon. The
> only
> > thing that changes is that on the tab appears the warning "Read only".
> But
> > the editing continues locked no matter what.
> >
> > I have changed project files and directories do 777 (rwxrwxrwx) but stil
> to
> > no avail.
> >
> > Even if I create a new project, it is born locked for editing.
> >
> > Regards
> >
> > - fernando
>
> Salut Fernando,
>
> what#s about creating a new project ?
>
> If I remember well you compile your gambas3 from source, isn't it.
> What I would try at your point, deleting the gambas3 installation and
> restating from scratch.
>
> Oh, have you had a gambas3 installation from other resources?
> If yes you have to remove that first.
> .
>
> --
> Amicalement
> Charlie
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Editing still blocked

2017-05-08 Thread Fernando Cabral
2017-05-08 10:03 GMT-03:00 Jussi Lahtinen <jussi.lahti...@gmail.com> wrote:

> So Gambas IDE does *not* claim the project is locked, but you simply
> cannot edit anything. Can you give your system information?
>

Precisely.

Linux Inspiron-5537 4.8.0-49-generic #52~16.04.1-Ubuntu SMP Thu Apr 20
10:55:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

That, in fact, is Linux Mint 8.1 Serena.

Thank you.

- fernando

>
> Jussi
>
> On Mon, May 8, 2017 at 3:37 PM, Fernando Cabral <
> fernandojosecab...@gmail.com> wrote:
>
>> > 2017-05-08 8:43 GMT-03:00 Charlie <char...@cogier.com> wrote:
>> > Have you checked the Edit menu, there is a 'Locked' feature there. This
>> is
>> > just a guess as 'Everything is locked' is a little vague.
>>
>> Charlie, unfortunately, "everything is locked" means what it is supposed
>> to
>> mean: I can't edit anything. No application, no source, nothing. I can
>> load
>> any project, but when I try to edit anything -- like say, entering a new
>> line or even a new character,
>> the gambas editor does not respond. This applies to any and every project
>> I
>> load.
>>
>> Yes, I have tried locking and unlocking clicking on the lock icon. The
>> only
>> thing that changes is that on the tab appears the warning "Read only". But
>> the editing continues locked no matter what.
>>
>> I have changed project files and directories do 777 (rwxrwxrwx) but stil
>> to
>> no avail.
>>
>> Even if I create a new project, it is born locked for editing.
>>
>> Regards
>>
>> - fernando
>>
>> 2017-05-08 8:43 GMT-03:00 Charlie <char...@cogier.com>:
>>
>> > Have you checked the Edit menu, there is a 'Locked' feature there. This
>> is
>> > just a guess as 'Everything is locked' is a little vague.
>> >
>> >
>> >
>> > -
>> > Check out www.gambas.one
>> > --
>> > View this message in context: http://gambas.8142.n7.nabble.
>> > com/Editing-still-blocked-tp58923p58924.html
>> > Sent from the gambas-user mailing list archive at Nabble.com.
>> > ----
>> > --
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > ___
>> > Gambas-user mailing list
>> > Gambas-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >
>>
>>
>>
>> --
>> Fernando Cabral
>> Blogue: http://fernandocabral.org
>> Twitter: http://twitter.com/fjcabral
>> e-mail <http://twitter.com/fjcabrale-mail>: fernandojosecab...@gmail.com
>> Facebook: f...@fcabral.com.br
>> Telegram: +55 (37) 99988-8868
>> Wickr ID: fernandocabral
>> WhatsApp: +55 (37) 99988-8868
>> Skype:  fernandojosecabral
>> Telefone fixo: +55 (37) 3521-2183
>> Telefone celular: +55 (37) 99988-8868
>>
>> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
>> nenhum político ou cientista poderá se gabar de nada.
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Editing still blocked

2017-05-08 Thread Fernando Cabral
> 2017-05-08 8:43 GMT-03:00 Charlie <char...@cogier.com> wrote:
> Have you checked the Edit menu, there is a 'Locked' feature there. This is
> just a guess as 'Everything is locked' is a little vague.

Charlie, unfortunately, "everything is locked" means what it is supposed to
mean: I can't edit anything. No application, no source, nothing. I can load
any project, but when I try to edit anything -- like say, entering a new
line or even a new character,
the gambas editor does not respond. This applies to any and every project I
load.

Yes, I have tried locking and unlocking clicking on the lock icon. The only
thing that changes is that on the tab appears the warning "Read only". But
the editing continues locked no matter what.

I have changed project files and directories do 777 (rwxrwxrwx) but stil to
no avail.

Even if I create a new project, it is born locked for editing.

Regards

- fernando

2017-05-08 8:43 GMT-03:00 Charlie <char...@cogier.com>:

> Have you checked the Edit menu, there is a 'Locked' feature there. This is
> just a guess as 'Everything is locked' is a little vague.
>
>
>
> -
> Check out www.gambas.one
> --
> View this message in context: http://gambas.8142.n7.nabble.
> com/Editing-still-blocked-tp58923p58924.html
> Sent from the gambas-user mailing list archive at Nabble.com.
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Editing still blocked

2017-05-08 Thread Fernando Cabral
I really need your help. I can't edit any code. Everything is locked. I
have even taken two extreme measures: changed the whole directory tree to
777 (chmod-R 777 .) and re-installed gambas from scratch (this time using
the PPA).

Still does not work. Perhaps there is a specific file that  tells gambas
to keep the whole thing locked. Isn't there?

I'd appreciate if someone can give me some more ideas to try.

Regards

- fernando


-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas editor is locked

2017-05-02 Thread Fernando Cabral
Karl wrote:
> your rights are ideal. If you lock them, inside /.src you will find
> -r--r--r-- 1 fernando fernando.
> Did you check inside /.src ?
Yes, using "find ... ls -la" I checked one by one. They all have at least
the access permission indicated.

> If inside /.src  files are also -rw-r--r-- 1 fernando fernando, try a
> 'touch test.log' to check if that is possible,repeat it after a  minute
> or two (look at the timestamp  between)  to check if you have that
> rights.

I have no problem writing inside any of those directories.

> Oh, before it was said using gambas IDE you have to have  rw on /tmp.
Yes, thatś pretty standard, and I have those permissions on /tmp.

I am still clueless.

- fernando

2017-05-02 10:47 GMT-03:00 Karl Reinl <karl.re...@fen-net.de>:

> Am Dienstag, den 02.05.2017, 09:53 -0300 schrieb Fernando Cabral:
>
> > Karl wrote:
> >
> > > the directory from gbDocEditor. is (if you have downloaded via
> > > softwarefarm) ~/.local/share/gambas3/src/oliviercruilles/gbDocEditor
> > > Just run a chmod  -R on that.
> > > But first look whats are your rights on it.
> >
> > Yes, I donwloaded it via softwarefarm.
> > I checked files and directories bellow oliviercruilles and they have the
> > permissions set to at least the following:
> >
> > drwxr-xr-x 3 fernando fernando   -- if a directory
> > -rw-r--r-- 1 fernando fernando  -- if a file
> >
> > Now, to run "chmod -R" what is the ideal permission setting?
> >
> > Regards
> >
> > - fernando
>
>
>
> Salut Fernando,
>
>
> your rights are ideal. If you lock them, inside /.src you will find
> -r--r--r-- 1 fernando fernando.
> Did you check inside /.src ?
> If inside /.src  files are also -rw-r--r-- 1 fernando fernando, try a
> 'touch test.log' to check if that is possible,repeat it after a  minute
> or two (look at the timestamp  between)  to check if you have that
> rights.
>
> Oh, before it was said using gambas IDE you have to have  rw on /tmp.
>
> --
> Amicalement
> Charlie
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas editor is locked

2017-05-02 Thread Fernando Cabral
Karl wrote:

> the directory from gbDocEditor. is (if you have downloaded via
> softwarefarm) ~/.local/share/gambas3/src/oliviercruilles/gbDocEditor
> Just run a chmod  -R on that.
> But first look whats are your rights on it.

Yes, I donwloaded it via softwarefarm.
I checked files and directories bellow oliviercruilles and they have the
permissions set to at least the following:

drwxr-xr-x 3 fernando fernando   -- if a directory
-rw-r--r-- 1 fernando fernando  -- if a file

Now, to run "chmod -R" what is the ideal permission setting?

Regards

- fernando





2017-05-02 9:22 GMT-03:00 Karl Reinl <karl.re...@fen-net.de>:

> Am Dienstag, den 02.05.2017, 07:08 -0300 schrieb Fernando Cabral:
> > Karl wrote:
> >
> > >I suppose You have opened the example projects, is it?
> > > Just save you a local copy by 'save as'..
> >
> > I did download and open gbDocEditor. Do you mean it can lock all my
> > projects?
> > If so, what else can I do to unlock it? Saving as did not seem to work.
> >
> > - fernando
>
> Salut Fernando,
>
> the directory from gbDocEditor. is (if you have downloaded via
> softwarefarm) ~/.local/share/gambas3/src/oliviercruilles/gbDocEditor
> Just run a chmod  -R on that.
> But first look whats are your rights on it.
>
> --
> Amicalement
> Charlie
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas editor is locked

2017-05-02 Thread Fernando Cabral
Karl wrote:

>I suppose You have opened the example projects, is it?
> Just save you a local copy by 'save as'..

I did download and open gbDocEditor. Do you mean it can lock all my
projects?
If so, what else can I do to unlock it? Saving as did not seem to work.

- fernando

2017-05-02 3:22 GMT-03:00 Karl Reinl <karl.re...@fen-net.de>:

> Am Montag, den 01.05.2017, 21:36 -0300 schrieb Fernando Cabral:
> > All of a sudden, I can not edit any project. They are all locked.
> > Hitting the lock icon does not change anything except that
> > on the tab where the module name is shown the expression '[read only]"
> > appears and disappears. But I still can not edit the source code.
> >
> > What I am supposed to do to fix this?
> >
>
> Salut,
>
> I suppose You have opened the example projects, is it?
> Just save you a local copy by 'save as'..
> --
> Amicalement
> Charlie
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gambas editor is locked

2017-05-01 Thread Fernando Cabral
All of a sudden, I can not edit any project. They are all locked.
Hitting the lock icon does not change anything except that
on the tab where the module name is shown the expression '[read only]"
appears and disappears. But I still can not edit the source code.

What I am supposed to do to fix this?

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   >