comapss

As we love ourselves, and nourish all aspects of ourselves, a rare compassion is nourished, a tender compassion for everyone and everything. We are filled with compassion. We forgive ourselves deeply. And we realize that everyone who ever wronged us was a healer, a teacher, a lover of ours. The heart bursts with compassion. The floodgates of love spill over.
—  Susan S. Weed- “Healing Wise”
vimeo

Here is a personal take on what account planning means for us. The creative team gets lost in the woods because they don’t have a proper brief to follow - no sense of direction. They end up throwing a party while the account planner needs to go on his explorer journey to find the best idea on how to solve this problem. The compass eventually finds the right direction after a random set of events and some wise comments from Gareth Kay and Joshua Brandau. 

Be prepared for a lot of metaphors. Enjoy.

プロジェクトに合わせて設定を変える起動スクリプトをProcletでつくる

Webアプリケーションの開発にあたって手元で開発用サーバーを起てるのはよくあるケースですが、同時に他のミドルウェアやCSS/JSの拡張メタ言語のコンパイラを立ち上げておきたい時があります。以下のようなprocletファイルをつくって foreman やPerl製のProcletディストリビューションに同封の proclet コマンドを立ち上げればそれが実現出来ます。

web: carton exec plackup -R templates,lib --no-default-middleware -p 5001 psgi/bokete_front_web.psgi
compass: cd assets/pc && compass watch sass/style.scss

上記のファイルを用意して…

$ proclet start -f procfile_for_pc

とすればOKです。

PSGIなWebアプリと comapss コマンドを同時に動かしてますね。ただこれだと、1つのプロジェクトディレクトリにいくつかのアプリケーションが混在している時(うちの場合はよくあるんです)に、procletファイルが多数必要になって格好が悪い。そこで、 Proclet::Declare を使って軽いスクリプトを書いてみたら、対象のアプリを指定するだけで 1ファイルにまとまってよい感じです。

#! /usr/bin/env perl
use strict;
use warnings;
use Proclet::Declare;
use Getopt::Long qw/:config posix_default no_ignore_case pass_through/;
use Pod::Usage qw/pod2usage/;

color(1);

my $map = {
    pc => { psgi => 'bokete_front_web.psgi', assets => 'pc' },
    sp => { psgi => 'bokete_front_sp.psgi', assets => 'sp' },
    select => { psgi => 'bokete_front_select.psgi', assets => 'select' },
    au => { psgi => 'bokete_front_au.psgi', assets => 'au' },
};

my %args;
GetOptions(
    \%args,
    qw/
      port|p=i
      app|a=s
    /
);

my $port = $args{port} || 5000;
my $mode = $args{app} or pod2usage(2);
my $config = $map->{$mode};

service( 'web', "carton exec plackup -R templates,lib --no-default-middleware -p $port psgi/$config->{psgi}" );
service( 'compass', "cd assets/$config->{assets} && compass watch sass/style.scss");

run;

__END__

=head1 DESCRIPTION

develop

=head1 SYNOPSIS

    $ ./develop -a [pc|sp|select|au] --port 5001

=cut

PODにもあるようにスマートフォン版の(フロントエンドな)Webアプリを立ち上げて、かつソレ用のSASSファイルを compass コマンドでコンパイルしています。なんか適当に書いたコードですが、これで無駄なコードが減ってスッキリしましたね。ご参考までに。

Week 12: beginnings

During the first week of our semester together, we considered some terms and phrases. One of those phrases is “holding ambiguity.” I gave you the following definition: 

As I read Pema Chödrön, I am reminded of this very important phrase and its meaning. Chödrön writes, 

We begin to let opposites coexist, not trying to get rid of anything bu just training and opening our eyes, ears, nostrils, taste buds, hearts, and minds wider and wider, nurturing the habit of opening to whatever is occurring, including our shutting down. (25) 

Many of us operate in a conditioned state that requires or pushed us to fear or to turn away from those who may be different from us. This is why we label. This is the operating system of labeling. The perpetuation of the “status quo stories” — we will read more on this in Week 15.

Rosario Morales writes in “We’re All in the Same Boat,”

This society    this incredible way of living divides us by class           by color            It says             we are individual and alone and don’t you forget it               It says the only way out of our doom                       of our sex our class our race is some individual gift and character and hard work and then all we get                              all we ever get is to change class or color or sex                       to rise               to bleach                       to masculinize               an enormous game of musical chairs and that’s only at its fairy tale Horatio Alger best                     that’s only at its best

  From all directions we get all the beliefs to go with these divisions we believe all kinds of things about: what real men really are                 what women must want                        what black people feel                                    what white people do and deserve                    how rich people earn their comforts and cadillacs       how poor people get what’s coming to them (92).

Morales is speaking to the same concept, just from a different epistemology and in a different form.

I also want to make a note about interconnectedness. Chödrön speaks to this in multiple places in the text, an example of this is page 33. She writes, “What you do for yourself, you’re doing for others, and what you do for others, you’re doing for yourself” (33). 

Thich Nhat Hanh writes, 

Suppose while walking in the twilight, you see a snake, and you scream, but when you shine your flashlight on it, it turns out to be a rope. This is an error of perception. During out daily lives we have many misperceptions. If I don’t understand you, I may be angry at you all the time. We are not capable of understanding each other, and that is the main source of human suffering. (94)

We are all interconnected in this way.

DJP # 10 (Due Wednesday before class)

  • Choose one slogan from Chödrön’s Start Where You Are: A Guide to Compassionate Living.
  • In a paragraph or 2 explain how you interpret the meaning of that slogan. (Be sure to quote the slogan and point us to the page you find it on.)
  • How might the meaning of this mindful thought change the way one perceives others or themselves? 

Mine for this week is “Whatever you meet unexpectedly, join with meditation” (78).