ラベル 小ネタ の投稿を表示しています。 すべての投稿を表示
ラベル 小ネタ の投稿を表示しています。 すべての投稿を表示

2016年6月28日火曜日

Swift3.0ではfor文の書き方が変更になる

このエントリーをはてなブックマークに追加
よくあるfor文の書き方に倣(なら)って今までのSwiftもこんな感じだった。
for var i = 0; i < array.count; i++ {
    print(array[i])
}
Swift3.0からはこの書き方は廃止されちゃう。今のXCode 7.3.1でもWarningが出てもう廃止されるぞ!っていわれてしまうので新しい書き方に変えてやらなきゃいけない。互換性保たずに強引に変えていかないと変わらないもんね、って個人的には思うので大変だがやろう。

ちなみに上記の文だとwarningは2つ出て、
'++' is deprecated: it will be removed in Swift 3
++はもう使えなくなるので、+=1にしなさいというのと、
C-style for statement is deprecated and will be removed in a future version of Swift
という本命のfor文の変更をうながすwarning。

処理への変更を少なくして対応するにはこの書き方が一番手っ取り早いと思う。
for i in 0.stride(to: array.count, by: 1) {
    print(array[i])
}

Swiftの文字列結合

このエントリーをはてなブックマークに追加
これだけだった。Objective-Cよりこういうところは分かりやすい。

var aaa:String = "AAA"
var bbb:String = "BBB"

var aaabbb:String = aaa + bbb

2016年6月8日水曜日

VMwareToolsではなくopen-vm-tools

このエントリーをはてなブックマークに追加
VMware WorkStation、VMware Fusion共にVMWare Toolsではなく今はopen-vm-toolsに置き換えられている。
  • open-vm-tools
  • open-vm-tools-desktop
使うのはこの2つ。

2016年6月3日金曜日

yum grouplistはUbuntuではtaskselを使う

このエントリーをはてなブックマークに追加
表題の通りRedhat系ではyum grouplistを使うとGNOMEなどまとめてインストールできる。ubuntuで同じようなコマンドないかなぁと思って探したらtaskselってのがあった。
コマンド打つとこんな感じ。
まとめて入れれて便利

2016年5月25日水曜日

AWS開始1年間の無料枠適用サービスと制限まとめ

このエントリーをはてなブックマークに追加
AWSアカウントを作って利用開始すると1年の無料枠が使えるんだけど、1年すぎても無料枠があって使えるものもあるのでメモ。

赤は1年間無料で使えるもの、青は1年過ぎても無料枠が設定されているもの。
Amazon EC2
クラウド内でサイズ変更可能なコンピューティング性能。

750 時間 1 か月あたりの LinuxRHEL、または SLES t2.micro インスタンスの使用量
750 時間 1 か月あたりの Windows t2.micro インスタンスの使用量
 例えば、1 インスタンスを 1 か月使用、または 2 インスタンスを半月使用
 サインアップから 12 か月で有効期限が切れます。
Amazon S3
高スケーラブル、高信頼性、低レイテンシーのデータストレージインフラストラクチャ。
5 GB 標準ストレージ
20,000 件の Get リクエスト 
2,000 件の Put リクエスト 
 サインアップから 12 か月で有効期限が切れます。
Amazon RDS
MySQLPostgreSQLMariaDBOracle BYOL または SQL Server のためのマネージド型リレーショナルデータベースサービス。
750 時間 Amazon RDS Single-AZ db.t2.micro インスタンスの使用
20 GB DB Storage: General PurposeSSD)または Magnetic の任意の組み合わせ
20 GB バックアップ(RDS Magnetic ストレージを使用。 General Purpose [SSD] 上の I/O は別々に請求されません)
1,000 I/O 
サインアップから 12 か月で有効期限が切れます。
AWS IoT
デバイスをクラウドに接続
250,000 件のメッセージ 毎月 (公開または配信)
 サインアップから 12 か月で有効期限が切れます。
