<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4765141250629224601</id><updated>2024-10-18T01:47:29.833+09:00</updated><category term="Ruby on Rails"/><category term="Mroonga"/><category term="Linux"/><category term="映画"/><category term="Javascript"/><category term="Sinatra"/><category term="Bootstrap"/><category term="Mecab"/><category term="MySQL"/><category term="Rails"/><category term="Rails5"/><category term="Rspec"/><category term="crontab"/><category term="ruby"/><category term="お出かけ"/><category term="マルチスレッド"/><category term="Active Admin"/><category term="ActiveAdmin"/><category term="ActiveRecord"/><category term="Capistrano"/><category term="Chart.js"/><category term="Nginx"/><category term="Rails pdf"/><category term="Sinatra bootstrap jquery"/><category term="Vuejs"/><category term="Yarn"/><category term="bootstrap-sass"/><category term="docker"/><category term="docker-compose"/><category term="はまりポイント"/><category term="オートコンプリート"/><category term="スマートフォン"/><category term="タグクラウド"/><category term="ブログ"/><title type='text'>Ordinary Life Blog</title><subtitle type='html'>IT業界で働く80年代生まれのおっさんのブログ。&#xa;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>69</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-1932433928610195201</id><published>2020-12-31T09:37:00.005+09:00</published><updated>2021-01-19T18:35:25.204+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="docker"/><category scheme="http://www.blogger.com/atom/ns#" term="docker-compose"/><category scheme="http://www.blogger.com/atom/ns#" term="Mroonga"/><title type='text'>docker-composeでmroongaを使う</title><summary type="text">まとめ

全文検索が必要だったのでElasticSearchを検討したがメモリ1Gサーバでは起動しないようなのでMroongaにした。
docker-hubにあるイメージは mysql8022_mroonga1010が最新だったがリスタートを繰り返してしまう。。（メモリ不足？）
mysql5732_mroonga1010 は安定して起動できた。

docker-compose.yml
version: &#39;3&#39;
services:
  mysql:
    image: groonga/mroonga:mysql5732_mroonga1010
    container_name: hoge-db
    volumes:
      - hoge-db:/var/lib/mysql
    ports:
      - &quot;127.0.0.1:3306:3306&quot;
    restart</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/1932433928610195201/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2020/12/docker-composemroonga_31.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/1932433928610195201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/1932433928610195201'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2020/12/docker-composemroonga_31.html' title='docker-composeでmroongaを使う'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-7102720040716577956</id><published>2020-12-12T18:00:00.004+09:00</published><updated>2020-12-12T18:00:40.945+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ruby on Rails"/><title type='text'>RubyOnRails: 入れ子のパラメータをストロングパラメータする。</title><summary type="text">purchase（購入）に複数のitem(=items　商品)がネストしているパラメータを受け取って、
permitして返すメソッドを作る場合、
purchaseは普通にpermitすればいいが、itemsをどうpermitするか。

