FrontPage > misc > misc/memo

xxd -p -r hexfile | od -A x -t xI -v | xxd -r > binfile

busybox の rmmod は depmod してない .ko を指定すると SEGV する。 process_module -> find_alias が NULL 返して死ぬ。

1. どんなもの?
2. 先行研究と比べてどこがすごい?
3. 技術や手法のキモはどこ?
4. どうやって有効だと検証した?
5. 議論はある?
6. 次に読むべき論文は
らじる
------
rtmpdump -r rtmpe://netradio-fm-flash.nhk.jp/ --app live \
--playpath NetRadio_FM_flash@63343 \
--swfVfy http://www3.nhk.or.jp/netradio/files/swf/rtmpe.swf?ver.2
--live -o nhk_fm_tokyo.flv

cat some_pipe | \
gst-launch -v fdsrc ! flvdemux name=demux demux.audio ! \
queue ! ffdec_aac ! alsasink device=default
gstreamer
---------
gst-launch filesrc location=hoge.mp4 ! qtdemux name=demux
demux.video_00 ! queue ! ffdec_h264 ! colorspace ! ximagesink
demux.audio_00 ! queue ! ffdec_mp3 ! audioconvert ! alsasink

Xf86 fbdev

http://comments.gmane.org/gmane.comp.freedesktop.xorg/37811

R/W ラッパーを使う fb ドライバの作り方

参考: http://cgit.freedesktop.org/xorg/driver/xf86-video-vermilion/tree/src/vermilion.c

FB_ACCESS_WRAPPER を ON にしてコンパイルした libwfb
FB_ACCESS_WRAPPER を OFF にしてコンパイルしたら libfb

wfbScreenInit : fbscreen.c
  wfbFinishScreenInit
    SetupWrapProcPtr setupWrap, FinishWrapProcPtr finishWrap を登録

fbPrepareAccess
  setupWrap にポインタが渡ってきて、
    wfbReadMemory, wfbWriteMemory が更新され、
    それ以降は更新されたラッパー関数が使われる

typedef FbBits(*ReadMemoryProcPtr) (const void *src, int size);
typedef void (*WriteMemoryProcPtr) (void *dst, FbBits value, int size);
typedef void (*SetupWrapProcPtr) (ReadMemoryProcPtr * pRead,
                                  WriteMemoryProcPtr * pWrite,
                                  DrawablePtr pDraw);
typedef void (*FinishWrapProcPtr) (DrawablePtr pDraw);

bluetooth

modprobe ehci-hcd
modprobe btusb
modprobe hidp
modprobe evdev

/usr/local/sbin/hciconfig
/usr/local/sbin/hciconfig hci0 up
/usr/local/bin/hcitool scan
# (power on the keyboard)
/usr/local/bin/hidd --connect 58:BD:A3:3B:65:EF
/usr/local/bin/hcitool con
 /usr/local/bin/hidd --show
cat /proc/bus/input/handlers
cat /proc/bus/input/devices
hexdump /dev/input/event0

暫定

http://www.oracle.com/technetwork/jp/java/javase/overview/index.html

http://www.02.246.ne.jp/~torutk/javahow2/commandline.html

AVI 参考

http://msdn.microsoft.com/ja-jp/library/cc354259.aspx

PlayStation 275M triangles/sec
Adreno 20022M triangles/sec133M 3D pixels/sec
Adreno 20541M triangles/sec245M 3D pixels/sec
PowerVR SGX 53014M triangles/sec500M pixels/secDroid
PowerVR SGX 54028M triangles/sec1G pixels/secHummingbird(Samsung S5PC110)

デフォルトリンカスクリプトを出す

LDFLAGS += -Wl,--verbose

http://dsas.blog.klab.org/archives/50908743.html#about_imbn

ffmpeg メモ

FourCCvcodec 指定意味
例:XXXX例:libxxxx例です
FLV1flvFlash Video / Sorenson Spark / Sorenson H.263
FMP4mpeg4MPEG-4 part2 video ffmpeg version
XVIDlibxvidMPEG-4 part2 video xvid version
MP41msmpeg4v1※1 MPEG-4 part2 video Microsoft variant version 1
MP42msmpeg4v2MPEG-4 part2 video Microsoft variant version 2
MP43msmpeg4MPEG-4 part2 video Microsoft variant version 3
MPG1mpeg1videoMPEG-1 video
MPG2mpeg2videoMPEG-2 video
MJPGmjpegMotion JPEG
THEOlibtheoraTheora Xiph.org(based on On2VP3)
WMV1wmv1Windows Media Video 7
WMV2wmv2Windows Media Video 8

一行メモ

言葉

Q.E.D
Quod Erat Demonstrandum(訳:かく示された)の略。
RASIS
Reliability Availability Serviceability Integrity Security の略。日本語だとそれぞれ信頼性、可用性、保守性、保全性、機密性らしい。(IT 用語辞典より)

