Re: [Gambas-user] external function freezes

2018-06-08 Thread Jussi Lahtinen
Correction, "is" not "of".


Jussi

On Sat, Jun 9, 2018 at 12:13 AM, Jussi Lahtinen 
wrote:

> I guess it is just waiting process with pid 8634... how do you ensure this
> pid of given to the process?
>
>
> Jussi
>
> On Fri, Jun 8, 2018 at 11:41 PM, Demosthenes Koptsis <
> demosthen...@gmail.com> wrote:
>
>> Hello, i implemented a ptrace and waitpid external functions in order to
>> read/write a memory address of a process.
>>
>> i want to make a trainer for a game in gambas and i created a small
>> program that reads and writes to a memory process.
>>
>> The problem is that when i try to write to memory it freezes at waitpid
>> line.
>>
>> i attach the test program you have to 1) open it as root 2) run a process
>> you want to hack and get the pid 3) scan memory with scanmem and locate an
>> address you want to write. 4) run my test program and see it freezes.
>>
>> Any help?
>>
>>
>> 
>> --
>> 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


Re: [Gambas-user] external function freezes

2018-06-08 Thread Jussi Lahtinen
I guess it is just waiting process with pid 8634... how do you ensure this
pid of given to the process?


Jussi

On Fri, Jun 8, 2018 at 11:41 PM, Demosthenes Koptsis  wrote:

> Hello, i implemented a ptrace and waitpid external functions in order to
> read/write a memory address of a process.
>
> i want to make a trainer for a game in gambas and i created a small
> program that reads and writes to a memory process.
>
> The problem is that when i try to write to memory it freezes at waitpid
> line.
>
> i attach the test program you have to 1) open it as root 2) run a process
> you want to hack and get the pid 3) scan memory with scanmem and locate an
> address you want to write. 4) run my test program and see it freezes.
>
> Any help?
>
>
> 
> --
> 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


Re: [Gambas-user] Multithreaded Programs

2018-06-01 Thread Jussi Lahtinen
No. It's still state machine. Everything is done instruction by
instruction. If no "quantum instructions" are used, it behaves just like
normal computer.
It would be much like some instruction set extension (like SSE etc). So,
maybe some clever optimizations for multi-threading, but no fundamental
difference.


Jussi

On Fri, Jun 1, 2018 at 2:59 PM, PICCORO McKAY Lenz 
wrote:

> now if the machine are quantum based? umm that's may change all?
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2018-05-31 20:01 GMT-04:00 Steve G via Gambas-user  sourceforge.net>:
>
>> Most people don't ask for clarification when they believe there's an
>> insult in there. Next time somebody calls you and ass I'd like to see if
>> you clarify it with them but yes we should kill this dead horse again.
>> You're welcome to put the last word if you'd like
>>
>> ⁣Sent from TypeApp ​
>>
>> On May 31, 2018, 15:53, at 15:53, Jussi Lahtinen <
>> jussi.lahti...@gmail.com> wrote:
>> >> Or you could use terms that all peopleof all cultures understand ...
>> >>
>> >
>> >Unfortunately, there is no such thing.
>> >
>> >
>> >
>> >> ... and stop beating the dead horse. You used some kind of
>> >terminology
>> >> specific to one culture that was your mistake I took it as an insult
>> >my
>> >> mistake. Now the question is does this keep going or do we realize
>> >that we
>> >> both spoke poorly.
>> >>
>> >
>> >Maybe next time ask, instead of assume. You have always time to get
>> >angry
>> >later. I'm saying this as a person who have experienced many cultures.
>> >But you are right, this is very off-topic.
>> >
>> >
>> >Jussi
>> 
>> --
>> 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


Re: [Gambas-user] Multithreaded Programs

2018-05-31 Thread Jussi Lahtinen
> Or you could use terms that all peopleof all cultures understand ...
>

Unfortunately, there is no such thing.



> ... and stop beating the dead horse. You used some kind of terminology
> specific to one culture that was your mistake I took it as an insult my
> mistake. Now the question is does this keep going or do we realize that we
> both spoke poorly.
>

Maybe next time ask, instead of assume. You have always time to get angry
later. I'm saying this as a person who have experienced many cultures.
But you are right, this is very off-topic.


Jussi
--
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] Multithreaded Programs

2018-05-31 Thread Jussi Lahtinen
Necromancing means act of rising very old thread back to life. It is not
name calling, it is not insult. It was just stating the bad habit. And the
old thread did contain the solution. You could have behaved and ask
elaboration to it.


Jussi

On Fri, Jun 1, 2018 at 1:59 AM, Steve G  wrote:

> You actually put an answer in earlier that makes sense something I will
> look into. However your initial reply included name calling why don't you
> take a look back at something called "necromancer". As you put it in your
> reply it was very condescending and clearly meant to insult that is why you
> got some teeth coming back at you. Otherwise thank you for the idea on task
> now I can look up and learn about it.
>
> Sent from TypeApp <http://www.typeapp.com/r?b=13095>
> On May 31, 2018, at 14:54, Jussi Lahtinen 
> wrote:
>>
>>
>> It is amazing how programmers are so petty. I went through and reread
>>> that thread and I don't see any answers in there to what I'm trying to do.
>>
>>
>> "You can write two separated gambas applications that communicate to each
>> other."
>> I explained it further with me second reply.
>>
>>
>>
>>
>>> By the way your insult was really not much of an insult.
>>
>>
>> What insult!??
>>
>>
>>
>>
>>> You are a complete moron and socially inept.
>>
>>
>> OK...
>>
>>
>>
>>> Instead of name-calling why don't you attempt to use fats and actually
>>> spell something out.
>>>
>>
>> What name calling!
>>
>>
>>
>>
>>> If you really are so good, then prove me wrong and actually show it to
>>> me don't say oh it's here or it's there put it right out there and show it
>>> to me if you think I'm so stupid prove it by doing that. Otherwise shut up
>>> and just answer the questions. although in your case I believe it should
>>> just be shut up because clearly you have nothing useful to offer anybody
>>> other than insults.
>>>
>>
>> What insult!??
>> What about instead of blaming me of something I never did, you would
>> politely ask what you did not get about my answer!??
>> I helping you here for free. Do you want me to write your software also
>> for free?
>>
>>
>> Jussi
>>
>>
--
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] Multithreaded Programs

2018-05-31 Thread Jussi Lahtinen
Btw, if you want to see practical example of one option what I explained
(or at least tried to), then look how Task is used in Fractal named example.
You can find it from software farm.

And here you can find proper internet etiquette.
https://www.youtube.com/user/commentiquette


Jussi

On Fri, Jun 1, 2018 at 1:53 AM, Jussi Lahtinen 
wrote:

>
> It is amazing how programmers are so petty. I went through and reread that
>> thread and I don't see any answers in there to what I'm trying to do.
>
>
> "You can write two separated gambas applications that communicate to each
> other."
> I explained it further with me second reply.
>
>
>
>
>> By the way your insult was really not much of an insult.
>
>
> What insult!??
>
>
>
>
>> You are a complete moron and socially inept.
>
>
> OK...
>
>
>
>> Instead of name-calling why don't you attempt to use fats and actually
>> spell something out.
>>
>
> What name calling!
>
>
>
>
>> If you really are so good, then prove me wrong and actually show it to me
>> don't say oh it's here or it's there put it right out there and show it to
>> me if you think I'm so stupid prove it by doing that. Otherwise shut up and
>> just answer the questions. although in your case I believe it should just
>> be shut up because clearly you have nothing useful to offer anybody other
>> than insults.
>>
>
> What insult!??
> What about instead of blaming me of something I never did, you would
> politely ask what you did not get about my answer!??
> I helping you here for free. Do you want me to write your software also
> for free?
>
>
> Jussi
>
>
--
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] Multithreaded Programs

2018-05-31 Thread Jussi Lahtinen
> It is amazing how programmers are so petty. I went through and reread that
> thread and I don't see any answers in there to what I'm trying to do.


"You can write two separated gambas applications that communicate to each
other."
I explained it further with me second reply.




> By the way your insult was really not much of an insult.


What insult!??




> You are a complete moron and socially inept.


OK...



> Instead of name-calling why don't you attempt to use fats and actually
> spell something out.
>

What name calling!




> If you really are so good, then prove me wrong and actually show it to me
> don't say oh it's here or it's there put it right out there and show it to
> me if you think I'm so stupid prove it by doing that. Otherwise shut up and
> just answer the questions. although in your case I believe it should just
> be shut up because clearly you have nothing useful to offer anybody other
> than insults.
>

What insult!??
What about instead of blaming me of something I never did, you would
politely ask what you did not get about my answer!??
I helping you here for free. Do you want me to write your software also for
free?


Jussi
--
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] Multithreaded Programs

2018-05-31 Thread Jussi Lahtinen
No, I actually figured out how to explain it. Hopefully.
Computer is state machine, means that it is always in one state at a time.
Nothing in it happens simultaneously. Everything is processed in line, but
order in the line can change. Even interruptions are processed in line,
even when they are created by things outside of the computer.


Jussi



On Fri, Jun 1, 2018 at 1:37 AM, Jussi Lahtinen 
wrote:

> I don't know how to explain the issue shortly, if you are not familiar
> with what state machine means. And if you do, I'm not sure what to explain
> further.
>
> However, here is practical answer to your problem. Gambas itself doesn't
> need to be multi-threaded to achieve such things. You can simply use
> keyword Task to fork your program or write the program as two separated
> programs and make them function as one via pipe. This gives you essentially
> multi-threading.
>
>
>
> Jussi
>
> On Fri, Jun 1, 2018 at 1:12 AM, Steve G via Gambas-user <
> gambas-user@lists.sourceforge.net> wrote:
>
>> I don't think I understood your reply or maybe there was no reply. If
>> there was a reply then I'd love to hear your ideas on how to take care of
>> this issue. Without threading.
>>
>> ⁣Sent from TypeApp ​
>>
>> On May 31, 2018, 13:37, at 13:37, "Benoît Minisini" 
>> wrote:
>> >Le 31/05/2018 à 23:27, MacGyver via Gambas-user a écrit :
>> >> I will give you a real life example of the need for multithreading.
>> >>
>> >> project to monitor status of computers on a network. this is done
>> >with a
>> >> ping to each system from a timer. the result is either online or
>> >offline
>> >> depending on ping results. The program is unresponsive to the user
>> >while
>> >> multiple pings are done in the background. multithreading would allow
>> >the
>> >> program to be responsive to users while other computer status is
>> >checked in
>> >> another thread. furthermore if for some reason a person had 100
>> >systems to
>> >> monitor on the network, this will take time if many are in offline
>> >status
>> >> leaving the program unresponsive to users for quite some time.
>> >creating 100
>> >> threads each pinging only one system then terminating after returning
>> >the
>> >> result would make it even faster as all pings are done
>> >simultaneously.
>> >>
>> >> So there is but one real world application for multithreading. not to
>> >> mention it would make gambas immensely more powerful.
>> >>
>> >
>> >"A Computer is a state machine. Threads are for people who can't
>> >program
>> >state machines." - Alan Cox.
>> >
>> >:-)
>> >
>> >--
>> >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
>>
>
>
--
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] Multithreaded Programs

2018-05-31 Thread Jussi Lahtinen
I don't know how to explain the issue shortly, if you are not familiar with
what state machine means. And if you do, I'm not sure what to explain
further.

However, here is practical answer to your problem. Gambas itself doesn't
need to be multi-threaded to achieve such things. You can simply use
keyword Task to fork your program or write the program as two separated
programs and make them function as one via pipe. This gives you essentially
multi-threading.



Jussi

On Fri, Jun 1, 2018 at 1:12 AM, Steve G via Gambas-user <
gambas-user@lists.sourceforge.net> wrote:

> I don't think I understood your reply or maybe there was no reply. If
> there was a reply then I'd love to hear your ideas on how to take care of
> this issue. Without threading.
>
> ⁣Sent from TypeApp ​
>
> On May 31, 2018, 13:37, at 13:37, "Benoît Minisini" 
> wrote:
> >Le 31/05/2018 à 23:27, MacGyver via Gambas-user a écrit :
> >> I will give you a real life example of the need for multithreading.
> >>
> >> project to monitor status of computers on a network. this is done
> >with a
> >> ping to each system from a timer. the result is either online or
> >offline
> >> depending on ping results. The program is unresponsive to the user
> >while
> >> multiple pings are done in the background. multithreading would allow
> >the
> >> program to be responsive to users while other computer status is
> >checked in
> >> another thread. furthermore if for some reason a person had 100
> >systems to
> >> monitor on the network, this will take time if many are in offline
> >status
> >> leaving the program unresponsive to users for quite some time.
> >creating 100
> >> threads each pinging only one system then terminating after returning
> >the
> >> result would make it even faster as all pings are done
> >simultaneously.
> >>
> >> So there is but one real world application for multithreading. not to
> >> mention it would make gambas immensely more powerful.
> >>
> >
> >"A Computer is a state machine. Threads are for people who can't
> >program
> >state machines." - Alan Cox.
> >
> >:-)
> >
> >--
> >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
>
--
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] Multithreaded Programs

2018-05-31 Thread Jussi Lahtinen
Please read the whole thread you necromanced, you don't need Gambas to
support multi-threading for that.


Jussi

On Fri, Jun 1, 2018 at 12:27 AM, MacGyver via Gambas-user <
gambas-user@lists.sourceforge.net> wrote:

> I will give you a real life example of the need for multithreading.
>
> project to monitor status of computers on a network. this is done with a
> ping to each system from a timer. the result is either online or offline
> depending on ping results. The program is unresponsive to the user while
> multiple pings are done in the background. multithreading would allow the
> program to be responsive to users while other computer status is checked in
> another thread. furthermore if for some reason a person had 100 systems to
> monitor on the network, this will take time if many are in offline status
> leaving the program unresponsive to users for quite some time. creating 100
> threads each pinging only one system then terminating after returning the
> result would make it even faster as all pings are done simultaneously.
>
> So there is but one real world application for multithreading. not to
> mention it would make gambas immensely more powerful.
>
>
>
> --
> Sent from: http://gambas.8142.n7.nabble.com/gambas-user-f3.html
>
> 
> --
> 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


Re: [Gambas-user] How to specify a string constant in an Exec statement

2017-12-14 Thread Jussi Lahtinen
OK... weird. I wonder if "announcement only" means what it sounds like.
https://sourceforge.net/p/forge/documentation/Mailing%20Lists/#making-an-announcements-only-list


Jussi

On Thu, Dec 14, 2017 at 11:53 PM, Benoît Minisini <g4m...@gmail.com> wrote:

> Le 14/12/2017 à 20:10, Jussi Lahtinen a écrit :
>
>> Disabled how? All the messages seems to be delivered? Why not to actually
>> close this, if it should not be used for some reason?
>>
>>
>> Jussi
>>
>>
> Apprently it's not possible with SourceForge to disable a mailing-list. If
> you know how, please tell me.
>
> --
> 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


Re: [Gambas-user] How to specify a string constant in an Exec statement

2017-12-14 Thread Jussi Lahtinen
Maybe this works?
Exec ["get_iplayer", "\".*\"", "--force", "--type=TV"] To sOutput


Jussi

On Thu, Dec 14, 2017 at 7:33 PM, John Rose 
wrote:

> I want to have a command containing double quotes characters in an Exec
> statement:
> get-iplayer ".*" --force --type=TV
>
> My code for the above is:
> Exec ["get_iplayer", "\".*\" --force", "--type=TV] To sOutput
> where sOutput is a string.
>
> However, this does not work. I've tried omitting the 2 lots of \" but that
> doesn't help. My code used to be (which worked):
> Exec ["get_iplayer", " --force", "--type=TV] To sOutput
>
> --
> John
>
>
> 
> --
> 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


Re: [Gambas-user] Gambas not starting

2017-11-13 Thread Jussi Lahtinen
How Gambas was installed? What version?


Jussi

On Sat, Nov 11, 2017 at 12:55 AM, Bruce Cunningham <bcunning...@sportif.com>
wrote:

> Jussi,
>
> When I do that, it just hangs.  No messages, just a sold cursor.
>
> Bruce
>
> Bruce Cunningham
>
> -----Original Message-
> From: Jussi Lahtinen [mailto:jussi.lahti...@gmail.com]
> Sent: Friday, November 10, 2017 2:07 PM
> To: mailing list for gambas users
> Subject: Re: [Gambas-user] Gambas not starting
>
> Open terminal and type in gambas3. There should be some error message.
>
>
> Jussi
>
> On Fri, Nov 10, 2017 at 8:14 PM, Bruce Cunningham <bcunning...@sportif.com
> >
> wrote:
>
> > Hello,
> >
> > Are there any logs that could help me troubleshoot why Gambas will not
> > start?  I installed it on an ARM based single board computer (like a
> > Raspberry Pi) running Debian Wheezy.  It looks like it installed
> > correctly, but will not start.
> >
> > Should I try to build it from source?  I'm not a strong Linux guy, but
> > I could give it a try?
> >
> > Bruce
> >
> >
> >
> > 
> > --
> > 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
>
> 
> --
> 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


Re: [Gambas-user] Gambas not starting

2017-11-10 Thread Jussi Lahtinen
Open terminal and type in gambas3. There should be some error message.


Jussi

On Fri, Nov 10, 2017 at 8:14 PM, Bruce Cunningham 
wrote:

> Hello,
>
> Are there any logs that could help me troubleshoot why Gambas will not
> start?  I installed it on an ARM based single board computer (like a
> Raspberry Pi) running Debian Wheezy.  It looks like it installed correctly,
> but will not start.
>
> Should I try to build it from source?  I'm not a strong Linux guy, but I
> could give it a try?
>
> Bruce
>
>
>
> 
> --
> 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


Re: [Gambas-user] Process.Wait freeze

2017-09-05 Thread Jussi Lahtinen
I mean the debug information you asked
*'Uncomment the line #65 in the 'main/gbx/gbx_c_process.c' file ("//#define
DEBUG_ME")',*
did it gave you any clue what is going on in my end?
"\r\n" is expected in the test project. That is not the problem. Here they
are attached again.


Jussi


On Tue, Sep 5, 2017 at 8:52 PM, Benoît Minisini <
gam...@users.sourceforge.net> wrote:

> Le 04/09/2017 à 04:20, Jussi Lahtinen a écrit :
>
>> Benoit, any clue about this? It seems to still happen with the latest
>> revision.
>>
>>
>> Jussi
>>
>>
> I saw no problem with your project. Except that printing a new line on a
> terminal now sends a "\r\n" sequence by default.
>
> --
> Benoît Minisini
>


Isolation-0.0.8.tar.gz
Description: GNU Zip compressed data


output.txt.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] Process.Wait freeze

2017-09-03 Thread Jussi Lahtinen
Benoit, any clue about this? It seems to still happen with the latest
revision.


Jussi

On Tue, Aug 22, 2017 at 12:10 AM, Jussi Lahtinen <jussi.lahti...@gmail.com>
wrote:

> OK, I made isolated loop. Here is output of the run. Just search the log
> for "Main.Main.41: sTest did not contain String 'test', instead: ''".
> Just in case I also attached the used project.
>
>
> Jussi
>
> On Mon, Aug 21, 2017 at 2:52 PM, Benoît Minisini <
> gam...@users.sourceforge.net> wrote:
>
>> Le 21/08/2017 à 03:34, Jussi Lahtinen a écrit :
>>
>>> OK, now I'm experiencing only the old already reported error, which no
>>> one else seem to be able to reproduce. IE the variable sTest remains empty
>>> (example in mTest.DoTest line 1686).
>>>
>>>
>>> Jussi
>>>
>>>
>> Can you try that?
>>
>> 1) Uncomment the line #65 in the 'main/gbx/gbx_c_process.c' file
>> ("//#define DEBUG_ME")
>>
>> 2) Run "make" and "sudo make install" again in the "/main" directory (so
>> that you don't reinstall everything).
>>
>> 3) Run your test program, and send me the output.
>>
>> 4) Alternatively, you can just run Exec/Shell test loop, and run it more
>> times (at least 1000 times), as the other tests seem to not have any
>> problem.
>>
>> Regards,
>>
>> --
>> 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


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

