Re: [Gnoga-list] GIT master branch discussion.

2022-03-21 Thread Björn Lundin


> 21 mars 2022 kl. 11:09 skrev Jean-Pierre Rosen :
> 
> I concur, with the suggestion to add a "stable" branch corresponding to a).
> Of course, this branch would be moved up as new stable releases appear.

I would find it more natural if ’stable’ points to the latest stable - in this 
case alternative c.
Ie the last stable v2.


/Björn



Björn Lundin
b.f.lun...@gmail.com




___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] 5g and Gnoga

2019-07-27 Thread Björn Lundin


Den 2019-07-26 kl. 17:32, skrev David Botton:
I spent a bit more time concentrating this last year on recovery for 
my businesses and physically after the stroke I had last year that I 
expected. Thank God all is in full swing. The advent of 5g tech is 
going to swing the pendulum even more to always connected server based 
tech which is Gnoga’s big angle. I have a few ideas I plan on 
exploring using Gnoga (and also finishing up a form builder for 
Gnoga), but I would like to ask some opinions on the following:


I am considering rewriting Gnoga in a language other than Ada (yes I 
love the old girl but for reasons I don’t want to debate she has 
terminal cancer), what other language would appeal to any of you?


I think that if Gnoga is to have the attentions it really deserves, then 
a language with really high user community,


and one that is still fairly sane.

I can only think of

* Python - hated for its whitespace but otherwise ok

* C# - hated for its problems with other curly brace languages. But it 
also has some nice features,


and its now cross-platform for at least some OS:es/cpus .

I did develop a non-trivial application using rabbitmq, and databases, 
in VS2017,


scp()ed the solution to a debian 8 box and did

dotnet restore ; dotnet build ; and then it ran as supposed to

who would have thought that?

dotnet core that is - which _really_ could use a user interface.

/Björn





David Botton


___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Crash on ping

2018-08-04 Thread Björn Lundin
On 2018-08-04 04:03, Jeremiah Breeden wrote:
> Ok, with that in mind, the current set of loops are not being done
> atomically (it is not done inside a protected operation).  So the next
> question is how do we get to where they are done in a more atomic
> manner.  I started off with a mutex like implementation for the close
> loop.since the close procedure could potentially block (and thus could
> not go in a protected operation).  That wouldn't work for the ping
> loop without restructuring the ping procedure itself (and pull out the
> deletions to be done afterwards as mentioned in an earlier email/post).
>
At work, we sometimes (when tasking) use the pattern below.

At the end there is a client package with procedures A and B which both

may affect the same resourse.

But both start with grabbing a common semaphore which

will be autmatically released when out of scoope.

This way we use the same protected object but with no blocking
operations in it.

But this is perhaps what you meant with mutex operation?

There are packages Semaphores and Semaphores.Controls to enable this.


--

package Semaphores is
   protected type Semaphore_Type is
  
  procedure Release;
  
  entry Seize;
  
   private
  In_Use : Boolean := False;
   end Semaphore_Type;
end Semaphores;
--

package body Semaphores is
   protected body Semaphore_Type is
  
  procedure Release is
  begin
 In_Use := False;
  end Release;
  
  entry Seize when not In_Use is
  begin
 In_Use := True;
  end Seize;
  
   end Semaphore_Type;
end Semaphores;

--

with Ada.Finalization;

package Semaphores.Controls is
   pragma Preelaborate;
   type Semaphore_Control (Semaphore : access Semaphore_Type) is limited
private;

private
   use Ada.Finalization;
   type Semaphore_Control (Semaphore : access Semaphore_Type) is
 new Limited_Controlled with null record;

   procedure Initialize (Control : in out Semaphore_Control);
   procedure Finalize (Control : in out Semaphore_Control);

end Semaphores.Controls;

--
package body Semaphores.Controls is

   procedure Initialize (Control : in out Semaphore_Control) is
   begin
  Control.Semaphore.Seize;
   end Initialize;

   procedure Finalize (Control : in out Semaphore_Control) is
   begin
  Control.Semaphore.Release;
   end Finalize;

end Semaphores.Controls;

