Microsoft Botframework and LUIS validation of input - botframework

I am currently writing a Cortana app using Microsoft's Bot Framework and LUIS for language processing.
The goal is to have the user specify a direction and axis for movement. For example: Move Z Axis Up.
In LUIS I have this translated with axis and direction entity like so:
Move {axis} axis {direction}.
My question is:
where is the proper place to validate this input? If the user says "Move Z axis left" obviously this makes no sense since z axis can only move up and down.
Should this be done programmatically in my Cortana app or can it be done using LUIS? Any help is appreciated. Thank you

You could try training LUIS to recognise it as a erroneous intent, so that you can proceed to handle it in your app code.
This might be the better way as LUIS will learn over time to recognise such intents and then provide more accurate results.

If you want to bring your user more details about why it's not working, you should do it on your code side. If it is made on LUIS side, you will either not flag the direction as an entity or throw the None intent given how you train it. From my point of view, it's not the good solution as you don't know which error is happening.
And you should also train your bot with the right combinations.

Related

Installing multiple pixels to track conversions

I'm looking to install multiple tracking pixels on one page, and want to understand from technical point of view, if this is something feasible to achieve, and also that it won't create an issue of double shooting of pixels for the same individual.
In my case, we are talking about recruitment conversion tracking.
I want to install a pixel from two recruitment platforms, lets call them A and B.
What I want to achieve is as follows...
A visitors originating from platform A lands on my page -> fills in application and submits -> confirmation page is automatically triggered with "your application is submitted" message. -> pixel for platform A is triggered on the confirmation page -> the visitor's source is registered as "Platform A".
... same should be the case if the visitor is coming from platform B.
My concern is, is there a chance that both pixels from platforms A and B would be triggered at the same time, why would that be, and how to avoid it?
I don't have much of a tech background, so please, kindly explain in a bit of details so that I can grasp your response.
Cheers :)

Get Co-ordinates based on the marker location over the google map

Aoa,
I am working on a web application where a shop vendor must put a latitude and longitude of his/her shop.
It is easy to get if he/she is using application from the shop. But if he/she is somewhere else i want to show a map option to the vendor where he/she could search his/her shop point it. And I could get co-ordinates from that marker position.
I have studied google map api found a lot of useful things but couldn't understand how to achieve this as I am unable to find anything regarding getting co-ordinates from the marker.
It will be great if anybody could guide me that where should I look or what should I study to solve my issue.
Thanks in advance..
You can use the Maps JavaScript API to put a marker every time a certain point in the map was clicked then get the coordinates of the point and display it so that your user can directly get the exact coordinate of the marker. Here is a simple code I made to demonstrate this.
In the code, I used a listener to the map to check for every click on the map and put a marker on it. It will then update the label display with the coordinate of the marker.
map.addListener('click', function(event) {
addMarker(event.latLng);
document.getElementById("text").innerHTML = event.latLng.lat() + ',' + event.latLng.lng();
});
Hope this helps!
Right-click on the red marker on Google Maps after searching the location, select "what's here?" and you will see the coordinates in a pop-up.

Xamarin forms - lottie animations

I'm a beginner with Lottie, and I have a basic question:
I have a band which provides my app information about the heart rate of the user in the BPM unit.
I had downloaded from lottiefiles.com a JSON file of heart animation which shows exactly what I want - number BPM.
My problem is that I don't know how to set dynamically values in the animation whenever I get a new BPM value from the band.
Unfortunately, I didn't found how to do so after searching on the internet.
I suspect that maybe the function animationView.SetValue can help, but I don't sure exactly how.
Any help will be appreciated!!

iOS gamekit, card game players, & GKVoiceChatService

I'm working on a card game for iOS. I'm thinking game center integration is something I want to be leaning towards, but in terms of a card game, I'm not exactly sure what that would entail for the individual players. From the Apple class reference, it seems thatGKPlayer is what I want to be working with, but I also have my own player class that I think I'm going to need just to deal with card hands. I'm wonderring if my Player class should have a GKPlayer object in it or if that would be the wrong way to be going about it.
I'm also wonderring about the game center voice chat (I know this sounds completely unrelated to card games, but bear with me). I've not seen it implemented, so I'm not entirely sure how it works. Basically what I would need would be for it to be able to connect 4-10 players and to just be a voice chat sort of thing. It seems like the sort of thing that would need to display something on screen which I want to avoid. How would that work?
First Question's Answer :
Q: Player class should have a GKPlayer?
A: Well, that would be considered to be a good design. Because, a GKPlayer object will let you know the details of connected player who are currently participating in a game. However, It would be better if you can use the subclass of GKPlayer named GKLocalPlayer. So in that way you maintain an authenticity, one player with one device.
For more information on multiplayer game : Click here!
It seems like we can only have peer to peer voice chat. (But wait for an experts, to share more details with their own hacks!)

Where does Flex 4 states sit with components and frameworks?

Basically each of them tries to build smaller manageable parts of an application, but now I'm getting a little confused. I've seen the Mate Framework which claims to be an eventbased framework, but somehow the new States feels like it's overlapping. Can someone more enlightened than me bring some light on the subject, please!!!
States and events are 2 things totally different.
States is something you use inside a component. It represents the different state a component can have depending of some variables. For example, a login box could have a signup state and a signin state.
Events are used to communicate between components in a decoupled way.
At the end, you use both in an application.

Resources