2017-08-27 Thread Jussi Lahtinen
I just realized that Benoit answered directly to me, not via the list.
Thank you everyone, but the "problem" is solved. See below.


Jussi


-- Forwarded message --
From: Benoît Minisini <gam...@users.sourceforge.net>
Date: Sun, Aug 27, 2017 at 11:21 PM
Subject: Re: [Gambas-user] \r\n and \n
To: Jussi Lahtinen <jussi.lahti...@gmail.com>


Le 27/08/2017 à 22:18, Jussi Lahtinen a écrit :

> See the attached project. I'm not sure whether this is feature or bug, but
> I would appreciate explanation for it. I expect to get string ending with
> \n, but I always get it ending with \r\n.
> Why?
>
>
> Jussi
>
>
Because:

- Your programs are run inside pseudo-terminals.

- The pseudo-terminals are now "correctly" initialized, with newlines "\n"
emitted by the process becoming "\r\n" on the pseudo-terminal, so that they
have the intentional effect (start a new line and go back to the beginning
of the line).

Regards,

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


[Gambas-user] \r\n and \n

2017-08-27 Thread Jussi Lahtinen
See the attached project. I'm not sure whether this is feature or bug, but
I would appreciate explanation for it. I expect to get string ending with
\n, but I always get it ending with \r\n.
Why?


Jussi


Isolation-0.0.8.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] Switching to GitLab

2017-08-23 Thread Jussi Lahtinen
Thanks!


Jussi

On Wed, Aug 23, 2017 at 6:08 PM, T Lee Davidson <t.lee.david...@gmail.com>
wrote:

> "git - the simple guide" : https://rogerdudler.github.io/git-guide/
> (Geared toward GitHub but still applicable and quite simple.)
>
> "Understanding Git Conceptually" : https://www.sbf5.com/~cduan/te
> chnical/git/
>
> "Pro Git" : https://git-scm.com/book/en/v2
> (More comprehensive since it's an online HTML book.)
>
>
> --
> Lee
>
>
>
> On 08/23/2017 08:56 AM, Jussi Lahtinen wrote:
>
>> Thanks for all the answers. I was hoping something more automatic. I find
>> these commands:
>> git fetch --all
>> git reset --hard origin/master
>>
>> Are there any side effects? I don't really know how git works and thus I
>> don't quite understand what they do. I should learn the basics, but it
>> seems to be thing which I have problems to concentrate. Anyone knows good
>> graphical presentation of how git works in principle?
>>
>>
>> Jussi
>>
>>
>> On Wed, Aug 23, 2017 at 3:03 PM, PICCORO McKAY Lenz <
>> mckaygerh...@gmail.com>
>> wrote:
>>
>> yeah, but with statch you need firs made it a "mark"
>>>
>>> i that case he dont have that mark
>>>
>>> Lenz McKAY Gerardo (PICCORO)
>>> http://qgqlochekone.blogspot.com
>>>
>>> 2017-08-23 5:37 GMT-04:00 Fabien Bodard <gambas...@gmail.com>:
>>>
>>> or maby statch ?
>>>>
>>>> 2017-08-23 2:29 GMT+02:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:
>>>>
>>>>> sorry to overriding local change u must get back :
>>>>>
>>>>> git checkout -- 
>>>>> git fetch;git pull
>>>>>
>>>>> Lenz McKAY Gerardo (PICCORO)
>>>>> http://qgqlochekone.blogspot.com
>>>>>
>>>>> 2017-08-22 16:38 GMT-04:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
>>>>>
>>>>> How do I update sources overwriting local changes?
>>>>>>
>>>>>>
>>>>>> Jussi
>>>>>>
>>>>>> On Sun, Aug 20, 2017 at 11:38 PM, Jussi Lahtinen <
>>>>>>
>>>>> jussi.lahti...@gmail.com
>>>>
>>>>>
>>>>>>> wrote:
>>>>>>
>>>>>> OK, that solves the problem. Thanks!
>>>>>>>
>>>>>>>
>>>>>>> Jussi
>>>>>>>
>>>>>>> On Sun, Aug 20, 2017 at 11:22 PM, Adrien Prokopowicz <
>>>>>>> adrien.prokopow...@gmail.com> wrote:
>>>>>>>
>>>>>>> Le Sun, 20 Aug 2017 20:31:11 +0200, Jussi Lahtinen <
>>>>>>>> jussi.lahti...@gmail.com> a écrit:
>>>>>>>>
>>>>>>>> How do you get the change log with git? "git log" shows only one
>>>>>>>>
>>>>>>> change
>>>>
>>>>> (most recent?).
>>>>>>>>> Is this because I cloned the sources with "git clone --depth=1
>>>>>>>>> https://gitlab.com/gambas/gambas.git;?
>>>>>>>>>
>>>>>>>>> Even when I want only the latest dev version, I would still like
>>>>>>>>>
>>>>>>>> to
>>>
>>>> know
>>>>>>
>>>>>>> what has changed. It's quite important if you do bug hunting.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Jussi
>>>>>>>>>
>>>>>>>>>
>>>>>>>> Yes, when you use --depth=1, you only retrieve the latest commit,
>>>>>>>>
>>>>>>> so
>>>
>>>> it
>>>>
>>>>> can't know
>>>>>>>> about anything past it.
>>>>>>>> If you want to have the information locally, you can use the
>>>>>>>>
>>>>>>> following :
>>>>
>>>>>
>>>>>>>> git fetch --unshallow
>>>>>>>>
>>>>>>>> It will retrieve the missing pieces and you will end up with a full
>>>>>>>>
>>>>>>> clone,
>>>>>>
>>>>>>> as if you just ran git clone without

Re: [Gambas-user] Switching to GitLab

2017-08-23 Thread Jussi Lahtinen
Thanks for all the answers. I was hoping something more automatic. I find
these commands:
git fetch --all
git reset --hard origin/master

Are there any side effects? I don't really know how git works and thus I
don't quite understand what they do. I should learn the basics, but it
seems to be thing which I have problems to concentrate. Anyone knows good
graphical presentation of how git works in principle?


Jussi


On Wed, Aug 23, 2017 at 3:03 PM, PICCORO McKAY Lenz <mckaygerh...@gmail.com>
wrote:

> yeah, but with statch you need firs made it a "mark"
>
> i that case he dont have that mark
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-08-23 5:37 GMT-04:00 Fabien Bodard <gambas...@gmail.com>:
>
> > or maby statch ?
> >
> > 2017-08-23 2:29 GMT+02:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:
> > > sorry to overriding local change u must get back :
> > >
> > > git checkout -- 
> > > git fetch;git pull
> > >
> > > Lenz McKAY Gerardo (PICCORO)
> > > http://qgqlochekone.blogspot.com
> > >
> > > 2017-08-22 16:38 GMT-04:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
> > >
> > >> How do I update sources overwriting local changes?
> > >>
> > >>
> > >> Jussi
> > >>
> > >> On Sun, Aug 20, 2017 at 11:38 PM, Jussi Lahtinen <
> > jussi.lahti...@gmail.com
> > >> >
> > >> wrote:
> > >>
> > >> > OK, that solves the problem. Thanks!
> > >> >
> > >> >
> > >> > Jussi
> > >> >
> > >> > On Sun, Aug 20, 2017 at 11:22 PM, Adrien Prokopowicz <
> > >> > adrien.prokopow...@gmail.com> wrote:
> > >> >
> > >> >> Le Sun, 20 Aug 2017 20:31:11 +0200, Jussi Lahtinen <
> > >> >> jussi.lahti...@gmail.com> a écrit:
> > >> >>
> > >> >> How do you get the change log with git? "git log" shows only one
> > change
> > >> >>> (most recent?).
> > >> >>> Is this because I cloned the sources with "git clone --depth=1
> > >> >>> https://gitlab.com/gambas/gambas.git;?
> > >> >>>
> > >> >>> Even when I want only the latest dev version, I would still like
> to
> > >> know
> > >> >>> what has changed. It's quite important if you do bug hunting.
> > >> >>>
> > >> >>>
> > >> >>> Jussi
> > >> >>>
> > >> >>
> > >> >> Yes, when you use --depth=1, you only retrieve the latest commit,
> so
> > it
> > >> >> can't know
> > >> >> about anything past it.
> > >> >> If you want to have the information locally, you can use the
> > following :
> > >> >>
> > >> >> git fetch --unshallow
> > >> >>
> > >> >> It will retrieve the missing pieces and you will end up with a full
> > >> clone,
> > >> >> as if you just ran git clone without the --depth argument.
> > >> >>
> > >> >> You can also view the latest commits directly on gitlab here :
> > >> >>
> > >> >> https://gitlab.com/gambas/gambas/commits/master
> > >> >>
> > >> >> … or as a RSS feed here :
> > >> >>
> > >> >> https://gitlab.com/gambas/gambas/commits/master?format=atom
> > >> >>
> > >> >> If you have a Gitlab account, you can also configure it so it will
> > send
> > >> >> you
> > >> >> email notifications when something happens on the repository.
> > >> >>
> > >> >>
> > >> >> --
> > >> >> 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
> > >> >>
> > >>

Re: [Gambas-user] Switching to GitLab

2017-08-22 Thread Jussi Lahtinen
How do I update sources overwriting local changes?


Jussi

On Sun, Aug 20, 2017 at 11:38 PM, Jussi Lahtinen <jussi.lahti...@gmail.com>
wrote:

> OK, that solves the problem. Thanks!
>
>
> Jussi
>
> On Sun, Aug 20, 2017 at 11:22 PM, Adrien Prokopowicz <
> adrien.prokopow...@gmail.com> wrote:
>
>> Le Sun, 20 Aug 2017 20:31:11 +0200, Jussi Lahtinen <
>> jussi.lahti...@gmail.com> a écrit:
>>
>> How do you get the change log with git? "git log" shows only one change
>>> (most recent?).
>>> Is this because I cloned the sources with "git clone --depth=1
>>> https://gitlab.com/gambas/gambas.git;?
>>>
>>> Even when I want only the latest dev version, I would still like to know
>>> what has changed. It's quite important if you do bug hunting.
>>>
>>>
>>> Jussi
>>>
>>
>> Yes, when you use --depth=1, you only retrieve the latest commit, so it
>> can't know
>> about anything past it.
>> If you want to have the information locally, you can use the following :
>>
>> git fetch --unshallow
>>
>> It will retrieve the missing pieces and you will end up with a full clone,
>> as if you just ran git clone without the --depth argument.
>>
>> You can also view the latest commits directly on gitlab here :
>>
>> https://gitlab.com/gambas/gambas/commits/master
>>
>> … or as a RSS feed here :
>>
>> https://gitlab.com/gambas/gambas/commits/master?format=atom
>>
>> If you have a Gitlab account, you can also configure it so it will send
>> you
>> email notifications when something happens on the repository.
>>
>>
>> --
>> 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
>>
>
>
--
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] Process.Wait freeze

2017-08-21 Thread Jussi Lahtinen
OK, I made isolated loop. Here is output of the run. Just search the log
for "Main.Main.41: sTest did not contain String 'test', instead: ''".
Just in case I also attached the used project.


Jussi

On Mon, Aug 21, 2017 at 2:52 PM, Benoît Minisini <
gam...@users.sourceforge.net> wrote:

> Le 21/08/2017 à 03:34, Jussi Lahtinen a écrit :
>
>> OK, now I'm experiencing only the old already reported error, which no
>> one else seem to be able to reproduce. IE the variable sTest remains empty
>> (example in mTest.DoTest line 1686).
>>
>>
>> Jussi
>>
>>
> Can you try that?
>
> 1) Uncomment the line #65 in the 'main/gbx/gbx_c_process.c' file
> ("//#define DEBUG_ME")
>
> 2) Run "make" and "sudo make install" again in the "/main" directory (so
> that you don't reinstall everything).
>
> 3) Run your test program, and send me the output.
>
> 4) Alternatively, you can just run Exec/Shell test loop, and run it more
> times (at least 1000 times), as the other tests seem to not have any
> problem.
>
> Regards,
>
> --
> Benoît Minisini
>


output.txt.tar.gz
Description: GNU Zip compressed data


Isolation-0.0.7.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] Process.Wait freeze

2017-08-20 Thread Jussi Lahtinen
OK, now I'm experiencing only the old already reported error, which no one
else seem to be able to reproduce. IE the variable sTest remains empty
(example in mTest.DoTest line 1686).


Jussi

On Mon, Aug 21, 2017 at 2:47 AM, Benoît Minisini <
gam...@users.sourceforge.net> wrote:

> Le 21/08/2017 à 00:44, Jussi Lahtinen a écrit :
>
>> Hmmm... somehow this:
>>
>> hWatchFile = Open "/dev/urandom" For Read Watch
>>
>> Triggers execution of Process_Read(), instead of File_Read()... something
>> changed to that?
>>
>>
>> Jussi
>>
>>
> No reason for that. Can you try the last commit, I added a fix.
>
> Otherwise I have no crash nor memory corruption in your Shell / Exec test,
> with the loop run 1000 times.
>
> --
> 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


Re: [Gambas-user] Process.Wait freeze

2017-08-20 Thread Jussi Lahtinen
Hmmm... somehow this:

hWatchFile = Open "/dev/urandom" For Read Watch

Triggers execution of Process_Read(), instead of File_Read()... something
changed to that?


Jussi

On Mon, Aug 21, 2017 at 1:38 AM, Jussi Lahtinen <jussi.lahti...@gmail.com>
wrote:

> Did you run the GambasTester? It didn't get better on my box, now it
> crashes randomly in two possible ways:
>
> mTest.Process_Read.1975: #53: Stream is closed
> mTest.Process_Read.1975 mTest.DoTests.1771 mTest.Main.2212
>
> Or:
>
> mTest.Process_Read.1975: #42: System error #9: Bad file descriptor
> mTest.Process_Read.1975 mTest.DoTests.1771 mTest.Main.2212
> *** Error in `GambasTestercmd': free(): invalid pointer:
> 0x0068edff ***
>
> Program received signal SIGABRT, Aborted.
> 0x77a47c37 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> (gdb) bt
> #0  0x77a47c37 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> #1  0x77a4b028 in abort () from /lib/x86_64-linux-gnu/libc.so.6
> #2  0x77a842a4 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
> #3  0x77a9082e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
> #4  0x004207d3 in clear_pool () at gbx_string.c:290
> #5  STRING_clear_cache () at gbx_string.c:395
> #6  0x004207ef in STRING_exit () at gbx_string.c:401
> #7  0x0041f5ff in main_exit (silent=silent@entry=1 '\001') at
> gbx.c:157
> #8  0x00404c0f in main (argc=1, argv=0x7fffe028) at gbx.c:458
>
>
>
> Jussi
>
>
>
>
>
> On Fri, Aug 18, 2017 at 2:18 PM, Benoît Minisini <
> gam...@users.sourceforge.net> wrote:
>
>> Le 18/08/2017 à 12:47, Benoît Minisini via Gambas-user a écrit :
>>
>>> Le 14/08/2017 à 00:18, Jussi Lahtinen a écrit :
>>>
>>>> The freeze from gdb.
>>>>
>>>> #0  0x77b068b3 in select () from /lib/x86_64-linux-gnu/libc.so.
>>>> 6
>>>> #1  0x0041e26d in WATCH_process (fd_end=fd_end@entry=4,
>>>> fd_output=-1,
>>>>  timeout=timeout@entry=0) at gbx_watch.c:685
>>>> #2  0x004286d9 in CPROCESS_wait_for (process=0x688298,
>>>> timeout=0)
>>>>  at gbx_c_process.c:976
>>>> #3  0x0043250e in EXEC_native () at gbx_exec.c:1375
>>>> #4  0x0043cc4a in EXEC_loop () at gbx_exec_loop.c:1427
>>>> #5  0x004316fb in EXEC_function_loop () at gbx_exec.c:931
>>>> #6  0x0043346f in EXEC_function_real () at gbx_exec.c:895
>>>> #7  EXEC_public_desc (class=, object=object@entry=0x0,
>>>>  desc=desc@entry=0x681aa8, nparam=nparam@entry=0) at
>>>> gbx_exec.c:1618
>>>> #8  0x00404b68 in main (argc=1, argv=0x7fffdfd8) at
>>>> gbx.c:416
>>>>
>>>>
>>>> Jussi
>>>>
>>>>
>>> I confirm the bug. I isolated the loop, and ran it 1000 times. It always
>>> freezes sooner or later on my machine. Shame!
>>>
>>>
>> OK, fixed in commit e1a5412f4ffb5ac7af62e78c7b93e2468152b13a.
>>
>> --
>> 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


Re: [Gambas-user] Process.Wait freeze

2017-08-20 Thread Jussi Lahtinen
Did you run the GambasTester? It didn't get better on my box, now it
crashes randomly in two possible ways:

mTest.Process_Read.1975: #53: Stream is closed
mTest.Process_Read.1975 mTest.DoTests.1771 mTest.Main.2212

Or:

mTest.Process_Read.1975: #42: System error #9: Bad file descriptor
mTest.Process_Read.1975 mTest.DoTests.1771 mTest.Main.2212
*** Error in `GambasTestercmd': free(): invalid pointer: 0x0068edff
***

Program received signal SIGABRT, Aborted.
0x77a47c37 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x77a47c37 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x77a4b028 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x77a842a4 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x77a9082e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x004207d3 in clear_pool () at gbx_string.c:290
#5  STRING_clear_cache () at gbx_string.c:395
#6  0x004207ef in STRING_exit () at gbx_string.c:401
#7  0x0041f5ff in main_exit (silent=silent@entry=1 '\001') at
gbx.c:157
#8  0x00404c0f in main (argc=1, argv=0x7fffe028) at gbx.c:458



Jussi





On Fri, Aug 18, 2017 at 2:18 PM, Benoît Minisini <
gam...@users.sourceforge.net> wrote:

> Le 18/08/2017 à 12:47, Benoît Minisini via Gambas-user a écrit :
>
>> Le 14/08/2017 à 00:18, Jussi Lahtinen a écrit :
>>
>>> The freeze from gdb.
>>>
>>> #0  0x77b068b3 in select () from /lib/x86_64-linux-gnu/libc.so.6
>>> #1  0x0041e26d in WATCH_process (fd_end=fd_end@entry=4,
>>> fd_output=-1,
>>>  timeout=timeout@entry=0) at gbx_watch.c:685
>>> #2  0x004286d9 in CPROCESS_wait_for (process=0x688298, timeout=0)
>>>  at gbx_c_process.c:976
>>> #3  0x0043250e in EXEC_native () at gbx_exec.c:1375
>>> #4  0x0043cc4a in EXEC_loop () at gbx_exec_loop.c:1427
>>> #5  0x004316fb in EXEC_function_loop () at gbx_exec.c:931
>>> #6  0x0043346f in EXEC_function_real () at gbx_exec.c:895
>>> #7  EXEC_public_desc (class=, object=object@entry=0x0,
>>>  desc=desc@entry=0x681aa8, nparam=nparam@entry=0) at gbx_exec.c:1618
>>> #8  0x00404b68 in main (argc=1, argv=0x7fffdfd8) at gbx.c:416
>>>
>>>
>>> Jussi
>>>
>>>
>> I confirm the bug. I isolated the loop, and ran it 1000 times. It always
>> freezes sooner or later on my machine. Shame!
>>
>>
> OK, fixed in commit e1a5412f4ffb5ac7af62e78c7b93e2468152b13a.
>
> --
> Benoît Minisini
>


