Posts

A collection of 67 articles

Allocate Energy to Categories

I have read the post Get Everything Done & Still Have Time to Play by Jackie Ashton recently and adopted some strategies into my process. Before I plan the tasks daily by allocating them into time slots in a calendar, it is tedious and time-wasting. It messes up my agenda, which is intended only to contain the events that I must do on time. And it makes me nervous and exhausted to follow a pre-defined schedule every day. My new process is much simpler. I review my life objectives first and group them into categories. Then I evaluate their importance in my current life stage and allocate my energy in percentage into them.

Updated  •  3 min read

Rust Cell and RefCell

In Rust document, Cell is “A mutable memory location”, and RefCell is “A mutable memory location with dynamically checked borrow rules”. They both provide “interior mutability”, where you can modify the value stored in cell via immutable reference of the cell. They both have an API get_mut to return a mutable reference to the underlying data. This method requires a mutable reference to the cell, which guarantees that the callee has exclusive ownership of the cell. pub fn get_mut(&mut self) -> &mut T The difference is how they implement interior mutability. Cell copies or moves contained value, while RefCell allows both mutable and immutable reference borrowing. I will try to explain the difference via their APIs in this article.

Updated  •  3 min read

My Reading Workflow and IFTTT Applets

I categorize reading into 3 different categories: Skim Reading: This includes the feeds I subscribed in Inoreader, websites I frequently visit and articles shared from my friends. I quickly skim them using fragmented time, usually less than half an hour in total per day, and save the articles which worth reading to Instapaper. Insensitive Reading: Instapaper sends me 20 unread articles to Kindle every morning. If I can spare at least 10 minutes, I will read them on the Kindle. Challenging Reading: Papers are definitely in this category. There are also articles hard to understand, I will print them into PDF. I schedule the time in advance, usually one hour or more, and read the PDF files on Sony Digital Paper. I’ll share the detailed workflow and the IFTTT applets used in the process.

Updated  •  2 min read