問題タブ [availability]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ios - 利用できない場合の拡張プロパティ
Swift 2 で、Apple は API の可用性チェックを導入しました。これにより、次のように、指定されたバージョン以降でのみ特定のコードを実行できるようになります。
たとえば、iOS 9.0 では次のlocalizedUppercaseString
プロパティが導入されています。
私が望むのは、9.0 より前のバージョンでのみ使用できるこのプロパティの正確なレプリカを作成することです。そのため、if #available(iOS 9, *)
この (または他の) プロパティ/メソッドを使用する必要があるたびに確認する必要はありません。
私が得ることができた最良の結果は次のとおりです。
localizedUppercaseString
これで、iOS のバージョンが 8.0 か 9.0 かに関係なく、を呼び出すことができます。問題は、この拡張機能を iOS 9.0 で実行すると、「元の」プロパティがオーバーライドされることです。
swift - Last argument of Swift #availability check
Swift programming language guide has this to say regarding the last argument in #availability check:
The last argument, *, is required and specifies that on any other platform, the body of the if executes on the minimum deployment target specified by your target.
Excerpt From: Apple Inc. “The Swift Programming Language (Swift 2.1).” iBooks. https://itun.es/us/jEUH0.l
I think I am not understanding this correctly - if I intend for the code to execute in iOS 9 only and my minimum deployment target is 8, won't that crash my app when running on other platforms and the code executes on the minimum deployment target?
ibm-cloud - Bluemix パブリック - 単一リージョンの可用性 SLA
最近のBluemix 使用条件文書では、少なくとも 2 つのリージョンにデプロイされたアプリケーションのみが利用可能であると言及しています。以前のバージョンの Bluemix 使用条件 (例:ここ) には、特定のデプロイメント・モデルに関連しない、いわゆるサービス・レベル目標がありました。
アプリケーションを 1 つのリージョンにのみデプロイしたい場合、Bluemix サービスの可用性はどうなりますか?
architecture - 可用性のパーセンテージを見つける - ソフトウェア アーキテクチャ
ソフトウェアアーキテクチャで次の質問を解決しようとしていました。
ソフトウェア システムは 1 年に 20 回クラッシュし、クラッシュごとに再起動に 2 分かかります。その年の利用可能性を計算する
MTBF/(MTBF+MTTR) という式を使用しました。MTBF と可用性を計算する方法を教えてください。助けてください!
みたいにやった
MTBF = 365*24*60-40/ 20 MTTR = 2*20