demo

Managing the demo version of software [closed]

自闭症网瘾萝莉.ら 提交于 2020-01-14 14:14:57
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I have a software product written in VB6. It is a paid software product and it has a demo version for 1 month.There is no separate setup file for demo version.The software on entering the product key turns demo to a full version.I used to write the information in registry to track

每天一个JS小demo之移动端横向滑屏和“橡皮筋”特效

为君一笑 提交于 2020-01-12 16:48:25
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width,user-scalable=no" /> <meta charset="UTF-8"> <script type="text/javascript"> (function(){ setSize(); window.onresize = setSize; function setSize(){ var html = document.documentElement; var htmlW = html.clientWidth; html.style.fontSize = htmlW / 16 + "px"; } })(); </script> <title>Document</title> <style type="text/css"> body { margin: 0; background: #ccc; } ul { margin: 0; padding: 0; list-style: none; } .navWrap { position: relative; border-bottom: 1px solid #000; background: #f1f1f1; height: 2.4rem;

fabric工程化

倖福魔咒の 提交于 2020-01-10 22:00:03
一个小时带你用 Hyperledger Fabric开发一个Demo ,看这篇文章写一个fabric的demo应该很快,但是将fabric工程化考虑的因素就比较多了。看一下 他的demo源码 进入到 startFabric.sh ,不禁要问,如果有6个组织,那么这个脚本岂不是要写6个,再增加组织怎么办呢?实际工程化,就不是demo那么简单了。 #install chaincode on peer0 docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode install -n account -v 1.4 -p "$CC_SRC_PATH" -l "$LANGUAGE" #init chaincode on peer0 docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src

helm常用命令

混江龙づ霸主 提交于 2020-01-08 19:48:00
helm install helm install demo/ #本地 helm install demo-0.2.0.tgz # 本地 helm install install chartmuseum/demo --version 0.1.0 --name demo --namespace default # 从仓库chartmuseum中拉取demo,并且版本为0.1.0 release名字为demo 命令空间为default helm package helm package demo/ helm search [root@t31 helm]# helm search demo NAME CHART VERSION APP VERSION DESCRIPTION chartmuseum/demo 0.2.0 1.0 A Helm chart for Kubernetes helm search -l [root@t31 helm]# helm search demo -l NAME CHART VERSION APP VERSION DESCRIPTION chartmuseum/demo 0.2.0 1.0 A Helm chart for Kubernetes chartmuseum/demo 0.1.0 1.0 A Helm chart for Kubernetes

volatile

半城伤御伤魂 提交于 2020-01-07 21:54:18
volatile 关键字,使一个变量在多个线程间可见 mian,t1线程都用到一个变量,java默认是T1线程中保留一份副本,这样如果main线程修改了该变量, t1线程未必知道 使用volatile关键字,会让所有线程都会读到变量的修改值 volatile不能保证原子性举例 比如说第一个线程加到100了,还没往上加,另外一个线程来了,把100拿过来执行方法, 然后第一个线程继续加到101,第二个线程也加到101,他两往回写都是101,线程不会管你加到哪儿了, 虽然说加了2但是实际上只加了1. volatile并不能保证多个线程共同修改running变量时所带来的不一致问题, 也就是说volatile不能替代synchronized或者说volatile保证不了原子性 public class Demo { volatile int count = 0 ; public void test ( ) { for ( int i = 0 ; i < 10000 ; i ++ ) { count ++ ; } } public static void main ( String [ ] args ) { Demo demo = new Demo ( ) ; List < Thread > threads = new ArrayList < > ( ) ; for ( int i = 0

基于 laravel 4.1 的简易博客实例

≯℡__Kan透↙ 提交于 2020-01-07 12:47:31
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 项目简介 这是一个 laravel-4.1 的 Demo,一个简单的博客实例。 涵盖知识点: 路由、过滤器。 Eloquent 基础、模型对象关系、分页、搜索、排序。 控制器、blade 模板。 Mail 操作。 Auth 类的使用。 Validator 类的使用。 为求开发尽可能的简单高效,做出以下调整。 所有控制器均置于顶层命名空间,遵循 PSR-0 规范,使用 PEAR 命名风格进行前后台控制器分离。 开发阶段引入了 laravel-debugbar。 开发阶段使用了自定义的辅助工具包 Assists,部署后可以完全移除。 此项目仅用于学习交流,有任何问题请发 issues 。 2014-02-19 初始版本编写结束。 项目截图 GitHub 地址 5-say/laravel-4.1-simple-blog 来源: oschina 链接: https://my.oschina.net/u/589130/blog/201290

Looking for a demo project to present Maven

耗尽温柔 提交于 2020-01-03 05:00:09
问题 I'd like to introduce Maven to my fellow coworkers who mostly use Ant to build their projects. One of my goal would be to show them the benefit of building a corporate repository to easily share reusable components. But first of all, I need to show them the basics. I came across this question about presentation materials with a very good answer from Pascal. But I really need a demo project to actually show Maven in action, some sort of toy project, simple but complete enough to illustrate the

Decorator functions in Go

眉间皱痕 提交于 2020-01-01 04:54:06
问题 Decorator pattern (functions) has many benefits: It is very useful when a method has many orthogonal concerns... I.e., None of these concerns are related, other than that we wanna do all (or some) of them whenever we call our method. This is where the decorator pattern really helps. By implementing the decorator pattern we subscribe to the open-closed principal. Our method is open to future extension but closed to future modification. There's a lot of groovy benefits to obeying the open

我写CSS的常用套路

安稳与你 提交于 2019-12-30 23:14:06
大きな星を摘んだなら、あなたは大きな富を手に入れる。 前言 本文是笔者写CSS时常用的套路。不论效果再怎么华丽,万变不离其宗。 之前发的 CSS技巧 大部分都是依照本文的套路来写的 有人问我为什么我能想出这么多的动画?笔者阅番百部,对常用的动画技巧了如指掌,同样那些酷炫的网站只要细心观察,也会给笔者带来很多设计上的灵感。 一言以蔽之:只有多欣赏动画,才能写出好的动画。 “我自己是一名从事了6年web前端开发的老程序员(我的微信:momoxiaojiejie123),今年年初我花了一个月整理了一份最适合2019年自学的web前端全套培训教程(视频+源码+笔记+项目实战),从最基础的HTML+CSS+JS到移动端HTML5以及各种框架和新技术都有整理,打包给每一位前端小伙伴,这里是前端学习者聚集地,欢迎初学和进阶中的小伙伴(所有前端教程关注我的微信公众号:web前端学习圈,关注后回复“2019”即可领取)。 常用套路 交错动画 有时候,我们需要给多个元素添加同一个动画,播放后,不难发现它们会一起运动,一起结束,这样就会显得很平淡无奇。 那么如何将动画变得稍微有趣一点呢?很简单,既然它们都是同一时刻开始运动的,那么让它们不在同一时刻运动不就可以了吗。如何让它们不在同一时刻运动呢?注意到CSS动画有延迟( delay )这一属性。举个栗子,比如有十个元素播放十个动画

Possible to mirror iPhone/iPad screen on a monitor without jailbreaking?

心不动则不痛 提交于 2019-12-28 11:52:31
问题 I have been looking for a way to show the iPhone screen (not the simulator) on a monitor or projector for demo purposes. Previous SO post suggested jailbreak (Veency, iDemo/DemoGod, screensplitr) or simulator. Release notes iOS 3.2 (External Display Support) and iOS 4.0 (Inherited Improvements) mentions that it should be possible to connect external displays to iOS 4.0 devices. Is it now possible to demo an iPhone device on a monitor without using the simulator, or are the release notes about