Profile

Cover photo
christopher ede
55,998 views
AboutPostsPhotosVideos

Stream

christopher ede

Shared publicly  - 
 
Interesting article about the origins of life
 ·  Translate
1
Add a comment...

christopher ede

Discussion  - 
 
interesting opinion piece from NY-times
Alfalfa, grown for Asian cattle, is worsening California’s drought.
2
2
Richard Schwarting's profile photochristopher ede's profile photo
2 comments
 
+Richard Schwarting
thanks i did not know this site makes for an interesting read
Add a comment...
 
it is probably me but the dict-interface of the python enum-class strikes me extremely odd consider the following test-code:

==================================
enum_question$ cat enum_test.py 
# file: enum_test
from _future_ import print_function
import enum

class Foo(enum.Enum):
    BAR = 1
    BAZ = 1

print('get BAR:', Foo['BAR'])
print('get BAZ:', Foo['BAZ'])
==================================

guess what, one finds on the terminal:

==================================
enum_question$ python3 enum_test.py 
get BAR: Foo.BAR
get BAZ: Foo.BAR
==================================

in plain english: ask for 'BAZ' and you shall be given 'BAR' !! :-o

OK, they have the same value, but still; it is kind of unexpected; again at least if you think like me; 
3
1
christopher ede's profile photoAndreas Kostyrka's profile photo
3 comments
 
+christopher ede​ that's not what an enum is, at least in all languages that I know. Is always about coding symbols with integers. And that obviously means that there can be only one inverse mapping.
Add a comment...
 
in kalifornien ist derzeit eine der schlimmsten duerren seit beginn der aufzeichnungen was auch zu diskussionen ueber die verwendung von wasser fuehrt, dazu ein kommentar in der NY-times
 ·  Translate
Alfalfa, grown for Asian cattle, is worsening California’s drought.
6
christopher ede's profile photo
2 comments
 
+Oliver V Rani
die meisten menschen wissen hueben wie drueben nicht so genau was sie essen:

http://www.sueddeutsche.de/wirtschaft/fleischproduktion-in-deutschland-was-sie-ueber-massentierhaltung-wissen-sollten-1.1899021

http://www.zeit.de/2012/03/P-Tierhaltung

auf dieser seite des atlantiks ist auch noch einiges verbesserungsfaehig.
 ·  Translate
Add a comment...
Collections christopher is following
View all
Basic Information
Gender
Male