Archive for the ‘Google’ Category

 

Google API認証エラー : Error:”invalid_grant”, Description:”Invalid JWT: Token must be a short-lived token and in a reasonable timeframe

3月 17th, 2017

時刻がズレて Oauthの認証エラーになっていました。。。 Error:”invalid_grant”, Description:”Invalid JWT: Token must be a short-lived token and in a reasonable timeframe # sudo clock # sudo clock -s でハードの時刻にあわせました。 アナリティクス API クイックスタート https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/service-php?hl=ja

Read full article | コメントは受け付けていません。

unity : iOS admob conversion tracking

4月 12th, 2015

[https://developers.google.com/app-conversion-tracking/docs/ios/using-sdk] とadmobに広告を出してコンバージョンを見てみたいので入れてみます。 UnityAppController.mmに #import “ACTReporter.h” didFinishLaunchingWithOptionsのreturnの前に [ACTConversionReporter reportWithConversionID:@"999999999" label:@"xxxxxxxxxx" value:@"0.00" isRepeatable:NO]; を入れて 実行するとこんなのを 2015-04-13 03:48:45.867[233:29019] ACTConversionIDReporter: sending ping: https://www.googleadservices.com/pagead/conversion/…… 送るようになりました・・・毎回送るのかな?・・・

Read full article | コメントは受け付けていません。

[chrome extension] 別の拡張機能と連携する。

11月 9th, 2014

https://developer.chrome.com/extensions/messaging#external typeof response === undefined で有る無しの判断出来ます。

Read full article | コメントは受け付けていません。

[chrome extention] 右クリックで。

11月 7th, 2014

chrome.contextMenus.create({ contexts:["selection"], // allとか title: “%s を一括検索 aucru shopping”, onclick: function(info, tab) { } }); background.js にこれを書くとすべてのページで右クリックが反映されます。 %s は selectionText が自動的に入ります。

Read full article | コメントは受け付けていません。

[titanium][android] titanium.jar not found

10月 26th, 2014

ERROR: Asset package include ‘/Titanium/mobilesdk/osx/3.4.0.GA/android/titanium.jar’ not found. [ERROR] Application Installer abnormal process termination. Process exit value was 1 After update to 3.4.0 GA nothing works any more https://developer.appcelerator.com/question/178514/ android build tools が 20じゃないとダメっぽい?感じです。 build-tools/21.0.x などを他の場所へ退避しておくと大丈夫でした。 とりあえずtitaniumだけでの利用であれば一旦削除しても大丈夫そうです。

Read full article | コメントは受け付けていません。

android apk実機転送コマンド

3月 25th, 2014

$ adb install -r ~/git/unity/android_roll_ball.apk 3211 KB/s (9694818 bytes in 2.948s) pkg: /data/local/tmp/android_roll_ball.apk Success

Read full article | コメントは受け付けていません。

chrome app, chrome extensionsどっち?

2月 28th, 2014

chrome 拡張にそれなりの機能を入れていたら > Important notice about your Chrome Web Store items http://blog.chromium.org/2013/12/keeping-chrome-extensions-simple.html というメールでextensionの機能はシンプルにすべきと忠告がきました。 must have single purpose ということで1つの目的、機能にすべきということのようで。 そこまで複雑な物ではないのですが、ダメなようですのでappに変更しようと思います。 ベースは同じなのですがとりあえず。名前も http://developer.chrome.com/extensions/apps をみながらさっそく変更してみる。 browser action , page actionは使えない? https://developers.google.com/chrome/web-store/docs/choosing?csw=1 packaged , hosted , extensionのどれにする? packaged appは2GBまでと。chrome.*を使いたい場合と 書きながらやろうと思ったけど、変更点があまりにも多いので、ロジック以外新規で作り直します・・・

Read full article | コメントは受け付けていません。

Z会の調査: Google+が凄い!高校生は67%がLINEで23%がTwitter

9月 13th, 2013

Z会の調査 : 高校生は67%がLINEで23%がTwitter http://japan.cnet.com/marketers/news/35037195/ 「Facebook」(13.9%)、「Google+」(9.0%)、「mixi」(3.9%)、「その他SNS」(6.1%) 何が面白かったかというと Google+が9%もいるということです! akb効果?android効果? lineやtwitterが人気なのは知っていましたが google+9%は凄いですよね。 これは、新しい流れかなと思います。

Read full article | コメントは受け付けていません。

chromebook 東芝も参戦 2013/09/12

9月 12th, 2013

iPhone5S発表の裏側でひっそりと Wednesday, September 11, 2013 A fresh mix of Intel-based Chromebooks — something for everyone http://chrome.blogspot.jp/2013/09/a-fresh-mix-of-intel-based-chromebooks.html Over the coming months, you’ll see Chromebooks from multiple device manufacturers. These include newly designed Chromebooks from Acer and HP, as well as new entrants ASUS and Toshiba. というかんじで。Toshibaの文字が。 まだ買い!という感じではありませんが、2年後くらいには、良い感じになる可能性はありますね

Read full article | コメントは受け付けていません。

titanium mobile : delete remote image cache

4月 10th, 2013

http://developer.appcelerator.com/question/144356/urgent-how-to-clearreset-titanium-remote-image-cache-android この辺。 http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Filesystem applicationCacheDirectory : StringREADONLY Path to the application’s internal cache directory. iosのほうはみんな違う書き方をしているけど昔は無かったのかな? Ti.Filesystem.applicationCacheDirectory ios : Applications/00000000-0000-0000-0000-AAAAAAAAAA/Library/Caches/ これなのでiosもあっています。 Libraryの下は Cookies Preferences Caches Private Documents があって、Private Documents/databasename.sql という名前でsqliteが保存されていました。 画像は、普通に ハッシュ値.jpgの拡張子で保存されています。.をみて消している方は、ディレクトリを消しています。 特に問題ないと思いのですが、中に Cache.dbとかあります。手で全消ししても問題ないようです。 (十分テストが必要ですが) androidはexternalのときの処理が必要。 androidの処理はbanzai mobileさんのやり方を利用させていただきます。 http://developer.appcelerator.com/question/144356/urgent-how-to-clearreset-titanium-remote-image-cache-android#answer-251819 ポイントは、/_tmp/remote-cache/ですね。 全消しはなんとなくあれなので、ファイルを消す処理(getFile以外)は、iosと共通で。 iosだけだとこんな感じ dir = Ti.Filesystem.getFile(Ti.Filesystem.applicationCacheDirectory); if( dir.exists() ){  var files = dir.getDirectoryListing();  for( var i in files […]

Read full article | コメントは受け付けていません。