Is there a way to take a unique string of 256 chars, reduce it’s size with JS to a unique string of 50± chars, and retain guaranteed uniqueness?

I am working on building a parser for a text file to build into a JSON object. Presuming I have a string somewhere in the line which is a unique value: 4E183437F3FAEBC107C333CD16657661598A2A523867A4A95F6DAD4D25E191722AFFB3FFE29E287D9EB21ED8035E7666D06E65EC064D5D4B337C034459BA7CD6F72437B439329B45F15D57176122965728B36DBB455D335AA904106A29B64694507B6A0F89FBF4A166BB3BBB4DDDC1674A1DB3B7D0FD332117877C4CE56465D8 I want to use this unique identifier as a key at some level, but it’s much too long to suit my tastes. I…

draft-js-export-html not includes video when export

Currently, I’m using draft js editor, add plugin draft-js-video-plugin to insert video into editor and use draft-js-export-html to export html but the htmk result not includes video tag or anythings else. Console log stateToHTML(this.state.editorState.getCurrentContent()) <p><br></p> <figure>&nbsp;</figure> <p><br></p> I found same issue with export image here and they’ve resolved but not for video. I’ve read their…

openstack newbie: why give me this error, even if password is correct?

I have installed openstack following this guide. Now I want to try a simple cli command openstack catalog list I have export all this variables export HOSTNAME=”openstack1″ export OS_AUTH_PLUGIN=”token” export OS_AUTH_URL=”http://openstack1:5000/v3/” export OS_IDENTITY_API_VERSION=”3″ export OS_PASSWORD=”correctadminpass” export OS_PROJECT_DOMAIN_ID=”default” export OS_PROJECT_DOMAIN_NAME=”mydomain.fqdn” export OS_SERVICE_ENDPOINT=”http://openstack1:5000/v3/” export OS_SERVICE_TOKEN=”1234tokencorrecttakefromkeystone.conf” export OS_USERNAME=”admin” But the command return this error openstack catalog list The…

How to deploy a war via maven before running junit4 integration tests?

I want the maven to deploy war before running the jUnit tests. I have added the failsafe plugin and a configuration but the deploy is still done after the tests. Are the tests not run by the failsafe plugin? <build> <finalName>testWar</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.16</version> <configuration> <systemPropertyVariables> <wildfly.remote.port>10090</wildfly.remote.port> </systemPropertyVariables> </configuration> <executions> <execution> <goals> <goal>integration-test</goal>…

openstack newbie: why give me this error, even if password is correct?

I have installed openstack following this guide. Now I want to try a simple cli command openstack catalog list I have export all this variables export HOSTNAME=”openstack1″ export OS_AUTH_PLUGIN=”token” export OS_AUTH_URL=”http://openstack1:5000/v3/” export OS_IDENTITY_API_VERSION=”3″ export OS_PASSWORD=”correctadminpass” export OS_PROJECT_DOMAIN_ID=”default” export OS_PROJECT_DOMAIN_NAME=”mydomain.fqdn” export OS_SERVICE_ENDPOINT=”http://openstack1:5000/v3/” export OS_SERVICE_TOKEN=”1234tokencorrecttakefromkeystone.conf” export OS_USERNAME=”admin” But the command return this error openstack catalog list The…