上一节把整个布局大概列了一下,这节重点记录一下 /etc/ansible/roles/tomcat 这个目录下的各目录的意义此目录的目录结构如下:
.
├── files
│ └── tomcat-initscript.sh
├── handlers
│ └── main.yml
├── tasks
│ └── main.yml...
分类:
其他好文 时间:
2016-05-12 15:57:40
阅读次数:
120
流程控制练习题
排序算法练习
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleAppTest
{
class Program
{
//排序...
分类:
编程语言 时间:
2016-05-12 15:00:12
阅读次数:
151
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace 自守数
{
class Program
{
static void Main(string[] args)
...
playbook的核心元素: tasks: 任务 variables: 变量 templates: 模板 handlers: 处理器 roles: 角色 组织格式:YAML(被称为另外一种标记语言) 语法:(列表用横杆表示,键值对用冒号分割,键值对里又可以嵌套另外的键值对) 例如: name:tom ...
分类:
其他好文 时间:
2016-05-07 23:40:21
阅读次数:
288
// 取消所有请求 [self.manager.tasks makeObjectsPerformSelector:@selector(cancel)]; 使用场景: 比如一个界面有下拉刷新和上拉加载两种刷新数据的功能,如果网速不好,用户体验上拉加载时请求还没来得及被响应,用户就体验下拉刷新了,这样两 ...
分类:
Web程序 时间:
2016-05-07 18:01:53
阅读次数:
178
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DelegateDemo1
{
class Program
{
///
/// 定义一个返回st...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DelegateDemo1
{
class Program
{
static void One()
...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DelegateDemo1
{
class Program
{
static void Main(string[]...
分类:
编程语言 时间:
2016-05-06 19:41:34
阅读次数:
120
vscode出来之前一直使用sublime,后者在编写HTML文件时可以通过点击鼠标右键,找到open in browser来启动系统默认浏览器,而vscode却没有这个功能,调试和预览起来比较麻烦。不过可以通过配置tasks.json文件来解决这个问题。 按Ctrl+P打开命令面板,输入tasks ...
分类:
Web程序 时间:
2016-05-06 19:35:47
阅读次数:
465
Curriculum Learning of Multiple Tasks CVPR 2015 对于多任务的学习(Multi-Task Learning)像是属性识别等任务,之前都是每一个属性训练一个分类器,后来有了深度学习,大家都用共享卷积层的方式来联合的学习(Joint Learning)。让网 ...
分类:
其他好文 时间:
2016-05-06 19:29:45
阅读次数:
857