--

  with Semaphores; use  Semaphores;
  with_Semaphores.Controls;  use  Semaphores.Controls;  
   
 package body client is

  Semaphore : aliased Semaphore_Type;

  --
  procedure A is
    Control    : Semaphore_Control (Semaphore'access); 
    pragma Warnings(Off, Control); 
  begin
    Do_Stuff_1;
  end A;
  --
  procedure B is
    Control    : Semaphore_Control (Semaphore'access); 
    pragma Warnings(Off, Control); 
  begin
    Do_Stuff_2;
  end B;

end client;



-- 
--
Björn

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


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

2017-03-20 Thread Björn Lundin
On 2017-03-20 09:22, Björn Lundin wrote:

> http+https is redirected to the gnoga-service for a certain path.
> There is also some stuff handling upgrading the connection to web sockets.

No there was not. I think now that was before we went through Apache.

> I'll post the details later, the server is just up 12h a day, and it's
> another 3 hours until start.

The gnoga part listen at http://localhost:9080
and all https stuff is via Apache2

http is redirected to https
some browser do not need to login, others do

The machine is known to DNS servers


This is on a
uname -a
Linux prod 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u2 x86_64 GNU/Linux

cat /etc/apache2/sites-enabled/030-somesite.somewhere.com.conf



  ServerName somesite.somewhere.com
  ServerAlias somesite2.somewhere.com
  ServerAdmin someone@somesite.somewhere
  RewriteEngine  on
  RewriteCond %{SERVER_PORT} !^443$
  RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
  LogLevel info
  CustomLog ${APACHE_LOG_DIR}/log_80.nonobet.com_access.log combined
  ErrorLog ${APACHE_LOG_DIR}/log_80.nonobet.com_error.log



  ServerName somesite.somewhere.com
  ServerAlias somesite2.somewhere.com
  ServerAdmin someone@somesite.somewhere
  RewriteEngine  on
  RewriteCond %{HTTPS} =off
  RewriteRule .* - [F,L]
  SSLEngine on
  SSLCertificateFile
/etc/apache2/sites-available/wildcard.somesite.com_cert.pem
  SSLCertificateKeyFile
/etc/apache2/sites-available/somesite_common_server_key.pem
  LogLevel info
  CustomLog ${APACHE_LOG_DIR}/log_443.nonobet.com_access.log combined
  ErrorLog ${APACHE_LOG_DIR}/log_443.nonobet.com_error.log
  ProxyPass / http://127.0.0.1:9080/
  ProxyPassReverse / http://127.0.0.1:9080/
  

AuthName "Please login!"
AuthType Basic
AuthBasicProvider file
AuthUserFile /etc/apache2/sites-available/somesite.com_authentication
Require valid-user

SetEnvIfNoCase ^User-Agent$ .*Mobile ALLOW_IN
SetEnvIfNoCase ^User-Agent$ .*Epiphany ALLOW_IN
Order Deny,Allow
Deny from all
Allow from env=ALLOW_IN

Satisfy Any

  





-- 
--
Björn

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


Re: [Gnoga-list] Dropping the ball

2016-06-02 Thread Björn Lundin
2016-05-29 5:57 GMT+02:00 Rabbi David Botton :

> 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 get things in order. I wish Gnoga had a higher
> priority than food and family.
>


Sorry to hear that David.
A customer of mine said some time ago that a man's priorities should be
* his children
* his wife
* his work
* his hobbies

in that order.

My condolences to you and your family

-- 
/Björn
--
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___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


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

2016-04-14 Thread Björn Lundin
2016-04-14 3:14 GMT+02:00 Jeremiah Breeden :

> Sure.  Out of the box, if I "make all", everything goes well until it
> tries to compile zanyblue.adb:
> gcc -c -gnat12 -gnatW8 -g -gnatf -gnato -gnatwale -gnatygO -gnatyo
> -fstack-check -I- -gnatA
> D:\Program_Files\MinGW\msys\1.0\home\Jere\gnoga-code-2016_04_09\deps\zanyblue\src\root\zanyblue.adb
> zanyblue.adb:1:03: (style) incorrect line terminator
> zanyblue.adb:2:72: (style) incorrect line terminator
> zanyblue.adb:3:03: (style) incorrect line terminator
>


Without having looked at the source,
could it be that the file has mixed line terminators ?
Some lines end in LF while others in CRLF ?

--
Björn
--
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___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] multi-platform GUI app

2015-12-06 Thread Björn Lundin
On 2015-12-06 09:27, Saša Janiška wrote:
> My Linux distro has gcc5-ada compiler based on gcc-5.2, but there are no
> packages for gtkada, gps and gprbuild. If I plan to use Gnoga then I
> assume I don't need GtkAda, but the last two are required?

No.
I use Notepad++ from widows, via
fileshare to a linuxbox.
And I use gnatmake to compile, from an ssh shell to that box.

However, gprbuild is about to take
gnatmake's place, so using gnatmake instead may or may not work in the
future.

-- 
--
Björn

--
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
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] tabs and cards

2015-08-16 Thread Björn Lundin
 I see some things that I knew I understood in it, like the canvas stuff

Should be

 I see some things that I wish I understood in it, like the canvas stuff

Some autocorrection from my mailer that i missed...
--
Björn 
Skickat från min iPhone

 16 aug 2015 kl. 13:30 skrev Björn Lundin b.f.lun...@gmail.com:
 
 On 2015-08-16 09:06, Pascal wrote:
 Hello,
 
 though in French language, you have this tutorial with all views described 
 and an example:
 http://blady.pagesperso-orange.fr/telechargements/gnoga/gnoga_wf.pdf
 
 Hmm, my french is almost none-existent.
 I see some things that I knew I understood in it, like the canvas stuff
 on page 10.
 I'll google-translate it later today.
 But it would be _really_ nice to have that tutorial in english.
 
 
 http://blady.pagesperso-orange.fr/telechargements/gnoga/hello4.adb.pdf
 
 That one seems really helpful
 
 Thanks
 
 --
 Björn

--
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


[Gnoga-list] tabs and cards

2015-08-15 Thread Björn Lundin
Hi!
I am slightly confused about the difference between the
card and the tab in Gnoga.Gui.View.Card

I'm thinking of doing a small application that needs
a menubar on top, and some tabs that display different data.

Or is the tabs really what you click - the menubar items - and
the cards the rest of the pages ?

Does anyone have an example of a simple tabbed application?

I could not find any example within the distribution


-- 
--
Björn

--
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Sourceforge and Git - future ideas

2015-07-29 Thread Björn Lundin
On 2015-07-25 17:46, Pascal wrote:
 Hello,
 
 One more idea:
 
 - internationalisation with language translation of displayed text.
 Any proposal of implementation?



This is a package I've been wanting to test for some time.
I have not got around to it yet though.

http://zanyblue.sourceforge.net/


good docs at
http://zanyblue.sourceforge.net/zanyblue.pdf

--
Björn

--
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] ssl and apache 2.4 on debian

