形式手法と AWS のおいしい関係。- モデル検査器 Alloy によるインフラ設計技法 #jawsfesta
マーケティングに重要なのは「共感してもらうこと」と「自分で実践すること」―Datadog Japan 安藤浩二氏インタビュー
Firefox is my go-to browser for any automation tasks at first, because...it's like that, and that's the way it is. Obviously Chrome is a great browser too, and chromedriver is one of the most useful automation tools out there. One area where Chrome falls down however is that it will only screenshot the available viewport. Here's a workaround. NB This script requires PIL (Python Imaging Library). I
Pythonを使ってSlackに投稿する際は、requestsモジュールを使うと便利だ。requestsはPythonでHTTPリクエストやレスポンスを処理するためのモジュールで、標準モジュールではないが多くのPythonユーザーに使われている(GitHubのスター数はこの記事を書いている2月7日14時時点で17,440件)。 Slackはメッセージやグループチャットを綺麗なUIで使えることに加え、Google DriveやDropbox、GitHub等の様々なサードパーティとのサービス連携が豊富であることから、利用事例にもある通り主に北米で多数の利用者を獲得している。また、Slackではbotと呼ばれる「プログラムで行動を決められるユーザー」を追加することで、特定の条件下で自動的にメッセージを飛ばしたりファイルをアップロードしたりすることができる。botについて詳しくはSlackのWeb
Yes, it was added in version 2.5. The expression syntax is: a if condition else b First condition is evaluated, then exactly one of either a or b is evaluated and returned based on the Boolean value of condition. If condition evaluates to True, then a is evaluated and returned but b is ignored, or else when b is evaluated and returned but a is ignored. This allows short-circuiting because when con
The aws-shell requires python and pip to install. You can install the aws-shell using pip: $ pip install aws-shell If you are not installing into a virtualenv you can run: $ sudo pip install aws-shell Mac OS X (10.11 El Capitan) users: There is a known issue with Apple and its included python package dependencies (more info at pypa/pip#3165). We are investigating ways to fix this issue but in the
はじめに re:Inventでアナウンスされていたaws-shellプロジェクトがavailableになりました。 ハンズオンしてみたところ、かなりいい感じだったのでまとめました。 参考 https://aws.amazon.com/jp/about-aws/whats-new/2015/12/aws-shell-accelerates-productivity-for-aws-cli-users/ aws-shellとは? githubのリポジトリには、The interactive productivity booster for the AWS CLIとあります。 aws-cliの為の、生産性を向上させるようなインタラクティブなツールという位置づけです。 また、リポジトリを見る限りDeveloper Preview のステータスなので、その点は注意が必要です。 さっそく リポジトリは
成り行き 運用管理サーバに使ってるCentOS 6で、色々オペレーションをやってるが、ここでaws-cliを使いたい。 aws-cliがPython 2.6のサポートを打ち切っていたので、これを機にPython2.7にあげたい。 $ pip install awscli DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6 The directory '/home/uorat/.cache/pip/http' or its parent directory is not owned by the current user and th
Pysh はシェルスクリプトをPythonで記述するためのプログラムです。 Pysh を利用すると、コマンドの実行やリダイレクションやパイプといったシェルスクリプトの 便利な機能を Python スクリプトの中で簡単に利用できるようになり、 Python をシェルスクリプトの代わりとしてより利用しやすくなります。 Python 使いならばもはやシェルスクリプトを書く理由は何もありません(Windows以外)。 目次 特徴 使い方 インストール ファイルから実行 標準入力から実行 引数から実行 機能 変数参照 Python式 パイプ リダイレクション && || ; 文字列リテラル バッククオート バックスラッシュ文字による行継続 コメント map filter reduce リターンコードの保存 Pythonへのリダイレクション echo 組み込みコマンド をPythonで実装する 特徴
新しいアプリケーションの機能を実装する際に、ローカルや開発者向けのデータベースにアクセスして、プログラムを実装する前に何度かSQLをためしに実行することもあるかと思います。その際に、補完機能や以前実行したSQLの検索機能等がある場合とない場合では、作業の効率が変わってきます。 そこで、今回は補完や検索機能など、多くの便利な機能をもつmycliというクライアントについて紹介をしていきます。 デモンストレーション環境 今回は5.7.12を第5回 Dockerで複数バージョンのMySQLを開発環境に用意するで作成した環境で実行して確認していきます。また、今回使用するデータは「第2回 MySQLにはじめてのデータを入れてみる」で紹介をしている郵便番号のテーブルを用いて紹介を行います。 mycliのインストール ここではMySQLのクライアントの1つであるmycliを紹介します。mycliは自動補完
最近mycliというMySQLクライアントが流行りつつあるので、GIFアニメと静止画で挙動を確認してみようと思います。 mycli 通常のログイン 標準のMySQLクライアント パスワード有りのrootユーザでログインする場合は以下のように実行します。 [vagrant@node2 tmp]$ mysql -uroot -ppassword test Warning: Using a password on the command line interface can be insecure. Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL
Xcode の Run Script 機能を使ってみようと思い、Github で拾ってきた Python スクリプトを実行しようとすると、下記のようなエラーが出て困りました。 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position xx: ordinal not in range(128) 対処手順 1. 現状のデフォルトエンコーディングを確認 $ python >>> import sys >>> sys.getdefaultencoding() 'ascii'これが'ascii'となっているのがよくないようです。 2. site-packagesディレクトリの場所を探す まず、 pythonと打ったときにわらわらと出てくる文字列で自分の環境でのpythonのバージョンが確認できます。 で、自分の場合は2.
GitHubのトレンドリポジトリを眺めてたら面白そうなのを見つけました。 jonathanslenders/python-prompt-toolkit · GitHub prompt_toolkit is a Library for building powerful interactive command lines in Python. It ships with a nice interactive Python shell (called ptpython) built on top of the library. ptpythonというインタラクティブシェルを同梱したツールキットみたいです。readlineをめっちゃ強力にした感じだそうです。 試しに使ってみた感じ、操作性良好、見た目も綺麗、補完モリモリスマートなプロンプトですね。 以下、ほとんどREADME.mdの意訳といった感
いきなりですが、 Org-modeをご存知でしょうか。 Org-modeはEmacsで動作する高機能のアウトラインツール。何それ、Org-modeな方は r_takaishiさんの資料を一読される事をおすすめします。 org-mode を使おう もっと知りたいという方は、以下のサイトを読んでOrg沼にはまってみるのもいいかもしれません。 OrgMode – Emacs上のアウトライナー Org-modeはとにかく機能が豊富で、マニュアルも 200ページ近い大著です。実際、僕もごく一部の機能しか使いこなせていません。 にも関わらず、そのOrg-modeのフレームワークを利用した、これまた便利なツールを発見してしまいました。 Org-babel Org-babelは、Org-modeを拡張するツールで、あらゆるプログラミング言語をorg-mode内で実行可能にします。圧巻なのは対応している言語
The Scriptometer tries to measure whether a programming language can be easily used for SOP (Script-Oriented Programming). A script is here a command line program, mostly used in a terminal. (more scripting stuff (GUI, web...) could be added...) For this: the programming environment is checked: ability to compile and run in one command, REPL (Read-Eval-Print Loop)... some typical SOP tasks are wri
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く