Re: [Gambas-user] [Gambas-devel] Fwd: Cloned and edited. How do I get the changes staged, committed, and then uploaded to GitLab?

2017-08-21 Thread adamn...@gmail.com
And just in case you may be wondering why I am so bloody cranky.

I had a failed sale today in an auction about 600km away. This will cost me 
about $600 for the horse and about $2000 for transportation. At about a $250 
margin on the day this means that two of us will be eating sausages, at best, 
for the next 5 or six weeks. 

I am, not to put too fine a point on it, not REALLY BLOODY HAPPY about moving 
away from some, any, who cares, SVN based repo. 

I think at this stage I will be looking for another base development language.

So, "so long and thanks for all the fish".


 


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


Re: [Gambas-user] Class Implementing DBus Notifications

2017-08-20 Thread adamn...@gmail.com
On Sun, 20 Aug 2017 11:37:38 -0400
Tony Morehen  wrote:

> 1)  I tried to be as agnostic as possible.  The reference to the Gnome 
> developer's specification is there because it is the only one available 
> on the web.  
http://www.galago-project.org/specs/notification/0.9/index.html
seems to the one for the notify-osd "spec" but there is at least a 1.1 version 
around somewhere. Can't find it though.
> There is not even one on freedesktop.org.  It is my 
> understanding that modern DEs conform to that spec, including KDE, 
> Gnome, Cinnamon, XFCE etc.  If the server supports a current libnotify, 
> then is should support my code. Btw, I'm running Xfce on Manjaro.  Wrt 
 etc

cheers
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


[Gambas-user] More DBus queries - signals

2017-08-20 Thread adamn...@gmail.com
The wiki @ http://gambaswiki.org/wiki/doc/dbus#t9 says 
"...
The name of the event must be the normalized name of the interface, followed by 
an underscore and the normalized name of the signal.
The signal is emitted to the D-Bus bus by using the DBusApplication.Raise 
method.
..."

for the last few days I've been raising DBus signals simply by calling 
something like:

  Event Message(text As String, origin As String)
...
  DBus.Raise(Me, "Message", [msg.Text, "Self"])

 being a DBusObject child object
<"Message"> being the signal name as registered on the bus
 being the text parameter for the event as it is known inside the 
gambas code
<"Self"> being the origin parameter

This seems to be working fine. Am I doing something unsupported that is likely 
to disappear?

tia
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


Re: [Gambas-user] Class Implementing DBus Notifications

2017-08-20 Thread adamn...@gmail.com
On Sun, 20 Aug 2017 07:18:44 -0400
Tony Morehen  wrote:

> As promised, attached is a heavily commented class implementing DBus 
> Notifications.  It is a complete implementation of the specification.  
> There are two approaches to using the class:
> 
> 1) fill in the properties and call SendNotification:
> 
>  Dim hDbusNotify As New DbusNotify
>  hDbusNotify.Summary = "Device added:"
>  hDbusNotify.Body = "/dev" &/ device
>  hDbusNotify.FullPathToIcon = icon
>  hDbusNotify.Actions = [""]
>  notifyID = dbusNotify.SendNotification()
>  mount = UDisks2.Mount(device)
>  hDbusNotify.Summary = "Device mounted:"
>  hDbusNotify.Body = "/dev" &/ device & " to " & mount
>  hDbusNotify.Actions = ["browse=" & mount, "Browse"]
>  hints.Add(2, "urgency")
>  hDbusNotify.Hints = hints
>  hDbusNotify.Duration = 5000
>  notifyID = dbusNotify.SendNotification(notifyID)
> 
> 2) Use the Notify function directly:
> 
>  Dim hDbusNotify As New DbusNotify
>  Dim hints As New Collection
>  hints.Add("device.removed", "category")
>  hDbusNotify.Notify("Device removed:", "/dev" &/ device, icon, 
> [""], 0, hints, 5000)
> 
> DbusNotify raises 2 events:
> 
> Public Sub dbusNotify_ActionInvoked(iNotifyID As Integer, sActionKey As 
> String)
> 
>If Left(LCase(sActionKey), 7) = "browse=" Then
>  'want to ensure a trailing "/"
>  sActionKey = "file://" & Trim(Mid(sActionKey, 8) &/ " ")
>  Shell "xdg-open " & sActionKey
>Endif
> 
> End
> 
> Public Sub dbusNotify_NotificationClosed(iNotifyID As Integer, iReason 
> As Integer)
>  'Usually ignored
> End
> 

Thanks, for that Tony, some good stuff in there (the least of which is that 
damned "hints" collection!) Since my original post and everyones comments I 
have spent more time reading than doing. So a few comments (in the most 
sincerest mode possible).

1. We (gambas "we") should strive for agnosticism. This class is very dependent 
on some specific implementations of the so called gnome "standard" which is 
turn looks very much like the "specification" for the (lousy) notify-osd 
daemon. ("lousy" because it was dumbed down so far that even Shuttleworth could 
understand it.) Your class is dependent on the notification daemon that is 
running on a machine to a) use DBus messaging the way those (ahem) standards 
and specifications state.  DE's that use non-compliant notification daemons are 
not supported by your code.  This is not a biggy, But one has to take care. 
Secondly, you are relying on the daemon DBus interface being called exactly 
"org.freedesktop.Notifications" which is fine for all the common ones but I did 
find one today (might have been for IceWM - can't remember?) that registers as 
"org.freedesktop.notify".

2. (Very specific) the code at line 114: result.Add(sa[3], 
"SpecificationVersion") is very specific to notify-osd. All the so called 
standards only refer to 3 required items being returned from 
GetServerInformation.

3. This "duration" parameter seems to be supported/interpreted/used/abused 
willy nilly by different daemons. In general, it "appears" that a value of 0 
tends to indicate a non-disappearing notification (but then again sometimes 
not). It "appears" that a value of -1 is generally used to do whatever the 
daemon designers thought might be a good idea. It appears that other values may 
or may not be used as a timeout period.  In short, 
apart from the actual libnotify library (which after all is only going to pass 
that value on to the display daemon) its' use is rarely "the timeout before a 
notification is closed" ( without user interaction).

4. One thing I did find that was quite good and apparently generally broadly 
implemented is the use of the so called "standard" desktop icon names e.g. 
instead of passing a fully qualified path to a specific icon you can send one 
of these "names". For example, setting IconPath to, say, "task-due" will use 
the task-due picture depending on the users actual active icon set. The names 
are at: 
https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html#names

5. Question: In the (little) amount of playing around today I am having trouble 
with the "replaces_id" parameter for the notify method, i.e your $iLastNotifyID 
returned by the Notify function.  All I ever seem to get back is zero?? The 
Ubuntu spec (for notify-osd) seems to be pretty quiet about this value, but 
then again they refer to it elsewhere as being of significant importance? any 
clues?

Finally, I have spent a couple of hours today building a skeleton component 
version of what you have put in one class.  Essentially, it exports two classes 
"CNotify" and "CMessage", CNotify is intended to be a facade to some (currently 
one) lower level worker classes that do the actual talking to the daemon. The 
"currently one" is the 

Re: [Gambas-user] Mailinglist

2017-08-19 Thread adamn...@gmail.com
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


[Gambas-user] Balloons, everywhere but when I don't want them.

2017-08-18 Thread adamn...@gmail.com
Probably obscure, but I'll give it a go anyway...

This project has about 80 or so Timers running at any given time, when they 
fire some stuff is updated and then a balloon pops up to alert the user that 
some update has happened.  All fantastic.  

And an added bonus is that the balloon pops up on any virtual desktop. Which is 
even more fantastic as far as I am concerned and exactly what I have been 
looking for for some years.

What is not so great is that when this happens on the desktop where the app is 
running, not only does the balloon appear, but the actual form that produces 
the balloon gets popped up to the top of the desktop. Which is infuriating if 
the user is actually in another app on that desktop. Even further, the project 
itself has a bunch of popup forms where the user can enter manual updates of 
some data. When the balloon appears (and the main form) the popup is lowered 
and you cannot bring it back to the top layer.

I'll try a more concrete example (or two), to see if I can explain what I am 
trying to do a bit more clearly.

I have my email client (sylpheed) running, every so often it goes and checks 
for incoming mail.  If there is some new mail a boxy looking thing appears at 
the bottom right corner of the screen telling me I have new mail. No matter 
which desktop I am actually on at the time.  A bit later that boxy thing fades 
away. It doesn't interrupt what I am doing in any way, nor does it pop up the 
main email client screen.
Similarly, on my laptop I have Batti running which when I'm getting a bit low 
on battery power pops up a message in the desktop panel telling me to plug the 
damn thing in. Again this does not interrupt what I'm doing.

So, how can I achieve the same effect in gambas?

tia
bruce

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


Re: [Gambas-user] Switching to GitLab

2017-08-17 Thread adamn...@gmail.com
This might help some folks: 
https://www.atlassian.com/git/tutorials/atlassian-git-cheatsheet

b

On Thu, 17 Aug 2017 09:46:32 +0200
Christof Thalhofer  wrote:

> Hi,
> 
> Am 16.08.2017 um 18:19 schrieb Karl Reinl:
> 
> > not knowing git, and not having read anything about GitLab,
> > following these instructions seems to run oK! But this is a > 35 MB
> > download. Do I have to do that every time, if I want to get the newest
> > release (I know the example is for the stable Version)?
> > What is to do to get only the changes like with svn ? Any short HowTo
> > somewhere ?
> 
> Sorry for all, but downloading Gambas each time is quite silly (and bad
> to Gitlab also).
> 
> Normally one would clone the repo first, then work with it and just
> fetch the differences:
> 
> Clone:
> 
> git clone https://gitlab.com/gambas/gambas
> 
> Then you are automatically on the master branch, which is bleeding edge
> development.
> 
> Fetch only differences since last clone/pull:
> 
> cd gambas
> git pull
> 
> And that's all. If your current branch is master then you always are on
> bleeding edge!
> 
> (do configure/make/install as usual)
> 
> But as you now have the complete repository on your computer you can
> easyly switch to another version, you can checkout tags and also branches:
> 
> For actual stable you would do:
> 
> git checkout v3.10.0
> 
> For an older one:
> 
> git checkout v3.7.1
> 
> I dont know much about compiling gambas, but I think, that a "make
> clean" could be neccessary between compiler runs.
> 
> Alles Gute
> 
> Christof Thalhofer
> 
> -- 
> Dies ist keine Signatur
> 


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


Re: [Gambas-user] Switching to GitLab

2017-08-16 Thread adamn...@gmail.com
On Wed, 16 Aug 2017 18:19:12 +0200
Karl Reinl  wrote:

> Salut,
> 
> not knowing git, and not having read anything about GitLab,
> following these instructions seems to run oK! But this is a > 35 MB
> download. Do I have to do that every time, if I want to get the newest
> release (I know the example is for the stable Version)?
> What is to do to get only the changes like with svn ? Any short HowTo
> somewhere ?
> 
> 
> -- 
> Amicalement
> Charlie
> 

 Oh hell, do I ever feel your pain!
But it is 3am here and I must go to bed.
I'll try and write something sensible in the morning, but yes there is an 
answer (and amazingly it is "fairly simple").

b

p.s. The damn thing is just a damn stupid version control system (VCS) Like you 
I was expecting something like SVN but with bells, whistles and kitchen fairies!
 
-- 
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


[Gambas-user] Gottit!

2017-08-16 Thread adamn...@gmail.com
So far anyway. ~-)

Aha!  So the Git is pretty stupid! (Which is what Torvalds said in the first 
place.)

Now I get it.  It's just a version controller (with added carrots).  And there 
I was looking for a 3 month learning curve, severe pain and high blood 
pressure. 

Sheesh! Seven thousand lines of "pseudo man" pages later ... git help wtf? etc  
I finally found this : 
  Having a distributed architecture, Git is an example of a DVCS (hence 
Distributed Version Control System). Rather than have only one single place 
for the full version history of the software as is common in once-popular 
version control systems like CVS or Subversion (also known as SVN), in Git, 
every developer's working copy of the code is also a repository that can 
contain the full history of all changes.

Hang on! DVCS? CVS?  Oh my blessed little red cotton socks! I remember them. 
(The anachronyms, not the socks - must look for them tomorrow.) They were 
werry, werry good at hunting wabbits  ... back in the day.

Bloody hell, the damn thing is just a CVS with big tits and those sparkly 
things on it (them). Ah .. the Pretzel ...

but now I must to bed. A'voir.

b

p.s. The only people who may be able to understand a word of this gibberish are 
obviously Australian,


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


Re: [Gambas-user] Switching to GitLab

2017-08-14 Thread adamn...@gmail.com
On Mon, 14 Aug 2017 14:34:51 +0200
Gianluigi  wrote:

> I tried to install from SVN in a notebook where I had Gambas from PPA, I
> get this:
> make:*** No specified target and no makefile found. Stop.

What was the exact "make" command that you entered?



> Who kindly explains step by step how can I have the trunk in my Notebook
> (Ubuntu 14.04.01) by compiling Gambas?
> 
> Regards
> Gianluigi
> 
> 2017-08-14 11:11 GMT+02:00 Gianluigi :
> 
> > Hi Jussi,
> > thanks for the suggestion, but once I had problems and since I did so I
> > did not have any more problems.
> > So if I understand well, I can continue updating Gambas trunk from SVN.
> > Is that so?
> >
> > Regards
> > Gianluigi
> >
> > 2017-08-13 23:24 GMT+02:00 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
> >>
> >
> >
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


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


Re: [Gambas-user] How to stop a control raising events?

2017-08-13 Thread adamn...@gmail.com
Thanks Tobi!
b

On Mon, 14 Aug 2017 00:18:46 +0200
Tobias Boege <tabo...@gmail.com> wrote:

> On Mon, 14 Aug 2017, adamn...@gmail.com wrote:
> > (A quicky!)
> > 
> > Wasn't there a way to temporarily stop a control raising events, 
> > MyControl.Lock or somesuch? My memory fails!
> > tia
> > bruce
> 
> Object.Lock(x)
> 
> -- 
> "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


-- 
B Bruen <adamn...@gnail.com (sort of)>

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


[Gambas-user] How to stop a control raising events?

2017-08-13 Thread adamn...@gmail.com
(A quicky!)

Wasn't there a way to temporarily stop a control raising events, MyControl.Lock 
or somesuch? My memory fails!
tia
bruce

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


Re: [Gambas-user] Switching to GitLab

2017-08-13 Thread adamn...@gmail.com
On Sun, 13 Aug 2017 15:19:05 +0200
"Adrien Prokopowicz"  wrote:
(in response to Gianluigi)
> git clone https://gitlab.com/gambas/gambas.git # Will create a new  "gambas" 
> directory

   # Download a clone of the Gambas source repository to 
   git clone https://gitlab.com/gambas/gambas.git 

or perhaps even 
   # Copy the Gambas git repository HEAD from GitLab to a local path
   git clone --single-branch https://gitlab.com/gambas/gambas.git 

But we also need a way to clone at a particular tag, say 3.10.0, I dont know 
how to do that.

bruce

p.s. some markdown I have writ follows:
 [Downloading a local "working copy"]
If you want to update your Gambas copy frequently as the developers add 
features and correct those seldom 
found bugs then you will want to create a "working copy" of the repository on 
your own machine (or local network 
drive or whatever).
To do this you can still access the repository as an "anonymous" user, but you 
will need to have **git** installed on
your system.\
 *~(Add info on installing git if it's not in the distro).~*

The command to use is:
# Copy the Gambas git repository from GitLab to a local path
git clone --single-branch https://gitlab.com/gambas/gambas.git 
(where  is where you want the clone installed.)

This will copy the entire history of the **latest Gambas version** (~not the 
latest Release~) to the  and set up the git infrastrucure
to support future updates. So, if you want to just download at specific release 
...

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


[Gambas-user] Messaging between arbitrary objects

2017-08-11 Thread adamn...@gmail.com

Since it's soon to be the busiest time of our year (the spring thoroughbred 
auctions) I thought I'd just redesign our entire auction management system 
(haha).

On any day we may have up to 10 or so auctions in progress at the same time. 
Some online (conducted by us or others) and some live (using our sale manager, 
which talks back to us) (and some we have no idea about).  Last year, a change 
in the industry permitted a particular horse to be entered in more than one 
auction, to be withdrawn from subsequent lots if sold in a previous lot.  You 
can imagine the mess this caused, both in setting schedules and in 
communicating between the auction houses.  Luckily, last year the idea didn't 
really catch on in a big way, but over the year interest has been growing.  
Suffice to say we have a system that allows us to watch for sales of this type 
and manage them (at least in the auctions we "control"). The current way we do 
it is to have multiple "auction" monitors running as separate invocations of 
the monitor project.  The only communication between them is via the human 
operators who have to watch each lot ... etc etc.
Basically what I'm trying to do is have a single monitor that shows the 
progress of sales across a number of active auctions, sending messages between 
arbitrary pairs (or multiples) when a "marked" lot is either sold or passed in 
by an auction where it is the "early" one.  So we have a main "controller" that 
launches a number of auction monitors and a particular monitor knows when a 
"marked" lot is offered and then sold or passed in.  I can raise an event in 
the monitor, caught by the controller when another monitor object needs to be 
told to allow the sale of a "marked" lot to proceed or to withdraw it.  The 
main controller then has to work out which of the other monitor instances is 
interested in this particular horse and then pass it a message via a public 
routine call.  This is to put it mildly, bloody difficult and damned messy.