Amazon EC2 Container Registry
Docker イメージの保存と取得
毎月 500 MB ストレージ
 サインアップから 12 か月で有効期限が切れます。
AWS Lambda
イベント発生時にお客様のコードを実行し、コンピューティングリソースを自動的に管理するコンピューティングサービス
100 万件 1 か月当たりの無料リクエスト数
1 か月あたり最大 320 万秒 のコンピューティング時間
 12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。 
Elastic Load Balancing
アプリケーションの着信トラフィックの複数の Amazon EC2 インスタンスへの自動分散。
750 時間 (1 か月あたり)
15 GB データ処理
 サインアップから 12 か月で有効期限が切れます。
Amazon DynamoDB
シームレスな拡張性を備えた、高速で柔軟な NoSQL データベースサービスです。
25 GB ストレージ
25 ユニット 書き込み容量
25 ユニット 読み込み容量
 1 か月当たり最大 2 億リクエストの処理が十分に可能。 
12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。
Amazon CloudFront
低レイテンシーかつ速いデータ転送速度で、エンドユーザーにコンテンツを配信するウェブサービスです。
50 GB データ転送 (アウト)
2,000,000 HTTP および HTTPS リクエスト
 サインアップから 12 か月で有効期限が切れます。
Amazon Elastic Block Storage
実行中の Amazon EC2 インスタンスに接続できる、高可用性、高信頼性、および予測可能性を備えたストレージボリューム。
30 GB Amazon EBS: 汎用 (SSD) または Magnetic の任意の組み合わせ
200 I/O  EBS Magnetic
1 GB スナップショットストレージ
 サインアップから 12 か月で有効期限が切れます。
Amazon ElastiCache
メモリ内キャッシュのデプロイ、運用、スケーリングをクラウド内で簡単に実行できるウェブサービス。
750 時間 十分な時間
 毎月マイクロキャッシュノードを継続的に実行するのに
 サインアップから 12 か月で有効期限が切れます。
Amazon Redshift
高速、シンプル、費用対効果の高いデータウェアハウス
2 か月間無料  
DC1.Large 750 時間 2 か月間、1 か月あたり
 サインアップから 2 か月で有効期限が切れます。
AWS Data Pipeline
データ駆動型ワークフローに対するオーケストレーションです。
3 個の低頻度の前提条件  
5 個の低頻度のアクティビティ  
 サインアップから 12 か月で有効期限が切れます。
Amazon Elasticsearch Service
AWS クラウドの Elasticsearch クラスターを、簡単にデプロイ、運用、スケールするマネージドサービス
750 時間 single-AZ t2.micro.elasticsearch インスタンスの使用量
1 か月あたり 10 GB オプションの EBS ストレージ (磁気または汎用)
 サインアップから 12 か月で有効期限が切れます。
Amazon Cognito
モバイルユーザー ID と同期。
 Your User Pool 機能には、各月 50,000 MAU の無料利用枠があります。**
 Amazon Cognito で、ユーザーの認証およびユニークアイデンティティの付与にフェデレーティッドアイデンティティ機能を使用する場合、課金が発生することは一切ありません。**
10 GB クラウド同期ストレージ。サインアップから 12 か月で有効期限が切れます。
100 万件 毎月の同期操作。サインアップから 12 か月で有効期限が切れます。
AWS Device Farm
iOSAndroidFireOS のアプリを AWS クラウド内の実際のデバイスでテスト
1 回限り、250 デバイス分の無料トライアル 
 12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。
Amazon Mobile Analytics
スピーディで安全なモバイルアプリケーションの使用分析。
1 億回 毎月の無料イベント
 12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。 
Amazon SNS
スピーディかつ柔軟な、完全マネージド型の PUSH メッセージングサービス
100 万件の発行 
100 万件のモバイルプッシュ配信 
10 万件の HTTP/S 配信 
1,000 件のメール配信 
12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。 
AWS CodeCommit
高度にスケーラブルなマネージド型ソースコントロールサービス
5 アクティブユーザー (1 か月あたり)
50 GB – 1 か月当たりのストレージ
10,000 Git のリクエスト 1 か月あたり
 12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。 
