plugins – How do I allow a user to purchase an expiring passcode to access part of my website, from my online store, similar to pay-per-view?

I am trying to add functionality to a website I am starting to create, which is a bit like a pay-per-view video channel, where a user (without registering) would go onto my online store and purchase a product, which in this case would be an automatically-generated passcode.

The user would receive the passcode via email and then use it to gain access to a specific (hidden/private) part of the website. The passcode would automatically expire a certain amount of time after it is first used, such as a few days.

I have done a bit of research and come across various membership plugins, such as MemberPress and Restrict Content Pro. However, these do not do what I require. I don’t want the user to create an online account; I simply want a passcode to be generated when paid for through the online store.

Is this possible? Could someone point me in the right direction for a plugin, or even a tutorial that explains how to do this? Thanks!

UK Visitor Visa for PLAB exam expiring and exams cancelled due to COVID

I’m currently in my home country. I applied for the visit visa in February and was granted a six month visit visa. I was planning to travel in third week of March for the exam when things locked down and exams got cancelled. I applied for another date in first week of August, but that was cancelled, too. My visa expires in 2nd week of August but the exams will resume in September or October.

What are my options now apart from letting the visa expire and applying again? I was rejected once before and my PLAB 1 expires in November.

python – prometheus client custom metrics with timestamp not expiring

#!/usr/bin/env python3

import argparse
import re
import sys
import time
import datetime
import urllib3
import requests
import aniso8601
import pytz
import json

from prometheus_client import start_http_server
from prometheus_client.core import GaugeMetricFamily, REGISTRY

class HttpCollector(object):
    def __init__(self):
        self.url = "my_endpoint"
        self.username = 'my_userid'
        self.password = 'my_pass'
        self.labels = ('app_name', 'url_host' )
        self.page_views_metrics = GaugeMetricFamily('pageviews', 'Page Views', labels=self.labels)

    def collect(self):
        headers = {'Accept': '*/*', }
        auth = (self.username, self.password)
        result = requests.get(self.url, headers=headers, auth=auth, timeout=60, verify=False)
        if not result.ok:
            # Log error
            print("No results")
        json_result = result.json()
        for record in json_result('records'):
            timestamp_epoch = covert_date_to_epoch(record("timestamp'))
            label_values = ("testapp",
            self.page_views_metrics.add_metric(label_values, record("page_views"), timestamp=timestamp_epoch)
        yield self.page_views_metrics

UK tourist visa is expiring, but I can’t use it because of Covid-19

I am from Nigeria. I got my UK tourist visa in February, but am unable to travel yet due to restrictions from Nigeria to UK. My visa will expire in August.

What will happen if the restriction is still in place and my visa expires before I can use it?

visas – 90-year old Peruvian citizen’s US visitor status expiring soon, can she stay in the country during the Covid-19 pandemic?

My Peruvian 90-year old mother has a valid visa up to 2023. Her stay is ending June 19 of this year 2020. We feel it is not safe to go back to Peru and there is nobody who could take care of her there.

If she applies for extension of stay I-539 and the extension is denied OR if the extension of stay is approved but ends, what could we do? Can she apply for an humanitarian case?

Effect of redirection 301 for the expiring domain

What happens if an old domain that redirects to a new domain expires? Will you continue redirecting? What is the effect on the search engine ranking?

Thank you

How can I prevent my GitHub logins from expiring frequently?

I have to log in to very often. I had already logged in to the browser, but at some point in the future I will visit GitHub again and I have not logged in. How can I stay connected to GitHub for longer?

Looking at, I count 12 "user.login" events since the table starts on August 29, which averages more than once a week and needs to enter my password and TOTP code.

I have many devices (multiple personal and work devices with different Chrome profiles, 11 sessions maximum, but more often around 6), but I hope that does not cause the problem.

When I open cookies for, I can see the user_session Cookies are only set for 15 days in the future: is that what the default GitHub login lasts? Maybe there is any knob to increase that? (I would be willing to change my 2FA option to a security key if that had made the login last at least 90 days).

Prevent SESSION php from expiring

Hi, I have a system that needs to keep the session active for a long time. I would like to configure this directly in php.ini. The configuration I have on my local host works perfectly, the problem is that on the web server, SESSION expires. Can anyone give a light? Thanks in advance.

clean architecture – Techniques for cleaning / expiring old data

Those two categories you described are usually called synchronous transformation vs. asynchronous transformation. You find these terms often, but not exclusively, in the context of ETL processes and data stores (as here for MS SQL). So yes, at this level of abstraction, there are simply two categories. And both are well known standard approaches, each with its pros and cons, there is no "hacking" in this design.

However, there are many variants of how to implement those strategies, and even a mix is ​​possible. If applicable, option n. ° 1 seems like a trick, at least in the way I understand its description, since it suggests interfering with any query to the database, which I suppose is impractical. A cleaner way to implement this is probably by adding views to your data model that derive the timestamp status indicators from the "on the fly" data. You may not even need a real column for the state.

However, I agree that for your requirements a night process is a better solution. The only drawback (which I suppose is irrelevant) is that the status of some records does not change immediately at midnight, but only a few minutes later.

The passport and the visa of the children are expiring before the parents

A visa does not normally extend beyond the expiration date of the passport.

You can renew your child's passport in Canada. There is a long list of required documents on this page of the Embassy of Pakistan in Toronto. I'm not going to reproduce it here. I suspect that you can not use the online passport renewal application.

Once you have the new passport, you will have to apply for a new visa for your child.

I assume that the child has a TRV (Temporary Residence Visa). You can request to extend / renew / obtain a new one in Canada. This page discusses the length of the stay using a paper form. It is possible to apply online, but it may be useful to read this page. Highlights include:

  • Apply at least 30 days before TRV expires, but current processing times approach 60 days, check
  • Each dependent must apply separately