## python – How does AI voice work?

Google AI or Siri or Alexa they have their own voices and I want to know how the voices was given.
I want to make a Pdf reader but with custom voice and language so how can I develop one.
I have tried gTTS in python but that doesn’t allow me to change voice or add custom voice according
to my needs.

## Does windows 10 SDelete work on SSD drivers?

SDelete does know the difference. It simply overwrites the file which works on HDD, SSD, NVMe, USB, etc.

From the Microsoft docs:

Securely deleting a file that has no special attributes is relatively
straight-forward: the secure delete program simply overwrites the file
with the secure delete pattern.

There are some tricky aspect dues to compression but these are universal across devices as well. Once the file has been overwritten in its entire length, then it gets deleted which is why the original data can’t be restored.

## PostgreSQL 9.4, dotConnect 7.18 – ExecuteScalar() does not work for varchar

My `c#.net 4.7.1` code fires off a few queries against the local PostgreSQL 9.4 server.
The first query determines if there is an index on a particular table:

``````cmd.CommandText = \$"select count(1) from pg_indexes" +
Environment.NewLine + \$"where schemaname = '{sqlSchemaName}'" +
Environment.NewLine + \$"and tablename = '{sqlTableName}'" +
Environment.NewLine + \$"and indexname = 'idx{sqlSchemaName}{sqlTableName}_hostname';";
if (Convert.ToInt64(cmd.ExecuteScalar()) == 0L)
{
cmd.CommandText = \$"create index idx{sqlSchemaName}{sqlTableName}_hostname on {sqlSchemaName}.{sqlTableName} (hostName)";
cmd.ExecuteNonQuery();
}
``````

This command correctly returns `0` or `1` depending on whether the index is already there or not.
Then the code returns to my unit test, where it fires off the next command, to confirm that the schema exists.

``````cmd.CommandText = "select schema_name from information_schema.schemata where schema_name = 'logging' limit 1;";
Assert.AreEqual(Convert.ToString(cmd.ExecuteScalar()), "logging");
``````

This command always returns `null`. Like with all queries in this application, I copied the SQL into SquirrelSQL and ensured that it returns the table name, before and after running into this problem. Am I doing anything wrong in the 2nd command?

## bitcoincore development – How will the migration tool from a Bitcoin Core legacy wallet to a descriptor wallet work?

The migration tool will go through all the keys in the legacy wallet and create descriptors for them. This requires considering everything that `IsMine` matches on. From the Bitcoin Core release notes:

IsMine refers to the function used to determine whether a script belongs to the wallet. This is used to determine whether an output belongs to the wallet. IsMine in Legacy Wallets returns true if the wallet would be able to sign an input that spends an output with that script. Since keys can be involved in a variety of different scripts, this definition for IsMine can lead to many unexpected scripts being considered part of the wallet.

For HD wallets, it is pretty simple to compute the xpriv for the HD seed using a single descriptor. For non-HD wallets but still only key things, it’s a descriptor for each key. The set of scriptPubKeys is finite and O(n!) so it is doable.

For watch-only wallets and multisigs it gets more complicated. Also getting the Descriptor Wallet to treat as `IsMine` any future script that the Legacy Wallet would have treated as `IsMine` is probably impossible for all edge cases.

Thanks to Andrew Chow and Pieter Wuille for answering this question on IRC. Any errors are my own.

## c# – Unity Application.Quit() doesn’t work

In the update, I have set up a counter so that after 140 frames, Unity will quit the game. But this quit command doesn’t quit and it just continues to play the game. What am I doing wrong? I am using and testing in Unity 2D. There are no errors and all the prints are visible.

``````using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Normal_Car : MonoBehaviour
{
private int counter = 0;

public Vector3 finalPos = new Vector3(0.00f,0.00f,0.00f);

public Transform t;

// Start is called before the first frame update
void Start()
{
t.GetComponent<Transform>();
}

// Update is called once per frame
void Update()
{
print("Frame: " + counter.ToString());
counter += 1;
t.position += finalPos;
if(counter >= 140)
{
Application.Quit();
print("Quit!");
}
}
}
``````

## powershell – catch statement does not work SharePoint Online PNP

I had the same issue of not being able to catch exceptions with Add-PnPListItem. Running it in a variable and adding -ErrorAction Stop worked for me.

Using parts of the OP’s script for this example, this is what worked:

``````try
{
\$getTheFile = Get-PnPFile -Url \$fileUrl -Path \$fullExportPath -FileName \$fileName -AsFile -ErrorAction Stop
\$getTheFile
}
catch
{
Write-Host "Issue occurred while getting: \$(\$fileName):" -Foregroundcolor Red
Write-Host "\$(\$_.Exception.Message)" -Foregroundcolor Red
\$failedDocItems++
}

``````

## How does local/remote development server environment work for testing within workplaces?

I am a trainee software engineer and have started working for a small company recently. I have been working on a java project locally on my PC which I pulled from a VCS. I want to test the code where it calls another system to retrieve some data. However, I am unsure as to how this all works in regards to testing in a dev environment. I am WFH and the developers on my team are usually all too busy to answer my questions. I am pretty much left to learn this all by myself with little to no guidance.

