{:count=>24, # GC全体回数(major + minor)
:heap_used=>261,
:heap_length=>261, # ヒープに現在あるページ数
:heap_increment=>27,
:heap_live_slot=>94990, # 生きているオブジェクト(スロット)の数 total_allocated_object - total_freed_object
:heap_free_slot=>11400, # すべてのページを通じて空いているスロットの数 (どのページがどのぐらい空いているとかはわからない)
:heap_final_slot=>0,
| # Geometory型の設定 | |
| from sqlalchemy import func | |
| from sqlalchemy.types import UserDefinedType | |
| class Geometory(UserDefinedType): | |
| def get_col_spec(self): | |
| # カラムの型 | |
| return "GEOMETRY" | |
| def bind_expression(self, bindvalue): |
- ダッシュボード
- 何も考えずに各モデルをカウントするのでレコード件数増えるとえらいことになる。
2015/4/24 追記 - Ubuntu 15.04 (Vivid Vervet) では特に工夫しなくともすんなり動作するようになった模様です。ということで、インストール時には 15.04 を選ぶようにしましょう。
下記は 14.04 向けの古い情報となります。
Dell の XPS 13 (2015) に Ubuntu を入れたら幸せになれるのではないか。そんな気がしたので入れてみたのですが、案外に気をつけるべきポイントが多いので、手順を書き記しておきます。
| //basic zopim widget code, from their site | |
| window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s= | |
| d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set. | |
| _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8'); | |
| $.src='//v2.zopim.com/?26Smu9lv0NXQEOOg8IAZrMPh9yQstAcV';z.t=+new Date;$. | |
| type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script'); | |
| //make sure zopim does not show till we know we have department agents | |
| var intial_zopim_hiding_done = false; |
| #!/bin/sh | |
| # https://gist.github.com/k2wanko/2217a7615b776a29d544 | |
| branch=$(git branch | grep "*" | awk '{print $2}') | |
| # if match , it return number only. if no match, it return branch name. | |
| parse() { | |
| target=$(cat -) | |
| res=$(echo $target | sed -E -e "s/.*((#|issue[s]?[\/-_]?|_|-)([0-9]*)).*/\3/g") | |
| if [ -n "$res" ]; then |
These rules are adopted from the AngularJS commit conventions.
#How I built an audio book reader for my nearly blind grandfather
Last year, when visiting my family back home in Holland, I also stopped by my grand-parents. My grand-father, now 93 years old, had always been a very active man. However, during the presceding couple of months, he'd gone almost completely blind and now spent his days sitting in a chair. Trying to think of something for him to do, I suggested he try out audio books. After finally convincing him -- he said audio books were for sad old people -- that listening to a well performed recording is actually a wonderful experience, I realized the problem of this idea.
####The problem with audio devices and the newly blind. After my first impulse to jump up and go buy him an
| source 'https://rubygems.org' | |
| ruby '2.1.5' | |
| gem 'i18n' | |
| gem 'activesupport' | |
| gem 'octokit' |
