Does anyone know of one? The docs simply say
Length Constraints: Maximum length of 32.
Required: Yes
but they seem to have a regular form; e.g. only upper-case letters and numbers, starting with Z etc.
Related
I'm trying to make a DialogFlow bot which returns the height weight of a person, given the policy number. Policy Number is an alphanumeric string on 10 characters with "AA" (2 A's) in the start and then 8 random digits.
I've made a regex entity for the same.
^(?i)a{2}\d{8}$
But in the training phrase whenever I type a policy number it is not being mapped to the policyNumber entity. I'm fairly new to DialogFlow and this is the first time I'm making a bot.
So, can anybody guide me with what I'm doing wrong.
Here are some of the screenshots.
Training Phrases:
Here are some of the warnings:
policyNumber Regex Entity:
The problem was solved after adding 10 training phrases and manually mapping the "regex entity".
Pub/sub guarantes that messageId is always unique number. Therefore, i use this id as deviceId and i hold this value on bigquery table. Google documents say this value string. But, messageId return 15-digit number according to my experiments. Should I keep this value as number on bigquery? Does it cause any trouble?
Pubsub Message Format
The issue is the max length of an Integer (10) and not the fact it contains only numeric values.
This is why you should keep the value as String and not as an Integer as defined in the documentation
Pub/sub guarantes that messageId is always unique per topic - not that it is a number (ref)
The data type as stated in the docs is a String, so it can contain any unicode character.
So, as others have said, although it is a 15 digit number now, if at some point in
the future, google generates a non-numeric string, or a number greater than what your low level code can store, then your app will fail.
Google Support Says :
"MessageId consist of the maximum possible digits are 19. As long as an ID hasn't been used before (since they are unique), there can be up to 19 digits, but realistically that amount of digits may not be reached."
It looks like, from inspection, that the form of a Google Tag Manager id is "GTM-XXXXXX" where the x's are [A-Z]|d, is this accurate? I need to verify whether the id's being submitted to a CMS are valid.
I've just wrote this one for our framework:
/^GTM-[A-Z0-9]{1,7}$/
Tested with 25 GTM container IDs in our account, all passed validation. You can try this expression out here.
The format varies. I see various combinations of numbers and letters, some just letters, none just numbers, most 6 characters, and few with 4 characters. There's no clear pattern. They begin with either a letter or number, and end with a letter or number.
I'm building our inventory feed for Amazon Seller Central in OpenOffice Calc but can't work out how to convert our inhouse product IDs to the Amazon required format GCID.
The standard-product-id must have a specific number of characters according to type: GCID (16 alphanumeric characters), UPC (12 digit number), EAN (13 digit number) or GTIN(14 digit number).
Our product IDs vary by manufacturer, eg:-
123456
AB123456
1234AB
Where the ID is numerical only I can format the cells with leading zeros, however this doesn't work if the cell contains letters.
My file has over 10,000 products so I'm wondering if there is a formula I can apply to all cells to instantly convert them to GCID?
It seems the question was asked when under a misapprehension but having noticed that the example 123456 AB123456 1234AB represents three different IDs and aware that padding to a specified length is quite a common requirement (eg see String.PadLeft Method) a suggestion for OpenOffice might be of use to someone, one day.
Convention is to pad with 0s but since some spreadsheets automatically strip these off the front of numbers (as first example) and databases tend to prefer that fields are of consistent format I suggest separating the padding from the example with a hyphen, to aid identification of alpha numeric codes and to force text format:
=REPT(0;15-LEN(A1))&"-"&A1
I need to check the availability of all short domains that contain a word "hello". It can be anything like "hellohi", "aahellokk" or "hellowhello". I know that there are services, like http://www.bluehost.com/cgi-bin/signup, where you need to type the domains one-by-one. However, I want to bulk-check them. Then, I need to generate a list of words. I mistakenly tested in Zsh:
echo {1..10}hello{A..Z}{5} > test
I don't know what is the easiest way to generate the list of words. How would you check the availability?
Here is my Python solution. To generate the domains use something like this:
from itertools import product, permutations
import operator
chars = 'abcdefghijklmnopqrstuvwxyz0123456789'
l = 2 # Max prefix / suffix length
words = reduce(operator.add, [[''.join(p) for p in permutations(chars, i)] for i in range(1, l+1)])
domains = [w[0] + 'hello' + w[1] for w in product(words, words)]
This will take ages and use loads of memory if l is larger than 2 or 3. Also, you'll need Python 2.6 for some of the itertools functionality.
To check if the domains are available use this:
import commands
for domain in domains:
output = commands.getoutput('whois %s.com' % domain).lower()
if 'not found' in output or 'no match' in output:
print domain + '.com'
To speed this up you could use threads for the whois check.
If you really want a zsh solution, use e.g. host, dig or nslookup to perform a DNS query, and assume that a failure means that a domain is still available. Keep an eye out for performance: some of these utilities may be faster than others.
If I may ask: what do you need this for? Are you a domain name squatter?
you can use this domain search api to check domain name availability
For anything but the shortest names and large words, the number of possible domains is extremely large; infeasibly large to create a list of them. For example, for a potential 11-letter domain name that you want to check a 4-letter word for, you're looking at at least 2 BILLION combinations (rough estimate). Of course, if you wanted to check that 11-letter domain name for a 10-letter word, you're looking at just 72 possibilities.