GambasTestercmd-0.9.49.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] Switching to GitLab

2017-08-20 Thread Jussi Lahtinen
OK, that solves the problem. Thanks!


Jussi

On Sun, Aug 20, 2017 at 11:22 PM, Adrien Prokopowicz <
adrien.prokopow...@gmail.com> wrote:

> Le Sun, 20 Aug 2017 20:31:11 +0200, Jussi Lahtinen <
> jussi.lahti...@gmail.com> a écrit:
>
> How do you get the change log with git? "git log" shows only one change
>> (most recent?).
>> Is this because I cloned the sources with "git clone --depth=1
>> https://gitlab.com/gambas/gambas.git;?
>>
>> Even when I want only the latest dev version, I would still like to know
>> what has changed. It's quite important if you do bug hunting.
>>
>>
>> Jussi
>>
>
> Yes, when you use --depth=1, you only retrieve the latest commit, so it
> can't know
> about anything past it.
> If you want to have the information locally, you can use the following :
>
> git fetch --unshallow
>
> It will retrieve the missing pieces and you will end up with a full clone,
> as if you just ran git clone without the --depth argument.
>
> You can also view the latest commits directly on gitlab here :
>
> https://gitlab.com/gambas/gambas/commits/master
>
> … or as a RSS feed here :
>
> https://gitlab.com/gambas/gambas/commits/master?format=atom
>
> If you have a Gitlab account, you can also configure it so it will send you
> email notifications when something happens on the repository.
>
>
> --
> 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
>
--
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] Switching to GitLab

2017-08-20 Thread Jussi Lahtinen
The same problem.


Jussi

On Sun, Aug 20, 2017 at 10:24 PM, PICCORO McKAY Lenz <mckaygerh...@gmail.com
> wrote:

> Jusssi please do:
>
> http://gambaswiki.org/wiki/howto/git#t14
>
> git whatchanged
>
>
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-08-20 14:31 GMT-04:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
>
> > How do you get the change log with git? "git log" shows only one change
> > (most recent?).
> > Is this because I cloned the sources with "git clone --depth=1
> > https://gitlab.com/gambas/gambas.git;?
> >
> > Even when I want only the latest dev version, I would still like to know
> > what has changed. It's quite important if you do bug hunting.
> >
> >
> > Jussi
> >
> > On Fri, Aug 18, 2017 at 4:31 PM, Adrien Prokopowicz <
> > adrien.prokopow...@gmail.com> wrote:
> >
> > > Le Wed, 16 Aug 2017 23:14:54 +0200, Benoît Minisini <
> > > gam...@users.sourceforge.net> a écrit:
> > >
> > > Le 16/08/2017 à 21:30, Adrien Prokopowicz a écrit :
> > >>
> > >>> Le Wed, 16 Aug 2017 18:30:03 +0200, Benoît Minisini via Gambas-user <
> > >>> gambas-user@lists.sourceforge.net> a écrit:
> > >>>
> > >>>>
> > >>>> It's because the download tool of GitLab downloads everything
> > >>>> (especially the 'MakeWebSite' project that has a lot big files in
> it),
> > >>>> whereas the "make dist-bzip2" command only package what is relevant
> to
> > >>>> compile and install Gambas.
> > >>>>
> > >>>> If no 'git' solution exist, maybe I will have to make these source
> > >>>> packages manually again, and store them on Sourceforge as usual...
> > >>>>
> > >>>>  While there are no "git" solutions for this, maybe we should put
> the
> > >>> website in
> > >>> its own repository, apart from the rest of the source tree ?
> > >>> Same goes for the wiki, the bugtracker, etc.
> > >>>
> > >>>
> > >> Maybe. But the MakeWebSite project is not the only tool located in the
> > >> source tree. Or it may not be. It's just the one that takes a lot of
> > place.
> > >> I will think about that.
> > >>
> > >
> > > Making separate repositories for each project is not a problem : we can
> > > have as
> > > many repositories as we want in the Gambas group. :-)
> > >
> > > Also, if the website is in its own repository, it can be hosted with
> the
> > > GitLab Pages service (which I've never tried, but it seems similar to
> the
> > > hosting
> > > provided by SourceForge).
> > >
> > > (I can move it into a new repository without losing the history, if you
> > >>> want)
> > >>>  As a side-note, we can also use GitLab's Pipelines feature to run
> the
> > >>> make
> > >>> dist-bzip2 command and store the results every time we tag a new
> > release
> > >>> (we can also use it to distribute compiled binaries if we want).
> > >>>
> > >>>
> > >> Ha! This is more interesting. But "make dist-bzip2" is not enough. You
> > >> must run it after a full configuration of the source, so it must be
> run
> > on
> > >> a clean system, and it needs to be hacked so that it can handle
> symbolic
> > >> links.
> > >>
> > >>
> > > (I'm not sure what you mean by "it needs to be hacked so that it can
> > handle
> > > symbolic links". Doesn't every system handle symbolic links
> > out-of-the-box
> > > ?)
> > >
> > > I forked the repository to make tests on my account, and I configured a
> > > small pipeline thats configures the sources and then generates the
> > archive.
> > >
> > > You can see the job result here :
> > >
> > > https://gitlab.com/prokopyl/gambas/-/jobs/29620075
> > >
> > > (Warning : Big ./configure log, expect your tab to freeze for a bit !)
> > >
> > > On the right panel you can browse the Job artifacts, and see it
> generated
> > > the
> > > .tar.bz2 archive as an artifact you can download.
> > >
> > > Unlike the repository source archive, Job artifacts are not meant to be
> > > dir

Re: [Gambas-user] Switching to GitLab

2017-08-20 Thread Jussi Lahtinen
How do you get the change log with git? "git log" shows only one change
(most recent?).
Is this because I cloned the sources with "git clone --depth=1
https://gitlab.com/gambas/gambas.git;?

Even when I want only the latest dev version, I would still like to know
what has changed. It's quite important if you do bug hunting.


Jussi

On Fri, Aug 18, 2017 at 4:31 PM, Adrien Prokopowicz <
adrien.prokopow...@gmail.com> wrote:

> Le Wed, 16 Aug 2017 23:14:54 +0200, Benoît Minisini <
> gam...@users.sourceforge.net> a écrit:
>
> Le 16/08/2017 à 21:30, Adrien Prokopowicz a écrit :
>>
>>> Le Wed, 16 Aug 2017 18:30:03 +0200, Benoît Minisini via Gambas-user <
>>> gambas-user@lists.sourceforge.net> a écrit:
>>>

 It's because the download tool of GitLab downloads everything
 (especially the 'MakeWebSite' project that has a lot big files in it),
 whereas the "make dist-bzip2" command only package what is relevant to
 compile and install Gambas.

 If no 'git' solution exist, maybe I will have to make these source
 packages manually again, and store them on Sourceforge as usual...

  While there are no "git" solutions for this, maybe we should put the
>>> website in
>>> its own repository, apart from the rest of the source tree ?
>>> Same goes for the wiki, the bugtracker, etc.
>>>
>>>
>> Maybe. But the MakeWebSite project is not the only tool located in the
>> source tree. Or it may not be. It's just the one that takes a lot of place.
>> I will think about that.
>>
>
> Making separate repositories for each project is not a problem : we can
> have as
> many repositories as we want in the Gambas group. :-)
>
> Also, if the website is in its own repository, it can be hosted with the
> GitLab Pages service (which I've never tried, but it seems similar to the
> hosting
> provided by SourceForge).
>
> (I can move it into a new repository without losing the history, if you
>>> want)
>>>  As a side-note, we can also use GitLab's Pipelines feature to run the
>>> make
>>> dist-bzip2 command and store the results every time we tag a new release
>>> (we can also use it to distribute compiled binaries if we want).
>>>
>>>
>> Ha! This is more interesting. But "make dist-bzip2" is not enough. You
>> must run it after a full configuration of the source, so it must be run on
>> a clean system, and it needs to be hacked so that it can handle symbolic
>> links.
>>
>>
> (I'm not sure what you mean by "it needs to be hacked so that it can handle
> symbolic links". Doesn't every system handle symbolic links out-of-the-box
> ?)
>
> I forked the repository to make tests on my account, and I configured a
> small pipeline thats configures the sources and then generates the archive.
>
> You can see the job result here :
>
> https://gitlab.com/prokopyl/gambas/-/jobs/29620075
>
> (Warning : Big ./configure log, expect your tab to freeze for a bit !)
>
> On the right panel you can browse the Job artifacts, and see it generated
> the
> .tar.bz2 archive as an artifact you can download.
>
> Unlike the repository source archive, Job artifacts are not meant to be
> directly
> downloaded by the users, as anyone in the group can delete them wile
> cleaning up
> (they do not expire by default, but we have a 10GB job artifact limit if I
> remember
> correctly).
>
> However, you can configure the pipeline to automatically upload the source
> package
> to any server you'd like (using SSH, FTP, or anything that has a CLI
> really).
>
> Something I would also like to setup later, is a Pipeline that checks the
> configuration/build on several Linux distributions on every commit. Since
> the
> Pipelines can rely on Docker, we can basically check for most major x86_64
> distributions (and I think we can use qemu for other architectures, like
> x86
> or ARM).
>
> But that's just an idea, for now. :-)
>
>
> --
> 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
>
--
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] Mailinglist

2017-08-19 Thread Jussi Lahtinen
Why people are so against google groups? It would be much better than this
current one. No spam, no attachment size limits, better service
reliability, forum interface as alternative to people who like it...
otherwise it would work identically.


Jussi

On Sun, Aug 20, 2017 at 2:01 AM, adamn...@gmail.com 
wrote:

> On Sat, 19 Aug 2017 10:54:49 -0400
> PICCORO McKAY Lenz  wrote:
>
> > 2017-08-19 5:42 GMT-04:00 Benoît Minisini via Gambas-user <
> > gambas-user@lists.sourceforge.net>:If anyone has ideas about how and
> where
> > to host at least two mailing-lists, you are welcome!
> >
> > PLEASE BENOIT; USE THE GOOGLE GROUPS! its the most easy solution:
> > take a view example: https://vegnuli.sourceforge.io/index.php/Forums
> >
>
>
> Please don't
>
> b
>
>
> --
> B Bruen 
>
> 
> --
> 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


Re: [Gambas-user] Mailinglist

2017-08-19 Thread Jussi Lahtinen
>
> 1) Google groups are not a mailing-list. I want mails, so that I can have
> every post in my mail client and read them without Internet.
>

They are if you want. That is exactly how I use google groups. I never use
the web interface.


2) Google crawls the data, and who knows what they do with them.
>

It's Gambas mailing list, do we care? Also nabble already publishes the
mailing list content.



> 3) Google brutally stopped their issue tracker. I had to make an issue
> tracker for Gambas in a hurry because of that. There is no guarantee that
> they won't stop Google groups brutally too.
>

Yeah, bad policy from google, but this is quite hard requirement to
fulfill. There is always some uncertainty.



> 4) I don't want to force people to have a Google account.
>

Google account is needed only for the web interface.



Jussi
--
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] Mailinglist

2017-08-19 Thread Jussi Lahtinen
I'm signed on multiple google groups (and I'm admin of one [there can be
multiple admins]). They work without problems. It's by far the easiest
option. No need to put time, money, etc on it.
What is the problem with google?


Jussi

On Sat, Aug 19, 2017 at 8:13 PM, Benoît Minisini via Gambas-user <
gambas-user@lists.sourceforge.net> wrote:

> Le 19/08/2017 à 18:19, PICCORO McKAY Lenz a écrit :
>
>> 2017-08-19 12:15 GMT-04:00 Christof Thalhofer :
>>
>> PLEASE BENOIT; USE THE GOOGLE GROUPS! its the most easy solution:
 take a view example: https://vegnuli.sourceforge.io/index.php/Forums

>>>
>>> First rant against "M$" and then run to Google???
>>>
>>>
> By principle, I'm against Google, even, as everyone, I use it a lot.
>
> Adrien explains the problem well:
>
> The better is hosting the mailing-list ourself, but it requires a server,
> some bandwith, a hostname, and, more difficult, time to manage it.
>
> So we must find:
>
> - Someone who can host the mailing-list and who has time to manage the
> server.
>
> - Otherwise a mailing-list free host. Apparently freelists.org is not a
> good choice. And SourceForge is not too, since I can't subscribe (for
> example) the git mail announces to their mailing-list anymore.
>
> Regards,
>
> --
> 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


Re: [Gambas-user] Process.Wait freeze

2017-08-18 Thread Jussi Lahtinen
SVN log doesn't say anything about the fix in r8175..?


Jussi

On Fri, Aug 18, 2017 at 8:20 PM, Benoît Minisini via Gambas-user <
gambas-user@lists.sourceforge.net> wrote:

> Le 18/08/2017 à 19:16, Karl Reinl a écrit :
>
>> Am Freitag, den 18.08.2017, 13:18 +0200 schrieb Benoît Minisini via
>> Gambas-user:
>>
>>> OK, fixed in commit e1a5412f4ffb5ac7af62e78c7b93e2468152b13a.
>>>
>>
>> oh, thats too easy, much easier the r8175 ;°(
>>
>>
> Indeed! Maybe a time stamp would have been clearer to communicate...
>
> --
> 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


Re: [Gambas-user] Process.Wait freeze

2017-08-13 Thread Jussi Lahtinen
The freeze from gdb.

#0  0x77b068b3 in select () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x0041e26d in WATCH_process (fd_end=fd_end@entry=4,
fd_output=-1,
timeout=timeout@entry=0) at gbx_watch.c:685
#2  0x004286d9 in CPROCESS_wait_for (process=0x688298, timeout=0)
at gbx_c_process.c:976
#3  0x0043250e in EXEC_native () at gbx_exec.c:1375
#4  0x0043cc4a in EXEC_loop () at gbx_exec_loop.c:1427
#5  0x004316fb in EXEC_function_loop () at gbx_exec.c:931
#6  0x0043346f in EXEC_function_real () at gbx_exec.c:895
#7  EXEC_public_desc (class=, object=object@entry=0x0,
desc=desc@entry=0x681aa8, nparam=nparam@entry=0) at gbx_exec.c:1618
#8  0x00404b68 in main (argc=1, argv=0x7fffdfd8) at gbx.c:416


Jussi

On Mon, Aug 14, 2017 at 1:12 AM, Jussi Lahtinen <jussi.lahti...@gmail.com>
wrote:

> See attached project. Module mTest.DoTests the loop starting from 1680
> freezes randomly in one of the hProcess.Wait commands. This may be old bug,
> because I haven't update the sources for quite a while.
>
> [System]
> Gambas=3.10.90 r8175
> OperatingSystem=Linux
> Kernel=3.19.0-32-generic
> Architecture=x86_64
> Distribution=Linux Mint 17.3 Rosa
> Desktop=CINNAMON
> Theme=Gtk
> Language=en_US.UTF-8
> Memory=7984M
>
> [Libraries]
> Cairo=libcairo.so.2.11301.0
> Curl=libcurl.so.4.3.0
> DBus=libdbus-1.so.3.7.6
> GStreamer=libgstreamer-0.10.so.0.30.0
> GStreamer=libgstreamer-1.0.so.0.204.0
> GTK+2=libgtk-x11-2.0.so.0.2400.23
> GTK+3=libgtk-3.so.0.1000.8
> OpenGL=libGL.so.1.2.0
> Poppler=libpoppler.so.44.0.0
> QT4=libQtCore.so.4.8.6
> QT5=libQt5Core.so.5.2.1
> SDL=libSDL-1.2.so.0.11.4
> SQLite=libsqlite3.so.0.8.6
>
> [Environment]
> CLUTTER_BACKEND=x11
> CLUTTER_IM_MODULE=xim
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-yCq7Dgrg0M,guid=
> 9a0ab6b65eff69b32dd8204b59905528
> DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
> DESKTOP_SESSION=cinnamon
> DISPLAY=:0.0
> GB_GUI=gb.qt4
> GB_PROFILE_MAX=1000
> GDMSESSION=cinnamon
> GDM_XSERVER_LOCATION=local
> GIO_LAUNCHED_DESKTOP_FILE=/Desktop/Gambas3.desktop
> GIO_LAUNCHED_DESKTOP_FILE_PID=7856
> GNOME_DESKTOP_SESSION_ID=this-is-deprecated
> GNOME_KEYRING_CONTROL=/run/user/1000/keyring-xaFgNs
> GPG_AGENT_INFO=/run/user/1000/keyring-xaFgNs/gpg:0:1
> GTK_IM_MODULE=xim
> HOME=
> INSIDE_NEMO_PYTHON=
> LANG=en_US.UTF-8
> LC_ADDRESS=fi_FI.UTF-8
> LC_IDENTIFICATION=fi_FI.UTF-8
> LC_MEASUREMENT=fi_FI.UTF-8
> LC_MONETARY=fi_FI.UTF-8
> LC_NAME=fi_FI.UTF-8
> LC_NUMERIC=fi_FI.UTF-8
> LC_PAPER=fi_FI.UTF-8
> LC_TELEPHONE=fi_FI.UTF-8
> LC_TIME=en_US.UTF-8
> LOGNAME=
> MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
> MDMSESSION=cinnamon
> MDM_LANG=en_US.UTF-8
> MDM_XSERVER_LOCATION=local
> PAPERSIZE=letter
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
> sbin:/bin:/usr/games:/usr/local/games
> PWD=
> QT4_IM_MODULE=xim
> QT_STYLE_OVERRIDE=gtk
> SESSION_MANAGER=local/:@/tmp/.ICE-unix/
> 1559,unix/:/tmp/.ICE-unix/1559
> SHELL=/bin/bash
> SSH_AGENT_PID=1692
> SSH_AUTH_SOCK=/run/user/1000/keyring-xaFgNs/ssh
> TEXTDOMAIN=im-config
> TEXTDOMAINDIR=/usr/share/locale/
> TZ=:/etc/localtime
> USER=
> USERNAME=
> WINDOWPATH=8
> XAUTHORITY=/.Xauthority
> XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
> XDG_CURRENT_DESKTOP=X-Cinnamon
> XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/
> usr/local/share/:/usr/share/:/usr/share/mdm/
> XDG_RUNTIME_DIR=/run/user/1000
> XDG_SEAT=seat0
> XDG_SESSION_COOKIE=5a45fa29109f0ee2389b1b0355283726-1502631208.232811-
> 2021673404
> XDG_SESSION_DESKTOP=cinnamon
> XDG_SESSION_ID=c1
> XDG_VTNR=8
> XMODIFIERS=@im=none
>
>
> Jussi
>
--
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] Process.Wait freeze

2017-08-13 Thread Jussi Lahtinen
See attached project. Module mTest.DoTests the loop starting from 1680
freezes randomly in one of the hProcess.Wait commands. This may be old bug,
because I haven't update the sources for quite a while.

