HN user

gbog

3,461 karma

Hacking at douban.com, Beijing. Guibog (gmail).

Posts38
Comments1,794
View on HN
www.youtube.com 5y ago

How to Draw Mushrooms on an Oscilloscope with Sound

gbog
2pts0
worldbuilding.stackexchange.com 8y ago

Worldbuilding: Designing an animal that wants to be eaten

gbog
2pts0
en.wikipedia.org 9y ago

Makapansgat pebble, the earliest example of symbolic thinking

gbog
1pts0
www.androidauthority.com 9y ago

Ubuntu Unity is dead; company to shift back to Gnome

gbog
2pts0
kanavape.com 11y ago

Legal Hemp vaporizer

gbog
3pts0
news.ycombinator.com 12y ago

Ask HN: How to show support for Paul?

gbog
1pts1
math.stackexchange.com 13y ago

Is Mathematics one big tautology?

gbog
1pts1
www.yotaphone.com 13y ago

E-ink smartphone

gbog
1pts0
www.quora.com 13y ago

Stumble uporn -4^(1/4)

gbog
2pts0
www.quora.com 13y ago

Robert Johnson on Facebook greatest tech

gbog
1pts0
stackoverflow.com 13y ago

When, if ever, is “number of lines of code” a useful metric?

gbog
2pts2
news.ycombinator.com 13y ago

Moment of Silence

gbog
20pts55
scobleizer.com 13y ago

The contextual and exponential future of Facebook

gbog
2pts0
technode.com 13y ago

4399, the third most searched keyword in China

gbog
3pts0
www.pixelbeat.org 13y ago

Coreutils inbox

gbog
1pts0
github.com 14y ago

A large, bloated JS framework with an unintuitive syntax and very few features

gbog
141pts68
news.ycombinator.com 14y ago

Tell HN: I wish phone had a mourning mode

gbog
1pts0
www.chiark.greenend.org.uk 14y ago

Report Bugs Effectively

gbog
2pts0
omniti.com 14y ago

Your-code-may-be-elegant

gbog
1pts0
mail.python.org 14y ago

[Python-Dev] 'hasattr' is broken by design

gbog
7pts1
wheelof.com 14y ago

"Digital harmony", a musical realisation

gbog
2pts0
tabtimes.com 14y ago

Jakob Nielsen: "Right now I think Kindle Fire is a bad bargain"

gbog
2pts0
norvig.com 14y ago

Peter Norvig on dance photography

gbog
151pts29
www.sfgate.com 14y ago

The only way Chromebooks will ever succeed

gbog
1pts0
www.pixelbeat.org 14y ago

Fedora 16 review

gbog
2pts1
plus.google.com 14y ago

Google plus ripples

gbog
1pts0
plus.google.com 14y ago

One direction for social content services

gbog
1pts1
techrice.com 14y ago

Douban’s Alpha Town, An Experimental Digital Town

gbog
2pts0
seeingredinchina.com 14y ago

Dumb Americans

gbog
4pts0
alphatown.com 14y ago

An HTML5 virtual city built by Chinese startup Douban

gbog
1pts0

I would call code coverage "good" when I trust that:

- When I change the logic of a statement somewhere in the code, at least one test will fail in the suite.

A high % in a test report may give an indication but is far from giving me confidence. Having good code coverage means that, once you are back to green, and you have done to test code what will keep or improve your code coverage confidence, you can send the PR being tranquil that you didn't break anything else.

I was very interested by the question, and closed the page after skimming through the first screen: why is there any need to scenarize? why would I want to read about some guys in a bar? Can't we make it interesting to talk about what it really means for a device to "listen on port x"? In my experience (listening to Collège de France podcasts), any topic, even the most obscure and narrow field of knowledge, say "Late Babylonian scriptures as seen by Ibn Amhoud during 8th Century" (invented), can be made a thrilling experience if the speaker is really passionate and knowledgable about it. But there is never any need to start by a conversation at starbucks: one just dive in head first. </rant>

Maybe I was wrong but what I understand by "hug" is the fact to hold someone chest to chest, arms on the back of each other. I do not mean kids being held in the arms of their parents or lovers loving each other, or people holding hands or anything else. Then I maintain that this activity is reserved to very rare occasions, usually reserved to extreme emotion peaks, for instance at a burial of a close friend's relative, or when the national sports team win the gold.

