[Gnoga-list] Test Posting

2015-09-02 Thread Jeffrey R. Carter
I sent a msg to this list a few days ago, and have not had it sent back to me, nor seen any responses to it. I've seen other postings on the list, so it seems to have disappeared down a hole somewhere. It had an attachment, but I've seen posts on here with attachments, so I presume that was not the

Re: [Gnoga-list] Test Posting

2015-09-02 Thread Jeffrey R. Carter
On 09/02/2015 11:29 AM, Jeffrey R. Carter wrote: > I sent a msg to this list a few days ago, and have not had it sent back to me, > nor seen any responses to it. I've seen other postings on the list, so it > seems > to have disappeared down a hole somewhere. It had an attachme

Re: [Gnoga-list] Test Posting

2015-09-02 Thread Jeffrey R. Carter
On 09/02/2015 11:58 AM, Rabbi David Botton wrote: > > Just resend then. > > I've done that, and it hasn't been sent back to me after 30 mins, while the others came back in less than a min. The attachment is a .zip file; would that cause a problem? -- Jeff Carter "Virgil complains, and he is sever

Re: [Gnoga-list] Test Posting

2015-09-02 Thread Jeffrey R. Carter
On 09/02/2015 02:33 PM, Rabbi David Botton wrote: > Could be. Usually though I get a message to approve bad messages. OK, I'll try again with the source in line. -- Jeff Carter "Virgil complains, and he is severely tortured. For several days he is locked in a sweat box with an insurance salesman

[Gnoga-list] Lining Things Up

2015-09-02 Thread Jeffrey R. Carter
This was a problem I had with buttons for Mine Detector, and I'm not really sure what things I did there were essential and which could have been left off. In this case I'm trying to line up vertically stacked form text boxes with attached labels. Here's a silly little program that illustrates the

Re: [Gnoga-list] Test Posting

2015-09-02 Thread Jeffrey R. Carter
On 09/02/2015 04:41 PM, Jeffrey R. Carter wrote: > OK, I'll try again with the source in line. That worked. New rule: no .zip attachments. -- Jeff Carter "Virgil complains, and he is severely tortured. For several days he is locked in a sweat box with an insurance salesman."

Re: [Gnoga-list] Lining Things Up

2015-09-09 Thread Jeffrey R. Carter
On 09/02/2015 04:47 PM, Jeffrey R. Carter wrote: > Here's a silly little program that illustrates the problem. I've tried > everything I can think of but I can't get the 2 input boxes to line up. Do I take it there's no way to do this? -- Jeff Carter "I'm

Re: [Gnoga-list] Electron vs Gnoga

2015-10-29 Thread Jeffrey R. Carter
On 10/29/2015 01:27 PM, tony gair wrote: > Looks pretty interesting, how did the wedding go? > > On Thu, Oct 29, 2015 at 6:34 PM, Rabbi David Botton > wrote: > > > > Here is an interesting project that is similar to Gnoga and perhaps I can > integrate: > > http

Re: [Gnoga-list] button grids!

2015-10-31 Thread Jeffrey R. Carter
On 10/31/2015 11:15 AM, tony gair wrote: > > Dear Gnognistas, > has anyone done a button grid ? Iseem to remember some folks talking > about one Take a look at the Mine_Detector demo. -- Jeff Carter "Monsieur Arthur King, who has the brain of a duck, you know." Monty Python & the Holy Grail

Re: [Gnoga-list] Twin Girls

2015-11-13 Thread Jeffrey R. Carter
On 11/13/2015 11:57 AM, Rabbi David Botton wrote: > My wife gave birth to twin girls yesterday, so as you can see been busy last 2 > months (wedding and awaiting birth). I'll be back on Gnoga in the coming days. Identical or fraternal? -- Jeff Carter "After fifteen minutes I wanted to marry her,

Re: [Gnoga-list] CAE development, plotting etc.

2016-01-02 Thread Jeffrey R. Carter
On 01/02/2016 07:52 PM, Sundelin Henri wrote: > So the big question is that is there anything suitable in Gnoga world to do > such things? I do love the idea behind Gnoga, it might even enable me to > deliver the tools I’m developing as web based service, which would be a > beautiful way to keep e

Re: [Gnoga-list] Best watches in the world. Super present. Christmas sale!

2016-01-02 Thread Jeffrey R. Carter
On 12/27/2015 12:50 PM, LUXURY WATCHES wrote: Spam! Spam! Spam! Spam! Time to limit posting to subscribers? -- Jeff Carter "If I could find a sheriff who so offends the citizens of Rock Ridge that his very appearance would drive them out of town ... but where would I find such a man? Why am I a

Re: [Gnoga-list] CAE development, plotting etc.

2016-01-03 Thread Jeffrey R. Carter
On 01/02/2016 10:47 PM, Sundelin Henri wrote: > No, it is not straightforward, unless you think using 500hrs of work > “straightforward". I did it for Turbo Pascal, and didn't take anything like 500 hrs. I then did it again for a specific graphics board using Meridian Ada under DOS, again in much l

Re: [Gnoga-list] Switching a top level view

