»

ブクログ

website — enjoji.yasujiro @ 8:18 PM

マイミクとさ氏のmixi読書日記で紹介されてたブクログに自分も登録してみた。
http://booklog.jp/users/enjoji-yasujiro

(続きを読む…)

Take It To the NEXT LEVEL

Diary — enjoji.yasujiro @ 11:59 PM

自分のネクストレベルが具体的に何なのか全然分からないけど、でもってそれが今の会社にあるのかそれとも他の会社にあるのかもさっぱり検討つかないけどとりあえず9月のDTPのやつを見届けたら(それが失敗しても成功しても)自分も行くっす。

ていうかベンゲル監督、チョー渋い。

「Avg()はNULLを除外して平均を算出する」というのを利用する

SQL Server, finance — タグ: , — enjoji.yasujiro @ 11:59 PM

with test as( — @SQL Server2005
select hoge = 20 union all
select hoge = 10 union all
select hoge = 50 union all
select hoge = 0 union all
select hoge = 100
)
select ex1 = avg(hoge)
, ex2 = avg(case when hoge = 0 then null else hoge end)
from test

ex1:( 20 + 10 + 50 + 0 + 100 ) / 5
ex2:( 20 + 10 + 50 + 100 ) / 4

...移動平均を求める場合、例えば25日すべてに株価の値がつくとは限らないので、そういう場合は0をnullに置き換えた上でAVG関数を利用してやれば値が付かなかったレコードも上手に平均値が算出可能のようです。

BSのおさらい(for自分)

finance, music — enjoji.yasujiro @ 9:40 PM

ざっくりいうと会社の資産というのは、債権者に帰属する部分と株主に帰属する部分の2つから構成されるということであり、つまりBSの貸方の負債の部と純資産の部のことなのだけど、とどのつまり「企業価値=債権者価値+株主価値」という式がBS上においても当てはまっているちゅう話やね。

(続きを読む…)

皇居一周ぶらりチャリ

Bicycle — enjoji.yasujiro @ 6:32 PM

最近運動不足気味なのでいっぺん走ってみようと一周してみた訳だけど、皇居のお堀の周りって思ったよりか全然距離がないのだということを今日自転車で一周して思ふ。

(続きを読む…)

きんぴらゴボウと金平糖

Diary — enjoji.yasujiro @ 10:25 PM

今「美学vs実利」を読んでるのですけど、お菓子の「こんぺいとう」はポルトガル語の「コンフェイト (confeito) 」が語源(byウィキペディア)であって、足柄山の金太郎の息子の坂田金平から来ているわけではないらしい。でもって「きんぴらゴボウ」は坂田金平から「金時豆」は坂田金時から来ているというのは確かなようです。

(続きを読む…)

memo for MovingAverage

SQL Server, finance — enjoji.yasujiro @ 12:16 AM

with tbl as( /* @SQL Server */
select code
, nm = RANK() OVER (PARTITION BY code ORDER BY period DESC)
, period
, price
from (
select code= 1301 , period = 20080430,Price= 10 union all
select code= 1301 , period = 20080501,Price= 20 union all
select code= 1301 , period = 20080502,Price= 30 union all
select code= 1301 , period = 20080507,Price= 40 union all
select code= 1301 , period = 20080508,Price= 50 union all
select code= 1301 , period = 20080509,Price= 60 union all
select code= 1301 , period = 20080512,Price= 70 union all
select code= 1301 , period = 20080513,Price= 80 union all
select code= 1301 , period = 20080514,Price= 90 union all
select code= 7203 , period = 20080501,Price= 11 union all
select code= 7203 , period = 20080502,Price= 22 union all
select code= 7203 , period = 20080507,Price= 33 union all
select code= 7203 , period = 20080508,Price= 44 union all
select code= 7203 , period = 20080509,Price= 55 union all
select code= 7203 , period = 20080512,Price= 66 union all
select code= 7203 , period = 20080513,Price= 77 union all
select code= 7203 , period = 20080514,Price= 88 union all
select code= 7203 , period = 20080515,Price= 99
) x
)select a.code
, a.nm
, a.period
, a.price
, MovingAverage=avg(b.price)
/*
, a.period
, a.price
, b.nm
, b.period
, b.price
*/
from tbl a
cross join tbl b
where a.code= b.code
and a.nm+5 > b.nm
and a.nm <= b.nm
group by a.code
, a.nm
, a.period
, a.price
having count(*)=5
order by a.code
, a.nm desc

ローソク足、キター(-人-)/

finance — enjoji.yasujiro @ 10:11 PM

円グラフや棒グラフをFlashインターフェースで実装するのにおなじみの「AmCharts」シリーズに株価チャートがついに登場です!

出来高もついてるし、これは是非とも仕事の合間に触らねばなるまいて。

千葉!滋賀!佐賀!

Diary — enjoji.yasujiro @ 11:49 PM

(SymmetrySのCDを買ったつながりで)例のギコ猫のFlashアニメって、ラーメンズの日本語学校イタリア編がネタ元だったことを今頃知りました。ていうかラーメンズめっちゃおもしろいね(笑)

(続きを読む…)

No Message Rap (Live)

music — enjoji.yasujiro @ 11:59 PM

今更ながら、SymmetrySのアルバムを購入したのだけど、確かにヒップホップorラップって「Ah!」とか「Yo!」とか「Yeah!」のイメージだったりするよね(笑)

(続きを読む…)

次ページへ »
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2008 鎌倉橋日記 | powered by WordPress with Barecity