Why Digital Marketing is Important to Your Business

Why Digital Marketing is Important to Your Business

3d secure – The order of the digital contents stops at payment_review due to Redis issue

We have started selling the digital contents by the EC website that is created by Magento 2.4 on AWS (Multi-AZ) since a month ago.

However, it often stops the orders for the credit card in payment_review. The other payments such as Apple Pay are fine.

The symptom is as follows;

  1. The problem occurs when Credit Card payment with 3D secure.
  2. Rebooting Redis resolves the issue but it occurs after a day or a few days again. There is an extra free space in Redis.
  3. “Did not write session for ID XXX: another process took the lock. /XXX/payment-information” sometimes occurs at the same time. (Where string XXX is a dummy string. Please ignore them.) The parameters are max_concurrency=6, break_after_frontend=5.

I would appreciate it if you inform me of any hints or suggestions.

digital ocean – Kubernetes pods stuck in pending, with no helpful events and an abundance of resources

I have a simple alpine:node kubernetes pod attempting to start from a deployment on a cluster with a large surplus of resources on every node. It’s failing to move out of the pending status. When I run kubectl describe, I get no events that explain why this is happening. What are the next steps for debugging a problem like this?

Here are some commands:

kubectl get events

60m         Normal   SuccessfulCreate    replicaset/frontend-r0ktmgn9-dcc95dfd8    Created pod: frontend-r0ktmgn9-dcc95dfd8-8wn9j
36m         Normal   ScalingReplicaSet   deployment/frontend-r0ktmgn9              Scaled down replica set frontend-r0ktmgn9-6d57cb8698 to 0
36m         Normal   SuccessfulDelete    replicaset/frontend-r0ktmgn9-6d57cb8698   Deleted pod: frontend-r0ktmgn9-6d57cb8698-q52h8
36m         Normal   ScalingReplicaSet   deployment/frontend-r0ktmgn9              Scaled up replica set frontend-r0ktmgn9-58cd8f4c79 to 1
36m         Normal   SuccessfulCreate    replicaset/frontend-r0ktmgn9-58cd8f4c79   Created pod: frontend-r0ktmgn9-58cd8f4c79-fn5q4

kubectl describe po/frontend-r0ktmgn9-58cd8f4c79-fn5q4 (some parts redacted)

Name:           frontend-r0ktmgn9-58cd8f4c79-fn5q4
Namespace:      default
Priority:       0
Node:           <none>
Labels:         app=frontend
                pod-template-hash=58cd8f4c79
Annotations:    kubectl.kubernetes.io/restartedAt: 2021-05-14T20:02:11-05:00
Status:         Pending
IP:
IPs:            <none>
Controlled By:  ReplicaSet/frontend-r0ktmgn9-58cd8f4c79
Containers:
  frontend:
    Image:      (Redacted)
    Port:       3000/TCP
    Host Port:  0/TCP
    Environment: (Redacted)
    Mounts:                 <none>
Volumes:                    <none>
QoS Class:                  BestEffort
Node-Selectors:             <none>
Tolerations:                node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                            node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:                     <none>

I use loft virtual clusters, so the above commands were run in a virtual cluster context, where this pod’s deployment is the only resource. When run from the main cluster itself:

kubectl describe nodes

Name:               autoscale-pool-01-8bwo1
Roles:              <none>
Labels:             beta.kubernetes.io/arch=amd64
                    beta.kubernetes.io/instance-type=g-8vcpu-32gb
                    beta.kubernetes.io/os=linux
                    doks.digitalocean.com/node-id=d7c71f70-35bd-4854-9527-28f56adfb4c4
                    doks.digitalocean.com/node-pool=autoscale-pool-01
                    doks.digitalocean.com/node-pool-id=c31388cc-29c8-4fb9-9c52-c309dba972d3
                    doks.digitalocean.com/version=1.20.2-do.0
                    failure-domain.beta.kubernetes.io/region=nyc1
                    kubernetes.io/arch=amd64
                    kubernetes.io/hostname=autoscale-pool-01-8bwo1
                    kubernetes.io/os=linux
                    node.kubernetes.io/instance-type=g-8vcpu-32gb
                    region=nyc1
                    topology.kubernetes.io/region=nyc1
                    wireguard_capable=false
