Skip to main content

Posts

A conversation between I and my landlord.

I: I want to move out. I think my rent is too expensive. Landlord: OK. I: Can I use a special method? Landlord: ? I: I don't want to pay the rent anymore, but I want to keep my room and have a full access to my room, like the half of the people of a country want. Landlord: I see. We just need to change the contract a bit. I would like to charge you current two month rent for each access per day. But you don't need to pay the monthly rent. You have no obligation for that. I: Wow, thank you! Landlord: You are welcome. I: Now I only pay when I go to my room. I took back the control!
I use Jenkins  for a nightly automated test. In the test I use valgrind  for memory leak detection and has some graph of number of errors. So I would like to use plot plugin . From the example plot image , it is clear we can have a graph with multiple lines. However, how to do it was a bit ambiguous to me from the web page, the example perl script, and the help (in the plot plugin). The key idea is I need to have multiple data files for multiple lines. For example, in the build I made the following property data files. Each file represents one data line. valgrind_trunk_result.definitely.property valgrind_trunk_result.indirectly.property valgrind_trunk_result.possibly.property The contents of each file is only one line. For example,  valgrind_trunk_result.definitely.property is: YVALUE=0 This file is put under the directory of ${WORKSPACE} where the environment variable "WORKSPACE" is given by jenkins. Figure 1 shows my plot plugin setup in th...

Stopping is not enough

Earthquake in Kyusyu, Japan still continues. No one knows when it completely stops yet. I care the people there and I also afraid the nuclear reactors they are still running there. (Japan only has two running reactors now, both are in Kyusyu area where the earthquake continues. The number of earthquakes more than scale 1 is 770 times so far.) There are several petition to stop the reactors now. I also joined. But, technically stopping them are not enough. Most of Japanese facility only have water cooling pools for nuclear fuels. If such pool had a crack by an earthquake and lost the water, it is dangerous. How do they stably supply cooling water, the earthquake can be a cause of trouble. Just loosing the electricity of the pumps causes an accident. All the reactors in Fukushima stopped when the earthquake came, but they could not maintain to cool the fuels. That we saw five years ago. To avoid an accident, we need to think about after stopping the reactors. I agree, let's first...

Birthday Donation

My birthday party of this year was delayed. A birthday present is common here for a birthday party. But I have all tangible things I want, except one. Yet, I want to have several non-tangible things. However, they are either impossible for a birthday presents or meaningless. For example, I would like to have world peace, a world class free education system in many languages, I want to understand some mathematical concepts, I would like to be fluent of German, I would like to have more time for my volunteer activities, and so on. Thus, I asked some donation as a birthday present. I first show a list of organization I would like to donate. Then the people who join the party donate. I match the same amount from my pocket money to double the donation. This year was the second time. I think it went well. When I got a receipt from the organization, I will show it to the party participants. My cynical friends have already joke on them when they saw the paper, "it is just a paper and ...

Tranlstaion with patterns (Emacs Lisp)

I have following practice problems. I would like to translate them to Japanese and German. The $200$ is the $\\green{\\text{whole}}$. We are trying to find the $\\pink{\\text{part}}$ that makes up $11\\%$ of it: The $25$ is the $\\green{\\text{whole}}$. We are trying to find the $\\pink{\\text{part}}$ that makes up $12\\%$ of it: ... You might notice these problems differs only inside $$. So, I can replace them with the following regexp by emacs's query-replace-regexp function. The $\(.*\)$ is the $\(.*\)$. We are trying to find the $\(.*\)$ that makes up $\(.*\)$ of it: $\1$ は $\2$ です.私達はその $\4$ となるだけの $\3$ を探しています: You might also notice, you can see a pattern from this sentence The $200$ is the $\\green{\\text{whole}}$. We are trying to find the $\\pink{\\text{part}}$ that makes up $11\\%$ of it: to The $\(.*\)$ is the $\(.*\)$. We are trying to find the $\(.*\)$ that makes up $\(.*\)$ of it: I thought this is done by the following function: (query-replace-re...

Super Tuesday

I am visiting US. Coincidentally, there was the super Tuesday. Some news  show Trump's domination. His motto is ``Make america great again''. However, his definition of word `great' is quite different from I know. He wants to build a wall on southern border and Mexico should pay it. He doesn't believe climate change. He wants to remove the public health care. He wants to bomb ISIS. He wants to restore the death penalty. (See http://www.nytimes.com/interactive/2016/us/elections/donald-trump-on-the-issues.html ) Currently, he is winning. I have a problem to understand of his definition of 'great'. If there is a problem inside a country, then the reason is outside (e.g., Mexico wall). If there is a problem, he just doesn't believe that (e.g., climate change), and so on. If he won, I am afraid what he would do. I can easily imagine it is a war to one of (or some of) ISIS, Russia, China, Mexico, some of Islamic countries, .... I am also afraid who actually ...

How to count zombis in Japanese?

``I don't know how to count zombies in Japanese.'' I voluntarily translate mathematics exercises in Khan academy ( https://www.khanacademy.org/ ) from English to Japanese/German.  You can learn anything on Khan academy. When I translate the following question: Liliana used 4 dark power crystals to raise 14 zombie soldiers. She wants to know how many zombie soldiers (z) she can raise with 10 dark power crystals... In Japanese, when you count, you added postfix depends on what you count. I know how to count people: 1人,2人, 3人. But, is a zombie a person? A zombie could be an animal, then, I should count them 1匹,2匹, 3匹.  Wait, is a zombie a dead body? Then I should count them 1体,2体, 3体. A zombie could be a novel ghost, then 1柱,2柱... The question told me they are zombie soldiers. Soldiers are the same as the people, then 1 人,2人, 3人. In the end, I decided to translate them as 1人,2人, 3人, this means a zombie is a person. I like translation work like this, quite interesting. Y...