Showing posts with label minimalism. Show all posts
Showing posts with label minimalism. Show all posts

This Week I Learned 2018 - Week 12

Last week post or something from the past.

A minor adjustment of book placement and I've been reading one page per day without any interruption for the whole week. Keep the reading streak going!


There is a Chinese idiom, “对症下药”. With the right medication, a disease can be effectively cured. Surprisingly the medication that I've impulsively bought reduce the inflammation and speed up the recovery process. The problem have been plagued me for the past 4 years and it's finally reaching to an end. Surprising (not really after you went through different doctors), I've consulted a few doctors in the past but they can't seem to give the right prescriptions (can't blame them, doctor these days just want to sell more medications that fix symptoms). In the end, I've to thank to that pharmacist who ever he is.

Two interesting English words I've found, may sounds a bit too fancy. Big word, they said, nevertheless sounds "intelligence". Affordance. When come to daily object interaction, the handle of a cup is a good example to describe the words. The handle gives an obvious way on holding it. Kerfuffle. This was a popular words this week in the NBA, basically refers to a commotion between NBA players. Yes, big word.

Back to regular weekly learning new English words. Here we go.
The posthumous (作者死后出版的) publication of the researcher on the hydrodynamic (水力的) model of the eruption of the underwater volcano aroused quite a few interests among the archaeology field. While the late researcher main focus of the publication was on the igneous (火成岩) rocks formation, there was a section which documented about the ancient ideograph (象形文字) found within the underground caves carved (雕刻) by the lava near the coastal(沿海) and insular (海岛的) area. Insulated (使隔离) from the air under the sea, archaeologists are still puzzled how the ancient civilization were once ever existed in that area.
Hoarding? Too much stuff? Read this post on how a Redditor removed that habit. In short, go to thrift shop on weekly basis, you will aware that most stuff bought or collected will ended up there. The most memorable things are your experience in life, captured in photos or some ways or another. Definitely something to ponder.

This Week I Learned - 2017 Week 00

Happy new year!

2017, the year of the fire rooster. It will be interesting to see what this year will unfold itself. The plan will still remain the same every year. The usual stay alive and healthy, more reading, learning, writing, coding, and producing as well as build new habits. In other words, do, try, make more mistakes. As they said, "One who makes no mistakes make nothing at all". Be constant aware of you thoughts and actions. Live in the moments. There is a Zen saying, "When hungry, eat. When tired, sleep". Nevertheless, do plan ahead and learn from your past. In short, continue what you planned last year and adjust accordingly.

Learning reflection for 2016. I wrote 58 posts last year. Still a firm believer of quantity over quality. Writing is like exercising, you need to practice persistently to get better. However, blindly deliberate practice without any targets may be wasteful and leads to no where. Still something to ponder about. What I learned last year? Mostly Perl and Git as well as others stuff in between. When there are always rooms for improvement, all these exposure to new old stuff (Perl is damn old anyway) did satisfy my intellectual curiosity. Exposure to C++ for the last two months was interesting. It really piqued my interesting on static type programming languages.

As usual, here we go, something new I've learned this week.

#1 According to ISO 8601, the definition of week 01 if 1st Jan falls on Monday till Thursday. If it falls on Friday till Sunday, it's still the last week of previous year. However, there is no week 00. Nevertheless, I still prefer to call it week 00, as 1st Jan signifies a fresh start.

#2 Information overload? Thinking of applying digital minimalism? (via HN). FOMO is probably is main cause to our digital clutter. Unless these digital tools can bring values to your offline life, ditch them. Likewise, I still have a long way to go with my minimalist lifestyle, not everything fit into one bag yet. There are literally thousands of things I wish to ditch away. Still, one thing at a time.

#3 The D programming language. If you're doing doing development for quite some time and follow the programming language trend, you probably heard about this programming language. I've stumbled upon this again while doing some C++ coding. Developed as an alternative or replacement to C++, it still failed, after all these years, to gain any traction (based on my reading and impression of Thoughtworks' Technology Radar, HN, and Dlang subreddit). It was one year ago since Andrei Alexandrescu quit his secure job at Facebook (get a big pay cut but financially still ok) to push D forward on full time basis, does it really helps?

I played and read through the documentation, on the surface, it's looks quite nice, Python-like syntax with C/C++ speed but isn't Golang or Nim existed for the same reason? Nevertheless, the documentation was fun to read. Love the Contract Programming, especially the Invariants.  The wiki post on Components Programming Using D (ala functional programming) was one of the most interesting read on programming language this new year.

While we at it, some adjustments are needed to get Dlang to work in Ubuntu 16.10.

First, setup the APT repository for D.
$ sudo wget \
-O /etc/apt/sources.list.d/d-apt.list

$ sudo apt-get update && sudo apt-get -y --allow-unauthenticated install \
--reinstall d-apt-keyring && $ sudo apt-get update

$ sudo apt install dmd

Next, generate the sample hello word project.
$ dub init hello
$ cd hello/source

However, you will encounter error below during compilation.
$ dmd app.d
/usr/bin/ld: app.o: relocation R_X86_64_32 against symbol `__dmd_personality_v0' 
can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libphobos2.a(exception_249_55a.o): 
relocation R_X86_64_32 against symbol `__dmd_personality_v0' can not 
be used when making a shared object; recompile with -fPIC

Add these additional options to get it to run.
$ dmd app.d -fPIC
Edit source/app.d to start your project.

Compile and run on-the-fly.
$ rdmd -fPIC app.d
Edit source/app.d to start your project.