Thứ Bảy, 20 tháng 5, 2017

What is happiness and how to be happy your life?

What is happiness and how to be happy your life?
There is no doubt that happiness is the final goal of human life.Although an actual definition of happiness seems to be difficult to describe. There are various factors need to be considered for happiness achievement.
Happiness is something different to each individual person. First, we all have our own particular passion from which take pleasure. For instance, some people, getting satisfaction from earning money or achievement success, whereas others peacefulness in life is much more important. Second, happiness is difference in generation, each has their own way to be happy. For example, a father will be satisfied by his children growing up and becoming a good people in society. Nevertheless, children will enjoy a small toy which buying by their parents.
It seems almost impossible to give a precise definition of happiness, most people would agree that there are some basic preconditions to achieving it. Thus, happiness is not how much what a person have, but is how much what person enjoy, so let enjoy anything as much as you can. Enjoying seeing the sun out of the window, smiling to others, playing with a kid, and so on. Looking anything in a positive way, live for the present, not for the past or the future. And lastly, it could be the individual freedom, having a certain of purpose in life and do not forget to start giving back right a way
It is not easy to define what and what exactly make happiness because  it is particular to each individual. Thus, happiness is the greatest thing that human makes, which create more and more beauty and color life.

Sentences pattern

To get/obtain/derive satisfaction from one's work    có/đạt được/tìm thấy sự thoả mãn trong tác phẩm của mình

She got a satisfaction from her drawing : hài lòng vs bản vẽ của cổ

To give a precise definition of:  Để đưa ra định nghĩa chính xác của gì đó

It is almost impossible to give a precise of love: Gần như không thể đưa ra định nghĩa chính xác về tình yêu

To take pleasure in + V-ing: lấy làm vinh hạnh trong gì đó

Today, I take pleasure in talking with them : lấy làm vinh hạnh khi được nói chuyện vs các bạn

Whereas other: trong khi số còn lại

Some students submitted homework on time, whereas others did not. Vài sinh viên đã nộp bài tập đúng hẹn, trong khi những bạn khác thì không

Read more... »

Thứ Sáu, 19 tháng 5, 2017

How to download journal for free?

For some reason, maybe student can not access to the journal source libraries. I would suggest the following these steps: 
  1. Go to http://sci-hub.cc/ website home page
  2. Copy and paste the journal link or URL you want to download for free
  3. Click on “Open” on sci-hub to continue to the next page.
  4. A download page will be appeared
  5. Then, you will be able download the journal.
Lets try ! That's all.
Làm sao để tải báo khoa học miễn phí. Khi mà các trường học ở VN chưa mua các tài nguyên báo từ các trang IEEE, sciencedirect,... thì các bạn sinh viên rất khó khăn để mua cái bài báo đó vì giá của chúng cũng không hề thấp so vs mức sống ở sv VN.
Đây là cách đơn giản cho các bạn có thể có thêm tài liệu để nghiên cứu. Chúc các bạn học tốt !


Read more... »

Thứ Tư, 17 tháng 5, 2017

How to write references correctly in paper?

[Vietnamese caption is below]
How to write references correctly in paper?
Many students have faced the same problem that they stuck in how to write references correctly. Here is the "perfect" tool, called "Google scholar button", it is available in 2 most popular browsers, Google Chrome and Firefox. 
Step 1: Finding the Add-on for your browser, by searching on Google the key word  “Google scholar button”, or you can access directly go to the store by clicking either link below: 





Step 2: Click "Add to xxx" button, where xxx is Chrome or Firefox, respectively. A small icon will  appear on the right-top of your browser. 
Step 3: Following the image below, and you do not to worry about Citation anymore .
Note: Checking standard on the left vertical line, such as MLA, APA, and so on. 






Làm sao để ghi trích dẫn cho bài báo khoa học “chuẩn”?
Những lúc viết bài báo cáo “repport”, bài báo “journal” hoặc bài luận văn “thesis”….thường thì mọi người thường  gặp rắc rối làm sao để ghi mục trích dẫn “Reference” chuẩn.
Đây là giải pháp nhanh-gọn-chuẩn nhé.
Bước 1:  Hãy click vào link sau để cài công cụ Add-on cho trình duyệt của bạn có tên “Google scholar button”


Bước 2: Click vào Add to Chrome  hoặc Add to Firefox
Khi cài đặt thành công thì sẽ xuất hiện ở góc phải biểu tượng của Add-on này.
Bước 3: Nhấn vào biểu tượng của ứng dụng, nhập tên bài báo muốn trích dẫn, và click vào mục dấu nháy kép “” là sẽ được phần mẫu trích dẫn. Hình minh họa dưới là trên firefox, trên Chrome tương tự nhé.
Lưu ý: nhìn vào dòng lề trái, có các chuẩn như APA, MLA,,, để copy cho đúng chuẩn yêu cầu nhé
Have a good time
Best.
Read more... »

Thứ Năm, 13 tháng 4, 2017

Funny poem in English

