Archive for 11月, 2011

 

思考を分離する。 | サービスを考えるとき

11月 29th, 2011

集中力が無いのか?テーマを間違えて何かを考えてしまうことがよくある。 いろいろ考えていると思考が流れてしまうので、整理していかないと行けないなぁとよく思うのでメモします。 ・サービスを考えるときにシステムを考える。 ・ユーザー利便性を考えるときに収益ポイントを考える。 ・ターゲットを絞っているときに、他の層をみる。 などなど、 繋ぐポイントは大事ですが、それを考えるのはまた別の段階だといつも思っているのですが、 思考が流れてしまうことが、とても多い。。。 今、何を考えているかを明確にして、どれだけそこに集中できるかが大事だなと すべてを同時に考えてまとめて最終結論を出せる人もいるかもしれませんが、 ほとんどの場合は、トレードオフしなければいけない問題が出てくるので、その問題を解決するフェーズは、 それぞれのポイントをあげたあとにまとめるのが良いと思います。 そうしないとすべて小さい思考に留まってしまうと思います。

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

webdav with cadaver | mixi モバイルアプリのコンテンツ配信サーバーを利用してみる。

11月 24th, 2011

とりあえず。マウントしたりしないでwebdavにコマンドで。 yum install cadaver mixiからもらったメールにあるURLにアクセス。 cavader https://webdav.mixi-platform.com/xxxxxxx/ Authentication required for Mixi CDN Authorization on server `webdav.mixi-platform.com': Username: Password: dav:/xxxxxx/faces/> mput *jpg [Matching... 6 matches.] Uploading f_006.jpg to `/xxxxxx/faces/f%5f006.jpg': Progress: [=============================>] 100.0% of 196 bytes succeeded. Uploading f_002.jpg to `/xxxxxx/faces/f%5f002.jpg': Progress: [=============================>] 100.0% of 196 bytes succeeded. Uploading f_005.jpg to `/xxxxxx/faces/f%5f005.jpg': Progress: [=============================>] 100.0% of 196 […]

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

127 hours | don’t give up, Do not give up . Danny Boyle

11月 23rd, 2011

don’t give up, Do not give up . シンプルです。実話です。 予想通りでも面白い。 *下の動画は映画を見た後に。Aron Ralstonドキュメンタリー。 Aron Ralston Desperate Days in Blue John Canyon http://www.youtube.com/watch?v=SyPBTblkzBI&feature=related

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

opensocial Standard Query Parameters

11月 23rd, 2011

http://opensocial-resources.googlecode.com/svn/spec/0.9/REST-API.xml#standardQueryParameters count, startIndex とか

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

PHP Fatal error: Class ‘Memcache’ not found | memcached php

11月 21st, 2011

PHP Fatal error: Class ‘Memcache’ not found memcached , memcacheがあるので、memcache入れ忘れているときこうなります。 pecl memcachedしか入っていないとき $ php -i | grep -i memcache /etc/php.d/memcached.ini, memcached memcached support => enabled libmemcached version => 1.0.2 Registered save handlers => files user memcached tokyo_tyrant pecl memcache を入れる! $pecl install memcache /etc/php.d/memcache.ini に extension=memcache.so として保存 $ php -i | grep -i memcache /etc/php.d/memcache.ini, […]

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

convert utf-8 to sjis filter for mobile | zend filter

11月 21st, 2011

mixiモバイルがsjisなので、フィルターを入れる。 SJISに変換するfilterを作る。 http://framework.zend.com/manual/ja/zend.filter.writing_filters.html class Lib_Filter_Encoding_Utf2sjis implements Zend_Filter_Interface { public function filter($value) { return mb_convert_encoding( $value, ‘SJIS’, ‘UTF-8′ ); } } viewにsetFilter $view->setFilterPath(‘/mylib/grow.dev/Lib/Filter/Encoding’,’Lib_Filter_Encoding’)->setFilter( ‘Utf2sjis’ ); (zend通すときはnamespace使わない。

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

スワイプで戻る。swipe gesture android | titanium

11月 17th, 2011

2013/03 1年ほど前にandroid swipe実装されていました。 新記事修正版を更新。http://blog.bbtune.com/archives/2515/titanium-android-swipe スワイプで戻る。を設定してみた。 android タッチの始点と終点で・・・ resultListWin.addEventListener(‘touchstart’, function (e) { resultListWin.x_start = e.x; resultListWin.y_start = e.y; }); resultListWin.addEventListener(‘touchend’, function (e) { if( resultListWin.x_start !== ‘undefined’){ if(e.x > resultListWin.x_start) { // right backView(); // **** like swiping } else { // left } } }); http://code.google.com/p/titanium-mobile-doc-ja/wiki/Views 2013/03 1年ほど前にandroid swipe実装されていました。 新記事修正版を更新。http://blog.bbtune.com/archives/2515/titanium-android-swipe

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

画面の向きを固定する orientationModes | titanium android iphone

11月 15th, 2011

orientationModesを固定してみる。 var searchWin = Titanium.UI.createWindow({ url:’search.js’, title:’Search’, backgroundColor:’#fff’, tabBarHidden:true, orientationModes : [Titanium.UI.PORTRAIT] }); Titanium.UI.orientation = Titanium.UI.PORTRAIT; http://code.google.com/p/titanium-mobile-doc-ja/wiki/guides_device_accelerometer 状態の種類は次のとおり ・Titanium.UI.PORTRAIT ・Titanium.UI.UPSIDE_PORTRAIT ・Titanium.UI.LANDSCAPE_LEFT ・Titanium.UI.LANDSCAPE_RIGHT ・Titanium.UI.FACE_UP ・Titanium.UI.FACE_DOWN ・Titanium.UI.UNKNOWN

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

mod_rewriteでディレクトリごとに読むファイルを分ける。

11月 15th, 2011

apiのとき、api以下のindex.phpへ渡すとき。 RewriteCondを2回書かないとうまく処理されない。 RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^api/.+$ api/index.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L]

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

gimp for mac

11月 11th, 2011

seashoreが駄目そうなのでgimpを使おうと sudo port install gimp macportでインストールできました。 あぁ最初からgimpで良かった。

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