Is there a way to import Polymer 3 components in Polymer 1? - polymer

I have just received a legacy project which was implemented using Polymer 1. For some reasons, I have a plan to change it to Polymer 3. There are lots of custom components. Also, it is a huge project and I want to gradually transform it step-by-step. My plan is that I want to change the components first and import them to the old project. When all components are finished, I will go for the rest of the project.
I want to ask if it is possible to take this approach and how? I have searched through the Internet but I cannot find any recommended approach in this case. If there is other recommended method, please tell me.
Thank you in advance!

Sorry but the answer is no you can´t. You can load Polymer as library only once (It is using the same namespace) per browser window so you must decide which version to use. The only way i think i will be possible is with an iframe but i guess that is not a suitable way for you.

Related

How to implement labelImg function on the web browser

i am using labelImg tool for a graphical image annotation.
But for our education site, we would like to add this function of a graphical image annotation like labelImg into our web service.
https://github.com/tzutalin/labelImg
So Can we make labelling tool for data preparation for training on our website as one of function of data training?
Anyone have any idea concerned with this?
Ryan.
Labelimg is a desktop app that uses Qt for its UI. There exists solutions to run Qt in a Browser. See for example the solutions for Running Qt over the Web.
Otherwise I would recommend to explore other web-based tools for image annotation, e.g., the Computer Vision Annotation Tool (CVAT).
I hope you succeed in your endeavor.
To previous flags/deletion of my answer: As per Stackoverflow's code of conduct I did "make sure my answer provides at least a viable alternative. The answer can be “don’t do that”, but it should also include “try this instead”. Any answer that gets the asker going in the right direction is helpful". Please comment with further explanation why this is not a valid answer. Many thanks and all the best.

Most reliable JSON viewer/editor module for AngularJS

I now need to add a feature on the app I'm building a json editor. I would like to know which module have you tried before that you think is stable and worked really well.
The source data is already in json format which I receive from an API call. I already have a button which will call $scope.viewJson() but I'm still missing which json editor module I should use. I saw this today but not sure if there is another few ones that are better - https://github.com/rodikh/angular-json-editor
I'm the author of https://github.com/rodikh/angular-json-editor.
It's basically a directive wrapper for jdorn's json-editor. His project is very popular and in active development. Both it, and my wrapper are safe to use.
If you have any feature requests or issues with my wrapper, feel free to submit an issue on github and I'll try my best to resolve them.
The best one (to my mind, but anyone is free to disagree my opinion) is formly
formly site
formly github
formly documentation
PROS :
complete (you can make beautiful and unique forms : templates are some kind like unlimited)
well documented
easy to implement
CONS :
you have to design your own builder (it is not a problem to my mind)
i know this question is old.. but i was looking for this for quite for some time.
and i found this editor 's tutorial: Ace builds
Ace builds tutorial
i found maximum above editor unmaintained.
you can check its github repo here
ace build GitHub repo
i hope it saves someone's time.

XSLT from the web - Needing the right dev/test environment

Mostly for learning and testing-purposes, I need an environment/software where I can apply XSL Transformations on websites (html).
It needs to support Sessions and Cookies because of a login required to actually reach the pages I want to transform via XSL.
The manual method aka calling the page in the browser and download it and copy into Eclipse for example, is too slow. I need an automated system.. if possible one which can call multiple pages via a script.
I know that this could be realized with a lot of coding in Java, but I hoped for a simpler solution...
Any ideas?
Thanks in advance!
No clue why people have downed this question -_-', but I've found a sufficing solution:
Using "wget" for downloading the files and Saxon HE (NET) for actually applying the transformations. Those programs can be easily called from windows CMD :)

How to use oAuth with ActionScript 3.0?

I came across this oAuth library for ActionScript 3.0. http://code.google.com/p/oauth-as3/
It seems to have all that you need to do oAuth, but I can't make heads or tails of it. I've never worked with oAuth (or any authentication..) before and am not really sure how to use it. I can't find any examples of this specific library, or any in general concerning oAuth and AS3.
Would anyone mind walking me through (or directing me to a tutorial) concerning how to use oAuth to interact with Web API's? Specifically I'm looking for ActionScript 3.0 interacting with Twitter.
Any help is much appreciated!
I don't usually like to post answers that just contain links but unfortunately, given the nature of the question and thus the answer, I think it's about the only choice here.
First I just want to say, try harder with googling next time. Many results came up first try.
Second, there seems to be two google code repositories for this. Just in case you're interested, here is a link to the second one (you provided a link to the first) http://code.google.com/p/oauthas3/. This repository has code which is newer than the repo you referenced.
Third, here are some links to articles/tutorials about this library which should provide all the help you've requested:
http://soenkerohde.com/2010/01/twitter-as3-oauth-lib-with-flex-4-example/
http://www.iotashan.com/index.php/2008/04/28/oauth-actionscript-library/
Note also this question and answer here on stackoverflow: Pinless OAuth on Adobe AIR for Android. It has some code and discussion about the library, so I've referenced it here as well.

Best Practice for Developing Core Functions in Symfony2?

I am an experienced Symfony user and have started using Symfony2 and absolutely love it. A big thank you to Fabien and the guys over at Sensio.
I am pretty much there now in terms of developing in Symfony2 thanks to the documentation available, but there is one area in particular that I am still not 100% sure on.
I have a number of core functions that I want to use in different areas of the application and just want to know what the best practice for this is?
I am currently creating a bundle that has a number of functions in that handles the processing of images.
Is this the best way to do this and if so how do I then use or include these functions across other bundles?
You could just import the classes you want to use from your image handler bundle, but the way I would go about it is to register one or more services (like an image manager or thumbnail generator or whatnot) from your bundle so that the functionality you are creating will be available through the DIC for the entire application to use.