2015-07-14 Thread Björn Lundin
On 2015-07-12 10:50, Björn Lundin wrote:
 Now, I need to make my friend fix the proxy-part.
 

And now, that works too.
https via apache proxy is working :-)


we plan to use LDAP for user authentication.
I'll open another thread for that

--
Björn

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


[Gnoga-list] gnoga (or ada) and LDAP

2015-07-14 Thread Björn Lundin

I want to authenticate users via LDAP from a gnoga application.
I know that AWS has an LDAP part.
Has anyone used that successfully?

I mean, I have tried it, asked an LDAP query long time ago,
but how does one use it for authentication?

Or I should perhaps take it to c.l.a ?

--
Björn

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] gnoga (or ada) and LDAP

2015-07-14 Thread Björn Lundin
On 2015-07-15 00:26, Rabbi David Botton wrote:
 BTW as an interesting aside, you could also use python's bindings if
 nothing else works out directly with Ada via Gnoga's python templates.
 

Is the example to look at the template parser?


--
Björn

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] gnoga (or ada) and LDAP

2015-07-14 Thread Björn Lundin
On 2015-07-15 00:14, Rabbi David Botton wrote:
 I'll take a look, btw there is no issue with using AWS along side Gnoga
 (except obviously if you overlap server ports).

No,no - aws.ldap is clientside code


 Doesn't hurt to ask on CLA as well.

Ok, I'll do that in the week.



--
Björn

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] ssl and apache 2.4 on debian

2015-07-12 Thread Björn Lundin
On 2015-07-12 04:13, Rabbi David Botton wrote:
 Doc updated. Also just to confirm you don't need secure.html for both
 proxy based SSL or direct ssl support (the example I was pointing out.)
 

Ok, thanks. It was a bit confusing...
Now, I need to make my friend fix the proxy-part.

--
Björn

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


[Gnoga-list] ssl and apache 2.4 on debian

2015-07-11 Thread Björn Lundin
I am trying (with a friend) to set up
a gnoga app via https.

in README-SSL this is mentioned:

Setup your proxy to use an ssl connection and use the secure.html boot
loader

but I cannot find any secure.html in the gnoga tree.


doing
wget https://snake.gnoga.com/boot.html
wget https://snake.gnoga.com/secure.html

diff boot.html secure.html

reveal that secure.html is identical to boot.html

what am I missing?

Or is secure.html the same as boot.html ?
Do I need a secure.html in my gnoga's html dir?


--
Björn

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] update images ?

2015-07-05 Thread Björn Lundin
On 2015-07-05 04:09, Rabbi David Botton wrote:
 You have to use an html trick. When specificity the image name each time
 add ?SomeValue. You can use a time stamp to make easy. The server will
 discard the ? and the rest of the URL but the browser will force a
 reload since it assume the image is dynamic now based in the query sent
 with image name.

Ok - I don't need to call some reload method then?

What triggers the browser to refresh the image?
As is now, I just create it with the url,
the only thing that is updated is the tables mentioned in another post.

How would I do if I move the images to the same server
as gnonga is running on, and refer to the images with file:// notation?

--
Björn

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] updating html-tables without flickering ?

2015-07-05 Thread Björn Lundin
On 2015-07-05 04:05, Rabbi David Botton wrote:
 Double buffer. Create a second table that is hidden. Fill it in. Hide
 first and show second. Can either delete the old one or recycle it.

But of course. Thanks

--
Björn

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] update images ?

2015-07-05 Thread Björn Lundin
On 2015-07-05 17:50, Rabbi David Botton wrote:
 I didn't realize I didn't have a property for that. I've just added it
 to git. My_Image.URL_Source
 
 David Botton
 

Perfect. Thanks.

--
Björn

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


[Gnoga-list] update images ?

2015-07-04 Thread Björn Lundin
Hi!

I have a gnoga app that contains 2 images.
They display nicely with

