ようへい

2012年8月30日木曜日

8/30 Android ニュースひとまとめ

ベルリン IFA 2012 で、サムスンがペン入力対応Android端末の新モデル Galaxy Note II を発表しました。画面は5.5インチ 1280 x 720 ピクセルの HD Super AMOLEDディスプレイ。初代 Galaxy Note の5.3インチから対角は長くなっていますが、幅が800 から720ピクセルになり、アスペクト比は16:9に変わっています。

プロセッサは4コア1.6GHz駆動のサムスン Exynos。先代のデュアルコアから、Galaxy S III (非LTE版) 同等にパワーアップしました。厚さは初代より薄い9.4mm。ながら、バッテリー容量は3100mAhに増えています。Androidのバージョンは 4.1 Jelly Bean プリインストール。そのほか仕様は背面8MPカメラ、前面1.9MPカメラ、16GB / 32GB / 64GB 内蔵ストレージなど。
サムスン Galaxy Note II 発表。5.5型16:9 有機ELと4コア Exynos、Android 4.1搭載 - Engadget Japanese
http://japanese.engadget.com/2012/08/29/galaxy-note-ii-5-5-16-9-el-4-exynos-android-4-1/
ペンで絵や文字を書けるのは魅力的。
スペックもかなり高性能。
欲しいけど・・・高そうだなぁ。
Galaxy Note II やWindows 全域カバーな ATIV ファミリなど多数の新製品が披露されたサムスン IFA 2012 イベントですが、ある意味もっとも度肝を抜いたのはこのGALAXY Camera かもしれません。サムスン EK-CG100 『GALAXY Camera』 は、名前から想像できるとおりのAndroid採用カメラ製品。

AndroidをカメラOSのベースにしたり、素のAndroidをカメラに載せた例は従来にもありましたが、GALAXYカメラ (GALAカメ?) はモニタ側のほぼ全面が4.8インチ1280 x 720p の高精細マルチタッチ液晶だったり、高速なクアッドコアプロセッサを採用したり、WiFi だけでなく3G / 4G データ通信機能を内蔵してSIMスロットがあるなど、仕様がいちいちただごとではありません。Androidのバージョンは最新版 Android 4.1 Jelly Bean。GoogleのNexus 製品も担当したサムスンらしいところです。
サムスン Galaxy カメラ発表。Android 4.1搭載で光学21倍ズーム、WiFi / 4G対応 - Engadget Japanese
http://japanese.engadget.com/2012/08/29/galaxy-android-4-1-21-wifi-4g/
PanasonicがAndroid連携機能を搭載した洗濯機をリリースする一方、サムスンはAndroid搭載カメラを発表。
日本のメーカーもこれくらいやって欲しいですね。
シマンテックによれば、家事や育児に追われる主婦層をターゲットとしたとみられるAndroidマルウェアが出回っているという。

同社が8月に入って確認したもので、スパムメールでありがちな「仕事紹介サイト」に見せかけた不正サイトへ誘導。「子育てや家事を行いながら自宅でメールするだけで簡単に副収入が得られる」などと騙し、トロイの木馬「Android.Loozfon」をダウンロードさせる。

また「裕福な男性を紹介する」などと説明する別の手口でも攻撃も展開。メール上のリンクをクリックさせることで、不正アプリをダウンロードさせていた。
【セキュリティ ニュース】「副収入」で主婦層を狙うAndroidマルウェア:Security NEXT
http://www.security-next.com/033394
副収入を謳い文句にしたマルウェアが出回っているようです。
端末上のアドレス帳情報を盗み出す可能性があるとのことです。
インストール経路は、メールからのダウンロードとのことなので、不正な経路でのダウンロード、インストールにはご注意ください。
アイディアファクトリーから、Android向けアプリ『神次元アプリ ネプテューヌ』が配信された。iOS版も近日配信予定。さらに、 “ネプテューヌ”の守護女神たちがカードゲームに参戦した『ネプテューヌコレクション』が配信されることも明らかになった。
『神次元アプリ ネプテューヌ』Android版配信開始 ゲイムギョウ界の女神がキミの生活をサポート!?  - ファミ通App
http://app.famitsu.com/20120830_86768/
ねぷねぷがAndroidに!!
とは言っても、アクセサリアプリのようです。
関連記事

