Question regarding country - locale

locale = "hy_AM_REVISED"
Which country does this locale belong to?

Its Armenian
Check the list of all locales.

Related

Can I get list of all categories that foursquare API could return to me?

Can I get list of all categories that foursquare could return to me ?
https://developer.foursquare.com/docs/responses/category.html (link to category object description)
I know that the new categories could be created, and some deleted. But I just would like to prepare my app to be able to handle some categories in special way, and I need to know in advance what they could be.
Thanks for time in advance.
This should include all possible Foursquare categories. It's this endpoint: https://developer.foursquare.com/docs/api/venues/categories
Foursquare also provides an up-to-date category hierarchy without using the API. Useful if you just want to take a look at the list without doing a call.
Interestingly on that page, they also provide "Supported Countries" where the category "can only appear on venues in those countries".
https://developer.foursquare.com/categorytree

How to fetch the Document/Assignment manager name using # formula

I have a view in which I need to fetch the document manager name but not the hierarchical name. I need to fetch the last name and the first name. I have used the #Name function but I'm not sure how to use it. Any help will be appreciated.
Many people are under the impression that #Name([G];theName) will give the first name and #Name([S];theName) will give the last name -- because that's what the Lotus documentation says. That's actually true, but it only ever worked for hierarchical names that came in messages received via the old Lotus X.400 gateway, which could include G and S components (e.g., CN=first last/G=first/S=last/OU=ou1/O=org/C=US).
The best you can do with #Name for an ordinary Notes/Domino user is to use #Name([CN];theName), as suggested by #Mike Zens, and then if you need to separate first and last names you can use #Left and #Right. Unfortunately, there's no perfect way to do this because the CN could look like this: "Mary Ann Jones" where the first name might be "Mary" or it might be "Mary Ann". (And I've actually been confronted by a user with that name who was angry that a piece of software I was supporting made the assumption that "Ann" was her middle name!) Or you could run into a name like this: "Jose de la Madrid". There's just no possible algorithm that will always parse a name into the correct parts.
So if you really need to get first and last names separately, the best thing to do is use #NameLookup to retrieve the FirstName and LastName fields from the Domino Directory. Of course, that will only work if those fields are filled in, which isn't 100% guaranteed.
If you are looking for ways to just format the name, as mentioned already you can use the #Name formula:
#Name([CN]; DocumentManager);
If you are looking for specific information on that user, you can use the #NameLookup formula:
lastNameList := #NameLookup([ForceUpdate]; DocumentManager; "Lastname");
(where DocumentManager is the item that has your user's name, and "Lastname" is the value from the Person doc you are trying to retrieve);
This example returns "Mary Tsen" if the AUTHOR field in the document contains "CN=Mary Tsen/OU=Illustration/O=Acme":
#Name([CN]; AUTHOR)
Replace AUTHOR with the field name storing the document managers name.

how to add new category to foursquare

I see that there is no very useful category in the foursquare category list provided by API.
This category is "Car services".
And what's more important for me in RU locale is that it should be "Автосервис" or "Станция технического обслуживания авто".
Now many venues are marked with the wrong category because of the absence of these categories.
For example, car service venues are marked as "Automotive Shops" or in Russian "Магазин автотоваров". This is completely the wrong meaning.
So the question is how can I request for the addition of a new category?
Unfortunately there's no way to add venue categories via the Foursquare API, but please feel free to reach out to Foursquare support directly with your feedback: http://support.foursquare.com/requests/new

Selenium conundrum! Store links/text in links if certain text is present in element

I'm VERY new to Selenium and only came across it when trying to find a way to do the following:
I am a member of website which has forum groups. The website does not have a search function where you can search for all users within a group who are, say, from the UK.
What I want to do is navigate to the user list within a certain group and have a script that looks on the page for the text "United Kingdom" (the country of origin is written next to each username) and then either stores the username or (more preferable) the link which the username points to.
I have managed to write bits that do things like, highlight the term "United Kingdom" etc. But I can't seem to figure out how you search for one piece of text, but store the link which sits in the same element.
Any help would be greatly appreciated!
This should work if you use java bindings, although the basic principle stays the same with other languages
String foo = driver.findElement(By.Id("xxx")).getAttribute("href");

Is it possible to extend Categories in ExpressionEngine 2

we are currently weighing up what cms to use with Expression Engine 2 being a strong candidate.
We would like to create a bilingual site where the categories would need to be in both languages.
I see that a category has the following fields
Category Name,
Url Title,
Description,
Image url,
We would also like to add "Category Name French" and "Description French" to each category and have them editable via the control panel form.
Does any one know if this is possible?
Any pointers much appreciated
Beyond the standard ExpressionEngine Category Fields — Category Name, Category URL Title, Category Description, Category Image URL — you can add as many additional Custom Category Fields as you see necessary.
You can add/edit custom category fields in the ExpressionEngine Control Panel at:
Admin > Channel Administration > Categories > Manage Category Fields
This would allow you to add your "Category Name French" and "Description French" fields to each category and have them editable in the Control Panel.
.
I use category parents to group the individual categories, you can then easily output the required categories based on language, either via the parameter "category_group". You can then use all the default category fields and custom ones.
Basically:
English
-- category 1 (in English)
-- category 2 (in English)
-- category 3 (in English)
French
-- category 1 (in French)
-- category 2 (in French)
-- category 3 (in French)
I believe the accepted best practice for multi-lingual sites in EE2 is to use the commercial add-on Transcribe. http://eeharbor.com/transcribe
The easiest solution around bilingual categories is writing the name of the second language category in the category description input field and then use {category_description} as the name tag for that language. That is not useful if you need a description for both languages though.
this might work for you:
I haven't used EE2.0, but in EE 1.X you could create custom category fields.
Create a "{fr_category_description}" for instance
then have a read at this tutorial - http://expressionengine.com/wiki/Multi_language_site_alternative/
I implemented this on an english/welsh website and it worked very nicely
URLs look like site.com/COUNTRY_CODE/template_group/template and serve content based on this.
works by assigning a variable based on the country, then within your templates you can do:
<h1>{{country_code}_my_field}</h1>
which will translate to:
<h1>{en_my_field}</h1> for site.com/en/ or <h1>{fr_my_field}</h1> for site.com/fr
you just need to create fields with the country code as a prepended and you're good to go.
let me know if you need any clarification, can provide code from my live site.

Resources