NgRx Store : How to share the data between two feature modules - angular7

I have angular 7 application using ngrx. I have two laze loaded feature modules. One is overview and another is dashboard module. Overview module want to access the list of dashboards available in the system.
What should be the best practice to share the available dashboard data to the overview module. I don' want the whole dashboard module to be loaded into overview module. How the sharing of the data can be achieve using ngrx store.
I can easily share the data by writing the service and sharing the same between module but i want to see how i can achieve the same using ngrx.

Selectors!
If the module is loaded, you can easily write a selector that uses a selector for Module A and/or B.
const combined = createSelector(
selectFromModuleA,
selectFromModuleB,
(a, b) => ...
)
I've written about this topic in Sharing data between modules is peanuts

Related

On blackboard is it possible to open multiple scorms?

I'm having difficulty finding way to open multiple scorms simultaneously..
Is there a setting that I need to change or blackboard does not allow multiple scorms to be opened?
So commonly with SCORM you have a Runtime API that is nested somewhere on the LMS web page. This API is directly flavored for the SCO that was requested. So having multiples trying to talk to the same API would lead to data corruption. The only way to extend the capability for multiple shareable content objects would require more IFRAMEs. You'd need to nest the runtime in the first IFRAME, then the Content in a sub IFRAME. I've accomplished this with another client and it was done mainly to represent single page SCOs stacked on top of each other as a Q and A style homework display.
Is it optimal? Probably not. Does it work? Totally. The SCORM Runtime is a JavaScript based API which is populated with a CMI object. Namespaces within that CMI Object (get / set) from the content, however the LMS is responsible for populating its base values as well as maintaining whats allowed and not allowed. Hope that helps, but based on your question Blackboard would have to implement that sort of module support to do it.

Is it possible to achieve string localization inside of a statically linked lib?

I am working on building an SDK which will be built out as a statically linked library that third party applications can then drop in to their applications. Inside of this SDK, I was looking to be able to perform some "localization." Basically, I would like for the code in my SDK to be able to access some ".string" files to perform some string lookup and language translation capabilities. Then I could propagate these strings outward to implementing App layers through my exposed API's. Is this even possible? I thought it was but now that I have actually been trying, I am seriously having doubts.
You can make specific API to make the localized strings to be fed into the static library. One way for achieving it is by defining a predefined key value pair for all your library strings and ask end user to provide a localized files if a new language needs to be supported.

Can I use Adobe's (Satellite) Dynamic Tag Manager to set basic Adobe Analytics (Omniture) vars?

Is it possible to use Adobe DTM (aka Satellite Tag Manager) to set basic Omniture/Adobe Analytics variables, like pageName, so we don't need to place this code on the page?
You will need to load the "Analytics" tool to DTM to begin setting up Adobe Analytics variables. The nice thing about DTM is you do not need to migrate all of your analytics code to DTM all at once, you can migrate in steps as long as you tell DTM analytics code already exists on the page.
There are great videos here (under Dynamic Tag Management) which walk you through the setup of DTM and the configuration of the Analytics tool. https://outv.omniture.com/
One of the biggest benefits of DTM is to be able to do this in a very easy-to-do manner. You can create data elements to define the different pieces of data, and then use those data elements to populate the SiteCatalyst variables in rules. It greatly simplifies an implementation and is much faster than having to add code to each page. Plus it removes the need for developers having to put props, eVars, and events on a page. They just put a data layer (preferably in JSON) with all of the data you want to send to SiteCatalyst. The structure of the data layer is unimportant, and they can use any naming format they want.

Is there any news feed (event/activity stream) engine?

I'm looking for an open source news feed engine to use in an app I'm developing.
The engine needs to be able to aggregate news (items) from multiple sources a user is following and also optionally group them by news source or news type. A scalable solution in Java or with Java interface would be great.
I have already developed a very simple one, but I would prefer to use a robust and reliable solution instead.
Do you have any suggestion?
I created a backend for this in Java builing on neo4j: It is independent on the number of users and news sources one follows but depends just linear on the amount of items you want to display
find an explaination how it works and benchmarks with social networks with up to 2 mio users at http://www.rene-pickhardt.de/graphity-an-efficient-graph-model-for-retrieving-the-top-k-news-feeds-for-users-in-social-networks/
There is also the source code available: https://github.com/renepickhardt/graphity-evaluation
Check out Rome
http://rometools.org/
In case you also use .NET, Argotic Syndication Framework is for sure the best
http://argotic.codeplex.com/
Yahoo pipes is a very good rss feed which lets you create your own feed aggregator with custom filters.
Note: Python version for Yahoo pipes Pipe2py.
Aonther offering from yahoo is Daper.
There are few more online tools for creating custom feeds which you might want to look at.
FeedDistiller is a free service for aggregating new feeds by subject,

tornado realtime stream from twitter, uimodules & async db

I'm working on my first tornado project and i have some questions :
1- apart of the project is collecting and categorize real time hash-tags and tweets form different twitter users is and put them on the website I want ti use iostream for realtime results is there libraries helping me to do that and how to use it I found libs like python-twitter , tweepy but I don't know what is the best and I red about twitter limited api so what is library / way to do that? ... sorry but It's my first time to work with twitter too
2- I found in tornado documentation UIModule how to use it I didn't understand what the benefit of it ?
3- I there way to handler to render global template tags to use in more than template ?
4- I'm using MongoEngine will it work with tornado asynchronous or I have to use Asyncmongo ?
I don't know much about this one, but you could either to AJAX calls to twitter on the frontend, or do something like this: http://arstechnica.com/open-source/guides/2010/04/tutorial-use-twitters-new-real-time-stream-api-in-python.ars
UIModules are reusable parts of a site which can be easily inserted into any template. E.g, you could have a post module and a comment module in a blog, which you could then reuse on multiple pages.
Not really.
Use asyncmongo.

Resources