Thursday, May 25, 2017

English - level 2

1. Why do people dislike other people?

Some people don't like other people just because they look different.
I think that is silly.
I don't think that it is fair to judge someone by the way they look.
Some people look very nice, but they are mean or cruel.
Some people look very ordinary, but they are incredibly nice.
I remember when I was in grade one. I saw a girl across the room.
She had a mean look on her face.
I thought to myself that she was probably not a very nice person.
I stayed away from her, and play with the other children.
Then, we had to play a game, and the teacher said that she would pick partner for us.
They teacher picked the girl with the mean face my partner.
I didn't think that the game would be much fun at all with a partner who seemed as mean as that girl.
I walked up to her and said hello.
The girl's face changed.
She smile at me, and she began to talk to me.
Her mean face disappeared.
We had lots of fun playing the game.
We laughed a lot and enjoyed each other's company.
That girl became my best friend.
Now when I look at her I see what is inside her.
Sometimes she doesn't smile, but I know what she is like.
She is a kind and funny person.
I have learned that you can't.....judge a book by its cover.
It is not fair to dislike someone just because they don't look like  you want them to look.
You have to get to know a person.
It doesn't matter to me what color a person's skin is.
It doesn't matter to me if they are short or tall, skinny or fat or happy or sad looking.
I judge people by how they treat me, and I try to treat people like I would want to be treated.

2. The birthday gift.

Wednesday, May 24, 2017

9 điều Jack Ma dạy con trai phải nhớ


1. Những người không tốt với con, đừng để ý quá nhiều đến người ta. Trong suốt cuộc đời con, không có ai có nghĩa vụ phải tốt với con, trừ ta và mẹ con. Với những người đối xử tốt với con, nhất định phải trân trọng, cảm ơn.

2. Không ai là không thể thay thế, không có thứ gì là bắt buộc phải có trong tay. Nhìn thấu điều này, sau này cho dù con có mất đi tất cả những thứ con yêu thích trên thế gian, con cũng sẽ hiểu rằng, chuyện đó chẳng có gì to tát!

3. Sinh mệnh rất ngắn ngủi. Hôm nay có thể con vẫn đang lãng phí sinh mệnh nhưng ngày mai, con có thể đã thấy thứ trân quý đó rời xa con.
Vì thế, càng sớm trân trọng sinh mệnh của mình, con sẽ được hưởng thụ những ngày tháng sống trên đời càng nhiều. So với kỳ vọng được sống lâu, sống thọ, thà rằng con hãy sớm hưởng thụ một cuộc sống thực sự trọn vẹn.

4. Tình yêu chỉ là một dạng cảm giác và cảm giác này, theo thời gian, tâm trạng sẽ thay đổi. Nếu người mà con cho là mình yêu nhất rời xa con, hãy nhẫn nại chờ đợi một chút, để trái tim dần dần lắng xuống, thời gian sẽ làm vơi nỗi đau trong lòng con.
Đừng quá vấn vương đến cái đẹp của ái tình, cũng đừng làm quá những đau khổ khi thất tình.

5. Mặc dù nhiều người không được học hành nhiều song vẫn thành công nhưng điều đó không có nghĩa là con không cần dụng công học hành mà cũng có thể thành công.
Những kiến thức con học được chính là thứ vũ khí mà con có. Con người có thể tay trắng lập nghiệp nhưng không thể không có vũ khí mà lập nghiệp, nhớ cho kỹ!

6. Ta đã mua xổ số trong suốt 26 năm nhưng đến giải 3 cũng chưa bao giờ trúng. Điều này chứng minh một điều rằng, con người muốn thành công, nhất định phải cần đến sự nỗ lực hết mình. Trên đời này không có gì là miễn phí.

7. Ta không yêu cầu con phải phụng dưỡng, nuôi ta nửa đời còn lại. Đồng nghĩa với việc đó, ta cũng không nuôi con nửa đời còn lại.
Khi con trưởng thành đến mức có thể tự lập, trách nhiệm của ta đã kết thúc. Từ nay về sau cho dù là con ngồi xe buýt hay ngồi trên xe Mercedes, ăn sơn hào hải vị hay cơm canh đạm bạc, con đều phải tự lo liệu.

8. Con có thể yêu cầu bản thân phải giữ chữ tín nhưng không thể yêu cầu người khác phải giữ chữ tín. Con có thể yêu cầu bản thân phải đối tốt với người khác nhưng con không thể kỳ vọng người ta tốt với con.
Con đối xử với người khác thế nào không có nghĩa là người ta sẽ đối xử lại với con như vậy. Nếu con không nhìn thấu điểm này, nó sẽ chỉ đem đến cho con những phiền não không cần thiết.