View.Image_Holder.Create (View);
View.Matched_Image.Create(View.Image_Holder,
  https://path/matched.png;);
View.Lapsed_Image.Create(View.Image_Holder,
  https://path/settled_vs_lapsed.png;);

where

Image_Holder  : Gnoga.Gui.Element.Common.DIV_Type;
Lapsed_Image  : Gnoga.Gui.Element.Common.IMG_Type;
Matched_Image : Gnoga.Gui.Element.Common.IMG_Type;

However, the server holding the images are
creating new images every 10 minutes in a cron job.
The images are diagrams, created with gnuplot,
and published via https

So, how can I make gnoga reload the images ?



-- 
--
Björn

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Position of last Drop

2015-04-09 Thread Björn Lundin
On 2015-04-09 15:03, Gautier de Montmollin wrote:
 Hello,
 I'm new to GNOGA so perdon my beginner questions...
 I'd like to register the mouse position of last drop operation.
 The idea is to be able to move objects.
 

I (slowly) make my self acquainted with drag/drop via a
tic/tac/toe game.
3x3 squares where I can drop X:es or O:s where the
square is free. (Not done yet)

But I find it useful to set up these callbacks

  -- set source
   procedure Start_Drag
   procedure End_Drag


  -- set target
   procedure Enter_Drag
  -- clear target
   procedure Leave_Drag

  -- execute on target
   procedure Drop (Object: in out Gnoga.Gui.Base.Base_Type'Class;
   Drag_Text : in String ) ;


and see in what order they are fired,
and save info in the app-specific data structure - my_app


--
Björn

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] French how to on Gnoga updated.

2015-03-08 Thread Björn Lundin
On 2015-03-08 10:17, Pascal wrote:
 Hello,
 
 tutorial updated with an introduction to 2D graphics. Also on
 http://www.gnoga.com/#developers.

Any chance of an English translation?
Would likely getting a bigger audience.

--
Björn

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Scrollbars?

2015-03-02 Thread Björn Lundin
On 2015-03-02 21:17, Pascal wrote:
 Hello,
 
 Is it also working with Console_View_Type? Scrollbars are displayed
 but no lift inside when the size of content is over the size of the
 view. I tried: IntConsoleView.Overflow (Gnoga.Gui.Element.Scroll); 
 IntConsoleView.Position(gnoga.Gui.Element.Absolute); with no
 success :-( Where am I wrong?



in Default i have



   procedure Default
 (Main_Window : in out Gnoga.Gui.Window.Window_Type'Class;
  Connection  : access
Gnoga.Application.Multi_Connect.Connection_Holder_Type) is
  View : Tic_Tac_Toe.View.Default_View_Access :=
   new Tic_Tac_Toe.View.Default_View_Type;
  use Tic_Tac_Toe.View;
   begin  View.Dynamic;
  View.Create (Main_Window);
  View.Click_Button.On_Click_Handler (On_Click'access);
  View.Overflow(Gnoga.Gui.Element.Auto);

  --  Draw our board at a fixed position in browser
  for Row in Row_Type'range loop
for Col in Col_Type'range loop
  View.Board(Row,Col).Elem.Position (Gnoga.Gui.Element.Absolute);
  View.Board(Row,Col).Elem.Top(150 * Integer(Row));
  View.Board(Row,Col).Elem.Left(150 * Integer(Col));
  View.Board(Row,Col).Elem.Width(112);
  View.Board(Row,Col).Elem.Height(112);
  View.Board(Row,Col).Elem.Border;
...


where

package Tic_Tac_Toe.View is

   type Row_Type is new Integer range 1..4 ;
   type Col_Type is new Integer range 1..4 ;

   type Square_Value_Type is (X, O, Free);

   type Square_Type is record
 State : Square_Value_Type := Free;
 Elem  : Gnoga.Gui.Element.Common.DIV_Type;
   end record;

   type Coordinats_Type is tagged record
 Row : Row_Type := 4;
 Col : Col_Type := 4;
 On_Board : Boolean := False;
 Is_Set   : Boolean := False;
   end record;
  function To_String(C : Coordinats_Type) return String;

   type Board_Type is array(Row_Type'range, Col_Type'range) of
Square_Type;

   type Default_View_Type is new Gnoga.Gui.View.View_Type with
  record
 Label_Text : Gnoga.Gui.View.View_Type;
 Click_Button   : Gnoga.Gui.Element.Common.Button_Type;
 Board  : Board_Type;
 Is_Dragging: Square_Value_Type := Free; -- source type
 Source : Coordinats_Type;
 Target : Coordinats_Type;
  end record;
   type Default_View_Access is access all Default_View_Type;
   type Pointer_to_Default_View_Class is access all
Default_View_Type'Class;





-- 
--
Björn

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


[Gnoga-list] Scrollbars?

2015-03-01 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


How do I add scrollbars to a view?
My main view needs them - it most likely obvious-
but I can't find a way to make them appear.

- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJU85EQAAoJEGaQZvZiZLyCgLkIAKlzVoL99WVGbSoHFsXsFp8n
sOveHjzgwQOwkVsUz+uUPauaXeHCA+XJxW8FLi/c2+QeMUuzE4VA5T9w/vWlmqJC
fnnrk8OyUec3V0VpjZr/hGguyUCJOYMJBoFVxkyfWtIbpoa0NxPwR+UbWGAJNH5t
cwqOoeYJycbVUEjpFuaFycYhcP/aUwpAiJ8Wha8ye5H+cyWiilBv71n2SV6GR0Uu
dfmelkky+f7zX4nyEtBKyV+mO5Ig2G55LSdbbPMhmBJEZ6ocDbENJekRABKu7hj8
hbmL0h1wPqCkThqaSO+5I+Hyu03/feohnbPaTtKyPARc4H0LmsrdxuDAwr2c6cU=
=bzSB
-END PGP SIGNATURE-

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] More fail over changes - please try again

2015-02-10 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2015-02-10 19:23, Rabbi David Botton wrote:
 What versions of IE and FF?

  FF 35 (35.0.1) and IE11 (11.0.9600.17501)


 Also can you make sure to clear cache or try from in private
 sessions. Also try /boot.html, /ajax.html and /auto.html
 


Both browser works on /boot.html. Everything else fails. Also with
cleared caches and within private sessions

Note that it worked before (as in a week or two ago)


 What sort of network are you on?

Mobile broadband (4G)

 With a satellite network there is a large lag and some satelite
 services I know use extensive proxy and compression schemes that
 would break things, but on a clean internet connection I can't
 imagine why nothing would work unless a problem at the browser
 level.

But IceWeasel, that is a virtual guest in this W7 box, uses the same
connection.
And that one works



- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJU2llkAAoJEGaQZvZiZLyCTIwIAJ1JaIRmvrXMDY/PsKd4lTHK
G6DmoeAgUwKaeJMrD01CE0gKXbkVCcapTZ8F9YjD+dhwmL4i3TaR6G/YQv/Yg/EE
zGuYr2FpjG76FHw7h3EIcXtDBiXVgzHx8xml6drK/wupquse3wdTwVP2x3fSEbkE
Awz0PnQb5IQfd3ubPpTbWWk/AsffkC1kCvrMgQVSVpdVD2L5QuW2PDYbTdC7yBi0
q9bpHyPFFtOHx9hYPdg/1O6NLGnYNgctApLHDl69UkBZU6wAlVVSpKfAefZgfUvm
PUx+7/0aEQf660LU6+UYdkm/vwA19fpOnCRSGqZxr07KGXwPTFOMchWh//FaM2Y=
=eng1
-END PGP SIGNATURE-

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Gnoga site

2015-02-09 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2015-02-09 02:29, Rabbi David Botton wrote:
 Can you and Jeff both try http://gnoga.com/ajax.html
 
 Also in both of your cases, you are not disabling java script
 correct?

At work now, most likely some kind of firewall.

But, Iceweasel works on both pages, Ajax or not.
However the Ajax page never stops loading,
while the std one does.

Firefox W7, does not work at all

Both ajax and std says it is waiting for gnoga.com


IE 11.0 shows same as FF, just waiting for gnoga.com


Javascript fully enabled in all three browsers

- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJU2Ip9AAoJEGaQZvZiZLyCRp4H/3oDVqTnrZf19enxvlDHb/UQ
GOn3vKqQob1bU3Ch2QIhPxk3XVF4JE7O/59i+0HrKJWLrmlR1AgugZyUn/UL8XJ1
3GWP7JoxgrKo+dw6I70AiRXWvQkKc1MwYLY1So/Sa+3muAiuhf8UVYRAGtQK+5DD
1oYjQQVY4OmTp5qnturCpLzhpkkLMt3Bkq0gFHeQjSLnRcxJOoyVtMxCOwu1Lk59
YMBM/uuQ4AKqmAhtcMzgy+nsI3QykSyHkG6srkzsOxQUrCn3cIHUUlr0JY94uaID
79ijk3KzGNkTBXj98GV7xAzjNUSozSY7vmrxlvuL7Rt20UxGUSiEYV81CBjd1Wo=
=TOPJ
-END PGP SIGNATURE-

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Gnoga site

2015-02-08 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2015-02-08 21:50, Rabbi David Botton wrote:
 If any one gets a chance, please try Gnoga.com. It is using the new
 auto fall back and I want to make sure now works for everyone.
 
 David Botton
 
firefox 35.0.1 in win 7 just tries to load the page, but nothing happens.
Iceweasel, on a virtual machine in the above win 7 box works fine

no firewalls

mobile broadband from my house


- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJU1+W+AAoJEGaQZvZiZLyCXZcIAKs99+XSxhw04hHo2e1SvXTP
ymcU75ZYiT1hhPkrlTPrqF3A1M9sorqIPqsAdGP18GpDcSOEJ0lqdsKiN3Z3sVBD
YP2lOYjIQvhFhKO5NerF3Q7Xc8qJasNuuYfnje8rj2A9fv8m5qXaXNvblXLl0IXj
461BBlVdJnFLuXAYxSrTh8oRP9HUzhPFKDJcRhMU+4dGLufEsRoU++QUZ5aUpJpV
hI13tD5fM6BmJJaFT4ANP3wNLtzeTbw7JUNgJ9wDiC9PTNWXA2u2I9tQXvZudh9L
BZeHa9Wm7d2dmFw4frG2Uy4lCweJgOosgWdpQ295ZWPxMVwaNBCvAvno52HQlRk=
=gV3t
-END PGP SIGNATURE-

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


[Gnoga-list] www.gnoga.com down?

2015-01-27 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I browsed the site with firefox, and did
some clicks on the back/forth buttons,
and now, all I see is 503 - service available


- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUx7V0AAoJEGaQZvZiZLyC+ZEH/joFfoy86Uy7UsifTZpadh96
68noKay4+fw4dSVfjvxLlAUN6pOuYdYdp12dfAJozKoPQSybyvIKkft5EQE9EvU+
z7PsvnW7NNbEYhRegDNMeZczGJSwx1GdnK5ilVdkdVQ0wJtP8BbJMNhgGIV74SQa
CKDjQC5Uy2RjQfh4HI5IZRfl9AfChIC9GAgbTYCUNcEIRV6xbTS5C3Nq/hP2zOit
gQECBmXpdNC7eWz23bXEeQoJSM3vsqjACvjza4PnUvNzDKHh+37mw/vD3xBxH13s
0XriIuNF3OJGHsCgkSrbu5JmZprBWr4TL31QEHhnJQshTfErnVb68QmUMaMZPQ4=
=lHQu
-END PGP SIGNATURE-

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Any Gnogians going to FOSDEM?

2015-01-09 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2015-01-09 12:37, Rabbi David Botton wrote:
 From google translate:
 
 But in our family we turn simply not women. It is not because we
 are particularly chivalrous, I would think, more on that we do not
 want to damage valuable workforce.
 
 things that may you go hmmm
 
 David Botton

Well google does not get everything right.

But in out family, we simply do not _hit_ women.
It's not because we are particularly chivalrous,
I would think, it's more that we do not want to
damage valuable workforce.

Anyway, I was just surprised to see such a quote.
Here, it's taken from its context, which of course
may change very much of its meaning.


- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUr+ZpAAoJEGaQZvZiZLyCIi4H/3v4jjU9jbK2hAN7HKwZn80o
pIF5r5SadV5kUsxNLmM1QdeG6dXc+G2MBhm2Ct1EuEliWifoaP1WTgB3OUYKY7I5
h6Khxw8j9JUcDqGrLCehBg+fpmcpM7BvHPdE0rLmRmMCtdJcyyjH32zklmhq2pnI
Ja8k9D4YP5N3OogG/ByjWUSY3DcWGrClq6UFVM5kyMVpxBV0iS4nAu71yNQ0CygS
NVgP7Qdy7wOQdAzBcdLUf7rwSFcl88B4mbLuEO6njbvP5AmdtQ4q49jxczvJLIZY
lb60HsK7GemMkhDyytkw2ZKYy8iQI9aF4M2ScEOTf+DHaLW0omsek0XfldE9hvE=
=1/8o
-END PGP SIGNATURE-

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Need some tips on how to layout elements.

2015-01-09 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2015-01-09 12:28, Rabbi David Botton wrote:
 I really need to make tutorials just on layouts for sure and to
 spend time on more methods to simplify it in the big picture.
 

Yes. I looked at the multi-connection one,
and compared it to the skeleton the
gnoga_make new multi myproject does
and I got somewhat confused of different meanings
of 'view'

In the tutorial, 'view' is a _part of_ 'App'
but in the generated code 'view' _is_ 'App'

It confuses me a lot (yes - simple mind)

I really like to see a multi-app sample
with
* some master/slave data
* using several tabs with different master/slave data

In my case i'd like to visualise

a horse race
  many runners

or

a pick-route
  many picklines

or

an order
  many order-rows

a shipment
  many consignments

or 




- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUr+i0AAoJEGaQZvZiZLyCvAUIAKqZT2HpCTQOZSuImcHIh6O7
Af0Lm8qCe41PIeam+SHZkeA4Z0zip4w2cDVMglPzxmR6gnteCWZTCMkpUnVuhoeR
FQ9/n3N+klTeynfquD0TLxjLj08kpaza3I7EpWr5XTHJ7osr0BbRn8dgs7Ii4kly
3L9oI68wIpHlvSs1VD33WSQfqM9ZjUR/TnF48JxBteoXHeaRq8ixyAlfKdcn5gfb
o7h73gVAufAgJeGvdyp/vFV/Onc/PNAHAIK4/O5oemyM7uYLQK9oV8P5kOzyCKzc
iu9RMjr49XIZPPsCbLDx3DJ7kiFUyqO3dNthLtUzSFmwX19CcpAwJot2LRPxBO8=
=fGFu
-END PGP SIGNATURE-

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] [PATCH] Fix a bunch of random typos

2014-11-24 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2014-11-24 14:20, Rabbi David Botton wrote:
 Super appreciated, I'll try and have these fixes in today.


While you are at it, on

http://getadanow.com/#get_mac

I think
'with out' is one word - 'without' - in this context

If you wish to use the gdb debugger with out being root
 

- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUczXbAAoJEGaQZvZiZLyCPeQIAIuPGv1K5U6r4Z2kdpMKupJr
MTsKtSQe9chmkijJkWFXJ8jkyCze+P8WbGsIDrT8PRSBQb267FZHosb5F353sMoi
Zmo2Jlfo00dcWrtauWGKNqA1KgPSC7oJFJhM0iBWBmG+jr0UlUgUl8d6aDlU77U5
RtD26W3sxjBiBE7MegdUEeT+i7NCtPiGTeL7Lk7xzNRAJCA+XgTApGu3rPbA6WwC
2TAk8IAZUyj6wtvAHlD1bB/2d16IuTNQ0zr9IeQi4YNe32r7sNVVVknaqYLTf/Yu
yEFU7h/7X55Euo3x5HlO2wPiU8ZfmdRSl4W6mYRFwsprVajLD5JSfybnR3phz+s=
=4fZE
-END PGP SIGNATURE-

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] [PATCH] Fix a bunch of random typos