[System]
Gambas=3.10.90 r8175
OperatingSystem=Linux
Kernel=3.19.0-32-generic
Architecture=x86_64
Distribution=Linux Mint 17.3 Rosa
Desktop=CINNAMON
Theme=Gtk
Language=en_US.UTF-8
Memory=7984M

[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+2=libgtk-x11-2.0.so.0.2400.23
GTK+3=libgtk-3.so.0.1000.8
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
QT4=libQtCore.so.4.8.6
QT5=libQt5Core.so.5.2.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
CLUTTER_BACKEND=x11
CLUTTER_IM_MODULE=xim
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-yCq7Dgrg0M,guid=9a0ab6b65eff69b32dd8204b59905528
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
DESKTOP_SESSION=cinnamon
DISPLAY=:0.0
GB_GUI=gb.qt4
GB_PROFILE_MAX=1000
GDMSESSION=cinnamon
GDM_XSERVER_LOCATION=local
GIO_LAUNCHED_DESKTOP_FILE=/Desktop/Gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=7856
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-xaFgNs
GPG_AGENT_INFO=/run/user/1000/keyring-xaFgNs/gpg:0:1
GTK_IM_MODULE=xim
HOME=
INSIDE_NEMO_PYTHON=
LANG=en_US.UTF-8
LC_ADDRESS=fi_FI.UTF-8
LC_IDENTIFICATION=fi_FI.UTF-8
LC_MEASUREMENT=fi_FI.UTF-8
LC_MONETARY=fi_FI.UTF-8
LC_NAME=fi_FI.UTF-8
LC_NUMERIC=fi_FI.UTF-8
LC_PAPER=fi_FI.UTF-8
LC_TELEPHONE=fi_FI.UTF-8
LC_TIME=en_US.UTF-8
LOGNAME=
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
MDMSESSION=cinnamon
MDM_LANG=en_US.UTF-8
MDM_XSERVER_LOCATION=local
PAPERSIZE=letter
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=
QT4_IM_MODULE=xim
QT_STYLE_OVERRIDE=gtk
SESSION_MANAGER=local/:@/tmp/.ICE-unix/1559,unix/:/tmp/.ICE-unix/1559
SHELL=/bin/bash
SSH_AGENT_PID=1692
SSH_AUTH_SOCK=/run/user/1000/keyring-xaFgNs/ssh
TEXTDOMAIN=im-config
TEXTDOMAINDIR=/usr/share/locale/
TZ=:/etc/localtime
USER=
USERNAME=
WINDOWPATH=8
XAUTHORITY=/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_CURRENT_DESKTOP=X-Cinnamon
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=5a45fa29109f0ee2389b1b0355283726-1502631208.232811-2021673404
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_ID=c1
XDG_VTNR=8
XMODIFIERS=@im=none


Jussi


GambasTestercmd-0.9.49.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] Switching to GitLab

2017-08-13 Thread Jussi Lahtinen
> 
> 
>
> To update, I wrote these commands:
>
> 
> 
> cd trunk
> sudo make uninstall
> cd
> rm -rf trunk/
> svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk
> cd trunk
> ( ./reconf-all && LLVM_CONFIG=llvm-config-3.5 ./configure -C ) >
> ~/Scrivania/R_conf-Trunk.log 2>&1
>
> ( make && sudo make install ) > ~/Scrivania/Make_Inst-Trunk.log 2>&1
> 
> 
>

What? Why? No need to delete any sources, just use "svn update".

I hope svn still stays as alternative way, as in my experience git will
eventually make things very complicated.


Jussi
--
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 ML problem

2017-08-09 Thread Jussi Lahtinen
+1


Jussi

On Wed, Aug 9, 2017 at 5:08 PM, Rolf-Werner Eilert 
wrote:

> Am 09.08.2017 15:29, schrieb Gianluigi:
>
>> What is happening to our ML?
>> It does not seem to work anymore.
>> Charlie here [0] asks this but I do not have receive it, and the last
>> mails
>> I received after 2 August here [0] do not appear.
>> Probably Benoit has announced that version 3.10 is official but I have not
>> received ...
>>
>> [0] http://gambas.8142.n7.nabble.com/gambas-user-f3.html
>> 
>> --
>>
>
> Everything fine on my side today.
>
> Regards
> 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
>
--
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] Shell command

2017-08-08 Thread Jussi Lahtinen
Isn't that exactly what I suggested..? However there shouldn't be crash
anyway, only error raised.


Jussi

On Tue, Aug 8, 2017 at 4:43 AM, Shane  wrote:

> of cause missed that looking in wrong place
>
> Thanks Tony
>
>
>
> On 08/08/17 00:17, Tony Morehen wrote:
>
>> Shane,
>>
>> I can reproduce your crash here on 3.9.2.  It's cause is the line:
>>
>> Settings["Options/stmDevice"] = ComboBox1.Current
>>
>> If that line is changed to:
>>
>> Settings["Options/stmDevice"] = ComboBox1.Current.Text
>>
>> or the simpler, and in my mind preferred:
>>
>> Settings["Options/stmDevice"] = ComboBox1.Text
>>
>> The segmentation fault goes away.
>>
>> So the code that I'd recommend you use (I commented the code changes):
>>
>> Public sdevices As String
>>
>>
>> Public Sub SaveOps_Click()
>>
>>   Settings["Options/CCompCLine"] = TextBox1.Text
>> 'to fix the crash
>>   Settings["Options/stmDevice"] = ComboBox1.Text
>>   Settings.Save()
>>   Me.Close
>> End
>>
>> Public Sub Form_Open()
>>  Dim d As String
>>
>>TextBox1.Text = Settings["Options/CCompCLine"]
>>Shell "stm8flash -l" To sdevices
>> '  fill combobox with devices
>> 'trim gets rid of the trailing "\n"
>> 'moving Split into the loop saves an intermediate, unneeded string
>> creation
>>For Each d In Split(Trim(sdevices), " ", "", True)
>>  ComboBox1.Add(d)
>>Next
>> 'index = find selects the saved device
>>   ComboBox1.Index = ComboBox1.Find(Settings["Options/stmDevice"])
>> End
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> 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
>
--
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] Shell command

2017-08-06 Thread Jussi Lahtinen
Is that all the code in the form? Can you give your system information?


Jussi

On Mon, Aug 7, 2017 at 3:35 AM, Shane <buster6se...@gmail.com> wrote:

> Hi Jussi
>
> I gave that a try by commenting that line out still the same result so
> that not the problem
>
>
>
>
> On 06/08/17 22:17, Jussi Lahtinen wrote:
>
>> I guess settings component can't handle saving of arbitrary object. In
>> this
>> case "Settings["Options/stmDevice"] = ComboBox1.Current". Maybe you want
>> to
>> save ComboBox1.Current.Text?
>> However there shouldn't be segfault.
>>
>>
>> Jussi
>>
>> On Sun, Aug 6, 2017 at 7:18 AM, Shane <buster6se...@gmail.com> wrote:
>>
>> I have this in a sub form
>>>
>>> Public sdevices As String
>>>
>>>
>>> Public Sub SaveOps_Click()
>>>
>>>Settings["Options/CCompCLine"] = TextBox1.Text
>>>Settings["Options/stmDevice"] = ComboBox1.Current
>>>'Settings.Save()
>>>Me.Close
>>> End
>>>
>>> Public Sub Form_Open()
>>>   Dim devices As String[]
>>>   Dim d As String
>>> '
>>> TextBox1.Text = Settings["Options/CCompCLine"]
>>> Shell "stm8flash -l" To sdevices
>>> '  fill combobox with devices
>>> devices = Split(sdevices, " ")
>>> For Each d In devices
>>>   ComboBox1.Add(d)
>>> Next
>>> '   ComboBox1.Find(Settings["Options/stmDevice"])
>>>
>>> End
>>>
>>> but when I exit this form and then the main form i get s Seg fault
>>>
>>> but with the shell part commented out it is ok what am i doing wrong ?
>>>
>>> any ideas
>>>
>>> Thanks Shane
>>>
>>>
>>>
>>> 
>>> --
>>> 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
>>
>
>
> 
> --
> 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


Re: [Gambas-user] Shell command

2017-08-06 Thread Jussi Lahtinen
I guess settings component can't handle saving of arbitrary object. In this
case "Settings["Options/stmDevice"] = ComboBox1.Current". Maybe you want to
save ComboBox1.Current.Text?
However there shouldn't be segfault.


Jussi

On Sun, Aug 6, 2017 at 7:18 AM, Shane  wrote:

> I have this in a sub form
>
> Public sdevices As String
>
>
> Public Sub SaveOps_Click()
>
>   Settings["Options/CCompCLine"] = TextBox1.Text
>   Settings["Options/stmDevice"] = ComboBox1.Current
>   'Settings.Save()
>   Me.Close
> End
>
> Public Sub Form_Open()
>  Dim devices As String[]
>  Dim d As String
> '
>TextBox1.Text = Settings["Options/CCompCLine"]
>Shell "stm8flash -l" To sdevices
> '  fill combobox with devices
>devices = Split(sdevices, " ")
>For Each d In devices
>  ComboBox1.Add(d)
>Next
> '   ComboBox1.Find(Settings["Options/stmDevice"])
>
> End
>
> but when I exit this form and then the main form i get s Seg fault
>
> but with the shell part commented out it is ok what am i doing wrong ?
>
> any ideas
>
> Thanks Shane
>
>
>
> 
> --
> 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


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

2017-07-28 Thread Jussi Lahtinen
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
>>> 
>>> --
>>> 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


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

2017-07-28 Thread Jussi Lahtinen
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
>> 
>> --
>> 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


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

2017-07-28 Thread Jussi Lahtinen
Because the line makes no sense at all. Try to remove ")".


Jussi

On Fri, Jul 28, 2017 at 11:55 PM, PICCORO McKAY Lenz  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
> 
> --
> 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


Re: [Gambas-user] [Gambas Bug Tracker] Bug #1129: lybrary extern return illegal instruction

2017-07-27 Thread Jussi Lahtinen
How is the function called in C?


Jussi

On Thu, Jul 27, 2017 at 9:18 AM,  wrote:

> http://gambaswiki.org/bugtracker/edit?object=BUG.1129=L21haW4-
>
> Philippe BIENVAULT reported a new bug.
>
> Summary
> ---
>
> lybrary extern return illegal instruction
>
> Type : Bug
> Priority : Medium
> Gambas version   : 3.9
> Product  : Unknown
>
>
> Description
> ---
>
> Private Extern factorielle(toto As Integer) As Integer In "libfact"
>
>
> Public Sub Main()
>
>   Dim aVal As Integer
>
>   aVal = factorielle(12) ' -> return illegal instruction
>
>
> End
>
>
> System information
> --
>
> [System]
> Gambas=3.9.2
> OperatingSystem=Linux
> Kernel=4.4.0-71-generic
> Architecture=x86_64
> Distribution=Ubuntu 16.04.2 LTS
> Desktop=UNITY
> Theme=Gtk
> Language=fr_FR.UTF-8
> Memory=3624M
>
> [Libraries]
> Cairo=libcairo.so.2.11400.6
> Curl=libcurl.so.4.4.0
> DBus=libdbus-1.so.3.14.6
> GStreamer=libgstreamer-1.0.so.0.803.0
> GTK+2=libgtk-x11-2.0.so.0.2400.30
> GTK+3=libgtk-3.so.0.1800.9
> OpenGL=libGL.so.1.0.0
> OpenGL=libGL.so.1.2.0
> Poppler=libpoppler.so.58.0.0
> QT4=libQtCore.so.4.8.7
> QT5=libQt5Core.so.5.5.1
> SDL=libSDL-1.2.so.0.11.4
> SQLite=libsqlite3.so.0.8.6
>
> [Environment]
> CLUTTER_IM_MODULE=xim
> COMPIZ_BIN_PATH=/usr/bin/
> COMPIZ_CONFIG_PROFILE=ubuntu
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-1SjanrYhNB
> DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
> DESKTOP_SESSION=ubuntu
> DISPLAY=:0
> GB_GUI=gb.qt4
> GDMSESSION=ubuntu
> GDM_LANG=fr_FR
> GIO_LAUNCHED_DESKTOP_FILE=/.local/share/applications/gambas3.desktop
> GIO_LAUNCHED_DESKTOP_FILE_PID=11132
> GNOME_DESKTOP_SESSION_ID=this-is-deprecated
> GNOME_KEYRING_CONTROL=
> GNOME_KEYRING_PID=
> GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1
> GTK2_MODULES=overlay-scrollbar
> GTK_IM_MODULE=ibus
> GTK_MODULES=gail:atk-bridge:unity-gtk-module
> HOME=
> IM_CONFIG_PHASE=1
> INSTANCE=
> JOB=unity-settings-daemon
> LANG=fr_FR.UTF-8
> LANGUAGE=fr_FR
> LOGNAME=
> MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
> sbin:/bin:/usr/games:/usr/local/games:/snap/bin
> PWD=
> QT4_IM_MODULE=xim
> QT_ACCESSIBILITY=1
> QT_IM_MODULE=ibus
> QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
> QT_QPA_PLATFORMTHEME=appmenu-qt5
> SESSION=ubuntu
> SESSIONTYPE=gnome-session
> SESSION_MANAGER=local/:@/tmp/.ICE-unix/
> 1987,unix/:/tmp/.ICE-unix/1987
> SHELL=/bin/bash
> SHLVL=0
> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
> TZ=:/etc/localtime
> UPSTART_EVENTS=xsession started
> UPSTART_INSTANCE=
> UPSTART_JOB=unity7
> UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1771
> USER=
> XAUTHORITY=/.Xauthority
> XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
> XDG_CURRENT_DESKTOP=Unity
> XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/
> local/share/:/usr/share/:/var/lib/snapd/desktop
> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/
> XDG_MENU_PREFIX=gnome-
> XDG_RUNTIME_DIR=/run/user/1000
> XDG_SEAT=seat0
> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
> XDG_SESSION_DESKTOP=ubuntu
> XDG_SESSION_ID=c2
> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
> XDG_SESSION_TYPE=x11
> XDG_VTNR=7
> XMODIFIERS=@im=ibus
>
>
>
> 
> --
> 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


Re: [Gambas-user] reading files

2017-07-24 Thread Jussi Lahtinen
"Title[30] As String" does not declare 30 characters, but 30 strings.


Jussi


On Tue, Jul 18, 2017 at 3:50 AM, Shane  wrote:

> i don't know what i am doing wrong
>
> Public Struct ID3v1_TAG  '(128 bytes)
>  Tag[3] As String   'always TAG
>  Title[30] As String 'title, 30 characters
>  Artist[30] As String   'artist, 30 characters
>  Album[30] As String   'album, 30 characters
>  Year[4] As String  'year, 4 characters
>  Comment[30] As String  'comment, 30 characters (or 28 if
> track# included)
>  Genre As Byte   'genre, 255 for none defined
> End Struct
>
>
> Private Sub GetID3v1(File As String)
> Dim IDtag As ID3v1_TAG
> Dim hfile As File
>
> hfile = Open File For Read
>
> '
> 'read the tag
> ' seek to end of less tag size
>
> Read #hfile, IDtag, ID3v1_TAG
>
> here i get IDtag is NULL
>
>
>
> On 18/07/17 05:05, nand...@nothingsimple.com wrote:
>
>> Yes it is possible, I do it.  here is some code (incomplete)
>>
>> -Nando (Canada)
>>
>>
>>
>> ' top of class file
>> Public Struct recstruc
>>_a as integer
>>_b as integer
>>_c as integer
>> end struct
>>
>>
>> ' a function
>> public function openAfile(filename as string) as file
>>
>> dim hfile as file
>> dim arec as recstruc
>>
>> hfile = open filename for read write create
>>
>> with arec   'some values to write.
>>._a = 1
>>._b = 22
>>._c = 333
>> end with
>>
>> write #hfile, arec as recstruc
>>
>> 'if you position the hfile pointer back to zero, you can...
>> read #hfile, arec as recstruc
>>
>> close #hfile
>>
>> end
>>
>>
>>
>>
>>
>>
>> --
>> Open WebMail Project (http://openwebmail.org)
>>
>>
>> -- Original Message ---
>> From: T Lee Davidson 
>> To: gambas-user@lists.sourceforge.net
>> Sent: Sun, 16 Jul 2017 12:42:35 -0400
>> Subject: Re: [Gambas-user] reading files
>>
>> On 07/16/2017 06:57 AM, Shane wrote:
>>>
 given this example

 PRIVATE SUB BinaryRead(FilePath AS String)
 DIM binaryFile AS File
 DIM i AS Integer
 DIM b AS Byte
 DIM s AS Short
 DIM s1 AS String
 DIM s2 AS String
 ' Read binary file
 binaryFile = OPEN FilePath FOR READ
 READ #binaryFile, i
 READ #binaryFile, b
 READ #binaryFile, s
 READ #binaryFile, s1
 READ #binaryFile, s2
 CLOSE #binaryFile
 ' Display results
 PRINT i
 PRINT b
 PRINT s
 PRINT s1
 PRINT s2
 END


 is there a way for gambas to read a struct of all these variables
 in one read ?

 You may have hinted at the solution within your question. Have you
>>> considered
>>> using a Structure?
>>>
>>> http://gambaswiki.org/wiki/lang/read :
>>> "... reads the stream Stream as binary data whose type is specified by
>>> the
>>> Datatype argument."
>>>
>>> "The returned datatype can be one of the following: NULL, Boolean, Byte,
>>> Short,
>>>   Integer, Long, Pointer, Single, Float, Date, String, Variant, any
>>> Array,
>>>   Collection or structure."
>>>
>>> http://gambaswiki.org/wiki/lang/structdecl
>>>
>>> --
>>> Lee
>>>
>>> 
>>> --
>>> 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
>
--
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] About gambas, the word

2017-07-13 Thread Jussi Lahtinen
Many open source projects have animal name or logo. So I guess it's just
old tradition.


Jussi

On Thu, Jul 13, 2017 at 11:18 AM, Jorge Carrión  wrote:

> It's a joke, I think. Searching for something that contains BAS, from
> Basic. Why an animal I don't know. Benoit likes to eat prawns, I
> soppouse...
>
> 
>
> Best Regards
>
> 2017-07-13 8:37 GMT+02:00 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
> >
> 
> --
> 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


Re: [Gambas-user] how to trap show modal close response?

2017-07-10 Thread Jussi Lahtinen
Public Sub Main()

Dim ii As Integer = FLogin.ShowModal()

End

''Now the ii contains the output.

PS. Are you sure that is override of something?


Jussi



On Mon, Jul 10, 2017 at 11:02 PM, PICCORO McKAY Lenz  wrote:

> i have a simple module:
>
>
> Public Sub Main()
>
>   FLogin.ShowModal
>
> End
>
> and on the FLogin.class i have a simple override of a buton event:
>
> Public Sub closebtn_Click()
>
>   Me.Close(33)
>
> End
>
> how can i trap in the MMain module in main the reponse of the FLogin
> without explicit call to moduleo inside the FLogin form.. ?
>
>
>
> 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
>
--
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] who to detect if are running inside IDE

2017-07-03 Thread Jussi Lahtinen
> Coz it stops at a defined place, not just next time the eventloop runs.


The eventloop needs to hit menu click for that to happen anyway... also I
don't get why that matters. But I guess it's up to your taste.



Jussi
--
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] who to detect if are running inside IDE

