Guowei Lv

5 minute read

Let’s build a sliding menu from scratch by hand. First a glimpse of what the final result looks like.

Step 1: Horizontal Scroll View The secret is that this is just a customized HorizontalScrollView: class SlidingMenu @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 ) : HorizontalScrollView(context, attrs, defStyleAttr) { … } The view can be divided into 2 parts: menu view and content view, and they are just put next to each other.

Elementary Pascal

My first book on Pascal

Guowei Lv

1 minute read

I got this book a while ago. I want to get 2 things out of this book: Learn some basic Pascal in order to read the Algorithms Plus Data Structures Equals Programs by Niklaus Wirth. Find some entry level programming teaching material that I can use to teach my kid to program. Code

Monthly Favourite Songs

December 2020

Guowei Lv

1 minute read

佐井好子 Can’t believe these albums are from the 70s, ten years before I was born and sounds much better than 99% of todays music.

Monthly Favourite Songs

November 2020

Guowei Lv

1 minute read

Deva Premal & Miten I’m naturally attracted to the religious music since I was very young, maybe under 10 years old. Deva Premal is one of the best that I can find in this genre that is also easy to be enjoyed by a normal person. And when I traveled to Malaga in Spain, I listened to her songs all the time, and since it is a place near the Arab world, somehow it fit perfectly.

Guowei Lv

3 minute read

Do you think Computer Science equals building websites and mobile apps? Are you feeling that you are doing repetitive and not so intelligent work? Are you feeling a bit sick about reading manuals and copy-pasting code and keep poking around until it works all day long? Do you want to understand the soul of Computer Science? If yes, read SICP!!! In Lecture 7A: Metacircular Evaluator, Part 1, Mr Sussman said that he was going to fit the whole evaluator on the blackboard.