I do know we have a remote linux server for dev environment. What I do not understand is how it all works e.g. how it works with loading my code/project to the remote server or can I run the project locally which will in turn be deployed into the remote server? As I do not quite understand how I would be able to work on writing code in the shell without an IDE. I am also new to everything so I am testing if my code has any errors, if all the developers have access to the same remote server then how would I be able to test my code without impacting the other developers work?

Another question, instead of using a remote linux server for development testing, is it possible to set it up so that I am able to run the project locally on my PC instead? I feel I would prefer this route but not sure if it is possible because why do some workplaces use remote server rather than local development testing?

Any help is appreciated!

## digital – My remote shutter release wont work on Nikon D5200

So I’ve had a remote shutter release for a while and only decided today to give it a try, I know to put the camera in manual and go into bulb which is fine when my camera is in single frame mode or whatever it goes into bulb fine but when I put my camera to quick-response remote and turn the dial to go to bulb, bulb isn’t an option and it just comes up as time?

So basically my camera does bulb until I put it into quick response remote mode and then it won’t say bulb it’ll say time and my remote shutter won’t work

Any advice? Settings maybe? I’ve looked up on Google and nothing seems to be coming up

## dnd 5e – How do Ethereal objects/creatures work on the Outer planes?

Looking over some creatures that spend time in the Ethereal plane such as Ghosts and Night Hags, they are able to move between the Ethereal and Material planes, so they would be acclimated to both sorts of environments. As you mentioned, the Ethereal doesn’t border the outer planes, these creatures being pushed into one of the outer planes and losing this ability to go between Ethereal / Material planes could be their biggest detriment.

On DMG 49, these Ethereal creatures would be used to non-physical travel:

Traveling through the Deep Ethereal to journey from one plane to another is unlike physical travel. Distance is meaningless, so although travelers feel as if they can move by a simple act of will, it’s impossible to measure speed and hard to track the passage of time

DMG: 48:

The Ethereal Plane also disobeys the laws of gravity: a creature there can move up and down as easily as walking.

solid objects on the overlapped plane don’t hamper the movement of a creature in the Border Ethereal

I think things will vary a lot per creature. If these things are their normal, “real/physical” things would be pretty weird. But if they have experience in multiple realms, no so bad.

Alignments: Each plane has an alignment which could have an effect on the particular creature:
DMG page 59:

Each of the Outer Planes has peculiar characteristics that make traveling through it a unique experience. A plane’s influence can affect visitors in various ways, such as causing them to take on personality traits or flaws that reflect the disposition of the plane, or even shift alignment to more closely match the native inhabitants of the plane. Each plane’s description includes one or more optional rules that you can use to help make the adventurers’ experiences on that plane memorable.

The 3e DMG on page 76 mentions that ethereal creatures (I haven’t been able to locate this description in a 5e book so far) aren’t subject to gravity or falling and can move in any direction, so if ethereal creatures retain this “etherealness” in other planes, they wouldn’t be so poorly off, but this could vary based on individual creature too.

Other thought: PHB 238 Etherealness spell

This spell has no effect if you cast it while you are on the Ethereal Plane or a plane that doesn’t border it, such as one of the Outer Planes.

If it’s impossible to go “ethereal” does this imply that the ethereal state requires to be on a bordering plane? I suspect the Ethereal stinger in the outlands was a mistake, and creatures would need to have the ability to be in their non-ethereal form to leave a location linked to the Ethereal plane.

I think this question will fall into how your world has been built. See DMG page 43 under “putting the planes together”:

A way for spells and monsters that use the Astral Plane and the Ethereal Plane to function

Can a creature/object in “Ethereal” state can leave?

According to the Forgotton Realms wiki all things have an Ethereal equivalent. Do also, all Ethereal things have a non-ethereal equivalent, or do they cease to exist? Perhaps this is left up to the DM.

When a traveler crossed into the Border Ethereal, she and all her possessions were converted to their Ethereal equivalents, metal became ethereal metal, flesh became ethereal flesh and so on

## asymptotics – How do I work out the recurrence relation of the given function?

I am looking to find the recurrence relation (RR) of the `fnA()`, but I am unsure how $$n$$ is to be represented.

(More specifically, I am trying to work out the asymptomatic running time of the function, so I am assuming I need to find the RR first; but if I am wrong and I don’t need to find that out, please mention).

``````int fnA(int() array, int low, int high) {
if (low >= high)
return array(low);
else {
int gap = floor((high - low) / 5);
return (fnA(array, low, low + 2 * gap) +
fnA(array, low + gap, low + 3 * gap) +
fnA(array, high - 2 * gap, high));
}
}
``````

The probelm I am having is that I don’t understand what is happening to $$n$$ in the recurrence relation. For example (not accurate to the given fucntion):

$$T(n) = 2T(n/3) + T(n/2) + Θ(1)$$

I am not looking for the answer per se, just how I should be going about problems like these.