One solution is to use task queues. In Django it is easy to implement a task queue with a third-party library called "huey". It allows developers to specify when to execute a task using annotations:
@huey.periodic_task(crontab(minute='*'))
def print_time():
print(datetime.now())
This task would be executed every minute. Apart from scheduled tasks it also offers the option to execute tasks in the future.
Apparently sparql doesn't allow non aggregate variables in the select clause unless they are also in the group by, which affects the query's meaning. So I came up with another solution which includes an intersection(join):
select ?country ?area ?lake
where {
?lake rdfs:label ?label .
?lake rdf:type dbo:Lake .
?lake dbo:areaTotal ?area .
?lake dbo:country ?country .
?country rdf:type dbo:Country .
FILTER (lang(?label) = 'en') .
FILTER(?maxarea = ?area)
{
select ?country (MAX(?area) AS ?maxarea)
where {
?lake rdfs:label ?label .
?lake rdf:type dbo:Lake .
?lake dbo:areaTotal ?area .
?lake dbo:country ?country .
?country rdf:type dbo:Country .
FILTER (lang(?label) = 'en') .
}
group by ?country
}
}
The best way to customize a WordPress theme, is to create a child theme. To do this, you need to create a directory in the themes folder, add a style.css and set the the ‘Template’ parameter in its header to the name of the parent theme:
/*
Theme Name: Some Child Theme
Template: some-parent-theme
*/
Then you need to create a functions.php file and make sure to enqueue the parents css:
add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_styles' );
function mytheme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
After that, you can copy any template file from the parent theme to your child themes directory and change whatever you need. These files won’t be overwritten when the parent theme receives an update.
Using Browser Configuration
The process to solve this from happening again had two steps.
1. Clear Browser data. Using Google Chrome (my case), in the “Clear Browser Data”, there are plenty of options: password settings, browser history and cookies controlling the ads, which we want to delete.
2. Block Cookies using the browser settings configuration.
These steps solve the problem in a short-term basis, however many pages do not allow navigation unless cookies are activated. Nevertheless, even if the general settings block cookies, they can be activated individually in those websites which require it.
Using VPNs
Although it is not a free (economically speaking) solution, VPNs will allow to tunnel the traffic through an encrypted connection and make the content available on the other side.
The main disadvantage of VPNs is they do not have a user interface. They need to be hardcoded into the operating system, and implementaation can sometimes be difficult for users.