What I'd like to do is have each monitor catch events from some other monitor 
both of whom are handling a "marked" lot. The controller when it invokes each 
monitor is able to indicate such marked pairs to each auction monitor (I have 
that bit worked out).  The "conversation" I envisage would go along these lines:

  AuctionA
AuctionB
1. When a marked lot is coming up for sale, i.e. in the next 5 lots offered 
| -->| "Lock lot X"
2. When the horse is offered and sold in the first auction  
| -->| "Withdraw lot X"
3. When the horse is passed in at the first auction 
   | -->| "Unlock lot X"
4. Exception: when a certain time period has passed since message 1 
   | <- | "Query lot X"

  | 
--->| "Response (lock or unlock) lot X"
5. Exception: no response to query  
  | 
> Alert controller

(It's a bit more complex, but that is the general sense of it.)

So, is there a way that I can tell the "AuctionB" monitor to listen for events 
raised by the "AuctionA" monitor?  I thought I might be able to use the gb.qt4 
"Watcher" for this but I can't seem to get it to happen.  Is that the way to 
go? Any other ways or ideas.

tia
(and thanks for reading this very long post.)

bruce

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


Re: [Gambas-user] Totally off topic: Jean-Paul Belmondo

2017-07-25 Thread adamn...@gmail.com
On Tue, 25 Jul 2017 13:50:50 +0200
Karl Reinl  wrote:

> not Yves Montand. In The Wage of Fear (Lohn der Angst) (Le Salaire de la
> Peur), from 1953

but you are getting damned close.  I thought it might have been Grand Prix 
(1966) but no. You are in the correct genre for sure ... I probably got onto 
Belmondo from Un Homme et une Femme (ah Anouke) but I am sure that it has 
something to do with cars?
-- 
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


Re: [Gambas-user] Totally off topic: Jean-Paul Belmondo

2017-07-25 Thread adamn...@gmail.com
On Tue, 25 Jul 2017 07:31:59 -0400
PICCORO McKAY Lenz  wrote:

> well a way to find, see fiml list and see plot of each one..
 
do you know how many films this guy has done?


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


Re: [Gambas-user] Totally off topic: Jean-Paul Belmondo

2017-07-25 Thread adamn...@gmail.com
On Tue, 25 Jul 2017 13:50:50 +0200
Karl Reinl  wrote:

> The Wage of Fear
Damn, I thought you may have got it, but no.


(p.s. folks, sorry about this but it is driving me mad)

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


Re: [Gambas-user] basic web interactions

2017-07-20 Thread adamn...@gmail.com
On Fri, 21 Jul 2017 11:01:47 +1200
Olmec Sinclair - cleanweb  wrote:

> Hi,
> 
> I am developing a gambas application and I want to talk to a web server, 
> passing some parameters and getting an XML response back.
> 
> I have cobbled together a way of doing this by using the QT.WebView 
> container and setting the URL with the request and catching the content 
> when loading is complete but this feels like a messy way of doing it.
> 
> What approach would others suggest?
> 
gb.net.curl - which has the advantage of being able to get the file either 
synchronously or asynchronously.
b
> 
> I see the Gambas development environment has a software farm that offers 
> a user registration and login this is the type of thing I am trying 
> to achieve. What approach is used here?
> 
> Input much appreciated.
> 
> 
> Olmec
> 
> 
> -- 
> *Olmec* Sinclair Web Design and Development
> Phone: 021 586 664 www.cleanweb.co.nz 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


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


Re: [Gambas-user] vb code

2017-07-14 Thread adamn...@gmail.com
Guessing without information about what a vb private type is and where and why 
you would use it , but there is a thing called a Struct in Gambas, maybe that 
is what you are looking for.
b

On Fri, 14 Jul 2017 17:27:44 +1000
Shane  wrote:

> I have some vb code i want to convert to gambas and it uses this code
> 
> Private Type ID3V22HDR
> frameName1 As String * 3
> frameSize1 As Byte
> frameSize2 As Byte
> frameSize3 As Byte
> End Type
> 
> what would be the best way to convert this to gambas?
> 
> 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


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


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

2017-07-03 Thread adamn...@gmail.com
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


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

2017-07-01 Thread adamn...@gmail.com
On Fri, 30 Jun 2017 08:41:49 -0400
PICCORO McKAY Lenz <mckaygerh...@gmail.com> wrote:

> i get more than 30 minutes, due i must parse to a low end machine, not to
> your 4 cores, 16Gb ram super power machine.. i'm taking about a 1G ram and
> single core 1,6GHz  atom cpu
> 
> i need to convert from Result/cursor to other due the problem of the odbc
> lack of cursor/count ..
> 
> i thinking about use a sqlite memory structure, how can i force it?
> documentation said "If Name is null, then a memory database is opened." for
> sqlite..
> 
> so if i used a memory structure can be a good idea? *tested yesterday took
> about 10 minutes but i dont know if i have a problem in my gambas
> installation!*
> 
> 
> 
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> 2017-06-30 4:09 GMT-04:00 adamn...@gmail.com <adamn...@gmail.com>:
(SNIP)
> > Here's the timing output.
> >
> > 17:05:59:706Connecting to DB
> > 17:06:00:202Loading Data< so 406 mSec to establish the db
> > connection
> > 17:06:31:417556502 rows < so 31,215 mSec to execute the query
> > and return the result
> > 17:06:31:417Unmarshalling result started
> > 17:06:44:758Unmarshalling completed 556502 rows processed  <---  so 
> > 13,341 mSec to unmarshall the result into an array of structs
> >
> > So, it took roughly 31 seconds to execute the query and return the result
> > of half a million rows.
> > To unmarshall that result into the array took just over 13 seconds. The
> > unmarshalling is fairly well a straight field by field copy.
> > (Also I must add, I ran this on a local db copy on  my old steam driven
> > laptop, 32 bits and about 1G of memory.)
> >
(CORRECTED)
> > That's about 42 rows per mSec unmarshalling time or about 0.024 mSec per 
> > row.
>>

Well, 30 minutes does sound very excessive. Are you certain that it's the 
"unmarshalling" that is taking the time and not the execution of the query 
itself? That is why I separated the timings in my figures above.
Regarding your machine capability, my laptop is very similar to what you 
described (Single core, 1GB memory). The only real difference I can see is a 
1.7GHtz maximum clock speed.
So I don't think that's the cause of the difference.  If I imagine your query 
on this PC I would expect about 20 * 0.024 mSec to unmarshall it, say about 
5 seconds.

Regarding using the memory based SQLite database approach, I wouldn't think 
that it would help. I don't know the actual "size" of the data returned by your 
query, but I would expect that you would get a major memory hit and a lot of 
paging by going that way.  I have used the memory SQLite database several times 
for manipulating several hundred or so records and it is quite fast but 
wouldn't even consider it for a dataset that large (and I guess it would be 
just adding another layer of processing to handle your query Result).

By the way, where is your source database? Is it on your machine or on a 
networked machine?  I had one of the lads in our office try the same thing that 
I did, but using the master database on our LAN. It took a bit longer, 38 
seconds to execute the query rather than 31 so as I expected, network access to 
the database plays a fairly large part. ~20% for a query returning a set that 
large.  

Query optimisation?  We tend to use the Connection.Exec approach here for large 
queries as it let's us optimise both the database and the SQL for maximum 
benefit rather than rely on the
Gambas driver generated queries. (That's not a criticism by the way, its just 
that when dealing with large datasets our results have been better.)  For 
example, in the query I have been
talking about and using the timing, we create a temporary index on a boolean 
column that is one of the WHERE clause criteria, with the NULLS FIRST option 
set on the index.  Since we
are looking to select all the rows from that table where a flag (the 
"reconciled" column)  has not been set, they are all at the front of that 
index. As soon as the back end query engine hits an index entry for a row that 
has been reconciled it "knows" that it has finished. At the end of the query we 
just delete that index again.  Before I did that the query execution time was 
several minutes and now we are down to about 5 seconds (for the "real" query on 
the "real" database which returns up to 1 rows). 

So again, I would looking for other causes of that massive time if I were you.

rgrds
b

-- 
B Bruen <adamn...@gnail.com (sort of)>

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


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

2017-06-30 Thread adamn...@gmail.com
On Thu, 29 Jun 2017 18:57:29 -0400
PICCORO McKAY Lenz  wrote:

> can i convert directly or more faster than copy each row, a Result from
> database to a collection or a VArian matrix?
> 
> i'm taking about 200.000 rows in a result... the problem its that the odbc
> db object support only cursor with forward only..
> 
> so with a matrix or a collection i cant emulate the cursor behaviour
> 
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com

Interesting.

Well the row by row copy is how we do it here. I added some quick timer Prints 
to a program we run each day to verify that the 
database updates done overnight were "clean".
The data loaded is a fairly complex join of several tables, the transactional 
table is 754,756 rows today and the master table is 733,723 rows long and the 
transactional data is compared to the master data to test a set of possible 
inconsistencies. ( The actual query returned a set of the transaction and 
master records that were actioned overnight - this generally returns about 
5,000 to 10,000 rows - so I jigged it to return the pairs that were not 
actioned overnight thereby getting row counts of the sizes you are talking 
about.) So the jigged query just returned 556,000 rows.  Here's the timing 
output.
 
17:05:59:706Connecting to DB 
17:06:00:202Loading Data< so 406 mSec to establish the db connection
17:06:31:417556502 rows < so 31,215 mSec to execute the query and 
return the result
17:06:31:417Unmarshalling result started
17:06:44:758Unmarshalling completed 556502 rows processed  <---  so 13,341 
mSec to unmarshall the result into an array of structs

So, it took roughly 31 seconds to execute the query and return the result of 
half a million rows.
To unmarshall that result into the array took just over 13 seconds. The 
unmarshalling is fairly well a straight field by field copy.
(Also I must add, I ran this on a local db copy on  my old steam driven laptop, 
32 bits and about 1G of memory.)

That's about 42 mSec unmarshalling time per row.
I don't think that is too bad. From my perspective it is the query that is 
eating up my life, not the unmarshalling.

What sort of times to you get?

b

