No, I am not talking about Shannon’s Noisy-Channel Coding Theorem.

By information, I mean news in general. Because we are exposed to too much information on a daily basis, most of them become noise in our life. For example, it won’t hurt if you miss all the news for a week or a month. Your life goes on. And you know what, the most important news to you will find you anyway.

The world is watching Oprah’s interview with Harry and Meghan. And the media is waiting for the royal family to respond.

Based on what I have witnessed (on television of course), they are being normal people and they are being a normal family with normal family issues. People may judge or gossip the royal family members because they are some kind of celebrity. That’s fine when people don’t have anything meaningful in daily conversasion why not talking about someone else’s life.

But keep in mind they are just humans. At the end of the day, everyone has their own struggles in life, everyone has their own wars to fight.

I feel connected with the young couple, and I am very happy they got the courage to make the change.

I am not sure if I have mentioned this or not, CS50 courses are awesome. Great resources if you are looking for a place to start learning your CS knowledge. It is an entry-level course taught by David J. Malan in Harvard, and it is free. I think CS50 has motivated me in a way and convinced me that CS is something worth learning and doing as a career. Thanks to the internet, we can have the learning experience with such a wonderful teacher David Malan. Please google the course links or watch it on Youtube.

If you really want to be a coder, do it today.

I guess it is interesting to see a 4K video which is upscaled from an original 720p video. We can achieve this using ffmpeg.

1
ffmpeg -i input_720p.ts -vf scale=3840x2560:flags=lanczos -c:v libx264 -preset slow -crf 21 output_4k.ts

Even if you can do this, still, my suggestion will be, DON’T do it.

Something you don’t do in an elevator pitch.

“I can tell you what happended during my university, it was blablabla”

“Hi, which floor you want to go, ok, you have missed your floor already.”

“We are here to talk, forget about pressing the buttons.”

“I have no idea why I am here.”

“How about let me sing a song for you.”

“No, I am waiting for you to introduce yourself.”

“What do you think about the weather?”

“Have you watched the new movie?”

“You look like someone from an interview panel.”

Previously, I listened to the topic of remote working in one of the podcasts. It is something new to me if the work is entirely remote, but I would say to some extent, we need to get used to this concept of remote working with colleagues in a team. In the beginning, you might feel the pain that when you need to talk to someone to get things done, but other people are living in different time zones, which means they are still in their sleep. So you have to wait.

After the pandemic, I think people will realize that most of the office work can be done anyway at home. So finding a better way of collaboration among people in different places is one of the most important things to do. You can write more emails. Maybe.

When I am trying to use the AT command in terminal, it prompt with such a message.

1
“Terminal” would like to administer your computer. 
1
Administration can include modifying passwords, networking and system settings.

It seems you have to grant futher access to the terminal so it can work properly.

Today, I was trying to use VLookup function in excel to find a particular item in one column with multiple criteria in other columns. It can be done with adding extra columns first to create one real column to look up for and attach the data column you are looking for after that artificial column. For example, you can combine column A&B&C to merge them into one column, so that you can use VLOOKUP(item_A&item_B&item_C, A&B&C&data_column, 2, 0) to find the result.

To avoid making extra columns, in this case, A&B&C&data_column, I found we can also use IF({1, 0}, A&B&C, data_column) to make such matrix instead of actually copying & pasting to create one. Because IF function can work with array {1, 0} as logical tests, so basically it runs the first test with 1 (i.e. True) and then again with 0 (i.e False), in the end, it generates the result matrix A&B&C & data_column. Really impressive because it looks simple and elegant.

I am reading the book called Code: The hidden Language of Computer Hardware and Software. It is quite informative and fun. It took some chapters to build some small pieces of hardware. At that moment you have no idea where this is going, because you don’t know how to use this hardware. It did lead you somewhere in the end that you can put them together to build an entire computer.

What a great experience. It helps me to understand how computers work and especially how things work in small scales and how things evolve historically. Thank you Charles Petzold, it’s a good book.

These notes are for easy reference since I am new to Git.

You can clone the particular branch in the repo.

1
git clone -b branch-name

After you have done the git clone your repo to the local device, go inside the repo folder via terminal. You can check git status or check which branch you are in.

1
2
git status
git branch -a

If you want to double check if origin is correct.

1
git remote -v

You can fetch the branches along with their respective commits, but not the actual files.

1
git fetch

If you need to synchronize your branch list, for example, a branch is delete on github but not on your local machine.

1
git fetch -p

You can pull actual files with info such as the branches with the respective commits.

1
git pull

You can create and checkout the new branch at the same time.

1
git checkout -b new-branch

After working on your file you can add the particular file to this branch.

1
git add filename

Or add all file in the current folder to this branch.

1
git add .

Then you can make a commit locally, remember always to add some comments for your commit.

1
git commit -m "Fixed some typos"

If you are using GPG to sign your commit, add -S in the end.

1
git commit -m "Fixed some typos" -S

Normally, you can now push your new-branch together with the new commit to Github. Later you can go to pull request on Github.

1
git push origin new-branch

Or perhaps you want to merge the new-branch locally with your master branch. First, go back to master branch then merge.

1
2
git checkout master
git merge new-branch

If you have sucessfully merged the branches, you can choose to delete your previous new-branch locally. Be careful here.

The -d option stands for –delete, which would delete the local branch, only if you have already pushed and merged it with your remote branches.

The -D option stands for –delete –force, so by the name, you can guess it will delete the local branch no matter if you have pushed/merged or not.

So, please be extra careful. I suggest you use -d unless you are totally sure and have double checked the git status.

1
2
git branch -d new-branch
git branch -D new-branch

If you previously have pushed the new-branch to Github and now you want to delete it remotely, yes, you can.

1
git push origin --delete new-branch

When in doubt, please read documentations.
https://www.git-scm.com/doc

0%