9. Người thân là duyên phận chỉ có 1 lần. Bất luận kiếp này ta và con được ở cạnh nhau bao lâu, con nhất định phải trân trọng thời khắc chúng ta bên nhau. Kiếp sau, cho dù chúng ta có yêu mến nhau hay không, chưa chắc chúng ta đã có thể gặp lại.

Monday, May 22, 2017

English - level 1

1. First snow fall

Today is November 26th.
It snowed all day today.
The snow is beautiful.
The snow finally stopped.
My sister and I are excited.
My mom doesn't like the snow.
My mom has to shovel the drive way.
My sister and I get to play.
I put on my hat and mittens.
My mom puts on my scarf.
My mom zippers my jacket.
My sister puts on her hat and mittens.
My mom puts on her scarf.
My mom zippers her jacket.
My sister and I go outside.
We begin to make a snow man.
My mom starts to shovel the snow.
My sister and I make snow angles.
My sister and I throw snowball.
It starts to snow again.
We go inside for hot chocolate.

2. Jessica's first day of school

To day is Jessica's first day of kindergarten.
Jessica and her parents walk to school.
Jessica's Mom walks with her to her classroom.
Jessica meets her teacher.
His name is Mr Parker.
The school bell rings at 8.45 A.M
Jessica hugs and kisses her mom goodbye.
Jessica's mom says "I love you".
At 9.00 A.M, Jessica stands for the National anthem.
Mr Parker calls out children's names.
Each child yells back "Here".
Mr Parker teaches them about letters.
Mr Parker teaches them about numbers.
At 10.15 AM, the students have recess.
Recess is fun.
The students get to play and eat.
At 10.30 AM the students go to gym class.
At 11.15 AM the students return to Mr Parker's classroom.
Mr Parker tells the students to sit on the carpet.
Mr Parker reads the students a story.
Mr Parker teaches the students a song.
The lunch bell rings.
Jessica's first day of school is over.
  
 3. My flower garden

My name is Anne.
I love flowers.
I have a flower garden.
My garden is in front of my house.
My neighbor has a garden too.
My garden has different types of flowers.
I have roses in my garden.
I have tulips in my garden.
I have petuniaes in my garden.
My garden has different colors.
I plant red flowers.
I plant orange flowers.
I plant blue flowers.
I plant purple flowers.
I take care of my garden.
I water my garden every day.
I kill the weeds in my garden.
I kill insects that eat my flowers.
I love my beautiful garden.

4. Going camping

The Bright family went camping on the weekend.
The Bright family went to Silent Lake.
The Bright family left on Friday.
They camped for 3 days.
The Bright family brought a big tent.
They brought a lot of food.
They brought insect repellent.
The Bright family had a campfire on Friday.
They roasted marshmallows.
They sang campfire songs.
On Saturday they went canoeing.
On Saturday they went fishing.
On Saturday the went swimming.
They went hiking on Sunday.
The Bright family saw many animals.
They saw a raccoon.
They saw a squirrel.
But they didn't see a bear.
They Bright family had a fun vacation.

5. My house

I live in a house.
My house is small.
My house has 2 bedrooms.
My mom and dad sleep in one bedroom.
My sister and I share the other bedroom.
My house has a kitchen.
My mom and dad cook dinner there every night.
My house has a living room.
My family watches TV there every night.
My house has a big bathroom.
My house has a lot of closets.
My house has a basement.
My dad has a workshop in the basement.
My dad makes wood furniture.
My house doesn't have a second floor.
My house has a garage.
My house has a big backyard.
My backyard has a maple tree.
My backyard has a swimming pool.

6. My first pet

My name is Sarah.
I am 14 years old.
I have a pet cat.
My cat's name is Milo.
My cat is black and white.
Milo's paws are while.
Milo's body is black.
She is very cute.
Milo's fur is very soft.
Milo was a very small kitten.
Milo is a vary big cat.
Milo can not have kittens.
She is fixed.
Milo likes to eat.
Milo likes to play outside.
Milo likes to hunt for birds.
Milo likes to hunt for mice.
She likes her ears scratched.
Milo likes to sit in my lap.
Milo likes to sleep on my bed.
Milo is a good pet.

7. Jennifer the Firefighter

Jennifer Smith is a firefighter.
She is one of the first female firefighters.
Jennifer works hard every day.
Jennifer exercises every day.
She lifts weights.
She wants her muscles to be very strong.
She saves people's lives every day.
She is very strong.
She is married.
Her husband is a school teacher.
Her husband is proud of her.
She is a mother.
She has 2 daughters.
Her daughters are proud of her too.
She is happy being a firefighter.
She is happy being a wife.
She is happy being a mother.

