filters – Woocommerce : How to automatically input “digits” phone number filed to woocommerce billing_phone filed for every order?

I use woocommmerce to sell online courses in my website. also I use a plugin called “Digits” to help users easily login/register using only their mobile phone numbers and OTP sent to them as sms.

So the login/register in our website, just requires entering mobile phone number.

and because of that, we removed billing_phone field from woocommerce checkout form because every user is required to register with their phone number even before accessing the checkout page.

the question is : how to automatically add the “digits” phone number to woocommerce billing_phone filed in every order using maybe some filters and/or hooks?

Updated sitemap not read automatically by Google

Google is not reading my sitemap of my wordpress site automatically. The ‘last date read’ remains the same as the submitted date. I had updated the contents of my site a couple of weeks ago, and the contents of sitemap were also updated automatically. But the updated sitemap was not read automatically by Google thereafter. I waited for a week but it remained the same. Finally, I was forced to resubmit the sitemap and google now discovered by new URLS immediately.

Is this normal? Does google take weeks to read sitemaps? Or is this some problem from my website side?

dnd 5e – If an ability says characters can tell that something is not real with a successful ability check, do characters automatically attempt the check?

The rules expect the DM to decide on a case-by-case basis

First and foremost, there are no skill checks in 5e anymore. Things like “Wisdom (Insight) check” are ability checks, and they differ from skill checks as they were in previous editions.

Moreover, “passive check” is a game term which has a special meaning in 5e:

A passive check is a special kind of ability check that doesn’t involve any die rolls

What you’re asking about is probably a regular ability check made by a DM’s call, not a passive check. Keeping in mind that all ability checks are made by a DM’s call, the real question is: does the DM have to wait for a specific question from a player before asking for an ability check?

And the answer is — no, the DM does not have to wait for a specific question. The 5e ruleset is a toolbox the DM is free to use at their own discretion. It does not set any hard limits on the DM anymore, especially when we’re talking about ability checks.

It was the 3.x thing to explicitly frame the process. 5e left the prescriptive paradigm regarding ability checks. Now the game expects the DM to decide, what checks would be better for the story. This is also known as the “rulings over rules” principle.

So it’s up to the DM if she thinks it’d be better to wait for a specific question before asking for an ability check in each case. What I want to suggest is two things: avoid no-brainers and don’t expect specific “right words” from the players.

Avoid no-brainers

If players get a chance to learn additional information only when they say “I want to listen/look closer”, they will be saying this every time, getting zero results most of the time. It is a no-brainer and no-brainers are bad design — they waste real time and make games less exciting. Instead, assume the characters are always aware and asks for a check only when the outcome is uncertain.

Don’t expect specific “right words”

Don’t expect the players to do only specific things you had in mind when you was preparing the adventure. This is also true regarding puzzles. If you allow a dice roll only if the player says “I want to check if it’s an imitation”, they probably never get any dice rolls. Instead, treat any examination effort as a potential revealing of an imitation.

Know your players

DMG p.236 allows a playstyle when players do not roll dice at all (unless it’s a combat, but combat is a different story). Some players just like rolling dice and enjoy randomness, some prefer more predictable approach. The DM’s job is to decide what would be better for the table. The DM can still use passive score for the information PCs are able to get intrinsically and/or ask for a check. Both options are “correct” from the rules perspective.

Putting this in a nutshell:

  • assume proactivity and competence of the players’ characters
  • allow broad interpretation of what is the right thing to do for moving the story forward
  • don’t hide information if it is important for the story

How would this work in-game:

— You can definitely hear a sound from this cave. It’s like a baby crying.
— That’s creepy! I draw my sword. Can I say if it’s a human baby?
— Make a Wisdom (Insight) check.
— Eighteen!
— Suddenly you realize it’s not a baby. It is an imitation, quite crude, actually. Like some kind of non-human creature is trying to mimic a toddler’s babbling.


— You can definitely hear a sound from this cave. It’s like a baby crying. (checking the PCs Wisdom (Insight) passive score) You insight allows you to understand it is an imitation, like some kind of non-human creature is trying to mimic a toddler’s babbling.

Automatically Select Bluetooth Headset Microphone as Input Device in Sound Settings on Connection

I have a Jabra Evolve 75 headset that I connect via Bluetooth to my Ubuntu 20.04 machine. Everything works fine in principle except for one little annoyance:

Whenever I turn the headset on, it connects and the Output Device is automatically set accordingly in the Sound Settings. This is the way I want it. However, the Input Device remains like it was set before and I manually have to go in to the settings and also change it to Jabra Evolve 75:

enter image description here

How can I configure the settings so that both Input Device and Output Device automatically switch to Jabra Evolve 75 once I turn the headset on?

postgresql – Why DataGrip automatically creates Foreign Key relation when ‘table_id’ column is added

Not long ago I started using DataGrip from Jetbrains, I am using postgres

when I add column ‘table_id’ foreign key relation is automaitcally is created between tables, though I didn’t add any FOREIGN KEY statements. Do you know why relation is created automatically, when I just added tablename_id?

enter image description here

enter image description here

networking – If a game automatically downloads addon content it doesn’t already have when joining a server, how can I test this without a second computer?

One thing you can do is make the addon path user-configurable. Besides allowing you to configure this differently on the server and the client, your end users may also find this feature useful, especially if they have multiple storage drives on their computer.

However, at least under Linux, it is possible to have a directory show up as having different contents for two different processes, by using what’s called a mount namespace. By placing a process in a new mount namespace, it is possible to mount volumes which will only exist for that process and its subprocesses. If you create a new mount namespace, and mount a temporary file system on top of the addon content directory, you can then start the client in the new namespace and the server outside of it, and the client and server will see entirely different contents in that directory.

For the following instructions, replace $ADDON_DIR with the path to the addon content directory, and $USER with your local username:

  1. Start the server normally, and tell it to use an addon you have installed.

  2. Run sudo unshare -m in a terminal, and enter your password. This will bring you to a root shell in a new mount namespace.

  3. At the root prompt, run mount -t tmpfs tmpfs $ADDON_DIR. This will mount a temporary, empty filesystem over the addon content directory, but will only take effect within the new mount namespace.

  4. At the same prompt, type runuser $USER. This will switch back to your regular user in a subshell, which is still inside the new namespace.

  5. From that subshell, launch the game client and connect to the local server. Since the client is running in the new mount namespace, it will see an empty addon content directory, and proceed to download the content. – Apply free shipping automatically if order is above X amount

In a flat rate, I have set a $10 amount. If an order is above $10, a free shipping option appears, and the user can select the free shipping option. But if the order is above $10, free shipping should be applied automatically. Is there any option/code available?

enter image description here

applications – Is there a way/app to automatically change DNS server based on connection?

Let say on my home Wifi I want to use DNS server “X” and on work WiFI I want to use another DNS-server “Y”, on cellular server “Z” and so on. Is this possible to do this automatically? (Preferably without root)
There seems to be loads of “DNS-apps” on play store, but I can’t find any that do this. (have not tried them all)

sharepoint online – Automatically capture data and time when list item status changes

Good day all.
I’m using a SharePoint list to manage tasks in my company. I have a choice column in my list that specifies the current status of my task. The process that my tasks need to follow are as follows:

Planned > In Progress > Review > Improve > Finalized > Sent

I would like to calculate the time duration between each status to determine where the bottlenecks lie in these tasks, for example, the time duration between “Review” to “Improve” will give me an indication of how long employees spend on the review of the report.

I created a Power Automate Automated Cloud Flow that follows the procedure specified by Matiur-Rahman in the following question: Capture static date & time when list item “status” column changed to “6-Completed”.

I am however experiences issues as the list that is returned is currently being returned in the following format:
Returned Status Tracking List

I am not experienced in coding and would thus like your help regarding this output. Your responses will be much appreciated.

feeds – How do I automatically add a title to imported entities?

I have a site with a lot of audio files (using core’s Media audio media type).

On the Manage form display admin page (/admin/structure/media/manage/audio/form-fields), I have set the Name field to Disabled.

This way, when I add a media audio entity in the UI (at /media/add/audio), then I don’t have to add the title, and the entity name will automatically be set to the file name.

Now I want to automate media audio entity creation with the Feeds module. I configured a feed type + a feed for my media audio entities. I’m importing CSV files from a directory.

I used the following mappings:

  • File ID + File Description for the media field field_media_audio_file
  • Code for the text field field_import_id (for which I set the unique option to keep track of imports)

However, when I try to import the feed, I get this error:

Name (name): This value should not be null.

How can I disable this validation (checking for the Name field) by the Feeds module for media audio entities?

As a workaround, I can create a column in the CSV file and list all the file names, but this results in duplicate information and presents the risk of typos.