HSRP は Cisco 独自の規格。 IETF にはデフォルトゲートウェイの冗長化のために、VRRP というプロコトルがある。

見つけたページ

ピアノのクラシック曲の MIDI がある

PC 関連のメモ

パスワード保存している共有フォルダの一覧

rundll32.exe keymgr.dll,KRShowKeyMgr

歌まっぷの歌詞

http://www.utamap.com/showkasi.php?surl=
http://www.utamap.com/phpflash/flashfalsephp.php?unum=

Aterm の telnet による管理モード

user: aterm-maintenance-110
pass: Aterm-Maintenance-119

ようこそに Administrator を表示する

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList
DWORD 値 Administrator を追加する
値を 1 にする

ようこそ画面で NumLock を ON あるいは OFF にする

Run Registry Editor (Regedt32.exe).
Navigate to HKEY_USERS\.Default\Control Panel\Keyboard.
Change the value for InitialKeyboardIndicators from 0 to 2.

tasklist でサービスの一覧表示をする

Tasklist /SVC

Windows XP Professional のみの機能みたい。

マイネットワークに最近使ったファイル共有が勝手に追加されるのを抑止

Mozilla/SeaMonkey のスプラッシュを消す(引数 -nosplash)

seamonkey.exe -nosplash

定義済みのマクロ一覧を見る

gcc src.c -E -dM

見ているページの内容を変更する(要 JavaScript)

JavaScript:with(document.body)innerHTML=
innerHTML.replace(/元の文字列1/g,'変換する文字列1').replace(/元の文字列2/g,'変換する文字列2');
focus();

実際には一行に書かなければいけない。

Windows XP の検索が遅い

私ので再生しない

Windows レジストリについて

exec で第 0引数を指定

$ exec -a hoge bash
 (別の端末で)
$ w
 02:07:41 up  3:03,  2 users,  load average: 0.07, 0.07, 0.08
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
user     pts/2    :0.0             01:49   12.00s  0.41s  0.28s hoge
user     pts/4    :0.0             02:07    0.00s  0.11s  0.04s w

まあ、何の意味もないけど…。

Sarge の Gnome 2 で JIS 配列を使いたい

キーボードの設定でレイアウトに Japanese を選ぶとカナ入力になるが、 他を全て削除すると急にカナ入力ではなくなる。

全て削除してもJIS配列になるときがあるが、毎回ログインするたびに エラーを表示するのでやかましい。 なんだか、よくわからないが今は使えている…。

Japanese を選択して、他のレイアウトを全て削除すると JIS 配列になるようです。

--

旧突発メモ

--

CN-MP700VD/CN-SP700VL NV-SD740DT

http://support.microsoft.com/kb/827745/ja

http://www.cs.wustl.edu/~schmidt/win32-cv-1.html

http://www.horobi.com/tips/SmartLock/

LD_LIBRARY_PATH=/usr/local/lib ./ffmpeg -i other.3gp -vcodec wmv2 -r 15 -acodec wmav2 -ar 11025 other.avi  
ffmpeg.exe -i "e:\a.m2v" -acodec copy -an  -vcodec libx264 -vb 4000000  e:\a.ts
ffmpeg -i a.flv -vcodec mpeg4 -acodec libamr_nb -ar 8000 -ac 1 -ab 12200 -f 3gp a.3gp

クロスコンパイル関係

GCC のオプションメモ

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TurnOffComputer] "Type"="group" "Text"="終了オプション" "Bitmap"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\

 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,\
 68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,32,00,38,\
 00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TurnOffComputer\HibernateButton] "Type"="checkbox" "Text"="終了オプションに休止状態ボタンを表示する" "HKeyRoot"=dword:80000001 "RegPath"="Software\\Policies\\Microsoft\\Windows\\System\\Shutdown" "ValueName"="ShowHibernateButton" "CheckedValue"=dword:00000001 "UncheckedValue"=dword:00000000 "DefaultValue"=dword:00000000

mercurial 関連

push 可能なリポジトリにする

# .hg/hgrc
push_ssl = false
allow_push = *

PYTHONPATH じゃなくてハードコードで追加

import sys
...
sys.path.append('/path/to/python/site-packages')

確認方法

hg showconfig または show でもいいけど

デフォルトリポジトリの変更方法は???

$ pwd
/path/to/this_repo
$ hg show
bundle.mainreporoot=/path/to/this_repo
paths.default=/path/to/parent_repo

デフォルトリポジトリ以外から pull するほうほう

hg pull [--rev revision_number] file://path/to/repository
オプションは引数の最初に書かないとおかしな動作をする。いまいち!
hg init
touch a.file
hg add a.file
hg commit -m 'add file a at default branch.'