2014-11-24 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2014-11-24 14:59, Rabbi David Botton wrote:
 
 'with out' is one word - 'without' - in this context
 
 If you wish to use the gdb debugger with out being root
 
 Fixed.
 
 Sorry, as is clear spelling is my kryptonite.

No need to apologize.
Your enthusiasm and work make up for spelling mistakes
for the rest of your life :-)

- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUc0+NAAoJEGaQZvZiZLyC1wcH/Ri1a2fy8EXERlJE4B9tmKqk
JB+mTLUGqyO85SOjUVk42rxJas/YAap27mMXoLdqjFuVbJoT3OmyABgR7vG/mKM4
YEyebt+2cEXmJAwB93jIOYfjXELfd4RHMQcvUl8IYbfzuXpTCwasO0Qe3sDlvRTm
LJqUmgyRYquoYMqF0pxYErSwG7VvQdIDgT+6Tw5JYFhIo5zcUb9/I75tCjK+37ma
WNIBH7M2y/z5de3ytYJFbmp8oDL9m/jfP5Q+Z7yW4IgYfrmyqf1t+ipalMR2l9jB
y+RXbkMk3zUmBmzwj+n9RkPsGaGR2B5QvfXqBjtkJHEDO5hk0bsOxx7AmOxVIew=
=uCCo
-END PGP SIGNATURE-

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] how to empty a table