To me, when meeting a friend or colleague at the first of the day, each culture has its own "hello sign" system, for French people it can be the kiss on the cheek or hand shaking (with many variants), for Chinese people it is a look in the eyes and "hi" with the hand or "吃了没?", for many other people (Germans?) it is purely hand shaking, and as far as I can guess the "hello = hug" is common in the USA.

I still do not think this "hello = hug" is universal or even the behavior of above 10% of the humans. I think most americans might believe it is nearly universal and always acceptable because nobody dares refusing the hug when they do it. It is actually very hard to stop a coming hug without becoming the very bad cold blooded person that has no feeling at all for others (personal experience here).

Best hug for me is no hug, thanks.

I would bet 95% of the human beings never hugs except between lovers or parents and their kids. I would bet hug is very much a North American thing. I'm French and hate hugs (we kiss on the cheeks, which feels less intrusive to me, but is crasy intrusive in most non-Latin countries).

I live in China and, in normal settings, people here won't hug, won't kiss and won't even shake hands (Unrelated to any ongoing pandemic.) I think it is the same in Japan, Korea, India, Pakistan, Indonesia, etc. Hugs between stars at international movie festivals do not reflect real people's life.

Gooey is nice, it could help in a wish I have had since foreveR and is the contrapositive: a way to convert any action I do on my Xubuntu UI into a command line.

Example: I pop the display config, hide the laptop screen, apply and confirm, and whish there was a "log" somewhere with a one line command I can use next time to redo the same thing.

In a way Gooey, if used a lot to make GUI apps, could help fullfilling this whish: I did not use it yet but I hope it displays somewhere the command line it generated from the GUI?

A long bunch of tests for a python RPC I was writing. My boss did rewrite the core code against the tests, so I could merge his code without even understanding it fully. And until now the test code is still healthy and growing, and it proves the core code to be working as expected.

I used recent speakers as simple Bluetooth speakers for a few years, and recently exhumed my old loudspeakers, those classic wooden box pairs with cables and rotative potentiometers. There's no photo: the sound is (was) much better.

Do you know the story with Spanish tomatoes? It's the same, they made them more convenient, easier to carry around and sell, better calibrated, more stable, etc. but suddenly some people tried the old tomato type and noticed that the only thing we should care about when buying them is... taste. Same with speakers: smart or Bluetooth it whatever is just a way to sell us speakers whose sound is fake (because it is cheaper to process the bass with a chip)

Here on HN we need to back such affirmations with data. The bolder the affirmations, the more solid the data-backed proof need to be.

If we were to exchange "philosophical" considerations here, I'd tell you that sunday fishermen have complained weekly that there was much more fish in the river before since the dawn of humanity. I'd also tell you that my own home in downtown Beijing has seen a slug invasion this year, and that these animals are not disappearing at all (at least in my courtyard).

Yes. But what's striking me is that one woud ever want to test only one input state. If I have to test function f(x) and see if its output is as expected, I always want to test many inputs (including "silly" ones like wrong type, nulls, extremes). Writing one test for each of them is absurd, just give a list of inputs, a list of expected outputs and check them all.

Distance is no weasel word. China historically interfering with Korea or Vietnam is natural as it's neighbors and problems of one side of the border leaks on the other side, and cultural and economical influences are strong. But France or US interfering with Vietnam or Korea make much less sense. The real deep difference in the long span is that Chinese never sailed en masse to the other side of the planet to "propose" (with a gun in the hand) a foreign religion and a different way of life to people which never asked for anything.

It's a good idea to question assumptions. And to me living in China since Hu, the main difference is that Chinese people themselves perceive Xi as much stronger than his predecessors, and probably rightly so: the crackdown on corruption is no joke, I have relatives who gave back their German cars to avoid issues. Also people of the diaspora or in Taiwan follow closely the tiger hunt at the head of the state and it seems to not be nowhere like catching butterflies. So yes Xi has earned a reputation.

That's not bread, that's sliced industrial cake branded as bread sold in wharehouses. Get your bread from a boulangerie and slice it yourself. And yes, buy no "pasta sauce" because it is just industrial pseudo tomato jam with a formula that has 50 "ingredients", just buy tomatoes and cook them slowly with some onions.

how much stuff has added sugar

I depends on what is "edible stuff" to you. Carrots, meat, cabage, fish, etc. have no added sugar in them. Why not simply cook your food, like most people in the world do?

From what I read here and there, Americans have completely lost foot with food, for them having a meal means to take some boxed thing out of the fridge and put it in the microwave owen for 10 mn. This is /not/ a normal meal, it's a lazy way to get one's belly filled. The normal meal for normal people is prepared at home from raw ingredients and some spices.