2017-07-03 Thread Jussi Lahtinen
I don't understand why you need stop menu to your project. Why can't you
just use the stop button from the IDE?


Jussi

On Mon, Jul 3, 2017 at 11:38 PM, adamn...@gmail.com 
wrote:

> On Mon, 3 Jul 2017 20:40:46 +0200
> Tobias Boege  wrote:
>
>
> > I'm convinced that no matter how you try to detect if you're run by the
> IDE
> > or not, someone can create an environment where your test gives the wrong
> > answer. I still stand by my statement from two years ago: you shouldn't
> care
> > where your program is run from in the first place. What problem are you
> > trying to solve by knowing that?
> >
> > Regards,
> > Tobi
>
>
> Since you asked :-)
>
> Laziness!
>
> Many times I have a menu item in a form that just "Stop"s the program i.e.
>
> Private Sub mnuDebug()
> Stop
> End
>
> then in the Form_Open()
>
> #If Exec
> mnuDebug.Visible = False
> #Endif
>
> So at development time, or when the customer has a problem, I almost
> always have a way to stop the program when it's running in the IDE.
>
> All this does is "tidy up" the program automatically when run outside the
> IDE. If a user wants to go to the extent of creating a non-x version of the
> program just to see that menu item - which will do nothing anyway since the
> Stop is ignored - then all I can say is "Good luck to them."
>
> There are probably trickier or even "more correct" ways to hide a menu
> item at runtime, but hey! Three lines and "As Far As I Care" - problem
> solved.
>
> b
>
> --
> B Bruen 
>
> 
> --
> 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


Re: [Gambas-user] who to detect if are running inside IDE

2017-07-03 Thread Jussi Lahtinen
I don't know how this reacts to Gambas scripts, but for "normal" projects
it works.

#If Exec
Print "Executable"
#Else
Print "IDE"
#Endif



Jussi

On Mon, Jul 3, 2017 at 8:23 PM, PICCORO McKAY Lenz 
wrote:

> a piece of code to who to detect if are running inside IDE?  any ideas how
> to?
>
> 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
>
--
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 specifiy the shell in a shell gambas call, wiki does not give example

2017-07-02 Thread Jussi Lahtinen
Since it's string, I assume:

System.Shell = "/bin/sh"


Jussi

On Sun, Jul 2, 2017 at 5:44 PM, PICCORO McKAY Lenz 
wrote:

> how can i use that, there's no example, :
> Specifying The Shell
>
> SINCE 3.1
>
> You can specify which shell is used for running the command with the
> System.Shell  property.
>
> By default, the shell command is run through /bin/sh.
>
>
> and wiki ends abruptly with no further example..
>
>
> 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
>
--
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 Jussi Lahtinen
-- Forwarded message --
From: Benoît Minisini <gam...@users.sourceforge.net>
Date: Sun, Jul 2, 2017 at 1:14 AM
Subject: Re: [Gambas-user] Problem to be examined by those who must use
UTF8 with Gambas
To: Jussi Lahtinen <jussi.lahti...@gmail.com>, ferna...@fcabral.com.br


Please send that to the mailing-list.

Regards,

Le 02/07/2017 à 00:10, Jussi Lahtinen a écrit :

> OK, this seems to be bug in GTK+ component!
> Go to; Project --> Properties --> Components, and change gb.gui to
> gb.gui.qt, then everything will work as expected. Or you need to wait for
> fix.
>
>
> Jussi
>
>
>
> On Sat, Jul 1, 2017 at 11:34 PM, Fernando Cabral <
> fernandojosecab...@gmail.com <mailto:fernandojosecab...@gmail.com>> wrote:
>
> 2017-07-01 16:15 GMT-03:00 Jussi Lahtinen <jussi.lahti...@gmail.com
> <mailto: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 <mailto: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 <mailto:fernandojosecab...@gmail.com>
> Facebook: f...@fcabral.com.br <mailto:f...@fcabral.com.br>
> Telegram: +55 (37) 99988-8868 <tel:%2B55%20%2837%29%2099988-8868>
> Wickr ID: fernandocabral
> WhatsApp: +55 (37) 99988-8868 <tel:%2B55%20%2837%29%2099988-8868>
> Skype:  fernandojosecabral
> Telefone fixo: +55 (37) 3521-2183 <tel:%2B55%20%2837%29%203521-2
> 183>
> Telefone celular: +55 (37) 99988-8868
> <tel:%2B55%20%2837%29%2099988-8868>
>
> Enquanto houve

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

2017-07-01 Thread Jussi Lahtinen
I don't quite get your description of the problem. It seems self
contradictory. I mean this part:




*'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.'*
So, what exactly does not work then?
Are you using ascii functions for UTF-8 at some point? I think we need to
see your code to understand the issue.



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


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

2017-07-01 Thread Jussi Lahtinen
Gambas have built in profiler. You might want to get familiar with it.


Jussi

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

> 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
>
--
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 determine if array its empty

2017-07-01 Thread Jussi Lahtinen
If you add the extra "if", then Gambas will do short-circuit evaluation.
https://en.wikipedia.org/wiki/Short-circuit_evaluation


Jussi



On Sat, Jul 1, 2017 at 3:08 PM, Cristiano Guadagnino 
wrote:

> Hi Gianluigi!
>
> On Sat, Jul 1, 2017 at 12:13 PM, Gianluigi  wrote:
>
> > or
> > If IsNull(myArray) Or If myArray.Count = 0 Then Print "Empty"
> >
>
> I have not tried, but I don't think this will work. In an "or" expression
> you have to evaluate both members, so if myArray is null the "myArray.Count
> = 0" part will generate an out of bounds error.
>
> Cris
> 
> --
> 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


Re: [Gambas-user] SELECT CASE can evaluate multiple "CASE"? at same time

2017-07-01 Thread Jussi Lahtinen
"Case 1, 2"  will do the job.


Jussi

On Sat, Jul 1, 2017 at 2:12 PM, PICCORO McKAY Lenz 
wrote:

> SELECT CASE can evaluate multiple "CASE"? i mean
>
> *Select* *Case* w *Case* *1 or 2*
> print "evaluatin multiple cases at same time" *Case* *Else* *Print* "This
> is impossible!" *End* *Select*
>
> 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
>
--
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 Jussi Lahtinen
As Fernando stated your code is good only for small arrays. But if someone
is going to use it, here is correct implementation:

For x = 0 to a.Max
  if z.Find(a[x]) = -1 Then z.Add(a[x])
Next


z.Exist() might be faster... I don't know.



Jussi



On Tue, Jun 27, 2017 at 6:59 PM,  wrote:

> Well, there is complicated, then there is simplicity:
> I tested this. Works for sorted, unsorted.
> Can't be any simpler.
>
> 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
>
> 'if you want it sorted, do it here
> Return z
>
> END
>
> ' - - - - -
> use it this way:
>
> myArray = RemoveMultiple(myArray)
>   'the z array is now myArray.
>   'the original array is destroyed because there are no references.
>
>
>
> --
> Open WebMail Project (http://openwebmail.org)
>
>
> -- Original Message ---
> From: Gianluigi 
> To: mailing list for gambas users 
> Sent: Tue, 27 Jun 2017 16:52:48 +0200
> Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate items
> in a array
>
> > My two cents.
> >
> > Public Sub Main()
> >
> >   Dim sSort As String[] = ["A", "B", "B", "B", "C", "D", "D", "E", "E",
> > "E", "E", "F"]
> >   Dim sSame As String[] = sSort
> >   Dim bb As New Byte[]
> >   Dim sSingle As New String[]
> >   Dim i, n As Integer
> >
> >   For i = 0 To sSort.Max
> > If i < sSort.Max Then
> >   If sSort[i] = sSame[i + 1] Then
> > Inc n
> >   Else
> > sSingle.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 :
> >
> > > 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 
> > > 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
> > > 

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

2017-06-25 Thread Jussi Lahtinen
People gave you good correct answers. Gambas is not C, and you cannot fix
bad code structure by using goto.
Remember that people here are spending quite a lot of time to decrypt your
messages to be able to help you. And you don't even bother to use spell
checker.
Little bit respect towards others.


Jussi


On Sun, Jun 25, 2017 at 3:18 PM, PICCORO McKAY Lenz 
wrote:

> due to many inconsistence responses i must spend time (again) to
> investigating..
>
> the problem of goto comes from C to object conversion compilation..
>
> many goto's produce many labels and "jump"'s in assembler code translation
> when a C program are compling.. so the resulting program will be more
> slower due too many "jumps"
>
> this are poor ilustrated to most of users here in the list due i think
> nobody here know (in experience) code in assemble like me..
>
> i case of gambas analizing the code seems are not the same.. due gambas
> fist make their own bycode that runtime inderstand and then that runtime
> pass to object mahine.. so many things change and its not the same... in
> easy words..
>
> so i'm very frustrating due when i try to use gambas in professional way
> (due are very promisess and usefully) many questions require spend of time
> due situations like that... please users.. dont make conjetures of things
> that not known, causes spend of time of otheers
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-06-25 5:01 GMT-04:30 Christof Thalhofer :
>
> > Am 22.06.2017 um 16:10 schrieb PICCORO McKAY Lenz:
> >
> > > so i put
> > >
> > > if not isnull()
> > >   goto codepiecelabel1
> > > endif
> > >   ' amount of lines
> > >
> > > codepiecelabel1:
> > > ' here the 4000 lines
> > >
> > >
> > > i cannot use a sub procedures due manage some variables
> >
> > I never understood the religious cruzification of Goto.
> >
> > Sometimes I do things like:
> >
> > If anyvar = Null then
> >Goto EndAndExit
> > Endif
> >
> > 'Some or a lot of code ...
> > 'Inside another break:
> >
> > If anothervar = Null Then
> >Goto EndAndExit
> > Endif
> >
> >
> > EndAndExit:
> > End
> >
> > For that situations I find Goto very useful.
> >
> > If I use Goto, I only use it to jump downwards. I for me found out that
> > jumping upwards is a jump to hell.
> >
> > And if it is really useful (jumping upwards, very very seldom) then it
> > has to be heavily documented.
> >
> >
> > Alles Gute
> >
> > 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
> >
> >
> 
> --
> 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


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

2017-06-22 Thread Jussi Lahtinen
Depends on situation. Usually goto is not needed, but it can be useful.
Impossible to say more without seeing the code.
Usually the problem with goto is that it can render the code hard to debug
or read.


Jussi

On Thu, Jun 22, 2017 at 4:21 PM, PICCORO McKAY Lenz 
wrote:

> i have some GOTO to avoit large IF-ELSE code blocks and make readable the
> code..
>
> the usage of many GOTO instructions can be bad pracitce or make influence
> in the code?
>
> i remenber that in BASIC always tell me "dont use too much"
>
> of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-)
>
>
> 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
>
--
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] Strange behaviour of File.Read

2017-06-21 Thread Jussi Lahtinen
Perhaps more clear this way, maybe your file contains line:
"/home/bill/Pictures/Family/Visits/2000-07-29" instead of
/home/bill/Pictures/Family/Visits/2000-07-29 .
So, the quote marks shouldn't be there...

Jussi

On Wed, Jun 21, 2017 at 10:47 PM, Jussi Lahtinen <jussi.lahti...@gmail.com>
wrote:

> Is that the literal output?
> Because if there really are quote marks, then the command is equal to:
>
> Print IsDir("\"/home/bill/Pictures/Family/Visits/2000-07-29\"")
>
> Which is clearly false.
>
> However if it is not literal output, then it is impossible to say what is
> read from the file to the string...
>
>
>
> Jussi
>
>
>
>
>
> On Wed, Jun 21, 2017 at 4:36 PM, bill-lancaster via Gambas-user <
> gambas-user@lists.sourceforge.net> wrote:
>
>> I must be missing something - any ideas?
>> Gambas3.9.2
>> Components, gb.form, gb,gui, gb.image
>>
>> This is the code:-
>>
>> Public Sub Button1_Click()
>> Dim s As String
>>   s = File.Load(User.Home &/ "Pictures/PhotoFolder.txt")
>>   Print s
>>   Print IsDir(s)
>>   Print IsDir("/home/bill/Pictures/Family/Visits/2000-07-29")
>> End
>>
>> This is the output:-
>>
>> "/home/bill/Pictures/Family/Visits/2000-07-29"
>>
>> False
>> True
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://gambas.8142.n7.nabble.c
>> om/Strange-behaviour-of-File-Read-tp59467.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
>>
>
>
--
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] Strange behaviour of File.Read

2017-06-21 Thread Jussi Lahtinen
Is that the literal output?
Because if there really are quote marks, then the command is equal to:

Print IsDir("\"/home/bill/Pictures/Family/Visits/2000-07-29\"")

Which is clearly false.

However if it is not literal output, then it is impossible to say what is
read from the file to the string...



Jussi




On Wed, Jun 21, 2017 at 4:36 PM, bill-lancaster via Gambas-user <
gambas-user@lists.sourceforge.net> wrote:

> I must be missing something - any ideas?
> Gambas3.9.2
> Components, gb.form, gb,gui, gb.image
>
> This is the code:-
>
> Public Sub Button1_Click()
> Dim s As String
>   s = File.Load(User.Home &/ "Pictures/PhotoFolder.txt")
>   Print s
>   Print IsDir(s)
>   Print IsDir("/home/bill/Pictures/Family/Visits/2000-07-29")
> End
>
> This is the output:-
>
> "/home/bill/Pictures/Family/Visits/2000-07-29"
>
> False
> True
>
>
>
>
>
> --
> View this message in context: http://gambas.8142.n7.nabble.
> com/Strange-behaviour-of-File-Read-tp59467.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
>
--
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-17 Thread Jussi Lahtinen
Oh, sorry... this way of course:

  Dim sStr As String = "abc. def!!! ghi?   jkl:  (mno)"
  Dim sWords As String[]

  sWords = Split(sStr, " .!?:()", "", True) ''Expand as you will.

  For ii = 0 To sWords.Max
   Print sWords[ii]
  Next



Jussi

On Sun, Jun 18, 2017 at 6:29 AM, Jussi Lahtinen <jussi.lahti...@gmail.com>
wrote:

> It's not problem.
>
>   Dim sStr As String = "abc. def!!! ghi?   jkl:  (mno)"
>   Dim sWords As String[]
>
>   sWords = Split(sStr, " .!?:()") '' Exapand as you will.
>
>   ii = 0
>   Do
> If sWords[ii] = "" Then
>   sWords.Remove(ii)
> Else
>   Inc ii
> Endif
>   Loop Until ii > sWords.Max
>
>   For ii = 0 To sWords.Max
>Print sWords[ii]
>   Next
>
>
> Jussi
>
>
> On Sun, Jun 18, 2017 at 4:53 AM, Fernando Cabral <
> fernandojosecab...@gmail.com> wrote:
>
>> Jussi, what you suggest will not work. You have presumed the only
>> separator is a single space.
>> This is not the case. Between any two words you can have any non-alpha
>> character in any number.
>> It could be, for instance, "abc. def!!! ghi?   jkl:  (mno)" and so
>> forth.
>> This means, the definition of word is "any sequence of alphabetic
>> characters followed by any sequence of non-alphabetic.
>>
>> That's why your suggestion does not apply.
>>
>> - fernando
>>
>> 2017-06-17 21:21 GMT-03:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
>>
>>> I think I would do something like:
>>>
>>>   Dim ii As Integer
>>>   Dim sStr As String = "abc defg hijkl"
>>>   Dim sWords As String[]
>>>
>>>   sWords = Split(sStr, " ")
>>>
>>>   For ii = 0 To 2
>>>Print sWords[ii]
>>>   Next
>>>
>>>
>>>
>>>
>>> Jussi
>>>
>>> On Sun, Jun 18, 2017 at 2:57 AM, Fernando Cabral <
>>> fernandojosecab...@gmail.com> 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.
>>>>
>>>> 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
>>>> >

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

2017-06-17 Thread Jussi Lahtinen
I think I would do something like:

  Dim ii As Integer
  Dim sStr As String = "abc defg hijkl"
  Dim sWords As String[]

  sWords = Split(sStr, " ")

  For ii = 0 To 2
   Print sWords[ii]
  Next




Jussi

On Sun, Jun 18, 2017 at 2:57 AM, Fernando Cabral <
fernandojosecab...@gmail.com> 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.
>
> Regards
>
> - fernando
>
>
> 2017-06-17 18:06 GMT-03:00 Tobias Boege :
>
> > 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
> > expression; and the (otherwise very nifty) recursion operator (?R) does
> > not give 

Re: [Gambas-user] Gambas-Documentation

2017-06-06 Thread Jussi Lahtinen
I meant documentation should have example codes. It's great point to start
with, and it doesn't require much skills in English.
If examples are out of date, then likely also documentation is out of date.
So, it's not specific problem of example code.


Jussi



On Tue, Jun 6, 2017 at 9:58 PM, PICCORO McKAY Lenz <mckaygerh...@gmail.com>
wrote:

> 2017-06-06 14:32 GMT-04:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
> > I think many times short example codes tells much more, than human
> language
> > explanation. If the function, variable, etc names are in English, then I
> > think it is usually enough. Maybe some short comments are necessary
> > sometimes. Let the Gambas be our common language.
>
> documentation its the firts piece of view when a project its about to
> start! come on, if this where true, no maillist will exist,
>
> and taking about of pieces of code, in the past all "odbc connections
> examples" was out of date, that more thant help new developers make it
> confuses
>
> >
> >
> > Jussi
> >
> >
> >
> > On Tue, Jun 6, 2017 at 7:49 PM, Dimitris Anogiatis <dos...@gmail.com>
> wrote:
> >
> >> While Google translate and other online transaction tools are not
> perfect
> >> we could try a few of them to see which combination of such tools makes
> >> more sense for both the English side and the non-English side.
> >>
> >> Keep in mind that the way we put words to our thoughts is also affected
> by
> >> different patterns and experiences in all our lives as well as mood and
> >> stress levels at the time of asking for info or documenting a piece of
> >> code. Plus not all words have a direct equivalent in every language. So
> we
> >> also have to have a balance between specifics and verbosity.
> >>
> >> That's my 2 cents worth of wisdom anyways :)
> >>
> >> On Jun 6, 2017 10:00 AM, "Benoît Minisini via Gambas-user" <
> >> gambas-user@lists.sourceforge.net> wrote:
> >>
> >> Le 06/06/2017 à 17:54, PICCORO McKAY Lenz a écrit :
> >>
> >> > hi benoit, there many issues in gb.db specifically in odbc component,
> i
> >> > wish to be fixed in the next release please, thanks in advance
> >> >
> >> > currently i can to contribute to the documentation how-to's wiki parts
> >> but
> >> > i cannot write on both languajes, its very tedious for me write
> english..
> >> > so if any could translate from spanish will be usefully
> >> >
> >> >
> >> I don't speak spanish, and your english is often unreadable, so we need
> >> some help...
> >>
> >> --
> >> 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
> >>
> > 
> --
> > 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
>
--
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 Jussi Lahtinen
I think many times short example codes tells much more, than human language
explanation. If the function, variable, etc names are in English, then I
think it is usually enough. Maybe some short comments are necessary
sometimes. Let the Gambas be our common language.


Jussi



On Tue, Jun 6, 2017 at 7:49 PM, Dimitris Anogiatis  wrote:

> While Google translate and other online transaction tools are not perfect
> we could try a few of them to see which combination of such tools makes
> more sense for both the English side and the non-English side.
>
> Keep in mind that the way we put words to our thoughts is also affected​ by
> different patterns and experiences in all our lives as well as mood and
> stress levels at the time of asking for info or documenting a piece of
> code. Plus not all words have a direct equivalent in every language. So we
> also have to have a balance between specifics and verbosity.
>
> That's my 2 cents worth of wisdom anyways :)
>
> On Jun 6, 2017 10:00 AM, "Benoît Minisini via Gambas-user" <
> gambas-user@lists.sourceforge.net> wrote:
>
> Le 06/06/2017 à 17:54, PICCORO McKAY Lenz a écrit :
>
> > hi benoit, there many issues in gb.db specifically in odbc component, i
> > wish to be fixed in the next release please, thanks in advance
> >
> > currently i can to contribute to the documentation how-to's wiki parts
> but
> > i cannot write on both languajes, its very tedious for me write english..
> > so if any could translate from spanish will be usefully
> >
> >
> I don't speak spanish, and your english is often unreadable, so we need
> some help...
>
> --
> 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
>
--
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] Change the code and copy in other project

2017-05-25 Thread Jussi Lahtinen
I don't quite understand what you are trying to achieve, but you can copy
the src folder to the data folder and then it will in the executable. Maybe
you can even link it into the data folder.


Jussi

On Thu, May 25, 2017 at 11:23 PM, Gianluigi <bagone...@gmail.com> wrote:

> OK I will look for another way to do this.
>
> Regards
> Gianluigi
>
> 2017-05-25 21:36 GMT+02:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
>
> > Src folder contains the source code for your project. You don't need to
> use
> > IDE to copy or edit the files.
> > Compiled binary does not contain source code, nor the compiling touches
> to
> > the src folder. It is only read during the compilation.
> >
> >
> > Jussi
> >
> >
> >
> > On Thu, May 25, 2017 at 9:06 PM, Gianluigi <bagone...@gmail.com> wrote:
> >
> > > I need to copy modules and classes from my project, change the code
> > > partially and copy it to another project.
> > > Is this only possible from IDE or is it possible also from a compiled
> > > project?
> > > Is there still the src folder in the compiled project?
> > >
> > > Regards
> > > Gianluigi
> > > 
> > > --
> > > 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
> >
> 
> --
> 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


Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Jussi Lahtinen
The code you sent is not runnable. So there is obviously something more.
Why you cannot debug it? Just run the project in the IDE and when things go
slow hit pause and see what is inside of the collection.


Jussi

On Thu, May 25, 2017 at 10:56 PM, PICCORO McKAY Lenz <mckaygerh...@gmail.com
> wrote:

> as code i send, only contanis two connection objects, one for odbc and
> other for sqlite
>
> but i cannot see or debug it, due the interface does not show nothing ...
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-25 15:31 GMT-04:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
>
> > Have you checked what the collection contains, when the system slows
> down?
> > Maybe the containing strings are longer than what you expect? Or maybe
> > there are more elements than you expect?
> > How much the running program takes memory, when things get slow?
> >
> >
> > Jussi
> >
> > On Thu, May 25, 2017 at 8:21 PM, PICCORO McKAY Lenz <
> > mckaygerh...@gmail.com>
> > wrote:
> >
> > > hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7
> intel
> > >
> > > well complete history its that many days before i run several times
> > gambas
> > > without close it, but in none moment used collections..
> > >
> > > today only with project where i used collections gambas get slower
> after
> > > some hours...
> > >
> > > Lenz McKAY Gerardo (PICCORO)
> > > http://qgqlochekone.blogspot.com
> > >
> > > 2017-05-25 10:59 GMT-04:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
> > >
> > > > Collection requires more memory than string array, so maybe your box
> is
> > > > just swapping, because of low memory?
> > > >
> > > >
> > > > Jussi
> > > >
> > > > On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz <
> > > > mckaygerh...@gmail.com>
> > > > wrote:
> > > >
> > > > > there are the piece of code and here there's no secret:
> > > > >
> > > > > Public Function getItems() As Collection
> > > > >
> > > > >   Dim $items As New Collection
> > > > >   Dim itema, itemb as String = "something"
> > > > >
> > > > >   $items.Add($itema, "item1")
> > > > >   $items.Add($itemb, "item2")
> > > > >   $items.Add(2, "cuantos")
> > > > >
> > > > >   Return $items
> > > > >
> > > > > End
> > > > >
> > > > > here the previous code "bad programed" and when i swicht to
> > collection
> > > > > gambas ide get slower after some time, the code was:
> > > > >
> > > > > Public Function getItems() As String[]
> > > > >
> > > > >   Dim $items As New String[]
> > > > >   Dim itema, itemb as String = "something"
> > > > >
> > > > >   $items.Add($itema)
> > > > >   $items.Add($itemb)
> > > > >
> > > > >   Return $items
> > > > >
> > > > > End
> > > > >
> > > > > the gambas ide and the OS was not shutdown during 40 days, also the
> > > > gambas
> > > > > ide was not quit in this period, and in that period i run the huge
> > data
> > > > > code of the 3 odbc bug with 10 registers, after change the code
> > to
> > > > > collection  (each change are little before test) thje ide gambas
> get
> > > slow
> > > > > and does not run well..
> > > > >
> > > > > this happened to my other partners in the job... i test also in
> > debian
> > > > > jeesie and happened same!
> > > > >
> > > > > i noted that when alone user said something its like "nothigs its
> > > > happened,
> > > > > its just bad programer"
> > > > >
> > > > > will need other to reports, but these other do not have time to
> make
> > a
> > > > > little project and report that..
> > > > >
> > > > > sqlite was severi broken until gambas 3.6 and must be rewrite for
> > > gambas
> > > > > 3.8
> > > > >
> > > > > now in gamba 3.9 ther's some doc-online problems with 

Re: [Gambas-user] Change the code and copy in other project

2017-05-25 Thread Jussi Lahtinen
Src folder contains the source code for your project. You don't need to use
IDE to copy or edit the files.
Compiled binary does not contain source code, nor the compiling touches to
the src folder. It is only read during the compilation.


Jussi



On Thu, May 25, 2017 at 9:06 PM, Gianluigi  wrote:

> I need to copy modules and classes from my project, change the code
> partially and copy it to another project.
> Is this only possible from IDE or is it possible also from a compiled
> project?
> Is there still the src folder in the compiled project?
>
> Regards
> Gianluigi
> 
> --
> 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


Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Jussi Lahtinen
Have you checked what the collection contains, when the system slows down?
Maybe the containing strings are longer than what you expect? Or maybe
there are more elements than you expect?
How much the running program takes memory, when things get slow?


Jussi

On Thu, May 25, 2017 at 8:21 PM, PICCORO McKAY Lenz <mckaygerh...@gmail.com>
wrote:

> hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7 intel
>
> well complete history its that many days before i run several times gambas
> without close it, but in none moment used collections..
>
> today only with project where i used collections gambas get slower after
> some hours...
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-25 10:59 GMT-04:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
>
> > Collection requires more memory than string array, so maybe your box is
> > just swapping, because of low memory?
> >
> >
> > Jussi
> >
> > On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz <
> > mckaygerh...@gmail.com>
> > wrote:
> >
> > > there are the piece of code and here there's no secret:
> > >
> > > Public Function getItems() As Collection
> > >
> > >   Dim $items As New Collection
> > >   Dim itema, itemb as String = "something"
> > >
> > >   $items.Add($itema, "item1")
> > >   $items.Add($itemb, "item2")
> > >   $items.Add(2, "cuantos")
> > >
> > >   Return $items
> > >
> > > End
> > >
> > > here the previous code "bad programed" and when i swicht to collection
> > > gambas ide get slower after some time, the code was:
> > >
> > > Public Function getItems() As String[]
> > >
> > >   Dim $items As New String[]
> > >   Dim itema, itemb as String = "something"
> > >
> > >   $items.Add($itema)
> > >   $items.Add($itemb)
> > >
> > >   Return $items
> > >
> > > End
> > >
> > > the gambas ide and the OS was not shutdown during 40 days, also the
> > gambas
> > > ide was not quit in this period, and in that period i run the huge data
> > > code of the 3 odbc bug with 10 registers, after change the code to
> > > collection  (each change are little before test) thje ide gambas get
> slow
> > > and does not run well..
> > >
> > > this happened to my other partners in the job... i test also in debian
> > > jeesie and happened same!
> > >
> > > i noted that when alone user said something its like "nothigs its
> > happened,
> > > its just bad programer"
> > >
> > > will need other to reports, but these other do not have time to make a
> > > little project and report that..
> > >
> > > sqlite was severi broken until gambas 3.6 and must be rewrite for
> gambas
> > > 3.8
> > >
> > > now in gamba 3.9 ther's some doc-online problems with cache and some
> > memory
> > > manage problems..
> > >
> > > but for not specialized programmers its very difficult to debug, find
> and
> > > report LIKE THE QT problem..
> > >
> > >
> > >
> > > Lenz McKAY Gerardo (PICCORO)
> > > http://qgqlochekone.blogspot.com
> > >
> > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen <jussi.lahti...@gmail.com>:
> > >
> > > > Impossible to say anything without seeing the code, which causes the
> > > > problem.
> > > >
> > > >
> > > > Jussi
> > > >
> > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> > > > mckaygerh...@gmail.com
> > > > > wrote:
> > > >
> > > > > i change the odbc code for huge data to transport only two objects
> > > with a
> > > > > string, and i noted that gambas before hangs sometimes... so i
> > > discovered
> > > > > that when i used collections the memory management are very bad..
> > > > >
> > > > > should i send a bug or where i start to see why this happened or
> its
> > > only
> > > > > happened only to me!
> > > > >
> > > > >
> > > > > Lenz McKAY Gerardo (PICCORO)
> > > > > http://qgqlochekone.blogspot.com
> > > > > 
> > > > > --
> > > > >

Re: [Gambas-user] when i used collections on my code, gambas get hangs!

2017-05-25 Thread Jussi Lahtinen
Collection requires more memory than string array, so maybe your box is
just swapping, because of low memory?


Jussi

On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz <mckaygerh...@gmail.com>
wrote:

> there are the piece of code and here there's no secret:
>
> Public Function getItems() As Collection
>
>   Dim $items As New Collection
>   Dim itema, itemb as String = "something"
>
>   $items.Add($itema, "item1")
>   $items.Add($itemb, "item2")
>   $items.Add(2, "cuantos")
>
>   Return $items
>
> End
>
> here the previous code "bad programed" and when i swicht to collection
> gambas ide get slower after some time, the code was:
>
> Public Function getItems() As String[]
>
>   Dim $items As New String[]
>   Dim itema, itemb as String = "something"
>
>   $items.Add($itema)
>   $items.Add($itemb)
>
>   Return $items
>
> End
>
> the gambas ide and the OS was not shutdown during 40 days, also the gambas
> ide was not quit in this period, and in that period i run the huge data
> code of the 3 odbc bug with 10 registers, after change the code to
> collection  (each change are little before test) thje ide gambas get slow
> and does not run well..
>
> this happened to my other partners in the job... i test also in debian
> jeesie and happened same!
>
> i noted that when alone user said something its like "nothigs its happened,
> its just bad programer"
>
> will need other to reports, but these other do not have time to make a
> little project and report that..
>
> sqlite was severi broken until gambas 3.6 and must be rewrite for gambas
> 3.8
>
> now in gamba 3.9 ther's some doc-online problems with cache and some memory
> manage problems..
>
> but for not specialized programmers its very difficult to debug, find and
> report LIKE THE QT problem..
>
>
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen <jussi.lahti...@gmail.com>:
>
> > Impossible to say anything without seeing the code, which causes the
> > problem.
> >
> >
> > Jussi
> >
> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz <
> > mckaygerh...@gmail.com
> > > wrote:
> >
> > > i change the odbc code for huge data to transport only two objects
> with a
> > > string, and i noted that gambas before hangs sometimes... so i
> discovered
> > > that when i used collections the memory management are very bad..
> > >
> > > should i send a bug or where i start to see why this happened or its
> only
> > > happened only to me!
> > >
> > >
> > > 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
> > >
> > 
> > --
> > 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
>
--
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 Jussi Lahtinen
Please post the replies to the list, so that Benoit will see them. I don't
know enough about the topic.


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

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

2017-05-24 Thread Jussi Lahtinen
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.


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 :
>
> > 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 
> :
> >
> > > 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
>
--
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] when i used collections on my code, gambas get hangs!

2017-05-24 Thread Jussi Lahtinen
Impossible to say anything without seeing the code, which causes the
problem.


Jussi

On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz  wrote:

> i change the odbc code for huge data to transport only two objects with a
> string, and i noted that gambas before hangs sometimes... so i discovered
> that when i used collections the memory management are very bad..
>
> should i send a bug or where i start to see why this happened or its only
> happened only to me!
>
>
> 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
>
--
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 Jussi Lahtinen
Can you both send Xorg.0.log (usually in /var/log/)?


Jussi

On Mon, May 15, 2017 at 5:01 PM, Fernando Cabral <
fernandojosecab...@gmail.com> wrote:

> 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 :
>
> > 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
>
--
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] String[].Find finds nothing

2017-05-10 Thread Jussi Lahtinen
This works only for sorted array. Example you could take the maximum index
of your array, divide it by two and look which side of the array the
searched string could be.

Let's say you have array of 1000 elements and you are looking for "Chr". If
sMyArray[500] begins with "M", then you should look only first half of the
array. Or you could narrow the possibilities even more by dividing the 500
by two. Now if sMyArray[250] begins with "B", you know you just have to
search between indexes 250 - 500, or narrow it even further.

I hope you got the idea.


Jussi



On Wed, May 10, 2017 at 11:04 PM, Matti <matti.e...@vodafone.de> wrote:

> Jussi, could you please explain?
> Yes, I have to match the beginning of the string - but what means a
> "heuristic guess for the index"?
>
> Am 10.05.2017 um 21:25 schrieb Jussi Lahtinen:
> > If you need to match only the beginning of the string, you could sort the
> > array and then make heuristic guess for the index.
> >
> >
> > Jussi
> >
> > On Wed, May 10, 2017 at 10:18 PM, Matti <matti.e...@vodafone.de> wrote:
> >
> >> Yes. But as I don't know [iIndex], I have to iterate through the (huge)
> >> array with 'For...Next'.
> >> I hoped to make it faster with 'Find'.
> >>
> >> Am 10.05.2017 um 20:59 schrieb Jussi Lahtinen:
> >>> For that use; String.InStr(sYourArray[iIndex], "Chr")
> >>>
> >>>
> >>> Jussi
> >>>
> >>>
> >>> On Wed, May 10, 2017 at 9:24 PM, Matti <matti.e...@vodafone.de> wrote:
> >>>
> >>>> Oh yes, oh yes!
> >>>> Thank you, Jorge.
> >>>> I always thought, Value could also be part of a string.
> >>>>
> >>>> Am 10.05.2017 um 19:08 schrieb Jorge Carrión:
> >>>>> Wiki says: "Returns the position of the first occurrence of Value in
> >> the
> >>>>> array."
> >>>>> You must search for a Value of the array.
> >>>>>
> >>>>> In your array there isn't a Value "Chr", that is what you search, so
> >>>> always
> >>>>> returns -1
> >>>>>
> >>>>>
> >>>>> Best Regars
> >>>>>
> >>>>> 2017-05-10 18:57 GMT+02:00 Matti <matti.e...@vodafone.de>:
> >>>>>
> >>>>>> I tried to search an array with the 'Find' function instead of
> >>>>>> 'For...Next' and 'InStr'.
> >>>>>>
> >>>>>> The wiki says:
> >>>>>> "String[].Find (gb)
> >>>>>> Function Find ( Value As String [ , Mode As Integer, Start As
> Integer
> >> ]
> >>>> )
> >>>>>> As Integer
> >>>>>> Returns the position of the first occurrence of Value in the array.
> >>>>>> If Value cannot be found, -1 is returned."
> >>>>>>
> >>>>>> But I can do what I want, I always get '-1'. No positive result
> ever.
> >>>>>>
> >>>>>> Attached is a tiny project that should show this behaviour.
> >>>>>> Where is my mistake?
> >>>>>> Thanks in advance
> >>>>>> Matti
> >>>>>>
> >>>>>> Gambas 3.9.2
> >>>>>>
> >>>>>> 
> >>>>>> --
> >>>>>> 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-us

Re: [Gambas-user] String[].Find finds nothing

2017-05-10 Thread Jussi Lahtinen
If you need to match only the beginning of the string, you could sort the
array and then make heuristic guess for the index.


Jussi

On Wed, May 10, 2017 at 10:18 PM, Matti <matti.e...@vodafone.de> wrote:

> Yes. But as I don't know [iIndex], I have to iterate through the (huge)
> array with 'For...Next'.
> I hoped to make it faster with 'Find'.
>
> Am 10.05.2017 um 20:59 schrieb Jussi Lahtinen:
> > For that use; String.InStr(sYourArray[iIndex], "Chr")
> >
> >
> > Jussi
> >
> >
> > On Wed, May 10, 2017 at 9:24 PM, Matti <matti.e...@vodafone.de> wrote:
> >
> >> Oh yes, oh yes!
> >> Thank you, Jorge.
> >> I always thought, Value could also be part of a string.
> >>
> >> Am 10.05.2017 um 19:08 schrieb Jorge Carrión:
> >>> Wiki says: "Returns the position of the first occurrence of Value in
> the
> >>> array."
> >>> You must search for a Value of the array.
> >>>
> >>> In your array there isn't a Value "Chr", that is what you search, so
> >> always
> >>> returns -1
> >>>
> >>>
> >>> Best Regars
> >>>
> >>> 2017-05-10 18:57 GMT+02:00 Matti <matti.e...@vodafone.de>:
> >>>
> >>>> I tried to search an array with the 'Find' function instead of
> >>>> 'For...Next' and 'InStr'.
> >>>>
> >>>> The wiki says:
> >>>> "String[].Find (gb)
> >>>> Function Find ( Value As String [ , Mode As Integer, Start As Integer
> ]
> >> )
> >>>> As Integer
> >>>> Returns the position of the first occurrence of Value in the array.
> >>>> If Value cannot be found, -1 is returned."
> >>>>
> >>>> But I can do what I want, I always get '-1'. No positive result ever.
> >>>>
> >>>> Attached is a tiny project that should show this behaviour.
> >>>> Where is my mistake?
> >>>> Thanks in advance
> >>>> Matti
> >>>>
> >>>> Gambas 3.9.2
> >>>>
> >>>> 
> >>>> --
> >>>> 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
> >>>
> >> 
> >> --
> >> 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
>
> 
> --
> 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


Re: [Gambas-user] String[].Find finds nothing

2017-05-10 Thread Jussi Lahtinen
For that use; String.InStr(sYourArray[iIndex], "Chr")


Jussi


On Wed, May 10, 2017 at 9:24 PM, Matti  wrote:

