2016年3月13日日曜日

【もう一度、英語をやり直そう】英会話日記(3/9) ~本八幡getgo英会話

今日は、振り替えで新しい生徒さんと二人でJosh先生のレッスンをうけました。
電話での受け答えのフリートークが中心の授業でした。

 【授業内容】
(1) 発音の仕方
 ・do you = ju
What did you do yesterday?
でdid you をju(ジュ)という。
What Sushi do you like ?
ワットスシジュユライクと発音する

・to come = t'come
ツカウムと発音

・for her = f'her
ファーと発音
"her"の頭の"h"の音は、通常「落として」発音する。
http://oshiete.goo.ne.jp/qa/5796752.html

こちらのサイトをみると、herは発音しなくてもよさそうです。
(Josh先生に確認したところ、文中で使われている場合は、hを発音しなくってもよいが、文頭とかの場合はhは発音したほうが良いとのことです(h発音しないのは、知能が劣っている人が使うらしいです))
http://www.uda30.com/seminar/honda-3.htm

(2) 電話でよく使う会話 
・電話したときの最初の例
Could I speak to Sally Jones, please?
Is she in today?
・電話で伝言お願いする
Could I leave a message for her, then?
Tell her I'm meeting Jennifer tonight And I'd really like her to come.
⇒I'll  pass it on.(伝えておきます)

(3) 復習
Would you mind ~ing?
Yesの場合
I don't mind
Not at all.

【宿題】穴埋め問題
A: Hello, Welness Gyms.
B: Hello. My name's Tom Smith. Could I _________________ Sally Jones, Please?
(speak to)
A: I'm sorry, Sally's ________________ today.
(not in) 
B: Well, coud I _________________ a message for her?
(leave) 
A: Of course. What was your message?
B: I'd like to reschedule my appointment with her. ______________________ you ask her to call ___________ back?
(Can)   (me) 
A: Sure. I'll pass that _______________/
(on)  
B: Thanks. Goodbye.
A: Goodbye.
 

 

2016年3月8日火曜日

【もう一度、英語をやり直そう】英会話日記(3/2) ~本八幡getgo英会話

今週もJosh先生が休みでShana先生でした。

【授業内容】
What would you do?の使い方
   If + Subject + verb + O, what would subject  + do?
      (例) If you found 10,000yen, What would you do?
                I would take the money to the police.

  ※If you would....のように、if内を過去系で使う場合は、可能性のない(5%くらい?)の質問をすることを表します。(学校英語では仮定法といったような)
 If you will...のように現在形を使う場合は、可能性の高い質問をします。

仮定法については、こちらのサイトを一読するとよいと思います。
http://www.alc.co.jp/vocgram/article/faq/08_01.html

(1)文章を完成する
・A classmate wants to copy your homework.
  If that happend to me, ______________________________________________________________________________
  ⇒I would say , "No way".
・I forgot my key, and I can't get into my apartment.
 If I couldn't get into my apartment, I ______________________________________________________________________________
  ⇒I would call a landlord(大家さん).
・I just finished an expensive meal, and I can't find my wallet.
 If I were in that situation, I ______________________________________________________________________________
  ⇒I would propose a dishwashing to clerk.
・A friend always calls me late at night, when I'm trying to sleep.
If a friend did that to me, I ______________________________________________________________________________
  ⇒I would igrore a call.

