Finding answers to multiple choice questions

FindTextualAnswer isn’t really working for me here:

txt = CloudImport@CloudObject[    ""]; AbsoluteTiming @ FindTextualAnswer[txt, "AI is finally possible because of?"] 

enter image description here

If you go out to the third most likely answer you get something a bit more reasonable:

enter image description here

What I really need is a probability over these options:

enter image description here

Is there some-work around here to make this work – perhaps comparing embedding distances to each of the answers? Or perhaps someone knows of a multiple choice question-answer networks available in MMA to play with or train?

CURL intermittly answers “Could not resolve host”

I randomly looses internet access on my Debian server.

When I run curl, 90% of the time it answers instantly. 10% of the time it takes ~30 seconds to answer “Could not resolve host”. It happens approximatively one time every other minute.

I have two main network interfaces:

  • enp0s3 which is my default interface. It is bridged to my host machine (server is inside a VM). Its local IP address is fixed to
  • tun0 which is an OpenVPN tunneled interface. I only use it for some specific applications. Its local IP address is in the 10.8.xx.xx range.

I run several server applications that need to be publicly accessible through enp0s3 and some other that need to be publicly accessible through tun0.

What I noticed so far:

  • One of my applications is PMS (Plex). Whenever I stop it, things go back to normal.
  • When PMS tries (by itself) to find a publicly available route, it finds my private IP address as being Which is my tun0‘s local loopback IP. It should find, which is my enp0s3 bridged interface’s IP.

Here is the output of ifconfig on my machine:

enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500     inet  netmask  broadcast     inet6 fe80::a00:27ff:fe3a:ec14  prefixlen 64  scopeid 0x20<link>     ether 08:00:27:3a:ec:14  txqueuelen 1000  (Ethernet)     RX packets 249315  bytes 35753507 (34.0 MiB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 361526  bytes 304896637 (290.7 MiB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536     inet  netmask     inet6 ::1  prefixlen 128  scopeid 0x10<host>     loop  txqueuelen 1  (Local Loopback)     RX packets 136520  bytes 74775157 (71.3 MiB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 136520  bytes 74775157 (71.3 MiB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  lo:1: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536     inet  netmask     loop  txqueuelen 1  (Local Loopback)  tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500     inet  netmask  destination     inet6 fe80::ca1a:c66a:dead:c393  prefixlen 64  scopeid 0x20<link>     unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 100   (UNSPEC)     RX packets 154049  bytes 8981378 (8.5 MiB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 243944  bytes 217433197 (207.3 MiB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0 

Here is the output of ip rule show on my machine:

0:      from all lookup local  32765:  from lookup VPN  32766:  from all lookup main  32767:  from all lookup default 

Here is the output of ip route show on my machine:

default via dev enp0s3 dev tun0 proto kernel scope link src dev enp0s3 proto kernel scope link src 

Some other informations:

  • My modem/router’s default broadcast IP is
  • Interface lo:1 is a local loopback used to “jail” some applications on tun0‘s network and avoid them to go through enp0s3.

To put you in context, here is my iptables -S output (the jailed service is bind to port 51413):

-P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT -N SERVICES -A INPUT -i tun0 -m state --state RELATED,ESTABLISHED -j ACCEPT -A FORWARD -s -o enp0s3 -j DROP -A SERVICES -p tcp -m tcp --dport 51413 -j ACCEPT -A SERVICES -p udp -m udp --dport 51413 -j ACCEPT 

What do you think?

I suspect Plex from spamming the network in order to find a publicly available route and putting down the network altogether when not managing to do so. In my own specific configuration.. I found no support about this. I’m sure my server configuration is wrong somewhere but I couldn’t find the catch. I’m no expert at all.

#P=NP: All satisfying solutions are valid answers by programs for NP

In fact, the implication looks like an equivalence too.

All satisfying solutions to a boolean formula
are valid answers by programs for NP
is equivalent to saying
the class #P equals the class NP.

Any agreement? Looks trivial. However, complexity classes are untrivial, so… negating both sides of the equivalence also produces an equivalence: Not all solutions are valid is equivalent to #P!=NP.

I have a program for counting solutions to boolean formulas, and after some years of experience, I observed that SAT coNP and #P are roughly equivalent in time complexity. I have published previously a related result called #P=#Q, where the number of satisfying assignments equals the number of valid quantifications of any original boolean formula (Satisfiability 2002, Introduction to Qspace). My program runs fast on small to moderate sizes, and when #P is linear, I can decide all qbfs of the original formula.

My theoretical position is:
with #P=#Q being the central thesis.

source code for program bob is available, send me email at gmail, pehoushek1. Sincerely, Daniel Pehoushek, 1983 GREs: 2380/2400

Different nslookup answers on different clients in local network with local DNS

Situation: I have a few clients in a local network. I have a server named amp003 with IP address I have two DNS servers (each one on relative DC server).

On client 1 I did following:

nslookup amp003 DNS1 -DNS1's IP - nslookup amp003 DNS2 -DNS2's IP - 

On client 2 I did following:

nslookup amp003 DNS1 -DNS1's IP -node not found nslookup amp003 DNS2 -DNS2's IP -node not found 

On client 2 ping amp003 returns also node not found.

I did ipconfig /flushdns on client2 successfully, but it didn’t help me. Rebooted client2 as well. In network IPv4 settings there are DNS1 and DNS2 listed, so no other DNS is providing data.

Any clues?

Finding answers for a cubic equation

I have the following cubic equation

$ $ x^{3}+Ax^{2}+1=0$ $

where $ A$ is an arbitrary (real) number.

I know that either:

  • The 3 roots will be real.
  • One root will be real and the other two will be complex conjugates of each other.

I would like to find out

  • For what value/values of A the roots change from 3 real roots to one real and two complex roots.
  • The signs of each of the real roots (both when they are all real and when there is only one real root)

Is there an analytical way of finding this as a function of $ A$ or the only option is to solve the cubic numerically?

Are my answers that I will give in the application going to be refused by UK visa officer?

I have planed to visit my cousin in England for 1 month and therefore I need to apply for a standard visitor visa. My cousin is a British citizen and he is sponsoring this trip for me. There are 3 questions on my application which I do not feel very sure if I am answering in the right way (I need any suggestions by you for example something that I should add to my answer… ):

1- Why are they (my cousin in this case) helping to pay for your visit?

My cousin and his family have been in Albania (country where I live) too many times, I have been very supportive to them and I have helped them to be more familiar in their holidays in Albania. My family also has been very kind to them in every situations and has helped them in any way they could so my cousin feels very thankful and wants to give it back by making my wish to once visit England come true. I really love their family and they really love me so they want me to visit them and to show me some of the most beautiful tourist places in the country they live in.

Documents that I am going to send with my applications by my cousin who is the sponsor of my trip:

  • A photocopy of his passport
  • A Bank statement of his income
  • A letter of invitation by him (including that he has enough room for me and his home address)

2- ….Do you have any suggestions of any other docs that I need by my cousin?

3- I have found some information that during the applications I should give the UK visa officer evidence that I am going to come back before visa ends.

I am not sure what documents should I give to them to show evidence that I am coming back before my visa ends? I am 16 years old and I am still on a high school and I have planed to go to England at the end of this school year, after I finish this school year I have another two school years to finish my high school so I wouldn’t interrupt my education because this is my future and I have good grades. Is it OK if I put in my other documents a verification that I am still a student? What other docs would be suitable to show that I am not going to stay in England.

Promote your website traffic on 12 Quara answers with Keyword and URL for $6

Since we know that Quara is one of the most popular Q /A that helps to rise ones website traffic. I will give you High Quality Answers to raise your website in the acme searches.I have been doing Q & A related job in Quara Answer for 2 years. My services : 1. All are clickable Backlinks. 2. All answers content your Keywords and URL. 3. You will get 24 hours support if you confront any issue. 4. All are guaranteed Traffic and Backlink. 5. Every answers completed manually.6. Answers will never be deleted.So why are you waiting for? If you want to increase your website traffic in Quara you should accept the service

by: mahmud2142
Created: —
Category: Question/Answer
Viewed: 118

Display hashed security answers in front end

My web app requires the users to provide secret questions and answers. The users can’t pick a question from predefined ones, but have to write their own questions and (of course) answers.

For security reasons I then hash the answers before storing them in the data base. => this is when my problem occurs. I want to display the information (questions and answers) to the users on their profile pages, but – as the answers are hashed – I am not able to ever display them in plain text.

So the question is: how would you solve this for clarity and good usability?

My current approach is to display the questions and answers in an input field. If a user has already answered one of the questions, the answer input gets disabled and grayed out. The answer input contains no text (as it would only contain the “gibberish” hash string) => A user then has to make a change to the related question first, before he can edit the answer input.

UX problem secret answers

But I am not sure, whether this is good usability design and unambiguous?