> Oh yes, oh yes!
> Thank you, Jorge.
> I always thought, Value could also be part of a string.
>
> Am 10.05.2017 um 19:08 schrieb Jorge Carrión:
> > Wiki says: "Returns the position of the first occurrence of Value in the
> > array."
> > You must search for a Value of the array.
> >
> > In your array there isn't a Value "Chr", that is what you search, so
> always
> > returns -1
> >
> >
> > Best Regars
> >
> > 2017-05-10 18:57 GMT+02:00 Matti :
> >
> >> I tried to search an array with the 'Find' function instead of
> >> 'For...Next' and 'InStr'.
> >>
> >> The wiki says:
> >> "String[].Find (gb)
> >> Function Find ( Value As String [ , Mode As Integer, Start As Integer ]
> )
> >> As Integer
> >> Returns the position of the first occurrence of Value in the array.
> >> If Value cannot be found, -1 is returned."
> >>
> >> But I can do what I want, I always get '-1'. No positive result ever.
> >>
> >> Attached is a tiny project that should show this behaviour.
> >> Where is my mistake?
> >> Thanks in advance
> >> Matti
> >>
> >> Gambas 3.9.2
> >>
> >> 
> >> --
> >> 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
> >
>
> 
> --
> 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


Re: [Gambas-user] Editing still blocked

2017-05-09 Thread Jussi Lahtinen
Maybe some window manager setting steal focus from the editor..?


Jussi

On Wed, May 10, 2017 at 2:01 AM, Jussi Lahtinen <jussi.lahti...@gmail.com>
wrote:

> I can edit the project here without problems. Very strange. It's not
> specific to Linux Mint 18.10, used Gambas version or the opened project.
> So, it must be something with your settings... Have you tried to change
> Gambas settings, like turning on/off "format on load & save"?
> Is there some desktop applications, which could interference Gambas in
> some way? Clipboard manager? Can you try to turn these off and test to
> relaunch Gambas again?
>
>
> Jussi
>
> On Wed, May 10, 2017 at 1:38 AM, Fernando Cabral <
> fernandojosecab...@gmail.com> wrote:
>
>> 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
>>>>>> ___

Re: [Gambas-user] Editing still blocked

2017-05-09 Thread Jussi Lahtinen
I can edit the project here without problems. Very strange. It's not
specific to Linux Mint 18.10, used Gambas version or the opened project.
So, it must be something with your settings... Have you tried to change
Gambas settings, like turning on/off "format on load & save"?
Is there some desktop applications, which could interference Gambas in some
way? Clipboard manager? Can you try to turn these off and test to relaunch
Gambas again?


Jussi

On Wed, May 10, 2017 at 1:38 AM, Fernando Cabral <
fernandojosecab...@gmail.com> wrote:

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

Re: [Gambas-user] Editing still blocked

2017-05-09 Thread Jussi Lahtinen
Also what happens if you try to edit the project with regular text editor,
instead of Gambas?


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.
>>
>>
>
--
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 Jussi Lahtinen
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.
>
>
--
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 Jussi Lahtinen
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
>
>
--
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 Jussi Lahtinen
Anyone else using Gambas on Linux Mint 18.1 ? Everything working? Issues?

Can you please go to Gambas IDE Menu "?" --> "System informations" and copy
& paste the result, if you can.
If you have virtual machine set up, maybe you could try some other system /
work there meanwhile.


Jussi

On Mon, May 8, 2017 at 4:20 PM, Fernando Cabral <
fernandojosecab...@gmail.com> wrote:

> 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 <+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.
>
>
--
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 Jussi Lahtinen
So Gambas IDE does *not* claim the project is locked, but you simply cannot
edit anything. Can you give your system information?


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  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 :
>
> > 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
>
--
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] Math Operation

2017-05-05 Thread Jussi Lahtinen
Ah, of course...


Jussi

On Fri, May 5, 2017 at 9:57 AM, Fabien Bodard <gambas...@gmail.com> wrote:

> yes the copy function is not necessary in this case as [a,b,c] return
> a new instance on each call
>
> 2017-05-04 17:21 GMT+02:00 cheikh diabang <cheikhdiab...@hotmail.com>:
> > I think the copy is not necessary. I want just access in one element on
> return array. Thank for your help
> >
> >
> > ____
> > De : Jussi Lahtinen <jussi.lahti...@gmail.com>
> > Envoyé : jeudi 4 mai 2017 15:12
> > À : mailing list for gambas users
> > Objet : Re: [Gambas-user] Math Operation
> >
> > Declare the function as:
> >
> > Function calcul_coefficients(x As Integer, y As Integer, degre As
> Integer)
> > As Float[]
> >
> > Then return the answer as (this is for convenience as copy returns new
> > object instance):
> >
> > Return [a, b, c].Copy()
> >
> >
> >
> >
> > Jussi
> >
> > On Thu, May 4, 2017 at 5:41 PM, cheikh diabang <
> cheikhdiab...@hotmail.com>
> > wrote:
> >
> >> Hi ! i wanna know how recover return value of function in my case.
> >>
> >> I do that as below, but he said object expected
> >>
> >>  calcul_coefficients(j, iy_v_c_w, 2)
> >>coeff_v_c_w_0 = calcul_coefficients[2]
> >>coeff_v_c_w_1 = calcul_coefficients[1]
> >>coeff_v_c_w_2 = calcul_coefficients[0]
> >>
> >> Thank for help.
> >>
> >> 
> >> De : cheikh diabang <cheikhdiab...@hotmail.com>
> >> Envoyé : jeudi 4 mai 2017 10:42
> >> À : mailing list for gambas users
> >> Objet : Re: [Gambas-user] Math Operation
> >>
> >> Thank you very much Julio Sanchez . Its working fine
> >>
> >>
> >> 
> >> De : Julio Sanchez <jusabejus...@gmail.com>
> >> Envoyé : jeudi 4 mai 2017 10:30
> >> À : mailing list for gambas users
> >> Objet : Re: [Gambas-user] Math Operation
> >>
> >> cheikh diabang:
> >>
> >> In addition if you are going to return several float values, you should
> put
> >> float[]...
> >>
> >> Function calcul_coefficients(x As Integer, y As Integer, degre As
> Integer)
> >> As Float[]
> >>
> >> 
> >> Dim ArrayABC as new float[]
> >> 
> >> .
> >> ArrayABC.add(A)
> >> ArrayABC.add(B)
> >> ArrayABC.add(C)
> >>
> >> Return ArrayABC
> >>
> >>
> >>
> >> Regards,
> >>
> >> Julio
> >>
> >> 2017-05-04 12:13 GMT+02:00 Tobias Boege <tabo...@gmail.com>:
> >>
> >> > On Thu, 04 May 2017, cheikh diabang wrote:
> >> > > hello. i have write this code below on gambas 3.9.2 and when i run
> >> that,
> >> > he indique syntaxe error
> >> > >
> >> > >
> >> > > Function calcul_coefficients(x As Integer, y As Integer, degre As
> >> > Integer) As Float
> >> > >   'Dim ak As Float
> >> > >   Dim a As Float
> >> > >   Dim b As Float
> >> > >   Dim c As Float
> >> > >   Dim nbr_coef As Integer
> >> > >   Dim k As Integer
> >> > >
> >> > >   nbr_coef = degre + 1
> >> > >For k = 0 To degre
> >> > > If k == 0
> >> > > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1 * y) - (x * (y *
> (x ^
> >> > (- (k - 1)) / ((nbr_coef * x ^ 2) - ((x) ^ 2))
> >> > >   c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1 * y) - (x * (y *
> (x ^
> >> > (- (k - 1)) / ((nbr_coef * x ^ 2) - ((x) ^ 2))
> >> > > Else If k == 1
> >> > >   b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1 * y) - (x * (y
> * (x
> >> > ^ (- (k - 1)) / ((nbr_coef * x ^ 2) - ((x) ^ 2))
> >> > > Else If k == 2
> >> > >   a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1 * y) - (x * (y
> * (x
> >> > ^ (- (k - 1)) / ((nbr_coef * x ^ 2) - ((x) ^ 2))
> >> > > Else
> >> > >   Message.Info("unavalaible coefficients")
> >> > >Next
> >> > >Return a, b, c
> >> > > End
> >> > >
> >> > >
> >> 

Re: [Gambas-user] Math Operation

2017-05-04 Thread Jussi Lahtinen
Declare the function as:

Function calcul_coefficients(x As Integer, y As Integer, degre As Integer)
As Float[]

Then return the answer as (this is for convenience as copy returns new
object instance):

Return [a, b, c].Copy()




Jussi

On Thu, May 4, 2017 at 5:41 PM, cheikh diabang 
wrote:

> Hi ! i wanna know how recover return value of function in my case.
>
> I do that as below, but he said object expected
>
>  calcul_coefficients(j, iy_v_c_w, 2)
>coeff_v_c_w_0 = calcul_coefficients[2]
>coeff_v_c_w_1 = calcul_coefficients[1]
>coeff_v_c_w_2 = calcul_coefficients[0]
>
> Thank for help.
>
> 
> De : cheikh diabang 
> Envoyé : jeudi 4 mai 2017 10:42
> À : mailing list for gambas users
> Objet : Re: [Gambas-user] Math Operation
>
> Thank you very much Julio Sanchez . Its working fine
>
>
> 
> De : Julio Sanchez 
> Envoyé : jeudi 4 mai 2017 10:30
> À : mailing list for gambas users
> Objet : Re: [Gambas-user] Math Operation
>
> cheikh diabang:
>
> In addition if you are going to return several float values, you should put
> float[]...
>
> Function calcul_coefficients(x As Integer, y As Integer, degre As Integer)
> As Float[]
>
> 
> Dim ArrayABC as new float[]
> 
> .
> ArrayABC.add(A)
> ArrayABC.add(B)
> ArrayABC.add(C)
>
> Return ArrayABC
>
>
>
> Regards,
>
> Julio
>
> 2017-05-04 12:13 GMT+02:00 Tobias Boege :
>
> > On Thu, 04 May 2017, cheikh diabang wrote:
> > > hello. i have write this code below on gambas 3.9.2 and when i run
> that,
> > he indique syntaxe error
> > >
> > >
> > > Function calcul_coefficients(x As Integer, y As Integer, degre As
> > Integer) As Float
> > >   'Dim ak As Float
> > >   Dim a As Float
> > >   Dim b As Float
> > >   Dim c As Float
> > >   Dim nbr_coef As Integer
> > >   Dim k As Integer
> > >
> > >   nbr_coef = degre + 1
> > >For k = 0 To degre
> > > If k == 0
> > > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1 * y) - (x * (y * (x ^
> > (- (k - 1)) / ((nbr_coef * x ^ 2) - ((x) ^ 2))
> > >   c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1 * y) - (x * (y * (x ^
> > (- (k - 1)) / ((nbr_coef * x ^ 2) - ((x) ^ 2))
> > > Else If k == 1
> > >   b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1 * y) - (x * (y * (x
> > ^ (- (k - 1)) / ((nbr_coef * x ^ 2) - ((x) ^ 2))
> > > Else If k == 2
> > >   a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1 * y) - (x * (y * (x
> > ^ (- (k - 1)) / ((nbr_coef * x ^ 2) - ((x) ^ 2))
> > > Else
> > >   Message.Info("unavalaible coefficients")
> > >Next
> > >Return a, b, c
> > > End
> > >
> > >
> > > But i see nothing as error. I need help please
> >
> > Look closer:
> >
> > >   a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1 * y) - (x * (y * (x
> > ^ (- (k - 1)) / ((nbr_coef * x ^ 2) - ((x) ^ 2))
> > >   2(1 / (k + 1))
> >
> > Since "2" is not a function, you have to write
> >
> >   2*(1 / (k + 1))
> >
> > 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
> Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user>
> lists.sourceforge.net
> To see the collection of prior postings to the list, visit the Gambas-user
> Archives. Using Gambas-user: To post a message to all the list members ...
>
>
> Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user>
> lists.sourceforge.net
> To see the collection of prior postings to the list, visit the Gambas-user
> Archives. Using Gambas-user: To post a message to all the list members ...
>
>
> >
> 
> --
> 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 Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user>
> lists.sourceforge.net
> To see the collection of prior postings to the list, visit the Gambas-user
> Archives. Using Gambas-user: To post a message to all the list members ...
>
>
> Gambas-user Info Page - lists.sourceforge.net 

Re: [Gambas-user] Time, date & Settings

2017-03-27 Thread Jussi Lahtinen
OK, forgot to update Gambas on my virtual machine...

But now there is another problem. I'm in UTC+3, and when I write the time
(example 12:00) with CStr(), it will be 15:00 in the settings file. Now if
I go to UTC-0, I will get the alarm when my computer clock shows 15:00. I
want it always assume local time.

Example if I have meeting in UK at 31.3.2017 12:00, I want simply set the
alarm for 31.3.2017 12:00, independently of where I'm now. The device I'm
using should worry about timezones not me.


Jussi

On Mon, Mar 27, 2017 at 6:15 PM, Benoît Minisini <
gam...@users.sourceforge.net> wrote:

> Le 27/03/2017 à 17:02, Jussi Lahtinen a écrit :
> >> Using the development version, you have to store your date in the
> >> settings file using CStr(), and read it using CDate().
> >>
> >
> > That does not work if the settings file is written in English and opened
> in
> > Finnish. CDate() just fails silently (returns null).
> >
> >
> > Jussi
>
> It should not with the development version, as CDate() and CStr() only
> use the american format.
>
> --
> 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


Re: [Gambas-user] Time, date & Settings

2017-03-27 Thread Jussi Lahtinen
> Using the development version, you have to store your date in the
> settings file using CStr(), and read it using CDate().
>

That does not work if the settings file is written in English and opened in
Finnish. CDate() just fails silently (returns null).


Jussi
--
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] Time, date & Settings

2017-03-26 Thread Jussi Lahtinen
Hi!
I'm trying to figure way to handle time & date correctly, ignoring timezone
and "daylight saving" adjustments. I can't get things work nicely with
settings component as it does not save the value in universal format.
Example if you write settings in English and open them in Finnish, you will
get silent error:

Print Settings[sPath &/ "Date", Null]
03/27/2017 12:00:00  <--- this is correct time

Print Val(Settings[sPath &/ "Date", Null])
This returns nothing, not even error.

Print CDate(Settings[sPath &/ "Date", Null])
27.03.2017 09.00.00  <--- this is incorrect time

This is from the GAlarm project and I want to ignore timezones etc, because
I want the alarms go off accordingly to the computer clock. IE alarm set to
go off at 12:00 should go off, if computer clock shows 12:00. Not at 09:00,
because I cannot know what timezone the user meant, so I always assume
local.


Do I have to write seconds, minutes, hours, etc separately in the settings
or could this be fixed somehow..?



Jussi
--
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 know when a form runnig was invoked from another or not?

2017-03-24 Thread Jussi Lahtinen
Or you need to make wrapper class that requires show method to take
parameter.


Jussi

On Fri, Mar 24, 2017 at 4:08 PM, Fabien Bodard <gambas...@gmail.com> wrote:

> Hey Lenz... Indirectly the value is passed, if it's not by you , it's
> by the interpreter or class. There is no sorcery.
>
> well then when you read the code ... it's not the parent that show the
> form but the form itself.
>
> MyForm . ShowModal
>
> Where showmodal is the function from MyForm.
>
> The only way is to pass the value via a Static Function. Or/and via an
> extend on the _New function (the constructor)
>
>
>
> 2017-03-24 14:58 GMT+01:00 Jussi Lahtinen <jussi.lahti...@gmail.com>:
> > I don't understand why it is bad to pass value to indicate where the form
> > was invoked..?
> >
> >
> > Jussi
> >
> > On Fri, Mar 24, 2017 at 3:41 PM, PICCORO McKAY Lenz <
> mckaygerh...@gmail.com>
> > wrote:
> >
> >> arrgg fatherform way and "bambino" flag way are in fact same..
> >>
> >> both suggestions need a value to pass and already know was the form
> father!
> >> i need a way that i dont know the name of the "father form".. only that
> the
> >> parent will raise if any..
> >>
> >> Lenz McKAY Gerardo (PICCORO)
> >> http://qgqlochekone.blogspot.com
> >>
> >> 2017-03-16 7:59 GMT-04:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>:
> >>
> >> > like it more the "FatherForm" way, many thanks!
> >> >
> >> > Lenz McKAY Gerardo (PICCORO)
> >> > http://qgqlochekone.blogspot.com
> >> >
> >> > 2017-03-16 6:56 GMT-04:00 Gianluigi <bagone...@gmail.com>:
> >> >
> >> >> And do such a thing?
> >> >>
> >> >> Regards
> >> >> Gianluigi
> >> >>
> >> >> 2017-03-16 4:32 GMT+01:00 adamn...@gmail.com <adamn...@gmail.com>:
> >> >>
> >> >> > On Wed, 15 Mar 2017 17:32:08 -0400
> >> >> > PICCORO McKAY Lenz <mckaygerh...@gmail.com> wrote:
> >> >> >
> >> >> > > how to know when a form runnig was invoked from another or not?
> >> >> > >
> >> >> > > i mean:
> >> >> > >
> >> >> > > case1:
> >> >> > >
> >> >> > > form1 have a click and inside invoke form2.show()
> >> >> > >
> >> >> > > case2:
> >> >> > >
> >> >> > > only form2 are lauch
> >> >> > >
> >> >> > > now in form2 i have a button with a event Click:
> >> >> > >
> >> >> > > if are invoked from form1 i need to show anagin form1 and close
> >> form2
> >> >> > > if not, onlt close form2 and terminate program
> >> >> > >
> >> >> > > i' was lookin for ojbect management on gambas wiki and only found
> >> Me;;
> >> >> > > Last;; and Me.Parent but none of them helpme...
> >> >> > >
> >> >> > > 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
> >> >> >
> >> >> > Surely this is as simple as using Run() instead of show in the
> >> "parent"
> >> >> > form? Set a flag in the Run method to indicate that the "child" was
> >> >> invoked
> >> >> > from the "parent" and react accordingly.
> >> >> > e.g.
> >> >> > CHILD FORM
> >> >> > Public Sub Run()
> >> >> >   $bIamBambino=true
> >> >> >   Me.show() ' or  ShowModal or whatever...
> >> >> > End
> >> >> >
> >> >> > Public Form_Close()
> >> >> >   If $bIamBambino then
> >

Re: [Gambas-user] how to know when a form runnig was invoked from another or not?

2017-03-24 Thread Jussi Lahtinen
I don't understand why it is bad to pass value to indicate where the form
was invoked..?


Jussi

On Fri, Mar 24, 2017 at 3:41 PM, PICCORO McKAY Lenz 
wrote:

> arrgg fatherform way and "bambino" flag way are in fact same..
>
> both suggestions need a value to pass and already know was the form father!
> i need a way that i dont know the name of the "father form".. only that the
> parent will raise if any..
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-03-16 7:59 GMT-04:00 PICCORO McKAY Lenz :
>
> > like it more the "FatherForm" way, many thanks!
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> >
> > 2017-03-16 6:56 GMT-04:00 Gianluigi :
> >
> >> And do such a thing?
> >>
> >> Regards
> >> Gianluigi
> >>
> >> 2017-03-16 4:32 GMT+01:00 adamn...@gmail.com :
> >>
> >> > On Wed, 15 Mar 2017 17:32:08 -0400
> >> > PICCORO McKAY Lenz  wrote:
> >> >
> >> > > how to know when a form runnig was invoked from another or not?
> >> > >
> >> > > i mean:
> >> > >
> >> > > case1:
> >> > >
> >> > > form1 have a click and inside invoke form2.show()
> >> > >
> >> > > case2:
> >> > >
> >> > > only form2 are lauch
> >> > >
> >> > > now in form2 i have a button with a event Click:
> >> > >
> >> > > if are invoked from form1 i need to show anagin form1 and close
> form2
> >> > > if not, onlt close form2 and terminate program
> >> > >
> >> > > i' was lookin for ojbect management on gambas wiki and only found
> Me;;
> >> > > Last;; and Me.Parent but none of them helpme...
> >> > >
> >> > > 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
> >> >
> >> > Surely this is as simple as using Run() instead of show in the
> "parent"
> >> > form? Set a flag in the Run method to indicate that the "child" was
> >> invoked
> >> > from the "parent" and react accordingly.
> >> > e.g.
> >> > CHILD FORM
> >> > Public Sub Run()
> >> >   $bIamBambino=true
> >> >   Me.show() ' or  ShowModal or whatever...
> >> > End
> >> >
> >> > Public Form_Close()
> >> >   If $bIamBambino then
> >> > ' do whatever
> >> >   Else
> >> >' close the application
> >> >   EndIF
> >> >
> >> > PARENT FORM
> >> >   Public Sub SomeButton_Click()
> >> > Dim fBambono as New FWhatever
> >> > fBambino.Run()
> >> >   End
> >> >
> >> > 
> >> >
> >> > bb
> >> >
> >> > --
> >> > B Bruen 
> >> >
> >> > 
> >> > --
> >> > 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
> >>
> >>
> >
> 
> --
> 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


Re: [Gambas-user] EXEC progress

2017-03-22 Thread Jussi Lahtinen
> Yes, a progress bar or even just a label showing which operation is
> current.
> hProc = Exec ["ffmpeg", "-i", sPathTape, etc, etc] Wait For Output As
> "Process"
>
> with
>
> Public Sub Process_Read()
> Dim sData As String
> Read #Last, sData, -255
>Label1.caption = sData
> End
>
> doesn't show anything
>

As expected, you declared the process for output, not for input..?



Jussi
--
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] EXEC progress

2017-03-22 Thread Jussi Lahtinen
Process_Read simply reads output of the executed program. Is something
lost, which is expected to show up?


Jussi

On Wed, Mar 22, 2017 at 7:01 PM, bill-lancaster 
wrote:

> I have a series of EXEC command line jobs.  The whole lot takes some time
> and
> it would be nice to have some indication of progress.
> Because there's a series of EXECs, I'm using the 'Wait' function.  In this
> case it seems that 'Process_Read' doesn't report what's happening.
> Any advice would be welcome
>
> Gambas 3.9.2
> Kubuntu 14.04
>
>
>
> --
> View this message in context: http://gambas.8142.n7.nabble.
> com/EXEC-progress-tp58674.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
>
--
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] class

2017-02-16 Thread Jussi Lahtinen
OK, so the signature is not updated... have you tried to recompile all from
Gambas IDE? Is that library or regular Gambas project?


Jussi

On Fri, Feb 17, 2017 at 4:08 AM, Shane <buster6se...@gmail.com> wrote:

> Looks Like Pic1
>
> and then pic2
>
>
>
>
> On 17/02/17 13:04, Jussi Lahtinen wrote:
>
>> Looks like this..?
>>
>>
>> Jussi
>>
>> On Fri, Feb 17, 2017 at 3:32 AM, Shane <buster6se...@gmail.com> wrote:
>>
>> No the ide only crashed once
>>>
>>> so my class declaration looks like this
>>>
>>> and when i try ti instantiate my class
>>>
>>>
>>> so no matter what i but into the class new these four variables remain
>>>
>>> On 17/02/17 12:15, Jussi Lahtinen wrote:
>>>
>>>> AFAIK Gambas does not reverse your changes... do you mean the IDE
>>>> crashes
>>>> every time you try to make the changes?
>>>> Can you send the source?
>>>>
>>>>
>>>> Jussi
>>>>
>>>> On Fri, Feb 17, 2017 at 3:03 AM, Shane <buster6se...@gmail.com> wrote:
>>>>
>>>> So gambas ide crashed while editing source code now i can't change a
>>>>> class _new definition it keeps
>>>>>
>>>>> going back to the original one i had even though i deleted the
>>>>> definition and deleted the class file and reinstalled gambas any ideas
>>>>>
>>>>>
>>>>> thanks Shane
>>>>>
>>>>>
>>>>>
>>>>> 
>>>>> --
>>>>> 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
>>>>
>>> 
>>> --
>>> 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
>>
>
>
> 
> --
> 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


Re: [Gambas-user] class

2017-02-16 Thread Jussi Lahtinen
Looks like this..?


Jussi

On Fri, Feb 17, 2017 at 3:32 AM, Shane <buster6se...@gmail.com> wrote:

> No the ide only crashed once
>
> so my class declaration looks like this
>
> and when i try ti instantiate my class
>
>
> so no matter what i but into the class new these four variables remain
>
> On 17/02/17 12:15, Jussi Lahtinen wrote:
> > AFAIK Gambas does not reverse your changes... do you mean the IDE crashes
> > every time you try to make the changes?
> > Can you send the source?
> >
> >
> > Jussi
> >
> > On Fri, Feb 17, 2017 at 3:03 AM, Shane <buster6se...@gmail.com> wrote:
> >
> >> So gambas ide crashed while editing source code now i can't change a
> >> class _new definition it keeps
> >>
> >> going back to the original one i had even though i deleted the
> >> definition and deleted the class file and reinstalled gambas any ideas
> >>
> >>
> >> thanks Shane
> >>
> >>
> >>
> >> 
> >> --
> >> 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
>
> 
> --
> 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


Re: [Gambas-user] class

2017-02-16 Thread Jussi Lahtinen
AFAIK Gambas does not reverse your changes... do you mean the IDE crashes
every time you try to make the changes?
Can you send the source?


Jussi

On Fri, Feb 17, 2017 at 3:03 AM, Shane  wrote:

> So gambas ide crashed while editing source code now i can't change a
> class _new definition it keeps
>
> going back to the original one i had even though i deleted the
> definition and deleted the class file and reinstalled gambas any ideas
>
>
> thanks Shane
>
>
>
> 
> --
> 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


Re: [Gambas-user] What has happened to Dialog.SaveFile ??

2017-02-12 Thread Jussi Lahtinen
What the hell... I have changed it from Message.Question() in some
mysterious way! How did I do that..!
But apparently that part of code is now obsolete anyway, since the dialog
does the question for me.

So, problem solved. Thanks!


Jussi


On Sun, Feb 12, 2017 at 10:39 PM, Benoît Minisini <
gam...@users.sourceforge.net> wrote:

> Le 12/02/2017 à 21:16, Jussi Lahtinen a écrit :
> > Hi!
> > See the attached project. Go to menu; File --> Backup / Restore Alarms
> and
> > select Backup alarms.
> > If the file exist already I will get strange translation (not the one I
> > made!). And when I try to over write the existing file I will get "too
> many
> > arguments".
> >
> > This used to work, but not with some of the latest revisions. Not sure
> when
> > it broke / changed..?
> >
> >
> > Jussi
> >
>
> Message.Info() only takes 2 arguments. So how could you run it with 3
> arguments and have no error?
>
> --
> 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


[Gambas-user] What has happened to Dialog.SaveFile ??

2017-02-12 Thread Jussi Lahtinen
Hi!
See the attached project. Go to menu; File --> Backup / Restore Alarms and
select Backup alarms.
If the file exist already I will get strange translation (not the one I
made!). And when I try to over write the existing file I will get "too many
arguments".

This used to work, but not with some of the latest revisions. Not sure when
it broke / changed..?


Jussi


[System]
Gambas=3.9.90 r8089
OperatingSystem=Linux
Kernel=3.19.0-32-generic
Architecture=x86_64
Distribution=Linux Mint 17.3 Rosa
Desktop=CINNAMON
Theme=Gtk
Language=en_US.UTF-8
Memory=7984M

[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+2=libgtk-x11-2.0.so.0.2400.23
GTK+3=libgtk-3.so.0.1000.8
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
QT4=libQtCore.so.4.8.6
QT5=libQt5Core.so.5.2.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
CLUTTER_BACKEND=x11
CLUTTER_IM_MODULE=xim
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-7pABt6Xr9V,guid=b36d88bd8a27ba4901be0e2958a07d67
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
DESKTOP_SESSION=cinnamon
DISPLAY=:0.0
GB_GUI=gb.qt4
GB_PROFILE_MAX=1000
GDMSESSION=cinnamon
GDM_XSERVER_LOCATION=local
GIO_LAUNCHED_DESKTOP_FILE=/Desktop/Gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=4813
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-rpEEXv
GPG_AGENT_INFO=/run/user/1000/keyring-rpEEXv/gpg:0:1
GTK_IM_MODULE=xim
HOME=
INSIDE_NEMO_PYTHON=
LANG=en_US.UTF-8
LC_ADDRESS=fi_FI.UTF-8
LC_IDENTIFICATION=fi_FI.UTF-8
LC_MEASUREMENT=fi_FI.UTF-8
LC_MONETARY=fi_FI.UTF-8
LC_NAME=fi_FI.UTF-8
LC_NUMERIC=fi_FI.UTF-8
LC_PAPER=fi_FI.UTF-8
LC_TELEPHONE=fi_FI.UTF-8
LC_TIME=en_US.UTF-8
LOGNAME=
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
MDMSESSION=cinnamon
MDM_LANG=en_US.UTF-8
MDM_XSERVER_LOCATION=local
PAPERSIZE=letter
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=
QT4_IM_MODULE=xim
QT_STYLE_OVERRIDE=gtk
SESSION_MANAGER=local/:@/tmp/.ICE-unix/1569,unix/:/tmp/.ICE-unix/1569
SHELL=/bin/bash
SSH_AGENT_PID=1701
SSH_AUTH_SOCK=/run/user/1000/keyring-rpEEXv/ssh
TEXTDOMAIN=im-config
TEXTDOMAINDIR=/usr/share/locale/
TZ=:/etc/localtime
USER=
USERNAME=
WINDOWPATH=8
XAUTHORITY=/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_CURRENT_DESKTOP=X-Cinnamon
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=5a45fa29109f0ee2389b1b0355283726-1486912871.89276-1888404302
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_ID=c1
XDG_VTNR=8
XMODIFIERS=@im=none


GAlarm-0.2.17.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] Sort multidimensional array?

2017-02-07 Thread Jussi Lahtinen
Not sure what you are trying to do, but you just keep on adding things to
array B, and then adding the same reference of that array to array A.
Maybe you instead wanted this:

  Dim A As New Variant[]
  Dim B As Variant[]
  Dim i, j As Integer

  For i = 0 To 9
B = New Variant[]
For j = 0 To 19
  B.Add(i)
Next
A.Add(B)
  Next


Jussi


On Tue, Feb 7, 2017 at 9:28 PM, novae_lithic  wrote:

> Dim A As New Variant[]
>   Dim B As New Variant[]
>   Dim i, j As Integer
>
>   For i = 0 To 9
> For j = 0 To 19
>   B.Add((ij))
> Next
> A.Add(B)
>   Next /
>
--
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 execute file or bash script packaged inside Gambas

2017-01-29 Thread Jussi Lahtinen
Well I would avoid executing things in /tmp and there is no sense in asking
root permission to put it in /usr/bin or so.
So directory in home is good option. System.User.Home gives you what you
need.


Jussi



On Mon, Jan 30, 2017 at 1:07 AM, Marty <mmcg29...@frontier.com> wrote:

> Jussi,
>
>
>
> Sounds simple enough. Should the tmp directory be in the user’s home
> directory? If so is there a way Gambas can “know” the user id in order to
> create the directory?
>
> No, the files do not need to be deleted after each run if not in
> /tmp/Gambas.1000…
>
>
>
> Marty
>
>
>
> From: Jussi Lahtinen [via Gambas] [mailto:ml-node+
> s8142n58356...@n7.nabble.com]
> Sent: Sunday, January 29, 2017 3:08 PM
> To: Marty <mmcg29...@frontier.com>
> Subject: Re: how-to execute file or bash script packaged inside Gambas
>
>
>
> I suggest you copy the script and the python executables in dedicated
> folder made by your program.
> Example your program could create:
>
> /home/MyProgram/scripts
> Or
> /home/MyProgram/tmp
>
> And copy things there for the execution. Do you really need to remove the
> scripts after execution or are they executed every time with the program?
>
>
>
> Jussi
>
>
>
> On Sun, Jan 29, 2017 at 4:22 PM, Marty <[hidden email]> wrote:
>
>
> > Jussi,
> >
> >
> >
> > I’ve found the answer. The file 1.tmp in directory /tmp/Gambas.1000/3092
> > is created at the time COPY "update.sh" TO sTempscript is executed.
> Because
> > it is dynamically created it does not have execute permissions. After
> > executing COPY "update.sh" TO sTempscript set the permissions on
> > sTempscript to rwx using chmod. Then the script will run.
> >
> >
> >
> > Now that caused another problem. The script passes parameters to a python
> > program that is still in the project directory not in /tmp…. This causes
> a
> > file not found error when the script executes. These temp files remain
> > after the program exits. I should delete the when the program exits.
> >
> >
> >
> > What should I do to work around the file not found error?
> >
> >
> >
> > Marty
> >
> >
> >
> > From: Jussi Lahtinen [via Gambas] [mailto:ml-node+
> > [hidden email]]
> > Sent: Saturday, January 28, 2017 4:36 PM
> > To: Marty <[hidden email]>
> > Subject: Re: how-to execute file or bash script packaged inside Gambas
> >
> >
> >
> > Literally here: /tmp/gambas.1000/3092/1.tmp
> > Read the error message carefully!
> >
> > Paste this into terminal and it will open the folder for you:
> > nemo /tmp/gambas.1000/3092/
> >
> >
> > Jussi
> >
> > On Sat, Jan 28, 2017 at 11:25 PM, Marty <[hidden email]> wrote:
> >
> >
> > > Jussi,
> > >
> > >
> > >
> > > Thanks for your response. I’ve checked /etc/fstab and There are only
> two
> > > partitions the main and swap. I do not see any entry for a tmp
> partition.
> > > I’m running Gambas 3.91 under Mint17.1.
> > >
> > > Did a routine install when I installed it right from the CD.
> > >
> > >
> > >
> > > Bennoit,
> > >
> > >
> > >
> > > Thanks for your suggestion also. All of the files in the project
> > directory
> > > have execute permissions set. Where is /tmp/Gambas located? I look at
> its
> > > permissions.
> > >
> > >
> > >
> > > Marty
> > >
> > >
> > >
> > > From: Jussi Lahtinen [via Gambas] [mailto:ml-node+s8142n58348h5@
> > > n7.nabble.com]
> > > Sent: Saturday, January 28, 2017 12:38 PM
> > > To: Marty <[hidden email]>
> > > Subject: Re: how-to execute file or bash script packaged inside gambas
> > >
> > >
> > >
> > > Also does the tmp partition have noexec set (check /etc/fstab)? It's
> > common
> > > way to harden Linux installation, but people kind of abuses /tmp...
> it's
> > > not for executions.
> > >
> > >
> > > Jussi
> > >
> > > On Sat, Jan 28, 2017 at 9:09 PM, Benoît Minisini <
> > > [hidden email]> wrote:
> > >
> > >
> > > > Le 28/01/2017 à 20:03, Benoît Minisini a écrit :
> > > > > Le 28/01/2017 à 18:07, Marty a écrit :
> > > > >> Want to run a script file packaged within the Gambas

Re: [Gambas-user] how-to execute file or bash script packaged inside Gambas

2017-01-29 Thread Jussi Lahtinen
I suggest you copy the script and the python executables in dedicated
folder made by your program.
Example your program could create:

/home/MyProgram/scripts
Or
/home/MyProgram/tmp

And copy things there for the execution. Do you really need to remove the
scripts after execution or are they executed every time with the program?



Jussi



On Sun, Jan 29, 2017 at 4:22 PM, Marty <mmcg29...@frontier.com> wrote:

> Jussi,
>
>
>
> I’ve found the answer. The file 1.tmp in directory /tmp/Gambas.1000/3092
> is created at the time COPY "update.sh" TO sTempscript is executed. Because
> it is dynamically created it does not have execute permissions. After
> executing COPY "update.sh" TO sTempscript set the permissions on
> sTempscript to rwx using chmod. Then the script will run.
>
>
>
> Now that caused another problem. The script passes parameters to a python
> program that is still in the project directory not in /tmp…. This causes a
> file not found error when the script executes. These temp files remain
> after the program exits. I should delete the when the program exits.
>
>
>
> What should I do to work around the file not found error?
>
>
>
> Marty
>
>
>
> From: Jussi Lahtinen [via Gambas] [mailto:ml-node+
> s8142n58350...@n7.nabble.com]
> Sent: Saturday, January 28, 2017 4:36 PM
> To: Marty <mmcg29...@frontier.com>
> Subject: Re: how-to execute file or bash script packaged inside Gambas
>
>
>
> Literally here: /tmp/gambas.1000/3092/1.tmp
> Read the error message carefully!
>
> Paste this into terminal and it will open the folder for you:
> nemo /tmp/gambas.1000/3092/
>
>
> Jussi
>
> On Sat, Jan 28, 2017 at 11:25 PM, Marty <[hidden email]> wrote:
>
>
> > Jussi,
> >
> >
> >
> > Thanks for your response. I’ve checked /etc/fstab and There are only two
> > partitions the main and swap. I do not see any entry for a tmp partition.
> > I’m running Gambas 3.91 under Mint17.1.
> >
> > Did a routine install when I installed it right from the CD.
> >
> >
> >
> > Bennoit,
> >
> >
> >
> > Thanks for your suggestion also. All of the files in the project
> directory
> > have execute permissions set. Where is /tmp/Gambas located? I look at its
> > permissions.
> >
> >
> >
> > Marty
> >
> >
> >
> > From: Jussi Lahtinen [via Gambas] [mailto:ml-node+s8142n58348h5@
> > n7.nabble.com]
> > Sent: Saturday, January 28, 2017 12:38 PM
> > To: Marty <[hidden email]>
> > Subject: Re: how-to execute file or bash script packaged inside gambas
> >
> >
> >
> > Also does the tmp partition have noexec set (check /etc/fstab)? It's
> common
> > way to harden Linux installation, but people kind of abuses /tmp... it's
> > not for executions.
> >
> >
> > Jussi
> >
> > On Sat, Jan 28, 2017 at 9:09 PM, Benoît Minisini <
> > [hidden email]> wrote:
> >
> >
> > > Le 28/01/2017 à 20:03, Benoît Minisini a écrit :
> > > > Le 28/01/2017 à 18:07, Marty a écrit :
> > > >> Want to run a script file packaged within the Gambas project. Tried
> > the
> > > >> method below.
> > > >>
> > > >> DIM sTempScript as String
> > > >>
> > > >> sTempScript = Temp$
> > > >>
> > > >> COPY "update.sh" TO sTempscript
> > > >>
> > > >> SHELL sTempScript WAIT
> > > >>
> > > >> Does not work for me. All of the python files are in the gambas
> > project
> > > >> directory and have execute permissions.
> > > >>
> > > >> The error is: /bin/sh:1:/tmp/gambas.1000/3092/1.tmp permission
> denied
> > > >>
> > > >> What do I change to allow the python programs to run? Is it the
> > project
> > > >> directory?
> > > >>
> > > >> Thanks,
> > > >> Marty
> > > >>
> > > >
> > > > Did you set execution rights on the shell file?
> > > >
> > >
> > > I mean on the copy. The permissions on the original file are ignored
> > > once you make an executable (they are all read-only and not
> executable).
> > >
> > > --
> > > Benoît Minisini
> > >
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites,

  1   2   3   4   5   6   7   8   9   10   >