【宿題】Vocabulary Log
ANTONYMS(ANTONYMS
 accept ≠refuse  (D =different)
  ⇒I didn't accept his invitation. I refused it.
 admit ≠ deny (D =different)
  ⇒I didn't admit him to entry a club. I denied him to entry a club.
 agree ≠disagree (D =different)
  ⇒I don't agree with his opinion. I disagree with his opinion.
 borrow  ≠ lend (S=same)
  ⇒I borrowed his money. I didn't lend his money.
 connect ≠ disconnect (D =different)
  ⇒I cannot connect you to Mr.Suzuki. I can disconnect you to Mr.Suzuki.
 enjoy ≠ dislike (D =different)
  ⇒ I didn't enjoy fishing. I dislike fishing.
fasten ≠ unfasten (D =different)
  ⇒ I can't fasten my seat belt. I can unfasten my seat belt.
find≠lose (D =different)
  ⇒ I couldn't  my dog. I could lose my dog.
increase ≠decrease (D =different)
  ⇒ Japanese population hasn't been increasing. Japanese population has been decreasing.
marry ≠divorce (D =different)
  ⇒My daughter married recently. My daughter divorced recentrly.
remember ≠forget (D =different)
  ⇒ I din't remember your promise. I forgot your promise.
save ≠ spend (D =different)
  ⇒I saved much money. I spent much money.

2016年3月2日水曜日

【もう一度、英語をやり直そう】英会話日記(2/24) ~本八幡getgo英会話

最近日々の忙しさに流されて、思ったように英語勉強できていません。
 気を取り直して、頑張らないと。。。。

【先週学んだ事のテスト】
次の()内で、正しい方を選ぶ
(1) My nephew was (amausing / amused) by the clown.
   ⇒amused
(2) It's so (frustrating / frustrated) !, No matter how much I study I can't seem to remember this vocabulary.
   ⇒frustrating
(3) This lesson is so (boring / bored) !
   ⇒boring
(4) I'm feeling (deressed / depressing), so I'm going to go home, eat some chocolate, and go to bed early with a good book.
   ⇒depressed
(5) I thought her new idea was absolutely (facinated / fascinating).
   ⇒fascinating
(6) This maths problem is so (confusing/ confused), Can ou help me?
   ⇒confusing
(7) The teacher was really (amusing / amused) so the lesson passed quickly.
   ⇒amusing
(8) the journey was (exhausting / exhausted)! twele hours by bus.
   ⇒exhausting
(9) The plane began to move in a rather (alarming / alarmed) way.
   ⇒alaming
(10) He was ( frightening/ frightened ) when he saw the spider.
   ⇒frightened
(11) I was really (embarrassing / embarassed) when I fell over in the  street.
   ⇒embarrassed
(12)  That fil was so (depressing / depressed)! There was no happy ending for any of the characters.
   ⇒depressing
(13) I'm sorry, I can't come tonight. I'm completely ( exhausting/ exhausted).
   ⇒exhausted
(14) We are going in a helicopter? How (exciting / ecited) !
   ⇒exciting
(15) Don't show my baby photos to people, Mum ! It's so (enbarrassubg/ embarrassed) !
   ⇒embarrassing
(16) It's okay, it's only me. Don't be (alarming/ alarmed).
   ⇒alarmed
(17) My sister is so (exciting / excited) because she is going  on holiday tomorrow.
   ⇒excited
(18) I hate long flights, I'm always really ( boring / bored) .
   ⇒bored
(19) She looked very (confusing / confused) when I told her we had to change the plan.
   ⇒confused
(20) John was (fascinated / fascinating) by Mandarin when he first started learning languages. He decided to study more and now he can speak it fluently.
   ⇒fascinated

 【授業内容】
 Permission         Obligation    Prohibition
are allowed to     have to        aren't allowed to
can                   have got to   can't

次の文を違った言い方(上記の文法を使って)で、置き換える
(1) You can ride your bike here.
   ⇒You're allowed to ride your bike here.
(2) You aren't allowed to park your car here.
   ⇒You can't park park our car here.
(3) You're allowed to camp here.
   ⇒You can camp here.
(4) You have to wear shoes.
   ⇒You have got to wear shoes.
(5) You're got to wear your seat belt.
   ⇒You have to wear your seat belt.
(6) You can't chew gum in class.
   ⇒You aren't allowed to chew gum in class.


【宿題】次の状況にいる場合にて、どういう意味か考えてみる
例)
You walk into your classroom. There are no peple there.
   ⇒I think I made mistake for the day.
You are driving a car. A police officer stops you.
   ⇒Maybe I was driving badly.
It's 3:00 A.M. You hear a loud noise outside our door.
   ⇒I think I oversleep.

宿題)
You receive a greeting card. There is no message and no return address.
   ⇒I think It's mischief.
   ⇒mischiefよりprankの方がより
You find an old painting in your parage(パレード:行列), The person in the painting looks like you.
   ⇒I think that my face would be similar.


 

2016年2月26日金曜日

【Javascript】ホームページ上でグラフ作成するツール(Google Chart Tools)

