一般的なファイル名変更
1 |
$ git mv foo.c bar.c |
大文字小文字のファイル名変更
1 |
$ git mv -f Readme.txt README.TXT |
1 |
$ git mv foo.c bar.c |
1 |
$ git mv -f Readme.txt README.TXT |
1 2 3 |
$ cd app/src/main # AndroidManifest.xmlのあるディレクトリ $ $(NDKTOOL)/ndk-build |
ndk-buildのインストール場所の例 : ~/ndk/android-ndk-r9d/ndk-build
1 |
COUNTIFS(検索範囲1, 検索条件1, 検索範囲2, 検索条件2, .., 検索範囲n, 検索条件n) |
範囲A1:A100の中で「セルE1以上かつセルE2以下」のセルの数をカウントする
1 |
COUNTIFS(A1:A100, ">="&E1, A1:A100, "<="&E2) |
xddはファイルや標準入力からヘキサダンプを生成するだけでなく、ヘキサダンプからオリジナルのバイナリー形式に変換することができる。
バイナリファイルからC言語形式の配列コードを生成する。
1 2 3 4 5 6 7 8 9 10 11 12 |
$ xxd -i favicon.ico unsigned char favicon_ico[] = { 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x10, 0x10, 0x00, 0x00, 0x01, 0x00, 0x08, 0x00, 0x68, 0x05, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 中略 */ 0xff, 0xff, 0xc0, 0x03, 0xff, 0xff, 0xe6, 0x87, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff }; unsigned int favicon_ico_len = 1406; |
コマンド | 意味 |
---|---|
ndk-build | ビルド |
ndk-build clean | クリーン (*.soを削除) |
ndk-build NDK_DEBUG=1 | デバッグ可能なバイナリ生成 0:無効(default) / 1:有効 |
ndk-build V=1 | verboseモード |
ndk-build NDK_LOG=1 | NDKのログ表示 |
Android StudioでShift-JISのソースコードが文字化けするのを解消する
Android Studio => Preferences…
Android Studio を再起動する。
1 2 3 4 5 6 |
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="Encoding"> <file url="PROJECT" charset="x-SJIS_0213" /> </component> </project> |
1 |
$ git clone git://github.com/schacon/myproject.git |
1 |
$ cd myproject |
1 |
$ git submodule init |
1 |
$ git submodule update |
1 |
$ git submodule update --init |
1 |
$ git submodule update --init --recursive |
値 | 名称 | 意味 |
---|---|---|
FF | SOF0 | Huffman Baseline DCT |
C0 | ||
00 | Lf | セグメント長 |
11 | ||
08 | P | サンプル精度 (Sample Precision) |
0D | Y | 高さ (3508px) |
B4 | ||
09 | X | 幅 (2480px) |
B0 | ||
03 | Nf | 構成要素数 (1:グレースケール, 3:YCbCr/YIQ, 4:CMYK) |
01 | Cn | 構成要素ID (1:Y, 2:Cb, 3:Cr, 4:I, 5:Q) |
以下略 |
git svn clone で取得したリポジトリで以下のwarningが発生するときの回避策
1 2 3 4 5 6 7 8 |
$ git svn rebase W: Refspec glob conflict (ref: refs/remotes/svn/Preview_August@1053): expected path: Src/branches/Preview_August@1053 real path: Src/trunk2 Continuing ahead with Src/trunk2 [...] Continuing ahead with 25_Android_Src Current branch master is up to date. |
~/.git/configの重複行を削除
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = true [svn-remote "svn"] url = http://someone.somewhere.jp/svn/foo fetch = Src/trunk:refs/remotes/svn/trunk branches = Src/branches/*:refs/remotes/svn/* tags = Src/tags/*:refs/remotes/svn/tags/* - branches = Src/branches/*:refs/remotes/svn/* - tags = Src/tags/*:refs/remotes/svn/tags/* |