8 ms·
Public static final int EM_NATION_TYPE_UYGUR = 1;
- q3k 6y agoDirect link to the code: https://raw.githubusercontent.com/gaomingbo/dahua-netsdk/master/src/main/java/com/dahua/lib/NetSDKLib.java https://raw.githubusercontent.com/gaomingbo/dahua-netsdk/mas...
- nabla9 6y agoDahua Technology - Leading Video Surveillance Solutions.
- rasz 6y agoI kept reading Dachau and wondering WTF is this.
- ars 6y agoIs the constant used anywhere? What does it change?
- boruto 6y agohttps://github.com/hysios/dhnetsdk.v2/blob/815d0dece7f79d478f1088dbbed3a9e813e9b199/netsdk/NetStruct.go#L1039 https://github.com/hysios/dhnetsdk.v2/blob/815d0dece7f79d478... In go as well.
- cirosantilli 6y agoDo we have any proof that this code actually comes from the company in question? E.g. can it be found under https://www.dahuasecurity.com/support/downloadCenter/download-search?keyword=Sdk&us https://www.dahuasecurity.com/support/downloadCenter/downloa... ?
- cirosantilli 6y agoOK https://www.dahuasecurity.com/support/downloadCenter/softwares?child=3&page=2 https://www.dahuasecurity.com/support/downloadCenter/softwar... it is inside General_NetSDK_ChnEng_JAVA_Linux64_IS_V3.052.0000001.0.R.200407
- dgentile 6y agoFrom purely a programming perspective: Have they not heard of enums?
- zingplex 6y agoFollowing in the proud tradition of IBM I see [1] and Facebook [2][3]. At this point it may be worth considering creating a professional code of ethics saying something about genocide being bad. [1] https://www.amazon.com/IBM-Holocaust-Strategic-Alliance-Corporation/dp/0914153277 https://www.amazon.com/IBM-Holocaust-Strategic-Alliance-Corp... [2] https://www.nytimes.com/2018/10/15/technology/myanmar-facebook-genocide.html https://www.nytimes.com/2018/10/15/technology/myanmar-facebo... [3] https://www.vice.com/en/article/xg897a/hate-speech-on-facebook-is-pushing-ethiopia-dangerously-close-to-a-genocide https://www.vice.com/en/article/xg897a/hate-speech-on-facebo...
- mgraczyk 6y agoI'd say there is a pretty big difference between actively building software to accomplish a goal, vs failing to remove content posted by others to accomplish their goals.
- zingplex 6y agoI don't think that made what I said any less true. Obviously I'm not saying that Facebook is flagging people to be put in concentration camps or doing anything akin to that. What I am saying is that our industry has been complicit in multiple genocides at this point and I think we should do something about that. When you become a doctor you must take the Hippocratic oath, I don't see any harm in considering adopting something like that.
- mgraczyk 6y agoDoctors don't take an oath that says "I won't give patients tools that could be used to harm others". They take an oath not to do harm themselves.
- curiousgal 6y agoThis is absolutely disheartening. You would think, seeing how ferociously people attack Holocaust deniers, that we have learned our lesson but it is absolutely not the case.
- svrb 6y agoLet's be honest. People only attack Holocaust deniers because of the perception that Hitler was right-wing, not because they believe it is morally imperative not to deny genocides. If the latter were the actual explanation, they would also attack Holodomor deniers (of which there are a greater number, at least proportional to those who have heard of it at all).
- ars 6y ago"Never again". And here it's happening right in front of our eyes. And no one can do anything because a war with China would be worse, and because China is not attacking outside its own borders. There's some quote I can't find about countries that only do atrocities inside their borders are never held to account for them.
- valbaca 6y agoTo help someone else with context: https://en.m.wikipedia.org/wiki/Uyghurs https://en.m.wikipedia.org/wiki/Uyghurs
- ddevault 6y agoCode like this doesn't happen unless a programmer sits down and writes it. You have a responsibility to refuse to write code which is morally wrong. This is the cost if you don't: real human lives.
- gregoriol 6y agoIn China programmers probably can't refuse without very huge consequences for them and their own families.
- ddevault 6y agoPerhaps. But I'm appealing to HN readers here, not to China.
- strogonoff 6y agoThere was another time, not long ago, when people justified doing or facilitating vile things against masses of fellow humans as “just following orders”. Their point is valid—refusing might cost own life, and there's the prisoner's dilemma, etc. A situation like that seems unlikely to be resolved from within a system itself. However, appeals to consequences aside, in the end each of us has a choice: write that code (slash architect that solution) or not.
- fileeditview 6y agoEveryone may have the choice but for some it's easier to say no than for others..
- strogonoff 6y agoSince it’s posted here on HN, I believe this is primarily addressed to those whom saying “no” would cost maybe a promotion, a customer, or even just impaired relationship with a manager. Having to choose between your family and thousands of others is tragic and I can’t honestly claim which I’d choose, but being blind to that choice (intentionally or not) is probably even more tragic.
- jgwil2 6y agoSo, github should terminate this account immediately. But why is this source open to begin with?
- busrf 6y agoThis makes me sick, because I could see myself and many people I know doing the same thing, under the right circumstances, without even very much coercion needed, just writing a bit of business logic... Totalitarianism is sustained by ordinary people looking forward to shipping the feature and having a nice dinner out on the weekend.
- szatkus 6y agohttps://twitter.com/q3k/status/1322949727600680962/photo/1 https://twitter.com/q3k/status/1322949727600680962/photo/1 I'm wondering what -1 could mean in that context.
- SteveHawk27 6y agoThat comment translates to: "charm value, -1 means invalid, 0 means not recognized, it ranges from 1-100 when detecting, higher the score means more charming."
- the_resistence 6y agoNever forget.
- rambojazz 6y ago[disclaimer] Coming from EU context. Sorry but what is the issue here? Because they use a special value for Uyghurs? We don't know the context why they did that, do we? Maybe it is totally fine. I would not see a problem with any other _NATION value...
- rasz 6y agoImagine UK company providing hardware for their CCTV network had this code under the hood: EM_NATION_TYPE_PIKEY = 1