2016-01-04 Thread Jeffrey R. Carter
On 01/04/2016 04:37 PM, Wayne Bullaughey wrote: > When my app starts it creates a view with the parent set to the main > window to request some initial data. It then needs to replace that view > with the main view for the app. Is there something I need to do to > detach the original view from th

Re: [Gnoga-list] Best watches in the world. Super present. Christmas sale!

2016-01-05 Thread Jeffrey R. Carter
On 01/05/2016 03:17 AM, tony gair wrote: > Hey Elite on the BBC B was done in 20k in 1986 (was it?). Considering there > were over four thousand (procedurally generated) star systems to explore I > think that was possibly the greatest act of programming like ever. > >> On Sun, Jan 3, 2016 at 1:11 P

[Gnoga-list] Radio Buttons

2016-01-07 Thread Jeffrey R. Carter
There doesn't seem to be any tutorial or demo that uses radio buttons, and my experiments with them have been unsuccessful. It would be nice to see an example of how to use them. -- Jeff Carter "My brain hurts!" Monty Python's Flying Circus 21 ---

Re: [Gnoga-list] Radio Buttons

2016-01-07 Thread Jeffrey R. Carter
On 01/07/2016 09:18 PM, Rabbi David Botton wrote: > I've pushed and example of using Radio Buttons into test/align.adb and I've > added a comment on its use their spec. Thanks. Giving them all the same Name was what I was missing. I presume one has to iterate over the buttons in a group, testing

Re: [Gnoga-list] Need help/tips with web app architecture

