Re: You folks monitoring builds@?

2020-07-21 Thread Piotr Zarzycki
Relevant link to archive on builds:
https://lists.apache.org/thread.html/re974eed417a1bc294694701d5c91b4bf92689fcf32a4c91f169be87d%40%3Cbuilds.apache.org%3E

Jira where I'm asking for creating folder/space for Royale:
https://issues.apache.org/jira/browse/INFRA-20571

Thanks,
Piotr

niedz., 19 lip 2020 o 18:54 Christofer Dutz 
napisał(a):

> I think they are switching to a commercial Jenkins distribution from
> CloudBees.
>
> I think in general managing such a huge CI server like the Apache one with
> the Open-Source version is a challenge.
> The commercial distributions usually have some bells and whistles that
> allow managing the CI for large corporates which Apache might benefit from.
>
> But I'm just guessing, so this might not be true.
>
> Chris
>
> Am 19.07.20, 15:06 schrieb "Piotr Zarzycki" :
>
> Hi Chris,
>
> Why they are changing that? Do you know the reason?
>
> Do you know Is there any way to just copy settings without manual
> steps?
>
> Thanks,
> Piotr
>
>
> On Sun, Jul 19, 2020, 2:06 PM Christofer Dutz <
> christofer.d...@c-ware.de>
> wrote:
>
> > Hi all,
> >
> > if you haven’t been following bui...@apache.org bui...@apache.org>.
> >
> > It seems that builds.apache.org will be soon replaced by
> > ci-builds.apache.org and all jobs have to be re-setup on the new CI
> > system.
> > So I think you should probably start setting up as I think the old
> CI will
> > be turned off somewhere around August 15th.
> >
> > Chris
> >
> >
> >
>
>

-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
*


Re: You folks monitoring builds@?

2020-07-21 Thread Andrew Wetmore
Good that Christopher pointed this out and that you have taken the first
steps.

a

On Tue, Jul 21, 2020 at 7:08 AM Piotr Zarzycki 
wrote:

> Relevant link to archive on builds:
>
> https://lists.apache.org/thread.html/re974eed417a1bc294694701d5c91b4bf92689fcf32a4c91f169be87d%40%3Cbuilds.apache.org%3E
>
> Jira where I'm asking for creating folder/space for Royale:
> https://issues.apache.org/jira/browse/INFRA-20571
>
> Thanks,
> Piotr
>
> niedz., 19 lip 2020 o 18:54 Christofer Dutz 
> napisał(a):
>
> > I think they are switching to a commercial Jenkins distribution from
> > CloudBees.
> >
> > I think in general managing such a huge CI server like the Apache one
> with
> > the Open-Source version is a challenge.
> > The commercial distributions usually have some bells and whistles that
> > allow managing the CI for large corporates which Apache might benefit
> from.
> >
> > But I'm just guessing, so this might not be true.
> >
> > Chris
> >
> > Am 19.07.20, 15:06 schrieb "Piotr Zarzycki"  >:
> >
> > Hi Chris,
> >
> > Why they are changing that? Do you know the reason?
> >
> > Do you know Is there any way to just copy settings without manual
> > steps?
> >
> > Thanks,
> > Piotr
> >
> >
> > On Sun, Jul 19, 2020, 2:06 PM Christofer Dutz <
> > christofer.d...@c-ware.de>
> > wrote:
> >
> > > Hi all,
> > >
> > > if you haven’t been following bui...@apache.org > bui...@apache.org>.
> > >
> > > It seems that builds.apache.org will be soon replaced by
> > > ci-builds.apache.org and all jobs have to be re-setup on the new
> CI
> > > system.
> > > So I think you should probably start setting up as I think the old
> > CI will
> > > be turned off somewhere around August 15th.
> > >
> > > Chris
> > >
> > >
> > >
> >
> >
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> *
>


-- 
Andrew Wetmore

http://cottage14.blogspot.com/


Re: You folks monitoring builds@?

2020-07-21 Thread Carlos Rovira
Thanks for taking over guys :)

El mar., 21 jul. 2020 a las 13:35, Andrew Wetmore ()
escribió:

> Good that Christopher pointed this out and that you have taken the first
> steps.
>
> a
>
> On Tue, Jul 21, 2020 at 7:08 AM Piotr Zarzycki 
> wrote:
>
> > Relevant link to archive on builds:
> >
> >
> https://lists.apache.org/thread.html/re974eed417a1bc294694701d5c91b4bf92689fcf32a4c91f169be87d%40%3Cbuilds.apache.org%3E
> >
> > Jira where I'm asking for creating folder/space for Royale:
> > https://issues.apache.org/jira/browse/INFRA-20571
> >
> > Thanks,
> > Piotr
> >
> > niedz., 19 lip 2020 o 18:54 Christofer Dutz 
> > napisał(a):
> >
> > > I think they are switching to a commercial Jenkins distribution from
> > > CloudBees.
> > >
> > > I think in general managing such a huge CI server like the Apache one
> > with
> > > the Open-Source version is a challenge.
> > > The commercial distributions usually have some bells and whistles that
> > > allow managing the CI for large corporates which Apache might benefit
> > from.
> > >
> > > But I'm just guessing, so this might not be true.
> > >
> > > Chris
> > >
> > > Am 19.07.20, 15:06 schrieb "Piotr Zarzycki" <
> piotrzarzyck...@gmail.com
> > >:
> > >
> > > Hi Chris,
> > >
> > > Why they are changing that? Do you know the reason?
> > >
> > > Do you know Is there any way to just copy settings without manual
> > > steps?
> > >
> > > Thanks,
> > > Piotr
> > >
> > >
> > > On Sun, Jul 19, 2020, 2:06 PM Christofer Dutz <
> > > christofer.d...@c-ware.de>
> > > wrote:
> > >
> > > > Hi all,
> > > >
> > > > if you haven’t been following bui...@apache.org > > bui...@apache.org>.
> > > >
> > > > It seems that builds.apache.org will be soon replaced by
> > > > ci-builds.apache.org and all jobs have to be re-setup on the new
> > CI
> > > > system.
> > > > So I think you should probably start setting up as I think the
> old
> > > CI will
> > > > be turned off somewhere around August 15th.
> > > >
> > > > Chris
> > > >
> > > >
> > > >
> > >
> > >
> >
> > --
> >
> > Piotr Zarzycki
> >
> > Patreon: *https://www.patreon.com/piotrzarzycki
> > *
> >
>
>
> --
> Andrew Wetmore
>
> http://cottage14.blogspot.com/
>


-- 
Carlos Rovira
http://about.me/carlosrovira


Re: You folks monitoring builds@?

2020-07-21 Thread Piotr Zarzycki
That's only a first step - I'm not sure whether I find time for the next
one ;)

wt., 21 lip 2020 o 19:18 Carlos Rovira  napisał(a):

> Thanks for taking over guys :)
>
> El mar., 21 jul. 2020 a las 13:35, Andrew Wetmore ()
> escribió:
>
> > Good that Christopher pointed this out and that you have taken the first
> > steps.
> >
> > a
> >
> > On Tue, Jul 21, 2020 at 7:08 AM Piotr Zarzycki <
> piotrzarzyck...@gmail.com>
> > wrote:
> >
> > > Relevant link to archive on builds:
> > >
> > >
> >
> https://lists.apache.org/thread.html/re974eed417a1bc294694701d5c91b4bf92689fcf32a4c91f169be87d%40%3Cbuilds.apache.org%3E
> > >
> > > Jira where I'm asking for creating folder/space for Royale:
> > > https://issues.apache.org/jira/browse/INFRA-20571
> > >
> > > Thanks,
> > > Piotr
> > >
> > > niedz., 19 lip 2020 o 18:54 Christofer Dutz  >
> > > napisał(a):
> > >
> > > > I think they are switching to a commercial Jenkins distribution from
> > > > CloudBees.
> > > >
> > > > I think in general managing such a huge CI server like the Apache one
> > > with
> > > > the Open-Source version is a challenge.
> > > > The commercial distributions usually have some bells and whistles
> that
> > > > allow managing the CI for large corporates which Apache might benefit
> > > from.
> > > >
> > > > But I'm just guessing, so this might not be true.
> > > >
> > > > Chris
> > > >
> > > > Am 19.07.20, 15:06 schrieb "Piotr Zarzycki" <
> > piotrzarzyck...@gmail.com
> > > >:
> > > >
> > > > Hi Chris,
> > > >
> > > > Why they are changing that? Do you know the reason?
> > > >
> > > > Do you know Is there any way to just copy settings without manual
> > > > steps?
> > > >
> > > > Thanks,
> > > > Piotr
> > > >
> > > >
> > > > On Sun, Jul 19, 2020, 2:06 PM Christofer Dutz <
> > > > christofer.d...@c-ware.de>
> > > > wrote:
> > > >
> > > > > Hi all,
> > > > >
> > > > > if you haven’t been following bui...@apache.org > > > bui...@apache.org>.
> > > > >
> > > > > It seems that builds.apache.org will be soon replaced by
> > > > > ci-builds.apache.org and all jobs have to be re-setup on the
> new
> > > CI
> > > > > system.
> > > > > So I think you should probably start setting up as I think the
> > old
> > > > CI will
> > > > > be turned off somewhere around August 15th.
> > > > >
> > > > > Chris
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > > --
> > >
> > > Piotr Zarzycki
> > >
> > > Patreon: *https://www.patreon.com/piotrzarzycki
> > > *
> > >
> >
> >
> > --
> > Andrew Wetmore
> >
> > http://cottage14.blogspot.com/
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
*


