On Vlick

Vlick is how I spelled the German word for view/sight, the correct spelling is Blick. It was a mistake, I know, but one I liked. This blog is a collection of mistakes, some prettier than others.

Git: reset changes in specific file

If you have an uncommitted change (its only in your working copy) that you wish to revert to the copy in your latest commit, do the following:

git checkout filename

This will checkout the file from HEAD, overwriting your change.

Thanks to norbauer

Highlights from Algorithms to Live By: The Computer Science of Human Decisions (Christian, Brian)

The highlights bellow are just a short list of the total I collected. This post will be updated over time with more highlights.

Page 2:

finding an apartment belongs to a class of mathematical problems known as “optimal stopping” problems. The 37% rule defines a simple series of steps—what computer scientists call an “algorithm”—for solving these problems. And as it turns out, apartment hunting is just one of the ways that optimal stopping rears its head in daily life. Committing to or forgoing a succession of options is a structure that appears in life again and again, in slightly different incarnations. How many times to circle the block before pulling into a parking space? How far to push your luck with a risky business venture before cashing out? How long to hold out for a better offer on that house or car?

Page 3:

They don’t need a therapist; they need an algorithm. The therapist tells them to find the right, comfortable balance between impulsivity and overthinking. The algorithm tells them the balance is thirty-seven percent.

Page 4:

Optimal stopping tells us when to look and when to leap. The explore/exploit tradeoff tells us how to find the balance between trying new things and enjoying our favorites. Sorting theory tells us how (and whether) to arrange our offices. Caching theory tells us how to fill our closets. Scheduling theory tells us how to fill our time.

Page 32:

exploration is gathering information, and exploitation is using the information you have to get a known good result.

Page 34:

When balancing favorite experiences and new ones, nothing matters as much as the interval over which we plan to enjoy them. “I’m more likely to try a new restaurant when I move to a city than when I’m leaving it,”

Page 34:

sobering property of trying new things is that the value of exploration, of finding a new favorite, can only go down over time, as the remaining opportunities to savor it dwindle. Discovering an enchanting café on your last night in town doesn’t give you the opportunity to return.

Page 35:

The flip side is that the value of exploitation can only go up over time. The loveliest café that you know about today is, by definition, at least as lovely as the loveliest café you knew about last month. (And if you’ve found another favorite since then, it might just be more so.) So explore when you will have time to use the resulting knowledge, exploit when you’re ready to cash in. The interval makes the strategy.

Lessons learned from someone else

  • even the popular open source products, their documents are still not complete and somewhat hard to understand, and many of solutions searched out are immature and useless.
  • copying other people’s examples is a good way to get started, but productivity is from fully understanding how the thing works.
  • when learning, you can have a look at other people’s complex work, but you’d better to start simple and build it up knowledge gradually so that you had less chance to spend time on wrong directions.

Original: http://mashijie.blogspot.com.br/2015/05/logstash-filter-for-tomcat.html

When I have fears that I may cease to be — John Keats

When I have fears that I may cease to be
Before my pen has glean’d my teeming brain,
Before high piled books, in charactry,
Hold like rich garners the full ripen’d grain;
When I behold, upon the night’s starr’d face,
Huge cloudy symbols of a high romance,
And think that I may never live to trace
Their shadows, with the magic hand of chance;
And when I feel, fair creature of an hour,
That I shall never look upon thee more,
Never have relish in the fairy power
Of unreflecting love;—then on the shore
Of the wide world I stand alone, and think
Till love and fame to nothingness do sink.


Leonard Cohen’s “Anthem:”

Ring the bells that still can ring. Forget your perfect offering. There is a crack, a crack in everything. That’s how the light gets in.

I’m sorry to hear that you are so sad and stuck. The only good thing I have to say about this is that being able to be very sad and very stuck indicates a certain sort of health. I believe that only whole people have the capacity to really fall apart. I’ve struggled with major depression all my life, I know I’ll always have it, but I’ve found ways to manage it and one of them is work, this writing work and drawing work that we do. And ‘manage’ is a optimistic word. It’s more like being able to convince the giant scorpion to let go of my face for about an hour. But what an hour!



These thoughts belong to someone I forgot the name, will add it here soon