The cron daemon is a long-running process that executes commands at specific dates and times. You can use this to schedule activities, either as one-time events or as recurring tasks.
If you are on a Mac (or Linux), you can use
crontab, which is a scheduling tool that will run jobs (scripts) at regular intervals.
On Microsoft Windows, cron jobs are known as Scheduled Tasks. They can be added through the Windows Task Scheduler user interface, by using PowerShell or with help of
Crontab stands for “cron table” because it uses the job scheduler cron to execute tasks; cron…
In plain English, Decorators allow you to ‘decorate’ your function or class in Python by adding new functionality. In other words, it allows you to extend the functionality of the original function without permanently modifying that function.
Let’s take an example of this dataframe:
Linux is an open-source operating system that allows a user to control every aspect of the operating systems. Unlike Windows, you don’t need to reboot a Linux server after every update or patch. Due to this, Linux has the highest number of servers running on the Internet. Here are five of the highest-profile users of the Linux desktop worldwide.
Linux, DevOps, cloud and security are the top skill sets wanted from potential employees. Among hiring managers, 74% say that Linux is the most in-demand skill they’re seeking in new hires.
In this tutorial, we will be using ROracle which is a R module that enables access to Oracle Database. We will also need to install a DBI module in R which defines an interface for communication between R and relational database management systems. I have updated the installation notes in the bottom of this post to get you setup for using SQL in R.
First, we will initialise the Oracle Driver and create connection variables such as
sid. Then we will create our
connect.string by passing all the variables in it. …
Proof of work (PoW) is a form of cryptographic zero-knowledge proof in which one party (the prover) proves to others (the verifiers) that a certain amount of a specific computational effort has been expended. Verifiers can subsequently confirm this expenditure with minimal effort on their part.
The goal of proof of work is to prevent users from printing extra coins they didn’t earn, or double-spending. If users were able to spend their coins more than once, it would effectively make the currency worthless.
One of the most famous blockchains using PoW is certainly Bitcoin. Created in 2009, Bitcoin pioneered the…
In this tutorial, we will be using cx_Oracle which is a Python extension module that enables access to Oracle Database.
Use Case: I will show how you can execute the PL/SQL procedures and statements all through Python. In this example, I am trying to execute the procedure first which updates my table (i.e. table1) and finally, I will show how you can query that table from Python and convert that into pandas dataframe.
We will first create our main class called
Oracle() which has multiple methods as described below:
connect_node()It will initiate the connection with the Oracle database by…
The OS module in Python provides functions for creating and removing a directory, fetching its content and changing and getting the current directory and more. It basically provides a convenient way to use the operating system functions.
Let’s import the
os module and print the current directory:
Let’s first create a new file with
open() and give it a write permission
‘w+’ and create some text in the file with
write() and close the file with
Let’s list the content in the test directory:
You can also pass the specific directory…
This process is highly dependent on admin privileges on both your local computer, the internet, and your email provider. In this tutorial, I will be using Gmail to send out an email to my other Gmail account.
In Python, we have a built-in
smtplib module for sending emails using the Simple Mail Transfer Protocol (SMTP). This is really ideal for creating ETL notification once your model is completed or your CronJob is finished.
Step 1: Load all the required packages and provide Sender Email and Password and Receiver Email
Step 2: Create SMTP session using
Let’s first explain what is
filter() built-in functions before using them with Lambda Expressions.
map() is a built-in function that allows you to process and transform all the items in an iterable without using an explicit for loop. The
map() calls the provided function once for each element in an array excluding the elements that are without values.
Let’s demonstrate this with an example:
We create a function called
square and a list with values such as 1, 2 and 3. …
In Python, we can pass a variable number of arguments to a function using special symbols. There are two special symbols:
*args— Non-Keyword Arguments
**kwargs— Keyword Arguments
These are most commonly used in object-oriented programming in the case where you’re overriding the function and want to call the original function with the arguments passed by the user (which is not fixed).
*args are used to pass non-keyword arguments. Examples of non-keyword arguments are
*to take in a variable number of arguments; by convention, it is often used with…
Data Scientist with 9+ years of experience; YouTube Content Creator; I am qualified Gym Instructor and Personal Trainer. 👨🏻💻 🎥 🏋🏻