2014-11-23 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2014-11-23 08:19, Rabbi David Botton wrote:
 
 
 If you are not going to set any handlers on the table elements you
 could also do everything static and just let the child elements of
 the table finalize right after creating them (this doesn't remove
 them from the DOM, you just have no more access to them unless you
 attach to them again).
 
 At library level: Result_Table  :
 Gnoga.Gui.Element.Table.Table_Type;
 
 Say in some procedure Fill_Me.
 
 Row : Table_Row_Type; ... for i in 1 .. Last_Result loop declare 
 Col : Table_Column_Type; begin Col.Create (Row, Result (i)); end; 
 end loop;
 
 Then you can use the Result_Table.Inner_HTML (); to erase the
 children in the DOM and start over and call Fill_Me again.
 

This works very well for my purpose


 
 I then tried View.Result_Table.Remove; View.Result_Table.Create
 (View);
 
 
 Create in the above code is invalid, i.e. View.Result_Table exists,
 in this case in the browser (although not in the DOM) and on the
 Ada side.

Yes I noticed that...


 Remove removes the entire table element from the DOM but it still
 exists in the browser's gnoga cache.

And this too

 You could put it back using View.Result_Table with
 Place_Inside_Top_Of, Place_Inside_Botton_Of, Place_Before, or
 Place_After. All the children would also be put back as well and as
 long as the Ada objects used to create them are still around you
 can access those elements if they are in the DOM or not.

