chatbots, blokchains, Ubers for X… • take a broader look at the world and its problems • What does society really need at this point? • … and can we do it with Python? What’s this about?
action • Lots of link – available on this awesome list • https://github.com/metakermit/awesome-python-for- social-good • The slides will be there and on Twitter
energy efficiency of data centers • Punk Rock Dev – since 2015 • Developing apps with a kick! • https://punkrockdev.com/ • Music, drawing & some political activism here and there Who am I?
data archivers • https://envirodatagov.org/ • http://eotarchive.cdlib.org/2016.html • http://www.cdlib.org/ • http://www.ppehlab.org/datarefuge • https://climatemirror.org/ Global Warming Data
green? • Supply-demand balancing • Negative energy prices • Helping balance out volatility of e.g. wind turbines • Can a proof of environment friendliness be encoded? • A blockchain in less than 50 lines of Python • …and green? ♻ Blockchain mining ⚡CFA
TVs, DVRs, baby monitors, thermostats, and webcams • Took down DynDNS, causing an Internet blackout • Memcached attack • 88,000 misconfigured memcached servers on the Internet • 50k x amplification – a 203 byte request causes a 100 MB response • The largest DDoS attack ever! 1.3 Tbps Botnet DDoS attacks
Memcached to the Internet! • Keep your software up to date – https://github.com/punkrockdev/server • Unattended OS upgrades • Using ansible – a Python-based server management tool • Metasploit (PyMetasploit) – tools for pen-testing your sites • Learn the basics of internet security • Use HTTPS – Let’s Encrypt • Hash passwords with scrypt • Don’t roll your own crypto – https://cryptography.io/ for Python ☎ Internet ⚡CFA
passwords are terrible (123456, password, …) • Appear in leaked password datasets • Pwned Passwords V2 • Elegant & safe API check • You send a part of the hashed password and get back a searchable dataset of “pwned passwords” • You can self-host the service too ☎ Internet ⚡CFA
• Start something like this in your own community • Be wary of the possibility of tampering with information • TensorFlow detect fake news – Jupyter notebooks & datasets on Kaggle • https://www.kaggle.com/c/fake-news • https://www.kaggle.com/datasets?sortBy=relevance&search=fake+news Free Press ⚡CFA
on facts takes us back to the dark ages • Science and humanism must prevail • Critical thinking and evidence (rationalism and empiricism) > dogma or superstition • “Ideological” divisions are crude • Debate is good, but we must ground it in facts • Daniel Kahneman – "Thinking, Fast and Slow” • Human biases • Think slow! Analyse available data Politics
• I’ve done this for the city budget spending data in Zagreb – https://github.com/za-grad/otvoreni-akti • Code for America / Europe / … • Civic hacktivism • Help your town make a better service for something Politics ⚡CFA
A stock trading bot powered by Trump tweets • Open source in Python – https://github.com/maxbbraun/trump2cash • Twitter streaming API • Google Cloud NLP API • Wikidata company data • TradeKing stock API Politics ⚡CFA