2012年8月29日水曜日

エポック秒、エポックミリ秒コンバーター

エポック秒(1970/1/1 00:00:00 +0000 からの秒数)、エポックミリ秒(1970/1/1 00:00:00 +0000 からのミリ秒数)を相互変換します。
UNIXタイムスタンプとも言う。
タイムゾーンはローカルタイムです。
タイムゾーンにも対応した新しいコンバータはこちら
[タイムゾーン対応] エポック秒、エポックミリ秒コンバーター
設定
変換種別
オフセット
変換
関連記事

2012年8月26日日曜日

Greasemonkey 1.0 リリース

ついに、Greasemonkey 1.0 がリリースされました。
やっと安定版というところでしょうか。
Greasespot: Greasemonkey 1.0 Release
http://www.greasespot.net/2012/08/greasemonkey-10-release.html 1.0での主な変更点は、@grantという権限パラメタがMetaブロックに追加されています。
スクリプト内で使用しているGM_関数を、あらかじめ@grantで宣言しなければいけないようです。
Greasemonkey 1.0 adds a special Metadata Block imperative: @grant. As of version 1.0:

 If a script does not specify any @grant values, Greasemonkey will attempt to auto-detect the right settings.
 If a script specifies any values (or they have been auto detected), then it will be provided with only those API methods that it declares.
 The valid values are the names of those GM_ prefixed values that you wish your script to be granted access to. 
 Otherwise the script will be granted no special API privileges, and thus run without the security constraints Greasemonkey scripts have traditionally had. If you want your script to operate in this mode, you should explicitly declare @grant none.
