lzlarryli's comments

lzlarryli | 1 year ago | on: See the submissions you have flagged (maybe accidentally)

All my flagged are by mistake. This is a UI issue for mobile. Flag and hide really should not be put next to discuss on the equal footing on the front page (the usage ratio should be more than 10x). I use discuss many times a day but never hide or flag. Maybe it is better to only show these on the discussion page (better for more thoughtful actions too, less incentive to flag without even having a chance of glancing the discussion).

lzlarryli | 8 years ago | on: How big oil will die

One consideration is that if fossil fuel cars drop to a very low level in cities, the spending put into maintaining the fossil fuel infrastructure might become unsustainable. That would in turn drive up the price in rural area as well. In the end, it is very expensive to maintain parallel infrastructures as such and densely populated cities (unfortunately maybe) drive the trend of which infrastructure is going to win.

lzlarryli | 9 years ago | on: China’s memory manipulators

In fact changing historical records and emphasizing advantageous parts of history are not communist inventions. In China, this has been a very old tradition. Since Qin dynasty, history books and records were heavily regulated by the government. Almost at every change of the dynasties, the historical records were changed/destroyed to justify the new situation. The communists are just continuing that, in fact, in a rather blatant way. I remember, in high school, we would learn that history is a useful tool for propaganda (which is a good word in China) and that is one of the reason why the history we learned implies that "only communism can save China". I would chuckle whenever I wrote that very sentence in exams (which was the basis of the correct answer to most questions). In the end, people understand conceptually that history and facts are different things. I guess in the west, the distinction between history as passed on in religious texts and traditions and history as archaeological findings is similar (of course, here there are people who confuse the two as well).

In the end, history, being in the past, denies direct access or verification. In some sense it is just what we choose to remember, which is a very fluid thing. I guess culturally the Chinese are just more flexible about it. It is not necessarily bad, as it is a less fanatic ideology.

lzlarryli | 10 years ago | on: Ask HN: Do you use Vagrant or Docker for active development?

I use docker for the development of FEniCS, an open source scientific computing package written mixing python and c++. FEniCS requires a lot of dependencies which can be hard to compile (PETSc alike) or need version hold (Boost alike). Docker helps to hold the environment constant. We currently plan to have build bots based on docker as well to streamline build testing.

When I write code inside docker, I always submit to a git repo like Bitbucket. Data persistency is easy. Besides you can always use --volume, which works out of box in Linux.

Vagrant requires some basic shared environment, which is not realistic in my case. For example, I use Archlinux myself and am forced to use old Scientific Linux at work, while many other FEniCS developers use Ubuntu, Fedora, or Mac stuff. It is too painful to write and maintain a Vagrant script for all these (different compiler, boost, blas, lapack and some other 10+ numerical specific stuff). I even tried Vagrant+docker. But in the end, with docker maturing, I switched to docker+bash script instead. It is just more convenient and needs less dependency.

So I'd endorse a docker only approach if you mostly use Linux and your project has a diverse group of people.

lzlarryli | 11 years ago | on: Show HN: We put an iPhone on the front wheel of a car

For those who do suffer from motion sickness (like me), be aware that while the effect might not be severe (no vomit for me), the headache lingers quite a while (~30 min for me) after watching the video closely full-screen....... Still, a fun experiment.

lzlarryli | 11 years ago | on: Amazon Prime Music

The classical collection seems to be small. For example, 24098 out of 658027 (3.7%) pop albums are prime, but only 894 of 171251 (0.5%) classical albums are prime. I expected the other way (wishfully, as a fan of classical music), that older less popular music is cheaper to be made prime for Amazon. Strange.
page 1