Showing posts with label lessons learned. Show all posts
Showing posts with label lessons learned. Show all posts

Wednesday, October 26, 2022

7 lessons to learn PHP, MySQL and WordPress

Oct. 26, 2022

It is so exciting to learn PHP and MySQL this past month of October, and I like to write down some lessons I learned from my experience in 2022. 

Introduction

I have to learn how to support a WordPress website. I was so curious to learn so many things about WordPress. I did read a few books in detail to try to figure out how WordPress is architected and then why it is so popular. I also did learn a few plugins and then try to read PHP/ MySQL source code. It is hard to learn, and then I had to work on a few project first, and then improve my knowledge of PHP and MySQL. It is challenge for me to go back to a daily life, push myself 100% to finish a coding project. I did spend first two months to read and learn so many things. 

There is nothing special about WordPress; Before I can learn better about WordPress, it is better to work on coding project using PHP/ MySQL first on XAMPP. 

Learning is hard 

Most important is to work hard. There are so many things to learn, and it takes time to get used to PHP and MySQL work environment. 专心学习编程, 不要考虑其他事情。 

I did watch a few Linkedin learning courses related to PHP and also WordPress. 

My lessons

  1. I spent time on youtube.com videos related to WordPress and PHP first; 40+ hours;
  2. I decided to subscribe Linkedin premium, I took a few courses on LinkedIn learning related to PHP, mySQL. The exercise files are very helpful, and it saves me a lot of time. 40-100 hours;
  3. I did not code the first three months; I wasted time, and I needed to learn project management; Do not waste time on other things in my life; I have to work hard on projects, and then I have chance to learn something new;
  4. Try to put code into Visual studio or Visual studio code; there is big difference to learn, if I learn by working on coding project, I will be much more smart to learn important things;
  5. There are so many things to learn once I started the project to code PHP; 
  6. I had difficult time to make it AJAX work using JSON; I spent a few hours at the day, and I did not know client or server side should set configuration code: header('Access-Control-Allow-Origin: *');



 

Wednesday, September 30, 2020

MRO stock: 1000 shares of MRO purchased on Sept. 28, 2020

 Sept. 30, 2020

Introduction

It is my short drill to practice how to hold 1000 shares of MRO stock. I like to write down something to remind me to learn something from my USA IRA account. 

MRO stock

It is easy to buy and sell since the volume is over 10,000,000 each day. I am not sure why so many investor buy and sell every day. 

I also think that oil price is low right now. If I can stay long time, then I should get 10 to 20% return at least. 

It is too many shares compared to the price $4.15. I already has loss 5%. I need to set trailing stop so that I will lose more than 500 dollars on this position, same as I did with SABR stock. 

MRO stock 1000 shares - stop loss

It is hard for me to learn how to stop loss early. I still gambled on Sept. 28, 2020. I thought that it was a good idea to bet on MRO rebound near 10%, so I stepped in when MRO rebounded around 4%, but it did not happen. 

It is important for me to stop loss early when the priced dropped 10cents, so that my loss would be $100 dollars for 1000 shares. If I set stop loss on 5 cents, then my 1000 shares of MRO stock will have $50.00 dollars. 

It is much easy for me to recover $50.00 dollars, but it is hard for me to recover $190 dolloar loss. 

It is hard to resist the gambling thoughts

It is hard for me to resist gambling thoughts. I have to be careful and take small stop loss instead of letting 1000 shares of investment go down almost 30 cent/ share. 


Use five day chart to calculate risk

It is better for me to calculate risk before I purchase 1000 shares of MRO stock. The lowest price is $4.06, so I can calculate the risk is $300 dollars if I do not stop loss early. Actually it is true that on Sept. 29, the price went down $4.06, I was so nervous, and I set trailing stop when the loss was around 5%. 

In the evening of Sept. 29, 2020, I put together a sell order to sell MRO 1000 share at price of 4.34, but it did not happen. 


Sold with $190 dollars loss

I have to learn how to cut loss each time I place a bet. Set stop loss around $50 dollars and make it less than $100 dollars. 

If I continue to bet on MRO stock, then I may end up with loss over $600 dollars. I had loss over $600 dollars on SABR stock. 


Actionable items:

Dec. 10, 2020

I learned the lesson. I sold 1000 share of MRO, now the price is around $7.0/ share. Almost 100% gains. I sold because I did not expect big gains and hard to beat the market. 

So it is more important for me to stay in long term, and bet on 80% return in stock market. 


Follow up

Oct. 17, 2021

I like to go back to work on investment of oil stock MRO. I just could not believe what I think about MRO as a stock to invest. 


Wednesday, August 12, 2015

Blogging benefits

Julia likes to keep her own research on writing benefits as a software programmer. So, she keeps the log of her research.

August 12, 2015

Read two articles about benefits about blogging as a software programmer. Great ideas in the blog.


http://kb.cnblogs.com/page/517038/

http://kb.cnblogs.com/page/526625/

Dec. 17, 2015
Take some notes from above blogs:

提高自己对知识的掌握层次

  美国教育心理学家Bloom将知识认知分为了两个维度,其中认知历程维度又分为6个层次, 由低到高,分别为:记忆、理解、应用、分析、评鉴、创造。层次越高,表示对知识的掌握程度越深。

提高表达和沟通的能力

接受读者的沟通和反馈

影响力

January 3, 2015

Thomas Friedman: Lessons Learned After 20 Years of Writing Columns

https://www.youtube.com/watch?v=dxXx3XvNVWA&list=PLxq_lXOUlvQAwaY_9K4ZFH9Xdar9WzCaL&index=19

Note:
1. Learn to listen; person can sense if you listen, respect him/her; wait until he/she finishes the talking.
2. Always be a big tipper. Sign of respect. Always be nice to helper.
3. Always call your mother. I wish I can call mine.

January 12, 2015


Hiring Rockstars by Roger Philby

https://www.youtube.com/watch?v=R22dJ7bn-pU&list=PLgYNPs-V9YFPqcnEvbIy5hFE40BjxMbjw&index=2

A person loves to write, then the person must love to read, and then, the person must be intellect curious. That is one of 5 things in the talk:

1. intellect value
     - how we judge people - how we collaborate - highly collaborate - not collaborate - collaboration -  need to know that, how to measure

fast/decisive - consensus - relationship - seek colloaborate

value in your business - big company

3. conformity -

4. Motivation -

5. Experience -

High performance -

March 23, 2016

http://onstartups.com/tabid/3339/bid/14208/Why-Every-Entrepreneur-Should-Write-and-9-Tips-To-Get-Started.aspx

http://www.c-sharpcorner.com/article/why-every-developer-should-write/