Archive for: 󈥫月 2012’

会社法上の財務諸表の計算書類

2012年11月29日 Posted by PURGE

毎回、第1問目に出題されている問題のようだ。
会社法上の計算書類に該当しないものを選ぶ問題。
下記4つが会社法上の計算書類である。

  1. 貸借対照表
  2. 損益計算書
  3. 個別注記表
  4. 株主資本等変動計算書

下記は該当するようで、そうでない。
財務諸表ではあるのだが、会社法上では該当しない。

  • 有価証券報告書
  • キャッシュフロー計算書
  • 製造原価報告書

選択肢はだいたい上記の組み合わせ。

個別注記表は引っかかりそうな名前である。
キャッシュフロー計算書も貸借対照表や損益計算書と並ぶ書類のようだが、これは上場企業が作成を義務付けられているのであるが、会社法ではなく、金融商品取引法上の財務諸表である。

実際の上記の諸表は実物を見て置くのも良い。但し、まだ内容はわからないよう。

銀行業務検定 財務3級のお勉強計画

2012年11月29日 Posted by PURGE

とりあえず、財務3級の問題集を購入してみた。試験まで3ヶ月。申し込みまで1ヶ月。

中身は、目が回るような財務用語。当たり前であるが。
若かりし頃、経理部でお仕事していた私であるが、所詮簿記3級以下レベル。しかも簿記の資格なし。でも、身構える事なかれ。1ヶ月で過去問題集を制覇しようと試みる。

書籍には過去5回分の問題。1回の試験で50問。
大分類は、財務諸表と財務分析。
いわゆる貸借対照表や損益計算書のような財務諸表の科目を覚えて、それぞれの科目を足し引き掛け割りして、なんとか率を出すみたいな感じ。

5日間(実質1週間)で1回分を終わらせれば、計算上1ヶ月ちょいで制覇するはず。と目論む。

まずは、問題が解けるはずもなく、いきなり答えを見て答え合わせ。
とても難しい。(単位:百万円)という数字群に目を回す。とにかく数字は気にするな。
所詮は、用語の足し算と引き算。用語を一つ一つ覚え理解していくことにする。

すると、なんとなくわかった気がしてくる。ナイス。

それにしても、お堅い問題集である。泣ける。

銀行業務検定事始め

2012年11月28日 Posted by PURGE

理由あって銀行業務検定を受験するハメに・・・。

銀行業務検定試験とは、銀行員さんが受験を避けられない資格試験であるようだ。
科目としては、私が知っている限り以下のものがある。

  • 税務
  • 財務
  • 外国為替
  • 融資管理
  • 年金アドバイザー
  • 経営支援アドバイザー
  • 投資信託
  • 法務
  • 信託実務
  • デリバティブ
  • 窓口セールス
  • 金融商品取引
  • 金融コンプライアンス
  • 金融経済
  • 法人融資渉外
  • 個人融資渉外
  • 証券
  • フィナンシャル・アドバイザー
  • 保険販売
  • 営業店管理
  • その他

試験は科目によって、3月/6月/10月 に行われ、年1回試験のある科目や年2回の科目がある。定期的なのかは不明である。

ふ〜む。参考書や問題集は、出版社がお決まりの書籍しかないようで、見た目もお堅く難しそうな書籍しか手に入らないようだ。
まあ、近いところから受験しようとは思うので、徒然なるままに覚え書きを記述しようと思う。

リモートホストへのSCPコマンド

2012年11月23日 Posted by PURGE

Mac において、WinSCPのようなツールが見当たらないので、コマンドラインにてリモートホストへファイル転送する。

scp ファイル名 ユーザ名@リモートホスト名:転送先ディレクトリ名
password : xxxxxx 

サーバからファイルを取得することも可能。

scp ユーザ名@リモートホスト名:転送元ディレクトリ名/ファイル名 .
password : xxxxxx 

gem install mysql2 でエラー

2012年11月9日 Posted by PURGE

gem install mysql2 で下記のエラー。

gem install mysql2 -v '0.3.11'
Building native extensions.  This could take a while...
ERROR:  Error installing mysql2:
        ERROR: Failed to build gem native extension.

        /usr/local/ruby193/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing.  please check your installation of mysql and try again.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/ruby193/bin/ruby
        --with-mysql-config
        --without-mysql-config


