べすとえふぉーと

プログラミング等のノート 

SQLiteでDBのマージ

マージ先のDBを開いてる状態で実行

sqlite> attach database 'old_db.db' as old1;
sqlite> begin;
sqlite> insert into main.test_table(col1,col2,col3) select col1,col2,col3 from old1.test_table;
sqlite> commit;

'old_db.db'はマージ元のファイル

Raspberry Piの解像度設定(Raspbian Jessie)

ファイルは/boot/config.txt

disable_overscan=1をコメントアウト

disable_overscan=1

以下のように設定

overscan_left=24
overscan_right=24
overscan_top=10
overscan_bottom=24

framebuffer_width=1280
framebuffer_height=800