wyozi / cyan Goto Github PK
View Code? Open in Web Editor NEWA generic license server using Play framework
A generic license server using Play framework
Some licenses naturally need bigger threshold support (if they have multiple users using same license for a reason). Therefore it should be possible to increase anomaly threshold for specific license.
There should be an HTTP endpoint to allow registering a license. The endpoint should be able to receive a password (as a specifiable query param), which must match the admin-set password for that product. If the password is correct, a license is registered for given product/user and a custom ID (UUID perhaps?) is returned in the HTTP response, which should be later used by pings to identify the specific registered license.
Registering should be opt-in, but if registration is enabled it should be the only way to be able to ping the said product.
Very lightweight DSL to verify ping validity.
For instance the futures at
cyan/app/controllers/admin/prod/Products.scala
Lines 42 to 45 in e328ea7
Add new stacked line graph totaling 100% to visualize adoption rate
Modify current graph to visualize absolute usage (filled -> nonfilled)
Improve graph dataset color generation (lerp between whole hue range where each segment takes 1/datasets.length space)
Please add the ping & response documentation to the readme. Thanks
-Mexican
I don't know why this happens... Scala is not a language I know.
java.lang.RuntimeException: Duplicate mappings: /root/activator-dist-1.3.7/target/universal/stage/lib/org.scala-lang.scala-library-2.11.7.jar from /root/activator-dist-1.3.7/lib/org.scala-lang.scala-library-2.11.7.jar /root/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.7.jar at scala.sys.package$.error(package.scala:27) at sbt.Sync$.noDuplicateTargets(Sync.scala:67) at sbt.Sync$$anonfun$apply$1.apply(Sync.scala:26) at sbt.Sync$$anonfun$apply$1.apply(Sync.scala:23) at com.typesafe.sbt.packager.Stager$.stageFiles(Stager.scala:26) at com.typesafe.sbt.packager.Stager$.stage(Stager.scala:40) at com.typesafe.sbt.packager.universal.UniversalPlugin$$anonfun$makePackageSettingsForConfig$7.apply(UniversalPlugin.scala:86) at com.typesafe.sbt.packager.universal.UniversalPlugin$$anonfun$makePackageSettingsForConfig$7.apply(UniversalPlugin.scala:86) at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35) at scala.Function3$$anonfun$tupled$1.apply(Function3.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [error] (cyan/*:stage) Duplicate mappings: [error] /root/activator-dist-1.3.7/target/universal/stage/lib/org.scala-lang.scala-library-2.11.7.jar [error] from [error] /root/activator-dist-1.3.7/lib/org.scala-lang.scala-library-2.11.7.jar [error] /root/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.7.jar [error] Total time: 39 s, completed Mar 22, 2016 9:16:05 PM
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.