目的 boolクラスでクラスの動作を把握する。 boolクラスのソース class bool(int): """ bool(x) -> bool Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The clas…
参照 https://www.amazon.co.jp/%E3%83%91%E3%83%BC%E3%83%95%E3%82%A7%E3%82%AF%E3%83%88Python-PERFECT-5-Python%E3%82%B5%E3%83%9D%E3%83%BC%E3%82%BF%E3%83%BC%E3%82%BA/dp/477415539X メモ クラスもオブジェクト クラスから生成したオブジェクトはイン…
divとclassについて HTMLのdiv classとは?5分でわかる事例付き解説|Udemy メディア divはタグをグループ化するもの。 classは、その名前。 idもdivにつける名前だが、違いは以下。 classは1ページ内で同一名を複数記述可能、idは一箇所のみ。
ハイプ・サイクル ガートナー ジャパン | ハイプ・サイクル 2018年 テクノロジとアプリケーションの成熟度と採用状況、実際のビジネスにおける課題を解消する潜在的な能力、そしてテクノロジやアプリケーションが生み出す新たな機会などを提示するガートナー…
参考 Pythonでかんたんスクレイピング (JavaScript・Proxy・Cookie対応版) - QiitaRequestモジュール Developer Interface — Requests 2.21.0 documentationBeautifulSoup Beautiful Soup Documentation — Beautiful Soup 4.4.0 documentation パーサでは…
参考 Amazon CAPTCHA 昔買った本で勉強 メモ JavaScriptが扱うオブジェクトは4つあり。 ①JavaScript固有オブジェクト <html> <head> <title>Test</title> </head> <body> <script type="text/javascript"> function hoge() { this.height = 100; this.width = 200; } var myobj = new hoge(); alert(myobj.height); hoge.prototype.de</body></html>…
メモ Macの場合、CMD+Option+iキーで起動 Elementsタブの一番左のアイコンをクリックすると、ページの任意の場所でダブルクリックすると、該当ソース部分が分かる。
参考 S3のアクセスコントロールが多すぎて訳が解らないので整理してみる | DevelopersIO 以下3種類あり 種類 説明 ACL バケット・オブジェクト単位で設定可能 BucketPolicy PolicyDocument利用のため、柔軟な設定が可能。オブジェクト単位不向き、バケット…
いつまでたっても覚えない。メモしよう 参考 http://www.trusnet.com/secinfo/docs/webprog1/index.html 仕組み 説明の前提条件 攻撃者のサイトのURL http://cracker/index.html index.htmlの内容 ターゲットサイト http://target/ 入力データの情報を、その…
pikesaku.hatenablog.com 上記との違いはクエリ文字列の情報もURLと同じ方法で反映した点。 赤線がURL 青線がクエリ文字列 クエリ文字列のキー文字列をハッシュ化。バリュー文字列は無視。 クエリが複数ある場合は、キー文字列をソートし&で繋げたものをハッ…
参考URL Are there any free large datasets in the format of an Apache access log? - Quora
参考 AWS SDK を使用したリクエストの実行 - Amazon Simple Storage Service →AWS SDK説明 Python | チュートリアル、API、SDK、ドキュメント | AWS 開発者センター →AWS SDK Python概要 aws-doc-sdk-examples/python/example_code at master · awsdocs/aws-…
参考 0からREST APIについて調べてみた - Qiita 今さら聞けないWebAPIの実装方式RESTとSOAPの違い - Qiita REST - SOAP とRESTの違いについてわかりやすく教えていただけませんでしょうか?|teratail RESTとは何か、SOAPとは何か。 - 感謝のプログラミング …
ポイント ・順番に評価され、より後で評価されたもので決定。この点を考慮しinclude・exclude両方指定した方が直感的かも。 例1) --exclude "*" --include "*.txt" →txt拡張子だけがマッチ 例2) --include "*.txt" --exclude "*" →全てマッチ ・*は全てにマ…
参考 aws s3 help aws s3 機能 help aws s3 syncするシェルスクリプトでワイルドカードでexcludeしたときのメモ - Qiita →excludeが意図した通りに動かず、はまる。。。上記URLで解消・感謝!!! 最初にやったこと ・ec2ユーザーにロール割り当て ・ec2イン…
どんなサブコマンドがあるかわかる $ aws help AWS() AWS() NAME aws - DESCRIPTION The AWS Command Line Interface is a unified tool to manage your AWS services. SYNOPSIS aws [options] <command> <subcommand> [parameters] Use aws command help for information on a sp</subcommand></command>…
基本"コマンド help"でいけそう。 実行例 $ aws s3 help S3() S3() NAME s3 - DESCRIPTION This section explains prominent concepts and notations in the set of high-level S3 commands provided. Path Argument Type Whenever using a command, at leas…
機械学習概論 講義テキスト from Etsuji Nakai www.slideshare.netいつか、これを見てやる!
コード apache_log_trans_to_image.py # -*- coding:utf-8 -*- import argparse import apache_log_trans_to_image_lib as alti parser = argparse.ArgumentParser(description='apache log to graph') parser.add_argument('log', help='log file', type=ar…
参考 https://upd.world/aws-settings/ やったこと ・ルートユーザーでMFA有効化 ・IAMユーザーでMFA有効化 ・複数スマホでのMFA有効化 ・請求アラート設定
参考 Captcha MFAは必ず設定すること!
参考URL IAM とは - AWS Identity and Access Management https://upd.world/aws-settings/ メモ ・アカウント作成時のID/PASSがルートユーザー ・ルートユーザーはユーザー作成以外では基本使わないのがベストプラクティクス。 ・ユーザー、グループを作成…
参考URL Amazon CloudWatch とは - Amazon CloudWatch メモ ・AWSリソースとアプリケーションのリアルタイムモニタリング機能 ・リソースとアプリケーションに設定された変数情報を参照してモニタリングする ・ルールを定義しマッチした場合、自動的にリソー…
参考URL Amazon Simple Storage Service の使用開始 - Amazon Simple Storage Service 初めてのAWS CLI 2 (S3編) - Qiita メモ S3はクラウドストレージ データをオブジェクトとして扱う オブジェクトはファイル自体とメタデータで構成 オブジェクトの入れ物…
コード apache_log_trans_to_image.py # -*- coding:utf-8 -*- import argparse import apache_log_trans_to_image_lib as alti parser = argparse.ArgumentParser(description='apache log to graph') parser.add_argument('log', help='log file', type=ar…
参考 行列による画像処理 基礎編&目次 ~Python画像処理の再発明家~ サンプルコード(参考URLまるまる利用) # -*- coding:utf-8 -*- import matplotlib.pyplot as plt import PIL import numpy as np img_rgb = np.array([ [[255,0,0],[0,255,0],[0,0,255]]…
わかったこと 分散ファイルシステム GPFSクライアント利用時、クライアントにはローカルファイルシステムとして見える NFSでアクセスも可能 スナップショット機能あり 構成サーバはSANストレージを共有する 複数プロセスからの同時アクセス可能 データストラ…
ソース # -*- coding:utf-8 -*- import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import MultipleLocator, FormatStrFormatter x = [-50, 50, 50, -50] y = [50, 50, -50, -50] # http://ailaby.com/matplotlib_fig/ # subplot(…
ソース # -*- coding:utf-8 -*- import hashlib import re import itertools import numpy as np import matplotlib.pyplot as plt # グラフ化する文字列の数 UNIT_OF_SECTION = 5 def trans_to_nums(s): s = s.encode('UTF-8') m = hashlib.md5() m.update(…
わかったこと 内包表記の方が処理が速い ファイルハンドラを作成しただけではメモリは確保されない。 ファイルハンドラをフィルタせず不要にリストオブジェクトに代入しないこと ※全データ分メモリがとられる。フィルタすればフィルタ結果の分だけメモリが使…