Re: Jewel dynamic DataGrid columns

2020-07-21 Thread Carlos Rovira
Hi Greg,

thanks for the detailed response. I think you're right, When I started
working on Jewel DG I was wondering about columns designed as Array instead
of ArrayList, since the latter provides better manipulation of items. But I
think is ok to handle that way and take into account that it requires a
full change of all columns.

Thanks


El mar., 21 jul. 2020 a las 8:54, Greg Dove ()
escribió:

> As discussed with you directly Carlos, I personally don't think it needs to
> be ArrayList.
> Usually changing things at this level (swapping 'columns') is rare, but it
> should be supported. Flex uses Array here too, and I am guessing similar
> considerations were used in the api design for the Flex DataGrids. Unless
> we think that those original assumptions have changed or were wrong, then
> probably it should be ok to keep it the same (as Array).
>
> I did some work on the emulation component support in recent months and
> iirc this wasn't working, so I made it work similar to Flex, and added a
> demo/test app for DataGrids in the mxroyale examples for that.
> One thing that is important is that the columns array be copied in setter
> and getter.  Flex does this also. This means that if you assign the same
> array twice it will potentially empty and recreate the content. It might be
> possible to inspect and check the contents of the old array for the same
> 'DataGridColumn' instances that are included in the new one when the setter
> is run to optimize some things, but I think it might be something to do as
> a subsequent optimization if it is 'needed', because the general case of
> swapping the full set of columns, I think is rare.
>
> So i think it is important to use the array.slice() copy in the getter and
> setter for internal storage of the columns array, otherwise external
> manipulation of the original array instance can mess things up a lot. I saw
> this happening in some legacy Flex code until I fixed it in the emulation
> components.
>
> One other thing that was quite common I think is the use of the 'visible'
> property in DataGridColumn which I don't think we have in Basic or Jewel
> (but we do in Flex/emulation).
> This is used more often in Flex for hiding columns, and does not require
> full refresh of the columns array.
>
>
>
>
>
> On Tue, Jul 21, 2020 at 3:22 AM Carlos Rovira 
> wrote:
>
> > Hi Piotr,
> >
> > the main point in Datagrid for columns in "columns", but is an Array
> (maybe
> > we could consider to change it to ArrayList?)
> >
> > In the current implementation, you need to change all the array, and
> should
> > throw away what you have and create a fresh instances of all new columns
> > and add dataproviders with data to create rows.
> >
> > If we had an ArrayList, maybe making an "addItem()" or "addItemAt()" to
> the
> > columns collection could handle just the addition of that column
> > without the need to be so aggressive with the rest of data.
> >
> >
> >
> > El lun., 20 jul. 2020 a las 12:53, Piotr Zarzycki (<
> > piotrzarzyck...@gmail.com>) escribió:
> >
> > > Hi Guys,
> > >
> > > I have requirements to have DataGrid where I'm adding/removing columns
> > > dynamically. I'm basically going trough the code and trying to figure
> out
> > > how everything works and how to approach that problem.
> > >
> > > I see that Jewel DataGrid is using class called DataGridButtonBar - It
> > > seems to me that I should just manipulate that one - basically adding:
> > >
> > > header.dataProvider = myNewColumns.
> > >
> > > However it does not gives me required result, even more my existing
> > columns
> > > are displaying "undefined" in header text.
> > >
> > > My general question how would you approach this ?
> > >
> > > Thanks,
> > > --
> > >
> > > Piotr Zarzycki
> > >
> > > Patreon: *https://www.patreon.com/piotrzarzycki
> > > *
> > >
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira


