|
2012 11,22 12:54 |
|
|
.htaccess での設定をメモ
.htaccessで自動的で、iモードIDのパラメータ(guid=ON)を付ける RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^DoCoMo.*
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)$ http://your-site/$1?guid=ON [R=302,L]
RewriteCond %{HTTP_USER_AGENT} ^DoCoMo.*
RewriteCond %{QUERY_STRING} !guid=ON$
RewriteRule ^(.*)$ http://your-site/$1?%{QUERY_STRING}&guid=ON [L]
※プログラム内部でリダイレクトしたら、エラーになったの注意が必要かも 特定の個体識別番号端末(uid)以外はメンテナンスページを表示 RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^(DoCoMo|KDDI|DDIPOKET|UP?.Browser|J-PHONE|Vodafone|SoftBank)
RewriteCond %{HTTP:X-UP-SUBNO} !^au サブスクライバID$
RewriteCond %{HTTP:X-DCMGUID} !^docomo iモードID$
RewriteCond %{HTTP:X-JPHONE-UID} !^softbank 端末シリアル番号$
RewriteRule ^$ /ment.html [R]
PR |
|
|
2012 11,20 13:52 |
|
|
2012 11,17 01:39 |
|
|
2012 11,08 15:33 |
|
|
邪魔なアプリの紹介サイトが多くて、欲しい情報が見つかりにくくなっている昨今
そんなわけで、探すのに苦労したので、ここに記載 単純に mPlayer = MediaPlayer.create(this, R.raw.mp3_src); mPlayer.start(); というパターンと try { mPlayer = new MediaPlayer(); mPlayer.setDataSource(this, Uri.parse("android.resource:// mPlayer.setAudioStreamType( mPlayer.prepare(); mPlayer.start(); } catch (Exception e) { e.printStackTrace(); } というパターン MediaPlayer.createメソッドが、内部的にすでにprepare(準備)メソッドを呼んでいるためで、 ストリームタイプの変更は、準備の前に実行しておく必要があるようです |
|
|
2012 10,15 02:09 |
|
|
# lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
02:00.0 Ethernet controller: Atheros Communications AR8121/AR8113/AR8114 Gigabit or Fast Ethernet (rev b0) 自分のサーバでは、こんな感じで情報が出てきます |
|
| 忍者ブログ [PR] |