2016-02-02 Thread Jeffrey R. Carter
On 02/02/2016 03:59 PM, Olivier Henley wrote: > Right now I use a pattern similar to what can be found in the Chatanooga demo > (I store a "pointer" of every connected user app data in a protected hashmap. > When one user gain some points, I run over every app data element present in > the hashmap

[Gnoga-list] Gnoga.com's First Impressions

2016-02-03 Thread Jeffrey R. Carter
I was discussing Gnoga with Adrian Hoe recently, and he mentioned that none of its links worked for him. I have to use Opera and boot.html to get the site to work. Something about the site still isn't working on some platforms. On the other hand, I've never had a problem running any of the demos, t

[Gnoga-list] LinXtris Demo Problems

2016-02-10 Thread Jeffrey R. Carter
The LinXtris demo doesn't seem to work. Attached is a screen shot on Firefox; the screen is similar with Chromium and Opera. Clicking each of the buttons in turn gives $ bin/linxtris Application root :/home/jrcarter/Code/gnoga/ Executable at:/home/jrcarter/Code/gnoga/bin/ HTML root:/ho

Re: [Gnoga-list] LinXtris Demo Problems

2016-02-10 Thread Jeffrey R. Carter
On 02/10/2016 08:32 PM, Rabbi David Botton wrote: > It worked for me, although some issues such as if you use space bar the piece > just disappears, otherwise was able to play. > > bin/linxtris -data_dir demo/linxtris/ > Now we know what happens when you leave off "-data_dir demo/linxtris/". READM

Re: [Gnoga-list] PragmArc error.

2016-03-02 Thread Jeffrey R. Carter
On 03/02/2016 01:04 PM, Pascal wrote: > gcc -c pragmarc-unbounded_integers.adb > pragmarc-unbounded_integers.adb:37:21: ambiguous expression (cannot resolve > "Element") > pragmarc-unbounded_integers.adb:37:21: possible interpretation at > a-convec.ads:113, instance at pragmarc-unbounded_integers

Re: [Gnoga-list] PragmArc error.

2016-03-04 Thread Jeffrey R. Carter
On 03/04/2016 02:30 PM, Jeremiah Breeden wrote: > Though I should probably ask Jeffrey: Are all the other calls to .Element > meant to be the container primative or the package version that converts out > of bounds values to 0? The calls of the form Element (Vector, Index) are to PragmARC.Unbound

Re: [Gnoga-list] PragmArc error.

2016-03-05 Thread Jeffrey R. Carter
On 03/05/2016 02:39 AM, Pascal wrote: > I guess that any GNAT version FSF4.9 or GPL2015 are correct as you pointed: No, GPL2015 appears to have a compiler error. > Did you send a GNAT bug report? > If not I'll do it. I did not, having only hearsay evidence of the error. > In the meantime, a pr

Re: [Gnoga-list] Zany Blue and Gnoga_Tools requirement?

2016-04-10 Thread Jeffrey R. Carter
On 04/10/2016 10:54 AM, Jeremiah Breeden wrote: > gnatbind -x > D:\Program_Files\MinGW\msys\1.0\home\Jere\gnoga-code-2016_04_09\deps\zanyblue\src\obj\zbmcompile-main.ali > gnatlink > D:\Program_Files\MinGW\msys\1.0\home\Jere\gnoga-code-2016_04_09\deps\zanyblue\src\obj\zbmcompile-main.ali > -g > D:\

Re: [Gnoga-list] Zany Blue and Gnoga_Tools requirement?

2016-04-13 Thread Jeffrey R. Carter
On 04/13/2016 12:44 PM, Pascal wrote: > Concerning Jeff, I don't see what is the error reported by gnat in: >> zanyblue-text-codecs.adb:260:14: "Encode_UTF8" called at line 277 >> zanyblue-text-codecs.adb:260:14: "Find_Codecs" called at line 320 > Was it the whole gnat prints? I provided everything

Re: [Gnoga-list] Question about endless connection swapping

2016-04-16 Thread Jeffrey R. Carter
On 04/16/2016 10:53 AM, Jeremiah Breeden wrote: > User_Data.Window.Close is just for child windows that are launched according > to the comments in the Gnoga code base. Close_Connection does close the > connection, but it doesn't push the HTML_On_Close and you do still get some of > the swapping s

[Gnoga-list] Gnoga Crashes

2016-04-26 Thread Jeffrey R. Carter
Experimenting with Mine_Detector recently, I've found that the UI eventually becomes unresponsive. The reported problem is Connection_Error; although events from the UI seem to be getting to the program, it no longer has a live connection to handle the events. I don't see anything in the program t

Re: [Gnoga-list] Problems with cards

2016-04-29 Thread Jeffrey R. Carter
On 04/29/2016 07:07 AM, Jean-Pierre Rosen wrote: > I want now to change cards by clicking on a button; from the on_click > event, I do a Show_Card, and at that point I get a "dispatch error", > with no other indications. This seems to trigger a cascade of > exceptions, because the connection is los

Re: [Gnoga-list] PragmArc error.

2016-04-29 Thread Jeffrey R. Carter
There is a new version of PragmARC.Unbounded_Integers that should compile with GNAT GPL 2015 despite the compiler error, allowing the Password_Gen demo to build. -- Jeff Carter "My dear Mrs. Hemoglobin, when I first saw you, I was so enamored with your beauty I ran to the basket, jumped in, went

Re: [Gnoga-list] Problems with cards

2016-04-30 Thread Jeffrey R. Carter
On 04/30/2016 01:58 AM, Pascal wrote: > Are your use context related to the one I had reported beginning of last > week? > CONNECTION_ERROR (Dispatch Error log) after End_Application call with 2 > running Ada tasks. My problem doesn't happen after End_Application, but while running the program.

Re: [Gnoga-list] Problems with cards

2016-05-01 Thread Jeffrey R. Carter
On 05/01/2016 02:14 AM, Pascal wrote: > Then I use "gdb bin/forms" with "catch expression" and "run" then click on > button "send to demo via post": (gdb) catch expression Undefined catch command: "expression". Try "help catch". "help catch" includes "catch exception", which I presume you meant

Re: [Gnoga-list] Problems with cards

2016-05-01 Thread Jeffrey R. Carter
On 05/01/2016 10:33 AM, Pascal wrote: > (gdb) break exception > Catchpoint 3: all Ada exceptions > > Well, in the past I used a breakpoint directly in GNAT runtime: > > (gdb) br a-except.adb:975 > Breakpoint 4 at 0x10021b626: file a-except.adb, line 975. > (gdb) run (gdb) break exception Function

Re: [Gnoga-list] Problems with cards

2016-05-08 Thread Jeffrey R. Carter
On 05/08/2016 09:50 AM, Pascal wrote: > Hello Jeff and Jean-Pierre, > > Gnoga has been modified to avoid internal exceptions with last commit > [927cc4]. > Deleting element in Maps container provoques some cursor tampering while > doing iterate and issues Program_Error exception. > It's have been

Re: [Gnoga-list] Problems with cards

2016-05-09 Thread Jeffrey R. Carter
On 05/09/2016 12:03 PM, Pascal wrote: > Could you please try the following? > > >From Gnoga root directory: > > $ cd deps/zanyblue/src/text/ > $ gnatmake -I../os -I../root -gnatcfvwa zanyblue-text-codecs.adb Sure: ~/Code/gnoga$ cd deps/zanyblue/src/text/ ~/Code/gnoga/deps/zanyblue/src/text$ gnatm

Re: [Gnoga-list] Problems with cards

2016-05-10 Thread Jeffrey R. Carter
On 05/10/2016 12:25 PM, Pascal wrote: > $ gnatmake -f -I../os -I../root -gnatfvwa zanyblue-text-codecs.adb > > and then: > > $ gnatmake -f -I../os -I../root -gnatfvwa -gnat12 -gnatW8 -g -gnatf -gnato > -gnatwale -gnatyO -gnatyo -fstack-check zanyblue-text-codecs.adb $ gnatmake -f -I../os -I../roo

Re: [Gnoga-list] Dropping the ball

2016-05-29 Thread Jeffrey R. Carter
On 05/28/2016 08:57 PM, Rabbi David Botton wrote: > I'm fairly embarrassed to have been off the grid for so long with Gnoga and > thankful to Pascal and others still working hard on things. Has been a tough > time business wise last months and most recently with my father's passing and > trying to

Re: [Gnoga-list] Question about endless connection swapping

2016-05-30 Thread Jeffrey R. Carter
On 05/30/2016 01:04 PM, Pascal wrote: > If you omit "App.Window.Close;" then End_Message stay on browser page and you > can reload the page for a new connection. Even with "App.Window.Close;" End_Message remains displayed and I can reload the page. -- Jeff Carter "When danger reared its ugly he

Re: [Gnoga-list] Question about endless connection swapping

2016-06-06 Thread Jeffrey R. Carter
On 06/06/2016 12:14 PM, Pascal wrote: > Hello Jeff, > > You're right, I've now tested with Close in Firefox: End_Message remains > displayed and I can reload the > page. This is also the behavior with Chromium and Opera on Linux. > But with Safari, it is not ok. > I've also considered the comment

[Gnoga-list] Build Problem with GNAT 4.8

2016-06-08 Thread Jeffrey R. Carter
I have a computer with Linux Mint 17.3 and GNAT 4.8. I cloned Gnoga with git and did make and got: cd deps/simple_components/xpm && gprbuild --target=x86_64-linux-gnu -p -Pxpm_parser.gpr xpm_parser.gpr:3:09: no languages defined for this project components.gpr:4:09: no languages defined for this p

Re: [Gnoga-list] Build Problem with GNAT 4.8

2016-06-10 Thread Jeffrey R. Carter
On 06/10/2016 01:07 PM, Pascal wrote: > Hello Jeff, > > Not so easy issue. > Can you add some verbosity options like -vP2 for instance? Not sure about that. I did ~/Code/gnoga$ gprbuild -v GPRBUILD 2011 (Debian 2011-1) (20110419) (x86_64-linux-gnu) Copyright (C) 2004-2011, Free Software Foundatio

Re: [Gnoga-list] Build Problem with GNAT 4.8

2016-06-12 Thread Jeffrey R. Carter
On 06/12/2016 12:39 PM, Pascal wrote: > What about gnatmake? > Can you modify Makefile to force gnatmake instead gprbuild as a workaround? > (suppress or comment the second line of Makefile, the one begining with > GPRCHECK) I modified gnoga/Makefile so that it begins PREFIX=$(shell echo $(dir $(

Re: [Gnoga-list] Build Problem with GNAT 4.8

2016-06-13 Thread Jeffrey R. Carter
On 06/13/2016 12:35 PM, Pascal wrote: > Well, not so bad but the error is also concerning Zanyblue. > Thus, you have to change to gnatmake as well in > "deps/zanyblue/src/mkfile/conf.mk". > Change line "GPRBUILD=gprbuild" to "GPRBUILD=gnatmake". > Not tested but it will a priori do the job. I had

Re: [Gnoga-list] GNOGA 1.2 beta.

2016-07-14 Thread Jeffrey R. Carter
On 07/13/2016 12:23 PM, Pascal wrote: > Volunteers are welcome to test it on their own configuration. > Mine is MacOS 10.11, GNAT GPL 2016, Safari and Firefox. > Some testing on Windows and Linux configuration will be appreciated. > > Just get last today commit on https://sourceforge.net/p/gnoga an

Re: [Gnoga-list] GNOGA 1.2 beta.

2016-07-15 Thread Jeffrey R. Carter
On 07/15/2016 10:08 AM, Pascal wrote: > Hello Jeff, thanks for reporting. > > I will check if -gnat2012 option is always set. > Concerning -m option I had some troubles in the past, so I avoid it. The problem is that 17.3 has GNAT 4.6 by default. One can switch to 4.8, but then gprbuild doesn't wo

Re: [Gnoga-list] Problems installing GNOGA development version

2016-09-06 Thread Jeffrey R. Carter
On 09/02/2016 12:22 PM, Pascal wrote: > On MacOS it is: > $ make -v > GNU Make 3.81 Linux Mint 18: Gnu Make 4.1 -- Jeff Carter "We'll make Rock Ridge think it's a chicken that got caught in a tractor's nuts!" Blazing Saddles 87 -

Re: [Gnoga-list] Overall gnoga echosystem status

2016-09-20 Thread Jeffrey R. Carter
On 09/20/2016 04:05 PM, Olivier Henley wrote: > M is the major version number > m is the minor version number > s is 'a' for alpha, 'b' for beta, and 'r' for release > n is a continuously growing sequence number, irrespectively of s > > +1 Some schemes that I have seen successfully used: * m m

[Gnoga-list] Button Sizing

2016-09-23 Thread Jeffrey R. Carter
Some of you may remember, back in the dark ages, when dinosaurs ruled the earth and I was working on the Gnoga version of Mine_Detector, that I had difficulty getting an array of buttons to all be the same size. I eventually came up with something that worked, but I wasn't sure which of the things

Re: [Gnoga-list] Overall gnoga echosystem status

2016-09-23 Thread Jeffrey R. Carter
On 09/23/2016 11:33 AM, Pascal wrote: > My proposal scheme for Gnoga: > > m.n with m major version number , n minor version number. > -alpha is added on m.n when this version is created, to be used without any > warranty. > -beta is added on m.n when this version is enough mature to be tested. > T

Re: [Gnoga-list] Overall gnoga echosystem status

2016-09-24 Thread Jeffrey R. Carter
On 09/24/2016 10:33 AM, Pascal wrote: > Let say, one minor version per year (since now) will take "us" until about 99 > years. > I hope Gnoga will still there and some clever people will found out to cope > with that ;-) "640 k ought to be enough for anybody." I just tend to be leery of unnecess

Re: [Gnoga-list] Proposal for Gnoga coding guidelines.

2016-10-16 Thread Jeffrey R. Carter
On 10/15/2016 02:06 AM, Pascal wrote: > Version numbering: > m.n with m major version number , n minor version number. > -alpha is added on m.n when this version is created, to be used without any > warranty. > -beta is added on m.n when this version is enough mature to be tested. > Then a letter

Re: [Gnoga-list] Proposal for Gnoga coding guidelines.

2016-10-16 Thread Jeffrey R. Carter
On 10/16/2016 08:10 AM, Jean-Pierre Rosen wrote: > Le 15/10/2016 à 11:06, Pascal a écrit : >> Functions and procedures must be declared before coding the body. > Not sure it is very useful. I don't have a rule for this in Adacontrol, > but it could be easily added. It seems a reasonable language-d

Re: [Gnoga-list] Proposal for Gnoga coding guidelines.

2016-10-16 Thread Jeffrey R. Carter
On 10/16/2016 10:25 PM, Jean-Pierre Rosen wrote: > When I said "assertions", I meant all forms of assertions (including > Pre/Post), not just pragma Assert. > > The trouble is that sometimes, the post-condition needs more > computations than the subprogram being described. Such conditions should p

Re: [Gnoga-list] Proposal for Gnoga coding guidelines.

2016-10-17 Thread Jeffrey R. Carter
On 10/17/2016 07:54 AM, marci...@earthlink.net wrote: > Ugh :( While you will get no argument from me, I think it fair to point out that the guidelines have to fit with the existing Gnoga code by Botton, which uses such redundant suffices extensively. -- Jeff Carter "When Roman engineers built

Re: [Gnoga-list] Rép : Proposal for Gnoga coding guidelines.

2016-11-11 Thread Jeffrey R. Carter
On 11/11/2016 04:02 AM, Pascal wrote: > Any comments are welcome either on coding rules topics or Markdown text (as > I'm newbee). Some proofreading: * Section 7 occurs twice * Section 8: "it's" should be "its" * Section 13: "platform" is misspelled in the header -- Jeff Carter "Drown in

Re: [Gnoga-list] Project for someone - Chess - Sprite

2016-11-26 Thread Jeffrey R. Carter
On 11/26/2016 01:07 PM, Pascal wrote: >procedure Create > (Context : in out Context_2D_Type; > Sprite: in out Sprite_Type'Class; > Image_Data: in out Image_Data_Type'Class; > Row, Column

Re: [Gnoga-list] Project for someone - Chess - Sprite

2016-11-27 Thread Jeffrey R. Carter
On 11/27/2016 11:48 AM, Pascal wrote: > Many thanks Jeff. > > Specification has been modified and pushed to SF GIT branch dev_1.3 with a > test case: > https://sourceforge.net/p/gnoga/code/ci/dev_1.3/tree/src/gnoga-gui-element-canvas-context_2d-sprite.ads This looks good. I'd suggest Update_Inter

Re: [Gnoga-list] Project for someone - Chess - Sprite

2016-12-01 Thread Jeffrey R. Carter
On 12/01/2016 12:46 PM, Pascal wrote: > Ok for Update_Interval. > Concerning access type, Sprite_Type is a limited record because of > Context_2D_Type and Image_Data_Type are limited. > Thus Sprite_Type can't be part of Vector. > Maybe I could have used an array of Sprite_Type? OK, then you have

Re: [Gnoga-list] Project for someone - Chess - Sprite

2016-12-04 Thread Jeffrey R. Carter
On 12/04/2016 11:35 AM, Pascal wrote: > I used a vector of sprites, the private Sprite_Type is the cursor type of the > vector. > After I created 2 sprites SP1 and SP2 of Sprite_Type and I deleted SP1 with > no error then I deleted SP2 with the error: > raised CONSTRAINT_ERROR : > Gnoga.Gui.Elem

Re: [Gnoga-list] Chattanooga duplicate user

2017-02-14 Thread Jeffrey R. Carter
On 02/14/2017 03:14 PM, Gautier de Montmollin wrote: > I can figure out why, but on the Chattanooga demo, you can connect twice (or > more) with the same user ID, although On_Connect_Submit seemingly should issue > a Email & " is already connected. Try again." message. Any clue why ? > > You can ch

Re: [Gnoga-list] Chattanooga duplicate user

2017-02-21 Thread Jeffrey R. Carter
A fix for this is now in the GitHub repository https://github.com/jrcarter/Chattanooga and attached to this msg. -- Jeff Carter "From this day on, the official language of San Marcos will be Swedish." Bananas 28 -- Chattanooga: a simple chat program -- Copyright (C) 2017 by PragmAda Software

Re: [Gnoga-list] Sound FX's and music

2017-03-08 Thread Jeffrey R. Carter
On 03/08/2017 04:12 AM, Gautier de Montmollin wrote: > Is it possible to play short sounds on command, and have a background music, > in a GNOGA app ? > > Just curious... > You'll notice that the Chattanooga demo plays a brief sound when a message arrives. The same mechanism should do what you want

Re: [Gnoga-list] Number of active connections

2017-03-21 Thread Jeffrey R. Carter
On 03/21/2017 10:44 AM, Gautier de Montmollin wrote: > I guess, if there isnt' one, it could be implemented with a global > Natural with pragma Volatile, and *incrementing* it could be done upon > connection, but how to do the *decrementing* properly ? Race condition. -- Jeff Carter "Go and bo

Re: [Gnoga-list] Sprite as a button ?

2017-03-29 Thread Jeffrey R. Carter
On 03/29/2017 07:08 PM, Gautier de Montmollin wrote: > Various mouse events are working well when handler is set on a Canvas. > Now I'd like to have a button (purely graphical) with a captive On_Click > handler. > If I (mis-)use a sprite for that, the setting of the handler is accepted at > compi

[Gnoga-list] Suggestions for Spreadsheet-Like Display

2017-04-04 Thread Jeffrey R. Carter
I'm wondering what to use to obtain a spreadsheet-like display. (No, I'm not writing a spreadsheet, but I want to display data that way.) I want something where the user can scroll through multiple rows and select an entire row by clicking anywhere in it. Each row consists of a number of columns, t

Re: [Gnoga-list] Experience with Amazon Web Services ?

2017-04-06 Thread Jeffrey R. Carter
On 04/06/2017 09:54 AM, Gautier de Montmollin wrote: > - you need only the EC2 (Elastic Compute Cloud) service and nothing else > (at least for starting...) So you're using a free server? How is it configured? Where did you build your executable(s)? I'll look forward to seeing what you have when

Re: [Gnoga-list] Experience with Amazon Web Services ?

2017-04-06 Thread Jeffrey R. Carter
On 04/06/2017 07:08 PM, Gautier de Montmollin wrote: > Le 06.04.2017 à 17:46, Jeffrey R. Carter a écrit : >> How is it configured? > All done for you, basically you get a fully pre-installed server. I was curious as to what OS you chose. > unzip the app_deploy.zip file in the se

Re: [Gnoga-list] Experience with Amazon Web Services ?

2017-04-06 Thread Jeffrey R. Carter
On 04/06/2017 09:08 PM, Gautier de Montmollin wrote: > > Something bad happened and it seems to have left the server in a lunatic > state... > OK restarted the executable. > Hope you are luckier this time... On 2 browsers (Firefox and Opera), that gives me a yellow screen with a line at the bott

Re: [Gnoga-list] Task Safety and Connection_Data

2017-04-08 Thread Jeffrey R. Carter
On 04/08/2017 03:05 AM, Jeremiah Breeden wrote: > I was trying to figure out how Connection_Data is handled with respect to > Task > safety. In particular, if I have two Action_Event handlers and in each of > the I > do something like: > > My_App : My_App_Access := My_App_Access(Object.Connect

Re: [Gnoga-list] Task Safety and Connection_Data

2017-04-09 Thread Jeffrey R. Carter
On 04/09/2017 09:00 PM, Jeremiah Breeden wrote: > > I took a look. It looks like your entry is actually "per connection" unless I > misunderstand. Your app data structure has the serializer as part of the > record. Doesn't that mean that each connection gets their own serializer? You're right.

Re: [Gnoga-list] Gnoga.Gui.Screen's Width vs Window_Type's Width method

2017-04-18 Thread Jeffrey R. Carter
On 04/15/2017 09:25 PM, Gautier de Montmollin wrote: > Perhaps the Width function in the Gnoga.Gui.Screen package would be > better named Screen_Width ? > > Fortunately, Ada, as expected, knows it is confusing, in the case you > "use" both Gnoga.Gui.Window and Gnoga.Gui.Screen: > >ambiguous e

[Gnoga-list] DB_Maker

2017-05-02 Thread Jeffrey R. Carter
A generic for creating simple DBs (one table in an RDBMS) with PragmARC.Persistent_Skip_List_Unbounded and a Gnoga UI. https://github.com/jrcarter/DB_Maker Includes Movies, a demo program, that could be used to catalogyour extensive collection of BetaMax videotape cassettes. -- Jeff Carter "Per

Re: [Gnoga-list] DB_Maker

2017-05-05 Thread Jeffrey R. Carter
On 05/05/2017 10:34 AM, Pascal wrote: > The Movies demo has been pushed on Gnoga dev 1.3 branch on SF. I made a minor improvement (removed a duplicate use clause) today. -- Jeff Carter "I've got to stay here, but there's no reason why you folks shouldn't go out into the lobby until this thing blo

[Gnoga-list] DB_Maker Improvements

2017-05-10 Thread Jeffrey R. Carter
Now at github.com: Add and Modify select the newly added/modified record, and Search and Search More fill the edit fields after a successful search. -- Jeff Carter "Monsieur Arthur King, who has the brain of a duck, you know." Monty Python & the Holy Grail 09 ---

[Gnoga-list] Change to DB_Maker

2017-05-12 Thread Jeffrey R. Carter
There was a reason searching didn't fill the edit fields, so I reversed that change. Now available at https://github.com/jrcarter/DB_Maker and wherever fine software is sold (or given away). -- Jeff Carter "[T]he Musgroves had had the ill fortune of a very troublesome, hopeless son, and the goo

Re: [Gnoga-list] Experience with Amazon Web Services ?

2017-05-16 Thread Jeffrey R. Carter
On 04/06/2017 07:08 PM, Gautier de Montmollin wrote: > You can have a glimpse there: > http://52.202.48.80:8080/ > > The address is temporary. You'll see that the game is in a very "drafty" > shape. > As expected there are some visual latency issues in the animations, > should be fixed soon. > Oh

Re: [Gnoga-list] Touchscreen events ?

2017-05-23 Thread Jeffrey R. Carter
On 05/23/2017 01:07 PM, Gautier de Montmollin wrote: > So, the workaround described here: > > http://stackoverflow.com/questions/1517924/javascript-mapping-touch-events-to-mouse-events > > is working :-) I haven't tried it recently, but Mine Detector on gnoga.com works with a touchscreen (or used

Re: [Gnoga-list] Touchscreen events ?

2017-05-25 Thread Jeffrey R. Carter
On 05/25/2017 04:46 AM, Gautier de Montmollin wrote: > Variables, right ? Of course not!... The line with function calls > Position_Left and Position_Top triggers two two-way information travels > across the Atlantic... It doesn't even have to leave your machine to be noticeable. In DB_Maker, I

Re: [Gnoga-list] Fwd: Modal dialog box

2017-05-26 Thread Jeffrey R. Carter
On 05/25/2017 11:51 PM, Jeremiah Breeden wrote: >type Dialog_Type is new Gnoga.Gui.View.View_Base_Type with private; > > private > >type Dialog_Type is new Gnoga.Gui.View.View_Type with record > Main_View : Gnoga.Gui.View.View_Access := null; >end record; Your derivation is publi

Re: [Gnoga-list] Fwd: Modal dialog box

2017-05-26 Thread Jeffrey R. Carter
On 05/26/2017 11:44 PM, Jeremiah Breeden wrote: > So even though I specifically use View_Base_Type in the public extension, the > private extension of View_Type is actually public as well? I was hoping that > client packages couldn't see into a private section of a package (well unless > they are

Re: [Gnoga-list] Modal dialog box

2017-06-02 Thread Jeffrey R. Carter
On 06/02/2017 02:44 AM, Jeremiah Breeden wrote: > So an update. I have two different implementations. They each have pros and > cons and wanted to get feedback on which one would be better to submit. I can > submit both if desired I prefer Version 2. Version 1 has too many cons; Version 2 only

Re: [Gnoga-list] Modal dialog box

2017-06-03 Thread Jeffrey R. Carter
On 06/03/2017 01:08 PM, Pascal wrote: > > By the way, I'm wondering about an English language issue in many source > files (not only yours): > Some comments are: > -- Set the value > instead of > -- Sets the value > What is "good" English writing? Either is correct. I prefer the latter, which i

Re: [Gnoga-list] Gnoga.Server.Connection issue with GNAT

2017-06-06 Thread Jeffrey R. Carter
On 06/06/2017 03:08 PM, Gautier de Montmollin wrote: > It is legal Ada (relying on Constraint_Error for catching a missing key) > but it won't work properly with GNAT GPL 2016 onwards when pragma > Suppress(Container_Checks) is activated, for instance with the -gnatp > switch. If you suppress c

Re: [Gnoga-list] Gnoga.Server.Connection issue with GNAT

2017-06-06 Thread Jeffrey R. Carter
On 06/06/2017 06:13 PM, Gautier de Montmollin wrote: > Anyway, the reason of my message is that the concerned part is in > Gnoga.*, not in my own program. > The reason for my message is to point out that, unless you're sure about all of the code in your program, you'd better not suppress checks.

Re: [Gnoga-list] Gnoga.Server.Connection issue with GNAT

2017-06-07 Thread Jeffrey R. Carter
On 06/06/2017 11:43 PM, Gautier de Montmollin wrote: > Could not agree more! But again, it is not my program. Sure it is. It's your program, and part of its code is Gnoga. > Now, you cannot expect everybody not having to suppress checks at any > point in time. > Since Gnoga is meant to be a libr

Re: [Gnoga-list] Gnoga.Server.Connection issue with GNAT

2017-06-07 Thread Jeffrey R. Carter
On 06/07/2017 07:17 PM, Gautier de Montmollin wrote: > It is a lazy assumption. > If the server side does image processing for instance, there is perhaps > a good reason to suppress checks. > The gain in response time and CPU usage will be significant. > After all why does GNAT have more and more

Re: [Gnoga-list] Gnoga.Server.Connection issue with GNAT

2017-06-08 Thread Jeffrey R. Carter
On 06/07/2017 08:50 PM, Gautier de Montmollin wrote: > I did a few tests today on this interesting topic, with GNAT GPL 2016. > Just grabbing a part of my toolbox used in the real world, the zip-ada > compression with -ep2 option is 50% slower without -gnatp that with it > (all other options bein

[Gnoga-list] Specifying Source for Audio_Type

2017-09-15 Thread Jeffrey R. Carter
I have this tiny Gnoga app: with Ada.Exceptions; with Gnoga.Application.Singleton; with Gnoga.Gui.Base; with Gnoga.Gui.Element.Common; with Gnoga.Gui.Element.Multimedia; with Gnoga.Gui.View; with Gnoga.Gui.Window; package body MP.UI is Window : Gnoga.Gui.Window.Window_Type; View : Gnoga.

Re: [Gnoga-list] Specifying Source for Audio_Type

2017-09-17 Thread Jeffrey R. Carter
On 09/16/2017 11:13 AM, Pascal via Gnoga-list wrote: > Gnoga recognizes executable in bin directory and thus sets its root directory > for relative paths. So the paths have to be relative to the executable root dir? I would like to be able to play an arbitrary file, possibly chosen through a fi

[Gnoga-list] Audio_Type Media_Duration

2017-09-21 Thread Jeffrey R. Carter
Sometimes the Audio_Type player widget shows both the elapsed time and the total time, and Media_Duration returns a non-zero value, but usually the widget only shows the elapsed time and Media_Duration returns zero, usually with a log msg about an exception trying to convert a NaN or Infinity to In

Re: [Gnoga-list] Audio_Type Media_Duration

2017-09-21 Thread Jeffrey R. Carter
On 09/21/2017 08:49 PM, Jeffrey R. Carter wrote: > Sometimes the Audio_Type player widget shows both the elapsed time and the > total > time, and Media_Duration returns a non-zero value, but usually the widget only > shows the elapsed time and Media_Duration returns zero, usually wi

Re: [Gnoga-list] Audio_Type Media_Duration

2017-09-22 Thread Jeffrey R. Carter
On 09/22/2017 06:30 PM, Pascal via Gnoga-list wrote: > Have you a small test code to try on other configurations? This should do it: with Ada.Exceptions; with Gnoga.Application.Singleton; with Gnoga.Gui.Base; with Gnoga.Gui.Element.Common; with Gnoga.Gui.Element.Multimedia; with Gnoga.Gui.View;

Re: [Gnoga-list] Audio_Type Media_Duration

2017-09-30 Thread Jeffrey R. Carter
On 09/30/2017 10:57 AM, Pascal via Gnoga-list wrote: > Two points: > - it seems that duration is not available before the sound is ready to play > (with Firefox) > - the duration function should return Float > > I modify Play_Sound as follow with a waiting loop for readiness: > >procedure Play

Re: [Gnoga-list] Audio_Type Media_Duration

2017-10-01 Thread Jeffrey R. Carter
On 10/01/2017 12:11 PM, Pascal via Gnoga-list wrote: > Thus, even loaded, the duration seems not known and more is set to "Infinity". > I don't know how to get the duration without playing the file. > Thanks for your efforts on this. The problem is that my real application, which differs from Ding

Re: [Gnoga-list] Audio_Type Media_Duration

2017-10-22 Thread Jeffrey R. Carter
On 10/22/2017 04:02 PM, Pascal via Gnoga-list wrote: > With Firefox on macOS I've got errors at first run but none on next runs in > the same window. > Is it something regarding caching? > > 2017-10-22 15:49:17.07 : Play_Sound: http://localhost:8080/glass.ogg > 0.0E+00 > 2017-10-22 15:49:17.0

Re: [Gnoga-list] Version 1.3a released and version 1.4-alpha created.

2017-11-01 Thread Jeffrey R. Carter
On 11/01/2017 11:40 AM, Pascal via Gnoga-list wrote: > Version 1.3a has been released on SF GIT dev_1.3 branch. > https://sourceforge.net/p/gnoga/code/ci/dev_1.3/tree/ > > See HISTORY for details. > > This branch is now the default one. Not quite: ~/Code/gnoga$ git pull Already up-to-date. ~/Code

Re: [Gnoga-list] Version 1.3a released and version 1.4-alpha created.

2017-11-01 Thread Jeffrey R. Carter
On 11/01/2017 07:03 PM, Pascal via Gnoga-list wrote: > When you clone with GIT you have to checkout the wanted branch, for instance: > $ git checkout dev_1.3 > or a particular label: > $ git checkout V1.3a Perhaps I remember incorrectly, but I thought that 1.1 and 1.2 simply needed a "git pull" t

Re: [Gnoga-list] Version 1.3a released and version 1.4-alpha created.

2017-11-01 Thread Jeffrey R. Carter
On 11/01/2017 09:13 PM, Pascal via Gnoga-list wrote: > You're right version 1.1 and 1.2 are on branch master then checkout is not > needed after git pull. > If you think it's easier then branch dev_1.3 could be merged with master. > But it would be more complex to make changes on 1.2. > Though the

Re: [Gnoga-list] Version 1.3a released and version 1.4-alpha created.

2017-11-02 Thread Jeffrey R. Carter
On 11/02/2017 08:15 PM, Pascal via Gnoga-list wrote: > I remember you wrote that you made git pull. > That does not clean unused files that are obsolete. > I suggest you to start from a fresh new directory and then do a git clone and > then a git checkout before make all. A minor version release

Re: [Gnoga-list] Version 1.3a released and version 1.4-alpha created.

2017-11-04 Thread Jeffrey R. Carter
On 11/04/2017 10:32 AM, Pascal via Gnoga-list wrote: > Version 1.3 was in beta since the 16th of July. > You were the very first to report on it. > Feedback is obviously needed good or bad as I can only make test with macOS > environment on my side. > Version 1.3a has been cancelled until I unders

  1   2   3   >