Gem files will remain installed in /usr/local/ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11 for inspection.
Results logged to /usr/local/ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11/ext/mysql2/gem_make.out

どうやら、mysql.h is missing とのこと。
でも、yumでインストールしたmysqlには、どうしても mysql.h が見つからない。

どうやら、下記のライブラリも必要なようであった。
mysql55-devel

 yum --enablerepo=ius,epel install mysql55-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.oss.eznetsols.org
 * epel: ftp.iij.ad.jp
 * extras: ftp.oss.eznetsols.org
 * ius: archive.linux.duke.edu
 * updates: ftp.oss.eznetsols.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql55-devel.x86_64 0:5.5.28-2.ius.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================
 Package                    Arch                Version                       Repository        Size
=====================================================================================================
Installing:
 mysql55-devel              x86_64              5.5.28-2.ius.el5              ius              190 k

Transaction Summary
=====================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 190 k
Is this ok [y/N]: y
Downloading Packages:
mysql55-devel-5.5.28-2.ius.el5.x86_64.rpm                                     | 190 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : mysql55-devel                                                                 1/1

Installed:
  mysql55-devel.x86_64 0:5.5.28-2.ius.el5

Complete!

再び、gem install mysql2。

 gem install mysql2 -v '0.3.11'
Building native extensions.  This could take a while...
Successfully installed mysql2-0.3.11
1 gem installed
Installing ri documentation for mysql2-0.3.11...
Installing RDoc documentation for mysql2-0.3.11...

上手くいったようです。

CentOS5.8にRuby1.9.3をインストール

2012年11月9日 Posted by PURGE

ruby1.9.3のインストールには、下記ライブラリが必要らしいので、yumでインストール。
無くてもインストールできるのだが、gem等のコマンドを使用する場合に必須。

libyaml-devel
zlib-devel
httpd-devel
openssl-devel
curl-devel

yum install libyaml-devel
yum install zlib-devel
yum install httpd-devel
yum install openssl-devel
yum install curl-devel

Ruby1.9.3の最新版をダウンロード。

wget http://core.ring.gr.jp/archives/lang/ruby/ruby-1.9.3-p286.tar.gz

インストールディレクトリを指定したいので、–prefixオプションでインストール先を指定する。しないとデフォルトは、確か/usr/bin/だったはず…。

tar xvzf ruby-1.9.3-p286.tar.gz
cd ruby-1.9.3-p286
./configure --prefix /usr/local/ruby193
make
make install

インストール完了したら、動作を確認してみる。

ruby -v
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]

成功。

CentOS5.8にMySQL5.5をインストールする

2012年11月9日 Posted by PURGE

久しぶりにサーバ構築することとなり、CentOS5.8にMySQL5.5をインストールしようとする。

以前の記事から、既に1年以上が経って、もはやその通りに動作していないことに気付く。

再度覚え書きとする。

■yum レポジトリの追加

wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpm

rpm -Uvh epel-release-5-4.noarch.rpm
警告: epel-release-5-4.noarch.rpm: ヘッダ V4 DSA signature: NOKEY, key ID 9cd4953f
準備中...                ########################################### [100%]
   1:epel-release           ########################################### [100%]
rpm -Uvh ius-release-1.0-10.ius.el5.noarch.rpm
警告: ius-release-1.0-10.ius.el5.noarch.rpm: ヘッダ V4 DSA signature: NOKEY, key ID 9cd4953f
準備中...                ########################################### [100%]
   1:ius-release            ########################################### [100%]

■ius,epelからのインストール。

yum --enablerepo=ius,epel install mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.oss.eznetsols.org
 * epel: ftp.iij.ad.jp
 * extras: ftp.oss.eznetsols.org
 * ius: archive.linux.duke.edu
 * updates: ftp.oss.eznetsols.org
epel                                                                          | 3.7 kB     00:00
epel/primary_db                                                               | 3.8 MB     00:00
ius                                                                           | 2.2 kB     00:00
ius/primary_db                                                                | 166 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.0.95-1.el5_7.1 set to be updated
---> Package mysql.x86_64 0:5.0.95-1.el5_7.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================
 Package             Arch                 Version                        Repository             Size
=====================================================================================================
Installing:
 mysql               i386                 5.0.95-1.el5_7.1               updates               4.9 M
 mysql               x86_64               5.0.95-1.el5_7.1               updates               4.9 M

Transaction Summary
=====================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 9.8 M

