2016年7月21日木曜日

configure作成

#
# 1.サンプルソース作成
#
cat <<__EOF__> a.c
#include <stdio.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

int main(int argc, char *argv[])
{
fprintf(stdout, "1\n");
fprintf(stderr, "2\n");
return 0;
}
__EOF__

#
# 2.雛形Makefile.in作成
#
cat <<__EOF__> Makefile.in

#
# Makefile
#
CC = @CC@
DEFS = @DEFS@
LIBS = @LIBS@

SRCS = a.c
OBJS = \$(SRCS:.c=.o)
PROG = a

all: \$(PROG)

\$(PROG): \$(OBJS)
 \$(CC) -o \$@ \$(OBJS) \$(LIBS)

.c.o:
 \$(CC) \$(DEFS) -c -o \$@ \$<

clean:
 rm -f \$(OBJS)
__EOF__

#
# 3.autoscanを実行してconfigure.in 作成
#
autoscan
mv configure.scan configure.in
#
# 4.autoheaderを実行してconfig.in 作成
#
autoheader
#
# 5.autoconfを実行してconfigure 作成
#
autoconf
#
# 6.configure実行してMakefile 作成
#
./configure

#
# 7.コンパイル
#
make

2016年7月19日火曜日

exel 数値域に文字列が入ってしまったので一括変換。

対象セルを選択 →データ(D) → 区切り位置 → 次へ → 次へ → G/標準(G) → 完了


選択域を一発変換!!!!   便利。

2016年7月14日木曜日

メトリックを変更する事で、デフォルトルートを変更。 default route

自動メトリックをOFFにして、手動でMetricを設定

ネットワークと共有センター→アダプターの設定の変更→XXXXX接続→プロパティ→インターネットプロトコルバージョン4→プロパティ→詳細設定→自動メトリック

2016年6月9日木曜日

シリアル変更

# mount -o rw,remount rootfs /
# vi /default.prop
#
# ADDITIONAL_DEFAULT_PROPERT
#
media.settings.xml=/etc/medi
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
persist.service.adb.enable=0
ro.serialno=EX841011A00595 ←追加

# mount -o ro,remount rootfs /

2016年4月15日金曜日

imagemagick をコンパイルした。


http://www.imagemagick.org/script/install-source.php
からimagemagick本体ダウンロード

やはりソースをダウンロードしてmakeをかける。

http://www.imagemagick.org/download/delegates/
から
jpeg-9a
libpng-1.6.16

tar xvf ImageMagick.tar.gz

cd ImageMagick-6.9.3-8

./configure

make

make install

cd ../

tar xvf pegsrc.v9a.tar.gz

cd jpeg-9a

./configure

make

make install

cd ../

tar xvf libpng-1.6.21.tar.gz

cd libpng-1.6.21

./configure

make

make install


Convert をインストール

yum install ImageMagick ImageMagick-devel

$ identify aa.jpg

$ convert -resize 576x168! aa.bmp bb.bmp
$ convert -crop 576x168+0+0 bb.bmp cc.bmp
$ convert -threshold 50000 cc.bmp dd.bmp

http://x68000.q-e-d.net/~68user/unix/pickup?convert

NEXTJS PWA化

$ cd frontend $ npm install @ducanh2912/next-pwa $ vi next.config.ts<<__EOF__ import withPWAInit from "@ducanh2912/next-pwa"...