ホームページ上で、グラフを作成するツールに、
 Google Chart Tools
があります。

下が、私が実際に作成したグラフです。
・円グラフ(Pie Chart)


・StepLineグラフ


・棒(Bar)グラフ


このツールは、プログラミング言語(JavaScript )にて、チャート作成用APIを使って、 SVG を使ったグラフを表示するツールです。
JavaScriptだと普通ソースコードがみれるのですが、このチャートツールは、JavaScript のソースをダウンロードして使用することができません。
 ※ 必ず Google のサイトにアクセスし行かなければなりません。

 ただし、Google Chart Tools は商用利用も OK でそうです。
実際に使ってみたので、使い方や、参考にしたサイトを紹介します。

1、HTMLでの記述
(1) HTMLに「Google Chart の JavaScirpt ファイルのロード指定」する
 <script type="text/javascript" src="https://www.google.com/jsapi"></script> 

(2) グラフ作成のスクリプトの記述
Load時に、drawChart関数を実行して、グラフを作成します。
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart); 
 function drawChart() {  
    // グラフ作成 //
 
</script>
 
(3) グラフを描画する div 要素
グラフを描画するところには ID 名をつけた div 要素を置きます。
<div id="chart_div" style="width: 80%; height: 400px;"></div>


2、グラフ作成の関数
グラフ作成用の関数内ではさらに 3 つのことを行います。
・データの作成
・オプションの設定
・グラフの描画


【drawChart 関数内:】
(1) データテーブルの作成 
var data = google.visualization.arrayToDataTable([ ['年度', '売上', '費用'], ['2004', 1000, 400], ['2005', 1170, 460], ['2006', 660, 1120], ['2007', 1030, 540] ]);

(2) グラフのオプションを設定 
 グラフのオプションオブジェクト(連想配列)で指定します。
指定可能な要素は title のようなグラフで共通のものや 円グラフの is3D といった特定のグラフで固有のものがあります。

var options = { title: '会社業績' };

【StepLineチャートの設定例
            var lcolor1 = _AppliedColorSettings.getValue("PersonalizedTradeLine1");  // 線1の色
            var lcolor2 = _AppliedColorSettings.getValue("PersonalizedTradeLine2"); // 線2の色
            var colors: string[] = [lcolor1, lcolor2]; // 色の配列化
            var bcolor = _AppliedColorSettings.getValue("GraphBackGround");//背景色
            var gfcolor = _AppliedColorSettings.getValue("GraphFont");//フォント色
            var gaxis = _AppliedColorSettings.getValue("Axis");//軸色
            var dash = _AppliedColorSettings.getValue("DashLine");//破線色
            var legend = _AppliedColorSettings.getValue("LegendBackGround");//凡例色

            var options = {
                'backgroundColor': bcolor,
                'titleTextStyle': {
                    color: gaxis
                },
                'colors': lcolors, 
                'hAxis': {//横軸
                    'textStyle': {
                        fontSize: 10,
                       color: gfcolor
                   },
                    'gridlines' : {  // 補助線
                       color: dash
                   },
                    'baselineColor' : gaxis// 補助線の背景色
                },
                'vAxis': {
                    'textStyle': { fontSize: 10, color: gfcolor },
                },
                'pointSize': 8,
                'legend': { // 凡例
                    position: isLegend,
                    color: legend,
                    textStyle: {
                        color: gfcolor
                    },
                },
                'crosshair': { trigger: 'both' }  // •プロットにマウスオーバーすると十字に線を表示
            };【Barチャートの設定例】
            var bcolor = _AppliedColorSettings.getValue("GraphBackGround");
            var gfcolor = _AppliedColorSettings.getValue("GraphFont");
            var gaxis = _AppliedColorSettings.getValue("Axis");
            var dash = _AppliedColorSettings.getValue("DashLine");
            var legend = _AppliedColorSettings.getValue("LegendBackGround");
            var barcolor = _AppliedColorSettings.getValue("BarGraph");
            var options = {
                'colors': [barcolor],
                'backgroundColor': bcolor,
                'title': title,
                'width': 300,
                'height': 200,
                'titleTextStyle': { color: gfcolor },
                'hAxis': {
                    'textStyle': { fontSize: 10, color: gfcolor },
                    'gridlines': { count: 4, color: dash },
                    'minorGridlines': { count: 2, color: 'gray' },
                    'stroke': { color: gfcolor }
                },
                'vAxis': {
                    'textStyle': { fontSize: 10, color: gfcolor },
                },
                'legend': {
                    position: 'none',
                    color: legend,
                    textStyle: {
                        color: gfcolor
                    },
                }             };
【Pieチャートの設定例 】
            var bcolor = _AppliedColorSettings.getValue("GraphBackGround");
            var gfcolor = _AppliedColorSettings.getValue("GraphFont");
            var legend = _AppliedColorSettings.getValue("LegendBackGround");

            var bcolor = _AppliedColorSettings.getValue("GraphBackGround");

            var options = {
                backgroundColor: bcolor,
                'title': title,
                'titleTextStyle': { color: gfcolor },
                'width': 350,
                'height': 300,
                'legend': {
                    slingment: 'end',
                    color: legend,
                    textStyle: {
                        color: gfcolor
                    },
                }
            };

(3) LineChart のオブジェクトの作成 
 グラフの描画ではまず対象グラフのオブジェクトを作成します。
この際、描画先の div 要素を ID 名から取得して渡します。

var chart = new google.visualization.LineChart(document.getElementById('chart_div'));

(4) データテーブルとオプションを渡して、グラフを描画 
chart.draw(data, options);

【参考URL】
http://dotinstall.com/lessons/basic_chart_tools/3301 ⇒動画で紹介しているので、便利
http://yohshiy.blog.fc2.com/blog-category-24.html

※上記二つをみれば十分ですが、その他にもっと勉強するために、以下サイトも読むとよいと思います

http://www.showa-corp.jp/special/graphtools/gct.html
http://yohshiy.blog.fc2.com/blog-entry-195.html
https://developers.google.com/chart/interactive/docs/gallery/motionchart?hl=ja 
https://developers.google.com/chart/interactive/faq#offline
http://yohshiy.blog.fc2.com/blog-entry-206.html

https://developers.google.com/chart/interactive/docs/gallery/columnchart#Configuration_Options
←アニメーションの設定方法

2016年2月22日月曜日

【Javascript】ホームページ作成につかえる、JQuery+Javascript+Cssサンプルコード

ホームページ作成時に、使えるコードを紹介します。

1、buttonやimageっを使わずに、クリックしたら、リンクしたサイトへ飛ばす
 (1) 説明
  ・<div>タグでboxを作成する
  ・<p>タグで文章を記載して、<a>タグでリンク先を指定する。
  ・<strong>で強調文字とする
 (2) コード
 <div style="margin-top:65px;margin-left:1170px;position:absolute;background-color:white; border: outset;  width:200px;height:30px;border-color:black;border-radius:5px">
     <p style="margin-top:4px;margin-left:14px;">
         <a href="http://www.yahoo.co.jp/" style="text-decoration: none;color:black">              <strong>yahoo!</strong>
         </a>
      </p>
 </div>

※タグ内でstyle定義していますが、css側で定義した方が、レスポンシブwebサイトで対応しやすくなります。

 2、起動時に初期設定する window.onload、もしくは、 $(document.body).readyにて、設定を行います
  ・window.onload
   文書のローディング工程の終了時に発生します。このイベントが発生した時点で、文書中の全てのオブジェクトは DOM 内にあり、全ての画像とサブフレームのロードは完了している。
  ・$(document.body).ready
  画像の読み込みなどは待たず、 DOMツリーの構築が終わった時点で実行されます。
※window.onloadと$(document.body).readyの違いは、「$(document).ready() が先に実行されて、$(window).load() の方が後に実行される」となります。
詳しくは次のサイト一読すると理解しやすいです。
http://rcmdnk.github.io/blog/2015/07/11/computer-javascript-jquery/


3、ブラウザ判別
 (1) 説明
   window.navigator.userAgentを使って判別を行います 
 (2) コード 
   var  browzer;
    if (userAgent.indexOf("Chrome") != -1) {
        //Chrome
        _browzer = BrowzerType.chrome;
    } else if (userAgent.indexOf("Firefox") != -1) {
        //Firefox
        _browzer = BrowzerType.firefox;
    } else if (userAgent.indexOf("Trident") != -1) {
        //IE11
        _browzer = BrowzerType.ie11;
    } else if (userAgent.indexOf("MSIE") != -1) {
        //IE 6 - 10
        _browzer = BrowzerType.ie10;
    } else if (  userAgent.indexOf("Edge") == -1)
    {   // Edge
        _browzer = BrowzerType.edge;

    } else {
        //other
   }
      

4、デバイス判別
 (1) 説明
   window.navigator.userAgentを使って判別を行います 
 (2) コード 
   var _device
     var userAgen2t = window.navigator.userAgent.toLowerCase();
    if (userAgen2t.indexOf('ipad') != -1) {
        _device = DeviceType.tablet;
    } else if (userAgen2t.indexOf('iphone') != -1) {
        _device = DeviceType.sp;
    } else if (userAgen2t.indexOf('Android') != -1) {
        _device = DeviceType.sp;
    } else if (userAgen2t.indexOf('windows') != -1) {
        _device = DeviceType.pc;
    } else {
        _device = DeviceType.onther;
    };


2016年2月21日日曜日

【もう一度、英語をやり直そう】英会話日記(2/17) ~本八幡getgo英会話

今週もJosh先生は、スノーボード休みでした。
代わりに、久々のShana先生でした。


【今週覚えたこと】
・マッサージ師の単語
 masseur(男性)、masseuse(女性)
   ※発音や例文は次のサイト参照ください。
     http://ejje.weblio.jp/content/masseur

【授業内容】
1.  映画について、内容など質問する会話を学習

(1) Actors, Starsについて
Who's in it?      Brusce Willis is in it.
Who's the star?    It stars Bruce Wills.

(2) Setting(ロケ地など、状況設定一般)について
 Where/What is it set?     It is set in Tokyo.
Where does it take place?   It takes place in Hakone.

(3) Plot/Story(映画ストーリ)について
 What's it about?   It's about robot.

(4) Climax(最高点)について
 What happens?   In the end,  world end.

(5) Theme(主題)について
 Do you think it has a message?   It's about love is all.

(6)  Genre(ジャンル)について
※発音は、こちらで確認 http://ejje.weblio.jp/content/Genre (ジャンルでなく、ジャヌラと聞こえます)
 What kind of movie is it?  It's a animated film.


2. Language
映画について述べるときに使う単語

前の方の単語は、
The movies was .....
と使用して、後ろの方の単語は、
I was ....
と使用する

・interesting, ,  interested(in)
⇒ The movie was interesting.      I was interested in the movie.
・fascinating ,  fascinated(by)
   魅(惑)する
・boring , bored(by)
  退屈
・moving , moved(by)
  感動
・surprising , surprised(at)
・disappointing , disappointed(in)
・disgusting , disgusted(at)
  うんざり
・shocking , shocked(at)
・amazing , amazed(by)
 びっくりする
・uplifting , uplifted(by)
 高揚する
・funny  ,     なし
 おかしい、こっけい
・fun  ,    なし
 おもしろい
・scary ,  scared(of)
 恐ろしい


【宿題】Vocabulary Log
(+)=for pasitive words, (-)=for negative words
 
absurd (不合理な、こっけいな) : unreasonable (-)
amazing (驚くべき) : surprising(+)
awful  (ひどい、おそろしい) : scary(-)
bizarre (奇妙な) :  very strang (-)
boring (うんざりするような) : tedious (-)
disgusting  (実にいやな) : dislike (-)
dreadful (おそろしい、いやな) : awful (-)
dumb (口のきけない、無口な) : can't speek(-)
fabulous  (伝説上の、途方もない) : on legend(+)
fantastic (空想的な、途方もない) :tremendous (+)
fascinating  (魅了的な) : interesting(+)
frightening (驚くべき) : surprising(-)
horrible (恐ろしい、ぞっとするような) : awful(-)
interesting  (面白い) : fun(+)
marvelous  (すばらしい) : wonderful(+)
odd (変な) : strange(-)
outstanding (傑出した) : particular(+)
ridiculous (ばかげた) : waste of labor(-)
silly (おろかな) : stupid(-)
strange (変な) :not exact(-)
stupid (愚かな) : foolish(-)
surprising (驚くべき) :wonderful(+)
terrible (恐ろしい) :awful(-)
unusual (普通でない) : not correct(-)
weird (気味の悪い、奇妙な) : odd(-)
wonderful (すばらしい) : amazing(+)






http://www.getgo.co.jp/
      ※上記画像クリックでHPにジャンプします(Shana先生プロフィール確認できます) 

2016年2月20日土曜日

色パレット(色と、RGBと、色名と、Hex(16進 ))

ホームページ作成時に、色指定は、Hex(16進)で、指定します。
そこで、よく使う色の、「色とHex(16進 )」対応表を作成しました。



 位置    RGB                  色名               Hex(16進)
 -------------------------------------------------------
1行A列    255,0,0,0               黒                            #000000
1行B列    255,153,51,0         茶                             #993300
1行C列    255,51,51,0           オリーブ                     #333300
1行D列    255,0,51,0             濃い緑                       #003300
1行E列    255,0,51,102          濃い青緑                   #003366
1行F列    255,7,92,209           濃い青                     #92209a
1行G列    255,51,51,153        インディゴ                   #333399
1行H列    255,77,73,73          80%灰色                    #4d4949
2行A列    255,205,51,53        濃い赤                      #cd3301
2行B列    255,255,102,0        オレンジ                     #FF6600
2行C列    255,128,128,0        濃い黄                      #808000
2行D列    255,0,128,0            緑                             #008000
2行E列    255,0,128,128         青緑                        #008080
2行F列    255,0,0,255             青                            #0000FF
2行G列    255,102,102,153      ブルーグレー             #666699
2行H列    255,128,128,128       50%灰色                  #808080
3行A列    255,255,0,0             赤                             #FF0000
3行B列    255,255,153,0         濃いオレンジ             #FF9900
3行C列    255,153,204,0          ライム                      #99cc00
3行D列    255,51,153,102        シーグリーン             #99cc00
3行E列    255,51,204,204        アクア                      #33cccc
3行F列    255,51,102,255        薄い青                     #3366ff
3行G列    255,128,0,128         紫                            #800080
3行H列    255,150,150,150     40%灰色                    #969696
4行A列    255,255,0,255         ピンク                       #00FFFF
4行B列    255,255,204,0         ゴールド                    #FFCC00
4行C列    255,255,255,0        黄色                          #FFFF00
4行D列    255,0,255,0            明るい緑                    #00FF00
4行E列    255,0,255,255        水色                           #00ffff
4行F列    255,0,204,255         スカイブルー             #00ccff
4行G列    255,153,51,102      プラム                        #993366
4行H列    255,202,196,196      25%灰色                   #cac4c4
5行A列    255,255,153,204      ローズ                      #ff99cc
5行B列    255,255,204,153      ベージュ                   #ffcc99
5行C列    255,255,255,153      薄い黄色                  #ffff99
5行D列    255,204,255,204      薄い緑                     #CCFFFF
5行E列    255,204,255,255      薄い水色                  #CCFFFF
5行F列    255,153,204,255      ペールブルー             #99CCFF
5行G列    255,204,153,255      ラベンダー                #cc99ff
5行H列    255,255,255,255      白                             #ffffff
6行A列    255,205,92,92          Indian Red                #CD5C5C
6行B列    255,224,164,96        Sandy Brown            #e0a460
6行C列    255,242,164,81        Sunshade                 #f2a451
6行D列    255,205,133,63        Peru                        #CD853F
6行E列    255,255,140,0          Deep Pink                 #FF8C00
6行F列    255,244,124,2          angerine                   #f47c02
6行G列    255,255,128,0         Dark orange               #FF8000
6行H列    255,211,211,211      Light Gray                 #d3d3d3
7行A列    255,217,51,63          赤紅                         #d9333f
7行B列    255,255,215,0          Gold                         #FFD700
7行C列    25,560,179,113        Medium Sea Green     #3cb371
7行D列    25,580,138,102        Como                        #8a5074
7行E列    255,90,107,48          Dark Olive green        #5a6b30
7行F列    255,0,191,255          Deep Sky Blue           #00bfff
7行G列    255,128,128,128      藤色                         #808080
7行H列    255,25,25,112          Midnight Blue            #191970