When you wanna get her number :)) In this situation, when I girl are alone like this, you can come to her and read it :)) I hope you will not fail to perform all that girl. ( don't be me )

Roses are red
Violets are blue
Blonde is your hair
And black are your shoes

You’re looking really good
You’re looking really hot,
You can make my dream come true.
You can call me sweet boy
Can I get your number?

Read more... »

Thứ Ba, 11 tháng 4, 2017

Should I change my accent

Alishan - Chiayi, Taiwan



















In Vietnam,to fit in the social by changing accent. Discuss the advantages and disadvantages of changing accent in this situation.
Communication can be affected by accent, especially with people who go to city from other places.  In my opinion, I believe that changing accent have many advantages and disadvantages as well.

The disadvantage of this changing is ineffective communication due to a strong accent. Nowadays more and more people from countryside move to a city. To fit in that situation easily, they change their accent. Firstly, having an accent may cause some difficulties in communicating with others, both at work and study. For instance, when people are born in a small town, they speak with a local accent. In conversation, they do not try to speak standard languages accent, making it difficult for others to understand. This can cause frustration for speakers as they are asked to repeat what they have said or to find another way to explain themselves. It may have a negative effect on job performance and cause missed job opportunities.
Despite this, there are significant advantages it can bring to people a unique character.  Many people take pride in their individual accent, they almost do not change accent even going to others place to live. Proponents of this view say changing their accent is not necessary to be success. For instance, when President Ho Chi Minh and General Vo Nguyen Giap were at Ba Dinh square on September 2sd,1945, they had a perfect speech, even their accent was not a standard accent, just based on Vietnamese national origin language but everyone understood what they said.
In conclusion, changing accent will lead to increased opportunities in society. However, an accent is not a bad thing, it is part of who you are and It connects you with your family and a particular part of the world.




Why did I write this?
These days, I watched a video about my introduction speech for thesis, I realized that my accent is original dialect, and sound like a person who just came to the city a few day. Even though I have been living in Taiwan for 7 month, my accent is still “original” :) This is the main reason. :p


Read more... »

Thứ Sáu, 7 tháng 4, 2017

Contact Information

If you are interested in reading something a bit more in depth about academic knowledge, experiment in work or anythings else, these are some way to connect to me :

Facebook :    Le Song Lam
Youtube:       Lesonglam
Fb fanpage:  PLC 

Department of Mechanical Engineering
National Chung Cheng University, Taiwan 
Mobile : Taiwan  (+886) 978.374.458 

              Vietnam   (+84) 979.829.469

P/s: In academic field, I can recommend some books and academic journals.I look forward to hearing your feedback and any request. Thanks for your visiting my blog.
Read more... »

Thứ Năm, 6 tháng 4, 2017

My photo collection

Since I bought a camera in 2017, I've taken thousands of photo. Over time, my photo-shoot skill is a bit improving. Although it's nothing compared to others, I have enjoyed photography very much. Here is some which I like the most!  Most of pics are photo of Mita, and other girls in our school-National Chung Cheng University.
Hope you like it.





 I took this photo in a late afternoon near by my dormitory. 



This photo was taken in a early morning in CCU's campus. 

Alishan (Ali Mountain), we lost the last bus in a sunny day. We walked around Alishan shoulder to shoulder. We had a great time together there. 

Again, Alishan
CCU's library-used to the biggest school library in Taiwan
Summer in my school
My bike, it have been along side my for almost 2 years 




The broken bridge. According to rumor, if any couple pass through this together, they will broken after that. I would never try it, kaka








From air plane's window






.....still continue 

Read more... »

Cafe cùng Tony - Sách hay tôi đã đọc

Cafe cùng Tony - Sách hay tôi đã đọc
Whenever I get time, I always try to read books and the ranges vary from technical, religious, novel and contemporary book. The book I would like to describe is a guide book called “Cafe with Mr.Tony”, and it is written anonymous. I just know his Pen Name is “Tony”. That book is a collection story about young people in Vietnam, especially about the author’s journey in the US. “Cafe with Mr.Tony” tells a truly motivational story for someone who perceives their own life tobe boring and uninspired.
Most of the characters in the story are from all walk of life, but all of them have one thing in common that they have stepped outside their comfort zone to become a successful person in the modern world. Some people are from remote areas, but they tried their best and got scholarships from Harvard, Yale in the US. Others had changed their “destiny” from a normal worker to become a boss, and have a decent life.
When I was in the college, some friends told me about that book, and I read it sometime. I was not really interested in, but after I graduated from school, I read it again, and my feeling was different. I felt like the author motivated me to affect positive change in my life, inspired me to challenge myself. From that time, I had a dream to study abroad. After re-reading it some time, I gave it to my sister and she really likes it either.
Source image: Internet

         
Read more... »

Thứ Ba, 4 tháng 4, 2017

OPC Kepware and C#

Recently, I have received many question about How to connect OPC to C# .
These are a good instruction for you. Following step by step, you can easily finish your project. 
Good luck !!!!!!!!


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OPCAutomation;




