How can I handle different languages when using nimbella commander on Slack? - nimbella-commander

I want to create a nimbella command but I want my function to respond to Slack appropriately based on the end user language (ie i18n).
How do I know the locale of the end user when I need to program my response so the response is adjusted based on language (ie Spanish, English, etc) and formatting (ie currency).

Related

Procedure that get information from other pages from network

How can create a procedure in any programming language that create an iconic call to page and get data from network? An simulator for user standard activity. For example, user every day search on Google some key words and get a list of websites that are close to his search. Is possible this action simulate by program that create a call to Google with standard key words and get the results from network? Also this logic can used in other sites without any hardcore part of code?

Can Google Cloud Vision generate labels in Spanish via its API?

say that I have images and I want to generate labels for them in Spanish - does the Google Cloud Vision API allow to select which language to return the labels in?
Label Detection
Google Cloud Vision APIs do not allow configuring the result language for label detection. You will need to use a different API like Cloud Translation API to perform that operation instead.
OCR (Text detection)
If you're interested in text detection in your image, Google Cloud Vision APIs support Optical Character Recognition (OCR) with automatic language detection in a broad set of languages listed here.
For TEXT_DETECTION and DOCUMENT_TEXT_DETECTION requests, you can provide languageHints parameter in the request to get better results for certain cases where the language is unknown and/or not easily detectable.
languageHints[]
string
List of languages to use for TEXT_DETECTION. In most cases, an empty
value yields the best results since it enables automatic language
detection. For languages based on the Latin alphabet, setting
languageHints is not needed. In rare cases, when the language of the
text in the image is known, setting a hint will help get better
results (although it will be a significant hindrance if the hint is
wrong). Text detection returns an error if one or more of the
specified languages is not one of the supported languages.
The DetectedLanguage information is available in the request to identify the language along with a confidence value.
Detected language for a structural component.
JSON representation
{
"languageCode": string,
"confidence": number,
}

elastix Callcenter module Outbound Campaign not working

I m a newbie in Asterisk and Elastix world.
I have recently configured Elastix for our outbound campaign and its working perfectly . Now I have added Callcenter Module and created an outbound campaign for our sales team. But despite of several tries and browsing the internet have not been successful on making it work.
Steps followed:
-Added Agent with extension having permission of Agent Console.
-Tested Agents with Logging in with Agent Console .
-Created Queue and assigned the static Agents with Pattern A6001,0 .
-Create outbound Campaign with Callsheet in csv format ( CSV is showing correctly , tested it in the Campaign report it shows the csv phone number values as pending )
After these steps , I'm still not able to get a call initialized from the queue and the extension number just plays the music and waits for the call from the queue but never receives one.
Please help and let me know whether I m missing something here.
Thanks in advance
Call Center ignores all dialplans, including trunk's.
Make sure that you phone numbers in CSV appear exactly as they should be dialed. Try to set trunk explicitly in the campaign properties (not "by dialplan")
Additionally, make sure the following:
- the numbers in the CSV are in the first column and column's header is "phone" (without quotations)
- CSV separator is strictly commas and encoding is UTF-8 (with BOM)
- if you have non-Latin characters in CSV, all values in such columns should be in quotations (it's OK for Latin characters too) but headers should be without quotations and strictly only in Latin (English) characters
- you choose right queue in the campaign
- agents' numbers in Call Center/Agent Options match their numbers in PBX/queue
Check in Campaign Monitoring that you agents are indicated as "Free" in the status column. Just pending calls without dealing them most likely means that you have no available agents assigned for this campaign. This sometime happens, nothing helps but creating new queue and reboot.

unique download link created after button link on website (not sure what language to search on internet)

I would like to learn what language the following is done in
:
user comes to site and fills out mailing list form (for example)
when user submits the form, a unique download link is generated for the file( for example: www.myDomain.com/downloads/myFile.zip)
Bonus: have that link expire after 24 hours or however long seems necessary (I actually believe that is done with PHP, which I have been playing with, but am not even a novice yet)
I am not looking for anyone to give me the answer, but maybe point me in the right direction as to where to learn. I have googled many different variations of "unique download link on button click".
My level of knowledge is XHTML/CSS, and I have played with JavaScript and PHP, but as I said, I am not even a novice. I am looking more for what language this is done in so I can work towards it.
You can do this in pretty much any server side language including PHP. How it works is the user submits the HTML form and a PHP script will process it to see if it's filled in correctly and matches all the criteria (emails are actual emails, names aren't blank etc.). Then it would use a database backend to insert the details of the form so you have it for your records.
For the download link, once you enter the form details, it would generate a token link just for that user which has a timestamp, both (Token and Timestamp) of which will be stored in your database. This link point to your PHP script which will take in the token (URL GET Variable) and check if the token is valid and if the file timestamp is less than 24 hours. If both these conditions are true, it'll serve the file to the user for download otherwise it'll show an error.
PHP and MySQL would be a good enough tool and should be fairly easy to get started with the documentation around.
Steps:
Look into how to capture form input in PHP (validations and security too)
Storing the input in a Database (MySQL for example)
Generating a token link and store in Database with timestamp and serve to user
When token link is accessed, checking if token is valid and timestamp is not more than 24 hours

In Google Analytics, what does the locale "c" stands for?

Google Analytics displays statistics depending on user's language.
I have visitors whose locale is en-us (english), fr (french), but also c.
What does this c language code stands for ?
I took a look at reference tables here and here but could not find c.
Thanks in advance !
The only locale names you can count on finding on all operating systems are these three standard ones:
"C"
This is the standard C locale. The attributes and behavior it provides are specified in the ISO C standard. When your program starts up, it initially uses this locale by default.
"POSIX"
This is the standard POSIX locale. Currently, it is an alias for the standard C locale.
""
The empty name says to select a locale based on environment variables. See Locale Categories.
In my case, that was bots.
The network domain was either kimsufi, amazonaws, or not set ....
Always the same pages viewed, and always direct trafic.
If I were you, I would check these other dimensions.
Language codes are sent by the client, to the server, so that the server may return specific page information based upon this (such as translated pages). It seems though, that Google Analytics may not check for validity of these language codes before adding them to your charts.
For example, I have at least one language codes in the form *30789a483078979530789a5830789a2c307898a4 visible in my data.
Further analysis of the few of c language-code visitors visible in the information from my website, it appears that they all originate from Linux OS (or undefined), and all use Safari or are part of a script getting data from a webpage (one in particular was http://pagepeeker.com )
Despite the language, the requests originate from all over the world.
In summary, I think it's just invalid data that's being sent to GA, and should probably be ignored.

Resources