(メソッドの呼び出し元では permited_parameter.items.first.product_name のように、
itemの属性にもメソッドチェーンしてアクセスしたい。） 

以下な感じでする。



def permited_parameters
  params.require(:purchase).map do |purchase|
    visit.permit(
      :customer_name,
      :customer_address
    ).merge(
      items: visit[:items]</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/7102720040716577956/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2020/12/rubyonrails.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/7102720040716577956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/7102720040716577956'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2020/12/rubyonrails.html' title='RubyOnRails: 入れ子のパラメータをストロングパラメータする。'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-3223860607128667303</id><published>2020-12-08T22:30:00.002+09:00</published><updated>2020-12-08T22:30:10.239+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>JavascriptからHTML5のvalidationを実行するには</title><summary type="text">reportValidity() を実行する。


let form = getElementById(&quot;form&quot;);
form.reprotValidity();
</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/3223860607128667303/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2020/12/javascripthtml5validation.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/3223860607128667303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/3223860607128667303'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2020/12/javascripthtml5validation.html' title='JavascriptからHTML5のvalidationを実行するには'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-5519187373592661558</id><published>2020-10-18T09:26:00.004+09:00</published><updated>2020-10-18T09:26:45.169+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>javascriptでもrubyのようにmapやselectをメソッドチェーンして使う方法</title><summary type="text">filter(select) + map

const ids = this.visits.filter(visit =&gt; visit.bulk_action_flag).map(visit =&gt; visit.id)


map + reduce
reduceで配列の総和を計算。

return visit.items.map(item =&gt; item.purchase_unit * item.count).reduce(function(prev, current) {
  return prev + current;
}, 0);
</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/5519187373592661558/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2020/10/javascriptrubymapselect.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5519187373592661558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5519187373592661558'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2020/10/javascriptrubymapselect.html' title='javascriptでもrubyのようにmapやselectをメソッドチェーンして使う方法'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-6336595017535961836</id><published>2020-10-04T22:05:00.002+09:00</published><updated>2020-10-04T22:05:22.257+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Chart.js"/><title type='text'>Chart.jsで特定のデータセットだけ凡例を表示する。</title><summary type="text">&amp;nbsp;　グラフ中にデータセットが多いと凡例も多くなり返って見辛い。。特定のデータだけ凡例を出すということができないかと思っていたらできた！　凡例の設定をする options.legend はデータごとに記載はできない。が以下のようにすると表示対象を絞ることができる。&amp;nbsp; &amp;nbsp; &amp;nbsp; legend: {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display: true,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; position: &#39;left&#39;,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; labels: {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; filter: function(items, chartData) {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/6336595017535961836/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2020/10/chartjs.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/6336595017535961836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/6336595017535961836'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2020/10/chartjs.html' title='Chart.jsで特定のデータセットだけ凡例を表示する。'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-8659870186277154244</id><published>2020-09-19T13:13:00.005+09:00</published><updated>2020-10-04T21:59:15.834+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ruby on Rails"/><category scheme="http://www.blogger.com/atom/ns#" term="Vuejs"/><title type='text'>VueのページからVueのページに遷移するときにコンポーネントが更新されない。</title><summary type="text">　Rails+Vueで開発中に、
Vueの入力フォームを日付を変えて遷移するリンクを押しても、
Vueのデータが更新されない。。 turbolinksの影響のようだ。。

turbolinksとVueの共存方法はググると出ていたが、
https://qiita.com/midnightSuyama/items/efc5441a577f3d3abe74
うまくいかない。。
こんなにコード書かなきゃいけないのか。。　今回はVueへの遷移時だけturbolinksをoffにすることで対応。&amp;lt;a class=&quot;navi-item nav-link &quot; data-turbolinks=&quot;false&quot; href=&quot;/hoge&quot;&amp;gt;Vueのページへ&amp;lt;/a&amp;gt;Vueが使われているページが多い場合はだめだな。</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/8659870186277154244/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2020/09/vuevue.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/8659870186277154244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/8659870186277154244'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2020/09/vuevue.html' title='VueのページからVueのページに遷移するときにコンポーネントが更新されない。'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-2441874842175801987</id><published>2020-08-28T09:22:00.002+09:00</published><updated>2020-08-28T09:22:38.765+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ruby on Rails"/><category scheme="http://www.blogger.com/atom/ns#" term="はまりポイント"/><title type='text'>ActiveRecordでjoinして同じカラム名の値があると後勝ちになる。</title><summary type="text">やっちゃいがちなはまりポイント。


irb(main):033:0&gt; Visit.all.joins(:items).select(&#39;visits.id, items.id&#39;).first.attributes
  Visit Load (2.0ms)  SELECT  visits.id, items.id FROM `visits` INNER JOIN `items` ON `items`.`visit_id` = `visits`.`id` ORDER BY `visits`.`id` ASC LIMIT 1
=&gt; {&quot;id&quot;=&gt;2}
irb(main):032:0&gt; Visit.all.joins(:items).select(&#39;visits.id as visit_id, items.id as item_id&#39;).first.attributes
  Visit Load</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/2441874842175801987/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2020/08/activerecordjoin.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/2441874842175801987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/2441874842175801987'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2020/08/activerecordjoin.html' title='ActiveRecordでjoinして同じカラム名の値があると後勝ちになる。'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-1113695357927315384</id><published>2020-08-16T22:20:00.001+09:00</published><updated>2020-08-16T22:20:49.914+09:00</updated><title type='text'>Vue: createdで実行したメソッドでdata要素に代入するには。</title><summary type="text">createdで実行してdataの要素に値を代入するには同期処理にしないとうまくいかなかった。



  export default {
    props: {
      prospectId: Number
    },
    data: function(){
      return {
        targetDate: null,
        categoryOptions: [],
        visitCategoryId: null
      }
    },
    created: function(){
      this.set_category_options();
    },
    methods : {
      set_category_options: async function() {
        const res</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/1113695357927315384/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2020/08/vue-createddata.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/1113695357927315384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/1113695357927315384'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2020/08/vue-createddata.html' title='Vue: createdで実行したメソッドでdata要素に代入するには。'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-5767095405805328798</id><published>2019-03-14T00:22:00.001+09:00</published><updated>2019-03-14T00:22:17.269+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Swap領域作成</title><summary type="text">topを見ると。
top - 22:39:48 up 244 days, 23:54,  1 user,  load average: 0.00, 0.01, 0.05
Tasks:  82 total,   2 running,  80 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  1016780 total,   249264 free,   546088 used,   221428 buff/cache
KiB Swap:        0 total,        0 free,        0 used.   257548 avail Mem  # ← swapが0にな</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/5767095405805328798/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/03/swap.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5767095405805328798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5767095405805328798'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/03/swap.html' title='Swap領域作成'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-6680645962918408501</id><published>2019-03-07T22:26:00.001+09:00</published><updated>2019-03-10T22:14:37.911+09:00</updated><title type='text'>comfortable_mexican_sofa　assets:precompileでエラー</title><summary type="text">`comfortable_mexican_sofa` いれたらassets:precompile が失敗する。。

rake aborted!
ExecJS::RuntimeError:
(execjs):1
/home/hoge/.rbenv/versions/2.5.1/bin/bundle:23:in `load&#39;
/home/hoge/.rbenv/versions/2.5.1/bin/bundle:23:in `&#39;
Tasks: TOP =&gt; assets:precompile
(See full trace by running task with --trace)

nodejsをアップデートしても
therubyracerを入れてみてもだめ

config/environments/production.rbで
config.assets.js_compressor = </summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/6680645962918408501/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/03/comfortablemexicansofaassetsprecompile.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/6680645962918408501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/6680645962918408501'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/03/comfortablemexicansofaassetsprecompile.html' title='comfortable_mexican_sofa　assets:precompileでエラー'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-2119873862244088432</id><published>2019-02-27T16:38:00.000+09:00</published><updated>2019-02-27T16:38:52.792+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sinatra"/><title type='text'>Sinatraでリダイレクト</title><summary type="text">Sinatraでフォームでpostした後にthanksページに飛ばすようなときのリダイレクトは
下記のように書く。

redirect to(&#39;/inquiry/thanks&#39;)

リダイレクトのステータスはデフォルトで303(See Other)なのでこのまま。</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/2119873862244088432/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/02/sinatra.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/2119873862244088432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/2119873862244088432'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/02/sinatra.html' title='Sinatraでリダイレクト'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-6595606993706194965</id><published>2019-02-17T21:32:00.000+09:00</published><updated>2019-02-21T21:35:37.336+09:00</updated><title type='text'>品川におでかけ</title><summary type="text">子供の誕生日のお祝いにお出かけ。品川水族館へ。

今日の一日
8:00 起床
8:30 朝食（ゴママフィン）
10:30 出発
11:00 品川AQUA PARK
13:00 イルカショー
14:00 ランチ（品川インターシティーの大戸屋）
16:00 帰宅 

ゴママフィンは子供に不評。甘さが足りなかった。
AQUA PARKはなかなか楽しかった。行ったことあるしどうかなと思ったが、
自分も楽しめた。

イルカショーもよかったがアシカも芸達者で驚いた。
これまでみたアシカで一番。
インターシティーの店は日曜は大体しまってる。

</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/6595606993706194965/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/02/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/6595606993706194965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/6595606993706194965'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/02/blog-post.html' title='品川におでかけ'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-2559829039734630011</id><published>2019-01-31T23:12:00.000+09:00</published><updated>2019-01-31T23:12:09.614+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>MySQL　外部サーバからのアクセス権限追加</title><summary type="text">

# 付与済みの権限の確認
mysql&gt; show grants for &#39;user1&#39;@&#39;192.168.4.10&#39;;
+--------------------------------------------------------------------------------------------------------------------+
| Grants for user1@192.168.4.10                                                                                   |
+-----------------------------------------------------------------------------------------------------</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/2559829039734630011/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/mysql.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/2559829039734630011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/2559829039734630011'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/mysql.html' title='MySQL　外部サーバからのアクセス権限追加'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-1042691959582696559</id><published>2019-01-27T20:36:00.001+09:00</published><updated>2019-01-27T20:36:55.335+09:00</updated><title type='text'>psをメモリ使用順でソートする。メモリを使っているプロセスを探す</title><summary type="text">メモリを食っているプロセスを探す方法。
psをメモリ使用順の降順でソートして先頭の20件を表示する。

[user1@server1 /tmp]$ ps aux --sort -rss | head -n 20
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
user1      27816  0.0  9.8 478200 100216 ?       Sl   Jan18   0:06 Passenger AppPreloader: /deploy/hoge-shop/current (forking...)
root     19319  0.0  1.3 666912 13332 ?        SNl  Jan01  33:40 Passenger core
root      </summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/1042691959582696559/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/ps.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/1042691959582696559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/1042691959582696559'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/ps.html' title='psをメモリ使用順でソートする。メモリを使っているプロセスを探す'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-5628043808139175089</id><published>2019-01-18T00:38:00.000+09:00</published><updated>2019-01-27T12:46:33.579+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Rails5"/><category scheme="http://www.blogger.com/atom/ns#" term="Yarn"/><title type='text'>Rails5 yarnでjsをインストールしてapplication.jsに追加</title><summary type="text">　最近jsのライブラリでインストール方法に
npm install hoge
と書いてあるものがある。npmはjsのパッケージ管理ツール。

yarnはnpm互換のツールで同じpackage.jsonを読み込んでより高速に動作する。

使いたいライブラリはpackage.jsonに以下のように記載。

layzr.jsを追加する場合
{
  &quot;name&quot;: &quot;my app&quot;,
  &quot;private&quot;: true,
  &quot;dependencies&quot;: {
    &quot;layzr.js&quot;: &quot;2.2.2&quot;
  }
}

それから
bundle exec rake yarn:install

するとnode_modules 以下に、ライブラリがインストールされるのでapplication.jsに書き入れる。

//= require jquery
//= require rails-ujs
//</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/5628043808139175089/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/rails5-yarnjsapplicationjs.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5628043808139175089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5628043808139175089'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/rails5-yarnjsapplicationjs.html' title='Rails5 yarnでjsをインストールしてapplication.jsに追加'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-5924684842663545364</id><published>2019-01-15T01:42:00.002+09:00</published><updated>2019-01-15T01:42:49.196+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="お出かけ"/><title type='text'>駅が遠い地域の文化。初ave。</title><summary type="text">お出かけ
　8:00 朝食
　13:00 昼食
　15:00 自転車でヤマダ電機へ電子レンジ購入
　16:00 aveへ
　18:00 帰宅

　午前中は家事と勉強して、午後は家族で自転車で外出。
　いつも電車移動だが自転車で駅の遠い地域に行くと街並みが駅周辺と違って面白い。

　団地の前の古い商店街にはチェーン店ではない歴史ありそうな小さな飲み屋がならんでいるし、
大型のスーパーマーケットや電気量販店が入っている建物は駅周辺のものに比べて人が少ない。
みんな車移動なので人吐けが良い模様。

　ヤマダ電機はrestocafeというcafeを併設していた。
子供が買い物に飽きてこまっているとドリンクの無料券をくれた。おおすごい。
結局買い物後お茶したが駅周辺だとcafeはいつも込んでいて子供もじっとしていないので
なかなか入らない。

　aveという新しいスーパーに。安いらしい。
　店の中</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/5924684842663545364/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/ave.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5924684842663545364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5924684842663545364'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/ave.html' title='駅が遠い地域の文化。初ave。'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-5297410711734794306</id><published>2019-01-13T11:46:00.000+09:00</published><updated>2019-01-13T11:46:00.452+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ブログ"/><title type='text'>livedoorブログでスマホ用のcssを修正する方法</title><summary type="text">　PC用のCSSはブログ設定＞デザイン / ブログパーツ設定＞PC＞カスタマイズ　から修正できるけどスマホ用は同様の場所にいっても修正するIFがない。。cssファイルを別で書いて「画像/ファイル」からアップロードし、投稿本文にlinkタグを入れて読み込むらしい。。このご時世にまじか。

　次回からlivedoorブログはやめたほうがいいかな。

　linkタグを書くとPCでも読み込まれるわけだからオリジナルのcssはアップロードするファイルで管理するか。
　投稿の度にlinkタグを書くのか。。ぬー。

　</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/5297410711734794306/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/livedoorcss.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5297410711734794306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5297410711734794306'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/livedoorcss.html' title='livedoorブログでスマホ用のcssを修正する方法'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-602559877907154369</id><published>2019-01-06T16:09:00.000+09:00</published><updated>2019-01-06T16:09:31.126+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Rails5"/><title type='text'>Rails5 redirect時にflashでメッセージを渡す方法</title><summary type="text">OKパターン
第二引数としてflashの内容を渡す。
第一引数のリダイレクト先をhashで指定する場合、かっこを省略すると１つのHashと解釈されてうまくいかないので、
かっこは省略しない。

redirect_to({ action: &#39;index&#39;}, flash: { success: &#39;申し込みました。&#39;})

FlahHashとして渡せている。
ActionDispatch::Flash::FlashHash:0x00007fde1df6f948 @discard=#, @flashes={&quot;success&quot;=&gt;&quot;申し込みました。&quot;}, @now=nil


NGパターン
redirect_to( { action: &#39;index&#39;, flash: { success: &#39;申し込みました。&#39;} } )
だとクエリーストリングと解釈されてしまう。
Parameters: {&quot;</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/602559877907154369/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/rails5-redirectflash.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/602559877907154369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/602559877907154369'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/rails5-redirectflash.html' title='Rails5 redirect時にflashでメッセージを渡す方法'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-4587705398349379099</id><published>2019-01-05T18:39:00.000+09:00</published><updated>2019-01-05T18:39:24.743+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="お出かけ"/><title type='text'>横浜にお出かけ</title><summary type="text">今日の一日
8:00 起床
9:30 朝食
11:30 外出（横浜みなとみらい方面）
12:00 マーキーズで買い物
13:00 ランチ(PARIYA)
14:30 マーキーズ
16:00 TUTAYA
17:00 そごう（妻が買い物している間に子供と広場でポケモンクイズして待つ）
18:00 帰宅

PARIYA～マーキーズ～TUTAYA方面は子連れでも一日過ごしやすく、食事も買い物もできて良し。
家から近いし道も広く車もいないので安心。都会だが空き地があって見通しもよい。
新たに２棟ビルが建設中だからそのうち空き地はなくなるかもだが。

朝食の蜂蜜レモンパンケーキは長男には好評、次男には不評。
やはり国産レモンはマフィンだな。



</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/4587705398349379099/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/4587705398349379099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/4587705398349379099'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/blog-post.html' title='横浜にお出かけ'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-5931870874973678688</id><published>2019-01-03T22:13:00.001+09:00</published><updated>2019-01-03T22:16:20.307+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Active Admin"/><title type='text'>ActiveAdmin 一覧ページにカラムを追加する</title><summary type="text">ActiveAdminで一覧ページ(indexページ）にカラムを追加するには
以下のようにしてcolumnメソッドを使う。

index do
    column :id
    column :name
    column :comment
    column :created_at
    column :price
    column :images do |item|
      render(partial: &#39;item_pictures&#39;, locals: {item: item})
    end
    actions
  end

この場合id～priceまではテーブルにあるカラムで、imagesはActiveStorageを使って
連携を持たせたカラム。

デフォルトの一覧ページにはテーブルにあるカラムは自動で足される。
そこに足したいカラムだけを追加すること</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/5931870874973678688/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/activeadmin.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5931870874973678688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/5931870874973678688'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2019/01/activeadmin.html' title='ActiveAdmin 一覧ページにカラムを追加する'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-4535267664604649874</id><published>2018-12-30T22:28:00.000+09:00</published><updated>2018-12-30T22:28:55.829+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActiveAdmin"/><title type='text'>ActiveAdminのformでパラメータ名を配列にする場合</title><summary type="text">パラメータを配列にする場合、name=&quot;hoge[]&quot; のように渡す必要がある。
active_adminのformで配列で指定するには第一引数にhoge[]と渡すとうまくいかない。
input_htmlオプションで明示的にname属性を指定する。

form do |f|
  f.semantic_errors # shows errors on :base
  f.inputs          # builds an input field for every attribute
  f.input &#39;pictures&#39;, as: :file,  input_html: { name: &quot;item[pictures][]&quot; }
  f.input &#39;pictures&#39;, as: :file,  input_html: { name: &quot;item[pictures][]&quot; }
  </summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/4535267664604649874/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2018/12/activeadminform.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/4535267664604649874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/4535267664604649874'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2018/12/activeadminform.html' title='ActiveAdminのformでパラメータ名を配列にする場合'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-585878333515705445</id><published>2018-12-30T01:03:00.000+09:00</published><updated>2018-12-30T01:03:01.819+09:00</updated><title type='text'>結局陳腐な案に戻ってきてないか？</title><summary type="text">今日は長男、次男と男３人でぐだぐだ家で過ごし、午後から嫁の実家にいって
夕食をいただいて帰宅。年内最後のお騒がせ。
お礼と借りていたものを返すのはできた。

コーヒーサイトのコンテンツは
- 日記
- マグカップ交換
- cafeマップ
- レシピ
- アイテム紹介（アフィリエイト）

んー。お試しのためのサイト。
コーヒーについてのサイトはこれまでも作っていてまったくアクセスなかった。
結局身の回りで手頃な題材に戻ってないか？
自分自身の知識は深くないところが問題なんだが。。</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/585878333515705445/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2018/12/blog-post_30.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/585878333515705445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/585878333515705445'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2018/12/blog-post_30.html' title='結局陳腐な案に戻ってきてないか？'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-1074574949665097229</id><published>2018-12-28T14:10:00.001+09:00</published><updated>2018-12-28T14:15:35.801+09:00</updated><title type='text'>レモンマフィン成功。サービスの考察。</title><summary type="text">レモンマフィンは大成功。
長男にも好評。以外に次男がすっぱいという。
バターと砂糖はレシピの半分だったがＯＫだった。
やはり皮をすりおろし手入れるのがミソか。
かっとした皮は型にいれてから刺さないと表面にこないな。

マグカップ交換サービスはだめだ。
やはり送料がネックになるしメルカリでいいし。
メルカリやアマゾンのことを考えると流通物はある程度の金額がするものじゃないと成り立たない。

Holidayやってみた。
プランの作成はまぁ簡単にできたが
検索がなんかしっくりこない。

とかか私がほしいのは。
- 近所に限って検索
- 午前、ランチ、午後　とかイベントタイムを明確にする
- つかった金額
- チェックポイント（その近辺で提案）

とかか。
</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/1074574949665097229/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2018/12/blog-post_28.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/1074574949665097229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/1074574949665097229'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2018/12/blog-post_28.html' title='レモンマフィン成功。サービスの考察。'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-6069147025944970878</id><published>2018-12-27T23:26:00.000+09:00</published><updated>2018-12-27T23:39:02.092+09:00</updated><title type='text'>中華料理屋</title><summary type="text">行きつけの中華料理屋が移転した。上野に移るらしい。ビルが取り壊しになるとかで。
ニラレバスポットを新たに探す必要がある。

- 私物連絡サービス
- 休日のしおり作成サービス
- カップ交換サービス

ニーズのあるサービスは何だろう。

ネタ探し連想ゲーム
朝食
ホットケーキ
ブレンダー
マフィン
サラダ
ドレッシング
オリーブオイル

明日したいこと
- 会社にいく
- 鞄を捨てる
- サービス作る
- 良く寝る
- いい朝食を作る

うまく動けてないときは
次の日の朝食の準備をするのがいい。
</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/6069147025944970878/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2018/12/blog-post_27.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/6069147025944970878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/6069147025944970878'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2018/12/blog-post_27.html' title='中華料理屋'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4765141250629224601.post-7161359395372276783</id><published>2018-12-16T23:51:00.001+09:00</published><updated>2018-12-16T23:52:02.888+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="スマートフォン"/><title type='text'>Sparkの通知復活</title><summary type="text">iPhoneアプリのメーラーアプリ【Spark】を使っていた。
Gmailだと特定のアドレスだけを通知することができないから。

しかしいつからかSparkが通知をしてくれなくなり困っていた。設定的にはあっているのだが。。

悩んだ挙句アプリをいったん削除して再インストール。
初回起動時の「Sparkが通知の許可を求めています」でYesを選んだらOKだった。

たぶんアプリのバージョンアップのときにNo選んでたんだろうな。
でも設定では通知Onになってたんだよなぁ。

まぁ復活してよかった。</summary><link rel='replies' type='application/atom+xml' href='http://ordinary-programming.blogspot.com/feeds/7161359395372276783/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://ordinary-programming.blogspot.com/2018/12/spark.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/7161359395372276783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4765141250629224601/posts/default/7161359395372276783'/><link rel='alternate' type='text/html' href='http://ordinary-programming.blogspot.com/2018/12/spark.html' title='Sparkの通知復活'/><author><name>ラーカイラム</name><uri>http://www.blogger.com/profile/06784975999969070433</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>