AWS CodePipeline
速度と信頼性に優れたアプリケーション更新を実現する継続的デリバリサービス

1 アクティブパイプライン (1 か月あたり
 12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。
AWS Key Management Service
AWS Key Management Service は、管理制御で暗号化を容易にするマネージドサービスです。
2 万件 1 か月当たりの無料リクエスト数
 12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。 
Amazon CloudWatch
AWS のクラウドリソースとアプリケーションをモニタリングします。
10 カスタムメトリックスおよび 10 アラーム  
100 万件の API リクエスト  
5 GB のログデータの取り込みおよび 5 GB のログデータのアーカイブ 
毎月最大 50 メトリックスのダッシュボード 3  
12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。 
AWS Trusted Advisor
AWS クラウド最適化エキスパート。

4 回のベストプラクティスチェック  パフォーマンスとセキュリティ (サービスの制限、セキュリティグループ、IAM、および MFA)
通知とカスタマイズ機能 
 サインアップから 12 か月で有効期限が切れます
Amazon API Gateway
スケールを問わない API の発行、維持、監視、セキュリティ確保
100 万回の API 呼び出しの受信 (1 か月あたり)
 サインアップから 12 か月で有効期限が切れます。
Amazon AppStream
Windows アプリケーションを任意のデバイスに配信可能。

20 1 か月当たりの無料時間枠
 サインアップから 12 か月で有効期限が切れます。
Amazon Elastic Transcoder
完全マネージド型メディアトランスコーディングサービス。

20 オーディオトランスコーディング
20 SD トランスコーディング
10 HD トランスコーディング
 サインアップから 12 か月で有効期限が切れます。
Amazon SES
コスト効率に優れたクラウドでのメールサービスです。

62,000 件の送信メッセージ Amazon EC2 インスタンスから直接、または AWS Elastic Beanstalk を介して Amazon SES を呼び出す際に、任意の受取人に送信できます (1 か月あたり)
1,000 件の受信メッセージ 1 か月あたり
 12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。
Amazon SQS
コンピュータ間でやり取りされるメッセージを格納するためのスケーラブルなキューです。

100 万件のリクエスト  
 12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。 
Amazon SWF
クラウドアプリケーション用のタスクコーディネーションと状態管理サービスです。

10,000 件のアクティビティタスク  
30,000 日のワークフロー日  
1,000 回の実行 
 12 か月間の AWS 無料利用枠期間終了後にも期限切れになりません。

2016年5月8日日曜日

LinuxのwhichはWindowsではwhere

このエントリーをはてなブックマークに追加
コマンドの場所を調べるにはLinux(Unix)ではwhichなのだが、Windowsで同じのってなんだろと思ったらwhereだった。

"どれ?"と"どこ?"か。。。。

C:\Users\fumio>where node
C:\Program Files (x86)\nodejs\node.exe

C:\Users\fumio>where vagrant
C:\HashiCorp\Vagrant\bin\vagrant.exe

ちなみにdircdcopyなどは内部コマンドと呼ばれメモリ内にあり、exeファイルなどとして実体は無いのでwhereでは場所はでてこない。

C:\Users\fumio>where dir
情報: 与えられたパターンのファイルが見つかりませんでした。

C:\Users\fumio>where cd
情報: 与えられたパターンのファイルが見つかりませんでした。

2016年5月6日金曜日

Chrome ExtensionでSSH

このエントリーをはてなブックマークに追加
chromeでSSHぐらいできる拡張機能あるんじゃないかと思い探してみたらあった。

Secure Shell


インストールしてSSHをブラウザからお手軽に使える!



PC問わず、chromeさえインストールしていれば使えるというのはあって困らない選択肢だと思うので、避難手段として入れておくのはアリだと思いました。


2016年4月18日月曜日

Apache Incubater(2016)をさらっと見てみた

このエントリーをはてなブックマークに追加
今後の流れみたいなのが見えるかなと思い、Apache Incubatorを年に1回ぐらいはチェックしてます。

#正直、ピンキリの世界なので、あくまで概要だけでもさらっと読んで流す程度ですけどね。

ちょっと前まではNoSQLの流行からかDB系のものが多かった気がするのですが、今はわりとカオスな状況な感じがします。あと夢で終わりそうなのもちらほら。

この中から今年Graduateするのはいくつ出るのでしょうね。


Airflow is a workflow automation and scheduling system that can be used to author and manage data pipelines.
Apex is an enterprise grade native YARN big data-in-motion platform that unifies stream processing as well as batch processing.
Apache AsterixDB is a scalable big data management system (BDMS) that provides storage, management, and query capabilities for large collections of semi-structured data.
Apache Atlas is a scalable and extensible set of core foundational governance services that enables enterprises to effectively and efficiently meet their compliance requirements within Hadoop and allows integration with the complete enterprise data ecosystem
BatchEE projects aims to provide a JBatch implementation (aka JSR352) and a set of useful extensions for this specification.
Apache Beam is an open source, unified model and set of language-specific SDKs for defining and executing data processing workflows, and also data ingestion and integration flows, supporting Enterprise Integration Patterns (EIPs) and Domain Specific Languages (DSLs). Dataflow pipelines simplify the mechanics of large-scale batch and streaming data processing and can run on a number of runtimes like Apache Flink, Apache Spark, and Google Cloud Dataflow (a cloud service). Beam also brings DSL in different languages, allowing users to easily implement their data integration processes.
Blur is a search platform capable of searching massive amounts of data in a cloud computing environment.
CMDA provides web services for multi-aspect physics-based and phenomenon-oriented climate model performance evaluation and diagnosis through the comprehensive and synergistic use of multiple observational data, reanalysis data, and model outputs.
Commons RDF is a set of interfaces and classes for RDF 1.1 concepts and behaviours. The commons-rdf-api module defines interfaces and testing harness. The commons-rdf-simple module provides a basic reference implementation to exercise the test harness and clarify API contracts.
Apache Concerted is a Do-It-Yourself toolkit for building in-memory data engines.
DataFu provides a collection of Hadoop MapReduce jobs and functions in higher level languages based on it to perform data analysis. It provides functions for common statistics tasks (e.g. quantiles, sampling), PageRank, stream sessionization, and set and bag operations. DataFu also provides Hadoop jobs for incremental data processing in MapReduce.
Eagle is a Monitoring solution for Hadoop to instantly identify access to sensitive data, recognize attacks, malicious activities and take actions in real time.
Fineract is an open source system for core banking as a platform.
FreeMarker is a template engine, i.e. a generic tool to generate text output based on templates. FreeMarker is implemented in Java as a class library for programmers.
Gearpump is a reactive real-time streaming engine based on the micro-service Actor model.
Geode is a data management platform that provides real-time, consistent access to data-intensive applications throughout widely distributed cloud architectures.
Guacamole is an enterprise-grade, protocol-agnostic, remote desktop gateway. Combined with cloud hosting, Guacamole provides an excellent alternative to traditional desktops. Guacamole aims to make cloud-hosted desktop access preferable to traditional, local access.
HAWQ is an advanced enterprise SQL on Hadoop analytic engine built around a robust and high-performance massively-parallel processing (MPP) SQL framework evolved from Pivotal Greenplum Database.
HORN is a neuron-centric programming APIs and execution framework for large-scale deep learning, built on top of Apache Hama.
HTrace is a tracing framework intended for use with distributed systems written in java.
Impala is a high-performance C++ and Java SQL query engine for data stored in Apache Hadoop-based clusters.
Open source system that enables the orchestration of IoT devices.
Implementation of JSR-353 JavaTM API for JSON Processing (Renamed from Fleece)
Joshua is a statistical machine translation toolkit
Kudu is a distributed columnar storage engine built for the Apache Hadoop ecosystem.
Logging for C++
Big Data Machine Learning in SQL for Data Scientists.
Metron is a project dedicated to providing an extensible and scalable advanced network security analytics tool. It has strong foundations in the Apache Hadoop ecosystem.
Distributed Cryptography; M-Pin protocol for Identity and Trust
Mnemonic is a Java based non-volatile memory library for in-place structured data processing and computing.
MRQL is a query processing and optimization system for large-scale, distributed data analysis, built on top of Apache Hadoop, Hama, Spark, and Flink.
Mynewt is a real-time operating system for constrained embedded systems like wearables, lightbulbs, locks and doorbells. It works on a variety of 32-bit MCUs (microcontrollers), including ARM Cortex-M and MIPS architectures.
Myriad enables co-existence of Apache Hadoop YARN and Apache Mesos together on the same cluster and allows dynamic resource allocations across both Hadoop and other applications running on the same physical data center infrastructure.
Java modules that allow programmatic creation, scanning and manipulation of OpenDocument Format (ISO/IEC 26300 == ODF) documents
Omid is a flexible, reliable, high performant and scalable ACID transactional framework that allows client applications to execute transactions on top of MVCC key/value-based NoSQL datastores (currently Apache HBase) providing Snapshot Isolation guarantees on the accessed data.
Tools and libraries for developing Attribute-based Access Control (ABAC) Systems in a variety of languages.
Quarks is a stream processing programming model and lightweight runtime to execute analytics at devices on the edge or at the gateway.
Quickstep is a high-performance database engine.
The Ranger project is a framework to enable, monitor and manage comprehensive data security across the Hadoop platform.
Rya (pronounced "ree-uh" /rēə/) is a cloud-based RDF triple store that supports SPARQL queries. Rya is a scalable RDF data management system built on top of Accumulo. Rya uses novel storage methods, indexing schemes, and query processing techniques that scale to billions of triples across multiple nodes. Rya provides fast and easy access to the data through SPARQL, a conventional query mechanism for RDF data.
S2Graph is a distributed and scalable OLTP graph database built on Apache HBase to support fast traversal of extremely large graphs.
SAMOA provides a collection of distributed streaming algorithms for the most common data mining and machine learning tasks such as classification, clustering, and regression, as well as programming abstractions to develop new algorithms that run on top of distributed stream processing engines (DSPEs). It features a pluggable architecture that allows it to run on several DSPEs such as Apache Storm, Apache S4, and Apache Samza.
Singa is a distributed deep learning platform.
Monitoring Solution.
Slider is a collection of tools and technologies to package, deploy, and manage long running applications on Apache Hadoop YARN clusters.
Apache Streams is a lightweight server for ActivityStreams.
SystemML provides declarative large-scale machine learning (ML) that aims at flexible specification of ML algorithms and automatic generation of hybrid runtime plans ranging from single node, in-memory computations, to distributed computations such as Apache Hadoop MapReduce and Apache Spark.
Tamaya is a highly flexible configuration solution based on an modular, extensible and injectable key/value based design, which should provide a minimal but extendible modern and functional API leveraging SE, ME and EE environments.
Taverna is a domain-independent suite of tools used to design and execute data-driven workflows.
Tephra is a system for providing globally consistent transactions on top of Apache HBase and other storage engines.
TinkerPop is a graph computing framework written in Java
Toree provides applications with a mechanism to interactively and remotely access Apache Spark.
Trafodion is a webscale SQL-on-Hadoop solution enabling transactional or operational workloads on Hadoop.
Twill is an abstraction over Apache Hadoop YARN that reduces the complexity of developing distributed applications, allowing developers to focus more on their business logic
Unomi is a reference implementation of the OASIS Context Server specification currently being worked on by the OASIS Context Server Technical Committee. It provides a high-performance user profile and event tracking server.
A wave is a hosted, live, concurrent data structure for rich communication. It can be used like email, chat, or a document.
A collaborative data analytics and visualization tool for distributed, general-purpose data processing systems such as Apache Spark, Apache Flink, etc.