Annotations:        alpha.kubernetes.io/provided-node-ip: 10.116.0.3
                    csi.volume.kubernetes.io/nodeid: {"dobs.csi.digitalocean.com":"246129007"}
                    io.cilium.network.ipv4-cilium-host: 10.244.0.171
                    io.cilium.network.ipv4-health-ip: 10.244.0.198
                    io.cilium.network.ipv4-pod-cidr: 10.244.0.128/25
                    node.alpha.kubernetes.io/ttl: 0
                    volumes.kubernetes.io/controller-managed-attach-detach: true
CreationTimestamp:  Fri, 14 May 2021 19:56:44 -0500
Taints:             <none>
Unschedulable:      false
Lease:
  HolderIdentity:  autoscale-pool-01-8bwo1
  AcquireTime:     <unset>
  RenewTime:       Fri, 14 May 2021 21:33:44 -0500
Conditions:
  Type                 Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----                 ------  -----------------                 ------------------                ------                       -------
  NetworkUnavailable   False   Fri, 14 May 2021 19:57:01 -0500   Fri, 14 May 2021 19:57:01 -0500   CiliumIsUp                   Cilium is running on this node
  MemoryPressure       False   Fri, 14 May 2021 21:30:33 -0500   Fri, 14 May 2021 19:56:44 -0500   KubeletHasSufficientMemory   kubelet has sufficient memory available
  DiskPressure         False   Fri, 14 May 2021 21:30:33 -0500   Fri, 14 May 2021 19:56:44 -0500   KubeletHasNoDiskPressure     kubelet has no disk pressure
  PIDPressure          False   Fri, 14 May 2021 21:30:33 -0500   Fri, 14 May 2021 19:56:44 -0500   KubeletHasSufficientPID      kubelet has sufficient PID available
  Ready                True    Fri, 14 May 2021 21:30:33 -0500   Fri, 14 May 2021 19:57:04 -0500   KubeletReady                 kubelet is posting ready status. AppArmor enabled
Addresses:
  Hostname:    autoscale-pool-01-8bwo1
  InternalIP:  10.116.0.3
  ExternalIP:  134.122.31.92
Capacity:
  cpu:                8
  ephemeral-storage:  103176100Ki
  hugepages-1Gi:      0
  hugepages-2Mi:      0
  memory:             32941864Ki
  pods:               110
Allocatable:
  cpu:                8
  ephemeral-storage:  95087093603
  hugepages-1Gi:      0
  hugepages-2Mi:      0
  memory:             29222Mi
  pods:               110
System Info:
  Machine ID:                 a98e294e721847469503cd531b9bc88e
  System UUID:                a98e294e-7218-4746-9503-cd531b9bc88e
  Boot ID:                    a16de75d-7532-441d-885a-de90fb2cb286
  Kernel Version:             4.19.0-11-amd64
  OS Image:                   Debian GNU/Linux 10 (buster)
  Operating System:           linux
  Architecture:               amd64
  Container Runtime Version:  containerd://1.4.3
  Kubelet Version:            v1.20.2
  Kube-Proxy Version:         v1.20.2
ProviderID:                   digitalocean://246129007
Non-terminated Pods:          (28 in total) (Redacted)
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  Resource           Requests          Limits
  --------           --------          ------
  cpu                2727m (34%)       3202m (40%)
  memory             9288341376 (30%)  3680Mi (12%)
  ephemeral-storage  0 (0%)            0 (0%)
  hugepages-1Gi      0 (0%)            0 (0%)
  hugepages-2Mi      0 (0%)            0 (0%)
Events:              <none>


Name:               autoscale-pool-02-8mly8
Roles:              <none>
Labels:             beta.kubernetes.io/arch=amd64
                    beta.kubernetes.io/instance-type=m-2vcpu-16gb
                    beta.kubernetes.io/os=linux
                    doks.digitalocean.com/node-id=eb0f7d72-d183-4953-af0c-36a88bc64921
                    doks.digitalocean.com/node-pool=autoscale-pool-02
                    doks.digitalocean.com/node-pool-id=18a37926-d208-4ab9-b17d-b3f9acb3ce0f
                    doks.digitalocean.com/version=1.20.2-do.0
                    failure-domain.beta.kubernetes.io/region=nyc1
                    kubernetes.io/arch=amd64
                    kubernetes.io/hostname=autoscale-pool-02-8mly8
                    kubernetes.io/os=linux
                    node.kubernetes.io/instance-type=m-2vcpu-16gb
                    region=nyc1
                    topology.kubernetes.io/region=nyc1
                    wireguard_capable=true