8. Mark's big game.

Mark's favorite sport is hockey.
He is 15 years old.
Mark practices three times a week.
Practices are two hours long.
Mark plays one game a week.
Mark is a good hockey player.
He plays on Friday nights.
Friday night hockey games are popular.
Mark's family watches him play.
Mark's friends watch him play too.
There are always many fans.
Tonight is the big game.
Coaches are coming to watch Mark play.
Mark wants to play in the National Hockey League.
Mark wants to make a lot of money.
It is very hard to play in the NHL.
Mark's parents want him to go to college.
They want him to have an education.
They want Mark to be successful.
They want Mark to be happy.

Thursday, May 18, 2017

English - daily conversation

1. At home
- Where is Jane?
- She is in the living room
- What is she doing?
- She is playing the piano
- Where is the car?
- It is in the garafe
- Where is the dog?
- The dog is in front of the door
- What is the dog doing?
- The dog is eating

2. At home
- Where you are?
- I am in the kitchen
- What are you doing?
- I am cooking dinner
- Where are Bill and Mary?
- They are in the living room
- What are they doing?
- They are watching TV
- Where is the cat?
- She is in the dining room
- What is she doing?
- She is sleeping

3. My favorite photographs
- Who is she?
- She is my sister
- What's her name?
- Her name is Jennifer
- Where is she in this photograp?
- She's in Toronto
- What is that biulding behind her?
- She's standing in front of the CN tower

4. Location
- Where is the school?
- It's between the library and the park
- Where is the post office?
- It's cross from the movie theater
- Where is the royal bank?
- It's next to the supermarket
- Where is the gas station?
- It's around the corner from the church
- Where is the barbershop?
- It's near the bus station

5. Location
- Excuse me? Can you tell me the way to the nearest bank?
- Yes, it's on Geneva Street. As a master of fact, I am going that way myself. So if you come with,  i will show you.
- Thanks very much
- You are welcome

6. Color
- May I help you?
- Yes, please. I am looking for an umbrella
- What's your favorite color?
- It's black
- Sorry, we have no black umbrella right now. Here is a nice umbrella
- But this umbrella is yellow
- That's OK. yellow umbrellas are very popular this year

7. Color
- Excuse me? Is this your umbrella?
- No. It's not
- Are you sure?
- Yes, I am sure. That umbrella is brown, and my umbrella is yellow.

8. No question
- Are you married?
- No, I'm not. I'm single
- Tell me about your new car. Is it large?
- No, it's not. It is small
- Tell me about the question in your English book? Are they difficult?
- No, they are not. They are easy
- Tell me about your new neighbors? Are they quiet?
- No, they are not. They are noisy

9. Short answer
- Is Alice young or old?
- She is young
- Is Bill tall or short?
- He is short
- Is Albert's apartment big or little?
- It's small
- Were the last examination easy or dificult?
- They were difficult
- Is Julie married or single?
- She is single

10. Telephone call
- Hello Jack. This is Dave. I want to return the book I borrowed from you last night. Will you be at home at about six o'clock?
- Yes, I will. I will be cooking dinner
- Oh, well. Then I won't come over at six
- Why not?
- I don't want to disturb you
- Don't worry! you won't disturb me
- OK, I will see you at six





Câu chuyện Chó và Hồ ly


Chó yêu Hồ ly sâu nặng. Chúng thường chơi với nhau. Rồi một ngày, cả hai gặp phải Thần chết. Thần chết nói:
Trong hai ngươi, chỉ có một người được sống, hai ngươi hãy oẳn tù tì đi, ai thua sẽ phải chết”.

Cuối cùng Hồ ly đã chết. Chó khóc lóc ôm Hồ Ly đã chết nằm yên lặng trong lòng.
Đã nói là cả hai sẽ cùng ra búa, tại sao trong khi ta ra kéo thì ngươi lại ra lá?”

Hóa ra Chó muốn thua để Hồ ly được sống, tưởng rằng Hồ ly sẽ ra búa nên Chó ra kéo, nhưng không ngờ Hồ ly lại ra lá, vì nó nghĩ Chó sẽ ra búa. Cuối cùng, tất nhiên là Chó đã thắng.

Đây mới là hiện thực, là lòng người trong xã hội. Hồ ly ích kỷ, còn Chó lại quá ngốc nghếch. Nhưng xã hội vẫn còn một mặt khác. Đó là: khi chúng ta hãm hại người khác cũng chính là đang hãm hại bản thân. Có một số người cam chịu thua cuộc, nhưng họ lại đang thắng. Thế nên: cứ tiếp tục lương thiện…rồi bạn sẽ thắng, làm người phải sống có hậu, chân lý lúc nào cũng thuộc về sự lương thiện.