hg branch branch_a
touch b.file
hg add b.file
hg commit -m 'add file b at branch_a.'

hg update -C default
touch c.file
hg add c.file
hg commit -m 'add file c at default branch.'

touch d.file
hg add d.file
hg commit -m 'add file d at default branch.'

$  hg hist
changeset:   3:ef3debda4a63
tag:         tip
user:        katsuhiro
date:        Wed Jul 13 11:07:49 2011 +0900
summary:     add file d at default branch.

changeset:   2:fa0a33a27db8
parent:      0:11f057317415
user:        katsuhiro
date:        Wed Jul 13 11:07:48 2011 +0900
summary:     add file c at default branch.

changeset:   1:5807e0f700d5
branch:      branch_a
user:        katsuhiro
date:        Wed Jul 13 11:07:48 2011 +0900
summary:     add file b at branch_a.

changeset:   0:11f057317415
user:        katsuhiro
date:        Wed Jul 13 11:07:47 2011 +0900
summary:     add file a at default branch.

hg update -r 2
touch e.file
hg add e.file
hg commit -m 'add file e at unnamed branch(parent is default).'

$ hg branches
default                        4:1bf31e38d364
branch_a                       1:49b79737e50c

$ hg heads
changeset:   4:1bf31e38d364
tag:         tip
parent:      2:2fde0f18ac36
user:        user@host
date:        Fri Jun 13 11:25:52 2008 +0900
summary:     add file e at unnamed branch(parent is default).

changeset:   3:f83fdcd4f75c
user:        user@host
date:        Fri Jun 13 11:25:52 2008 +0900
summary:     add file d at default branch.

changeset:   1:49b79737e50c
branch:      branch_a
user:        user@host
date:        Fri Jun 13 11:25:51 2008 +0900
summary:     add file b at branch_a.

Primary, Secondary の次は?

1 primary 2 secondary 3 tertiary 4 quaternary 5 quinary 6 senary 7 septenary 8 octonary 9 nonary 10 denary 11 12 duodenary ... 20 vigenary

screen で現在実行中のコマンド表示

subversion で俺リポジトリ

.subversion/config に適当に書く

[tunnels]
myssh = $SVN_SSH ssh -p 20022

こまんど

svn+myssh://localhost/home/katsuhiro/share/svn/

俺フォワーディングとあわせてどうぞ

ssh atlas -R20022:localhost:22 -f "bash -c 'while :;do sleep 60;done'"

JAVAで学ぶ3D

info nm

  For each symbol, `nm' shows:

  * The symbol value, in the radix selected by options (see below), or
    hexadecimal by default.

  * The symbol type.  At least the following types are used; others
    are, as well, depending on the object file format.  If lowercase,
    the symbol is local; if uppercase, the symbol is global (external).

   `A'
         The symbol's value is absolute, and will not be changed by
         further linking.

   `B'
         The symbol is in the uninitialized data section (known as
         BSS).

   `C'
         The symbol is common.  Common symbols are uninitialized data.
         When linking, multiple common symbols may appear with the
         same name.  If the symbol is defined anywhere, the common
         symbols are treated as undefined references.  For more
         details on common symbols, see the discussion of -warn-common
         in *Note Linker options: (ld.info)Options.

   `D'
         The symbol is in the initialized data section.

   `G'
         The symbol is in an initialized data section for small
         objects.  Some object file formats permit more efficient
         access to small data objects, such as a global int variable
         as opposed to a large global array.

   `I'
         The symbol is an indirect reference to another symbol.  This
         is a GNU extension to the a.out object file format which is
         rarely used.

   `N'
         The symbol is a debugging symbol.

   `R'
         The symbol is in a read only data section.

   `S'
         The symbol is in an uninitialized data section for small
         objects.

   `T'
         The symbol is in the text (code) section.

   `U'
         The symbol is undefined.

   `V'
         The symbol is a weak object.  When a weak defined symbol is
         linked with a normal defined symbol, the normal defined
         symbol is used with no error.  When a weak undefined symbol
         is linked and the symbol is not defined, the value of the
         weak symbol becomes zero with no error.

   `W'
         The symbol is a weak symbol that has not been specifically
         tagged as a weak object symbol.  When a weak defined symbol
         is linked with a normal defined symbol, the normal defined
         symbol is used with no error.  When a weak undefined symbol
         is linked and the symbol is not defined, the value of the
         symbol is determined in a system-specific manner without
         error.  Uppercase indicates that a default value has been
         specified.

   `-'
         The symbol is a stabs symbol in an a.out object file.  In
         this case, the next values printed are the stabs other field,
         the stabs desc field, and the stab type.  Stabs symbols are
         used to hold debugging information.  For more information,
         see *Note Stabs: (stabs.info)Top.

   `?'
         The symbol type is unknown, or object file format specific.

めも


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2018-07-31 (火) 17:57:27