Sunday, December 26, 2010

Mac OSでのアプリケーション関連付けについて

Mac OSでのアプリケーション関連付けについて
忘れてしまう人も多いと思います。
以下の手順で行けます。

①対象のファイルを選択



②選択したファイル上で、『⌘キー+i』を押下



③『このアプリケーションで開く』により、関連付けたいアプリケーションを選択

以上となりますが、
下にある『すべてを変更』ボタンを押すと、同一拡張子のファイル全てに
関連付けが行われます。


Saturday, December 25, 2010

C言語のsize_t型

以下のソースはコンパイル時エラーとなる。

#include
#include

int main(void)
{
char str[100];

printf("input something in english. \n");

scanf("%s", str);

printf("the length of string you input is %d. \n", strlen(str));

return 0;
}

strlen関数が返す型は、size_t型となるからだ。
以下のように、%dを%zdへ変更するとコンパイルが可能となる。

#include
#include

int main(void)
{
char str[100];

printf("input something in english. \n");

scanf("%s", str);

printf("the length of string you input is %zd. \n", strlen(str));

return 0;
}


Thursday, December 23, 2010

ApacheとPHPの連携

ApacheとPHPを連携させるためには、インストール時、下記のコマンドが必要なので注意!

$ cd httpd-2.0.63 ※バージョンにより可変
$ ./configure --enable-module=so ※enable以降のパラメータを忘れないこと
$ make
$ sudo make install

覚えておこ。


Saturday, October 9, 2010

About the art market



The art market
Hands up for Hirst
How the bad boy of Brit-Art grew rich at the expense of his investors


Do you think an art market should exist or not exist?

#My opinion
 While some people think that an art scene should connect to economic world, I think that an art scene should keep independence from economic world. There are two reasons for this: danger of lack of brand-new art and difficulty in collecting artworks.
 First, brand-new art has not been produced by artists if they know a trend of an art market. They tend to produce a product which is sold in expensive price in a market. For example, Vincent van Gogh was never accepted in an art market when he was alive. After he died, finally his artworks was accepted and praised in an art scene so eagerly. If he was admitted in an art scene in his youth, he might not produce such a fantastic and amazing artworks that we had had never seen before. His unlucky position in an art scene must inspire his ability to produce brand-new art. On the contrary, an artist who knows an art market profoundly has only produced artworks which a market will be welcome.
 Second, an art market prevents eager collectors who wants to buy from purchasing artworks because a market helps to raise price of artworks. Sometimes a price will be too high for ordinarily collectors. Therefore, artworks will not be brought to people who want to buy them for their collections not for their profits. In this article, it is said that Hirst’s works is treated as an investment. This tendency in an art market is not good for real collectors of artworks.
 In conclusion, I think an art market is not necessary for us because an art market will lessen an opportunity for artists to produce a brand-new product and a price of artworks itself will tend to be too high for real collectors.

Thursday, October 7, 2010

How can I get a high score on TOEFL iBT?

How can I get a high score on TOEFL iBT?
Okay, I want to get back to basics.

There are four different ways.

The first is
to have a knowledge of test itself.
You should understand the structure of TOEFL and know what you are expected in each section.

The second is
to have skills necessarily to do well.
Primal skills such as reading, listening, speaking, writing are necessary.
Grammar, vocabulary, spelling and academic skills are also necessary.
Especially, academic skills are important such as notetaking, summarizing, skimming, scanning.

The third is
your attitude.
You should minimize your fear and anxiety to take an examination
and optimize your positive feeling such as "I can do well!".

The Last four is
the resources to study.
You should refer to good and current TOEFL IBT materials and books such as ETS or DELTA has produced.
To attend actual lessons for TOEFL IBT in your country or other country where English is an official language
is also effective for you.


Tuesday, October 5, 2010

Reading Method

[reading method]

1 step
Read quickly and underline the word you can not understand.

2 step
Use the dictionary for the underlined word and summarize each paragraph.

3 step
Read again and summarize everything.

This technique will be useful for those who study english. I have learned from engVid.com.


Sunday, October 3, 2010

about Ubuntu keyboard



sometimes when i use Ubuntu, keyboard dose not work well.
because i am japanese, therefore i have to use two types of keyboard,
japanese and english.it is hard to explain... see the picture above.
if your native language is english, you can use one type of keyboard only.
but like me, if your native language is not english, you have to keyboard in
your native language and english. i do not know much about it,
but i think there is no japanese only keyboard in this world.
anyway, when i use Ubuntu and change english keyboard from japanese,
capslock is always ON! little bit frustrating.

by the way, now i am interested in different kinds of keyboard
and research them. arabic keyboard is existing!!!
very interesting.