Annotations:        alpha.kubernetes.io/provided-node-ip: 10.116.0.12
                    csi.volume.kubernetes.io/nodeid: {"dobs.csi.digitalocean.com":"237830322"}
                    io.cilium.network.ipv4-cilium-host: 10.244.3.115
                    io.cilium.network.ipv4-health-ip: 10.244.3.96
                    io.cilium.network.ipv4-pod-cidr: 10.244.3.0/25
                    node.alpha.kubernetes.io/ttl: 0
                    volumes.kubernetes.io/controller-managed-attach-detach: true
CreationTimestamp:  Sat, 20 Mar 2021 18:14:37 -0500
Taints:             <none>
Unschedulable:      false
Lease:
  HolderIdentity:  autoscale-pool-02-8mly8
  AcquireTime:     <unset>
  RenewTime:       Fri, 14 May 2021 21:33:44 -0500
Conditions:
  Type                 Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----                 ------  -----------------                 ------------------                ------                       -------
  NetworkUnavailable   False   Tue, 06 Apr 2021 16:24:45 -0500   Tue, 06 Apr 2021 16:24:45 -0500   CiliumIsUp                   Cilium is running on this node
  MemoryPressure       False   Fri, 14 May 2021 21:33:35 -0500   Tue, 13 Apr 2021 18:40:21 -0500   KubeletHasSufficientMemory   kubelet has sufficient memory available
  DiskPressure         False   Fri, 14 May 2021 21:33:35 -0500   Wed, 05 May 2021 15:16:08 -0500   KubeletHasNoDiskPressure     kubelet has no disk pressure
  PIDPressure          False   Fri, 14 May 2021 21:33:35 -0500   Tue, 06 Apr 2021 16:24:40 -0500   KubeletHasSufficientPID      kubelet has sufficient PID available
  Ready                True    Fri, 14 May 2021 21:33:35 -0500   Tue, 06 Apr 2021 16:24:49 -0500   KubeletReady                 kubelet is posting ready status. AppArmor enabled
Addresses:
  Hostname:    autoscale-pool-02-8mly8
  InternalIP:  10.116.0.12
  ExternalIP:  157.230.208.24
Capacity:
  cpu:                2
  ephemeral-storage:  51570124Ki
  hugepages-1Gi:      0
  hugepages-2Mi:      0
  memory:             16427892Ki
  pods:               110
Allocatable:
  cpu:                2
  ephemeral-storage:  47527026200
  hugepages-1Gi:      0
  hugepages-2Mi:      0
  memory:             13862Mi
  pods:               110
System Info:
  Machine ID:                 7c8d577266284fa09f84afe03296abe8
  System UUID:                cf5f4cc0-17a8-4fae-b1ab-e0488675ae06
  Boot ID:                    6698c614-76a0-484c-bb23-11d540e0e6f3
  Kernel Version:             4.19.0-16-amd64
  OS Image:                   Debian GNU/Linux 10 (buster)
  Operating System:           linux
  Architecture:               amd64
  Container Runtime Version:  containerd://1.4.4
  Kubelet Version:            v1.20.5
  Kube-Proxy Version:         v1.20.5
ProviderID:                   digitalocean://237830322
Non-terminated Pods:          (73 in total) (Redacted)
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  Resource           Requests      Limits
  --------           --------      ------
  cpu                1202m (60%)   202m (10%)
  memory             2135Mi (15%)  5170Mi (37%)
  ephemeral-storage  0 (0%)        0 (0%)
  hugepages-1Gi      0 (0%)        0 (0%)
  hugepages-2Mi      0 (0%)        0 (0%)
Events:              <none>

Looking for a OVH / Hetzner / Digital Ocean reseller

Looking for a Windows RDP
Specs – 2 core minimum
6-8 GB RAM minimum
200 GB SSD
1 Gbps Network Speed with Unlimited Bandwidth / Traffic
… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1846167&goto=newpost

legal – Can I play erotic video games (digital version) in the UAE?

I’ll start working in Dubai next month and now plan to install some downloaded video games and porn films to kill certain time.