Maye it is "unique" but then just because it is the simplest design possible. T-shirts are just T-shirts with nothing special, even no "tickets" (the shitty piece of cloth with all the useless warning signs that hurts the skin and serve no purpose).

North Korea is a good inverting mirror of our modern societies, and there is always something of inspiration in the diametrically opposite. I, for one, would welcome a brandless packaging of most products, where a pack of coffee would just be a dark brown folded paper with "coffee" written on it. Same with sugar, yogurt, butter, etc. We are brainwashed into believing that sugar X is different from sugar Y but it is the same thing with different packaging, often produced in the same lines in the same factories.

Muji is a successful Japanese brandless shop where I get my clothes. We have generics drugs that are less expensive. I think a brandless Walmart would be successful too, for those who refuse to be brainwashed.

Is it only me or this looks like a Macron-effect? I mean, President Macron did show to the world it was possible for a young fellow to hijack the elections, even in a (relatively) stable democracy. Actually, if you think about it, it seems not that hard to be (or look) much less repugnant than the old comical zombies and rotten clowns we get proposed.

3) Do not care at all, and consider that our bodies are pretty well tuned to handle such thing as a few particles of foreign excrement (or other dirty things).

Seriously, we have become irrational animals afraid of everything. (I would wash my hand after splashing a fly if there was a rotten corpse around, though, and would have done even without the fly because my nose would have alerted me of a chemical danger.)

Well I disagree. The background music on transitional slides can be removed. The rethorical questions ("let's pretend we do not know about digital audio") are just time fillers. Waving the hands toward an inscrustation looks as silly as the meteo girls "playing with flies in front of a green screen" on all TVs worldwide.

It is the same with most "well-written" articles in newspapers nowadays. We do not even feel it but its just canned food, a lot of jelly and chemical taste enhancer but the amount of real meat inside is near zero.

Also, “Google memo” threads seem to be buried very quickly on HN, which is the only place I imagine where this discussion can be held between consenting adults, how come?

"demonizing people creates demons"

I had exactly the same impression with racism a couple decades ago in France: I met a few young guys saying on purpose a lot of racist clichés. I do not think they were really racists, just fed up with the hardcore demonization we had then.

By for some topics such as racism, I'm under the impression that the demonizing pressure is a bit lower than before, at least in France. So there is hope.

For what's happening in the US, it seems to be very frightening -- this guy has been fired for talking about some hypothesis! I wonder why the pressure is so high. Maybe because the "deep american society" remains much more sexist than in Europe, thus justifying a much stronger defense from feminists?

You can't shorten it like that. It's a complex litigation system were we westerners, when applying our own interpretation grid, see a presumption of guilt.

For the core human values, a good example is the case of a little girl running dangerously near a well, any human except some psychopath will jump on their feet and save her. Here we all share something that can be qualified as universal.

That's not core to me. The litigation system is highly cultural, can be a village assembly before the eldest, a full judiciary system as we have in the West, can be based on Roman law or jurisprudence. Presumption of guilt is just another way.

Culture have traits, yes, and it's extremely difficult to name them with the words of another culture, and judging them bad or good from another culture is adventurous, except for obvious violations of core human values which I don't think we would find in Japan.

In the first paragraph the author says it is impossible to critique Japan traits. That simply shows that he or she has understood nothing of the Asian way of life. I've been working in a Chinese company since 6 years and never heard any critique or irony or any other form of explicit negative comment, even about competitor products. That is just not how you do it there. There are many other ways to express your personal preferences. If in ten years you don't get this, you just better go back home earlier.

I agree that no good food come out of the microwave, but the reason is in the ingredients not in the owen. Cooking good Chinese food, for instance, do not require "many many tools", just the basics you'd find in every kitchen in China, but it requires freshly cut veggies and meat, and different spices, and none of what you eat was processed in a factory (except msg maybe)

Well for me React being just a library is the very reason to use it. Frameworks are constraining, you code "inside" them and can't get out. Libraries are giving more freedom, you code "along" them. For example, I was really hating react-router and wrote my own, with proper state and url injection, in one or two sessions. I guess it would have been much harder if I was "inside" a framework.

When looking for something I use my phone's torch and point on the floor. Last time I found back a little magnet lost by my kid in the 50 metres of alley to our place. So yes I guess it works to force the mental focus.