csrf対策 はてなブックマーク - csrf対策

CSRFとは Cross Site Request Forgeryの略。 ユーザーがWebアプリケーションにログインすると、CookieにSessionIDがセットされる。 その

I want to keep creating valuable things with my own hands - a turning point that I grasped with dev-sumi and a resolve as an engineer はてなブックマーク - I want to keep creating valuable things with my own hands - a turning point that I grasped with dev-sumi and a resolve as an engineer

This is an English version of my career interview Developers’ event “Developers Summit” to be held in Meguro Gajyo every February, so-called “dev-sami”. Various sessions will be held, but how can we use what we got there? This time I talked to Mr. Takatomo Honda of freee Co., Ltd., which had a career turning point as a result of participation in Developers Summit 2016. As an engineer I always wanted to creating things with my own hands - First of all I will ask about my career.

IP datacast solution はてなブックマーク - IP datacast solution

This is an English version of my written technical article. (Please see original URL for reference figures) IP datacast (IPDC: IP Data Cast) is a technology for carrying multimedia file data by broadcasting IP packets on broadcasting and communication to various device terminals simultaneously. NTT DATA is working on the development and standardization of IP datacast technology that realizes new services in broadcasting and communications fields. Here we introduce the technical overview and features of IPDC, application examples, latest technologies under development and future prospects.

Wi-Fi multicast that realizes simultaneous broadcast distribution service to a large number はてなブックマーク - Wi-Fi multicast that realizes simultaneous broadcast distribution service to a large number

This is an English version of my written technical article Wi-Fi multicast By using Wi-Fi multicast technology, multimedia contents such as movies etc. can be delivered simultaneously to all terminals where Wi-Fi can reach. Two distribution methods As delivery modes of Wi-Fi multicast technology, there are two types of real-time viewing services by live streaming and two patterns of accumulating files on the terminal by file cast delivery. By making good use of these two forms, it is possible to realize a shift time viewing service that can be viewed anytime and anywhere.

[python] __repr__と__str__の違い はてなブックマーク - [python] __repr__と__str__の違い

Referenceによると以下の通り。 __str__(self) オブジェクトの「非公式の (informal)」あるいは表示に適した文字列表現を計算するために呼ばれる

再帰の基礎 はてなブックマーク - 再帰の基礎

overview 部分的により小さいソリューションに分解できる問題 検索、列挙、分割統治、複雑な問題の分解は再帰を適用できる可能性がある 再帰関数はベースケース

動的計画法の基礎 はてなブックマーク - 動的計画法の基礎

overview DPはいつでも解法の1つになりえる 特にサブ問題に関連する問題に適用できる 分割統治との違いは、同じサブ問題が何度も起こり得ること。そのため、

SQLの基礎 はてなブックマーク - SQLの基礎

SQLの実行順序 FROM WHERE GROUP BY HAVING SELECT ORDER_GY DBの作成 CREATE DATABASE shop; テーブルの作成 CREATE TABLE Shohin (shohin_id CHAR(4) NOT NULL, shohin_mei VARCHAR(100) NOT NULL; PRIMARY KEY (shohin_id) ); DEFAULT制約をつければデフォルト値を入れられ

[python] データ型ごとのメモリサイズ はてなブックマーク - [python] データ型ごとのメモリサイズ

int intはデフォルトで28bit >>> import sys >>> sys.getsizeof(1) 28 超えると自動で拡張される >>> sys.getsizeof(1<<32) 32 >>> sys.getsizeof(1<<60) 36 >>> sys.getsizeof(1 << 10000) 1360 Python3.0をみると、整数型の上限が廃止され

ソートの基礎 はてなブックマーク - ソートの基礎

overview ソートは検索を早くするプリプロセスとして使われる 似ているアイテムを探すのにも使われる ヒープソート in-placeだが安定でない spaceO(1) マージソー

ハッシュテーブルの概要 はてなブックマーク - ハッシュテーブルの概要

overview 挿入、削除、参照がO(1) 衝突に対する実装が必要 linked-listを使うなど 衝突が発生すると、O(1+n/m)に増えていく(m:配列の

linuxとmacにおける検索 はてなブックマーク - linuxとmacにおける検索

コマンドに対する検索 which 指定されたコマンドの場所を調べる $ which python /Users/hondatakatomo/.pyenv/shims/python オプション-aですべて調べる $ which -a python /Users/hondatakatomo/.pyenv/shims/python /usr/bin/python whereis 指定されたコマンドのバイナリーファイ

[linux]シグナルとkill はてなブックマーク - [linux]シグナルとkill

シグナルとは シグナルとは、プロセスに対して通知するイベント。 シグナルを受け取ったプロセスは現在実行中の処理を中断し、シグナルに応じた処理を実

[linux] ダミーファイルを作成する はてなブックマーク - [linux] ダミーファイルを作成する

ブロック単位でファイルをコピー・変換するコマンドであるddを使う。 tempfile.txtという名前で50Mのファイルを作成 dd if=/dev/zero of=tempfile.txt bs=1024 count=50000 オプシ