I'm trying to create globally-unique identifiers in JavaScript.  I'm not sure what routines are available on all browsers, how "random" and seeded the built-in random number generator is, etc..  The GUID / UUID should be at least 32...
I'm trying to ascertain some way to establish a unique ID for Chrome tabs that meets the following conditions:   Uniquely identifies each tab Stays the same for a given tab between browser restarts (session-restored tabs) Stays the same if a tab...
How to check if variable contains valid UUID/GUID identifier?  I'm currently interested only in validating types 1 and 4, but it should not be a limitation to your answers....
I found the question here:   Create GUID / UUID in JavaScript?  The answer provides the following JS:  function S4() {    return (((1+Math.random())*0x10000)|0).toString(16).substring(1); }  function guid() {    return (S4()+S4()+"-"+S4()+...
I would like to have a hashtable of jQuery objects and needs some kind of unique identifier for them.  The DOM representation is just  <tr>     ... </tr>   And I would like to add my jQuery <tr> objects to a hashtable  hash[$(trObje...
I found this answer Is there any way to generate the same UUID based on the seed string in JDK or some library? but this is the java way.  I need to the same, but in javascript, i can use any npm module or any library or custom function.     You can...
I have regex for guid:     /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i   And regex to match a number:     /^[0-9]*$   But I need to match either a guid or a number. Is there a way to do it matching a single regex. Or...
I am getting arrayBuffur from WebSocket connection, and I can get range of byte arrays that is  Guid created in c#.   How I can convert this guid bytes to string in javascript?  Guid="FEF38A56-67A9-46DF-B7D8-C52191CD70F4"  Bytes=[86, 138, 243...
I try to convert GUID in base64 string for some reasons in Node.js  My function is   function encode(guid) {     let buffer = new Buffer(guid.replace(/-/g, ""), 'hex');     let ret = buffer.toString('base64');     ret = ret.re...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.