Saturday, November 30, 2019

Re: Adding u2f to js.identifier.blacklist



On Saturday, November 30, 2019 at 1:34:19 AM UTC+1, Axel wrote:
The obfuscator does not have "u2f" as a blacklisted identifier. In conjunction with a Firefox that now (>=67) has U2F enabled by default (see about:config, security.webauth.u2f) the identifier "window.u2f" is made available. When the obfuscator uses u2f as an output symbol, weird things can happen, such as properties that are expected to be found on the object bound to the obfuscated "u2f" identifier not being found because u2f points to the U2F object and not the application object.

In our project we work around this by adding

   <extend-configuration-property name="js.identifier.blacklist" value="u2f"/>

to a base module that all our modules inherit. I think this should become part of the standard as it is error prone and incredibly time-consuming to figure out the root cause of the errors that can result.

It is. It just hasn't been released yet: https://github.com/gwtproject/gwt/issues/9619 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/ec6136d4-dfc6-480b-adb2-314be37acca8%40googlegroups.com.

Friday, November 29, 2019

Adding u2f to js.identifier.blacklist

The obfuscator does not have "u2f" as a blacklisted identifier. In conjunction with a Firefox that now (>=67) has U2F enabled by default (see about:config, security.webauth.u2f) the identifier "window.u2f" is made available. When the obfuscator uses u2f as an output symbol, weird things can happen, such as properties that are expected to be found on the object bound to the obfuscated "u2f" identifier not being found because u2f points to the U2F object and not the application object.

In our project we work around this by adding

   <extend-configuration-property name="js.identifier.blacklist" value="u2f"/>

to a base module that all our modules inherit. I think this should become part of the standard as it is error prone and incredibly time-consuming to figure out the root cause of the errors that can result.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/470b1dd1-4133-464c-b523-7feab71f87ba%40googlegroups.com.

Thursday, November 28, 2019

Re: JsFunction length is zero

ok then.


I will try to come with a patch in the next few days.

Thanks

  Vassilis

On Thu, Nov 28, 2019 at 9:38 AM Jens <jens.nehlmeier@gmail.com> wrote:

Do you think a patch like that has any chance to be accepted? or this is not considered to be an issue?

Seems like a valid behavior for JS libraries to check argument count, so I guess it should be accepted. Goktug or Roberto should probably review it.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/9232cdec-c84f-427a-a019-d0cef9262244%40googlegroups.com.


--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAKbOjExjVWLLBO%3DJHgiudD6g%2BDtSc-PGnj%3DWdH%3DPWh43ugu8ww%40mail.gmail.com.

Wednesday, November 27, 2019

Re: JsFunction length is zero


Do you think a patch like that has any chance to be accepted? or this is not considered to be an issue?

Seems like a valid behavior for JS libraries to check argument count, so I guess it should be accepted. Goktug or Roberto should probably review it.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/9232cdec-c84f-427a-a019-d0cef9262244%40googlegroups.com.

Re: JsFunction length is zero

Hi Jens,

Thanks for the reply and the pointer. Your answers are spot on as always but in this case I had managed to find the specific code fragment by my self.

I was thinking a patch could look like the accepted answer in this Stack Overflow question: https://stackoverflow.com/questions/7316688/how-to-programmatically-set-the-length-of-a-function

assuming arguments and arguments.length carry the necessary information.

Do you think a patch like that has any chance to be accepted? or this is not considered to be an issue?

Thanks



On Wed, Nov 27, 2019 at 1:57 PM Jens <jens.nehlmeier@gmail.com> wrote:
You can see here how GWT compiler creates lambdas: https://github.com/gwtproject/gwt/blob/master/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Runtime.java#L162

In case you also want to try to fix the issue ;-)

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/e6e9e9ea-e921-41c7-9283-9734902e3d41%40googlegroups.com.


--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAKbOjEzsNhqhPWbUQENie-mx-g-pMYWs-09vt5w8fqbf8qnUDQ%40mail.gmail.com.

Re: JsFunction length is zero

You can see here how GWT compiler creates lambdas: https://github.com/gwtproject/gwt/blob/master/dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Runtime.java#L162

In case you also want to try to fix the issue ;-)

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/e6e9e9ea-e921-41c7-9283-9734902e3d41%40googlegroups.com.

Tuesday, November 26, 2019

JsFunction length is zero

Hi,

Looks like that some javascript libraries are checking on the argument length of the callbacks that are passed to them.

So for example D3 bisector can take a function with one or two arguments. If it is one then it is an accessor if it is two then it is a comparator.

I searched on github issues. Should I report it?

The following snippet demonstrates the problem. The Function.length should be 1 and not 0.

    @JsFunction      public static interface SomeFunction {          public double call(double x);      }  
    /**      * This is the entry point method.      */     @Override     public void onModuleLoad() {         final SomeFunction y = new SomeFunction() {             @Override             public double call(double x) {                 return 2 * x;             }         };         DomGlobal.console.log(y);         return;    }


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAKbOjEzhR%3DGgF8S7SMmpq9WzjmqViKjZtcWLCKMp%3DaK0uZmHLQ%40mail.gmail.com.

Saturday, November 23, 2019

Our GWT app hangs on iPhone Safari.

We have a GWT 2.8.1 app (midasmed.com, beta), that runs fine on on both desktop and android devices on Chrome, Firefox, Edge and also on the Mac (Safari), but hang on iPhone Safari (iOS 13.1.3). I can't seem to isolate the problem - it hangs seemingly randomly, no exceptions are thrown, and no errors are shown in the Safari dev tools console. The app does quite a bit of javascript processing on the client. Any suggestions as to what could be causing this will be greatly appreciated!

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/dc3a8d75-0b55-4794-b88c-f2a6d4e4da57%40googlegroups.com.