残念ながら、5.0のままなので、No!!

Is this ok [y/N]: N
Exiting on user Command
Complete!

■再度バージョン指定して実行。

yum --enablerepo=ius,epel install mysql55
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.oss.eznetsols.org
 * epel: ftp.iij.ad.jp
 * extras: ftp.oss.eznetsols.org
 * ius: archive.linux.duke.edu
 * updates: ftp.oss.eznetsols.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql55.x86_64 0:5.5.28-2.ius.el5 set to be updated
--> Processing Dependency: mysql55-libs = 5.5.28-2.ius.el5 for package: mysql55
--> Processing Dependency: mysqlclient15 for package: mysql55
--> Running transaction check
---> Package mysql55-libs.x86_64 0:5.5.28-2.ius.el5 set to be updated
---> Package mysqlclient15.x86_64 0:5.0.92-3.ius.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================
 Package                    Arch                Version                       Repository        Size
=====================================================================================================
Installing:
 mysql55                    x86_64              5.5.28-2.ius.el5              ius               11 M
Installing for dependencies:
 mysql55-libs               x86_64              5.5.28-2.ius.el5              ius              1.1 M
 mysqlclient15              x86_64              5.0.92-3.ius.el5              ius              1.7 M

Transaction Summary
=====================================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)

Total download size: 14 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): mysql55-libs-5.5.28-2.ius.el5.x86_64.rpm                               | 1.1 MB     00:01
(2/3): mysqlclient15-5.0.92-3.ius.el5.x86_64.rpm                              | 1.7 MB     00:00
(3/3): mysql55-5.5.28-2.ius.el5.x86_64.rpm                                    |  11 MB     00:02
-----------------------------------------------------------------------------------------------------
Total                                                                2.4 MB/s |  14 MB     00:05
警告: rpmts_HdrFromFdno: ヘッダ V4 DSA signature: NOKEY, key ID 9cd4953f
ius/gpgkey                                                                    | 1.3 kB     00:00
Importing GPG key 0x9CD4953F "IUS Community Project <coredev@iuscommunity.org>" from /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : mysqlclient15                                                                 1/3
  Installing     : mysql55-libs                                                                  2/3
  Installing     : mysql55                                                                       3/3

Installed:
  mysql55.x86_64 0:5.5.28-2.ius.el5

Dependency Installed:
  mysql55-libs.x86_64 0:5.5.28-2.ius.el5           mysqlclient15.x86_64 0:5.0.92-3.ius.el5

Complete!

mysql-server55 が足りなかったようだ。

yum --enablerepo=ius,epel install mysql55-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.oss.eznetsols.org
 * epel: ftp.iij.ad.jp
 * extras: ftp.oss.eznetsols.org
 * ius: archive.linux.duke.edu
 * updates: ftp.oss.eznetsols.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql55-server.x86_64 0:5.5.28-2.ius.el5 set to be updated
--> Processing Dependency: perl-DBD-MySQL for package: mysql55-server
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:3.0007-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================
 Package                    Arch               Version                        Repository        Size
=====================================================================================================
Installing:
 mysql55-server             x86_64             5.5.28-2.ius.el5               ius               12 M
Installing for dependencies:
 perl-DBD-MySQL             x86_64             3.0007-2.el5                   base             148 k

Transaction Summary
=====================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm                                 | 148 kB     00:00
(2/2): mysql55-server-5.5.28-2.ius.el5.x86_64.rpm                             |  12 MB     00:03
-----------------------------------------------------------------------------------------------------
Total                                                                2.9 MB/s |  12 MB     00:04
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : perl-DBD-MySQL                                                                1/2
  Installing     : mysql55-server                                                                2/2

Installed:
  mysql55-server.x86_64 0:5.5.28-2.ius.el5

Dependency Installed:
  perl-DBD-MySQL.x86_64 0:3.0007-2.el5

Complete!

上手くいったようだ。結果として /usr/bin/以下にインストールされているようだ。

■MySQL Serverの起動

# /etc/rc.d/init.d/mysqld start
MySQL データベースを初期化中:  Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h 127.0.0.1 password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

                                                           [  OK  ]
mysqld を起動中:                                           [  OK  ]

■MySQL Serverの自動起動設定

chkconfig mysqld on
chkconfig --list mysqld
mysqld   0:off   1:off   2:on    3:on    4:on    5:on    6:off