I was born in and am living in Singapore,
an island city-state with beautiful skylines.
I am currently employed as a Presales Specialist @ SAP
I am also a Management of Technology student @ NUS
I build things with tools from the computing world:
I write on my blog:
Previously, I discussed how to use Flask-APScheduler in your Python 3 Flask application to run multiple tasks in parallel, from a single HTTP request.
When we run jobs as discussed in that post, jobs are ran once by the underlying ApScheduler instance. In addition, our Flask endpoint return the HTTP response back to the HTTP client as soon as the jobs are scheduled.
If we do not want the HTTP client to know the outcome of the jobs within that HTTP call, then we are good. But what if we want to include any errors that the jobs encounter in the same HTTP response?
In such a situation, we will need a mechanism to wait for the one-off jobs to complete execution before returning that response.
Given that in mind, this post shows how we can use
threading.Condition to wait for several
Flask-APScheduler one-off jobs to complete execution.
When you wish to encrypt and decrypt data in your Python 3 application, you can take a look at pycrypto.
Given that, let us look at how we can encrypt and decrypt data in Python 3 using pycrpto.
If you have a Raspberry Pi 2, 3 or 4, then you can install the official Ubuntu 19.10 server.
Since Ubuntu is a popular Linux distro for servers, you may want to install it on your Raspberry Pi server.
Given that, let's look at how we can install Ubuntu 19.10 server on your Raspberry Pi.
As I had mentioned in how to host multiple websites from home, a typical network architecture looks like the following:
In such a case, we will need our router to hold a public IP address and perform port forwarding for our home servers.
However, there can be cases where we do not have the environment to put our server on the internet.
In such a situation, you will find ngrok useful. Since ngrok accepts traffic on a public address and relays that traffic through to the ngrok process running on your machine, you can put your server on the internet easily.
Given that, let's look at how you can put your Raspberry Pi server on the internet with ngrok.
When you want to turn your unused Raspberry Pi into a security camera, you can take a look at motionEyeOS.
So what is motionEyeOS? In short, motionEyeOS is a Linux distribution that turns your single board computer into a video surveillance system. Therefore, it is convenient to setup a Raspberry Pi security camera with motionEyeOS.
Given these points, let us look at how we can setup a Raspberry Pi security camera with motionEyeOS.
That's all for now...
If you wish to know more about me, you can visit these websites: