Python, Boot, Manchester code, Security, Bad Web, Cloud risks

  • EuroPython Die Threads @ YouTube. Nice talk, good jokes. Thredo @ GitHub. Also the library is nice, because it solves many of the issues, which are often extremely annoying when programming with threads for first time, and or implementing something which isn't quite trivial to implement. And the thread cancellation and deadlock / timeout stuff is just great. I've been using for computing mostly process pools because that's easy and simple to manage and works around the Global interpreter lock GIL. Support for Async-Blocking is awesome feature. Waiting for data is sleeping, why it should block other threads. kw: Python, thredo, dabeaz
  • Requests is compared to the horrible urllib and httplib2 which of course do work, but are quite painful to use at times. You'll just need bit more code than would be necessary if those would be simpler to use. I don't personally use requests, if it's not required, because it's just yet another dependency to add.
  • I just can't stop loving Python's f-strings Literal String Interpolation , because it's much cleaner than the other alternatives.
  • Studied how to setup dynamic boot partition mirroring with GUID partition table (GPT, EFI) when using Windows Server 2016. And after that installed a few systems with that specific configuration successfully. - Job done. Some of the related processes are enjoyably complex and guaranteed to require expert. As well as probably going to fail on first try when you don't know exactly what to do, in fine detail and how to adapt the instructions to the situation.
  • Also played during vacation with concurrent.futures stuff, even if I haven't actually used it for anything in production yet. - I guess I mentioned using TheadingMixIn module for one project, it was surprisingly easy after you understood the basic concepts. Also ssl wrap_socket is totally awesome. I haven't used Base Event Loop , but I'm aware hat it does in asyncio and when required I'll be using it. Probably I've slightly duplicated it's functionality when using queues and threads, in non-Pythonic way.
  • Manchester code. Yet one more way to encode data, which is quite nice.
  • Security, Bugs, Risks and reporting. Watched a horrifying documentary about some American companies, which basically fired everyone raising alarms about security issues, privacy flaws and so on. Their clear attitude was that it costs time and money to fix the issues. It's better to fire people whom report the problems. Also because problems aren't ever reported, there's no way to discuss the problems and fix the problems. This is quite different policy from companies which offer clear incentives for the reports. Therefore company culture can make absolute night and day between total security disaster and actually pretty good security. kw: Cyber Security, Policy, Politics, Culture, Company, Business.
  • The Bullshit Web - Yeah, nothing new. This is exactly what I've been saying. Web is so full of bad sites. It seems that it's getting just worse and worse. We use cookies. Subscribe our newsletter. Install our app. We've got this offer. You must register to ... NOPE!!! This is especially annoying with news sites, where the actual news is under half a kilobyte of text and then there's 12 thousand times more of crap attached (6 megabytes) to it to be loaded. Thank you for that! In many cases even if you pay for subscription, you're still getting the load. Yuck, no thanks. Just yesterday I found out that one news article made 250 https requests and the page size was 13 megabytes.
  • New V8 JavaScript compiler. A good read.
  • Why you shouldn't use cloud? Well, it happened. Google suddenly closed my account without any prior notice. That's exactly why I've always got multiple backups (different locations & technologies) and why I don't trust cloud services. Simultaneously locked me out of my content on Google services. That's why I've got backups of my cloud data, of course. But I'm pretty sure there's a lot of people whom don't have private backups of all the data they're storing on cloud. That's just a disaster waiting to happen. You've been warned.

2019-12-29