namespace OPC2
{
    public partial class Form1 : Form
    {
        public OPCAutomation.OPCServer AnOPCServer;
        public OPCAutomation.OPCServer ConnectedOPCServer;
        public OPCAutomation.OPCGroups ConnectedServerGroup;
        public OPCAutomation.OPCGroup ConnectedGroup;
        public string Groupname;

        int ItemCount;
        Array OPCItemIDs = Array.CreateInstance(typeof(string), 10);
        Array ItemServerHandles = Array.CreateInstance(typeof(Int32), 10);
        Array ItemServerErrors = Array.CreateInstance(typeof(Int32), 10);
        Array ClientHandles = Array.CreateInstance(typeof(Int32), 10);
        Array RequestedDataTypes = Array.CreateInstance(typeof(Int16), 10);
        Array AccessPaths = Array.CreateInstance(typeof(string), 10);
        Array WriteItems = Array.CreateInstance(typeof(string), 10);
        
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            
        }

        private void btnConnect_Click(object sender, EventArgs e)
        {
            try
            {
                string IOServer = "Kepware.KEPServerEX.V5";
                string IOGroup = "OPCGroup1";

                ConnectedOPCServer = new OPCAutomation.OPCServer();
                ConnectedOPCServer.Connect(IOServer, "");
                ConnectedGroup = ConnectedOPCServer.OPCGroups.Add(IOGroup);
                ConnectedGroup.DataChange += new DIOPCGroupEvent_DataChangeEventHandler(ObjOPCGroup_DataChange);
                ConnectedGroup.UpdateRate = 1000;
                ConnectedGroup.IsSubscribed = ConnectedGroup.IsActive;


                ItemCount = 2;
                OPCItemIDs.SetValue("Channel2.Device1.R1", 1);
                ClientHandles.SetValue(1, 1);
                OPCItemIDs.SetValue("Channel2.Device1.R2", 2);
                ClientHandles.SetValue(2, 2);

                ConnectedGroup.OPCItems.DefaultIsActive = true;
                ConnectedGroup.OPCItems.AddItems(ItemCount, ref OPCItemIDs, ref ClientHandles, out ItemServerHandles, out ItemServerErrors, RequestedDataTypes, AccessPaths);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

        }

        private void btnDisconnect_Click(object sender, EventArgs e)
        {
            ConnectedOPCServer.Disconnect();
        }

        private void ObjOPCGroup_DataChange(int TransactionID, int NumItems, ref Array ClientHandles, ref Array ItemValues, ref Array Qualities, ref Array TimeStamps)
        {
            try
            {
                for (int i = 1; i <= NumItems; i++)
                {
                    if ((Convert.ToInt32(ClientHandles.GetValue(i)) == 1))
                    {
                        textBox1.Text = ItemValues.GetValue(i).ToString();
                    }
                    if ((Convert.ToInt32(ClientHandles.GetValue(i)) == 2))
                    {
                        textBox2.Text = ItemValues.GetValue(i).ToString();
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            
        }

        private void btnWrite1_Click(object sender, EventArgs e)
        {
            try
            {
                WriteItems.SetValue(textBox4.Text, 1);
                ConnectedGroup.SyncWrite(ItemCount, ref ItemServerHandles, ref WriteItems, out ItemServerErrors);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

        }

    }
}


Watch more about communication between
 PLC and C#, without OPC:  
https://youtu.be/PruLwQsBX_M

P/s: Nếu bạn gặp lỗi khi add dll thì theo code project
 The files myOPC.dll and Interop.OPCAutomation.dll both should 
be referenced by your client file and their properties "Copy Local" set to true. 

and more My project - Youtube
Read more... »

About Sunmoon Lake trip

Last week, I went to a tourist place. It is a remote area and natural scenery. I saw there is the most beautiful natural I have ever seen in Taiwan. It’s SunMoon lake, located in Nantou Country - southern of Taichung, Taiwan.
Sunmoon lake in the early morning
It’s the big lake, surrounded by mountain and often cover in fog in the morning. That picture made a combination that I felt something out of the world (maybe from the Moon).
I heard some friends presented about, that place is very nice but I could not believe how beautiful it is until I saw it with my eyes.
A couple was taking with each other
We bought a combo ticket combination of shuttle boat and bus, ropeway and bicycle. Shuttle boat took us to a place named “Shuishe Pier ”. Then we got a bicycle, We were cycling for several hours along the lake on the road with the old wooden fence. In the middle afternoon, we went to Ita Thao Village by cable car (I don’t recommend that you take this choice, I prefer walking on step stair to save money :)) ). From ropeway, we had an overview to SunMoon lake, especial to see cherry blossom and mountain.
We left in the late afternoon. On the boat, looking at the lake, following gently water were all around, I got my head out of the cloud, it was incredible feeling that could exist only in my imagination.

And at the train station, it was not easy to say goodbye, I just gave a hug and said “^^” to her. I’ll never forget that remarkable moment no matter what will going on !!!!!!!!!!!!!
Some other pictures were taken in Sunmoon lake




Read more... »