Monday, October 23, 2017

Meditation and changing my habits


The real problem with me is to think throughoutly and fast. This is quite a challenge because I find myself distracted by my own thoughts, I could not focus on the current situations nor think fast enough. There should be a solution, I was thinking about Meditation which helps to calm me down and think deeply inside my soul. Practicing meditation is very common and it helps many people in this busy world. To have time for mediation and other activites as planning and writing, I have to wake up early and give myself an hour. It's all about changing my habits and adjust them for the better. A good habit is obtained by doing the same things over and over again for a long time enough, maybe one month at least. Everyone can have good habits, and good habits contribute to people's success. There is no doubts about it.

Monday, October 16, 2017

random thoughts

What can I say now? Words cannot describe this circumtance where people beliefs are in very low level and many don't have a goals for their lives. I used to think that if I study hard and be good at English and computer, my life will be bright and I can be a global citizen. But life is not that simple, there are too many obstacles and hardships that prvent us from getting what we really want.

While this don't work out very well, we should continue to do the best we can. For example, I haven't got a GF, and not likely to have one very soon, there are things that I still have to do instead of complaining all the day. I registered for the gym today, and I will do more the useful stuffs like writing or coding, or going out with friends. Hosnestly I don't have many friends now, those whom I used to play with are now busy with their own lives, so I have to make some new friends.

Saturday, October 14, 2017

She just played game with my heart

It's so sad that she just played with me, took advance of me, and she has no feeling for me whatsoever. I was so happy to be with her at the times, but it does not last long because I am not enough for her, she definitely needs a better one - more handsome and talented. I cannot do anything about it, so I won't try to contact her or impress her anymore. Instead, I will be just another friend of hers. It hurts but I have to face with reality, I will stop thinking too much in my head. I will just do it, forget all the sequeces. Sometimes it is good to focus on myself, not other people, to know deeply what I really want and what I have to offer to the world.

Thursday, October 12, 2017

My Laos Trip

It was a long trip to Laos, and more interesting and exhausting than I expected. The two-day-on-bus travel was very tiring. It was a nightmare for some of my friends from the West.



Anyways, the border was beautiful in the morning



We started from Hanoi at 6:30PM and arrived the Nam Can border at about 5:15 AM, so we had to wait for the officers to work from 7:00 AM. It took more than 2 hours for the immigration procedures to be completed, way longer than I ever imagined.

I was on the bus to  Luang Prabang, so I had to get off the bus in middle of the way and take another bus to Vang Vieng. I stopped at Phou Khoun waiting for the next bus



This man on the left was responsible to take me to the bus, he was playing some kind of board game that I had no idea about.



And this is Vang Vieng



I joined this two lovely girls from England as we met on the hostel



We took a tuk-tuk to the Poukham Cave and Blue La Goon at Nathong Village in Vang Vieng



We enjoyed the cave so much




I left Vang Vieng on Sunday afternoon for Vientiane. The Laos' capital was so beautiful, and much more organized than the chaotic Hanoi. It has a breath of a furture modern city.








It was so good to walk around the city in the evening because the roads are clean and not much traffic. The only problem was that it's so hot and humid in Laos, there are even no wind at all. There are more cars than bikes and the streets were built with a good quality, so I thought I wanted to live in Laos and own a car.

Laos is not a too-deploited country like Vietnam, it still has the forests and the population is not very dense, actually it is ten times less densed than Vietnam.

I was happy to be able to see the beauty of Laos with my own eyes. I will come back to this country next  time.

Wednesday, October 4, 2017

Prepare for the Laos trip

I bought the ticket to Vang Vieng and it costs 950k VND, which is relatively high compared to a discounted flight to Bangkok, not mentioned that I need to spend a whole day on the bus and it will be tiring. To get to the Nuoc Ngam bus station at 6:00 PM, I have to go home early at 4:00 PM and then take a BRT bus and then a grab bike. If that takes me too long, then I will take the grab bike only, it might cost me 30k VND more but I don't have to wait for the bus. Things I need to prepare:

  1. Passport
  2. Money
  3. Food: a big bottle of water and some snacks, cakes
  4. Toilet paper
  5. Clothes
  6. And other stuffs like phone, lens,...


I got a initerary from Hang Dinh and I will find out if it has something I am looking for.

Monday, October 2, 2017

Booking ticket to Vang Vieng