Friday, November 22, 2019

Good news about Smart GWT

Hi all,

Few weeks ago Isomorphic Software mentioned that to support GWT it's pretty easy for them and will continue to do that while the project is alive.

http://blog.isomorphic.com/the-difference-between-smartclient-and-smart-gwt/

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/48f92ff8-5fc7-4e5e-a57f-5175f1743e05%40googlegroups.com.

Thursday, November 21, 2019

PatternFly Java

Hi all,

I'm working on a GWT version of PatternFly [1]. PatternFly [2] is an open source design system built to drive consistency and unify teams. It's open source and sponsored by Red Hat. 

PatternFly comes with a set of design guidelines and components. There's support for plain HTML / CSS and React. PatternFly Java adds support for GWT. Currently only a subset of the PatternFly components is implemented. But I'm planning to add support for more / all components in the coming months.

PatternFly Java heavily depends on Elemento [3] and tries to support an API which is both easy to use and flexible enough to address special use cases. There's also a showcase [4] which demonstrates the current status.

I'd love to get feedback especially about the API design. Please file your ideas, critics and any other feedback as GitHub issues under [5].

Thanks 
Harald

[3] https://github.com/hal/elemento

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/9b592778-ab67-4be2-8ba7-82315bf16037%40googlegroups.com.

Tuesday, November 19, 2019

Re: Adding maps

I am pretty convinced Mallikarjuna Sarvala's answer doesn't work in 2019
But give it a shot and let us know.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/5d10abe7-3577-4087-85e8-5cd457847d03%40googlegroups.com.

Re: Adding maps

http://www.gwtopenlayers.org/

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/f0ccc899-c098-4d8d-bd94-7a2dcfd4b403%40googlegroups.com.

Re: Adding maps

Source: https://stackoverflow.com/questions/23543415/how-to-add-google-map-for-gwt-into-formpanel

How to add Google map for GWT into FormPanel?

Here is the code.

Simply call below line and the map is added in formPanel.

GoogleMap gMap = GoogleMap.create(formPanel.getElement(), options);

Some more configuration as defined below:

  • gwt.xml:

    <inherits name="com.google.maps.gwt.GoogleMaps" />  <script src="http://maps.google.com/maps/api/js?sensor=false" />
  • gwt-maps.jar in build path of the project.


Sample code:

public void onModuleLoad() {      FormPanel formPanel = new FormPanel();      formPanel.setWidth("500px");      formPanel.setHeight("650px");        RootPanel.get().add(formPanel);        MapOptions options = MapOptions.create();        options.setZoom(6);      options.setMapTypeId(MapTypeId.ROADMAP);      options.setDraggable(true);      options.setMapTypeControl(true);      options.setScaleControl(true);      options.setScrollwheel(true);        GoogleMap gMap = GoogleMap.create(formPanel.getElement(), options);        gMap.setCenter(LatLng.create(58.378679, -2.197266));  }

On Tuesday, 19 November 2019 16:56:29 UTC+5:30, shubhangi agarwal wrote:
I'm trying tp implant google Maps on gwt tab panel. but unfortunately unable to do so. please help

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/80fecec4-20c5-475d-a256-bceed88cb0d3%40googlegroups.com.

Thursday, November 14, 2019

Snail Mail: Indexing Human Work

Slow Ventures Snail Mail

Snail Mail: Indexing Human Work


Thursday, November 14, 2019

Welcome to another edition of Snail Mail! Today we are have a podcast with the Co-Founder & CEO of Otter, Sam Liang, focused on AAI for conversations. 

Got forwarded this and want to subscribe? Go to https://slow.claims. 
🤔 Slow Thinking: Sam Liang (Otter)

Click here for full Otter Audio and Transcript.

At Slow, we do a lot of thinking about how to best integrate humans and machines to optimize the efficiency of a company. Of course, like most things in life, there are trade offs to implementing machines to replace humans but one of the biggest virtues to the substitution is that it is very easy to measure and quantify machines! Conversely, while humans are more effective at less repetitive tasks, they are often hard to measure and thus optimize, organize, and improve. 

Recently, Alex sat down the Co-Founder and CEO of Otter, Sam Liang, to learn more about how Otter is indexing human work. 

Otter is where conversations live. Otter is a simple app that allows users to easily record and auto transcribe conversations. Companies (including Slow) use Otter daily to create detailed notes for meetings, interviews, lectures, pitches, and other conversations that happen every day. With Otter teams can easily collaborate and organize their meeting notes based on speaker, tag, content, etc... it's pretty cool.


Highlights:

0:20 - what is Otter?

3:10 - Otter versus Alexa and Siri.

5:45 - what makes Otter different from other recording and transcribing technologies?


8:23 - being able to generate actionable data from speech is exciting but how does Otter think about privacy?

10:29 - data logging versus data access.


12:32 - outside-the-box use cases.

15:44 - a look into the future. 



If you are interested in learning more about Otter, please check out their website at www.otter.ai
🌮 Food for thought

Want moar? Check us out on:
Facebook, Twitter, Medium or our Website

Signup for Snail Mail Newsletters at  http://slow.claims
Our mailing address is:
1006 Kearny St, San Francisco, CA 94133

Don't Want These Emails?
unsubscribe from this list
 

Donate BTC: 3BJW4B6GGpoQrjeom6RpVtkza3XPw2qjoK
Donate ETH: 0xD7599b3D15805aDF3144676914964e8fff53C925