It’s possible to optimize the usage of Microsoft Graph Api by batching requests. There is a limitation for 20 requests in one batch request.
Here is a simplified examle:
It’s possible to optimize the usage of Microsoft Graph Api by batching requests. There is a limitation for 20 requests in one batch request.
Here is a simplified examle:
There is a long standing issue for this task. The logs looks like: 10.255.0.2 - - [15/Mar/2018:15:32:15 +0000] “GET / HTTP/2.0” 200
One of the solutions, from the issue’s comments, is to run a service in the host mode, the swarm load balancing for this service will not work. But if there is a load balancer behind the swarm cluster, it seems not a big problem.
I added Adsense at the end of January. In February I got 1.6K users and €2.46 to my balance, a little more than expected.
Another tip for Flask-Admin. The task’s requirements are:
There is a ModelView property can_export, it adds an action to export in CSV or another format supported by tablib, but it does not allow to select records and there is no import. So for my task it’s not a solution.
The export is easy to do with an action decorathor.
In the documentation there is an information about form_widget_args and form_subdocuments attributes of ModelView class. To do this task they can be used together:
Several productivity apps I added to this list in the last month.
For iTerm2 I failed to setup Automatic Profile Switching, but I found a good solution here - Change terminal color when SSH from OS-X.
This month I decided to try Google Adsense, just as an experiment. I expect no more 1-2$ in the next month. The process of adding adsense is easy, but the problem is that it requires a primary domain and on the primary domain sneawo.com I had a redirect to blog.sneawo.com. So the first attempt failed after 2 days of waiting. For a second attempt I put an html with a short text on the primary domain. This time it also took 2 days and was successfull.
Meanwhile, I looked some articles and almost all of them recommend to launch the blog in a subfolder, i.e. sneawo.com/blog. Maybe I’ll do it as next experiment.
Starting a new project is a common task in microservices architecture. To do this it’s better to have a some template. I put my version to the flask-mongoengine-bootstrap repository. The key point are:
make dev and tests make test through dockerIf you’ll use it, do not forget to change SECRET_KEY.
This year I decided to spend some time on the blog marketing. I don’t know how to do it, but as a first step I’ve added a subscription to the monthly digest of updates. You can see it on the right.
I used MailChimp because:
The only problem was to choose an physical address, it’s a requirement for FTC’s CAN-SPAM Act. I don’t want to provide my home address or buy P.O. box for now, so I put my work address.
© 2026 Andrey Zhukov's Tech Blog.