python

Recovering lost Python source code if it’s still resident in-memory

I read this on GitHub Gist the other day. I don’t know whether I will ever use it but I am still putting this on my blog for the sake of bookmarking it. Who knows? Someone from the audience might end up using it!

I screwed up using git (“git checkout –” on the wrong file) and managed to delete the code I had just written… but it was still running in a process in a docker container. Continue reading

Advertisements
Standard
python, tutorial

Importing with ctypes in Python: fighting overflows

Introduction

On some cold winter night, we’ve decided to refactor a few examples and tests for Python wrapper in Themis, because things have to be not only efficient and useful, but elegant as well. One thing after another, and we ended up revamping Themis error codes a bit.

Internal error and status flags sometimes get less attention than crypto-related code: they are internals for internal use. Problem is, when they fail, they might break something more crucial in a completely invisible way. Continue reading

Standard
help, inspiration, python, Uncategorized

Your first talk

Hi there folks. It’s been a long time since I wrote on this blog. I have been very busy with university applications. A lot has happened recently which I will love to share with you. Firstly, I got a news from a friend that my book is being used in McGill University to teach Python programming. That is something I have always wanted, Continue reading

Standard
help, news, python, review

Interesting Python Tutorials

Hi there folks! I have read some interesting Python tutorials lately. I would love to share them with you. Without any further ado let me list them over here:

1. Composing Music With Recurrent Neural Networks

I loved this tutorial. It is a bit old but still worth a read. The author has explained the theory behind his implementation. You will enjoy this tutorial if you are interested in signal processing, machine learning and/or music. Continue reading

Standard
book, python

Intermediate Python conquers the World! (Almost)

Hi there folks! I hope you are all fine. It’s been almost a year since I published Intermediate Python. It was my life goal to publish a book which really helps people. Today I saw the stats of the book after a long time. I was pretty ecstatic to know that the English version (It is also available in Chinese and Russian) of the book has been read in 181 countries. Just 15 countries short of the whole world. Continue reading

Standard