タグ

binaryに関するyassのブックマーク (22)

  • 二進化十進表現 - Wikipedia

    「BCD」はこの項目へ転送されています。Windows OSのブート構成データについては「Windows Boot Manager」をご覧ください。 この記事は検証可能な参考文献や出典が全く示されていないか、不十分です。 出典を追加して記事の信頼性向上にご協力ください。(このテンプレートの使い方) 出典検索?: "二進化十進表現" – ニュース · 書籍 · スカラー · CiNii · J-STAGE · NDL · dlib.jp · ジャパンサーチ · TWL (2021年7月)

  • Only the Good Die Young (or Move Off-heap?) | Blog of Christian Felde

    yass
    yass 2014/08/31
    "keep only a few private fields, 2 ints + 2 longs + 2 object references (Unsafe and a hash function), for the duration of the instance. The rest are short lived or managed off-heap. / BOHMap must do more work than the standard HashMap, since it needs to copy data between on-heap and off-heap memory"
  • GitHub - aeron-io/simple-binary-encoding: Simple Binary Encoding (SBE) - High Performance Message Codec

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    GitHub - aeron-io/simple-binary-encoding: Simple Binary Encoding (SBE) - High Performance Message Codec
  • how to convert string to binary integer file using command line under linux

  • 2進数に関係する関数(DEC2BIN,BITANDなど):Excel関数

    10進数を2進数に変換します。   topへ デシマル・トゥ・バイナリ =DEC2BIN(数値,[桁数]) 数値:変換する 10 進の整数を指定します。 桁数:省略可です。表示する桁数を指定します。 Excel2003以前のバージョンでは、この関数が使用できず、エラー値 #NAME? が返される場合は、分析ツール アドインを組み込む必要があります。 数値に負の数を指定すると、桁数は無視され、10桁(10ビット)の 2進数が返されます。 2進数の最上位のビットは符号を表します。 数値 < -512 または数値 > 511 の場合、エラー値 #NUM! が返されます。 使用例 B2セルには=DEC2BIN(A2) E2セルには=DEC2BIN(D2) と入力されています。 2進数を10進数に変換します。   topへ バイナリ・トゥ・デシマル =BIN2DEC(数値,[桁数]) 数値:変換する

    yass
    yass 2013/09/22
    " 10進数を2進数に変換します。/ 2つの数値のビット単位の「AND」を返します。/ Excel2013で追加された関数"
  • BER(Basic Encoding Rules)

    BER(Basic Encoding Rules) BERは元々はASN.1で定義された唯一のコード化方法でした。 1985年の仕様からASN.1はデータ型の記述言語とコード化の定義が分離され、 他のコード化も可能とされ、実際に1994年にPERが定義されました。 現在でのBERおよびBERから派生したCERとDERがASN.1のコード化方法の主流です。 1. TLV符号化 BERはTLV符号化とよばれる基技術を用いています。 TLV符号化は情報の符号化を情報タイプ(Type)、長さ(Length)、値(Value)の3つで構成します。 符号化データを解釈する場合、情報タイプにより情報の種別を特定でき、長さにより情報の終端を検知します。 タグフィールド:ASN.1データ型を示す。 長さフィールド:符号化された情報オブジェクトの値の長さを示す。 内容フィールド:符号化された情報オブジェクト

    yass
    yass 2013/08/25
    "タグフィールドは「汎用」「応用」「文脈特定」「私用」の4つのクラスを識別するに2ビット使用し、 基本型と構造型の区別のために1ビットを使用し、残りのビットを用いてタグ番号を表現します。"
  • 2006-04-17

    パソコンで最もよく利用されているエンコーディングの一つがシフトJISなのだが、その誕生については、なかなかまとまった資料がない。当時の関係者の証言を断片的にまとめたものしかない。 まづ小形さんの以下のBLOGとコメントを読む。当時の当事者が証言をしている。 http://d.hatena.ne.jp/ogwata/20051228/p1 シフトJISを発明したのは誰か? http://d.hatena.ne.jp/ogwata/20051229/p1 シフトJISを発明したのは誰か?(2) http://d.hatena.ne.jp/ogwata/20051230/p1 「BASIC80を漢字化した経理専用マシン」のこと http://d.hatena.ne.jp/ogwata/20060102/p1 たくさんのコメント、ありがとうございます 安岡さんの日記も参考になる。 http://s

    2006-04-17
    yass
    yass 2013/08/25
    " 古典的なデータ構造としてTLVというのがある。Tag Length Valueの3つ組。 Tagの部分にデータ型をいれ、Length部分にOctet長を、Valueのところに実際の値をいれる / 知らないTagでてきたら、Length分データをすっ飛ばせ "
  • バイナリとテキストの本当の違い : 404 Blog Not Found

    2009年04月09日00:15 カテゴリLightweight LanguagesCode バイナリとテキストの当の違い うーむ、Wikipediaですら「見た目」の違いしか説明していない。 バイナリ - Wikipedia コンピュータが扱うすべてのデータはバイナリデータ(バイトの並び)であり、プレーンテキスト(または単にテキスト)もバイナリデータの一種ではあるが、通常バイナリとテキストは対比して用いられる。テキストとはデータの内容すべてを人間が読んで理解できる (human-readable) 表現形式を指し、バイナリとはそうでない表現形式を指すことが多い。 Binary file - Wikipedia, the free encyclopediaA binary file (.bin) is a computer file which may contain any type

    バイナリとテキストの本当の違い : 404 Blog Not Found
    yass
    yass 2013/08/25
    " 仕様、メタデータ、またはヘッダーで「終わり」を先に決めておくのがバイナリー / 「データはここで終わり」という信号が来るまで「終わりがない」のがテキスト"
  • テキストとバイナリ

    テキストとバイナリの一番特徴的な違いはひとかたまりのデータの長さを知る/伝える方法にあると思う. バイナリの場合は一般には0x00から0xFFまで全てのビットパターンが有効な意味を持つ. 対して文字は使わないビットパターンがある. この使わないビットパターンに特別な意味を持たせる事でデータの区切りに利用したり, 次の 8bit が連続したデータである事を示す事ができる. 前者の代表例が制御文字, 後者の 代表例はマルチバイト文字で良く使われる最小上位 1bit のフラグ. 最近, ネットワーク越しにアプリケーションを利用する事が多くなってきているけどそこで利用されているプロトコルでは XML などのテキストデータを利用する場合がほとんどだ. 通信にテキストを利用する場合, エンコーディング(の合意とサポート)が問題になったり, データサイズが大きくなったりっていう問題がある. それでもテキ

    yass
    yass 2013/08/25
    " だからテキストデータを利用する. テキストなら取り合えず送信を開始して, 全部済んだら, これで終わりって意味の特別なビットパターンを送れば良い."
  • バイナリデータとテキストデータ:プログラマー社長のブログ:オルタナティブ・ブログ

    このところ受託開発の仕事のプログラミングの納期間近ということで、私も手伝って慌ただしくプログラミングをしているのですが、そのシステムでは通信データの形式にバイナリ形式を使っています。バイナリ形式とテキスト形式の違いをあらためてプログラマー視点で書いてみましょう。 バイナリ形式とはCPUがそのまま値として扱える状態のことで、例えば数値データとして一般的に使われている32ビット整数や、64ビット浮動小数点などがあります。C言語では、char,short,long,float,doubleなどの型が使われます。32ビットコンパイラならintはlongと同等ですね。 一方、テキスト形式は、人間がそのまま読める形式で、一般的にはアスキー形式とも呼ばれますが、ASCII文字を使用し、数値も「1.234」という感じに文字列で表現します。 昔はフロッピーディスクなどの記憶媒体の容量が少なかったため、少ない

    バイナリデータとテキストデータ:プログラマー社長のブログ:オルタナティブ・ブログ
    yass
    yass 2013/08/25
    " 昔はフロッピーディスクなどの記憶媒体の容量が少なかったため、少ない容量で多くのデータを保持できるバイナリ形式が多用 / メモリー使用可能容量がさらに少なかったので、バイナリー形式が好まれた "
  • Schema evolution in Avro, Protocol Buffers and Thrift — Martin Kleppmann’s blog

    Schema evolution in Avro, Protocol Buffers and Thrift Published by Martin Kleppmann on 05 Dec 2012. So you have some data that you want to store in a file or send over the network. You may find yourself going through several phases of evolution: Using your programming language’s built-in serialization, such as Java serialization, Ruby’s marshal, or Python’s pickle. Or maybe you even invent your ow

    yass
    yass 2013/08/12
    " I would like to explore how Protocol Buffers, Avro and Thrift actually encode data into bytes — and this will also help explain how each of them deals with schema changes. "
  • たのしいバイナリの歩き方 | 技術評論社

    概要 「シューティングゲームをチートから守るには?」 「リバースエンジニアリングされないためには?」 「脆弱性を見つけ、権限を奪取するには?」 普通のプログラミングだけでは意識しない低レイヤーの世界は、コンピュータを自在に操れる楽しさでいっぱい。アセンブラの読み方から最新の応用事例まで、技術と考え方が実例を通じてわかります。 著者の一言 はじめに だれもがコンピュータを使う時代になり、利便性も格段に上がりました。しかしその分、システムは複雑になり、技術者が学ぶべきことは多くなり、同じコンピュータ技術であってもまったく知らないブラックボックスが増えました。 OSはなにをしているのか? CPUやメモリはなにをしているのか? なぜソフトウェアは動くのか? なぜセキュリティホールは作られるのか? なぜ任意のコードが実行されてしまうのか? そんな疑問に答えるための味方になってくれるのが、アセンブラな

    たのしいバイナリの歩き方 | 技術評論社
  • Msgpack can't differentiate between raw binary data and text strings · Issue #121 · msgpack/msgpack

    It looks like the msgpack spec does not differentiate between a raw binary data buffer and text strings. This causes some problems in all high-level language wrappers, because most high-level languages have different data types for text strings and binary buffers. For instance, the objective C wrapper is currently broken because it tries to decode all raw bytes into high-level strings (through UTF

    Msgpack can't differentiate between raw binary data and text strings · Issue #121 · msgpack/msgpack
  • msgpack-1.0-or-1.1.md

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    msgpack-1.0-or-1.1.md
  • How to get 0-padded binary representation of an integer in java?

    for example, for 1, 2, 128, 256 the output can be (16 digits): 0000000000000001 0000000000000010 0000000010000000 0000000100000000 I tried String.format("%16s", Integer.toBinaryString(1)); it puts spaces for left-padding: ` 1' How to put 0s for padding. I couldn't find it in Formatter. Is there another way to do it? P.S. this post describes how to format integers with left 0-padding, but it is not

    How to get 0-padded binary representation of an integer in java?
  • Jarmor (Java ASCII armor)

    yass
    yass 2012/08/27
    Jarmor supports encoding and decoding using the Base64, Base32, Base16, UUCP and ASCII85 encodings.
  • GitHub - kazuho/url_compress: a static PPM-based URL compressor / decompressor

    url_compress - a static PPM-based URL compressor / decompressor (c) 2008-2010 Cybozu, Labs. Inc. INTRODUCTION The library is a compressor / decompressor specifically designed to compress URLs. Expected compression ratio is from 25% to 40% of the original size. The compressed form does not preserve the original order however it is possible to perform a prefix search without decompressing the URLs.

    GitHub - kazuho/url_compress: a static PPM-based URL compressor / decompressor
  • Protocol Bufferのデータを閲覧、編集·Protocol Buffer Message Editor MOONGIFT

    Protocol Buffer Message EditorはProtocol Bufferのデータを閲覧したり編集できるソフトウェアです。 Googleが以前発表したProtocol Buffer。各種言語向けのシリアライズメッセージ形式ですが、その内容が適切であるか読み取り、編集できるのがProtocol Buffer Message Editorです。 Java製のソフトウェアでインストーラーも付属しています。 立ち上げました。ファイルを指定して開きます。 こんな感じに表形式で読めます。 カラムが多くても問題なし。 ツリービュー表示です。 階層的になっている場合はこちらを。 1行だけ取り出して読んでいます。 Protocol Buffer Message EditorのベースになっているのはRecordEditorというCSV/TSV形式のファイルを編集するソフトウェアとなっています

  • Introduction to Low Level Bit Hacks

    I decided to write an article about a thing that is second nature to embedded systems programmers – low level bit hacks. Bit hacks are ingenious little programming tricks that manipulate integers in a smart and efficient manner. Instead of performing operations (such as counting the number of 1 bits in an integer) by looping over individual bits, these programming tricks do the same with one or tw

    Introduction to Low Level Bit Hacks
  • Binary confusion: kilobytes and kibibytes