The initerary is still has some details that need to be updated. I tried to book ticket to Vang Vieng but I couldn't call the bus, so maybe I'll try again tomorrow. Meanwhile I booked a bed in an eight-bed dorm in Vang Vieng so at least I will have a place to sleep when I arrive there. The bed costs me only 247k VND for two nights and that's acceptable price. I think I will book a bed in Vientine later when I am in Vang Vieng, so that the time could be more flexible. I will spend a million VND per day for food and sight seeing, and the number could be changed if there is a special thing out there. For example, I really want to take a balloons ride which costs me $90 (maybe $80 if I could negotiate in some way). So it is a whole two days budget just for one ride, but it worth the try and it's relatively cheaper than other places. The rooms would cost me 500k VND more, and I basically spend 2 millions VND on bus tickets and beds. The food takes me one million more, so if I take the balloons ride, then I have to prepare about six millions in total.

Sunday, October 1, 2017

Laos trip initerary


I will go to Laos next Thursday and I need to make plan quick. I will get some Kips today and will have a small bag in several days. There is the need to bring clothes and money for my trip. I also have to book the tickets and rooms in advance. I mainly used tripadvisor for getting information of places I want to go and I got a saved list of places to visit in Vang Vieng and Vientine.

First, I will be in Vang Vieng at about 6 PM, then go to Vang Vieng Homestay at 6:30.

Day 1 - Friday

To Vang Vieng at 18:00
Get a bed at Vang Vieng Rock Backpacker hostel
https://www.tripadvisor.com/Hotel_Review-g612363-d11893917-Reviews-Vang_Vieng_Rock_Backpacker_Hostel-Vang_Vieng_Vientiane_Province.html

Go around the town and have dinner at Viman Vang Vieng
Feel so tired so go to bed and dream for the next day

Day 2 - Saturday

I need to do something fun, to not waste my time here. So I consider a climbing school, a bike school, or a balloons ride. The balloons one is a bit expensive (80-90$)

The night comes, and there are some nice bars to hang around.

Day 3 - Sunday

Check out the hostel at 10 AM
head to Vientine
Get a bed
Go around the city

Day 4 - Monday

Still go around
Get a bus to HN at 17:00

Thursday, September 28, 2017

A failed interview

I am feeling so bad now. The interview this afternoon did not go well and that made me so sad. To tell the story from beginning, I was reached out by an HR lady from FPT Software for a Fullstack JS developer position last week. I did not intend to leave CMC, but I wanted to see if I would be qualified for the job, and to see if there is anything interesting about the project. So I accepted the invitation and went on to the interview with some Vietnamese guys from several teams in FPT. I passed the interview and we discussed about the salary and so on after that. I was still not so interested in jumping job at the moment, so I said that I need to learn more about the project before deciding to join. Several days later, the HR girl asked me to join a discussion with their customer, I thought it was not an interview but some kind of talk in which they tell me about their project and requirements and so on. But it turned out that it was a real interview, even a white board coding interview with an old Japanese man. And the interview left me with a shame.

I did not say that the interviewer was bad or something, but his questions, I mean, all of the questions he asked me, were unexpected to me. I had not been prepared for those kinds of questions. First, he asked me to rewrite a JS function to not use the async keyword. I did it with an arrow function, as I used to do with my Angular project. Just that was not the answer he was looking for, so he wrote the correct answer for me, even explained his solution in details. I was there, not knowing what else to do except nodding regularly to him.

the function

async f(x) {
if (!x) {throw new Error()}
return x;
}

my answer

function f(x, () =>
if (x) => throw new Error();
return x;
)

His solution

function f(x: String): Promise {
return new Promise((x, rej) => rej(x));
}

The next question was about Express.JS which he wanted me to propose a solution to have version path of APIs in URLs, so that he could have many versions of an API working independently.

# url: server-address://users/v1/list
# url: server-address://users/v2/list

app = Express()

app.use('/users', userService)

app1 = Express()

app1.use('/users', userService1)

I, again, had no idea what to do whatsoever. I stood there, just wanted to find a hole to jump in. And finally, he wrote his solution for me

app = Express()

app1 = Express()
app1.use('v1', userService1)

app2 = Express()
app2.use('v2', userService2)

app.use('users', app1)

app1.setUp(app)

That moment the only thing I wanted to is to leave the interview immediately, despite I've learned a lot from him by watching him writing the solutions for me. He then asked me if I had any working experience with MongoDB, I hostnesly said that I only have a very limited knowledge with MongoDB and NoSQL in general. So he had to ask me about relational database. He wrote on the board

