摘要: Ansible简介和应用自动化基础实践 一.引入: 1.1 如官方定义,Ansible is The simplest way to automate apps and IT infrastructure. 它的设计灵感来自于作者Michael DeHanan喜欢的一本书《安德的游戏》中的一个通信工 阅读全文
posted @ 2017-09-06 15:35 王仲春 阅读(1188) 评论(0) 推荐(0) 编辑
摘要: Angular2的视图是动态的,在不修改绑定到UI上的源数据的情况下,我们可以通过指令来改变数据的是否呈现,呈现形式,呈现样式。 (1).Angular2提供的最常用的指令是: 1.*ngIf='expression',通过expression的运算结果加载或者写在当前元素. 2.*ngFor='e 阅读全文
posted @ 2017-01-07 16:36 王仲春 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 我们通过一个NgModule来启动一个ng app,NgModule通过bootstrap配置来指定应用的入口组件。 在 declarations 可以配置sub_component 如下构造一个TestComponent: 阅读全文
posted @ 2017-01-04 13:23 王仲春 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 当你安装完成Ng2开发环境时,你可能从NgModule开始去写一个Ng2的app,一个Angular2的应用,一般通过一个NgModule来启动,而在NgModule中需要定义root component,申明sub component,sub modules,providers等. 1.导入基本模 阅读全文
posted @ 2017-01-03 11:06 王仲春 阅读(763) 评论(0) 推荐(0) 编辑
摘要: yum yum --showduplicates list ansible | expand //列出可用的版本 yum install ansible yum install ansible-2.3.1.0-3.el7 yum -y remove ansible network cd /etc/s 阅读全文
posted @ 2017-12-07 13:26 王仲春 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 配置全局/yum/wget网络代理 往 /etc/profile或/etc/yum.conf或/etc/wgetrc 添加以下行: $ echo 'export http_proxy="http://proxy.**.**.com:8080"' >> /etc/profile $ echo 'exp 阅读全文
posted @ 2017-07-06 12:04 王仲春 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1.设置http类型的服务器的代理 $ npm config set proxy http://server:port 2.设置https类型的服务器的代理 $ npm config set proxy https://server:port 3.设置npm镜像 $ npm config set r 阅读全文
posted @ 2017-03-13 17:16 王仲春 阅读(10279) 评论(2) 推荐(0) 编辑
摘要: position的值如下: 1.absolute:生成绝对定位的元素,相对于当前元素的父元素中position为static之外的第一个元素进行定位 .box {float:left;border-style:dotted;border-color:blue;margin-right:2%;marg 阅读全文
posted @ 2017-03-07 09:42 王仲春 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 本文总结了一些javascript开发中容易忽略或混淆的知识点. 1. parseInt(string, [radix]),parseFloat(string) 一般我们省略第二个参数,parseInt(‘100’) 100,此时默认认为‘100’是一个十进制数的字符串。 parseInt(‘100 阅读全文
posted @ 2017-03-03 12:54 王仲春 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Sharepoint Team Site我们可以创建Site Pages,Site Assets,Document Library,List,Workflow等资源,基本的Web Parts和页面定制我们主要操作Site Pages和Site Assets,这些资源会存储在Sharepoint服务端 阅读全文
posted @ 2017-02-18 12:15 王仲春 阅读(818) 评论(0) 推荐(0) 编辑
摘要: Sharepoint Team Collection中有一个叫Site Pages的文件夹,这里添加的.apsx页面其实可以被sharepoint 服务端管理并供你的sharepoint站点访问,如Index.apsx,可以通过路径访问:https:/xx.yy.com/teams/TESTING/ 阅读全文
posted @ 2017-02-15 16:49 王仲春 阅读(2317) 评论(0) 推荐(0) 编辑
摘要: Sharepoint使得企业能够构建出一个智能的管理企业内容和业务流程的门户网站,它将Office桌面端和企业业务管理,知识管理,资源管理,协同办公和系统集成荣威一体。本文主要介绍如何从零开始构建一个Sharepoint站点,当然啦,前提是你的公司已经购买了Sharepoint服务,并且你有设计权限 阅读全文
posted @ 2017-02-10 17:25 王仲春 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 1. 给pipe输入参数,改通道根据参数返回不同的值 Angular2 - Starter - Pipes, Custom Pipes 2. Output/Input 如下构造一个people-resolver 指令,改指令根据输入的user,去查找该user的详细信息,并发送给people-fin 阅读全文
posted @ 2017-01-19 16:09 王仲春 阅读(527) 评论(0) 推荐(0) 编辑