yano@GT110b:~$ cat /etc/default/keyboard
# Check /usr/share/doc/keyboard-configuration/README.Debian for
# documentation on what to do after having modified this file.
# The following variables describe your keyboard and can have the same
# values as the XkbModel, XkbLayout, XkbVariant and XkbOptions options
# in /etc/X11/xorg.conf.
# If you don't want to use the XKB layout on the console, you can
# specify an alternative keymap. Make sure it will be accessible
# before /usr is mounted.
# KMAP=/etc/console-setup/defkeymap.kmap.gz
Nexus 5のChromeブラウザからアクセスすると「この接続ではプライバシーが保護されません」という警告が出る。ERR_CERT_AUTHORITY_INVALIDという事なので、StartSSLのサーバSSL証明書を発行した「StartCom Class 1 Primary Intermediate Server CA」を知らないので信頼できないと仰せらしい。
でもSSLCertificateFileには「StartCom Class 1 Primary Intermediate Server CA」の中間証明書も結合したのを置いているので大丈夫なはず。現に先月調達したiPad mini 2では中間証明書のインストール抜きでもOKなのだけれど、なぜAndroidではうまくいかないのかな…
という具合に「StartCom Class 1 Primary Intermediate Server CA」の中間証明書と「StartCom Certification Authority」のルート証明書を結合した/etc/ssl/certs/server-ca.crtを作成し、/etc/apache2/sites-available/mail.bravotouring.com.confの「SSLCertificateChainFile」で指定する事でNexus 5のChromeブラウザでも警告が出ないようになった。
"あらゆるアプリを開発できる最強の開発ツールをあなたの手に"というセールストークが掲げられている「Visual Studio Community 2013」は、Visual Studio Professionalを大学関係者・非営利団体・オープンソース開発者・開発者5名以下の中小企業ならば無料で使用できるというもの。
これまでも無料版として「Visual Studio Express」が提供されてきたが、Visual Studio Community 2013では開発ターゲットが全機能とプラットフォームに拡がる。しかも、自営業者がしこしこ作れる程度のアプリケーションであれば有償無償を問わず(つまり商用も)OKというのはこれまでに例を見ない大英断だ。
Options:
--action arg info: show GPS tracker configuration
dump: output trackpoints
clear: clear memory of the GPS tracker
diff: show configuration differences relative to an
image file
-d [ --device ] arg connect to the specified device (usb::
(Unix) or serial: (Windows))
-i [ --image ] arg read memory contents from file (saved by "dump --raw")
--gpx output in GPX format (this is the default)
--details output a detailed representation of all trackpoints
--raw output the memory contents of the GPS tracker (be sure
to redirect output to a file)
--segments for output in GPX format, group trackpoints into
segments instead of tracks
--utc-offset arg time zone offset in seconds
--help output this help and exit
--version output version information and exit
-v [ --verbose ] increase verbosity
円安で差益を得たのはいいが、一方でガソリン価格や輸入品は値上がりが予想される。2011年のタイ洪水を契機に高値安定となって買い増しできなかった事から、サーバ用バックアップHDDが5年以上経過しているはずなので、MTBF100万時間を謳うWestern Digital WD30EURXを2台調達しておく。
yano@vps:~$ diff -bc /etc/apache2/mods-available/ssl.conf.orig /etc/apache2/mods-available/ssl.conf
*** /etc/apache2/mods-available/ssl.conf.orig 2014-01-07 22:24:23.000000000 +0900
--- /etc/apache2/mods-available/ssl.conf 2014-10-21 10:34:18.754666623 +0900
***************
*** 74,80 ****
# The protocols to enable.
# Available values: all, SSLv3, TLSv1, TLSv1.1, TLSv1.2
# SSL v2 is no longer supported
! SSLProtocol all
# Allow insecure renegotiation with clients which do not yet support the
# secure renegotiation protocol. Default: Off
--- 74,81 ----
# The protocols to enable.
# Available values: all, SSLv3, TLSv1, TLSv1.1, TLSv1.2
# SSL v2 is no longer supported
! # SSLProtocol all
! SSLProtocol -all +TLSv1 +TLSv1.1 +TLSv1.2
# Allow insecure renegotiation with clients which do not yet support the
# secure renegotiation protocol. Default: Off
yano@vps:~$ sudo service apache2 reload
ただ、良くも悪くも予想通りでサプライズは無し。正式な商品名がPad Air "2"とiPad mini "3"となる事がわかった以外に、話のタネになりそうなトピックスすら無い。特にiPad mini 3はTouch IDとゴールドが用意されたほか、複数通信事業者のネットワークを使用できる「Apple SIM」が登場した以外、驚くほど変わり映えしていない。
Wi-Fi+Cellular
16GB
32GB
64GB
128GB
iPhone 6 Plus
79,800円
-
89,800円
99,800円
iPhone 6
67,800円
-
79,800円
89,800円
iPhone 5s
67,800円 57,800円
77,800円 62,800円
87,800円
-
iPhone 5c
57,800円
67,800円
-
-
iPad Air 2
67,800円
-
78,800円
89,800円
iPad Air
61,800円 56,800円
71,800円 61,800円
81,800円
91,800円
iPad mini 3
56,800円
67,800円
78,800円
iPad mini 2
51,800円 45,800円
61,800円 50,800円
71,800円
81,800円
iPad mini
42,800円 40,800円
-
-
-
ところで『iPad mini Retinaディスプレイモデル』と呼ばれていた昨年モデルは『iPad mini 2』という名前で併売されるそうで、Apple Store調べによるiPhone/iPadシリーズ WiFi/Sellular(SIMフリー)版の価格一覧はこんな感じ。
気になるのは対応するLTEバンド。iPadの対応表によると「iPad Mini 2(A1490)」は「iPad mini 3(A1600)」と同様にバンド1(コアバンド),2,3(Y! 1.7GHz),4,5,7,8(Softbank 900MHz),13,17,18(au 800MHz),19(FOMAプラスエリア),20,25,26と盤石の14バンド対応なのに対して、「iPad Mini (A1455)」はバンド1,3,5,13,25の5バンドのみの対応となるので、「iPad Mini 2(A1490)」は5千円の差額以上にお得感が高い印象。
"~@pdx.ne.jp"のメールアドレスが引き継げるという事だったのだが、bravotouring.comから自動的に転送していたメールが「Undelivered Mail Returned to Sender」で戻されてきていた。慌ててMy Y!mobileで「メールアドレスの設定」を見たところ"x9c848a4a7g5qE05SE@ymobile.ne.jp"となっていて「引き継がれてないじゃん!!」と焦った。「メールアドレスの変更」に遷移してもドメインは"~@ymobile.ne.jp"固定になっているので"~@pdx.ne.jp"は選べそうにない。
「月額ゼロ円」のPremium Bar (WX341KP)を「月額2,480円」のDIGNO T 302KCにしてしまうのが何となく癪に障るので、諸々含めて「月額2,315円」で運用中の親回線2011年調達のWX01Kを機種変する方向で検討したところ、WX341KPは「ケータイプラン+家族割」に切り替えて「月額ゼロ円」で維持可能なのだが、「月額2,399円」で運用中のEM01Lは「もう一台無料キャンペーン(EM)」の基本料金割引に加えて「月額割引-S」まで消えてしまい月2,490円も高くなるらしく、結局どっちに転んでも同じ事がわかった。
2014-09-20 15:17:29 ERROR: The connection to the MySQL database has failed: mysql_error (2002): "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"
yano@GT110b:~$ diff /etc/init/mediatomb.conf.orig /etc/init/mediatomb.conf
4c4,5
< start on (local-filesystems and net-device-up IFACE!=lo)
---
> # start on (local-filesystems and net-device-up IFACE!=lo)
> start on (started mysql and local-filesystems and net-device-up IFACE!=l0)
確かに通話よりデータ通信という使い方においては旧料金プランも捨て難いのだが、改めて「パケットし放題 for 4G LTE」の「全く使わなくても2,000円」「たった15MBで上限の6,200円」になるという設定は理不尽と言わざるを得ない。これならば「パケットし放題フラット」で契約して「月月割」が終ったら「パケットし放題」にした方が良いだろう。
iCloudからセレブのヌードが大流出した事件。当初は『iPhoneを探す(Find My iPhone)』サービスに対する「スクリプトによるiCloudアカウントのブルートフォース攻撃」と言われていたが、どうやらApple ID のセキュリティ質問、通称「秘密の質問」を推測して繰り返した伝統なソーシャルアタックにより不正ログインに成功したらしい。
Intel Media SDK for Linux Servers comes with a customized libdrm. To avoid conflicts please remove any other versions of libdrm from the system. Where this cannot be done through regular package management commands, this can be accomplished as below
Test : 1000 MB [D: 0.1% (0.1/238.5 GB)] (x5)
Date : 2014/08/23 0:15:27
OS : Windows 7 Professional SP1 [6.1 Build 7601] (x64)
Media : Crucial m4 CT128M4SSD2 (NV-HS423U3S/XFastUSB@H77M-ITX)
Test : 1000 MB [D: 0.1% (0.1/238.5 GB)] (x5)
Date : 2014/08/18 23:31:44
OS : Windows 7 Professional SP1 [6.1 Build 7601] (x64)
Media : Crucial m4 CT128M4SSD2 (NV-HS423U3S/eSATA@H77M-ITX)
Test : 1000 MB [D: 0.1% (0.1/238.5 GB)] (x5)
Date : 2014/08/17 1:49:47
OS : Windows 8.1 Pro [6.3 Build 9600] (x64)
Media : Crucial m4 CT128M4SSD2 (NV-HS423U3S@USB3.0R-P2-PCIe/990FX)
As we look ahead to the future, we‘re focusing our efforts on bringing the latest and greatest to the most recent versions of Skype. As a result, we are going to retire older versions of Skype for Windows desktop (6.13 and below) as well as Skype for Mac (6.14 and below) over the next few months.
という事からまさしくビンゴ「Skype for Windows 6.13.32.104」だったので、"next few months"がやってきたと言う事になる。
Skype for BusinessでもMSIインストーラがダウンロードできなくなっている為に、やむなくオンライン版のSkypeSetup.exeから最新版「6.18.0.106」にアップデートしたが、一世代前の6.17.~にアップデートする手段などは見当たらないのが引っかかる。
yano@GT110b:~/software/MediaTomb/mediatomb-r2104$ make
~~ 中略 ~~
make[2]: Entering directory `/home/yano/software/MediaTomb/mediatomb-r2104/build'
g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -DNDEBUG -pthread -g -O2 -MT libmediatomb_a-action_request.o -MD -MP -MF .deps/libmediatomb_a-action_request.Tpo -c -o libmediatomb_a-action_request.o `test -f '../src/action_request.cc' || echo './'`../src/action_request.cc
mv -f .deps/libmediatomb_a-action_request.Tpo .deps/libmediatomb_a-action_request.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -DNDEBUG -pthread -g -O2 -MT libmediatomb_a-autoscan.o -MD -MP -MF .deps/libmediatomb_a-autoscan.Tpo -c -o libmediatomb_a-autoscan.o `test -f '../src/autoscan.cc' || echo './'`../src/autoscan.cc
mv -f .deps/libmediatomb_a-autoscan.Tpo .deps/libmediatomb_a-autoscan.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -g -DNDEBUG -pthread -g -O2 -MT libmediatomb_a-autoscan_inotify.o -MD -MP -MF .deps/libmediatomb_a-autoscan_inotify.Tpo -c -o libmediatomb_a-autoscan_inotify.o `test -f '../src/autoscan_inotify.cc' || echo './'`../src/autoscan_inotify.cc
In file included from ../src/hash.h:49:0,
from ../src/autoscan_inotify.h:36,
from ../src/autoscan_inotify.cc:38:
../src/hash/dbo_hash.h: In instantiation of ‘zmm::Ref DBOHash::get(KT) [with KT = int; VT = AutoscanInotify::Wd]’:
../src/autoscan_inotify.cc:229:48: required from here
../src/hash/dbo_hash.h:165:39: error: ‘search’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
bool found = search(key, &slot);
^
../src/hash/dbo_hash.h:165:39: note: declarations in dependent base ‘DHashBase >’ are not found by unqualified lookup
../src/hash/dbo_hash.h:165:39: note: use ‘this->search’ instead
../src/hash/dbo_hash.h: In instantiation of ‘bool DBOHash::remove(KT) [with KT = int; VT = AutoscanInotify::Wd]’:
../src/autoscan_inotify.cc:329:39: required from here
../src/hash/dbo_hash.h:109:32: error: ‘search’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
if (! search(key, &slot))
^
../src/hash/dbo_hash.h:109:32: note: declarations in dependent base ‘DHashBase >’ are not found by unqualified lookup
../src/hash/dbo_hash.h:109:32: note: use ‘this->search’ instead
../src/hash/dbo_hash.h: In instantiation of ‘void DBOHash::put(KT, zmm::Ref) [with KT = int; VT = AutoscanInotify::Wd]’:
../src/autoscan_inotify.cc:392:35: required from here
../src/hash/dbo_hash.h:139:26: error: ‘search’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
search(key, &slot);
^
../src/hash/dbo_hash.h:139:26: note: declarations in dependent base ‘DHashBase >’ are not found by unqualified lookup
../src/hash/dbo_hash.h:139:26: note: use ‘this->search’ instead
make[2]: *** [libmediatomb_a-autoscan_inotify.o] Error 1
make[2]: Leaving directory `/home/yano/software/MediaTomb/mediatomb-r2104/build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/yano/software/MediaTomb/mediatomb-r2104'
make: *** [all] Error 2
GT110bのコマンドラインからlandiskに動画ファイルをコピーしようとしてsmbcopyがいつしか無くなっていた事を思い出した。しょうがないなぁ…とsmbclientを使おうとしたのだが、何気にコマンドが面倒くさいのでsmbfsでmountしてcpすればいいや…としたらそれも"mount: unknown filesystem type 'smbfs'"と叱られる情けない結果に。
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#
# / was on /dev/sda1 during installation
UUID=70ba23ba-0ecc-402c-a2d6-2bbb15f3acef / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=4c309e51-0d3f-4b8c-ab58-dd638093bc3b none swap sw 0 0
# /home was on /dev/sdb1
UUID=3519f0b4-52d4-4c00-b574-915292b8e115 /home ext4 defaults 0 2
# /mnt/video was on /dev/sdd1
UUID=95245062-e625-43c3-a12c-e45d50523c63 /mnt/video ext4 defaults 0 2
# /mnt/landisk was on //landisk/disk1
//landisk/disk1 /mnt/landisk cifs credentials=/etc/smbpasswd.landisk,iocharset=utf8,uid=yano,gid=family 0 2
# /mnt/ts_file was on /dev/sdc1
# UUID=4c1a6fda-c5ce-4e12-9b4c-2005285d04c4 /mnt/ts_file ext4 defaults 0 2
UUID=bc45dfaa-5fac-48d3-8955-800d21c1359b /mnt/ts_file xfs inode64,noatime 0 2
# /mnt/ts_pool was on /dev/sde1
UUID=a791245b-b27f-4e26-a3fe-c793a894df2c /mnt/ts_pool xfs inode64,noatime 0 2
35mm判換算での焦点距離28-300mm相当のコンパクト10倍ズーム。実売価格帯で6万円前後と言う事からもオリンパスの「M.ZUIKO DIGITAL ED 14-150mm F4.0-5.6」、パナソニックの「LUMIX G VARIO 14-140mm F3.5-5.6 ASPH. POWER O.I.S.」と真っ向勝負となるので、レビューが楽しみだ。
root@GT110b:~# /sbin/parted /dev/sdc
GNU Parted 2.3
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA WDC WD25EZRX-00M (scsi)
Disk /dev/sdc: 2500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
(parted) mklabel gpt
(parted) unit GB
(parted) mkpart ts_file xfs 0 2500
(parted) p
Model: ATA WDC WD25EZRX-00M (scsi)
Disk /dev/sdc: 2500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
1 0.00GB 2500GB 2500GB xfs ts_file
(parted) quit
Information: You may need to update /etc/fstab.
# /sbin/mkfs.xfs /dev/sdc1
-bash: /sbin/mkfs.xfs: No such file or directory
dump_message( "read:", res_buf, ret );
if (4 < ret && !memcmp(req_buf, res_buf, 4)){ // TID match
#ifdef DEBUG
printf("%s:%d; read()=%d\n", __FILE__, __LINE__, ret);
#endif
return ret;
}
}
return -1;
}
int fplug_main( int fd, int mode )
{
int cmd;
int cnt;
int ret;
int i=0;
uchar buf[BUFSIZ];
uchar *szMode, szResult[BUFSIZ];
time_t timer;
struct tm *t;
strcpy(szResult, "x");
szMode = szResult;
switch(mode) {
case 'h':
szMode = "FP_HUMID";
for ( i = 0; i < MSG_RETRY_MAX && 0 < (ret = FPLUG_EXEC(fd, Humid, buf)); i++ ){
uint16_t a = *(uint16_t *)&buf[ret-2];
if ( 100 < a )
continue;
sprintf(szResult, "%d", a );
break;
}
break;
case 'i':
szMode = "FP_ILLUM";
for ( i = 0; i < MSG_RETRY_MAX && 0 < (ret = FPLUG_EXEC(fd, Illum, buf)); i++ ){
uint16_t a = *(uint16_t *)&buf[ret-2];
if ( 0xFFFD < a )
continue;
sprintf(szResult, "%d", a );
break;
}
break;
case 't':
szMode = "FP_TEMP";
for ( i = 0; i < MSG_RETRY_MAX && 0 < (ret = FPLUG_EXEC(fd, Temp, buf)); i++ ){
int16_t a = *(int16_t *)&buf[ret-2];
if ( a < -100 || 500 < a )
continue;
sprintf(szResult, "%.1f", (float)a / 10);
break;
}
break;
case 'w':
szMode = "FP_WATT";
for ( i = 0; i < MSG_RETRY_MAX && 0 < (ret = FPLUG_EXEC(fd, RWatt, buf)); i++ ){
int16_t a = *(int16_t *)&buf[ret-2];
if ( 2000 < a )
continue;
sprintf(szResult, "%.1f", (float)a / 10);
break;
}
break;
default:
szMode = "FP_unknown";
break;
}
printf( "%s=%s;", szMode, szResult);
}
! eyeFiLogger.debug("Deleting TAR file " + imageTarPath)
! os.remove(imageTarPath)
try:
import pyexiv2
! metadata = pyexiv2.ImageMetadata(imagePath)
! metadata.read()
! if 'Exif.Image.DateTime' in metadata.exif_keys:
! d = metadata['Exif.Image.DateTime'].value
seconds = time.mktime(d.timetuple())
os.utime(imagePath, (seconds, seconds))
else:
eyeFiLogger.error("Could not find Exif.Image.DateTime field in EXIF information")
except ImportError, e:
! eyeFiLogger.error("pyexiv2 module not present. Could not read EXIF information.")
if e.message != 'No module named pyexiv2':
raise
# Create the XML document to send back
doc = xml.dom.minidom.Document()
+ eyeFiLogger.setLevel(config.getint('EyeFiServer','loglevel'))
+ eyeFiLogger.info("Eye-Fi server started loglevel=" + str(config.getint('EyeFiServer','loglevel')))
# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
# server 0.ubuntu.pool.ntp.org # server 1.ubuntu.pool.ntp.org # server 2.ubuntu.pool.ntp.org # server 3.ubuntu.pool.ntp.org
server ntp1.jst.mfeed.ad.jp server ntp2.jst.mfeed.ad.jp server ntp3.jst.mfeed.ad.jp
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
yano@ML110G7:~$ sudo ipmitool sdr
UID Light | 0x00 | ok
Health LED | 0x00 | ok
VRM 1 | 0x00 | ok
Power Supply 1 | 0x00 | ok
Fan 1 | 54.88 percent | ok
Fan 7 | 46.65 percent | ok
Fan 8 | 41.16 percent | ok
01-Inlet Ambient | 27 degrees C | ok
02-CPU | 40 degrees C | ok
03-P1 DIMM 1-4 | 33 degrees C | ok
04-P1 Mem Zone | 35 degrees C | ok
05-P1 Mem Zone | 33 degrees C | ok
06-HD Max | 50 degrees C | ok
07-VR P1 | 38 degrees C | ok
08-VR P1 | 41 degrees C | ok
09-VR P1 Zone | 35 degrees C | ok
10-VR P1Mem Zone | 32 degrees C | ok
11-PCI 1 Zone | 32 degrees C | ok
12-PCI 2 Zone | 33 degrees C | ok
13-PCI 3 Zone | 32 degrees C | ok
14-PCI 4 Zone | 30 degrees C | ok
15-System Board | 28 degrees C | ok
16-System Board | 31 degrees C | ok
Memory | 0x00 | ok
yano@ML110G7:~$
Fan 1が背面ファン、Fan 7がCPUファン、Fan 8が前面ファン。CPUとHDは実際には採れていなくて、それぞれ40、50の固定値出力となっている模様。
ret = read(fd, res_buf, bufsiz);
if ( ret <= 0 )
continue;
dump_message( "read:", res_buf, ret );
if (4 < ret && !memcmp(req_buf, res_buf, 4)){ // TID match
#ifdef DEBUG
printf("read()=%d,errno=%d\n", ret, errno);
#endif
return ret;
}
}
return -1;
}
int fplug_main( int fd, int mode )
{
int cmd;
int cnt;
int ret;
int i=0;
uchar buf[BUFSIZ];
uchar *szMode, szResult[BUFSIZ];
time_t timer;
struct tm *t;
strcpy(szResult, "--");
szMode = szResult;
switch(mode) {
case 'h':
szMode = "FP_HUMID";
for ( i = 0; i < MSG_RETRY_MAX && 0 < (ret = FPLUG_EXEC(fd, Humid, buf)); i++ ){
uint16_t a = *(uint16_t *)&buf[ret-2];
if ( 100 < a )
continue;
sprintf(szResult, "%d", a );
break;
}
break;
case 'i':
szMode = "FP_ILLUM";
for ( i = 0; i < MSG_RETRY_MAX && 0 < (ret = FPLUG_EXEC(fd, Illum, buf)); i++ ){
uint16_t a = *(uint16_t *)&buf[ret-2];
if ( 0xFFFD < a )
continue;
sprintf(szResult, "%d", a );
break;
}
break;
case 't':
szMode = "FP_TEMP";
for ( i = 0; i < MSG_RETRY_MAX && 0 < (ret = FPLUG_EXEC(fd, Temp, buf)); i++ ){
int16_t a = *(int16_t *)&buf[ret-2];
if ( a < -100 || 500 < a )
continue;
sprintf(szResult, "%.1f", (float)a / 10);
break;
}
break;
case 'w':
szMode = "FP_WATT";
for ( i = 0; i < MSG_RETRY_MAX && 0 < (ret = FPLUG_EXEC(fd, RWatt, buf)); i++ ){
int16_t a = *(int16_t *)&buf[ret-2];
if ( 2000 < a )
continue;
sprintf(szResult, "%.1f", (float)a / 10);
break;
}
break;
default:
szMode = "FP_unknown";
break;
}
printf( "%s=%s;", szMode, szResult);
}
int main(int argc, char *argv[])
{
int fd;
struct termios oldtio, newtio;
char *cmd;
yano@ML110G7:~/software/fplug_for_linux$ sudo fptest
1.Get Temperature
2.Get Humidity
3.Illumination
4.Watt(Realtime)
5.Exit
Input command no ->1
Temp Command:10,81,00,00,0E,F0,00,00,11,00,62,01,E0,00,
ret size=15 Temp Status:10,81,00,00,00,00,0E,F0,00,72,01,E0,02,0E,01,
Temperature=27.0
1.Get Temperature
2.Get Humidity
3.Illumination
4.Watt(Realtime)
5.Exit
Input command no ->4
ret size=16
Realtime Wattmeter:10,81,00,00,00,22,00,0E,F0,00,72,01,E2,02,73,02,
Watt(Realtime)=62.7W
fpstatusもsensors.cronからデータを取得できるよう同様に改修してみたのだが、応答メッセージの受信以前に要求メッセージの送信がうまくいかない事が多い事がわかった。調べてみると"Transport endpoint is not connected"が発生しているので、ENOTCONNの場合はwriteをリトライするように対処。
しかし、『宮崎駿監督作品集』の「特典ディスク」に含まれるプロモーションフィルム『On Your Mark』(約7分)まで問題視し排除するというディズニーのスタンスには激しく納得がいかない。
先日、春日市の小学校の校長先生が覚せい剤所持容疑で逮捕されるというショッキングな事件があったが、その余波で作曲した校歌を変更する動きが出ているらしい。事件の余波で容疑者が儲かるような構図は許せないので、ASKA自身が中心となっている「CHAGE and ASKA」作品やソロ作品を出荷停止というのは「相応の罰」として理解できるが、どんな経緯で「校歌が相応しくない」という考えになるのだろうか。事件によって万里の河を始めとした名曲の数々が色褪せる事は全く無く、楽曲の良し悪しと作曲者や作詞者の人格なんて全く関係無いとさえ思うよ。
yano@ML110G7:~$ hcitool scan
Scanning ... B0:99:28:XX:YY:ZZ F-PLUG
yano@ML110G7:~$ sudo bluetooth-agent 1234 B0:99:28:XX:YY:ZZ
Pincode request for device /org/bluez/19037/hci0/dev_B0_99_28_XX_YY_ZZ
Agent has been released
yano@ML110G7:~$ sudo l2pingB0:99:28:XX:YY:ZZ
Ping: B0:99:28:XX:YY:ZZ from 00:1B:DC:AA:BB:CC (data size 44) ...
0 bytes from B0:99:28:XX:YY:ZZ id 0 time 31.79ms
0 bytes from B0:99:28:XX:YY:ZZ id 1 time 22.40ms
0 bytes from B0:99:28:XX:YY:ZZ id 2 time 26.03ms
^C3 sent, 3 received, 0% loss
yano@ML110G7:~$ sudo rfcomm -r connect hci0 B0:99:28:XX:YY:ZZ &
[1] 3427
yano@ML110G7:~$ Connected /dev/rfcomm0 to B0:99:28:XX:YY:ZZ on channel 1 Press CTRL-C for hangup
yano@ML110G7:~$
yano@ML110G7:~/software$ git clone https://github.com/goto2048/fplug_for_linux.git
yano@ML110G7:~/software$ cd ~/software/fplug_for_linux/
yano@ML110G7:~/software/fplug_for_linux$ make fptest
cc fptest.c -o fptest
fptest.c: In function ‘testmenu’:
fptest.c:66:17: warning: unknown conversion type character 0xa in format [-Wformat=]
printf( "Humidity=%d%\n", a );
^
fptest.c: In function ‘dump_message’:
fptest.c:96:5: warning: format not a string literal and no format arguments [-Wformat-security]
printf( mes );
^
yano@ML110G7:~/software/fplug_for_linux$ make fpstatus
cc fpstatus.c -o fpstatus
yano@ML110G7:~/software/fplug_for_linux$ sudo ./fptest
1.Get Temperature
2.Get Humidity
3.Illumination
4.Watt(Realtime)
5.Exit
Input command no ->1
Temp Command:10,ffffff81,00,00,0e,fffffff0,00,00,11,00,62,01,ffffffe0,00,
ret size=16
Temp Status:10,ffffff81,00,00,00,11,00,0e,fffffff0,00,72,01,ffffffe0,02,fffffff0,00,
Temperature=24.0
1.Get Temperature
2.Get Humidity
3.Illumination
4.Watt(Realtime)
5.Exit
Input command no ->4
ret size=16
Realtime Wattmeter:10,ffffff81,00,00,00,22,00,0e,fffffff0,00,72,01,ffffffe2,02,00,00,
Watt(Realtime)=0.0W
1.Get Temperature
2.Get Humidity
3.Illumination
4.Watt(Realtime)
5.Exit
Input command no ->5
yano@ML110G7:~/software/fplug_for_linux$ sudo cp -p {fptest,fpstatus} /usr/local/bin/
yano@ML110G7:~/software/fplug_for_linux$
yano@ML110G7:~$ sudo apt-get install dhcp3-server
Reading package lists... Done
Building dependency tree
Reading state information... Done Note, selecting 'isc-dhcp-server' instead of 'dhcp3-server'
Suggested packages:
isc-dhcp-server-ldap
The following NEW packages will be installed:
isc-dhcp-server
0 upgraded, 1 newly installed, 0 to remove and 42 not upgraded.
Need to get 762 kB of archives.
After this operation, 2,138 kB of additional disk space will be used.
Get:1 http://jp.archive.ubuntu.com/ubuntu/ trusty/main isc-dhcp-server amd64 4.2.4-7ubuntu12 [762 kB]
Fetched 762 kB in 0s (989 kB/s)
Preconfiguring packages ...
Selecting previously unselected package isc-dhcp-server.
(Reading database ... 73354 files and directories currently installed.)
Preparing to unpack .../isc-dhcp-server_4.2.4-7ubuntu12_amd64.deb ...
Unpacking isc-dhcp-server (4.2.4-7ubuntu12) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up isc-dhcp-server (4.2.4-7ubuntu12) ...
Generating /etc/default/isc-dhcp-server...
isc-dhcp-server start/running, process 7326
isc-dhcp-server6 stop/pre-start, process 7369
Processing triggers for ureadahead (0.100.0-16) ...
yano@ML110G7:~$
モトローラ・モビリティがレノボへ売却された後もGoogleに残されたATAP(Advanced Technology and Projects)チームによって開発は続いていて、先日開催されたデベロッパーカンファレンスにおいて開発キットと共に、今年9月のプロトタイプ公開、来年1月のエントリーモデル(Grey Phone)発売という具体的なスケジュールが公表された。
グループポリシーエディタ(gpedit)を利用して「Windows To Go ワークスペースでも、Windowsストアを有効にする方法」があるそうだが、そもそもMicrosoft Windows 8 Professionalでは使えない機能だったりする事から、明らかにMicrosoft Windows 8のバグによる錯誤と思われる。
セキュリティレベルを下げるとか、年に1度しか使わない確定申告書等作成コーナーを「例外サイト・リスト(Exception Site List)」に登録するという対処があるらしいが、取り敢えずSleipnirではなくChromeで試してみたところ警告されながらも何とか送信できたので、ひとまず平成25年分の確定申告無事終了。
For users of Flash Player 11.7.700.257 and earlier versions for Windows and Macintosh, who cannot update to Flash Player 12.0.0.38, Adobe has made available the update Flash Player 11.7.700.260, which can be downloaded here.
ITproの記事では「iPerf」でLAN内の測定だったが、取り敢えずSpeedtest.net by Ookla - Mobileを試してみたところ、下りはサーバかインターネット側の混雑で20~25Mbps程度に留まったものの、上りはなんと100Mbpsを軽くオーバー。朝方だと下りも100Mbpsをオーバーして11acの実力を遺憾なく魅せつけた。
何はともあれ機種代金の39,800円を24,800円にする為に番号ポータビリティ(MNP)弾の用意が必要なわけだが、通話ができる携帯電話回線としては唯一の回線は昨年3月に契約したXperia acro HD SO-03D改めP905iなので、ひとりでも割50の2年縛りが効いている為に来年4月までは9,975円の解約金が必要となる。機種代金の割引を考えれば解約金を払ってでもMNPした方が得という考えもあるが、実はP905iだと2in1でもう一つ電話番号が追加でき、その番号(Bナンバー)を転出する事で解約金の類を払わずにMNPできる裏技がある。
9月に発表した史上最小SoCプロセッサQuarkに512KBの主記憶とWiFi、Bluetoothを組み合わせてSDカードのフォームファクタにパッケージしたもので、乱暴に言えばEye-FiやPQI Air Cardのようなものだが、Quark自体は非MMX-Pentium世代(つまり586)のIntel Architecture Compatibleなデュアルコアプロセッサを実装し、Haswellと同じく最先端の22nmプロセスルールで製造されているらしい。