(p.s. the query has been optimised until its' eyes bled. ) 

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


Re: [Gambas-user] gridview contents x, y are default richtext or text?

2017-06-29 Thread adamn...@gmail.com


On Thu, 29 Jun 2017 09:43:04 -0400
PICCORO McKAY Lenz  wrote:

> hi Jorge, i already know why the usage of the richtext in the pagegrid..
> the question are why when i access to .text got nothing.. i modified the
> code to set both: .richtext content and .text content.. but only the
> richtext content are got ...
> 
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> 2017-06-29 4:42 GMT-04:00 Jorge Carrión :
> 
> > I wrote that software. It is available in the Farm with the name of
> > pageGrid.
> > The Richtext property is used because the control allows the rows to be
> > automatically set according to the length of their content and the
> > available column width (control's wordWrap property), and that can only be
> > calculated using RichText.
> > The function that do this is in pGrid class:
> >
> > Public Sub calcHeights()
> >
> >   Dim n, i, f As Integer
> >
> >   For n = 0 To Me.Rows.Max
> > If Me.Rows[n].Height <> Me.Rows.Height Then
> >   Me.Rows[n].Height = Me.Rows.Height
> >   f = 0
> >   For i = 0 To Me.Columns.Max
> >  f = Max(f, Me[n, i].Font.RichTextHeight(Me[n, i].RichText,
> > Me.Columns[i].width))
> >   Next
> >   Me.Rows[n].Height = f + (Me.Rows.Height - Me.Font.Height - 1)
> > Endif
> >   Next
> >
> > End
> >
> > As you can see, with text property of gridCells it's impossible to do this.
> >
> > Best Regars.
> >
> >
> >
> >
> >
> > 2017-06-29 0:14 GMT+02:00 PICCORO McKAY Lenz :
> >
> > > no no, i mean that i want to use the .text only but does not got any
> > here,
> > > only by using .richtext.. ...
> > >
> > > Lenz McKAY Gerardo (PICCORO)
> > > http://qgqlochekone.blogspot.com
> > >
> > > 2017-06-28 14:05 GMT-04:00 Charlie :
> > >
> > > > OK sorry I deleted that post once I reread your post.
> > > >
> > > > Have a look at this solution
> > > >
> > > > GUITest.tar 
> > > >
> > > >
> > > >
> > > > -
> > > > Check out www.gambas.one
> > > > --
> > > > View this message in context: http://gambas.8142.n7.nabble.
> > > > com/gridview-contents-x-y-are-default-richtext-or-text-
> > > tp59568p59571.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
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech 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


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


Re: [Gambas-user] gridview contents x, y are default richtext or text?

2017-06-28 Thread adamn...@gmail.com
Just because something has a similar name doesn't mean it is the same thing.

Your original question makes as much sense as: "How come when I access the Text 
property of a GridView, it doesn't give me the value of the Alignment property?"

V_GridView_Cell.Text and _GridView_Cell.RichText are not the same property.

b


On Wed, 28 Jun 2017 18:14:54 -0400
PICCORO McKAY Lenz  wrote:

> no no, i mean that i want to use the .text only but does not got any here,
> only by using .richtext.. ...
> 
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> 2017-06-28 14:05 GMT-04:00 Charlie :
> 
> > OK sorry I deleted that post once I reread your post.
> >
> > Have a look at this solution
> >
> > GUITest.tar 
> >
> >
> >
> > -
> > Check out www.gambas.one
> > --
> > View this message in context: http://gambas.8142.n7.nabble.
> > com/gridview-contents-x-y-are-default-richtext-or-text-tp59568p59571.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


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


Re: [Gambas-user] gambas preprocesor can also work in forms?

2017-06-21 Thread adamn...@gmail.com
(Seeing as we are going`to perpetually top post)

On Wed, 21 Jun 2017 10:22:47 -0430
PICCORO McKAY Lenz  wrote:

> nono..no in the respective class of the form.. i mean specifically for the
> form..

I don't understand, a form is just a class with a special metadata file that 
describes its' layout.
Are you are talking about the xxx.form file?  If so, then it is that metadata 
file. It is not code. So it cannot have preprocessor commands in it. ???

> this due sometimes i get errors in forms when i moved to thoer gambas in
> other computer:

Again, what errors? Where? When? What is different about one computer  to the 
next.
And what exactly are you moving? Source, executable archives, installable 
packages???

> Unknown symbol 'Editor' in class 'FForm' it the error with your test
> attached

Now you have me confused very. There is no reference to an Editor or indeed a 
FForm in the file I attached?

???

--
Check out the vibrant tech community on one of the world's most
engaging tech 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 preprocesor can also work in forms?

2017-06-21 Thread adamn...@gmail.com
On Wed, 21 Jun 2017 09:45:27 -0430
PICCORO McKAY Lenz  wrote:

> the preprocesor are great http://gambaswiki.org/wiki/lang/.if but also can
> be used in forms?
> 
> currently i get work in class files, but for forms how can i do that
> verifications?
> 
> 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

Test attached
b
-- 
B Bruen 


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


Re: [Gambas-user] Logging errors in apps running as Application.Daemon

2017-06-21 Thread adamn...@gmail.com
On Wed, 21 Jun 2017 13:51:11 +0200
Tobias Boege <tabo...@gmail.com> wrote:

> On Wed, 21 Jun 2017, adamn...@gmail.com wrote:
> > On Wed, 21 Jun 2017 02:17:27 -0700 (MST)
> > alexchernoff <alexchern...@hotmail.com> wrote:
> > 
> > > Peace to all,
> > > 
> > > I have some Gb projects that are in Application.Daemon mode. But sometimes
> > > if process dies for whatever reason, I can't see what the last error was. 
> > > I
> > > have to run it in a console without daemonizing and wait for it to die and
> > > show last reason (like "#13: Null object" or something).
> > > 
> > > Can this be logged to a file? So at least the last output the interpreter
> > > spits out is logged...
> > > 
> > > Cheers!
> > > 
> > > 
> > > 
> > > 
> > > 
> > or now that I think of it, you could just:
> > 
> > $ yourdeamonstarter > output.txt 2>&1
> > 
> > :-)
> > 
> > (Oh where might I have seen that somewhere before ???)
> > B
> > 
> 
> I doubt this works, because Application.Daemon = True calls daemon(3) which
> redirects stdout and stderr (which were previously set by the shell to your
> log files) to /dev/null, so you won't find anything in your files.

Weird. I just tried it quickly here and it works.  Then again, here there is no 
man 3 daemon, which is weirder. So I looked it up on the web:
"   int daemon(int nochdir, int noclose);
...
   If noclose is zero, daemon() redirects standard input, standard
   output and standard error to /dev/null; otherwise, no changes are
   made to these file descriptors."

(So, maybe, I think this might be a distro or kernel scheduling thing, but...)

(Further quick reading... SysV vs systemd )
"New-Style Daemons
   Modern services for Linux should be implemented as new-style daemons."
...none of the initialization steps recommended for SysV daemons need to 
   be implemented. New-style init systems such as systemd make all of them
   redundant. 
...   it is guaranteed that the environment block is sanitized, that the signal 
  handlers and mask is reset and that no left-over file descriptors are 
passed. 
  Daemons will be executed in their own session, with standard input 
connected
  to /dev/null and standard output/error connected to the 
  systemd-journald.service(8) logging service, unless otherwise...

It's still not clear to me why it works on my machine. But now I'll have to go 
and check on the others here at paddys-hill and the damned customer VM's* to 
see if we might run into that problem if I tried it in the future. Well, every 
day a new thing learned.
But then again, didn't someone say
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

b

(* The VM's cause me grief not the customers)
-- 
B Bruen <adamn...@gnail.com (sort of)>

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


Re: [Gambas-user] Logging errors in apps running as Application.Daemon

2017-06-21 Thread adamn...@gmail.com
On Wed, 21 Jun 2017 02:17:27 -0700 (MST)
alexchernoff  wrote:

> Peace to all,
> 
> I have some Gb projects that are in Application.Daemon mode. But sometimes
> if process dies for whatever reason, I can't see what the last error was. I
> have to run it in a console without daemonizing and wait for it to die and
> show last reason (like "#13: Null object" or something).
> 
> Can this be logged to a file? So at least the last output the interpreter
> spits out is logged...
> 
> Cheers!
> 
> 
> 
> 
> 
or now that I think of it, you could just:

$ yourdeamonstarter > output.txt 2>&1

:-)

(Oh where might I have seen that somewhere before ???)
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


Re: [Gambas-user] Logging errors in apps running as Application.Daemon

2017-06-21 Thread adamn...@gmail.com
On Wed, 21 Jun 2017 02:17:27 -0700 (MST)
alexchernoff  wrote:

> Peace to all,
> 
> I have some Gb projects that are in Application.Daemon mode. But sometimes
> if process dies for whatever reason, I can't see what the last error was. I
> have to run it in a console without daemonizing and wait for it to die and
> show last reason (like "#13: Null object" or something).
> 
> Can this be logged to a file? So at least the last output the interpreter
> spits out is logged...
> 
> Cheers!
> 
> 
> 

In this case, probably the easiest is to redirect stdout and stderr to a file 
somewhere.
The commands you should look at are:
OUTPUT TO and
ERROR TO

(and you'll have to write the necessary guff to set up the file, etc etc of 
course)

hth
bruce



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


Re: [Gambas-user] (Main) Form won't close - how to tell the user why

2017-06-20 Thread adamn...@gmail.com
On Tue, 20 Jun 2017 06:37:08 -0700 (MST)
Charlie <char...@cogier.com> wrote:

> adamn...@gmail.com wrote
> > When they attempt to close the main form, the event loop won't terminate.
> > Which is proper. However, I need to be able to tell the user to close the
> > "such and such window". How can I find out which process is blocking the
> > end of the event loop?
> 
> You could try hiding the Main form and only closing it when the user closes
> the other forms. Have a look at the attached program.
> 
> GUITest.tar <http://gambas.8142.n7.nabble.com/file/n59432/GUITest.tar>  
> 
> 


-- 
B Bruen <adamn...@gnail.com (sort of)>

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


[Gambas-user] Follow up from "...row count partially incorrect"

2017-06-20 Thread adamn...@gmail.com
I was looking at this today and noticed that my offline help still showed an 
old version of that page. So I cleared my offline version and downloaded the 
help again.  Now the downloaded 
"timestamp" file says  "20160411" and the bz2 file is:
-rw-rw-r-- 1 bb bb 29249535 Apr 11  2016 ../wiki.tar.bz2

Am I doing something wrong?  This seems to be a very old version.

regards
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


[Gambas-user] (Main) Form won't close - how to tell the user why

2017-06-19 Thread adamn...@gmail.com
I have a main form that has a lot of ways that the user can start other 
processes from, some with wait and some without.
When they attempt to close the main form, the event loop won't terminate. Which 
is proper. However, I need to be able to tell the user to close the "such and 
such window". How can I find out which process is blocking the end of the event 
loop?

regards
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


Re: [Gambas-user] missing wiki gridview.rows.selection

2017-06-19 Thread adamn...@gmail.com
Piccoro, 
The documentation is there, it took me 4 clicks to get to it from the gb.qt4 
page.  I'll change my previous comment to "Read AND LOOK AT EVERY word on the 
Gambas help page.
gridview.Rows is a property that returns an object of the **virtual class** 
_GridView_Rows type.  So  you have to go there to see the description of that 
class. IOW in the syntax box notice that the _GridView_Rows word is a hyperlink 
to the page describing that class.
b


On Mon, 19 Jun 2017 23:04:51 -0430
PICCORO McKAY Lenz  wrote:

> the documentation for Rows.Selection i cannot found in wiki.. ide does not
> show any documentation..
> 
> i found that piede of code in the recet upload of the wGridfilter and no
> doc its raised in ide:
> 
> For n = 0 To $Grid.columns.Count - 1
> valor = IIf($Grid[$Grid.Rows.Selection[c], n].text = "",
> $Grid[$Grid.Rows.Selection[c], n].richText, $Grid[$Grid.Rows.Selection[c],
> n].text)
> clave = $Grid.rslt.Fields[n].Name
> actual.Add(valor, clave)
> Next
> 
> any information about that symbol please!
> 
> 
> 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


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


Re: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info

2017-06-18 Thread adamn...@gmail.com
On Sun, 18 Jun 2017 18:16:30 -0400
PICCORO McKAY Lenz  wrote:

> errr, component no! i wish library! component its to put with gambas..
> library its to specifically interact with user own programs
Correct

> i already made a library and use it, but only standar process or
> functions..
Correct

> when i made graphical controls, and put as library, these thinks does not
> appears to select in the box of controls!
Absolutely correct!

The IDE is not your "user own programs", it is part of Gambas. So if you want 
the Gambas IDE to recognize a custom control then it must be a component.
The fact that you are also using that control in one of your "user own 
programs" is imaterial. 

(You could package it as a library and use it in your own program - but you 
would have to code that program outside the IDE.)

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


Re: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info

2017-06-18 Thread adamn...@gmail.com
On Sun, 18 Jun 2017 09:17:59 -0430
PICCORO McKAY Lenz  wrote:

> i have a override componet of gambas, lest said a improve combobox, and i
> want to made as library to reuse in other projects
> 
> wiki dont said too much http://gambaswiki.org/wiki/doc/library but i
> remenber that if the library(program) has graphical things , extra steps
> must be done..
> 
> so due documentation are VERY FEW i need many info.. please
> 
> 
> 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

http://gambaswiki.org/wiki/dev/gambas

every word ! :-)
-- 
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


Re: [Gambas-user] DesktopWindow.Name; Unexpected result

2017-06-17 Thread adamn...@gmail.com
On Sat, 17 Jun 2017 12:19:53 +0200
Gianluigi  wrote:

> Sorry but I do not understand the difference;
> From Gambas documentation on DesktopWindow.VisibleName (gb.desktop):
> Returns the window visible name, i.e. the window title as displayed by the
> window manager.
> The visible name may be different from the name, when two or more windows
> have the same name.
> 

Ah! Now I see where your confusion lies...
1) DesktopWindow.Name : "i.e. its title as specified by the application that 
owns this window."
2) DesktopWindow.VisibleName : " i.e. the window title as displayed by the 
window manager."

The difference is subtle and not easy to find an example for, but it does 
happen I can assure you.

You understand how an application sets the Title of a window that it displays, 
OK? Hence you see the file name in the title for the windows in your output. 
This is the .Name property value.
Now there are situations where the window manager itself will modify the title 
for some reason or other.  I cannot think up an example but maybe you have seen 
somewhere a window title that looked something like "My Window - some info" and 
if you had two of these open the titles would be something like "My Window - 
some info:1" and "My Window - some info:2". These titles are set by the Window 
Manager, from the title supplied by the owning application and for its' own 
sweet reasons. In other words, it is not easy to "make this happen" as it 
depends on the window manager in use and its logic for re-titling specific 
windows.

Now here is the reason for having the two properties.  If you are searching for 
a specific window by it's expected title, i.e. the application set Title, then 
exact match searches will fail when the window manager has altered it. So then 
we use DesktopWindow.Name ... and get a list if there are more than one.  But 
if we want to act on a specific, re-titled, window then 
Desktop.Window.VisibleName can be used.

I have said this before, and no doubt will say it again.
Above my desk is a sign that says : "Read EVERY word in the Gambas help page".  
I put it up there nearly 10 years ago when I was learning Gambas for the first 
time and even today I occasionally have to refer to it when I get frustrated by 
something that I don't understand about Gambas.  I recommend you get a similar 
sign.  :-)

regards
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


Re: [Gambas-user] DesktopWindow.Name; Unexpected result

2017-06-16 Thread adamn...@gmail.com
On Fri, 16 Jun 2017 16:47:06 +0200
Gianluigi <bagone...@gmail.com> wrote:

> Thank you very much.
> So if I understand well, there is no difference between the two properties.
> 
> Regards
> Gianluigi
> 
> 2017-06-16 15:19 GMT+02:00 adamn...@gmail.com <adamn...@gmail.com>:
> 
> > On Fri, 16 Jun 2017 15:07:20 +0200
> > Gianluigi <bagone...@gmail.com> wrote:
> >
> > > Please take a look at the attached test.
> > > From DesktopWindow.Name I would expect the name of the Form Name
> > property,
> > > and instead I get the Title.
> > > Do you think it should be reported as a bug?
> > >
> > > Regards
> > > Gianluigi
> >
> > No, that is 100% correct under the Portland definition (and exactly what
> > the Gambas help says.)
> >
> > b
> > --
> > B Bruen <adamn...@gnail.com (sort of)>
> >

Consider opening four spreadsheets at the same time in libreOffice - each of 
the window titles includes the name of the file as well as the application 
name. If it were just the application name how could you tell which window had 
which file.

b
-- 
B Bruen <adamn...@gnail.com (sort of)>

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


Re: [Gambas-user] DesktopWindow.Name; Unexpected result

2017-06-16 Thread adamn...@gmail.com
On Fri, 16 Jun 2017 15:07:20 +0200
Gianluigi  wrote:

> Please take a look at the attached test.
> From DesktopWindow.Name I would expect the name of the Form Name property,
> and instead I get the Title.
> Do you think it should be reported as a bug?
> 
> Regards
> Gianluigi

No, that is 100% correct under the Portland definition (and exactly what the 
Gambas help says.)

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


Re: [Gambas-user] static ? in variables

2017-06-16 Thread adamn...@gmail.com
On Fri, 16 Jun 2017 12:38:50 +0200
Tobias Boege  wrote:

> Can you give a full project? The attached project contains everything
> you said about your class, and it works. It is instantiable. Is the
> *error message* really that the class cannot be instantiated or is
> there another error which just prevents objects from being created,
> e.g. you use the "status" variable in the _new method?<---?
> 
> Regards,
> Tobi
> 
> -- 
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk

Eh? You can use static variables in dynamic methods... or Constants would never 
work.
(You cannot access dynamic variables from static methods.)

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


Re: [Gambas-user] Sharing Code Between Projects

2017-06-07 Thread adamn...@gmail.com
On Wed, 7 Jun 2017 09:38:52 -0400
PICCORO McKAY Lenz  wrote:

> 2017-06-07 7:33 GMT-04:00 Christof Thalhofer :
> > Am 06.06.2017 um 16:13 schrieb alexchernoff:
> >> The goal is to edit shared centralised modules and having all
> >> projects see the changes.
> >
> > You can do this by creating a project as library. After you compiled it
> > once and mad an executable with Ctrl-Alt-X, all modules and classes with
> > the magic word "Export" in the beginning are shared by the library and
> > can be used in other projects.
> umm i was triying in the past that but not was as expected, i dont
> remenber why, i try right now and report feedback here... due i'm in
> same problem
> 
> >
> > You have to choose the library inside the other projects' definition
> > dialog (in the IDE).
> >
> > So you can outsource common code and use it in a lot of projects.
> >
> > http://gambaswiki.org/wiki/doc/library
> 
> umm seems the complication in the past was the locations of the
> codes.. all of this have hardcoded paths... in git submodules there-s
> no hardcode depends, due submodules can work off-line independen of..
> 
> if i moved the library from original path to another path, all the
> depends break down..
> 
> i'll try and later report feedback
> 
> >
> > 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

gerhard

I think you need to understand a lot more about libraries and components. 
Libraries are useful for one developer trying to re-use code between projects 
on a single machine. If you are talking about deploying shared code in a way 
that it can be used by different people developing different projects on 
different machines then you need to look at the component mechanism.  There is 
really no programming difference between a library and a component (except when 
talking about gui controls).  The difference is how and where they are deployed.
Libraries are (or were,until the naming convention changed :-< ) simple and 
easy. Components offer more deployment options but require a bit more packaging 
effort.

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


Re: [Gambas-user] Gambas-Documentation

2017-06-06 Thread adamn...@gmail.com
I think one of the things that is hard about doing something about the 
documentation is that there does not appear to be any simple way to collaborate 
on it.  For example, stirred up a bit by this thread, I started having a go at 
some of the wiki "ToDo" list, specifically the gb.desktop component.  I had 
added some descriptive and example content for much of the DesktopFile class 
then hit this snag

What is the "Size" parameter in GetIcon(Size As Integer)?

Where is a convenient place to talk about that question? I don't think it 
really belongs in the mailing list as it may take a reasonable time before 
someone with that knowledge notices the post and answers it. In the mean time 
the post just drifts farther and farther down the time line.  I don't think 
that adding content to the page concerned would work either, as the person with 
the knowledge is not likely to be referring to the page in the course of their 
normal day.

And while I'm at it - how do you add an image to a wiki page? Like the 
http://gambaswiki.org/wiki/howto/makereport/arrange.png?  in the "How to to 
make a report with Gambas" page.  Note, I mean how do I upload the .png files I 
want to put in a page, not how to reference it in the markup ( i.e. I know 
"[doc/myhowto/blah.png]" ).

cheers
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


Re: [Gambas-user] Class HtmlDocument

2017-06-06 Thread adamn...@gmail.com
On Mon, 5 Jun 2017 11:56:34 +0200
Hans Lehmann  wrote:

> Hello,
> 
> why creates the following source text:
> 
> Public Sub btnCreateHTMLDocument_Click()
>Dim hHtmlDocument As HtmlDocument
> 
>hHtmlDocument = New HtmlDocument

At this point hHtmlDocument.Html5 is false!!

> 
> *hHtmlDocument.Html5 = False**
> *
>Print hHtmlDocument.ToString(True)
>hHtmlDocument.Save(Application.Path &/ "test.html", True)
> 
> End
> 
> this HTML5 document? I would have expected: strict HTML 1.0!
> 
> 
> 
>   
>
>
>
>   
>   
>   
> 
> 
> Hans
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


So, I guess that you are right. In fact, changing it to True and then back to 
False seems to have absolutely no effect on the generated html text.
Oh well, back to Adrien for this one I'd say.

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


Re: [Gambas-user] Using a relative file path for a WebView URL

2017-06-06 Thread adamn...@gmail.com
On Sat, 3 Jun 2017 09:13:57 -0400
T Lee Davidson <t.lee.david...@gmail.com> wrote:

Thanks Lee, I'll give that a try!
b

> wvwPage.HTML = File.Load(path &/ "index.html")   ?
> 
> 
> On 06/02/2017 08:57 PM, adamn...@gmail.com wrote:
> > I am trying to get a WebViewer control in a loaded library to display an 
> > html file stored inside the executable archive of a project using that 
> > library.
> > This appears to be not possible ... in the following the main project is 
> > calling the library form Run method with a relative path say 
> > "../help/html/index.html" (Note the use of the ../ to get the calling 
> > programs executable relative path!). The library code is as follows:
> > 
> > Public Sub Run (path As string)
> > If Exist(path &/ "index.html") Then
> > Debug path &/ "index.html exists"
> > wvwPage.URL = path &/ "index.html"
> > Debug wvwPage.URL
> > 
> > FHSView.Run.10: ../help/html/index.html exists
> > FHSView.Run.13: file:///home/ksshare/gb3projects/Tools/help/html/index.html
> > 
> >  From the above debug output it appears that the WebView control is 
> > "subverting" the actual path back into an absolute path.
> > Any comments?
> > 
> > I think I can extract the entire help directory out of the calling 
> > program's executable into the /tmp dir, but I think that then I will have 
> > to edit every link in the pages to a path relative to the /tmp dir. Painful!
> > 
> > Has anyone got any better ideas?
> > 
> > bruce
> > 
> 
> -- 
> 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


-- 
B Bruen <adamn...@gnail.com (sort of)>

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


Re: [Gambas-user] Sharing Code Between Projects

2017-06-06 Thread adamn...@gmail.com
On Tue, 6 Jun 2017 02:22:26 -0700 (MST)
alexchernoff  wrote:

> Dear All,
> 
> I have multiple projects sharing certain modules such as logging, config
> routines... I created a symlink in each project's .src directory pointing to
> the actual file (with relative path like ln -s
> ../../../../SHARED/Mod_Logging.module)
> 
> Gambas sees it, also recognizes it as a link (icon has an arrow) but it's
> read only and no way to unlock. I tried all possible permissions and still
> no luck.
> 
> Anyone know about this or maybe better way to share modules?
> 
> thanks!
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://gambas.8142.n7.nabble.com/Sharing-Code-Between-Projects-tp59251.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


See here : http://gambaswiki.org/wiki/doc/library

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


[Gambas-user] Using a relative file path for a WebView URL

2017-06-02 Thread adamn...@gmail.com
I am trying to get a WebViewer control in a loaded library to display an html 
file stored inside the executable archive of a project using that library.
This appears to be not possible ... in the following the main project is 
calling the library form Run method with a relative path say 
"../help/html/index.html" (Note the use of the ../ to get the calling programs 
executable relative path!). The library code is as follows:

Public Sub Run (path As string)
If Exist(path &/ "index.html") Then 
Debug path &/ "index.html exists"
wvwPage.URL = path &/ "index.html"
Debug wvwPage.URL

FHSView.Run.10: ../help/html/index.html exists
FHSView.Run.13: file:///home/ksshare/gb3projects/Tools/help/html/index.html

>From the above debug output it appears that the WebView control is 
>"subverting" the actual path back into an absolute path.
Any comments?

I think I can extract the entire help directory out of the calling program's 
executable into the /tmp dir, but I think that then I will have to edit every 
link in the pages to a path relative to the /tmp dir. Painful!

Has anyone got any better ideas?

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


[Gambas-user] Explicitly load a library

2017-05-28 Thread adamn...@gmail.com
Is there any way to explicitly load a library similar to loading a component 
via Component.Load(name as String)?

I want to load a library used by another project and determine the exposed 
classes in the library. It's for a code generator.

So, my "target" project, say "AuctionCalendar" uses the "horse4.gambas" 
library. My code generator "GenCode2" interrogates the .project file for 
AuctionCalendar and can load any components it uses and determine the exposed 
classes therein. But I can't find a way to do the same for the horse4 library.  
Note, I can't use the source project for horse4 because it may not match the 
installed version, so I need to get the classes out of the executable archive. 

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


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

2017-03-15 Thread 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


Re: [Gambas-user] Console Window

2017-01-08 Thread adamn...@gmail.com
On Sun, 8 Jan 2017 21:39:12 +0100
Benoît Minisini  wrote:

> Le 08/01/2017 à 15:33, Charlie a écrit :
> > *All I have to do is click the "Dock" button whose Tooltip says "Undock
> > console" if it's docked or not.*
> > 
> >
> 
> Does anyone find the floating console useful?
> 
> If not, I can remove the feature...
> 
> -- 
> 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

I do!

Use it very frequently when debugging projects with lot's of stdout/stderr 
error messages. I definitely feel it should be kept.
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


Re: [Gambas-user] Convert string to integer array

2016-12-24 Thread adamn...@gmail.com
On Sat, 24 Dec 2016 11:05:00 +0100
Benoît Minisini <gam...@users.sourceforge.net> wrote:

> Le 24/12/2016 à 09:44, Fabien Bodard a écrit :
> > Public Sub Main()
> >
> >   Dim s As String
> >   Dim i As String
> >   Dim a As New Integer[]
> >   ''1) with no knowledge of the number of values
> >   'init the string
> >   s = "[12,32,3]"
> >
> >   'remove unused spaces and braquets
> >   For Each i In Split(Left(Right(Trim(s), -1), -1))
> >
> > a.Add(i)
> >
> >   Next
> >
> >
> >
> >   'display the array content
> >   For Each i In a
> > Print i
> >   Next
> >
> > 2016-12-24 7:29 GMT+01:00 adamn...@gmail.com <adamn...@gmail.com>:
> >> Baffled!
> >>
> >> I have a string, like "[1,3]", that I want to populate an integer array 
> >> from.
> >>
> >> How to?
> >>
> >> tia
> >>
> >> --
> >> B Bruen <adamn...@gnail.com (sort of)>
> >>
> 
> Other solution : MyIntegerArray = JSON.Decode(MyString)
> 
> :-)
> 
> -- 
> Benoît Minisini
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

Classic!

The sun is just about down now, so I'd better go to sleep before the arrival of 
St Nick.

Bon natale everyone.

and @Casper, the temp here tomorrow (25th) is expected to be 36C+, which is 
better than yesterday's forecast of 40C+!


-- 
B Bruen <adamn...@gnail.com (sort of)>

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Convert string to integer array

2016-12-23 Thread adamn...@gmail.com
Baffled!

I have a string, like "[1,3]", that I want to populate an integer array from.

How to?

tia

-- 
B Bruen 

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to run a python program in a control on a form?

2016-12-19 Thread adamn...@gmail.com
On Tue, 20 Dec 2016 04:03:04 +0200
Jussi Lahtinen  wrote:

> > The output is a continuous stream of data.
> >
> 
> In what format?
> 
> 
> Jussi
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

I think you may need the Embedder thingo.  Haven't used it for a while but used 
to use for gnuplot output windows. 
-- 
B Bruen 

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gb.util GenUUID() function

2016-11-16 Thread adamn...@gmail.com
Every now and then I come across a need for a (locally) unique ID. Shelling the 
ubiquitous gnu "uuidgen (-t/-r)" utility usually handles this effectively 
enough. However, I am thinking that maybe this is a possible candidate for the 
gb.util component.  
In particular, most often times I am looking for the string representation of 
the UID. In which case "SHELL uuidgen TO $somevar" is all that is required.  On 
the other hand, and on somewhat rarer occasions, I need the binary rep of the 
generated UID. Now "uuid_parse" can handle that ... and some years ago (gb2) I 
had a bit of code that could call that routine, sadly now long lost. 

Anyway, if there is any interest in this, as an enhancement to gb.util I'll 
spend some effort trying to find that old code and adding it to the gb.util 
component. I'm thinking about two new functions here 
a) "GenUUID" with optional params to force the -t/-r options which would just 
shell the uuidgen utility and return the string representation and
b) "GenUUIDBinary" that would return the binary version.

Any thoughts?
B


-- 
B Bruen 

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


Re: [Gambas-user] Columnview "collapse" function

2016-11-13 Thread adamn...@gmail.com
On Thu, 10 Nov 2016 13:59:11 +0100
Gianluigi <bagone...@gmail.com> wrote:

> I probably did not understand the problem, but:
> This discussion could help? [0]
> or perhaps starting with:
>   tvwDoc.MoveFirst
>   hNode = $hDoc.Index[tvwDoc.Key]
>   iLevel = hNode.Level
> 
> Regards
> Gianluigi
> 
> [0]
> http://gambas.8142.n7.nabble.com/Accessing-the-Treeview-Collection-td20313.html#a20317
> 
> 2016-11-10 13:27 GMT+01:00 Fabien Bodard <gambas...@gmail.com>:
> 
> > well have you a small functional things ? certainly something
> > stupid but i can't see it without touching
> >
> > 2016-11-10 4:38 GMT+01:00 adamn...@gmail.com <adamn...@gmail.com>:
> > > What in the name of American erections am I doing wrong here?
> > >
> > > Public Sub mnuCollapse_Click()
> > >
> > >   ' Collapse all nodes to the level of the selected node
> > >   Dim hNode As CNode
> > >   Dim hAttr As String
> > >   Dim iLevel As Integer
> > >
> > >   hNode = $hDoc.Index[tvwDoc.Key]
> > >   iLevel = hNode.Level
> > >
> > > START_HERE:
> > >   tvwDoc.MoveFirst
> > >   While tvwDoc.MoveNext()
> > > hNode = $hDoc.Index[tvwDoc.Item.Key]  '<-- All "seems" to fall apart
> > here?
> > > If hNode.Level >= iLevel Then
> > >   tvwDoc.Item.Expanded = False
> > > Endif
> > >   Wend
> > >
> > > End
> > >
> > > tvwDoc is a ColumnView. There is a selected item in the _TreeView, Thus,
> > tvwDoc.Key provides a key into the $hDoc.Index collection from which I can
> > determine the object that was used to populate that columnView branch and
> > from that objects values I can see the "Level" that I want. All that works
> > fine.
> > >
> > > What I am trying to do is go through the ColumnView branches and
> > "collapse" any branch of the same "Level".  Which gets us to START_HERE.
> > >
> > > There must be something absolutely, stupidly, simple that I am trying to
> > do wrong here - :-(
> > >
> > > Any help.
> > >
> > >
> > > rgrds
> > > b
> > >
> > >
> > > --
> > > B Bruen <adamn...@gnail.com (sort of)>
> > >
> > > 
> > --
> > > Developer Access Program for Intel Xeon Phi Processors
> > > Access to Intel Xeon Phi processor-based developer platforms.
> > > With one year of Intel Parallel Studio XE.
> > > Training and support from Colfax.
> > > Order your platform today. http://sdm.link/xeonphi
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> >
> > --
> > Fabien Bodard
> >
> > 
> > --
> > Developer Access Program for Intel Xeon Phi Processors
> > Access to Intel Xeon Phi processor-based developer platforms.
> > With one year of Intel Parallel Studio XE.
> > Training and support from Colfax.
> > Order your platform today. http://sdm.link/xeonphi
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


Hah! Finally got it.
Thanks Gianluigi, that thread gave me the clues.

regards
Bruce

-- 
B Bruen <adamn...@gnail.com (sort of)>

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Columnview "collapse" function

2016-11-09 Thread adamn...@gmail.com
What in the name of American erections am I doing wrong here?

Public Sub mnuCollapse_Click()

  ' Collapse all nodes to the level of the selected node
  Dim hNode As CNode
  Dim hAttr As String
  Dim iLevel As Integer
  
  hNode = $hDoc.Index[tvwDoc.Key]
  iLevel = hNode.Level

START_HERE:  
  tvwDoc.MoveFirst
  While tvwDoc.MoveNext()   
hNode = $hDoc.Index[tvwDoc.Item.Key]  '<-- All "seems" to fall apart here?
If hNode.Level >= iLevel Then 
  tvwDoc.Item.Expanded = False
Endif
  Wend

End

tvwDoc is a ColumnView. There is a selected item in the _TreeView, Thus, 
tvwDoc.Key provides a key into the $hDoc.Index collection from which I can 
determine the object that was used to populate that columnView branch and from 
that objects values I can see the "Level" that I want. All that works fine.

What I am trying to do is go through the ColumnView branches and "collapse" any 
branch of the same "Level".  Which gets us to START_HERE.

There must be something absolutely, stupidly, simple that I am trying to do 
wrong here - :-( 

Any help.


rgrds
b


-- 
B Bruen 

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Methods on a property?

2016-10-30 Thread adamn...@gmail.com
Probably a dq, but..
Is it possible to write a method, apart from _read and _write, on a property of 
a class? Specifically, I'd like to implement a boolean function to return true 
if the property has a specific value. Something along the lines of 
MyClass.MyDateProperty.IsFuture() which would return true if the current value 
of the property is a date in the future?
There are obvious solutions along the lines of If 
MyClass.MyDateProperty>Date(Now()), I'm just trying to shortcut coding common 
checks in the client class.

regards
Bruce

-- 
B Bruen 

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


Re: [Gambas-user] IDE extensions?

2016-09-20 Thread adamn...@gmail.com
On Sun, 18 Sep 2016 17:39:13 +0300
Jussi Lahtinen  wrote:

> I have no opinion for or against. But what would the extensions do? I think
> the IDE pretty much have all the possible useful things..?
> I guess something special without general usage. I would be interested in
> hearing some ideas.
> 
> 
> Jussi
> 
Here's a few we have already (not farm produce though).

A class skeleton code builder/rebuilder. It parses a class and allows visual 
addition/modification/deletion of properties, methods, etc. It doesn't provide 
or allow for editing for actual procedural code but does build code for 
accessors and some other mechanical procedures (such as skeleton code for 
initialising the class infrastructure in the constructor. (It also reformats 
the code so that all procedures are layed out in groups: public, private, (some 
other mechanicals we use), accessors, handlers.)

A form reviewer: This utility provides a means to review a Gambas3 form 
definition file highlighting missing features (tooltips etc) and duplicated 
features (shortcuts and accelerators). It is meant to assist in checking that 
all the useability factors of a form in a project have been completed properly 
before releasing the containing project.

A library component installation manager: This project:
* displays information about gambas applications, libraries and 
components that are either installed on the local computer or which have 
installable packages,
* highlights packages that have been superseeded (i.e. there is a later package 
version available),
* provides a mechanism to install specific package versions on the local 
computer.

A task manager: Simple, "emphasis" on simple, to do list for gambas projects - 
just what the world needs, another todo list! :-)

A tool to "generate a procedure to handle command line arguments suitable for 
the gb.args component."

Several other code generators suitable only for the way we "do things" here.


So I for one would prefer to see that there was no forced dependency on the 
farm. i.e. allow for locally installed tools. In fact, given the current state 
of versioning in the farm using a shared extension would leave the client 
developer at the whim of the extension developer. Suppose version 1.2 of an 
extension is the one I want to use even thought there is a version 3.6 
available?

(in fact back in gambas2 days we had modified the IDE to allow for such 
extensions (I called them "AddIns"). It was fairly simple to implement in the 
gb2 IDE code and provided almost all of what Benoit mentioned (passing the 
project context, current class etc) and also had it's own "manager" to allow 
for adding/removing/activating/deactivating specific addins. 

bruce
-- 
B Bruen 

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


[Gambas-user] [CRASH REPORT] XmlElement.GetAttribute (gb.xml) segfault if the attribute is an empty string

2016-09-13 Thread adamn...@gmail.com
Hello,

Damned, my program crashed Gambas that way :

The segfault occurs when I attempt to get the value of the argname attribute 
thus:
hAD = New CArgDef
With hAD
  .ShortName = hArg.Attributes["shortname"]
  .LongName = hArg.Attributes["longname"]
  .ArgName = hArg.Attributes["argname"]
 ...

This happens if an XMLElement has an attribute whose value is an empty string, 
for example :



The argname attribute won't parse and the segfault occurs.

I don't know whether such empty string attributes are "legal" in XML though.

hth
bruce

-- 
B Bruen 

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


Re: [Gambas-user] Christmas gift

2016-09-13 Thread adamn...@gmail.com
On Tue, 13 Sep 2016 00:37:51 +0300
Jussi Lahtinen  wrote:

> Why don't you use some text editor like gedit?
> 
> 
> Jussi
> 


> >
> > But that text file is not editable when the project is running.
> >
> > b

> > 

For the same reason that I refuse to use use the wheely bin to take out the 
garbage when I have a perfectly good Lambourghini to do it in! :-)

b


-- 
B Bruen 

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


Re: [Gambas-user] Christmas gift

2016-09-12 Thread adamn...@gmail.com
On Mon, 12 Sep 2016 14:27:45 +0200
Benoît Minisini  wrote:

> Le 12/09/2016 à 12:14, Charlie Reinl a écrit :
> > Salut,
> >
> > since a few days I worked with the new 3.9.x IDE version.
> > And I missed the old console! Because I often used it to store
> > temporarily some lines code.
> > So my wish, not necessarily for Christmas, a writing pad, just beside
> > the console.
> >
> 
> The console was never intented to be used for that!
> 
> Why don't you just create a text file in the "Project" folder and use it 
> as writing pad?
> 
> -- 
> Benoît Minisini
> 

But that text file is not editable when the project is running.

b


-- 
B Bruen 

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Christmas gift

2016-09-10 Thread adamn...@gmail.com
On Sat, 10 Sep 2016 09:33:34 +0200
Christof Thalhofer  wrote:

> Am 09.09.2016 um 17:25 schrieb PICCORO McKAY Lenz:
> 
> > many programers like REST due have free of implementation of own protocol,
> > and if i want to cheap traffic, Json then definitely we will be in better
> > place in terms of payload, but complexity are higher, and i already know
> > that gambas its knowed by the easy of usage for programers
> 
> Please correct me if I'm wrong: REST came later and as I can see, the
> upcoming of REST ist somewhat an answer to the extreme complexity of SOAP.
> 
> For a REST webservice you need a good tutorial, but not really a
> framework. The only thing that is needed for REST is a router that maps
> url paths to functions and sends back the result via HTTP. The result
> can be anything, a file, an integer, a Json string, whatever.
> 
> Here is an example with the microframework Slim for PHP:
> https://arjunphp.com/creating-restful-api-slim-framework/
> 
> A router does a mapping like this:
> 
> 
> > Method URL Action
> > GET/api/todos  Retrieve all todos
> > GET/api/todos/search/bug   Search for todos with ‘bug’ in their name
> > GET/api/todo/1 Retrieve todo with id == 1
> > POST   /api/todo   Add a new todo
> > PUT/api/todo/1 Update todo with id == 1
> > DELETE /api/todo/1 Delete todo with id == 1
> 
> 
> > OH MEN this will be hard to implement and made a component! too much to
> > implement!?!!
> 
> My understanding: If you do REST it would be somewhat easy, if you do
> SOAP it would be horrible.
> 
> 
> Alles Gute
> 
> Christof Thalhofer
> 
> -- 
> Dies ist keine Signatur
> 

Ah, what would I know. SOAP was basically crap. Never worked. Not even in 
wundows. So to keep laying layers of ice cream over the top of a load of cow 
stuff just extends the life of something that should have been euthanased in 
the first place. 

-- 
B Bruen 

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


Re: [Gambas-user] OO design problem?

2016-08-30 Thread adamn...@gmail.com
On Mon, 29 Aug 2016 01:13:01 +0300
Jussi Lahtinen  wrote:

> > It's not unnecessary in fact. Imagine if a children not implement the
> > property... then it's the property in the parent that is readed.
> >
> 
> Yes I know, but in my case it is unnecessary.
> 
But if I understand you correctly then you should be implementing an 
Error.Raise in those empty methods to trap where a child class has not 
re-implemented the property!
> 
> 
> > Another way is to not declare the property in the parent and use an
> > object type to walk the children.
> >
> >
> > Dosometing(hChild as Myclass)
> >
> > dim hObj as Object = hChild
> >
> > try hObj.DoSomethingElse()
> >
> > end
> >
> 
> Thanks for the suggestion. Though, I hope something more elegant...
> 
> 
> 
> Jussi
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


And another use we have here for those "empty" methods is to implement a 
(hackish) trap to enforce a sort of protection i.e. the implementing child must 
be a particular object type. in other words to prevent say a client program 
calling the root method class directly.

-- 
B Bruen 

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


Re: [Gambas-user] Gambas custom controls : renaming the exported class

2016-08-10 Thread adamn...@gmail.com
On Wed, 10 Aug 2016 02:43:17 +0200
Benoît Minisini <gam...@users.sourceforge.net> wrote:

> Le 23/06/2016 09:12, Benoît Minisini a écrit :
> > Le 23/06/2016 05:04, adamn...@gmail.com a écrit :
> >> Well this is a bit obscure but for me it's a big pain.
> >>
> >> When developing a custom gambas control I quite often include a test
> >> form inside that project. That form is used extensively during
> >> development of the custom control (i.e. even before I package and
> >> deploy the control in client projects, and sometimes even later when
> >> issues arise...)  Now, here's the problem. If I have given the
> >> control a "development" name and I later want to give it a more
> >> meaningful name, the entire custom control project collapses because
> >> the renamed class does not exist in the test form.
> >>
> >> An example might illuminate.  I am working on a "lightweight" version
> >> of the native DirChooser control - in essence, I want to get rid of
> >> much of the extended functionality of the native control and just be
> >> able to display a directory tree, no file view, no added vitamins
> >> etc. So, I copied the native source and have expunged much of the
> >> features I do not need. The goal is to just display a directory tree
> >> in a side bar, so I need to get rid of the extra features and just
> >> show the tree. It's a bit like the IDE project tree sidebar but even
> >> simpler.
> >>
> >> So developmentally, I (like the fool I am) renamed the "target"
> >> control class as XDirChooser.  Now I want to rename that class
> >> "LWDirChooser" (for Light Weight) so it will appear in the IDE quite
> >> visibly. But having done that, the test form is now invalid and the
> >> component wont compile grrr.  To work around this I need to edit
> >> the test.form file and change the XDirChooser to a LWDirChooser, then
> >> it all works.
> >>
> >> But it is a right royal PITA!
> >>
> >> This bug is raised in the spirit of your comment at the end of the
> >> "How to develop Program Components in Gambas" page: Conclusion
> >>
> >> I try to find the easiest way of making components with the IDE. It
> >> is not perfect yet, but if you have any comment, question or problem,
> >> please use the mailing-list!
> >>
> > 
> > I didn't think about that. It's because I usually directly use the final
> > name of the control, and so my test forms are always valid.
> > 
> > The problem is more general anyway, as if you rename any class in your
> > project, other classes will continue to use the old name, and will fail
> > at compilation or execution time.
> > 
> > You have to rename the class by hand everywhere, and in the forms you
> > cannot do that if it was not already opened before you renamed the class.
> > 
> > I will try to implement an automatic renaming of form classes. It may
> > slow down the renaming process, but I think I have no choice...
> > 
> 
> The bug should be fixed in revision #7831.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are 
> consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
> J-Flow, sFlow and other flows. Make informed decisions using capacity 
> planning reports. http://sdm.link/zohodev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

Yahoo! And welcome back.
b
-- 
B Bruen <adamn...@gnail.com (sort of)>

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Help! How to assign a theme to an editor control

2016-07-04 Thread adamn...@gmail.com
I am totally lost with this one :-(

Given I have a custom IDE highlighting theme saved as a file in my home dir. 
Say "bb.gambas.theme".

Now I want to apply that same highlighting scheme to an editor control in some 
gui project.

How do I go about this? As I said - totally lost.

tia
Bruce

-- 
B Bruen 

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] array of classes

2016-07-03 Thread adamn...@gmail.com
On Sun, 3 Jul 2016 18:20:15 +1000
Shane  wrote:

> I'm trying create a array of myClass but when i create it i have an 
> array of null values
> 
> i have my Rect.class
> 
> Public x As Integer
> Public y As Integer
> Public width As Integer
> Public height As Integer
> 
> 
> then my Block.class
> 
> Public Screenpos As New Rect
> Public Imagepos As New Rect
> Public num_hits As Integer
> 
> and then in the main module i do
> 
> Public Blocks As New Block[MAX_BLOCKS]
> 
> and i get an array with Max_BLOCKS indexes on null values
> 
> what am i doing wrong
> 
> thanks Shane
> 
> 
> 
Well at first glance I'd tend to say - nothing!  
Declaration of the array in your main module is doing exactly what it should.  
Creating an empty array (presumably of length MAX_BLOCKS).
If you were expecting that you would have an array of length MAX_BLOCKS 
completely populated with some form of Block objects then this is not what you 
are going to get.

Try (in the Main module)
Public Blocks As New Block[MAX_BLOCKS]

Public Sub Main()

Dim idx as integer
Dim hBlock as new Block

For idx = 0 to MAX_BLOCKS-1
  Blocks[idx] = hBlock
Next

etc


Or have I misunderstood?

hth
Bruce

-- 
B Bruen 

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] An upside down color chart?

2016-06-28 Thread adamn...@gmail.com
On Tue, 28 Jun 2016 19:10:42 +0200
Tobias Boege <tabo...@gmail.com> wrote:

> On Tue, 28 Jun 2016, adamn...@gmail.com wrote:
> > Can anyone help me with this. I am looking for a "reversed" color chart 
> > image. I'll explain..
> > pic1 attached shows the generally accepted version of a color chart - which 
> > generally I have absolutely no problemo with. (Its the one from the IDE 
> > image editor.)
> > What this shows in HSV terms is hue on the horizontal axis and saturation 
> > on the vertical axis, the value figure is set by the slider on the right. 
> > Fine, but what I need today is a chart with hue horizontally, value 
> > vertically and saturation on the slider.  
> > I can do the figgering to build the control but I cannot find - anywhere on 
> > the the interwebs and beyond - a picture of the colors represented on those 
> > axes. !!!
> > 
> > Any clues gratefully accepted.
> > 
> 
> Then upload whatever picture your control yields. It will become *the*
> reference chart for the HVS color space in no time.
> 
> (I don't know what you expect as an answer here. Should I try to write
> such a control, too, and see if our pictures match?)
> 
> Regards,
> Tobi
> 

Ah, a lot more research and I have found what I am looking for (attached as 
hslchart1.png).  Its called an HSL chart and I got it from 
http://www.gamutvision.com/docs/gamutvision_equations.html which is quite an 
interesting page if you are into that sort of mathematical nightmare. :-)

In fact what I am after is a modified view of this chart, mainly the bottom 
half chopped and hammered so that the left side is the yellow tones and the 
right side is the red tones.  I have mocked up what I am going to be using as 
hslchart2.png - so I doubt that it would either become a standard for HSV (or 
HVS) or that it would be the same as you would produce.  

cheers
Bruce

-- 
B Bruen <adamn...@gnail.com (sort of)>
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] An upside down color chart?

2016-06-28 Thread adamn...@gmail.com
Can anyone help me with this. I am looking for a "reversed" color chart image. 
I'll explain..
pic1 attached shows the generally accepted version of a color chart - which 
generally I have absolutely no problemo with. (Its the one from the IDE image 
editor.)
What this shows in HSV terms is hue on the horizontal axis and saturation on 
the vertical axis, the value figure is set by the slider on the right. Fine, 
but what I need today is a chart with hue horizontally, value vertically and 
saturation on the slider.  
I can do the figgering to build the control but I cannot find - anywhere on the 
the interwebs and beyond - a picture of the colors represented on those axes. 
!!!

Any clues gratefully accepted.

tia 
Bruce

-- 
B Bruen 
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas custom controls : renaming the exported class

2016-06-22 Thread adamn...@gmail.com
Well this is a bit obscure but for me it's a big pain.

When developing a custom gambas control I quite often include a test form 
inside that project. That form is used extensively during development of the 
custom control (i.e. even before I package and deploy the control in client 
projects, and sometimes even later when issues arise...)  Now, here's the 
problem. If I have given the control a "development" name and I later want to 
give it a more meaningful name, the entire custom control project collapses 
because the renamed class does not exist in the test form.

An example might illuminate.  I am working on a "lightweight" version of the 
native DirChooser control - in essence, I want to get rid of much of the 
extended functionality of the native control and just be able to display a 
directory tree, no file view, no added vitamins etc. So, I copied the native 
source and have expunged much of the features I do not need. The goal is to 
just display a directory tree in a side bar, so I need to get rid of the extra 
features and just show the tree. It's a bit like the IDE project tree sidebar 
but even simpler.

So developmentally, I (like the fool I am) renamed the "target" control class 
as XDirChooser.  Now I want to rename that class "LWDirChooser" (for Light 
Weight) so it will appear in the IDE quite visibly. But having done that, the 
test form is now invalid and the component wont compile grrr.  To work 
around this I need to edit the test.form file and change the XDirChooser to a 
LWDirChooser, then it all works.

But it is a right royal PITA!

This bug is raised in the spirit of your comment at the end of the "How to 
develop Program Components in Gambas" page:
Conclusion

I try to find the easiest way of making components with the IDE. It is not 
perfect yet, but if you have any comment, question or problem, please use the 
mailing-list!

-- 
B Bruen 

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] SQLite - in memory DB

2016-06-19 Thread adamn...@gmail.com
On Mon, 20 Jun 2016 02:25:18 +0200
Benoît Minisini  wrote:

> Le 20/06/2016 01:17, zainudin ahmad a écrit :
> > I can't use it too (attach pic), it's bug ? (attach project)
> >
> > On Sun, Jun 19, 2016 at 5:57 PM, Vinode Singh Ujlain 
> > wrote:
> >
> >> Public conH As New Connection
> >> conH.Type = "sqlite3"
> >> conH.name = ":memory:"
> >>Try conH.Open()
> >> If Error Then
> >>   Print "Unable to open database \n Error :"; Error.Text
> >> 
> >> 
> >>
> >> Error I am getting is :-
> >> /Unable to open database //
> >> //Error : Unable to locate database `:memory:` in ``/
> >>
> >> conH.name = Null /'does work but that is creating a temp database in
> >> /tmp folder and marginally slower/
> >>
> >> I request opinion on following :-
> >> (a) How to create "in memory" Sqlite DB so that the operations can be
> >> done expeditiously.
> >> (b) Further how to attach using GAMBAS an existing file based Sqlite and
> >> how to shift one table from this to in-memory DB ?
> >>
> >> regards
> >> Vinode Singh
> >>
> 
> To use a database memory, you have to use a null name.
> 
> http://gambaswiki.org/wiki/comp/gb.db/connection
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 

hmm, that contradicts with http://gambaswiki.org/wiki/comp/gb.db/connection/name


-- 
B Bruen 

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Arguments in Project properties

2016-06-15 Thread adamn...@gmail.com
On Wed, 15 Jun 2016 21:15:20 +0200
Gianluigi  wrote:

> Hi all,
> I do not understand how I can write Arguments in
> Project>Properties>Arguments in rev.7799.
> Regards
> Gianluigi

The Project>Properties>Arguments tab lets you set "command line arguments" that 
are passed to the executable when the project is run within the IDE, i.e. in 
"debug" mode. So, if your project needs an argument, say "p" for some 
processing reason then you can set that argument in this tab.  When the project 
(say "myproj") is run in the IDE then, it is as if you entered

myproj.gambas -p 

on the command line.

To create arguments for this reason, simply type the argument in the bottom 
line of this tab and click the "+" button on the bottom right (it's one of 
these new "list editor" controls). The other buttons are reasonably 
straightforward.

To create arguments that require some parameter, say you have implemented a 
logger that requires a file - controlled by a "-L path" argument, then simply 
type the "L " on the bottom line and click "+".

hth
Bruce

-- 
B Bruen 

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421=/41014381
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature that returns text shown in console.

2016-06-08 Thread adamn...@gmail.com
On Wed, 8 Jun 2016 15:32:46 +0200
Benoît Minisini  wrote:

> Le 08/06/2016 15:25, Gianluigi a écrit :
> > Ru Vuott asks me to re send his message erroneously seen as spam.
> > This is the message:
> >
> > Hello Benoît,
> >
> > in Gambas IDE the "Open contents..." button is able to capture text, shown
> > in console, and to save it in a text file.
> > I'ld like to ask if you can implement a new feature, as method or property
> > (of Application? or of System?) that returns - as String - the text shown
> > by console.
> > I say something like this (...simply an example):
> >
> >  BlaBla.GetTextfromConsole As String
> >
> > Regards
> > vuott
> 
> It's not possible. A process has no idea of what is done with what is 
> sent to its standard output or standard error output.
> 
> -- 
> Benoît Minisini
> 

I had a similar issue recently.  There is a way to achieve this currently by 
using the
Output To  and 
Error To 
commands, and then simply read the file produced.

regards
Bruce


-- 
B Bruen 

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Seeking a bit of advice here...

2016-05-20 Thread adamn...@gmail.com
Thanks for the input everyone..
I'm leaning towards Lubuntu at this stage ...

This is going to be a "large" task, to move every box.
Wish me luck.

 
On Tue, 17 May 2016 10:58:35 +0200
Fabien Bodard  wrote:

> Debian
> Lubuntu or Xubuntu
> Archlinux
> Mint xfce
> 
> 
> 2016-05-16 16:16 GMT+02:00 Jussi Lahtinen :
> >>
> >> - lightweight desktops,
> >>
> >
> > I recommend LXDE based distros (example Lubuntu), Xfce is too buggy.
> >
> >
> >
> >> - Gambas
> >>
> >
> > If compiling is OK, then this shouldn't be problem.
> >
> >
> >
> >> - postgresql 9.3+
> >> - must have su/ssh/ access to all boxes.
> >>
> >
> > Aren't those pretty much standard things in about any distro?
> >
> >
> >
> > Jussi
> > --
> > Mobile security can be enabling, not merely restricting. Employees who
> > bring their own devices (BYOD) to work are irked by the imposition of MDM
> > restrictions. Mobile Device Manager Plus allows you to control only the
> > apps on BYO-devices by containerizing them, leaving personal data untouched!
> > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 
> 
> -- 
> Fabien Bodard
> 
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
B Bruen 

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Seeking a bit of advice here...

2016-05-16 Thread adamn...@gmail.com

Our (read "my") favourite bistro, PCLinuxOS has now discontinued official 
support for 32bit.

Which leaves me in a bit of a quandary.  Most of our "back end equipment", like 
the file sharers, firewalls and (private) http servers are all 32-bit machines. 
 These have been lovingly maintained and still run like trains.  For what they 
do, there is no real need I can see to invest a whole lot of capital just to 
make them 64-bit.  

On the other hand, we do need to (be able to) use the latest stable server 
software. Both from a development viewpoint and as a data provider to our 
customers.  In particular we need "the best" database server software and the 
best distributed data facilities (ftp, http, nfs and the like).

There are a whole lot of other factors, obviously, but to cut the story short...

Given that our preferred "divine" system would be:
- a single distro
- lightweight desktops,
- Gambas
- postgresql 9.3+

and
- must have su/ssh/ access to all boxes.

Would you, if you have somewhat even similar needs, suggest a distro?

-- 
B Bruen 

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] FontChooser setting fontname

2016-04-27 Thread adamn...@gmail.com
On Wed, 27 Apr 2016 09:44:55 +0200
Rolf-Werner Eilert  wrote:

> Does really nobody know why I cannot set the SelectedFont value as 
> mentioned in the documentation?
> 
> Rolf
> 
> Am 26.04.2016 12:57, schrieb Rolf-Werner Eilert:
> > "Courrier" is French, in my list there is "Courier". I can choose it
> > from the list, but I cannot set the list to this value/index/string.
> >
> > Rolf
> >
> > Am 26.04.2016 12:39, schrieb Fabien Bodard:
> >> Courrier
> >> Le 26 avr. 2016 12:12, "Rolf-Werner Eilert"  a
> >> écrit :
> >>
> >>> The docu reads:
> >>>
> >>> FontChooser.SelectedFont (gb.form)
> >>>
> >>> Property SelectedFont As String
> >>>
> >>> Returns or sets the selected font as a string.
> >>>
> >>> When I try to do
> >>>
> >>> Dim MyFont As String
> >>>
> >>> MyFont = "Courier"
> >>> fcMyFont.SelectedFont = MyFont
> >>>
> >>> nothing happens.
> >>>
> >>> Am I expecting too much?
> >>>
> >>> Rolf
> >>>

hmm
' Gambas class file

Public Sub _new()

  FontChooser1.SelectedFont = "Courier"
  Print FontChooser1.SelectedFont
  
End
seems to work ok here?


-- 
B Bruen 

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Error messages from library?

2016-04-27 Thread adamn...@gmail.com
On Wed, 27 Apr 2016 01:07:20 +0300
Jussi Lahtinen  wrote:

> Hi!
> I have two projects using same library (made with Gambas).
> When same functions are used in project 1, everything is OK, but from
> project 2 I got "Out of bounds". How can I see what happens in the library?
> 
> 
> Jussi

Hiya Jussi,

The way we do this here is that each library has a non-exported "test" module. 
I take it that you know the exact call structure and data from both project 1 
and project 2 when the dreaded OOB occurs.  It's a PITA but we simply add a 
test to the said module mimicking the exact calls and step through the library 
in the IDE debugger.

Most times the only result is that we find a new exception condition that we 
hadn't considered in the library code  :-( 
but then after adding traps for that . it begins to get clearer what the 
problem is.  :-(
 
That (those) damn OOB error(s) in libraries are now probably the most time 
consuming bugs we get and are usually something in the mainline &^#@!(^ data 
that we hadn't considered "possible (in a sane universe)".

Not a great deal of help but I feel your pain.  Back in Gambas 2 it was 
possible to debug libraries on the fly by creating links to the source classes 
in the client project. But that was AFAIK an undiscovered feature that went 
away at GB3. Such is life.

regards
bruce

-- 
B Bruen 

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Ideas? New tri-state control

2016-03-09 Thread adamn...@gmail.com
On Wed, 9 Mar 2016 09:10:01 +0100
Fabien Bodard <gambas...@gmail.com> wrote:

> This is a quick drawn usercontrol... 25 min.
> 
> You can add three properties to allow user to define the used pictures
> 
> Regards,
> 
> Fabien
> 
> 2016-03-09 8:22 GMT+01:00 Rolf-Werner Eilert <eilert-sprac...@t-online.de>:
> > Nice idea - but before re-inventing the wheel, you know that there is a
> > checkbox with tri-state functionality?
> >
> > What would be the advantage of your version over the existing one?
> >
> > Rolf
> >
> > Am 09.03.2016 05:30, schrieb adamn...@gmail.com:
> >> (We're just having a little think session here)
> >>
> >> Looking for the a good example of how to do a "draw it yourself" control.
> >>
> >> The control in question represents the value of a tri-state variable with 
> >> the values "Up", "Down" or "Not set" (out reasons are arcane but consider 
> >> something you want to specify a "default sort" for). So it would look like 
> >> a checkbox but instead of tick boxes it would have a pair of arrow images 
> >> and a "null" box.
> >>
> >> tia
> >> bruce
> >>
> >
> >
> > --
> > Transform Data into Opportunity.
> > Accelerate data analysis in your applications with
> > Intel Data Analytics Acceleration Library.
> > Click to learn more.
> > http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 
> 
> -- 
> Fabien Bodard

Excellent! I thought it would be much more complex.
thanks Fabien.

b
-- 
B Bruen <adamn...@gnail.com (sort of)>

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Ideas? New tri-state control

2016-03-09 Thread adamn...@gmail.com
On Wed, 09 Mar 2016 08:22:54 +0100
Rolf-Werner Eilert <eilert-sprac...@t-online.de> wrote:

> Nice idea - but before re-inventing the wheel, you know that there is a 
> checkbox with tri-state functionality?
> 
> What would be the advantage of your version over the existing one?
> 
> Rolf
> 
> Am 09.03.2016 05:30, schrieb adamn...@gmail.com:
> > (We're just having a little think session here)
> >
> > Looking for the a good example of how to do a "draw it yourself" control.
> >
> > The control in question represents the value of a tri-state variable with 
> > the values "Up", "Down" or "Not set" (out reasons are arcane but consider 
> > something you want to specify a "default sort" for). So it would look like 
> > a checkbox but instead of tick boxes it would have a pair of arrow images 
> > and a "null" box.
> >
> > tia
> > bruce
> >
> 
> 
Purely visual.

-- 
B Bruen <adamn...@gnail.com (sort of)>

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Ideas? New tri-state control

2016-03-08 Thread adamn...@gmail.com
(We're just having a little think session here)

Looking for the a good example of how to do a "draw it yourself" control.  

The control in question represents the value of a tri-state variable with the 
values "Up", "Down" or "Not set" (out reasons are arcane but consider something 
you want to specify a "default sort" for). So it would look like a checkbox but 
instead of tick boxes it would have a pair of arrow images and a "null" box.

tia
bruce 

-- 
B Bruen 

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] What's the best way to determine how a project was invoked?

2016-01-09 Thread adamn...@gmail.com
On Sat, 9 Jan 2016 22:35:24 +0100
Benoît Minisini <gam...@users.sourceforge.net> wrote:

> Le 09/01/2016 22:28, adamn...@gmail.com a écrit :
> > We have a set of "tools" that we use with Gambas. They are generally
> > stand alone and are invoked "by hand" and at startup the user selects
> > the Gambas source project to "attach" to. Now I want to provide some
> > integration between them, i.e. allow Tool_B to be invoked from a
> > Tool_A menu or button.  In that case, I want to pass a context, i.e.
> > the source project that is attached in Tool_A.
> >
> > What I want to determine is what's the best way to find out, in
> > Tool_B "how I was invoked".
> >
> > Currently I think that using gb.Args and passing a specific flag
> > option to indicate that has been invoked from another tool (I can
> > test that with Args.Has).
> >
> > But I'm not sure that this is really the "best" way.  Any thoughts?
> >
> > regards bruce
> >
> 
> What's the problem with passing arguments to a program ? There is just a 
> limit on the total size in bytes of the arguments. Run "xargs 
> --show-limits" to get it.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

OK, I just had a feeling...

On another tack, the gb.Args Args class help page contains the line:
"Return non-options as arguments."

What does that mean?

regards
bruce
-- 
B Bruen <adamn...@gnail.com (sort of)>

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


Re: [Gambas-user] What's the best way to determine how a project was invoked?

2016-01-09 Thread adamn...@gmail.com
On Sat, 9 Jan 2016 22:56:10 +0100
Benoît Minisini <gam...@users.sourceforge.net> wrote:

> Le 09/01/2016 22:51, adamn...@gmail.com a écrit :
> >
> > On another tack, the gb.Args Args class help page contains the line:
> > "Return non-options as arguments."
> >
> > What does that mean?
> >
> 
> Bad english of mine... It means that Args.End() will return a string 
> array of all arguments that were not interpreted as options or option 
> arguments.
> 
> -- 
> Benoît Minisini
> 
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

Ah! Of course.
tx
b
-- 
B Bruen <adamn...@gnail.com (sort of)>

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


[Gambas-user] What's the best way to determine how a project was invoked?

2016-01-09 Thread adamn...@gmail.com
We have a set of "tools" that we use with Gambas. They are generally stand 
alone and are invoked "by hand" and at startup the user selects the Gambas 
source project to "attach" to.
Now I want to provide some integration between them, i.e. allow Tool_B to be 
invoked from a Tool_A menu or button.  In that case, I want to pass a context, 
i.e. the source project that is attached in Tool_A.

What I want to determine is what's the best way to find out, in Tool_B "how I 
was invoked".

Currently I think that using gb.Args and passing a specific flag option to 
indicate that has been invoked from another tool (I can test that with 
Args.Has).

But I'm not sure that this is really the "best" way.  Any thoughts?

regards
bruce

-- 
B Bruen 

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


Re: [Gambas-user] Segfault with rev 7562

2016-01-08 Thread adamn...@gmail.com
Wow. I finally found it! Somehow the source (here) for gbx_class.c got 
corrupted with a bad character in the file. Even though svn said it was OK and 
updated, it was still the bad version that was being compiled.
(There was an #07 character/byte in the middle of the source file - it was only 
visible in hexedit  ?)
C'est la vie!
Sorry for the noise.

 best regards
bruce
 
On Thu, 7 Jan 2016 10:31:24 +0100
Benoît Minisini <gam...@users.sourceforge.net> wrote:

> Le 07/01/2016 05:26, adamn...@gmail.com a écrit :
> > I getting a segfault with gbr3.
> >
> > It happens when running any executable archive including the IDE.
> >
> > The gdb output is:
> > Program received signal SIGSEGV, Segmentation fault.
> > EXEC_special (special=11, class=0x80ac13c, object=0x813e68c, nparam=0, 
> > drop=1 '\001') at gbx_exec.c:1649
> > 1649if (CLASS_DESC_get_type(desc) == CD_STATIC_METHOD)
> > 2: index = 0
> > 1: desc = (CLASS_DESC *) 0x0
> >
> > The routine in gbx_exec.c is : bool EXEC_special(int special, CLASS *class, 
> > void *object, int nparam, bool drop).
> > The introductory code is:
> > CLASS_DESC *desc;
> > short index = class->special[special];
> >
> > if (index == NO_SYMBOL)
> > return TRUE;
> >
> > desc = CLASS_get_desc(class, index);
> >
> > if (CLASS_DESC_get_type(desc) == CD_STATIC_METHOD)
> >
> > The problem is that index is 0, this is occurring invariably when an 
> > Object[] class is being initialised. The backtrace is:
> > (gdb) backtrace
> > #0  0x08078d4e in EXEC_special (special=11, class=0x80ac13c, 
> > object=0x813e68c, nparam=0, drop=1 '\001')
> >  at gbx_exec.c:1649
> > #1  0x08079acb in EXEC_new () at gbx_exec.c:1947
> > #2  0x08082ac4 in EXEC_loop () at gbx_exec_loop.c:916
> > #3  0x08076da5 in EXEC_function_loop () at gbx_exec.c:931
> > #4  0x0807763f in EXEC_function_real () at gbx_exec.c:895
> > #5  0x08051168 in CLASS_run_inits (class=0x813a994) at gbx_class_load.c:1287
> > #6  0x0805120e in CLASS_load_real (class=0x813a994) at gbx_class_load.c:1323
> > #7  0x08062f15 in ARCHIVE_load_exported_class (arch=0x80c8584, pass=1) at 
> > gbx_archive.c:192
> > #8  0x0807035b in COMPONENT_load_all_finish () at gbx_component.c:147
> > #9  0x08055da3 in PROJECT_load_finish () at gbx_project.c:486
> > #10 0x0806530c in init (file=file@entry=0xbfffeeeb "./gambas3.gambas", 
> > argc=1, argv=0xbfffecc4) at gbx.c:103
> > #11 0x0804b390 in main (argc=1, argv=0xbfffecc4) at gbx.c:372
> >
> > A bit more info:
> > (gdb) disp class->special
> > 3: class->special = {12, -1, 21, 15, -1, 22, -1, -1, -1, -1, -1, 0}
> > (gdb) disp special
> > 4: special = 11
> >
> > i.e.  index = class->special[special] is the last entry in the 
> > class->special array.
> > and then
> > desc = CLASS_get_desc(class, index);
> >
> > (gdb) disp desc
> > 5: desc = (CLASS_DESC *) 0x0
> >
> > Finally, It happens the second time that routine is called. The first call 
> > executes properly (the value of the "special" param is 0).
> >
> > N.B. this is on a clean copy of the gambas source, not our local version.
> >
> > Any other info needed?
> >
> > regards
> > bruce
> >
> 
> No problem there... The 11th special method ("_ready") has been added in 
> revision r7541.
> 
> Did you try a recompilation and reinstallation from scratch?
> 
> Are you sure that you didn't have binary packages of previous gambas 
> versions installed that you didn't uninstall?
> 
> -- 
> Benoît Minisini
> 
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
B Bruen <adamn...@gnail.com (sort of)>

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


Re: [Gambas-user] Segfault with rev 7562

2016-01-07 Thread adamn...@gmail.com
On Thu, 7 Jan 2016 10:31:24 +0100
Benoît Minisini <gam...@users.sourceforge.net> wrote:

> Le 07/01/2016 05:26, adamn...@gmail.com a écrit :
> > I getting a segfault with gbr3.
> >
> > It happens when running any executable archive including the IDE.
> >
> > The gdb output is:
> > Program received signal SIGSEGV, Segmentation fault.
> > EXEC_special (special=11, class=0x80ac13c, object=0x813e68c, nparam=0, 
> > drop=1 '\001') at gbx_exec.c:1649
> > 1649if (CLASS_DESC_get_type(desc) == CD_STATIC_METHOD)
> > 2: index = 0
> > 1: desc = (CLASS_DESC *) 0x0
> >
> > The routine in gbx_exec.c is : bool EXEC_special(int special, CLASS *class, 
> > void *object, int nparam, bool drop).
> > The introductory code is:
> > CLASS_DESC *desc;
> > short index = class->special[special];
> >
> > if (index == NO_SYMBOL)
> > return TRUE;
> >
> > desc = CLASS_get_desc(class, index);
> >
> > if (CLASS_DESC_get_type(desc) == CD_STATIC_METHOD)
> >
> > The problem is that index is 0, this is occurring invariably when an 
> > Object[] class is being initialised. The backtrace is:
> > (gdb) backtrace
> > #0  0x08078d4e in EXEC_special (special=11, class=0x80ac13c, 
> > object=0x813e68c, nparam=0, drop=1 '\001')
> >  at gbx_exec.c:1649
> > #1  0x08079acb in EXEC_new () at gbx_exec.c:1947
> > #2  0x08082ac4 in EXEC_loop () at gbx_exec_loop.c:916
> > #3  0x08076da5 in EXEC_function_loop () at gbx_exec.c:931
> > #4  0x0807763f in EXEC_function_real () at gbx_exec.c:895
> > #5  0x08051168 in CLASS_run_inits (class=0x813a994) at gbx_class_load.c:1287
> > #6  0x0805120e in CLASS_load_real (class=0x813a994) at gbx_class_load.c:1323
> > #7  0x08062f15 in ARCHIVE_load_exported_class (arch=0x80c8584, pass=1) at 
> > gbx_archive.c:192
> > #8  0x0807035b in COMPONENT_load_all_finish () at gbx_component.c:147
> > #9  0x08055da3 in PROJECT_load_finish () at gbx_project.c:486
> > #10 0x0806530c in init (file=file@entry=0xbfffeeeb "./gambas3.gambas", 
> > argc=1, argv=0xbfffecc4) at gbx.c:103
> > #11 0x0804b390 in main (argc=1, argv=0xbfffecc4) at gbx.c:372
> >
> > A bit more info:
> > (gdb) disp class->special
> > 3: class->special = {12, -1, 21, 15, -1, 22, -1, -1, -1, -1, -1, 0}
> > (gdb) disp special
> > 4: special = 11
> >
> > i.e.  index = class->special[special] is the last entry in the 
> > class->special array.
> > and then
> > desc = CLASS_get_desc(class, index);
> >
> > (gdb) disp desc
> > 5: desc = (CLASS_DESC *) 0x0
> >
> > Finally, It happens the second time that routine is called. The first call 
> > executes properly (the value of the "special" param is 0).
> >
> > N.B. this is on a clean copy of the gambas source, not our local version.
> >
> > Any other info needed?
> >
> > regards
> > bruce
> >
> 
> No problem there... The 11th special method ("_ready") has been added in 
> revision r7541.
> 
> Did you try a recompilation and reinstallation from scratch?
> 
> Are you sure that you didn't have binary packages of previous gambas 
> versions installed that you didn't uninstall?
> 
Could be. 
Tried all the usuals : make clean; make uninstall etc. 
I'll get back to you.

Good clue though! I'll try with <7541  could be some 
Nah, I wont guess.

later
b

> -- 
> Benoît Minisini
> 
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
B Bruen <adamn...@gnail.com (sort of)>

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


[Gambas-user] Segfault with rev 7562

2016-01-06 Thread adamn...@gmail.com
I getting a segfault with gbr3.

It happens when running any executable archive including the IDE.

The gdb output is:
Program received signal SIGSEGV, Segmentation fault.
EXEC_special (special=11, class=0x80ac13c, object=0x813e68c, nparam=0, drop=1 
'\001') at gbx_exec.c:1649
1649if (CLASS_DESC_get_type(desc) == CD_STATIC_METHOD)
2: index = 0
1: desc = (CLASS_DESC *) 0x0

The routine in gbx_exec.c is : bool EXEC_special(int special, CLASS *class, 
void *object, int nparam, bool drop).
The introductory code is:
CLASS_DESC *desc;
short index = class->special[special];

if (index == NO_SYMBOL)
return TRUE;

desc = CLASS_get_desc(class, index);

if (CLASS_DESC_get_type(desc) == CD_STATIC_METHOD)

The problem is that index is 0, this is occurring invariably when an Object[] 
class is being initialised. The backtrace is:
(gdb) backtrace
#0  0x08078d4e in EXEC_special (special=11, class=0x80ac13c, object=0x813e68c, 
nparam=0, drop=1 '\001')
at gbx_exec.c:1649
#1  0x08079acb in EXEC_new () at gbx_exec.c:1947
#2  0x08082ac4 in EXEC_loop () at gbx_exec_loop.c:916
#3  0x08076da5 in EXEC_function_loop () at gbx_exec.c:931
#4  0x0807763f in EXEC_function_real () at gbx_exec.c:895
#5  0x08051168 in CLASS_run_inits (class=0x813a994) at gbx_class_load.c:1287
#6  0x0805120e in CLASS_load_real (class=0x813a994) at gbx_class_load.c:1323
#7  0x08062f15 in ARCHIVE_load_exported_class (arch=0x80c8584, pass=1) at 
gbx_archive.c:192
#8  0x0807035b in COMPONENT_load_all_finish () at gbx_component.c:147
#9  0x08055da3 in PROJECT_load_finish () at gbx_project.c:486
#10 0x0806530c in init (file=file@entry=0xbfffeeeb "./gambas3.gambas", argc=1, 
argv=0xbfffecc4) at gbx.c:103
#11 0x0804b390 in main (argc=1, argv=0xbfffecc4) at gbx.c:372

A bit more info:
(gdb) disp class->special
3: class->special = {12, -1, 21, 15, -1, 22, -1, -1, -1, -1, -1, 0}
(gdb) disp special
4: special = 11

i.e.  index = class->special[special] is the last entry in the class->special 
array.
and then
desc = CLASS_get_desc(class, index);

(gdb) disp desc
5: desc = (CLASS_DESC *) 0x0

Finally, It happens the second time that routine is called. The first call 
executes properly (the value of the "special" param is 0).

N.B. this is on a clean copy of the gambas source, not our local version.

Any other info needed?

regards
bruce




-- 
B Bruen 

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


[Gambas-user] @Benoît

2015-12-31 Thread adamn...@gmail.com

Hi, and happy new year.

Just to start off everything right here :-(, I have inadvertently deleted every 
copy of my logins and passwords to everything :-(
Could you delete me from the wiki and farm please - users b.bruen and/or bbruen 
so I can reregister.

thanks
b
-- 
B Bruen 

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


Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread adamn...@gmail.com
On Tue, 29 Dec 2015 16:54:29 +0100
Fabien Bodard  wrote:

> To resume ... in the old past of ascii all standart printer or monitor
> can manage ascii and print 32 to 127 chars. So Ansi C provide a
> standart function named IsPrint that allow to say if a char was able
> to be printed.
> 
> IN 2015... Ascii is known in it's 8 bit format so printable chars are
> from 32 to 255.
> 
> Characters lower than 32 are for monitor, modem and printer management.
> 
> Thanks to my terminal studie i'm now able to understand all of that :-).
> 
> It's really interresting to study the past ...

Having been part of that "past" (and I hope that doesn't mean you are going to 
"study" me...) let me expand your knowledge a bit (I hope).

Long ago and far far away, there were only three (or four) ways to 
"permanently" store  data, on paper tape, on magnetic tape, on punch cards or 
perhaps on paper. The latter being the only medium, that which we called 
"wetware" (humans), could readily understand.  Each  computer manufacturer used 
their own codification for the data they stored. Hence we had such wonderful 
things as EBCDIC, Baudot and CDCcode.  Which was fine as long as the customer 
bought their entire gear from one company, e.g. IBM, CDC, Univac etc.  Then 
along came a thing called the Kennedy tape drive.  This drive you have seen on 
old sci-fi movies, they were (originally) about 6 foot tall and have two spools 
that seem to oscillate in their rotations.  Here is a couple of pictures, the 
first to jog your grandfather's memory of the computer's greatest era and the 
second to explain the following.
http://images.spaceref.com/news/loirp/196704_6.l.highlight.jpg
https://en.wikipedia.org/wiki/File:IBM_System_360_tape_drives.jpg
What was magical about those drives were the two long vertical gray "bars" 
below the middle blue panel.  These were vacuum "tubes" that enclosed loops of 
tape "loosened" from the two spools. Why?  Because, since most tape operations 
in those days involved repeated access to the same area of a particular spool, 
this allowed the capstan that moved the tape to and fro across the read and 
write/erase heads to move at a much faster speed than the tape could be reeled 
on and off the spools, Hence that backwards and forwards movement of the spools 
seen in the old movies.
The other "magical" aspect of the Kennedy drives is that they were incorporated 
in the hardware of different computer manufacturers. This resulted in a need 
for a (or at least several) "standard" data encoding mechanism(s). 
To cut a (very) long story short along came ASCII.   Or to be very specific the 
7-bit variant thereof.  Why 7 bit? Because 2^7 = 128 and that, then was 
considered the efficient length for data encoding that could be passed across a 
modem between two devices.  Thus we get the lower 32 (IMHO) badly named 
"control characters" and the 96 very, very badly named "printable characters"!  
Why the latter? Because char(128) is NOT printable on a mechanical printer, not 
one manufactured to my recollection could actually delete (DEL) the previous 
character!  They did not have erasers. Also, many (ahem) printing devices of 
that day did "different" things when you send them a DEL. 
In the former case, to my mind, some of these "control characters" are (were) 
actually "printable". Notably the char(7) "BEL" character which caused the 
"printer" to sound an actual bell or (if they were the "fancy" ones a "BEEP".  
Others are the char(9) through char(13) set, i.e. HT, LF, VT, FF and CR 
characters. These made the "printer" do something and if you think about it 
those "somethings" are not dissimilar to what they did with a char(32), the 
infamously unnamed SPC character. They all "printed" white space, aka "nothing" 
for a specific length of character spaces. (Aside: One of the peculiar skills 
computer professionals of that era had was the recognition of those 
"nothings"!)  
Of the other supposed "control characters" they actually had two (in fact 
several) general purposes. Firstly, some of them actually "controlled" the 
communication between the sending and receiving devices.  These were STX, ETX, 
EOT, ENQ, ACK, DLE, DC1-4, NAK, SYN, ETB.  Thank the gods for these, otherwise 
we would not have the TCP stack.  
Secondly, some were specific data "items": SOH, FS, GS, RS and US and the 
dreaded EOM! (Aaargh no more tape!).  These were particularly useful for 
serially encoded data (and what we now call data streams).  The others had some 
generally arcane meanings but proved useful anyway: SO, SI, DLE, CAN, SUB and 
to some extent ESC. When I say useful I mean someone somewhere must have needed 
them - I can't say I ever did. 
This (unless I have forgotten any) leaves the notorious NUL character - which 
from my memory never actually did anything at all (but was handy if you wanted 
to send some sort of "hang in there bozo" message to the receiver).
Now, to get back to a bit of hardware.  

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread adamn...@gmail.com
On Tue, 29 Dec 2015 15:07:53 -0500
Stephen  wrote:

> On 12/29/2015 10:54 AM, Fabien Bodard wrote:
> > To resume ... in the old past of ascii all standart printer or monitor
> > can manage ascii and print 32 to 127 chars. So Ansi C provide a
> > standart function named IsPrint that allow to say if a char was able
> > to be printed.
> >
> > IN 2015... Ascii is known in it's 8 bit format so printable chars are
> > from 32 to 255.
> >
> > Characters lower than 32 are for monitor, modem and printer management.
> >
> > Thanks to my terminal studie i'm now able to understand all of that :-).
> >
> > It's really interresting to study the past ...
> >
>It's more interesting to have LIVED it and now be working with UTF-8.
> ASCII was SOOO simple, but also S restrictive.
> 
> > 2015-12-29 16:39 GMT+01:00 Fabien Bodard:
> >> But is print just take into account the old asci table
> >>
> >>
> >> 2015-12-29 16:35 GMT+01:00 ML:
> >>> All,
> >>>
> >>> I might be utterly wrong, but since Linux normally uses UTF-8, any
> >>> high-bit-set char may be interpreted as one of the "multibyte char" flags.
> >>> If isprint() takes this into account, then it's dead right that char by
> >>> itself is not printable!
> >>>
> >>> Hope that helps and makes sense...
> >>>
> >>> On 2015-12-29 11:53, Ru Vuott wrote:
>  Tchao Fabien,
>  Ru ..  Characters>  to 127 are printable...
>  uhmmm... excuse me, but I do not understand.
>  If I test the "printability" :-)  of "characters>  to 127" by using C 
>  "isprint()" function (that checks whether the passed character is 
>  printable), I obtain only zero results.
>  Where: "isprint()" function returns a non-zero value (true) if character 
>  is printable, else zero (false) if character is NOT printable.
> 
>  *
>  #include
>  int main() {
> int i, c;
> for (i=128; i<= 255; ++i) {
> c = isprint(i);
> printf("%d %d\n", i, c);
> }
>  return (0);
>  }
>  *
>  So, it seems resulting that "characters>  to 127" are NOT printable 
>  characters.
>  Ciao

Yes and no.  Short answer: 129 though 255 are "extended ACSII"  - a very 
nebulous area.  What is "printable" depends on the "printing device" "character 
code" set.
The character "Ⱶ"  is part of a code set I recall being called the "box 
drawing" set that was used on some CRT "print" devices from a bygone era (aka 
before Unicode).
In fact, the fact that I can see and recognize it means something.  The 
following is a link to an archived article in which you can see the "amazing" 
things that were done with such code sets in the 1980's.

https://books.google.com.au/books?id=C6JUZUHEBuAC=PA327=PA327=the+software+bottling+company=bl=dCVO1ZWFmo=tzzYiReg3OW8NI65rmBvQXo1GXU=en=X=0ahUKEwiC_PHvqYLKAhXjFqYKHRgrCmc4ChDoAQgwMAA#v=onepage=the%20software%20bottling%20company=false

cheers
bruce

> >>> --
> >>> ___
> >>> Gambas-user mailing list
> >>> Gambas-user@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >>
> >> --
> >> Fabien Bodard
> >
> >
> 
> 
> -- 
> Kindest Regards
> Stephen A. Bungay, Prop.
> Smarts On Site Information Systems
> 
> 
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
B Bruen 

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


Re: [Gambas-user] POSSIBLE! bug in while loop

2015-12-28 Thread adamn...@gmail.com
Add a Wait instruction after n=n+1 to invoke the Event Loop. (Research the help 
on this)
Also see Inc.

hth
b
On Tue, 29 Dec 2015 02:55:41 + (UTC)
Robert Boykin  wrote:

> Test Program code is:
> ' Gambas class file
> 
> ' Static Private iexit As Integer = 0
> Public Sub _new()
> End
> 
> Public Sub Form_Open()
>  GlobalVar.iexit = 0
> End
> 
> Public Sub GObtn_Click()
>  Dim n As Integer
>  n = 0
>  While n < 10 
>  Print n
>  n = n + 1
>  If GlobalVar.iexit > 0 Then Break
>  Wend
> End
> Public Sub exitBtn_Click()
>  GlobalVar.iexit = 10
> End
> 
> This is gambas3 on linux mint 17.3 using gb.qt4
> running on a generic desktop PC
> 
> The simple form has two buttons, 
> one to start a while loop
> that prints numbers to the console, and
> one to set a global variable to a value which
> should cause a break in the while loop. 
> 
> The global variable is defined in the class GlobalVar 
> ' Gambas class file
> 
> Static Public iexit As Integer = 0
> 
> The program begins printing numbers upon clicking the Gobtn
> but will not stop printing when the exitBtn is cliked.
> 
> It appears that the exitBtn _Click() event is not recognized
>  during execution of the while loop.
> 
> I am just learning gambas on my own using
>  what examples and tutorials I can find on the internet 
> and believe I may have left something out.
> 
> Robert S. Boykin
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
B Bruen 

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


[Gambas-user] small date problem

2015-12-24 Thread adamn...@gmail.com

If Date(Now) = Date(2015,12,25) Then
Print "May your day be joyous,\nMay your evening be serene,\May you and 
your family have peace, company and health."
EndIf

b
-- 
B Bruen 

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


Re: [Gambas-user] Removing projects from the gambas boot up list

2015-12-21 Thread adamn...@gmail.com
On Tue, 22 Dec 2015 08:10:41 +1100
richard terry  wrote:

> Hi list,
> 
> Wondered if anyone could remind me how to remove the list of recent 
> projects from the boot up screen.
> 
> Feature request:
> 
> 1) could we have an option on that screen to clear recent projects
> 2) Could be have the pathway's displayed somehow, I sometimes have had 
> to run different versions of my program whilst developing it - a more 
> stable tree I actually use at work and a less table tree often work on 
> in-between patients!
The popup menu in the panel gives the option to sort by path. That with the 
filter box should allow you to solve 2)

hth
b
> 
> Thanks
> 
> Richard
> 
> 
> 
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
B Bruen 

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


Re: [Gambas-user] [Gambas Bug Tracker] Bug #876: please return the edit menu to root (cut, copy, paste)

2015-12-18 Thread adamn...@gmail.com
On Fri, 18 Dec 2015 23:25:00 -0430
PICCORO McKAY Lenz  wrote:

> due in the DEL XPS touchscreen are more practice the hand over he
> keyboard.. (not the mose... i not have mouse either keyboard in this
> good laptop)
> 
> my keyboard are 100% in the screen and key combination are tedious!
> 
> 

Give me strength! 

Nope.

Piccoro,
Fair crack of the whip, sunshine. Youse are gunna really have to come to a 
better grip of this Engrish.
I been spiklka de leng for about 60+ years, but that one has really got me 
buggered.

As far as I know, If you marinade your mose in Calvados for a few days it may 
become a bit more tender.


(and by the way, may you and yours have a great festive season, no matter which 
deity ... 
-- 
B Bruen 

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


Re: [Gambas-user] IDE - a stupid question

2015-12-16 Thread adamn...@gmail.com
On Wed, 16 Dec 2015 23:44:16 +0100
Moviga Technologies  wrote:

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


I think F4 by default hides or expands the entire Properties panel.

I don't think the "ToolBox" is "disappeared" it is just collapsed (hidden) 
inside its' vertical side panel. Just above the bottom margin of the IDE form 
in the properties panel you should be able to hover the mouse over the side 
panel grab handles. ... let's see if I can include a pic ...

hth
bruce_PNG

9_L_N__Sv_Q_^ê8,0K
__(___#_*c__5&_…_@@M_>_lN__J!_ƻȉ__^_6D__,_A  
_L_8@Z_^@yZ__e97Z&___-_7__`__p_4?g_/7>___>c~_(Ȼ__dzo^__g'S__ɜx|__V5_V
i__X_H_Dž_V___H _ 
(DAޚ'kH_#___|__4Pα4_!(______@D_@˖_|||jשu_____c]_9__ٹV_Z____:zU@_(2_ƙ5__-_%oW̖_e_%___S_e_~__˚__

WTs_H__ņ_+_'_J'___'dK_ec_O__)g~__PqNy__S___Nu_|__Rs~_____H;_ę~jL?Ѻ|/˻c9X_,__X>פ_wÓ_n___w_=__Oީ___x?__s_[___k___p__.U_]_l@VCT9Uf_F___ᑃ__'__L_!A_w___Ee_ZO_}_j_(ti_x__ǁ___s___ȯ_oqO=__ę憈____/Y_____ӏ___b____Mh]ɧ___w__3O___~__w`_1_~___S_____O*_(QŖ___{_tAwel_%_oNFDF___9__ܻ_,__K__pgg__n9_(__Ol___O_݌_w;__-_}e|
 
jz_F__UΜ:___X_V͐_5___^_T___˗__C_T__.m1~ֈ1|^Ǒ'__v_____41ޛ_Ŵy__8iͰo_X_Y_o__lͥ[\__gŃ_BYG%_n__嶲_G_G__Ƽ___3փ__o___}ޥWW_y_Ǯ__:|____v^g_uq__m_|___M8g]K5___KjR__t_F___l_ƅm=_6_J_8_o5-_Sp__7_^H_X_d|jX̷_޽\_\kժ)_
   
____u__I_%__s_1d_`rng2___/*k9@___F#__w__T_@_U___)_p_9_ϟ?w_ĖA__v_____o1;6__h__Ӳ_t,WE݃;_I&_
 
____O_G_A?o:_8___.__ٟBf_A___A)+l˜SIF]_9_:4=\ڶ__?c_RJ_q"__un__2}c___ұb___w_>___ݱ_gc_,b__iytd__$8_J_]^Mk___c_2___u_0_Sb_b___;_ޟPY_DzoVUu____巾_3p__u_uR___vu=晉_h2-_7____iys___d_o|_l
_W_ǭ1y.____HO_[▞_q____
__=__#bzz__~CN_<__=__GO__%aQ_X_3__N_;~ֹA_G_Z-h__qO_a_u__b?z__i_Y)d__xپsK__q_fL_n_kV_m۾̈́___DO__e^
__qS_M_^___-_!_$=}_
7d0_ 
_m߆___޻a__dz_|S_g__ooj_R__3P$Q|__0.."99__?_]D8W_V__o__P*_2^@
__TC҇_]___S_A__5s_-__\_p____޿n__6*__2_m__|Oh__w*Ӭ__5__05_5ҽs_-_6_,___d_0_Wd_t_Q1=__:|__;__d_=__υ=JΖԎE_6hն~I___p__x`ҴK___+_N_|_Q_ڕyfP֭_37__________WOޢo3fv_"b侹_&_q__™____Ke___;fΛ__at__Q___y___w__c[__^_:t)[___#_ލSX_2_W_Y__dg_0_׮_KI.0SPP__'_@__x?___>u_T_ƍJ_S*Ϟo_____ڵk[}_`0_WN_<T_j___zCV_.___
Ͽ___'_=
__D0__j_1____;__f_^__)___M6lذI_I___U___k_Z7jذa___ʞvrR_&
6lشӌ___ƿ_Fm#__   
?ﮧL)G___Vx_)5|Ւ___^))+l__c)߽&_/_z_MP_Q҅__N_?__ɔ__[7r__?3_?Rx_֍___
e+EF? o_b___}>;b_R__
'_@__X:_____\_\e0&___ѽ_kaƘ)-4___m_6{_Yi|_____:,K___
Vۙ(t]_R_cǝϐ@_NL6_e_
___"f_9__5___m_l___4y___%__&_R_UtQJ__a)<__+__ڭ_k_p_&_\__IEa_̎0_h_
_Y!__Ld1__UO____!__L__,X_k_"_u_L?__)R_%__T._Nʣ)F{Wu__-*46|_gq___*oFF_/jӐh__%rO%*"h_+_`UB__
_D__r_,d__Q_|_*__LWm_(4ݧ_0_įK._K_S_A#!___F_Id[_/CM__m;
_D @A_&I__$ _H__{=__B
m_MX__Ъy__J_t___催lv_N_b_Ľ_WY#___i__%___?1HI$_____:_`v___+9_#__|}_

qWR_17_s_7___S9__N/Sr__b_k/sZXr__:S_U_w=5_9C_M˟Jm___9__}__ҽo|___dJ5ɕ_*g_G_x_|0st_"
_ٰ___N$V__)__p|__t 
_FC__(_x>_*8__$@ʎ__.T__m"_+ݩ_f֣_j_b/___O:ϣ____eM"$__=}Ѻ__uz_ڳiN_g
\Gy\BH<_h]@է|_6_.___V_6o_'f_ո_=___Z__
:_~A___=__˔_2__!0__>O_)3O__`0__ن_W>_)35d0_Sf_2__`0O__`0O_y_
_y__Sf0___Ԑ_`0_2SC__x__PJ><_Uc_F_,_h5_`誾=__ߦ_c  
__n1F___{__W_m)mZu_p%__E$~=1_S__9eε__ݍw__-___n_t_wl_o}b__tM~_r1_"_
 
_[__EKPA}~_A____g_nS>6IBҡQL__?_t___^"__]#__ܟ(_{[t_})C")___.&!qߐwF_Hʼ6_K___YDƇ__l_s__D3Y_1r__v_{1C")__w__m{l&1q__._B__R4?_>__w_̒9___N}_>_|__w__

Vӕ__~_e__$_Ȝtf___tiO_ɒr____Ř____u__&_D_ukr__ę__`%___[_u__j_D$e^__V__W_؝_;_9_*__ڤ.}7F祑___,__Lc__/Z_\v3K_2._oע__qa\_~;c___Ŋf__
o_'Z_Z*_K___ñ$A2D_ݱE__O|__

Re: [Gambas-user] Gridview

2015-12-11 Thread adamn...@gmail.com
On Sat, 12 Dec 2015 07:01:14 +0100
Fabien Bodard  wrote:

> can you send me a short example that show the poblem ... i can't reproduce it
> 
> 2015-12-12 5:51 GMT+01:00 Buster Seven :
> > Its not exacly how i want to fix it but i can handle that
> > so is this no longer how it's ment to work?
> >
> > Thanks
> >
> >
> > On Wed, Dec 9, 2015 at 7:54 PM, Rolf-Werner Eilert <
> > eilert-sprac...@t-online.de> wrote:
> >
> >>
> >> Am 09.12.2015 09:44, schrieb Buster Seven:
> >> > I use to be able to do this code GridView1.Font.Strikeout = True
> >> > and the row in the gridview would be strikedout but it no longer works
> >> > any ideas.
> >> >
> >> >
> >> >
> >>
> >> I just had this problem a few days ago, and after searching for a long
> >> time it turned out that I had a lost line with
> >>
> >> GridView.Data.Text = 
> >>
> >> before the line
> >>
> >> GridView.Data.RichText = 
> >>
> >> Maybe a similar thing in your case? Or just try
> >>
> >> GridView.Data.RichText = "" & myText & ""
> >>
> >> Regards
> >> Rolf
> >>
> >>
> >>
> >> --
> >> ___
> >> Gambas-user mailing list
> >> Gambas-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> > --
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 
> 
> -- 
> Fabien Bodard
> 
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


Always, check Font.Styles that it does support strikeout.
b
-- 
B Bruen 

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


Re: [Gambas-user] Query re the form Scaled property

2015-12-08 Thread adamn...@gmail.com
On Wed, 9 Dec 2015 03:04:21 +0100
Benoît Minisini <gam...@users.sourceforge.net> wrote:

> Le 09/12/2015 02:05, adamn...@gmail.com a écrit :
> > The help for that property says: "If the form and controls dimensions
> > must follow the size of the default font." (loosely corrected to "If
> > true then the form and controls dimensions will follow the size of
> > the default font.")
> >
> > Which "default font" are we talking about here?
> >
> > I assumed (in the case of QT4) that it is the user's "default font"
> > as configured by qtconfig. But now I'm not sure, as no matter where I
> > change "Default" font - for the system, the user, the form or in the
> > IDE preferences - I always get a Desktop.Scale of 7.
> >
> > tia bruce
> >
> 
> "Default font" is Application.Font.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
Ah, thank you.
Now it all scales properly again.
b

-- 
B Bruen <adamn...@gnail.com (sort of)>

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


[Gambas-user] Query re the form Scaled property

2015-12-08 Thread adamn...@gmail.com
The help for that property says:
"If the form and controls dimensions must follow the size of the default font."
(loosely corrected to "If true then the form and controls dimensions will 
follow the size of the default font.")

Which "default font" are we talking about here?

I assumed (in the case of QT4) that it is the user's "default font" as 
configured by qtconfig. But now I'm not sure, as no matter where I change 
"Default" font - for the system, the user, the form or in the IDE preferences - 
I always get a Desktop.Scale of 7.

tia
bruce

-- 
B Bruen 

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


Re: [Gambas-user] Egads! A new (nasty) error message

2015-12-04 Thread adamn...@gmail.com
On Fri, 4 Dec 2015 11:52:12 +0100
Benoît Minisini <gam...@users.sourceforge.net> wrote:

> Le 04/12/2015 05:58, adamn...@gmail.com a écrit :
> > On Wed, 2 Dec 2015 14:06:20 +1030 "adamn...@gmail.com"
> > <adamn...@gmail.com> wrote:
> >
> >> Generally lately, I'm getting the following error in "random"
> >> places: [42] System error #27: File too large.
> >>
> >> Que?
> >>
> >> bruce
> >
> > Some more information.
> >
> > This is (still "randomly") happening. Error #27 text should be
> > "Cannot load component" --> (CLUE?) It happens (more frequently)
> > when "/tmp" is on a partition that is getting full (>95% used) and
> > the fattest /tmp user is gambas.500 i.e. me  --> (CLUE?)
> 
> No, see Tobias' mail.
> 
> >
> > By random places I mean that sometimes it happens when I'm trying to
> > open a project in (another) instance of the IDE and also that the
> > backtrace line that is reported seems (so far) to be entirely
> > "random" i.e. on gambas3 line X where, when I look at that line seems
> > to have nothing to do with file access.
> >
> > However, it does seem to have something to do with loading a
> > component.
> >
> > I have grep'ed the entire source of rev 7495 (both a "pristine" copy
> > and our local mod'ed version) for the string "File too large" with no
> > success :-( I also cannot understand the "[42]" at the beginning of
> > the error message :-(
> >
> > I am in a "maze of twisted little passages that are all different"
> > here, any clues, suggestions gratefully accepted.
> >
> > regards bruce
> >
> 
> Free space in "/tmp" is mandatory for the interpreter, to load 
> translations. How is "/tmp" configured on your system exactly?
> 
> And please give the exact error messages you get instead of your 
> interpretation.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
> --
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


I think we can stick this on the back-burner for a while.  I also think you 
have hit the right clue, it does appear to be when a (local) component is 
translatable and it is loaded either by the IDE or the executable when running 
it outside the IDE.  I did not include the full error message including the 
back trace that is displayed in the message box (or the backtrace in the 
message area inside the IDE) as it appeared to me to be totally random, e.g. it 
would indicate different lines in different classes inside the IDE code 
depending on "how I set my tongue"* when I tried to load the said project. (* 
hope that is translatable?)

One strange thing was, let's say it occurred for project xxx, when I loaded it 
in the IDE, the IDE would abend after displaying the popup message. But, if I 
ran the IDE inside the IDE and loaded xxx in there, it didn't fail nor did it 
show the error.

Anyway, I have moved /tmp to a less space constrained partition and that seems 
to have solved my problem.

My original query was : What does the "File too large" error message mean? I 
guess now it is "Attempt to load (some) file (somewhere) has failed due to 
insufficient free disk space (or something)" . I went off on the wrong track 
looking for an oversized file somewhere in a component, wondering what is "too 
large" .  Its pretty ambiguous, like I thought I may have used a huge image 
file for a Picture property on a control or something, or that maybe there was 
some data file constraint inside the compiler for files included within the 
archive.

Never mind.
regards
bruce

-- 
B Bruen <adamn...@gnail.com (sort of)>

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Egads! A new (nasty) error message

2015-12-04 Thread adamn...@gmail.com
On Fri, 4 Dec 2015 22:54:08 +0100
Benoît Minisini <gam...@users.sourceforge.net> wrote:

> Le 04/12/2015 22:46, adamn...@gmail.com a écrit :
> >
> >
> > I think we can stick this on the back-burner for a while.  I also
> > think you have hit the right clue, it does appear to be when a
> > (local) component is translatable and it is loaded either by the IDE
> > or the executable when running it outside the IDE.  I did not include
> > the full error message including the back trace that is displayed in
> > the message box (or the backtrace in the message area inside the IDE)
> > as it appeared to me to be totally random, e.g. it would indicate
> > different lines in different classes inside the IDE code depending on
> > "how I set my tongue"* when I tried to load the said project. (* hope
> > that is translatable?)
> >
> 
> /tmp is used for storing all temporary files created by the interpreter. 
> It's not always language files.
> 
> > One strange thing was, let's say it occurred for project xxx, when I
> > loaded it in the IDE, the IDE would abend after displaying the popup
> > message. But, if I ran the IDE inside the IDE and loaded xxx in
> > there, it didn't fail nor did it show the error.
> >
> > Anyway, I have moved /tmp to a less space constrained partition and
> > that seems to have solved my problem.
> >
> > My original query was : What does the "File too large" error message
> > mean?
> 
> It does not necessarily means something. I mean, it depends on the 
> system call returning that error.
> 
> This is the reason why I need the exact error messages returned by the 
> interpreter, and/or the line of code in the project or the IDE that 
> raises that error. Please provide them.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
> --
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


OK, I think I've got this now...
The interpreter issues a system call, then gets a fail with an error code 
"EFBIG". EFBIG (from searching the GNU C library docs) means "File too big; the 
size of a file would be larger than allowed by the system." which could occur 
for some number of reasons.  
In my case, it seems to have occurred because "writing or copying or moving" 
the said file to the /tmp directory would have (over)filled the partition.  So 
when the interpreter tries to write something to the /tmp directory and there 
would be not enough room, the system call fails with the EFBIG error code or 
the specific C library error description "File too large" which is then 
displayed as "[42] System error #27: File too large." plus the traceback.

So, I'm happy. I now understand what was happening. Thanks Benoît and Tobi.
I also understand now why it seemed so random. Given any mix of processes 
active and using /tmp for their valid purposes, when I tried to invoke a 
.gambas file or when I tried to load some project in the IDE, it could actually 
occur at any point during the invocation or load.

Special thanks to Tobi for the expanation of the error message - even if it 
took me ~8 tries and Benoît's " It does not necessarily means something. I 
mean, it depends on the system call returning that error." before it finally 
sunk in.
If there is anything positive about this, I will henceforth look at a "[42] 
System Error #nn" message with a lot more knowledge.

Again, thanks guys for the input.

best regards
bruce





-- 
B Bruen <adamn...@gnail.com (sort of)>

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Egads! A new (nasty) error message

2015-12-03 Thread adamn...@gmail.com
On Wed, 2 Dec 2015 14:06:20 +1030
"adamn...@gmail.com" <adamn...@gmail.com> wrote:

> Generally lately, I'm getting the following error in "random" places:
> [42] System error #27: File too large.
> 
> Que?
> 
> bruce

Some more information.

This is (still "randomly") happening. 
Error #27 text should be "Cannot load component" --> (CLUE?)
It happens (more frequently) when "/tmp" is on a partition that is getting full 
(>95% used) and the fattest /tmp user is gambas.500 i.e. me  --> (CLUE?)

By random places I mean that sometimes it happens when I'm trying to open a 
project in (another) instance of the IDE and also that the backtrace line that 
is reported seems (so far) to be entirely "random" i.e. on gambas3 line X 
where, when I look at that line seems to have nothing to do with file access.

However, it does seem to have something to do with loading a component.

I have grep'ed the entire source of rev 7495 (both a "pristine" copy and our 
local mod'ed version) for the string "File too large" with no success :-(
I also cannot understand the "[42]" at the beginning of the error message :-(

I am in a "maze of twisted little passages that are all different"  here, any 
clues, suggestions gratefully accepted.

regards
bruce

-- 
B Bruen <adamn...@gnail.com (sort of)>

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] IDE global search question

2015-12-03 Thread adamn...@gmail.com
On Thu, 3 Dec 2015 23:37:57 +1100
richard terry  wrote:

> Hi list,
> 
> I 'm doing some major surgery on my medical records program and wondered 
> if one can use a wildcard search in the project wide search box or regex
> 
> thanks
> 
> Richard
> 

Yes, you can. Just use the Ctl+F shortcut to open the search dialog. You'll see 
that one of the Options is Regular Expression (and of course you need to select 
either Source Files or All Files as the Search In preference).

But! (Heehee) You will occasionally get "false positives" in the results. For 
example, I used *[Pp]roj* as my search string and get all the expected hits, 
but also hits on "Property..." and "... ProgIcon ..." and a few others.  So 
beware of global replaces.

regards
bruce

-- 
B Bruen 

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Am I the only one getting old?

2015-11-23 Thread adamn...@gmail.com
On Tue, 24 Nov 2015 04:45:05 +0100
Benoît Minisini <gam...@users.sourceforge.net> wrote:

> Le 24/11/2015 04:31, Benoît Minisini a écrit :
> > Le 24/11/2015 03:32, adamn...@gmail.com a écrit :
> >> Is there any way to increase the width of the hit point for the
> >> GridView column width grab handle?
> >>
> >> It seems to be about one pixel wide here and my mouse motor skills are
> >> decreasing ... :-(
> >>
> >> regards
> >> bruce
> >>
> >
> > The column width or row height handle is -four- pixels wide. Isn't it
> > enough?
> >
> 
> I have increased their size to 150% of Desktop.Scale in the last 
> revision. On my current desktop it is now 11 pixels wide instead of 4.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 

Aha! About a gazillion times better - especially on the RHS column!

thanks
bruce

-- 
B Bruen <adamn...@gnail.com (sort of)>

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Am I the only one getting old?

2015-11-23 Thread adamn...@gmail.com
Is there any way to increase the width of the hit point for the GridView column 
width grab handle?

It seems to be about one pixel wide here and my mouse motor skills are 
decreasing ... :-(

regards
bruce

-- 
B Bruen 

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   3   >