These pages are written by only Japanese.
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
||||||||||||||||||||||||||||||||||||||||||||||
% wget http://www.int.gu.edu.au/~anthony/software/giftrans_v1.12.3.c
% gcc -O3 giftrans_v1.12.3.c -o giftrans
% su Password: # ls /usr/lib/X11/. # cp rgb.txt /usr/lib/X11/. # cp giftrans /usr/local/bin/giftrans
% giftrans Usage: giftrans [-t color|-T] [-B color] [-b color] [-g oldcolor=newcolor] [-c comment|-C] [-l|-L|-V] [-o filename] [-e filename] [filename] Convert any GIF file into a GIF89a, with the folloing changes possible: -t Specify the transparent color -T Index of the transparent color is the background color index -B Specify the transparent color's new value -b Specify the background color -g Change a color in the global color table -c Add a comment -C Remove old comment -l Only list the color table -L Verbose output of GIFs contents -V Verbose output while converting -o Redirect stdout to a file -e Redirect stderr to a file Colors may be specified as index, as rgb.txt entry or in the #rrggbb form.
giftrans -t "#fcea33" kuriboo.gif > kuriboo-trans.gif
giftrans -a kuriboo.alpha kuriboo.gif > kuriboo-trans.gifみたいな事がしたい。
アプリケーションを正しく初期化できませんでした (0xc0000005)。 [OK] をクリックしてアプリケーションを終了してください。ショートカットに --no-sandbox オプションを追記して解決しました。
$a = array('XXX' => 'a', '111' => 'b', '222' => 'c', ); $b = array('XXX' => 'x', '222' => 'y', 'ZZZ' => 'z'); print_r(array_merge($a, $b)); print_r($a + $b); echo "\n";実行結果
Array ( [XXX] => x [0] => b [1] => c [2] => y [ZZZ] => z ) Array ( [XXX] => a [111] => b [222] => c [ZZZ] => z )例えば、何かの id値 を key にして連想配列で処理というのはありがちで、 そんなデータ構造に array_merge を使うと、key が 0, 1, 2 に書き変わっちゃうと。
$a = array('XXX' => 'a', '111' => 'b', '222' => 'c', ); $b = array('XXX' => 'x', '222' => 'y', 'ZZZ' => 'z'); print_r(array_merge_recursive($a, $b));
Array ( [XXX] => Array ( [0] => a [1] => x ) [0] => b [1] => c [2] => y [ZZZ] => z )意地でもデータをロストしない、この努力が涙ぐましいですw