But this is really good to know

Thank you.


- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUcbXoAAoJEGaQZvZiZLyCLmQH/0uPh9HHabaA28INd/wB21ml
Sik2bw5jrxHf8NBNQRm0s/nWrMNB/a0lXUM1pR/pntm7UN0K+uq78fZx6nKmyjnt
B9ik1IhBDagfCBxDPDnDTfCkuNYm6eFLlvvODVZkWuIP/+DgtVQ5MqcvooSqQEth
ivY5ZkXGFEkhGZaDyy9iMMp9LDJalMqOBQIpkdwvB3YYFYGnoQLwBpD1RTU6nHln
+HbvpYIGCTezkLEICxYridV+Is8dI6bv5fNsEGzK/7ve1UR7lndt5MQUNIbiEEYV
cTgJJgYCllaKkgl1KDHdXFB4bQjoKWZROYdC3h+Hq/J+hPPRYO3C4/nNEx+ZdJM=
=h5dT
-END PGP SIGNATURE-

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


[Gnoga-list] use of Gnoga.gui.element.background

2014-11-22 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I'm retrieving a resultset from a database that
fits the Table element fine.
I get a table with correct data as is,
but I'd like to tweak the table a bit


I'd like to :
* set table borders
* make every other row have green background
* have the last row in bold, green or not


so I added

 if Cnt mod 2 = 0 then
   Row.Background_Color(green);
 end if;

as seen below.


