online resources – Is there a practical way to change the phone number in Uber app when arriving at a country?

and I also get a local sim card sometimes

I have had a lot of trouble with this for different services while traveling, to the point that now I am making the following. I created a Skype number, which is of course associated with my Skype account.

Then use that number for all/most services. You won’t need the physical SIM card to do anything, so if you are abroad and lose it then no problem. You just need an internet connection and everything works.

I am still in the process of testing it in all apps and services, but Uber is the perfect case. I cannot receive SMS oficially, but when I do an UK number calls me (through skype) and does text-to-speech for me.

Edit: tried linking my Uber app but it gives an unknown error. Contacted Uber and awaiting for an answer.

Edit 2: just tried again and it’s linked without problem

java – Consuming Multiple resources from a single REST Service

I am developing a Spring Boot Application which consumes another REST service to get the User’s Account information. The same service provides multiple operations like:

GET: /userid/retrive -to get user and account information

POST: /user/create – to create a new user

POST: /userid/save – to save the user information

DELETE: /userid – to remove the user information from the system

POST: /userid/account : to update account information

So All the above apis are exposed by one service. Some of them return the same response object while others do not and each of them have their own request parameters and request headers that should be set before calling.

So what I have done is I have created a Base class which will have the common code and I have extended it for One Rest template per API operation which will set its own request parameters and call the service and also has different exception loggers/messages.

The service also exposes other operations which we start consuming in our upcoming sprints, and I wanted to make sure if we can utilize any existing design pattern for our advantage.

So I am writing this question to know if there are any alternatives or any design patterns you could suggest so as calling the same service would not have multiple rest templates.

Question Regarding Shared and VPS Hosting Resources

I have a question. Sorry if it sounds stupid but since i am not an expert i wanted to understand it.

I often see hosting companies offer… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1849092&goto=newpost

minecraft modding – How to load resources without resource loader?

I want to load resources so I can use Patchouli. I’m making a 1.16 modpack so I cannot use resource loader (which is on 1.7 – 1.12). How can I load resources? Do I have to make a minecraft mod?

Also, would KubeJS work? If so, how?

(resource packs won’t work)

performance – Should I use DNS prefetch and preconnect when loading resources from CDN?

In my web page I load around 12 resources from jsdelivr (CSS and JS).

Should I optimize it with one (or both) of following techniques? If yes, should I put the tags right before loading tags or at the beginning of the page?

  • DNS prefetch
  • DNS preconnect

Thanks.

How would you design Uber exclusively using Azure and Azure resources?

How would you design Uber exclusively using Azure and Azure resources? – Software Engineering Stack Exchange

Best Resources on Game Theory

What are the best resources out there for learning Game Theory? I am interested in both lecture notes and books.

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>

node.js – application logfile showing alot of suspicious GET requests to various resources

I am getting alot of get requests for endpoints like “GET /owa/” or “POST /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php”, etc. This seems to be suspicious as if someone is trying to look for potential vulnerabilities in microservice. I am running an express.js app using aws and would like to block this kind of activity from even making it to the microservice.

  1. Is there a facility within aws that could be use to block this kind of activity?

  2. Is there anything I could use from within express.js or any packages that could further lock things down?

I am requiring authentication so there is a layer of protection but it seems like further blocking is necessary.

dnd 3.5e – What resources could I use for jewelry reference in D&D

There are two answers to this question.

The really horrible answer is: jewelry takes as long to make as its value according to the bog standard craft rules. Don’t try to think about the economics of it and certainly don’t try to make a living at it.

The not so horrible answer is: house rules. I recommend the new crafting rules from the sourcebook by Frank and K called “Book of Gears.” as a basis. They … articulate most of the things that are broken. Unfortunately there are no good rules presented.

Quoth the sourcebook:

An overhaul to the Craft rules may sound fairly unbalancing, as the current Craft rules were created to prevent characters from making a lot of money and potentially destabilizing their games with an influx of magic items. Unfortunately, like Level Allowance, the heavy nerfing to Crafting resulted in a lot of characters simply becoming unviable, a lot of very dumb things happening all around, and it still doesn’t actually stop characters from breaking the game if they really want to. If the party is made out of Elves, they can simply set a single skill rank on fire and announce that they’re going to spend 100 years farming, making trained Profession (Farmer) checks every week. That’ll get them about 6 gp a week for the next 5,200 weeks — for a total of 31,200 gp at first level before they even start adventuring. And as elves, they can honestly just spend 200 years farming or spend some real skill ranks on that to get even more money.

It identifies the sacred cows of the crafting rules… and the pdf I found seems to have some suggestions as to new rules.

Jewelry is worth whatever someone is prepared to pay for it. Generally this works to an offer to not give you steel poisoning. (Acute slices to the liver can cause quite remarkable allergic reactions). Generally speaking, it should be worth enough to pay for the cost of crafting it, the cost of maintaining the shop, the cost of the raw materials, and the amortized cost of the education and apprenticeship (and all the materials that went into that) that went into leanring how to craft it.

Here’s a reference on jewelry.

My personal recommendation would be to blatantly steal the crafting rules from Ars Magica City & Guild. While it’s a completely different system, it’s pretty mappable in terms of skill ranks. (Every 4 ranks in a skill should be 1 point in ars magica, give or take.) And it provides acceptable rules for how to make a living from it. It you care about making art then take a look at the artists section of Art & Academe (Also an ars magica suppliment.) Between the two of them, they will provide a far more solid foundation for crafting and craft rules than 3.5. (Though I would totally keep the 3.0 haste spell.)

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123