環境管理的關鍵在於透過完全自動化的流程來建立環境,使建立全新環境總是比修復已受損的既有環境容易許多。重現環境的能力是非常必要的,原因如下:
- 可以避免知識遺失的問題。例如,某人因離職或無法與他取得聯繫,但只有他明白某個設置所代表的涵意。一旦有此種設置不能正常運作的情況,通常就表示會有較長的停機時間。這是個很巨大不必要的風險。
...
import java.io.File; | |
import java.io.IOException; | |
import org.apache.commons.io.FileUtils; | |
import org.eclipse.core.runtime.CoreException; | |
import org.eclipse.jdt.core.dom.AST; | |
import org.eclipse.jdt.core.dom.ASTParser; | |
import org.eclipse.jdt.core.dom.ASTVisitor; | |
import org.eclipse.jdt.core.dom.CompilationUnit; | |
import org.eclipse.jdt.core.dom.FieldDeclaration; |
package generic; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class 阿嬤妳今嘛在叨位 { | |
static class 阿嬤 { | |
} |
apply plugin: "java" | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
compile 'tv.danmaku.ijk.media:ijkplayer-java:0.4.4.1' | |
compile 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.4.4.1' | |
} |
public class Foo { | |
public static void main(String[] args) { | |
boolean v = false; | |
if (v) { | |
System.out.println("OAO"); | |
return ; | |
} | |
} | |
// reference 1: http://docs.groovy-lang.org/latest/html/api/groovy/time/TimeCategory.html | |
// reference 2: http://groovycookbook.org/basic_types/dates_times/ | |
import groovy.time.TimeCategory | |
use ( TimeCategory ) { | |
// application on numbers: | |
println 1.minute.from.now | |
println 10.hours.ago |
deb https://apt.dockerproject.org/repo ubuntu-trusty main |
/* | |
* Copyright (C) 2009 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
# (DataTransfer, Price) pair | |
price_list = ((2, 10), (3, 20), (4, 40), (8, 80), (16, 160), (20, 320), (20, 480), (20, 640), (20, 960)) | |
for network, price in price_list: | |
transfer_in_gb = 1024.0 * network | |
print "price level %3d, per gb cost %5.4f" % (price, price / transfer_in_gb) | |
## RESULT: | |
## price level 10, per gb cost 0.0049 | |
## price level 20, per gb cost 0.0065 | |
## price level 40, per gb cost 0.0098 |
批踢踢實業坊›看板 Soft_Job關於我們聯絡資訊 | |
返回看板分享 | |
作者tomtang0406 (魔鬼藏在細節裡) | |
看板Soft_Job | |
標題Re: [請益] php和asp.net何者未來性較好? | |
時間Sun Sep 20 18:11:19 2015 | |
認真回文一下 |