Có thể chính Hồ ly mới là người cố tình bị thua, có khi nào nó biết rằng Chó sẽ nhường nó, ra kéo, nên nó ra lá. Cả hai đều yêu thương nhau, chỉ là Hồ ly đã đi trước một bước thôi. Hồ ly và Chó đều thắng!
Có ai đó đã nói:

Rồi đến một ngày bạn sẽ nhận ra lương thiện khó hơn là thông minh.Vì thông minh là một dạng bẩm sinh, còn lương thiện là một dạng lựa chọn”.

Dù sao thì xã hội vẫn tràn đầy hi vọng cho những người lương thiện hoặc đang cố gắng sống tốt.

Monday, May 15, 2017

Phụ nữ thực tế, đàn ông phát cuồng (Trang Trang)

Phụ nữ thực tế, đàn ông phát cuồng là một trong những tác phẩm bán chạy nhất của nữ nhà văn Trang Trang, do dịch giả Trần Quỳnh Hương (dịch giả cuốn Anh có thích nước Mỹ không) chuyển ngữ sang tiếng Việt.


Phụ nữ thực tế, đàn ông phát cuồng kể về câu chuyện của Phùng Hy – một người phụ nữ đã hết lòng vì gia đình, nhưng rốt cuộc lại không có hạnh phúc. Cuộc hôn nhân với Điền Đại Vĩ kết thúc trong nỗi đau đớn ê chề, cô gặp lại người yêu cũ là Phụ Minh Ý trong hoàn cảnh hết sức éo le – những gì đẹp đẽ của quá khứ đã hoàn toàn vỡ vụn trong hiện thực. Phùng Hy đã lựa chọn cách sống thực tế và tích cực, cô giảm béo, chuyên tâm trong sự nghiệp. Và rồi cô gặp Mạnh Thời – một người đàn ông kỳ lạ, anh đã giúp cô lấy lại sự tự tin, là chỗ dựa ấm áp của cô. Lúc đó, tất cả những người đàn ông xung quanh đều nhận ra giá trị của cô, cả người chồng cũ tệ bạc Điền Đại Vĩ, người yêu cũ Phụ Minh Ý. Nhưng hạnh phúc chẳng có được dễ dàng, Phùng Hy bị cuốn vào vòng xoáy của đấu đá quyền lực, tiền tài và tình yêu. Người phụ nữ ấy một lần nữa phải đấu tranh để giữ lấy hạnh phúc.

Tác phẩm đã xướng lên tư tưởng “Phụ nữ không thể không hạnh phúc”, trở thành cuốn sách dành riêng cho nữ giới, đặc biệt là những phụ nữ từng thất bại trong tình yêu và hôn nhân.

Đọc truyện: Phụ nữ thực tế, đàn ông phát cuồng

Selenium

I. Selenium IDE

1. what kind of app is the selenium IDE?
- Firefox add-on
2. A selenium IDE testcase has 3 columns, command, target and value. what data is stored in the target column?
- element or location where the command is executed
3. By default, in which format does the selenium IDE save a test case?
- as HTML
4. what features are available in selenium IDE to debug an automated test case?
all:
- toggle Breakpoint
- pause/ resume
- step
5. what is the selenium print command?
- Echo
6. what urls does the selenium open command allow?
any
- only the base url
- any url relative to the base url
- any absolute url
7. what is the correct syntax to access the value of a selenium variable called name?
- ${name}
8. what is the difference between assert and verify cammands?
all
- assert commands are more uncommon than verify commands
- typically, an assert command is followed by verify command?
- a failed assert command stops the test but a failed verify command does not do so.
9. in which associative array does selenium store of a test case's variables and their respective values?
- storedVars
10. where can you create your own selenium command?
- in any javascript file, but the preferred name is user-extensions.js for consistency

II. Selenium RC

1. Select the component which is NOT part of selenium suite
- selenium web
2.what is data parameterization?
-using variable test data in place of fixes test data values
3. select the operating system which is NOT supported by selenium IDE
- unix
4. the selenium can
- only test web apps
5. which command can be used to enter values on text boxes?
- sendKeys()
6. select the command in selenium IDe used to open a pagusing the url
- open
7. how do you start the browser?
- selenium.Start()
8. which component is used to run multiple tests simultaneously in different browser and platform?
- selenium GRID
9. which of the following is an incorrect target for pattern matching as in verifyTextPresent command?
-exact:*Sumary
10. which of the following always need a capital letter?
- class names and Strings