New Royale App in our official web app and source code avaialble too! :)

2020-07-21 Thread Carlos Rovira
Hi folks,

I'm happy to announce a mini app I was working last month for our Avant2
website at Codeoscopic.

It's a widget app that is embedded in our Wordpress based website. The
purpose was to upgrade the old visualization we had, since our Avant2
product integrates lots of insurance products from many insurance
companies. So the old one was very bloated and cumbersome since it was just
composed of static galleries with images of company logos.

The new Royale version shows 3 views: One for products, that shows all
companies that have that product available in the tool. One for companies,
that shows all products available for them. And finally a grid or table
visualization with products on X axis and companies on Y axis. There are
some particularities about complementary products and more, but I don't
think it is interesting for you :).

This was even posted in our Companies social networks. To show some:
https://twitter.com/Avant2Multi/status/128557712826369?s=20
https://www.linkedin.com/feed/update/urn:li:activity:6691276788431130625

Technically: I added some CPT (Custom Post Types) to our Wordpress backend
to create the data structures and its relations. Since we integrate more
products and companies each month, people in our staff need to add it vía
WP admin console to make it easy for them. Then this data is exported via
JSON WP Rest API and the Royale widget consumes it vía mx:HTTPService.

The widget uses Jewel as UI set (of course ;)), with some theme
customization to make it close to avant2 website look and feel. I use Crux
as well to handle event handling, IoC, and service (HTTPService)
integration.

The widget shows the new Responsive additions I added lately, so if you
access via Mobile, you should see how size for images and fonts decrease to
make all fit nicely in your mobile device. Then for Tablet and Desktop
images and fonts increase size to get the correct size.

More things! I added a new "extern" library called "royale-html2pdf" that
uses the html2pdf js library and exposes it to Royale. The library is used
to print the table of products in a PDF on the fly directly from the
dynamically generated HTML. This was particularly challenging due to all
the security things browsers do today to protect content. So getting the
images to show in PDF was a bit challenging even with that library in
place. I had to try many, many things to get it finally work.

Another thing worth mentioning is the use of "iFrameResizer", that makes
the widget behave as if it's part of the page. I started applying scrolls
to lists and table components inside the widget app, but that was not the
best experience. The problem with iframes is that it is difficult to make
it adapt to the host page as height changes, but this JS script does all
the magic. So you can see how as you change views in the app, you never get
scrollbars inside the iframe, and the rest of the page adapts correctly.
The scrollbars are always in the host page. So the experience is more
"natural" and the iframe is sized to the app content :).

You can check this app live here: https://avant2.es/productos-y-companias/

Also I want the source code be available to all that wants to check it and
learn from it: https://github.com/codeoscopic/avant2-website

Finally I added the "Powered by" Royale logo at the end of the app, so
people can know that was done with our beloved Royale and is in an official
company's website.  ;-)

Also hope to add it to the Royale Showcase Page this summer (and will ask
you for the info required to add more apps of course, along our TodoMVC,
TDJ, and more!).

I still need to continue improving it with some things in the following
days, since I detected some issues and as well I think others can be
improved. For example I want to add BrowserRouter to it since I
think it will be a very good example for it and will complete the example
event better.

Anyway, today we decided to publish it, since it is in a sufficient good
state now.

Hope you like it! :)

-- 
Carlos Rovira
http://about.me/carlosrovira