A
C
I
D

and asked me what does each of the letter stand for. The only word I remembered is the first one - Atomic. But I don't even remember what does it mean, and I couldn't figure out what other letters stand for. After a while letting me think, he had to write the words

Atomic
Consistency
Isolation
Duration

and asked me the meanings of Atomic and Isolation. I was not able to answer properly, despite that I was sweating so much that my T-shirt was almost wet. Then again, he answer the questions himself while asked me some more questions on the transactions, how to implement Atomic, or how to avoid Phantom read. I had no idea of those terms, so I let him go on.

The interview ended and I was in shame. I couldn't imagine how struggling the time I've spent there and I wished I had at least one answer for those questions. After the interview, I swear to myself that I will ask for more details on what the interview is about and what do they expect me to have. I will make sure that I focus only on my strong points. After all, noone knows everything, so be strong in some limited technologies and be good at commonly used knowledge.

Wednesday, September 27, 2017

Going to work and accident

This morning when I was going to work, I went across an accident. There was a motobike laying down on the right side of the street, when I approached the motorbike, I saw a young lady laying just below the bike, that means the bike actually lied on her, and she was not moving at all. I stopped to see what just happened, and was thinking whether I should help or not. There was a man tried to pull the bike out of her and take care of her then. Also there was another man stopped in front of me, and he told me to go if I was not intending to help. So I continued my trip to work, blamed myself not take action quickly and help her instantly. I was upset that I did take too much time thinking, I was somehow affraid of something that I didn't aware of. I swore with myself that I will be brave enough to take the action and help people without thinking too much.

Arrived my work place, I went on with my Odoo project after the breakfast as usual. Odoo is kind of an ERP (Enterprise Resource Planner), a software for Businesses to manage their resources including fixed assets, human resource, and also project management or sale. This software has been in trend for quite a while and it benefits lots of small and medium enterprises (SME) because it is free and open source. I did not have any idea how Odoo works and even what it's for untill the time I took the request from my boss. I began to study the software and try to get familiar with it. I have been working on it for one month and for now I at least know what to do with it, just not knowing how. I find it so strange and comlicated because it's a huge software and the fact that I never worked with any kind of ERP software before. Odoo is designed with M-V-C model, just the same as most of the websites today, but it's still different in how it implements each of the layers. Instead of using html, Odoo represents the view in form of XML files. And naming conventions are so much important that I had to take sometime to get used to.

My plan of writing and travelling

I decided to write something, just anything - one hour a day. It's not too long but it's not easy to keep this to be a habit. I am writing daily journal but it does not take much time because I write only three sentences at once. However, I missed some when I wake up late or just do something else instead. To make writing a habit, I need more discipline and the priority in each action. So to make this writing habit a reality, I wrote a note to remind myself of the task I need to work on. So after an hour writing, I will have a relax time doing anything I want, such as surfing facebook, reading news, or watching Youtube videos.

By the way, I'm planning to go to Laos and this will be a great trip because I've been to Thailand before and I have some experience in going abroad. After a while looking around and calculate the cost and time, I decided to go to Vientine and Vang Vieng only, and not go to Luang Prabang because it's too far and will take too much time. I will be in Vientian 1 and a half day and Vang Vieng for 1 and a half day. That's a whole four days including travel time in Laos. So I will take three days off and with two days in weekend, I will have total of five days.

Day 0

From HN at 18:00

Day 1

To Vang Vieng at 18:00
Get a bed
Go around the town

Day 2

Still go around the town

Day 3

Check out the hostel and head to Vientine
Get a bed
Go around the city

Day 4

Still go around
Get a bus to HN at 17:00

Day 5

Back to HN at 17:00
Take a rest and prepare for the work

While this plan seems to work, I still need more details on the time and the plan B if any unexpected things might pop out. The travels from HN to Vang Vieng and back both take a whole day, so it will be tired and I need to prepare quite a bit. Water and food, and clothes, and even toilet paper are crucial for the journey. I will prepare some money also, I already have some dolars, and now I need some Kips. The travel cost is about one and a half million vietnam dongs. So I will limit the total budget within four million vietnam dongs - that's quite a handsome money budget for just three days in Laos because three and a half million vietnam dongs is really enough for both acommodation, food, and tickets. The only problem now is how to find a good initerary to make the most out of this trip. I need to explore the city, the nature, and talk to people. There is also a great chance to meet people around the world, I can make some friends along the way.