III.Selenium commands "Selenes"

1. what are the different modes that selenium uses?
all
- 1
- *firefox and *iexplore
- *chrome
2. how do you start browser?
- selenium.Start()
3. select the browser which is supported by selenium IDE
- Mozilla firefox
4. how many parameters does the selenium object take when using DefaultSelenium?
- 4
5. how do you start selenium RC server with user extensions?
- java -jar selenium-server.jar-user Extensions user-extensions.js
6. which selenium command do you use to run commands in slow motion in selenium RC?
- selenium.setSpeed()
7. which command is used to get the alert box?
- selenium.getAlert()
8. which command is used to for verifying if web element exists?
- selenium.isElementPresent(String locator)
9. which command is used for tying in a textbox?
- selenium.type(String locator, String value)
10.what is the command to load a page?
- selenium.waitForPageToLoad(String timeoutInMilliseconds)

IV. Selenium to a program

1. how to you xpath for dynamic elements?
- identify the pattern and modify xpath pattern
2. Is regular expression helps to identify dynamic elements?
- Not very compatible
3. How to check if any check box is checked or not?
- driver.findElement(By.id(<>).isSelected()
4. What is getWindowHandle method?
- Method will help to handle of opened windows other than parent
5. How to handle alert using selenium?
- Driver.swithcho.alert()
6. What is Iterator?
all
- Iterator enables you to cycle through a collection, obtaining or re...
- It basically starts at the beginning of a collection
- When you want to know which things are in a certain collection, you...
7. After the poup actions, how to switch the driver back to the parent window?
- browser.switchTo().window(parentWindowHandle);
8. A constructor
- is used to create objects
9. Which declaration of the main method below would allow a class to be started as a standalone program. Select the one correct answer
- public static void main(String args[])
10. Native methods can be 'abstrct'
- false

V.Selenium Webdriver

1. in webdriver, which method closes the open browser?
- close()
2. In web driver, which of the following is a valid select statement that selects a value from a drop down element?
all
- selectByIndex()
- selectByVisibleText()
- selectByValue()
3. Which webdriver method is used to change focus to an alert, a frame or a browser window?
- switchTo()
4. In Webdriver, which methods navigates a URL?
- get(\url\")"
5. In  webdriver, which command takes ou forward by one page on the browser history?
- navigate().forward()
6. In webdriver, which command can be used to enter values onto text boxes?
- sendKeys(\text\")"
7. In webdriver, which is the method that counts the number of elements?
- driver.findElements(By.id(\search\")).size()"
8. In webdriver, which of the following commands retrieves the text of a html element?
- getText()
9. What funtionality does Webdriver support on browser cookies?
any
- add and delete an individual cookie
- delete all cookies
10. Which of these Webdriver interface methods is used to open a URL in the browser?
any
- Get
- navigate().to

VI. Junit

VII. TestNG

Tuesday, May 9, 2017

USA Today yêu cầu FBI chống lại các chương trình Facebook


Trang Facebook của tờ USA Today đã bị nhấn chìm bởi các tài khoản giả mạo.


Gannett Co hiện giờ đã yêu cầu FBI điều tra, theo đó thì ½ lượng following của page là được tự động hóa.

Facebook đã loại bỏ hàng triệu tài khoản fake, nhưng từ đó đã phát hiện ra nhiều hoạt động đáng ngờ hơn.
Số lượng “likes” trên page đã giảm từ 15,2 triệu xuống còn 8,2 triệu do xóa tài khoản.


“Chúng tôi không biết tại sao, phạm vi ảnh hưởng trên trang Facebook của USA Today lại xuất hiện lớn hơn bất kỳ nhà xuất bản nào khác”, người phát ngôn của Facebook là Shabnam Shaik nói, trong 1 báo cáo bởi USA Today về vấn đề này.


“Từ quan điểm của chúng tôi, chúng tôi đã thực hiện kiểm soát và giải quyết vấn đề này trong tầm tay”, Bà Maribel Perez Wadsworth, 1 giám đốc tại Gannett Co nói.

“Chúng tôi mong muốn Facebook giải quyết vấn đề này trên nền tảng của họ để chúng tôi có thể tiến về phía trước, tích cực thu hút người xem Facebook của chúng tôi”.

Proofpoint, 1 công ty an ninh mạng được sử dụng bởi Gannett Co, nói với BBC rằng sẽ tiếp tục điều tra và theo dõi các tài khoản đáng ngờ trên page.

BBB yêu cầu FBI xác nhận về cuộc điều tra, nhưng văn phòng từ chối bình luận.
Facebook cũng chưa đưa ra hồi đáp nào cho các bình luận trên.
BBC.