@grant - GreaseSpot Wiki
http://wiki.greasespot.net/@grant
@grantの追記は大きな手間ではなかったのですが、1.0にすると以下のエラーが出るようになりました。
なお、@grantにGM_xmlhttpRequestは追記済みです。
[Exception... "A parameter or an operation is not supported by the underlying object"  code: "15" nsresult: "0x8053000f (InvalidAccessError)"  location: "chrome://greasemonkey/content/xmlhttprequester.js Line: 86"]
ちなみに、xmlhttprequester.jsの該当行は以下。
// this function is intended to be called in chrome's security context, so
// that it can access other domains without security warning
GM_xmlhttpRequester.prototype.chromeStartRequest =
function(safeUrl, details, req) {
  this.setupReferer(details, req);

  var setupRequestEvent = GM_util.hitch(this, 'setupRequestEvent', this.wrappedContentWin);

  setupRequestEvent(req, "abort", details);
  setupRequestEvent(req, "error", details);
  setupRequestEvent(req, "load", details);
  setupRequestEvent(req, "progress", details);
  setupRequestEvent(req, "readystatechange", details);
  setupRequestEvent(req, "timeout", details);
  if (details.upload) {
    setupRequestEvent(req.upload, "abort", details.upload);
    setupRequestEvent(req.upload, "error", details.upload);
    setupRequestEvent(req.upload, "load", details.upload);
    setupRequestEvent(req.upload, "progress", details.upload);
  }

  req.mozBackgroundRequest = !!details.mozBackgroundRequest;

  req.open(details.method, safeUrl,
      !details.synchronous, details.user || "", details.password || "");

  if (details.overrideMimeType) {
    req.overrideMimeType(details.overrideMimeType);
  }
  if (details.timeout) {
    req.timeout = details.timeout;
  }

  if (details.headers) {
    var headers = details.headers;

    for (var prop in headers) {
      if (Object.prototype.hasOwnProperty.call(headers, prop)) {
        req.setRequestHeader(prop, headers[prop]);
      }
    }
  }
どうやらGM_xmlhttpRequestのtimeoutパラメタが悪さしているみたい。
ということで、一時的にGM_xmlhttpRequestのtimeoutパラメタをコメントアウトすることで回避できました。
ちなみに以下のページから、0.9系をインストールして確認すると、上記のようなエラーは出ませんでした。
おそらく、1.0でのバグだと考えられます。
Greasemonkey :: Versions :: Add-ons for Firefox
https://addons.mozilla.org/ja/firefox/addon/greasemonkey/versions/ ちなみに、@grantを設定していないスクリプトで表示される警告メッセージはabout:configのgreasemonkey.showGrantsWarningをfalseにすることで、表示しないようにすることが出来るようです。

後日談

timeoutを設定した際にエラーを吐いた件は使い方がまずかったみたい。
[Greasemonkey] timeout と synchronous の関係について - ログろいど
関連記事

2012年8月23日木曜日

8/23 Android ニュースひとまとめ

 スクウェア・エニックスは本日(2012年8月23日),「ファイナルファンタジー レジェンズ 光と闇の戦士」(iOS / Android)の配信を8月31日に開始すると発表した。価格は,序章が無料,第1章が250円,第2章~第4章が各850円,全章一括購入は2500円となっている(いずれも税込)。
4Gamer.net ― iOS/Android「ファイナルファンタジー レジェンズ 光と闇の戦士」が8月31日に配信開始。FFの王道とも言うべき物語やシステムを採用
http://www.4gamer.net/games/168/G016859/20120823023/
高っ!!
日本のデベロッパーは周りを見るべき。
面白そうだけど・・・値段的に保留だな。
ファイナルファンタジー レジェンズ | SQUARE ENIX
http://www.square-enix.co.jp/smart/ffdl/jp/
ニコンが COOLPIX の新作4モデルを発表しました。フラッグシップは 28 - 200m 相当で f/2-4 の P7700 ですが、それ以上に目を引くのは Android を搭載した S800c です。Android デジカメがこれまでになかったわけではありませんし、デジカメブランドのスマートフォンに至ってはたくさんありましたが、他ならぬカメラ屋のニコンが手がけたあたりに、時代の趨勢を感じます。

S800c は 3G にこそ対応していないものの、802.11b/g/n WiFi に対応しており、撮影した写真をそのままスマートフォン同様の感覚で編集したり、ソーシャルメディアに投稿できます。ニコンが運営するフォトサービス my Picturetown 用アプリももちろん搭載。スマートフォン間とのワイヤレス転送をサポートする専用アプリも iOS / Android 向けに提供予定です。

また、まともに Android 端末ですので YouTube などのアプリも一通り搭載し、カメラ背面に備えた3.5型・800x480解像度の有機ELタッチパネルでアプリを楽しむことも可能。Google Play Store にもちゃんと対応しています。ちなみに Android 2.3.3 で、プロセッサは Coretex-A9、RAM は
512MB。ベンチマークしてみたいものです。
ニコン COOLPIX S800c 発表、Android 2.3 & WiFi 搭載デジカメ - Engadget Japanese
http://japanese.engadget.com/2012/08/22/coolpix-s800c/
こういった試みは良いですよね。
Panasonic(笑)も見習うべき。
関連記事

[GAE/J] Google App Engine Java SDK 1.7.1 がリリースされました

Google App Engine Java SDK 1.7.1がリリースされました。
リリースノートは以下。
You can download the latest version of the SDK here

App Engine SDK - Release Notes
Version 1.7.1 - August 21, 2012

 The URLFetch API now supports multiple cookie headers.
 http://code.google.com/p/googleappengine/issues/detail?id=3379 
 You can download 90 days worth of Usage Reports for your application from the Billing History page of the Admin Console.
 Task Queue requests now include an X-AppEngine-TaskExecutionCount that counts the number of times a task was run by an instance.
 Added support for multiple files to be deleted using the Files API.
 Added support to delete files from Google Cloud Storage using the Files API.
 Added a REQUEST_LOG_ID to be written in the logs and as an environment variable. This can be used to later identifying that request in the application logs.
 The Memcache Viewer now supports namespaces.
 http://code.google.com/p/googleappengine/issues/detail?id=7245 
 The Mail API now supports the following headers for outgoing mail: List-Id, List-Unsubscribe, On-Behalf-Of, Resent-Date, Resent-From, Resent-To.
 http://code.google.com/p/googleappengine/issues/detail?id=2559
 http://code.google.com/p/googleappengine/issues/detail?id=7672 
 PyCrypto 2.6. is now supported in the Python 2.7 runtime.
 http://code.google.com/p/googleappengine/issues/detail?id=7884 
 NDB now throws a BadProjectionError when trying to perform a projection query on an unknown or unindexed property.
 NDB Tasklets use the namespace from when it was called, not the namespace from when it is performed.
 http://code.google.com/p/appengine-ndb-experiment/issues/detail?id=190 
 NDB Properties' string representation size is limited to the max string length for Blob and Text properties.
 Appstats provides an interactive shell for observing RPC behavior of calls immediately.
 Appstats now contains information about the cost of the RPCs made during the request.
 The Images API now supports specifying the default pixel color to fill in for image types that don't support transparent images, such as JPEG.
 We've added full asynchronous API support in the Images API.
 Added an error to the Images API to indicate when a blob being referenced is not found or not accessible.
 Made the Python search limits public in the Search API.
 Added namespace support for the Search API in the Python SDK.
 http://code.google.com/p/googleappengine/issues/detail?id=7670 
 Added support in the Search API for simple sorting in the SDK.
 http://code.google.com/p/googleappengine/issues/detail?id=7456 
 The Testbed testing framework now supports the Logservice API.
 Added support in the Files API to list Google Cloud Storage files.
 Improve the MapReduce File API Reader to support multiple files and file formats.
 Fixed an issue with the App Engine satisfaction survey in the Admin Console which was released in 1.6.6, which will be re-enabled in this release.
 Fixed an issue with Search API websafe cursors not being returned as a websafe value.
 Fixed an issue where SearchRequest was returning errors that weren't available as search.Error subclasses.
 Fixed an NDB issue where entities over 1000000 bytes where written to memcache, causing failure.
 http://code.google.com/p/appengine-ndb-experiment/issues/detail?id=193 
 Fixed NDB AutoBatcher error handling.
 http://code.google.com/p/appengine-ndb-experiment/issues/detail?id=196 
 Fixed an issue where Appstats assuming all objects have a class attribute resulted in an error.
 http://code.google.com/p/googleappengine/issues/detail?id=5668 
 Fixed an issue where there was unbalanced string quoting in Appstats formatting.
 http://code.google.com/p/googleappengine/issues/detail?id=5976 
 Fixed an issue where search indexes were not persisted in the SDK.
 http://code.google.com/p/googleappengine/issues/detail?id=6791 
 Fixed an issue where an error in formatter.py in Appstats was being thrown.
 http://code.google.com/p/googleappengine/issues/detail?id=7034 
 Fixed an issue in the SDK where the Search API did not support boolean queries on a field.
 http://code.google.com/p/googleappengine/issues/detail?id=7247 
 Fixed an issue where numeric and date comparators were not supported in the Search API in the Python SDK.
 http://code.google.com/p/googleappengine/issues/detail?id=7247 
 Fixed an issue where Appstats didn't show a detailed view of an RPC when using the Python 2.7 runtime.
 http://code.google.com/p/googleappengine/issues/detail?id=7558 
 Fixed a search issue where snippets failed to highlight when a capital letter is used in a search term.
 http://code.google.com/p/googleappengine/issues/detail?id=7665 
 Fixed an issue where the SDK Admin tool couldn't browse search indexes containing unicode characters.
 http://code.google.com/p/googleappengine/issues/detail?id=7791 
 Fixed an issue where traffic splitting by cookie was not working.
 http://code.google.com/p/googleappengine/issues/detail?id=7813 
 Fixed an issue where RequestTooLargeError was being incorrectly thrown using Python 2.7.
 http://code.google.com/p/googleappengine/issues/detail?id=7820 
 Fixed a memcache race condition.
 http://code.google.com/p/googleappengine/issues/detail?id=7864 
 Fixed a Search issue in the SDK where a query that does not match all search terms resulted in divide-by-zero.
 http://code.google.com/p/googleappengine/issues/detail?id=7943
SdkReleaseNotes - googleappengine - Google App Engine Python SDK Release Notes - Google App Engine - Google Project Hosting
http://code.google.com/p/googleappengine/wiki/SdkReleaseNotes
Eclipseの更新サイトにはまだアップされていないようです。
関連記事