Reading many Q&A in TSE, I learn that:

  1. Don’t use a VPN to watch porn,
  2. Don’t bring too many sex toys,
  3. Don’t let anybody know of one’s masturbation,
  4. No flirting in public.

So here is what I plan to do.
I’ll install all those dirty videos and games on my laptop before entering the UAE. They don’t require Internet access, but some of them are Steam games. I will use them only in my private space. (Nobody will spy on me there, right?)

By doing so, is there any possibility that I’ll get fined, imprisoned, or expelled?

c# – Displaying digital clock with no lag in seconds

The problem

There’s several ways to generate an event in app once per second. Various Timer class or loop with await Task.Delay(1000) can be used. But all the solutions make a visible lag when displaying seconds.

That’s because the intervals which was set to delay interval doesn’t include the delegate execution time. The interval is time between end of executing previous delecate and start of the next one.

Thus 1s interval exactly more than 1 second. It looks like missing the seconds on display 1-2-3-4-6-7-8-9.

The workaround if call display refresh more often e.g. each 200ms, then the lag between change seconds on display would be betweeen 0.8s and 1.2s. Probably it solves the issue because is missing no seconds but displaying interval is still not linear. Other side effect is too often display refresh (can be prevented with comparing previously displayed time with current which adds more complexity in the code).

The solution

I created an easy solution without polling and workarounds. Just call the delegate exactly once per second.

public class ClockTimer
{
    public event EventHandler<DateTime> Tick;
    private CancellationTokenSource _cts;

    public async void Start()
    {
        if (_cts != null)
            return;
        try
        {
            using (_cts = new CancellationTokenSource())
            {
                while (true)
                {
                    DateTime date = DateTime.Now;
                    Tick?.Invoke(this, date);
                    await Task.Delay(1000 - date.Millisecond, _cts.Token);
                }
            }
        }
        catch (OperationCanceledException) { }
        catch (Exception ex)
        {
            Debug.Fail(ex.ToString());
        }
        _cts = null;
    }

    public void Stop()
        => _cts?.Cancel();
}

Test case

static void Main(string() args)
{
    ClockTimer clock = new ClockTimer();
    clock.Tick += (s, d) => Console.WriteLine(d.ToString("HH:mm:ss.fff"));
    clock.Start();
    Console.ReadKey();
    clock.Stop();
}

Output

13:23:45.413
13:23:46.076
13:23:47.008
13:23:48.020
13:23:49.006
13:23:50.001
13:23:51.011
13:23:52.011
13:23:53.007
13:23:54.016
13:23:55.003
13:23:56.013
13:23:57.012
13:23:58.011
13:23:59.007

Looks like it works. The precision here only depends on async overhead of Task.Delay. In comparison to polling looks like 0.02s accuracy is better than 0.4s.

Does the solution looks fine? Can I improve something?

I see the possible bug in thread-safety: if I call Start() concurrently multiple times at the same moment, it can lead to unpredictable behavior like unstoppable event firing caused by _cts overwrite. But I have no idea how to deal with it, and thread-safety is not a goal of this solution.

Anyone Ever Used Digital Point?

I have not ever tried advertising with Digital Point

For advertising, I would go with WebmasterSun
It has good active members and high traffic site also you can advertise on it with low price.

Hope it helps!

 

legal – Can I play erotic video games (digital version) in UAE?

I’ll start working in Dubai next month and now plan to install some downloaded video games and porn films to kill certain time.

Reading many Q&A in TSE, I learn that:

  1. Don’t use VPN to watch porn,
  2. Don’t bring too many sex toy,
  3. Don’t let anybody know of one’s masturbation,
  4. No flirting in public.

So here is what I plan to do.
I’ll install all those dirty videos and games on my laptop before entering the UAE. They’re not internet-required but some of them are steam games. I will use them only in my private space. (Nobody will spy on me there right?)

By doing so, is there any possibility that I get fined, prisoned, or expelled?

Nikon D40 has a rectangle with yellow ‘waves’ in it on the digital screen

The only thing that comes to my mind would be the histogram:

enter image description here

Hit the ‘play button’ so you see the single image (with histogram). Then hit the ‘up’ or ‘down’ buttons on the wheel on the right side of the back of the camera.

That cycles through two information screens, histogram and regular display.