## uk – Can my friend from the U.S visit the U.K. after a custodial sentence

My friend in the U.S was sentenced to 1 year and a day, he actually served just 8 months, that was ten years ago, the crime was financial, he only wants to visit for about ten days, meet with friends he is 78, was refused 5 years ago after enquiring, I can stand guarantor for him what’s the ruling .. many thanks in advance.

## How to print a sentence pulling information from a dictionary that has a list inside

I have the following dictionary. If I want to print the output such as the following, how should I write it in python?
John is 20 years old with GPA 3.3
Shannon is 21 years old with GPA 3.4
Eileen is 20 years old with GPA 3.5

``````students = {
101: ["John", 20, 3.3],
102: ["Shannon", 21, 3.4],
103: ["Eileen", 20, 3.5]
}``````

The sentence (I need to add underneath the main paragraph) that I am unhappy with is:

`If you are not awaiting any newly broadcasted deposits this message may not apply to you.`

I am unhappy with my description (for the understanding of new/normal people)

Not many people would understand a ‘broadcast’ or the idea of being ‘new’

We understand what a ‘broadcast’ is but they don’t …

…and (I am trying to) relay that – new implies the tx has -1 confirmations (to enter the mem pool but not a block) but (as a normal person I would not get that)

This should be understood as ‘a transaction that you just sent’

But how to explain it in fewer words and simply, properly and professionally?

## Set of Limit points sentence

So my book says that if $$Asubset X$$ is finite then $$A’=emptyset$$ does that go backwards aswell? meaning that if $$A’=emptyset$$ does that mean that the set is finite?

I have an exercise to do that wants me to prove that if $$A’=emptyset$$ then prove that $$A$$ is closed and i believe i could do something if that is a thing.

## java – TCPServer remove any vowel (a, e, i, o, u) in the sentence S. Dewolizing the sentence “Hello World!” yields ” Hll Wrld!”

I’m doing a TCPClient and TCPServer program, I want to delete the (a, e, i, o, u) in the message we got from client, then show the new message in server page.
I want to delete (a, e, i, o, u) in my TCPServer.java file, to show the message without aeiou.
But when I do compile, message.append(“”) and message.append(c) showed error. Could I know why and how to fix it? Thank you.

``````import java.net.*;  // for Socket, ServerSocket, and InetAddress
import java.io.*;   // for IOException and Input/OutputStream

public class myFirstTCPServer {

private static final int BUFSIZE = 32;   // Size of receive buffer

public static void main(String() args) throws IOException {

if (args.length != 1)  // Test for correct # of args
throw new IllegalArgumentException("Parameter(s): <Port>");

int servPort = Integer.parseInt(args(0));

// Create a server socket to accept client connection requests
ServerSocket servSock = new ServerSocket(servPort);

int recvMsgSize;   // Size of received message
byte() byteBuffer = new byte(BUFSIZE);  // Receive buffer

for (;;) { // Run forever, accepting and servicing connections
Socket clntSock = servSock.accept();     // Get client connection

System.out.println("Handling client at " +
clntSock.getPort());
//code test

//replace
for (int i = 0; i < message.length(); i++) {
char c = message.charAt(i);
if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c =='u') {
message.append("");
}
else {
message.append(c);
}
}

//output message
System.out.println("Message with change:" + message);

//my code above
InputStream in = clntSock.getInputStream();
OutputStream out = clntSock.getOutputStream();

// Receive until client closes connection, indicated by -1 return
while ((recvMsgSize = in.read(byteBuffer)) != -1)
out.write(byteBuffer, 0, recvMsgSize);

clntSock.close();  // Close the socket.  We are done with this client!
}
/* NOT REACHED */
}
}
``````

## Translating a English Sentence to Predicate Logic

Let $$C(a,b)$$ be "$$a$$ and $$b$$ have communicated over the web," and the domain of discourse is all students in the class. What is the translation of "Everyone has communicated over the web with the same student" Note: the student hasn’t communicated with themselves.

Very stumped on this one. I am initially stating $$forall a exists b ((a neq b) implies C(a,b)).$$ Is this the correct way to show that someone is not themselves in this statement?

## graphs – What is yields mean in the sentence: yields no back edges in DFS algorithm

What is `yields` mean?

``````procedure DFS(G, v) is
label v as discovered
for all directed edges from v to w that are in G.adjacentEdges(v) do
if vertex w is not labeled as discovered then
recursively call DFS(G, w)
``````

As you see, the line `if vertex w is not labeled as discovered then` make DFS never run back to the node that has been labeled. So what is `yields no back edges` because I think dfs never touch `labeled node`

## python – concatenate list of sentence into one in a dataframe

i try to concatenate or join multiple list of sentences into 1, but failed:
for for example i have this dataframe df:

``````text
=====================
("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
"Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.",
" Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")
``````

the desired result is:

``````text
==================================
("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.)
``````

i try using:

``````df('text') = df('text').str.join(' ')
``````

but it separate word into character and the sentence aren’t joined

## wallet – Should the BIP 39 mnemonic sentence checksum be eliminated from the standard? Does it do more harm than good?

Kalle Rosenbaum argued for this on Twitter.

The checksum is between 4 (for 12 words) and 8 (24 words) bits. This is a very weak checksum. For 12 words, this would mean 1/16 probability of failure to detect a mistyped sequence of VALID words!

The words themselves are a much stronger checksum. Any misspelled word has a much higher probability to be detected due to word missing in wordlist; It’s unlikely to misspell a word so that it becomes another valid word.

When does the checksum help you? It’s not when you write down the mnemonic on paper. The paper/pencil doesn’t check the checksum.

The checksum could help when you want to recover the wallet. If the checksum is wrong AND all words exist in the wordlist, it will help you realize there’s something wrong with it.

But you’ll also realize there’s something wrong with it if there are no transactions or bitcoin in your “recovered” wallet, or that you don’t recognize the addresses generated in it. The checksum, at best, only helps you realize it earlier.

The checksum also has a major turnoff: It’s hard to generate a mnemonic without a computer. You can roll dice to generate 128 bits of entropy, but then you need to put those bits into a computer to calculate the checksum, “the final word”.

This “final word” step is a security risk. If you’re a novice, it’s very hard to do the final word generation in a secure way. This risk is far worse than the dubious benefit explained above.

If wallets would accept mnemonics without checksum you could create a mnemonic with ONLY dice and a wordlist and give it to a hardware wallet or airgapped computer and be done with it. You don’t have to setup a secure environment to generate a nearly useless checksum.

Exactly how BIP39 could be modified to make checksum optional is another question, but it’s doable.

## microsoft excel – how to extract multiple words from sentence that have same ending to a new column separated by commas

I have an issue whereby for example i have a sentence in column A that says for “hello ID users tbzoo, rjkth, mnkz, plzoo, rtzoo and fghzt” and i would like to create a new column B that extracts all the words in column A that end with zoo and are separated by a comma eg column B would have tbzoo,plzoo,trzoo.
So far the formula i have come up with using MID and search only returns the first word that ends in zoo and not all of them.