so I have

   procedure On_Click_Run_Query (Object : in out
Gnoga.Gui.Base.Base_Type'Class) is
  View : Bot_Gui.View.Default_View_Access :=
   Bot_Gui.View.Default_View_Access (Object.Parent);
 T : Sql.Transaction_Type;
 Eos : Boolean := True;
 Betname   : String (Bet_Name_Type'range) := (others = ' ');
 Sumprofit : Float_8 := 0.0;
 Count : Integer_4 := 0;
 use Gnoga.Gui.Element.Table;
 Layout_Table : Table_Access := new Table_Type;
 Cnt : Integer_4 := 0;
   begin
  Layout_Table.Dynamic;
  Layout_Table.Create (View.Main_View);
  Layout_Table.Add_Caption(Today's result);

  View.Label_Text.Put_Line (Will run query);
  T.Start;
  Select_Profit.Prepare(
  select  
BETNAME,  
sum(PROFIT) as SUMPROFIT,  
count('a') as CNT  

   



  Select_Profit.Open_Cursor;
  loop
Select_Profit.Fetch(Eos);
exit when Eos;
Select_Profit.Get(BETNAME, Betname);
Select_Profit.Get(SUMPROFIT, Sumprofit);
Select_Profit.Get(CNT, Count);
declare
   Row  : Table_Row_Access := new Table_Row_Type;
   Col1 : Table_Column_Access := new Table_Column_Type;
   Col2 : Table_Column_Access := new Table_Column_Type;
   Col3 : Table_Column_Access := new Table_Column_Type;
begin
   Cnt := Cnt +1;
   Row.Dynamic;
   Col1.Dynamic;
   Col2.Dynamic;
   if Cnt mod 2 = 0 then
 Row.Background_Color(green);
   end if;
   Row.Create (Layout_Table.all);
   Col1.Create (Row.all, Utils.Trim(Betname));
   Col2.Create (Row.all, Utils.F8_Image(Sumprofit));
   Col3.Create (Row.all, Count'Img);
end;
  end loop;
  Select_Profit.Close_Cursor;


Dispatch Error
GNOGA.GUI.BASE.OBJECT_WAS_NOT_CREATED - gnoga-gui-base.adb:2094
[./bot_gui]
0x006CC763 gnoga.gui.base.jquery at gnoga-gui-base.adb:2094
0x006CCBE1 gnoga.gui.base.jquery_execute at
gnoga-gui-base.adb:2107
0x00685905 gnoga.gui.element.style at gnoga-gui-element.adb:142
0x0068CBFE gnoga.gui.element.background_color at
gnoga-gui-element.adb:1131
0x005C1B24 bot_gui.controller.on_click_run_query at
bot_gui-controller.adb:112
0x006C7B3F gnoga.gui.base.fire_on_click at gnoga-gui-base.adb:939
0x006CAA46 gnoga.gui.base.on_message at gnoga-gui-base.adb:1870
0x0063B0C5 gnoga.server.connection.dispatch_task_typeT at
gnoga-server-connection.adb:933
0x008B92D7  at ???

[/lib/x86_64-linux-gnu/libpthread.so.0]
[/lib/x86_64-linux-gnu/libc.so.6]
[./bot_gui]



Obviously, I'm doing something wrong here ...

How to use method Background ?

- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUcNUBAAoJEGaQZvZiZLyCtJoH/3gVbFFB2So2sgU8OtHAMN/T
OGlnZRPy2lpYPCP/+jkL9zGZrltKihHA6CSXDR+8iksoupW7NBuK3GbCF1DMhuT/
qFN+Bugd0bMauL+bVQichxuuQC/ZZnWn8drzqMSvp9NVs6tttaCzxlXeBhoDDQnR
BLxTrIdHZdDA7ERUFHQJGJx7j+CxEWgZ+6RIfwVcZAxQt+B+slA6SOjqNfQqsneT
fRMbv920uRVHAe2KXmNHNfibu5ftL8qSYm5KRjx7HqdWBYPEpcBhC6cP4UGbI04s
RG1pxg8KSRotO2ewxFLsZw+68TcVo07K6j9Qld2OUFuFwHu8pz1MYIXqAPyFTXo=
=lxvj
-END PGP SIGNATURE-

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


[Gnoga-list] how to empty a table

2014-11-22 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Having a table

  Result_Table  : Gnoga.Gui.Element.Table.Table_Type;

How do I empty it?
I've populated it with data from a recordset,
and now I wan't to rerun the query,
and then fill the same table with a new recordset.

But I do not want to add rows to the table,
I want to empty/reset/clear it before re-populating.

with

   type Default_View_Type is new Gnoga.Gui.View.View_Type with record
  Result_Table  : Gnoga.Gui.Element.Table.Table_Type;
  Run_Query : Gnoga.Gui.Element.Common.Button_Type;
   end record;


I tried

   procedure On_Click_Run_Query (Object : in out
Gnoga.Gui.Base.Base_Type'Class) is
  View : Bot_Gui.View.Default_View_Access :=
   Bot_Gui.View.Default_View_Access (Object.Parent);
   begin
  View.Result_Table.Remove;
  View.Result_Table.Add_Caption(Today's result);
.

and it does remove it, but next recordset
is not visible. It looks like it is still
valid in ada, but removed from the DOM.

I then tried
  View.Result_Table.Remove;
  View.Result_Table.Create (View);

but that gives me
Dispatch Error
GNOGA.GUI.BASE.OBJECT_ALREADY_CREATED - gnoga-gui-base.adb:267




- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUcQkqAAoJEGaQZvZiZLyCxroIAK4NhJ6SVBwsFULTGl06hL7j
Eue8tm3xJvf7EIgVpW2YiB7UcWW/Z/khBrs4pSsa4zrOkAVB6s9r4qXGAv/jTTcl
j3LKCh459lgDaMhJdkjZ+IuxkvBShgJsZLniyBBUDoD9vik4WX07Ynt3MIM3t8vY
x/n8u/L2lnQtLcgSUKu1F4BrS7dhjVW2v9I0dHNtm/L8ozg0QV/lmY3J1wdyodf6
vYD65u7/hKKuvxsIoFn+dnj+tcV3uGVkjE+71tn2vrSi0DTp7ZglGN+42zuvW43n
tLU5NVL7xe7baZTK78bld9NNanJ0tIPLX+L5t/zjv8ivUMrN0kXTG+gv2Vc5cLs=
=DSlA
-END PGP SIGNATURE-

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] build from git fails on debian jessie 64 with ada GPL 64

2014-11-21 Thread Björn Lundin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2014-11-21 16:03, Rabbi David Botton wrote:
 This should be in aws-net-websocket.ads
 
 procedure Close (Socket  : in out Object; Message : String; Error
 : Error_Type := Normal_Closure); --  Send a close frame to the
 WebSocket
 
 Very strange error indeed, git annotate shows that even the
 current version pre-dates the AWS-GPL version:
 
 79a38bab(Pascal Obry2014-02-01 18:53:18 +0100
 132) procedure Close 79a38bab(Pascal Obry2014-02-01
 18:53:18 +0100   133) (Socket  : in out Object; 79a38bab
 (Pascal Obry2014-02-01 18:53:18 +0100   134) Message :
 String; 79a38bab(Pascal Obry2014-02-01 18:53:18 +0100
 135) Error   : Error_Type := Normal_Closure); 79a38bab
 (Pascal Obry2014-02-01 18:53:18 +0100   136) --  Send a
 close frame to the WebSocket
 
 David Botton
 
 

I've got
aws-3.1.0w-20130907-src.tgz

and it does not contain Close.
I'll upgrade

This I think was a wavefront I got from ACT
regarding something else, I think smtp and tls



- --
Björn
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUb1hrAAoJEGaQZvZiZLyCeXkH/1vuLiRUUVgc1xLaM6Y7Pvxd
g04McHlKKMhPmrr1hrGqD7Lr8IGLjIusaqmDvZNsnIj5IF0Z8PyxkaEnLE6KK9ng
MAni25GCmGg6lA9Bb2gz3Y6n7OyEmAH9Gv5Xr4dt15rvNcWSY69JxuUJ33qVugRH
uA85Pw8kWsW0eK1+69vjeQ10A+FAgMrYfppS45pbp19ktNw/43AfnUKzl9OjVPaS
wWI4+3Itg2JkfnuCHxl6cLhHlN2AtVSatUZ9aJC1FUTtFfiGI60IeTsGRTGUFVZK
4DyWJ3625NeLZ1SC0NWfFt1Z0Flt1GsLQ1L1yopyjhwgL4okkczXr5NB+tFi01M=
=jjgf
-END PGP SIGNATURE-

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list